]> granicus.if.org Git - apache/commitdiff
* acinclude.m4 (APACHE_ENABLE_MODULES): Support passing "none" to
authorJoe Orton <jorton@apache.org>
Fri, 16 Dec 2005 14:46:54 +0000 (14:46 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 16 Dec 2005 14:46:54 +0000 (14:46 +0000)
--enable-modules to build an httpd with no optional modules enabled.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357168 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4

index 742711fa8d40572e000e7e20027fd751da989fa7..98a9ff18afdd816c75d25a400fdd83a477ef677c 100644 (file)
@@ -288,15 +288,20 @@ AC_DEFUN(APACHE_ENABLE_MODULES,[
   module_default=yes
 
   AC_ARG_ENABLE(modules,
-  APACHE_HELP_STRING(--enable-modules=MODULE-LIST,Space-separated list of modules to enable | "all" | "most"),[
-    for i in $enableval; do
-      if test "$i" = "all" -o "$i" = "most"; then
-        module_selection=$i
-      else
-        i=`echo $i | sed 's/-/_/g'`
-        eval "enable_$i=yes"
-      fi
-    done
+  APACHE_HELP_STRING(--enable-modules=MODULE-LIST,Space-separated list of modules to enable | "all" | "most" | "none"),[
+    if test "$enableval" = "none"; then
+       module_default=no
+       module_selection=none
+    else
+      for i in $enableval; do
+        if test "$i" = "all" -o "$i" = "most"; then
+          module_selection=$i
+        else
+          i=`echo $i | sed 's/-/_/g'`
+          eval "enable_$i=yes"
+        fi
+      done
+    fi
   ])
   
   AC_ARG_ENABLE(mods-shared,