mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Detect presence of SSL_get_current_compression
Apparently we still build against OpenSSL so old that it doesn't have this function, so add an autoconf check for it to make the buildfarm happy. If the function doesn't exist, always return that compression is disabled, since presumably the actual compression functionality is always missing. For now, hardcode the function as present on MSVC, since we should hopefully be well beyond those old versions on that platform.
This commit is contained in:
11
configure
vendored
11
configure
vendored
@ -8511,6 +8511,17 @@ 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; }
|
||||
|
Reference in New Issue
Block a user