]> granicus.if.org Git - apache/commitdiff
Allow module names to be hyphenated in the --enable-mods-shared
authorJeff Trawick <trawick@apache.org>
Fri, 27 Apr 2001 18:29:11 +0000 (18:29 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 27 Apr 2001 18:29:11 +0000 (18:29 +0000)
argument.  Previously, we passed through a user-specified hyphen into
the name of the shell variable, yielding an invalid variable name.

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

acinclude.m4

index 56d962db706cbc7a86b4caa259640a575f21ed69..88322705463e3473116b09cc64aa8efe900da09b 100644 (file)
@@ -372,6 +372,7 @@ AC_DEFUN(APACHE_ENABLE_MODULES,[
         module_selection=$i
         module_default=shared
       else
+        i=`echo $i | sed 's/-/_/g'`
        eval "enable_$i=shared"
       fi
     done