aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9b4359c6..d86eff8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -262,9 +262,11 @@ if test "$cf_enable_openssl" != no; then
dnl Work around pmake/gmake conditional incompatibilities
AC_SUBST(ENCSPEED, encspeed)
- dnl Do all the HAVE_LIBCRYPTO magic -- and check for ciphers
+ dnl Check the library is linkable
CPPFLAGS="$CPPFLAGS $SSL_LIBS"
- AC_CHECK_LIB(crypto, RSA_free)
+ AC_CHECK_LIB([crypto], [RSA_free], [
+ AC_DEFINE([HAVE_OPENSSL], [1], [Define if OpenSSL appears usable])
+ ])
SSL_LIBS="$SSL_LIBS -lcrypto"
SSL_SRCS_ENABLE='$(SSL_SRCS)'
else