summaryrefslogtreecommitdiff
path: root/modules/aaa/config.m4
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2001-08-17 00:31:50 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2001-08-17 00:31:50 +0000
commit024d0191a578338d37e8543cce9c87891c761673 (patch)
tree6d2862691b17b5c84e4d6f3072e91e72c145387b /modules/aaa/config.m4
parent6c66979a94dbe397745c3c6c4d961f6259af125d (diff)
downloadhttpd-024d0191a578338d37e8543cce9c87891c761673.tar.gz
Fix --enable-modules=all breakage with mod_auth_db and mod_auth_digest
by allowing a module to disable itself if its prerequisites are not met. This introduces the subtle nuance that if you request a module and you don't meet its prerequisites, it'll refuse to build itself. mod_ssl exits if its prerequisites are not met. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/config.m4')
-rw-r--r--modules/aaa/config.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/aaa/config.m4 b/modules/aaa/config.m4
index e425da32b3..a207aa6033 100644
--- a/modules/aaa/config.m4
+++ b/modules/aaa/config.m4
@@ -10,11 +10,15 @@ APACHE_MODULE(auth_anon, anonymous user access, , , most)
APACHE_MODULE(auth_dbm, DBM-based access databases, , , most)
APACHE_MODULE(auth_db, DB-based access databases, , , , [
- AC_CHECK_HEADERS(db.h)
- AC_CHECK_LIB(db,main)
+ AC_CHECK_HEADERS(db.h,,enable_auth_db=no)
+ AC_CHECK_LIB(db,main,,enable_auth_db=no)
])
-APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most)
+APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [
+ AC_TRY_COMPILE([#include <apr.h>],
+ [#if !APR_HAS_RANDOM #error You need APR random support to use auth_digest. #endif],,
+ enable_auth_digest=no)
+])
APR_ADDTO(LT_LDFLAGS,-export-dynamic)