]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
check for the crazy combi of --enable-sha2/gost and --without-ssl :p
authorJelte Jansen <jelte@NLnetLabs.nl>
Thu, 13 Aug 2009 14:07:34 +0000 (14:07 +0000)
committerJelte Jansen <jelte@NLnetLabs.nl>
Thu, 13 Aug 2009 14:07:34 +0000 (14:07 +0000)
configure.ac

index fa23069a9cabca4bd30709edcc56eb4a91deda44..b8c237d0ddbb6daee1e72c902a03e9da2bd169c7 100644 (file)
@@ -90,6 +90,9 @@ ACX_LIBTOOL_C_ONLY
 AC_ARG_ENABLE(sha2, AC_HELP_STRING([--enable-sha2], [Enable SHA256 and SHA512 RRSIG support, experimental]))
 case "$enable_sha2" in
     yes)
+        if test "x$HAVE_SSL" != "xyes"; then
+            AC_MSG_ERROR([RSA/SHA2 enabled, but no SSL support])
+        fi
         AC_MSG_CHECKING(for SHA256 and SHA512)
         AC_CHECK_LIB(crypto, SHA256_Init,, [
             AC_MSG_ERROR([SHA2 enabled, but no SHA2 functions found in OpenSSL])
@@ -103,6 +106,9 @@ esac
 AC_ARG_ENABLE(gost, AC_HELP_STRING([--enable-gost], [Enable GOST support, experimental]))
 case "$enable_gost" in
     yes)
+        if test "x$HAVE_SSL" != "xyes"; then
+            AC_MSG_ERROR([GOST enabled, but no SSL support])
+        fi
         AC_MSG_CHECKING(for GOST)
         AC_CHECK_LIB(crypto, EVP_PKEY_set_type_str,,[AC_MSG_ERROR([OpenSSL >= 1.0.0 is needed for GOST support])])
         AC_DEFINE_UNQUOTED([USE_GOST], [1], [Define this to enable GOST support.])