]> git.sur5r.net Git - openldap/commitdiff
ITS#6102,6078 fix winsock detection
authorHoward Chu <hyc@openldap.org>
Sun, 10 May 2009 09:52:00 +0000 (09:52 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 10 May 2009 09:52:00 +0000 (09:52 +0000)
configure.in

index 80975b82649e3e326a54555c4d49c9d044b96c1f..bde0b0ba4a7a750a5b7c0dfb66be86a4f509da44 100644 (file)
@@ -879,7 +879,7 @@ if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
        AC_CHECK_LIB(V3, sigset)
 fi
 
-if test $ol_cv_msvc ; then
+if test $ol_cv_msvc = yes ; then
    ol_cv_winsock=yes
 fi
 
@@ -890,7 +890,7 @@ if test "$ac_cv_header_winsock_h" = yes; then
        AC_CACHE_CHECK([for winsock], [ol_cv_winsock],[
        save_LIBS="$LIBS"
        for curlib in none ws2_32 wsock32; do
-               if test curlib != none ; then
+               if test $curlib != none ; then
                LIBS="$save_LIBS -l$curlib"
                fi
                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <winsock.h>