From 549f3645760ad6e9e6b6f7e7673325a94e233800 Mon Sep 17 00:00:00 2001 From: cage Date: Sun, 13 Dec 2020 20:56:27 +0100 Subject: [PATCH] - fixed ssl checking in configure script (was given error when the library was actually found). --- configure | 7 +++++++ configure.ac | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index b844309..bd159fb 100755 --- a/configure +++ b/configure @@ -6212,6 +6212,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_get_version" >&5 $as_echo "$ac_cv_lib_ssl_SSL_get_version" >&6; } if test "x$ac_cv_lib_ssl_SSL_get_version" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSSL 1 +_ACEOF + + LIBS="-lssl $LIBS" + +else as_fn_error $? "Can not find libssl." "$LINENO" 5 fi diff --git a/configure.ac b/configure.ac index 79c828e..df86516 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ AM_GNU_GETTEXT([external]) AC_CHECK_LIB([idn2], [idn2_to_ascii_8z], [], AC_MSG_ERROR([Can not this function find libidn2.])) -AC_CHECK_LIB([ssl], [SSL_get_version], AC_MSG_ERROR([Can not find libssl.])) +AC_CHECK_LIB([ssl], [SSL_get_version], [], AC_MSG_ERROR([Can not find libssl.])) AC_PATH_PROG([LISP_COMPILER],[sbcl],[no])