1
dnl modules enabled in this directory by default
3
dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
5
APACHE_MODPATH_INIT(filters)
7
APACHE_MODULE(ext_filter, external filter module, , , most)
8
APACHE_MODULE(include, Server Side Includes, , , yes)
9
APACHE_MODULE(filter, Smart Filtering, , , yes)
11
if test "$ac_cv_ebcdic" = "yes"; then
12
# mod_charset_lite can be very useful on an ebcdic system,
13
# so include it by default
14
APACHE_MODULE(charset_lite, character set translation, , , yes)
16
APACHE_MODULE(charset_lite, character set translation, , , no)
20
APACHE_MODULE(deflate, Deflate transfer encoding support, , , most, [
21
AC_ARG_WITH(z, APACHE_HELP_STRING(--with-z=DIR,use a specific zlib library),
23
if test "x$withval" != "xyes" && test "x$withval" != "x"; then
24
ap_zlib_base="$withval"
27
if test "x$ap_zlib_base" = "x"; then
28
AC_MSG_CHECKING([for zlib location])
29
AC_CACHE_VAL(ap_cv_zlib,[
30
for dir in /usr/local /usr ; do
31
if test -d $dir && test -f $dir/include/zlib.h; then
37
ap_zlib_base=$ap_cv_zlib
38
if test "x$ap_zlib_base" = "x"; then
40
AC_MSG_RESULT([not found])
42
AC_MSG_RESULT([$ap_zlib_base])
45
if test "$enable_deflate" != "no"; then
46
ap_save_includes=$INCLUDES
47
ap_save_ldflags=$LDFLAGS
48
ap_save_cppflags=$CPPFLAGS
49
if test "$ap_zlib_base" != "/usr"; then
50
APR_ADDTO(INCLUDES, [-I${ap_zlib_base}/include])
51
dnl put in CPPFLAGS temporarily so that AC_TRY_LINK below will work
52
CPPFLAGS="$CPPFLAGS $INCLUDES"
53
APR_ADDTO(LDFLAGS, [-L${ap_zlib_base}/lib])
54
if test "x$ap_platform_runtime_link_flag" != "x"; then
55
APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag${ap_zlib_base}/lib])
58
APR_ADDTO(LIBS, [-lz])
59
AC_MSG_CHECKING([for zlib library])
60
AC_TRY_LINK([#include <zlib.h>], [int i = Z_OK;],
62
APR_SETVAR(MOD_DEFLATE_LDADD, [-lz])],
63
[AC_MSG_RESULT(not found)
65
INCLUDES=$ap_save_includes
66
LDFLAGS=$ap_save_ldflags])
67
APR_REMOVEFROM(LIBS, [-lz])
68
CPPFLAGS=$ap_save_cppflags