]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix shell errors when trying to AC_MSG_RESULT() for --with-module.
authorJeff Trawick <trawick@apache.org>
Sun, 30 Sep 2012 21:55:13 +0000 (21:55 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 30 Sep 2012 21:55:13 +0000 (21:55 +0000)
(The change to IFS hosed any AC_MSG_foo() invocations.)

It is easy enough to reorder the reset of IFS and the AC_MSG_RESULT()
invocation, but there's a big stretch of shell code where AC_MSG_foo()
might be useful someday, so get rid of the commas at the start and
leave IFS alone and AC_MSG_foo() at will.

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

modules/config5.m4

index 7dd021ee29a4e9106ea046e30f90ff197e8dc5b7..661ec15fdfaddd74d48f67c7fe5656ddd8242173 100644 (file)
@@ -3,7 +3,7 @@ AC_ARG_WITH(module,
   APACHE_HELP_STRING(--with-module=module-type:module-file,
                      Enable module-file in the modules/<module-type> directory.),
   [
-    as_save_IFS="$IFS"; IFS=","
+    withval=`echo $withval | sed -e 's/,/ /'`
     for mod in $withval
     do
       modtype=`echo $mod | sed -e's/\(.*\):.*/\1/'`
@@ -51,7 +51,6 @@ EOF
     if test ! -z "$EXTRA_MODLIST"; then
       AC_MSG_RESULT(added:$EXTRA_MODLIST)
     fi
-    IFS="$as_save_IFS"
   ],
   [ AC_MSG_RESULT(none) 
   ])