mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#6102,6078 fix winsock detection
This commit is contained in:
parent
2cf9473c46
commit
555b5a6d30
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user