#! /bin/sh
-# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.674 2009/01/16 21:05:05 kurt Exp .
+# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.675 2009/01/16 22:28:31 kurt Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61.
#
if test "${ol_cv_winsock+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- save_LIBS="$LIBS"
+
+save_LIBS="$LIBS"
for curlib in ws2_32 wsock32; do
LIBS="$LIBS -l$curlib"
cat >conftest.$ac_ext <<_ACEOF
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
+ if test $ol_cv_winsock = yes ; then
+ if test -a $curlib = ws2_32; then
+ ol_cv_winsock=winsock2
+ fi
+ break
+ fi
+
+ LIBS="$save_LIBS"
+done
+
+fi
+{ echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
+echo "${ECHO_T}$ol_cv_winsock" >&6; }
+if test $ol_cv_winsock != no ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WINSOCK 1
_ACEOF
- ac_cv_func_socket=yes
- ac_cv_func_select=yes
- ac_cv_func_closesocket=yes
- ac_cv_func_gethostname=yes
- if test $curlib = ws2_32; then
- ol_cv_winsock=winsock2
+ ac_cv_func_socket=yes
+ ac_cv_func_select=yes
+ ac_cv_func_closesocket=yes
+ ac_cv_func_gethostname=yes
+
+ if test $ol_cv_winock = winsock2 ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_WINSOCK2 1
_ACEOF
- fi
- break
- fi
- LIBS="$save_LIBS"
-done
-fi
-{ echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
-echo "${ECHO_T}$ol_cv_winsock" >&6; }
+ fi
fi