From 4789760fc7ecf5b5f564841faee922ac758fd738 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 15 Nov 2009 14:12:40 +0000 Subject: [PATCH] support --enable-mpms-shared (without argument) and --disable-mpms-shared the former builds just the default MPM (or --with-mpm argument) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@836365 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/config2.m4 | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/server/mpm/config2.m4 b/server/mpm/config2.m4 index 76a04e4a7b..3482d3f414 100644 --- a/server/mpm/config2.m4 +++ b/server/mpm/config2.m4 @@ -33,23 +33,31 @@ APACHE_MPM_ENABLED($default_mpm) AC_ARG_ENABLE(mpms-shared, APACHE_HELP_STRING(--enable-mpms-shared=MPM-LIST,Space-separated list of MPM modules to enable for dynamic loading. MPM-LIST=list | "all"),[ - mpm_build=shared - for i in $enableval; do - if test "$i" = "all"; then - for j in $ap_supported_shared_mpms; do - eval "enable_mpm_$j=shared" - APACHE_MPM_ENABLED($j) - done - else - i=`echo $i | sed 's/-/_/g'` - if ap_mpm_supports_shared $i; then - eval "enable_mpm_$i=shared" - APACHE_MPM_ENABLED($i) + if test "$enableval" = "no"; then + mpm_build=static + else + mpm_build=shared +dnl Build just the default MPM if --enable-mpms-shared has no argument. + if test "$enableval" = "yes"; then + enableval=$default_mpm + fi + for i in $enableval; do + if test "$i" = "all"; then + for j in $ap_supported_shared_mpms; do + eval "enable_mpm_$j=shared" + APACHE_MPM_ENABLED($j) + done else - AC_MSG_ERROR([MPM $i does not support dynamic loading.]) + i=`echo $i | sed 's/-/_/g'` + if ap_mpm_supports_shared $i; then + eval "enable_mpm_$i=shared" + APACHE_MPM_ENABLED($i) + else + AC_MSG_ERROR([MPM $i does not support dynamic loading.]) + fi fi - fi - done + done + fi ], [mpm_build=static]) for i in $ap_enabled_mpms; do -- 2.40.0