]> git.ozlabs.org Git - ppp.git/commitdiff
Fix problem where the detection of openssl failed when pkgconfig isn't available...
authorEivind Næss <eivnaes@yahoo.com>
Thu, 21 Dec 2023 09:29:29 +0000 (01:29 -0800)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 09:29:29 +0000 (09:29 +0000)
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
m4/ax_check_openssl.m4

index 39154c85630d46177068a0ee253d5a4ba6996e11..de8c524a839fdee080592ac6398e3454753490a4 100644 (file)
@@ -68,7 +68,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
         fi
     ])
 
-    AS_IF([test "${with_openssl}" != "no" && test ! ${found}], [
+    AS_IF([test "${with_openssl}" != "no" && test "${found}" != "true"], [
         OPENSSL_INCLUDES=
         for ssldir in $ssldirs; do
             AC_MSG_CHECKING([for openssl/ssl.h in $ssldir])
@@ -84,7 +84,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
             ])
         done])
 
-    AS_IF([test "${with_openssl}" != "no" && test ${found}], [
+    AS_IF([test "${with_openssl}" != "no" && test "${found}" = "true" ], [
 
         # try the preprocessor and linker with our new flags,
         # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS