]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - m4/pdns_check_libcrypto.m4
Merge pull request #7653 from pieterlexis/docker-ignore
[thirdparty/pdns.git] / m4 / pdns_check_libcrypto.m4
index b0e6a39e4cf1b2f6eb5b4223f23e3d790429d099..c71c98acc8208cb22fee669e51cc582f2c731a0d 100644 (file)
@@ -90,6 +90,10 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
         # it will just work!
     fi
 
+    if $found; then
+        AC_DEFINE([HAVE_LIBCRYPTO], [1], [Define to 1 if you have OpenSSL libcrypto])
+    fi
+
     # try the preprocessor and linker with our new flags,
     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
 
@@ -120,4 +124,5 @@ AC_DEFUN([PDNS_CHECK_LIBCRYPTO], [
     AC_SUBST([LIBCRYPTO_INCLUDES])
     AC_SUBST([LIBCRYPTO_LIBS])
     AC_SUBST([LIBCRYPTO_LDFLAGS])
+    AM_CONDITIONAL([HAVE_LIBCRYPTO], [test "x$LIBCRYPTO_LIBS" != "x"])
 ])