From: FX Coudert Date: Wed, 11 Sep 2019 05:12:04 +0000 (+0000) Subject: Fix detection of OpenSSL built w/o deprecated features support (#470) X-Git-Tag: SQUID_5_0_1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=403c4682f34c14e883f87ff960a2f050d481eeca;p=thirdparty%2Fsquid.git Fix detection of OpenSSL built w/o deprecated features support (#470) SSL_library_init() is deprecated since OpenSSL v1.1 and is absent in OpenSSL built without deprecated features. Several distributions (e.g. Homebrew) ship OpenSSL built without deprecated features. --- diff --git a/configure.ac b/configure.ac index 008a85ae43..a1f2823a19 100644 --- a/configure.ac +++ b/configure.ac @@ -1335,7 +1335,7 @@ if test "x$with_openssl" = "xyes"; then AC_CHECK_LIB(crypto,[CRYPTO_new_ex_data],[LIBOPENSSL_LIBS="-lcrypto $LIBOPENSSL_LIBS"],[ AC_MSG_ERROR([library 'crypto' is required for OpenSSL]) ],$LIBOPENSSL_LIBS) - AC_CHECK_LIB(ssl,[SSL_library_init],[LIBOPENSSL_LIBS="-lssl $LIBOPENSSL_LIBS"],[ + AC_CHECK_LIB(ssl,[SSL_CTX_new],[LIBOPENSSL_LIBS="-lssl $LIBOPENSSL_LIBS"],[ AC_MSG_ERROR([library 'ssl' is required for OpenSSL]) ],$LIBOPENSSL_LIBS) ])