httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject [PATCHLET] Apache 2.0 - Expand --with-module
Date Wed, 01 Sep 2004 19:37:40 GMT
I'd like to propose this patch for Apache 2.0/2.1.

Basically, occasionally, I like to build in some development modules
but as statically linked, not as DSOs. What I like to do is
create a small local directory under ./modules and populate that
with the required and config.m4 file (and, of
course, the modules themselves) and then do a

   ./configure --with-module=jimlocal/foo

to statically build and load mod_foo.c in the modules/jimlocal
directory. The below allows for this capability without breaking
the existing usage.

There are some other weird things with this code section
(what that 'cp' is doing there, I have no idea), but at
least this allows for a more robust usage of --with-module

Index: modules/config5.m4
RCS file: /home/cvs/httpd-2.0/modules/config5.m4,v
retrieving revision 1.3
diff -u -r1.3 config5.m4
--- modules/config5.m4	4 Mar 2002 21:20:12 -0000	1.3
+++ modules/config5.m4	1 Sep 2004 19:31:58 -0000
@@ -37,6 +37,8 @@
       mv $modpath_current/ $modpath_current/
     MODLIST="$MODLIST $module"
+    MODULE_DIRS="$MODULE_DIRS $modtype"
+    APACHE_FAST_OUTPUT($modpath_current/Makefile)
   AC_MSG_RESULT(added $withval)
   [ AC_MSG_RESULT(no extra modules) 
   Jim Jagielski   [|]   [|]
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

View raw message