Add support for OpenSSL 1.1.0 to configure script

OpenSSL 1.1.0 removed the SSLeay() function and replaced it with a macro, that AC_CHECK_LIB can't see.

Search for ERR_get_error() instead.
This commit is contained in:
Kevin Easton
2017-03-17 00:38:46 +11:00
parent 2fa0bf818a
commit 184af728c7
3 changed files with 15 additions and 13 deletions

View File

@@ -562,8 +562,8 @@ case "$with_ssl" in
esac
case "$with_ssl" in
yes|check)
AC_CHECK_LIB([crypto], [SSLeay], [], [], [])
if test x"$ac_cv_lib_crypto_SSLeay" = x"yes"; then
AC_CHECK_LIB([crypto], [ERR_get_error], [], [], [])
if test x"$ac_cv_lib_crypto_ERR_get_error" = x"yes"; then
AC_CHECK_LIB([ssl], [SSL_accept], [], [], [])
fi
if test x"$ac_cv_lib_ssl_SSL_accept" = x"yes"; then