]> granicus.if.org Git - apache/commitdiff
OK, instead of an igly hack, just use the normal
authorJim Jagielski <jim@apache.org>
Mon, 8 Dec 2008 14:51:50 +0000 (14:51 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 8 Dec 2008 14:51:50 +0000 (14:51 +0000)
build system impl to force balancer's config to
happen post proxy

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

modules/proxy/balancers/WHERE_IS_CONFIG_M4.txt [deleted file]
modules/proxy/balancers/config2.m4 [new file with mode: 0644]
modules/proxy/config.m4

diff --git a/modules/proxy/balancers/WHERE_IS_CONFIG_M4.txt b/modules/proxy/balancers/WHERE_IS_CONFIG_M4.txt
deleted file mode 100644 (file)
index d61204e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-The config.m4 file that normally would be located
-in this directory is actually concatted to the end
-of ../config.m4 (ie: modules/proxy/config.m4).
-
-This is done to force the correct loading of the
-submodules. So if additional bundled LB submodules are
-added, ../config.m4 must be updated as well.
-
-There is likely a better way to do this...
diff --git a/modules/proxy/balancers/config2.m4 b/modules/proxy/balancers/config2.m4
new file mode 100644 (file)
index 0000000..55c6add
--- /dev/null
@@ -0,0 +1,20 @@
+APACHE_MODPATH_INIT(proxy/balancers)
+if test "$enable_proxy" = "shared"; then
+  proxy_mods_enable=shared
+elif test "$enable_proxy" = "yes"; then
+  proxy_mods_enable=yes
+else
+  proxy_mods_enable=no
+fi
+
+proxy_lb_br_objs="mod_lbmethod_byrequests.lo"
+proxy_lb_bt_objs="mod_lbmethod_bytraffic.lo"
+proxy_lb_bb_objs="mod_lbmethod_bybusyness.lo"
+proxy_lb_hb_objs="mod_lbmethod_heartbeat.lo"
+
+APACHE_MODULE(lbmethod_byrequests, Apache proxy Load balancing by request counting, $proxy_lb_br_objs, , $proxy_mods_enable)
+APACHE_MODULE(lbmethod_bytraffic, Apache proxy Load balancing by traffic counting, $proxy_lb_bt_objs, , $proxy_mods_enable)
+APACHE_MODULE(lbmethod_bybusyness, Apache proxy Load balancing by busyness, $proxy_lb_bb_objs, , $proxy_mods_enable)
+APACHE_MODULE(lbmethod_heartbeat, Apache proxy Load balancing from Heartbeats, $proxy_lb_hb_objs, , $proxy_mods_enable)
+
+APACHE_MODPATH_FINISH
index 1ffd9274b0461abc7cd2444658a068649571194e..7b71523664c44d5f488099a2bb1ae3dbc4f9870d 100644 (file)
@@ -80,24 +80,3 @@ APACHE_MODULE(serf, [Reverse proxy module using Serf], $serf_objects, , no, [
 APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current/../generators])
 APACHE_MODPATH_FINISH
 
-
-APACHE_MODPATH_INIT(proxy/balancers)
-if test "$enable_proxy" = "shared"; then
-  proxy_mods_enable=shared
-elif test "$enable_proxy" = "yes"; then
-  proxy_mods_enable=yes
-else
-  proxy_mods_enable=no
-fi
-
-proxy_lb_br_objs="mod_lbmethod_byrequests.lo"
-proxy_lb_bt_objs="mod_lbmethod_bytraffic.lo"
-proxy_lb_bb_objs="mod_lbmethod_bybusyness.lo"
-proxy_lb_hb_objs="mod_lbmethod_heartbeat.lo"
-
-APACHE_MODULE(lbmethod_byrequests, Apache proxy Load balancing by request counting, $proxy_lb_br_objs, , $proxy_mods_enable)
-APACHE_MODULE(lbmethod_bytraffic, Apache proxy Load balancing by traffic counting, $proxy_lb_bt_objs, , $proxy_mods_enable)
-APACHE_MODULE(lbmethod_bybusyness, Apache proxy Load balancing by busyness, $proxy_lb_bb_objs, , $proxy_mods_enable)
-APACHE_MODULE(lbmethod_heartbeat, Apache proxy Load balancing from Heartbeats, $proxy_lb_hb_objs, , $proxy_mods_enable)
-
-APACHE_MODPATH_FINISH