config.m4 revision 3a330c2331fc04f7d3f0ce7741bb52b5823f97e1
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktdnl modules enabled in this directory by default
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik FlyktAPACHE_MODPATH_INIT(proxy)
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktif test "$enable_proxy" = "shared"; then
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flykt proxy_mods_enable=shared
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktelif test "$enable_proxy" = "yes"; then
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flykt proxy_mods_enable=yes
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flykt proxy_mods_enable=no
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik FlyktAC_CHECK_DECL(CMSG_DATA, [
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flykt proxy_mods_fdpass_enable="$proxy_mods_enable"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flykt proxy_mods_fdpass_enable="no"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik FlyktAPACHE_MODULE(proxy, Apache proxy module, $proxy_objs, , $proxy_mods_enable)
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktproxy_connect_objs="mod_proxy_connect.lo"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktproxy_ftp_objs="mod_proxy_ftp.lo"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktproxy_http_objs="mod_proxy_http.lo"
3ad0c5d8a4e2e2fa7ffcccd7f3457f577908494eTom Gundersenproxy_fcgi_objs="mod_proxy_fcgi.lo"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktproxy_scgi_objs="mod_proxy_scgi.lo"
5c79bd79839f1e50bd3c34a0670037f7965ca5a4Patrik Flyktproxy_fdpass_objs="mod_proxy_fdpass.lo"
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik Flyktproxy_ajp_objs="mod_proxy_ajp.lo ajp_header.lo ajp_link.lo ajp_msg.lo ajp_utils.lo"
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik Flyktproxy_balancer_objs="mod_proxy_balancer.lo"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flyktcase "$host" in
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt # OS/2 DLLs must resolve all symbols at build time and
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt # these sub-modules need some from the main proxy module
1c4baffc1895809bae9ac36b670af90a4cb9cd7dTom Gundersen proxy_connect_objs="$proxy_connect_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_ftp_objs="$proxy_ftp_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_http_objs="$proxy_http_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_fcgi_objs="$proxy_fcgi_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_scgi_objs="$proxy_scgi_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_fdpass_objs="$proxy_fdpass_objs mod_proxy.la"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt proxy_ajp_objs="$proxy_ajp_objs mod_proxy.la"
1c4baffc1895809bae9ac36b670af90a4cb9cd7dTom Gundersen proxy_balancer_objs="$proxy_balancer_objs mod_proxy.la"
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_connect, Apache proxy CONNECT module, $proxy_connect_objs, , $proxy_mods_enable)
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_ftp, Apache proxy FTP module, $proxy_ftp_objs, , $proxy_mods_enable)
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_http, Apache proxy HTTP module, $proxy_http_objs, , $proxy_mods_enable)
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_fcgi, Apache proxy FastCGI module, $proxy_fcgi_objs, , $proxy_mods_enable)
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_scgi, Apache proxy SCGI module, $proxy_scgi_objs, , $proxy_mods_enable)
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik FlyktAPACHE_MODULE(proxy_fdpass, Apache proxy to Unix Daemon Socket module, $proxy_fdpass_objs, , $proxy_mods_fdpass_enable, [
be3a09b7ffe62b52658e77ae4d6638d1b0dae654Patrik Flykt if test $ac_cv_have_decl_CMSG_DATA = "no"; then
e53fc357a9bb9d0a5362ccc4246d598cb0febd5eLennart Poettering AC_MSG_ERROR([Your system does not support CMSG_DATA.])
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAPACHE_MODULE(proxy_ajp, Apache proxy AJP module, $proxy_ajp_objs, , $proxy_mods_enable)
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAPACHE_MODULE(proxy_balancer, Apache proxy BALANCER module, $proxy_balancer_objs, , $proxy_mods_enable)
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAC_DEFUN([CHECK_SERF], [
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt serf_found="no"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt AC_ARG_WITH(serf, APACHE_HELP_STRING([--with-serf=PREFIX],
36c32f6120a0c3fe19be5aeaa1926e179e8c29baTom Gundersen [Serf client library]),
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt if test "$withval" = "yes" ; then
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt AC_MSG_ERROR([--with-serf requires an argument.])
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt serf_prefix=$withval
f0213e3796b4dd66e546e2de4d677db319f9171bTom Gundersen save_cppflags="$CPPFLAGS"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES -I$serf_prefix/include/serf-0"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt AC_CHECK_HEADERS(serf.h,[
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt save_ldflags="$LDFLAGS"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt LDFLAGS="$LDFLAGS -L$serf_prefix/lib"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt AC_CHECK_LIB(serf-0, serf_context_create,[serf_found="yes"])
851c9f82736c89d423b244a292e153ec7124d309Patrik Flykt LDFLAGS="$save_ldflags"])
851c9f82736c89d423b244a292e153ec7124d309Patrik Flykt CPPFLAGS="$save_cppflags"
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt if test "$serf_found" = "yes"; then
c62c4628d9dbc27effd36143c75abe528f561867Patrik Flykt MOD_SERF_LDADD="-L$serf_prefix/lib -lserf-0"
f2341e0a87cab1558c84c933956e9181d5fb6c52Lennart Poettering APR_ADDTO(INCLUDES, ["-I$serf_prefix/include/serf-0"])
4d7b83da7b78647f4ba3f1d6fa2dc8d7b9833d93Tom Gundersen AC_MSG_ERROR(unable to find serf)
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAPACHE_MODULE(serf, [Reverse proxy module using Serf], , , no, [
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAPR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
c62c4628d9dbc27effd36143c75abe528f561867Patrik FlyktAPACHE_MODPATH_FINISH