1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-05 05:30:39 +03:00
Files
apache/modules/session/config.m4
Stefan Fritsch bd5efb04fa We still have to pass the dependency check to APACHE_MODULE to ensure
that mod_session_crypto is disabled with --enable-mods-shared=reallyall


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199046 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 01:34:58 +00:00

69 lines
2.1 KiB
Plaintext

dnl modules enabled in this directory by default
if test -z "$enable_session" ; then
session_mods_enable=most
else
session_mods_enable=$enable_session
fi
dnl Session
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
APACHE_MODPATH_INIT(session)
dnl Session modules; modules that are capable of storing key value pairs in
dnl various places, such as databases, LDAP, or cookies.
dnl
session_cookie_objects='mod_session_cookie.lo'
session_crypto_objects='mod_session_crypto.lo'
session_dbd_objects='mod_session_dbd.lo'
case "$host" in
*os2*)
# OS/2 DLLs must resolve all symbols at build time
# and we need some from main session module
session_cookie_objects="$session_cookie_objects mod_session.la"
session_crypto_objects="$session_crypto_objects mod_session.la"
session_dbd_objects="$session_dbd_objects mod_session.la"
;;
esac
APACHE_MODULE(session, session module, , , most)
APACHE_MODULE(session_cookie, session cookie module, $session_cookie_objects, , $session_mods_enable)
if test "$enable_session_crypto" != ""; then
session_mods_enable_crypto=$enable_session_crypto
else
session_mods_enable_crypto=$session_mods_enable
fi
if test "$session_mods_enable_crypto" != "no"; then
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
AC_TRY_COMPILE([#include <apr_crypto.h>],[
#if APU_HAVE_CRYPTO == 0
#error no crypto support
#endif
], [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
CPPFLAGS="$saved_CPPFLAGS"
if test $ap_HAVE_APR_CRYPTO = "no"; then
AC_MSG_WARN([Your APR does not include SSL/EVP support.])
if test "$enable_session_crypto" != "" -a "$enable_session_crypto" != "no"; then
AC_MSG_ERROR([mod_session_crypto cannot be enabled])
fi
session_mods_enable_crypto="no"
fi
fi
APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , $session_mods_enable_crypto, [
if test "$session_mods_enable_crypto" = "no" ; then
enable_session_crypto=no
fi
])
APACHE_MODULE(session_dbd, session dbd module, $session_dbd_objects, , $session_mods_enable)
APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
APACHE_MODPATH_FINISH