]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1749658 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 22 Jun 2016 19:57:52 +0000 (19:57 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 22 Jun 2016 19:57:52 +0000 (19:57 +0000)
Support multiple module dependencies for the final prereq argument to the
APACHE_MODULE macro, as a comma separated list, e.g.

APACHE_MODULE(proxy_http2, [...], [proxy,http2])

will evaluate the availability of mod_proxy, followed by mod_http2

Submitted by: wrowe
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1749773 13f79535-47bb-0310-9956-ffa450edef68

STATUS
acinclude.m4

diff --git a/STATUS b/STATUS
index 7964b0f819301479eb6ba59335fac1dbf13a1af3..e585dbbc5ef5e449917b8ae314d23255cf09c0cc 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -116,13 +116,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) acinclude.m4: Support multiple module dependencies for the final prereq
-     argument to the APACHE_MODULE macro, as a comma separated list
-     trunk patch: http://svn.apache.org/r1749658
-     2.4.x: trunk patch works
-            http://apaste.info/iyv
-     +1: wrowe, jim, rpluem
-
   *) configure: Simplify, and correct dependency handling of mod_proxy_hcheck
      trunk patch: http://svn.apache.org/r1749659
                   http://svn.apache.org/r1749678
index e1537585a7d045b279c5e66aa02387cc1238d32c..e26de5f1ee07bddfaaf367ebe1bcb34146e7797d 100644 (file)
@@ -360,13 +360,14 @@ AC_DEFUN([APACHE_MODULE],[
     dnl that may disable it because of missing dependencies.
     ifelse([$6$7],,:,
            [AC_MSG_RESULT([checking dependencies])
-            ifelse([$7],,:,[if test "$enable_$7" = "no" ; then
+            ifelse([$7],,:,[m4_foreach([prereq],[$7],
+                           [if test "$enable_[]prereq" = "no" ; then
                               enable_$1=no
-                              AC_MSG_WARN("mod_$7 is disabled but required for mod_$1")
-                            elif test "$enable_$1" = "static" && test "$enable_$7" != "static" ; then
+                              AC_MSG_WARN("mod_[]prereq is disabled but required for mod_$1")
+                            elif test "$enable_$1" = "static" && test "$enable_[]prereq" != "static" ; then
                               enable_$1=no
-                              AC_MSG_WARN("cannot build mod_$1 statically if mod_$7 is built shared")
-                            else])
+                              AC_MSG_WARN("cannot build mod_$1 statically if mod_[]prereq is built shared")
+                            el])se])
             ifelse([$6],,:,[  $6])
             ifelse([$7],,:,[fi])
             AC_MSG_CHECKING(whether to enable mod_$1)