1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

use separate #error message when APR[-Util] is of a valid

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
This commit is contained in:
Jeff Trawick
2010-03-03 16:44:57 +00:00
parent 4b5ab55ddb
commit e6fc6d32b6

View File

@@ -21,7 +21,15 @@
#include "apr_strings.h" #include "apr_strings.h"
#include "http_log.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 */ #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 */ register_hooks /* register hooks */
}; };
#else
#error session_crypto_module requires APR v1.4.0 or later
#endif #endif