]> granicus.if.org Git - apache/commitdiff
Make the call to configure a module a little simpler if the module
authorManoj Kasichainula <manoj@apache.org>
Mon, 6 Dec 1999 02:36:02 +0000 (02:36 +0000)
committerManoj Kasichainula <manoj@apache.org>
Mon, 6 Dec 1999 02:36:02 +0000 (02:36 +0000)
struct's name is the same as the module's.

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

modules/aaa/config.m4

index 39c927e5b69c3e22fd28bad36a8392340b8c0699..4e769badf34aade4b3a66d2299b5e8ea61d74668 100644 (file)
@@ -15,13 +15,13 @@ AC_DEFUN(APACHE_CHECK_STANDARD_MODULE, [
     AC_ARG_ENABLE(patsubst([$1], _, -), [  --enable-]patsubst([$1], _, -), [],
         [enable_$1=$default_$1])
     if test "$enable_[$1]" != "no" ; then
-        MODLIST="$MODLIST $2"
+        MODLIST="$MODLIST ifelse([$2], , [$1], [$2])"
         STANDARD_MODULE([$1])
     fi
     AC_MSG_RESULT([$enable_$1])
 ])
 
-APACHE_CHECK_STANDARD_MODULE(env, env)
+APACHE_CHECK_STANDARD_MODULE(env)
 APACHE_CHECK_STANDARD_MODULE(log_config, config_log)
 
 dnl ## mod_usertrack.c