use separate #error message when APR[-Util] is of a valid
authorJeff Trawick <trawick@apache.org>
Wed, 3 Mar 2010 16:44:57 +0000 (16:44 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 3 Mar 2010 16:44:57 +0000 (16:44 +0000)
version but wasn't built with crypto support

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@918562 13f79535-47bb-0310-9956-ffa450edef68

modules/session/mod_session_crypto.c

index f31c7786952daf514b1c7c4d63e03d7ddbdb60e2..5cbf5a463675c7dd5c6c1f27612f4c7cf63727ad 100644 (file)
 #include "apr_strings.h"
 #include "http_log.h"
 
-#if (APU_MAJOR_VERSION > 1 || (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 4)) && APU_HAVE_CRYPTO > 0
+#if APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION < 4
+
+#error session_crypto_module requires APR v1.4.0 or later
+
+#elif APU_HAVE_CRYPTO == 0
+
+#error Crypto support must be enabled in APR
+
+#else
 
 #include "apr_crypto.h"                /* for apr_*_crypt et al */
 
@@ -598,6 +606,4 @@ module AP_MODULE_DECLARE_DATA session_crypto_module =
     register_hooks                    /* register hooks */
 };
 
-#else
-#error session_crypto_module requires APR v1.4.0 or later
 #endif