diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-02-06 15:43:41 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-02-06 15:43:41 -0300 |
commit | f0416e8d8191e7eee3d57a8578d9a53b880ba121 (patch) | |
tree | b8382f7f4f4bb705140fc4e3c3f15441f4ac2538 | |
parent | 9bf7e921e7807def51f32ff48ad6920618735a8d (diff) | |
download | evol-hercules-f0416e8d8191e7eee3d57a8578d9a53b880ba121.tar.gz evol-hercules-f0416e8d8191e7eee3d57a8578d9a53b880ba121.tar.bz2 evol-hercules-f0416e8d8191e7eee3d57a8578d9a53b880ba121.tar.xz evol-hercules-f0416e8d8191e7eee3d57a8578d9a53b880ba121.zip |
[skip ci] Note: It may catch fire
-rw-r--r-- | configure.ac | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac index 8a89d54..f408b58 100644 --- a/configure.ac +++ b/configure.ac @@ -335,19 +335,10 @@ AC_SEARCH_LIBS([pcre_study], [pcre], [], AC_MSG_ERROR([PCRE not found or incompa # AC_MSG_CHECKING([OpenSSL library]) -dnl Order matters! -if test "$PORTNAME" != "win32"; then - AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])]) - FOUND_SSL_LIB="no" - AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [FOUND_SSL_LIB="yes"]) - AC_CHECK_LIB(ssl, SSL_library_init, [FOUND_SSL_LIB="yes"]) - AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])]) -else - AC_SEARCH_LIBS(CRYPTO_new_ex_data, eay32 crypto, [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])]) - FOUND_SSL_LIB="no" - AC_SEARCH_LIBS(OPENSSL_init_ssl, ssleay32 ssl, [FOUND_SSL_LIB="yes"]) - AC_SEARCH_LIBS(SSL_library_init, ssleay32 ssl, [FOUND_SSL_LIB="yes"]) - AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])]) -fi +AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_WARN([library 'crypto' is required for OpenSSL])]) +FOUND_SSL_LIB="no" +AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [FOUND_SSL_LIB="yes"]) +AC_CHECK_LIB(ssl, SSL_library_init, [FOUND_SSL_LIB="yes"]) +AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_WARN([library 'ssl' is required for OpenSSL])]) AC_OUTPUT(Makefile src/Makefile) |