Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
be991c81
Commit
be991c81
authored
Jun 09, 1999
by
Kurt Zeilenga
Browse files
Add test for BeOS's closesocket
parent
9e11b935
Changes
4
Hide whitespace changes
Inline
Side-by-side
configure
View file @
be991c81
...
...
@@ -11240,6 +11240,7 @@ fi
for
ac_func
in
\
bcopy
\
closesocket
\
endgrent
\
endpwent
\
flock
\
...
...
@@ -11280,12 +11281,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:1128
4
: checking for
$ac_func
"
>
&5
echo
"configure:1128
5
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 112
8
9 "configure"
#line 1129
0
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -11308,7 +11309,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:1131
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:1131
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -11336,12 +11337,12 @@ done
for
ac_func
in
getopt tempnam
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:1134
0
: checking for
$ac_func
"
>
&5
echo
"configure:1134
1
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1134
5
"configure"
#line 1134
6
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -11364,7 +11365,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:1136
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:1136
9
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -11394,13 +11395,13 @@ done
# Check Configuration
echo
$ac_n
"checking declaration of sys_errlist""...
$ac_c
"
1>&6
echo
"configure:1139
8
: checking declaration of sys_errlist"
>
&5
echo
"configure:1139
9
: checking declaration of sys_errlist"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_dcl_sys_errlist
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1140
4
"configure"
#line 1140
5
"configure"
#include "confdefs.h"
#include <stdio.h>
...
...
@@ -11410,7 +11411,7 @@ int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if
{
(
eval echo
configure:1141
4
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:1141
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ol_cv_dcl_sys_errlist
=
yes
else
...
...
@@ -11430,20 +11431,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then
EOF
echo
$ac_n
"checking existence of sys_errlist""...
$ac_c
"
1>&6
echo
"configure:1143
4
: checking existence of sys_errlist"
>
&5
echo
"configure:1143
5
: checking existence of sys_errlist"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_have_sys_errlist
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1144
0
"configure"
#line 1144
1
"configure"
#include "confdefs.h"
#include <errno.h>
int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if
{
(
eval echo
configure:1144
7
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:1144
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ol_cv_have_sys_errlist
=
yes
else
...
...
configure.in
View file @
be991c81
...
...
@@ -1635,6 +1635,7 @@ fi
AC_CHECK_FUNCS( \
bcopy \
closesocket \
endgrent \
endpwent \
flock \
...
...
include/ac/socket.h
View file @
be991c81
...
...
@@ -72,6 +72,7 @@
#elif MACOS
# define tcp_close( s ) tcpclose( s )
#elif DOS
# ifdef PCNFS
# define tcp_close( s ) close( s )
...
...
@@ -79,6 +80,10 @@
# ifdef NCSA
# define tcp_close( s ) do { netclose( s ); netshut() } while(0)
# endif
/* NCSA */
#elif HAVE_CLOSESOCKET
# define tcp_close( s ) closesocket( s )
#else
# define tcp_close( s ) close( s )
#endif
/* MACOS */
...
...
include/portable.h.in
View file @
be991c81
...
...
@@ -225,6 +225,9 @@
/* Define if you have the bcopy function. */
#undef HAVE_BCOPY
/* Define if you have the closesocket function. */
#undef HAVE_CLOSESOCKET
/* Define if you have the ctime_r function. */
#undef HAVE_CTIME_R
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment