mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Move check for SSL_get_current_compression to run on mingw
Mingw uses a different header file than msvc, so we don't get the hardcoded value, so we need the configure test to run.
This commit is contained in:
22
configure
vendored
22
configure
vendored
@ -8511,17 +8511,6 @@ else
|
||||
as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
|
||||
fi
|
||||
|
||||
for ac_func in SSL_get_current_compression
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
|
||||
if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
|
||||
$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
|
||||
@ -8640,6 +8629,17 @@ else
|
||||
fi
|
||||
|
||||
fi
|
||||
for ac_func in SSL_get_current_compression
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
|
||||
if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
if test "$with_pam" = yes ; then
|
||||
|
@ -951,11 +951,11 @@ if test "$with_openssl" = yes ; then
|
||||
if test "$PORTNAME" != "win32"; then
|
||||
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
|
||||
AC_CHECK_LIB(ssl, SSL_library_init, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
|
||||
AC_CHECK_FUNCS([SSL_get_current_compression])
|
||||
else
|
||||
AC_SEARCH_LIBS(CRYPTO_new_ex_data, eay32 crypto, [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])])
|
||||
AC_SEARCH_LIBS(SSL_library_init, ssleay32 ssl, [], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])])
|
||||
fi
|
||||
AC_CHECK_FUNCS([SSL_get_current_compression])
|
||||
fi
|
||||
|
||||
if test "$with_pam" = yes ; then
|
||||
|
Reference in New Issue
Block a user