Skip to content

Commit 0e34d82

Browse files
committed
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.
1 parent 3b70e97 commit 0e34d82

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

configure

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8511,17 +8511,6 @@ else
85118511
as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
85128512
fi
85138513

8514-
for ac_func in SSL_get_current_compression
8515-
do :
8516-
ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
8517-
if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
8518-
cat >>confdefs.h <<_ACEOF
8519-
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
8520-
_ACEOF
8521-
8522-
fi
8523-
done
8524-
85258514
else
85268515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
85278516
$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
@@ -8640,6 +8629,17 @@ else
86408629
fi
86418630

86428631
fi
8632+
for ac_func in SSL_get_current_compression
8633+
do :
8634+
ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
8635+
if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
8636+
cat >>confdefs.h <<_ACEOF
8637+
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
8638+
_ACEOF
8639+
8640+
fi
8641+
done
8642+
86438643
fi
86448644

86458645
if test "$with_pam" = yes ; then

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,11 +951,11 @@ if test "$with_openssl" = yes ; then
951951
if test "$PORTNAME" != "win32"; then
952952
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
953953
AC_CHECK_LIB(ssl, SSL_library_init, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
954-
AC_CHECK_FUNCS([SSL_get_current_compression])
955954
else
956955
AC_SEARCH_LIBS(CRYPTO_new_ex_data, eay32 crypto, [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])])
957956
AC_SEARCH_LIBS(SSL_library_init, ssleay32 ssl, [], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])])
958957
fi
958+
AC_CHECK_FUNCS([SSL_get_current_compression])
959959
fi
960960

961961
if test "$with_pam" = yes ; then

0 commit comments

Comments
 (0)