ITS#6102,6078 fix winsock detection

This commit is contained in:
Howard Chu 2009-05-10 09:52:00 +00:00
parent 2cf9473c46
commit 555b5a6d30

View 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>