Another winsock attempt

This commit is contained in:
Kurt Zeilenga 2009-01-17 00:04:24 +00:00
parent e98179c80e
commit bf55374d6b
2 changed files with 5 additions and 11 deletions

9
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.676 2009/01/16 22:45:25 kurt Exp .
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.677 2009/01/16 22:54:57 kurt Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61.
#
@ -15340,7 +15340,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test ! -s conftest.err
} && test -s conftest$ac_exeext &&
$as_test_x conftest$ac_exeext; then
ol_cv_winsock=yes
ol_cv_winsock=$curlib
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
@ -15351,10 +15351,7 @@ fi
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
if test $ol_cv_winsock = yes ; then
ol_cv_winsock=$curlib
fi
break
test $ol_cv_winsock != no && break;
done
LIBS="$save_LIBS"

View File

@ -892,12 +892,9 @@ for curlib in none ws2_32 wsock32; do
select(0,NULL,NULL,NULL,NULL);
closesocket(0);
gethostname(NULL,0);
]])],[ol_cv_winsock=yes],[ol_cv_winsock=no])
]])],[ol_cv_winsock=$curlib],[ol_cv_winsock=no])
if test $ol_cv_winsock = yes ; then
ol_cv_winsock=$curlib
fi
break
test $ol_cv_winsock != no && break;
done
LIBS="$save_LIBS"
])