#! /bin/sh
-# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.686 2009/01/17 00:20:21 kurt Exp .
+# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.687 2009/01/17 00:50:22 kurt Exp .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61.
 #
     ac_cv_func_closesocket=yes
     ac_cv_func_gethostname=yes
 
-       if test $ol_cv_winsock != none -a $ol_cv_winsock != yes; then
+       if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
         LIBS="$LIBS -l$ol_cv_winsock"
+           { echo "$as_me:$LINENO: WARNING: \"set libs to $LIBS\"" >&5
+echo "$as_me: WARNING: \"set libs to $LIBS\"" >&2;};
        fi
 
     if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
 
 
 
-if test "$ac_cv_mingw32" = yes ; then
+if test "$ac_cv_mingw32" = yes -l $ol_cv_msvc = yes ; then
        PLAT=NT
        SLAPD_MODULES_LDFLAGS=
 else
 
     ac_cv_func_closesocket=yes
     ac_cv_func_gethostname=yes
 
-       if test $ol_cv_winsock != none -a $ol_cv_winsock != yes; then
+       if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
         LIBS="$LIBS -l$ol_cv_winsock"
+           AC_MSG_WARN("set libs to $LIBS");
        fi
 
     if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
 dnl They hurt more than they help.
 dnl
 
-if test "$ac_cv_mingw32" = yes ; then
+if test "$ac_cv_mingw32" = yes -l $ol_cv_msvc = yes ; then
        PLAT=NT
        SLAPD_MODULES_LDFLAGS=
 else