1
0
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:
Magnus Hagander
2014-07-15 18:04:43 +02:00
parent f9ddcf7543
commit c9e1ad7faf
5 changed files with 22 additions and 0 deletions

11
configure vendored
View File

@ -8509,6 +8509,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; }