mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
Fix finding OpenSSL when 1.1 with deprecated APIs disabled
SSL_library_init is a deprecated function. OPENSSL_init_ssl is not in 1.0.2. SSL_CTX_new is in both.
This commit is contained in:
parent
c1b604ee6a
commit
cff1385b39
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ PKG_CHECK_MODULES([OPENSSL], [openssl], [
|
||||||
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
|
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
|
||||||
LIBS="$LIBS $OPENSSL_LIBS"
|
LIBS="$LIBS $OPENSSL_LIBS"
|
||||||
], [
|
], [
|
||||||
AC_CHECK_LIB([ssl], [SSL_library_init], [
|
AC_CHECK_LIB([ssl], [SSL_CTX_new], [
|
||||||
LIBS="$LIBS -lssl -lcrypto"
|
LIBS="$LIBS -lssl -lcrypto"
|
||||||
], [
|
], [
|
||||||
AC_MSG_ERROR([The OpenSSL library was not found])
|
AC_MSG_ERROR([The OpenSSL library was not found])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue