config.m4 revision 6f912b4ad14f622aa8d57f887c8c745e13ff6dbf
dnl modules enabled in this directory by default
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
APACHE_MODPATH_INIT(aaa)
APACHE_MODULE(access, host-based access control, , , yes)
APACHE_MODULE(auth, user-based access control, , , yes)
APACHE_MODULE(auth_anon, anonymous user access, , , most)
APACHE_MODULE(auth_dbm, DBM-based access databases, , , most, [
AC_SEARCH_LIBS(dbm_open,[c db1],,enable_auth_dbm=no)
dnl Glibc 2.1's ndbm.h includes <db.h> in ndbm.h. So, we need to find
dnl where db.h lives. (glibc 2.2 includes <db1/db.h>.)
AC_TRY_COMPILE([#include "ndbm.h"], [dbm_open("/dev/null", 0, 0)],
ap_good_db_path="yes", ap_good_db_path="no")
if test "$ap_good_db_path" = "no"; then
ap_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I/usr/include/db1"
AC_TRY_COMPILE([#include "ndbm.h"], [dbm_open("/dev/null", 0, 0)],
ap_good_db_path="yes", ap_good_db_path="no")
if test "$ap_good_db_path" = "no"; then
CPPFLAGS=$ap_old_cppflags
enable_auth_dbm=no
fi
fi
])
APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [
ap_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$APR_SOURCE_DIR/include -I$abs_builddir/srclib/apr/include"
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)
CPPFLAGS=$ap_old_cppflags
])
APR_ADDTO(LT_LDFLAGS,-export-dynamic)
APACHE_MODPATH_FINISH