]> granicus.if.org Git - apache/commitdiff
Simplify, and correct the dependency handling of mod_proxy_hcheck
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 22 Jun 2016 12:23:34 +0000 (12:23 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 22 Jun 2016 12:23:34 +0000 (12:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749659 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/config.m4

index 4d95050f4c860be6bc8cd2422577e9ab081eca67..c6d197e1c14c3e04800b16aff7ea6210cf44664d 100644 (file)
@@ -10,14 +10,6 @@ else
   proxy_mods_enable=most
 fi
 
-if test "$proxy_mods_enable" = "no"; then
-  enable_proxy_hcheck=no
-fi
-dnl If enable_proxy_hcheck is unset handle it like other proxy modules
-if test -z "$enable_proxy_hcheck" ; then
-  enable_proxy_hcheck="$proxy_mods_enable"
-fi
-
 proxy_objs="mod_proxy.lo proxy_util.lo"
 APACHE_MODULE(proxy, Apache proxy module, $proxy_objs, , $proxy_mods_enable)
 
@@ -76,7 +68,14 @@ APACHE_MODULE(serf, [Reverse proxy module using Serf], , , no, [
 ])
 
 APACHE_MODULE(proxy_express, mass reverse-proxy module. Requires --enable-proxy., , , $proxy_mods_enable,, proxy)
-APACHE_MODULE(proxy_hcheck, reverse-proxy health-check module. Requires --enable-proxy and --enable-watchdog., , , $enable_proxy_hcheck,, watchdog)
+APACHE_MODULE(proxy_hcheck, [reverse-proxy health-check module. Requires --enable-proxy and --enable-watchdog.], , ,[
+  $proxy_mods_enable
+  dnl Verify that both proxy_mods_enable above and watchdog below are enabled
+  dnl when --enable-proxy-hcheck isn't explicitly elected
+  if test "$enable_watchdog" = "no"; then
+    enable_proxy_hcheck=no;
+  fi
+], , [proxy,watchdog])
 
 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])