From: Ryan Bloom Date: Wed, 3 Oct 2001 17:47:51 +0000 (+0000) Subject: Fix --enable-mods-shared processing. If most is specified, X-Git-Tag: 2.0.26~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4322fb2e1ccc2d7f34511bb3c9ee657955cbd99;p=thirdparty%2Fapache%2Fhttpd.git Fix --enable-mods-shared processing. If most is specified, then all modules that can be compiled as shared modules are. This was done by adding a module config specifier, static, which denotes that a module can not be compiled as a DSO. Submitted by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91262 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index a2ed80345aa..9915322f041 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Changes with Apache 2.0.26-dev + *) Fix --enable-mods-shared processing. If most is specified, + then all modules that can be compiled as shared modules are. + [Aaron Bannert ] + *) Update the mime.types file to map video/vnd.mpegurl to mxu and add commonly used audio/x-mpegurl for m3u extensions. [Heiko Recktenwald , Lars Eilebrecht] diff --git a/STATUS b/STATUS index 65e67a7ad46..74561709180 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 2.0 STATUS: -*-text-*- -Last modified at [$Date: 2001/10/02 21:21:55 $] +Last modified at [$Date: 2001/10/03 17:47:50 $] Release: @@ -95,12 +95,9 @@ RELEASE SHOWSTOPPERS: to make it agree with the operation of the StartServers directive. - * configure --enable-mods-shared=most option has issues. Example: - - ./configure --enable-mods-shared=most - - This builds mod_headers as a DSO (good) but builds mod_mime - as a compiled-in module (bad). + * Fix the configure script to add a LoadModule directive to + the default httpd.conf for any module that was compiled + as a DSO. * revamp the input filter semantics, per discussions since February (and especially at the hackathon last diff --git a/acinclude.m4 b/acinclude.m4 index efd77c7305e..ad92f1d1f54 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -196,10 +196,11 @@ dnl dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]]) dnl dnl default is one of: -dnl yes -- enabled by default. user must explicitly disable. -dnl no -- disabled under default, most, all. user must explicitly enable. -dnl most -- disabled by default. enabled explicitly or with most or all. -dnl "" -- disabled under default, most. enabled explicitly or with all. +dnl yes -- enabled by default. user must explicitly disable. +dnl no -- disabled under default, most, all. user must explicitly enable. +dnl most -- disabled by default. enabled explicitly or with most or all. +dnl static -- enabled as static by default, must be explicitly changed. +dnl "" -- disabled under default, most. enabled explicitly or with all. dnl dnl basically: yes/no is a hard setting. "most" means follow the "most" dnl setting. otherwise, fall under the "all" setting. @@ -218,11 +219,16 @@ AC_DEFUN(APACHE_MODULE,[ else _apmod_error_fatal="yes" fi - if test "$enable_$1" = "most"; then + if test "$enable_$1" = "static"; then + enable_$1=yes + elif test "$enable_$1" = "yes"; then + enable_$1=$module_default + _apmod_extra_msg=" ($module_selection)" + elif test "$enable_$1" = "most"; then if test "$module_selection" = "most" -o "$module_selection" = "all"; then enable_$1=$module_default _apmod_extra_msg=" ($module_selection)" - else + elif test "$enable_$1" != "yes"; then enable_$1=no fi elif test "$enable_$1" = "maybe-all"; then diff --git a/modules/http/config2.m4 b/modules/http/config2.m4 index 5fec30cc47a..fce61e70ac4 100644 --- a/modules/http/config2.m4 +++ b/modules/http/config2.m4 @@ -4,7 +4,8 @@ APACHE_MODPATH_INIT(http) http_objects="http_core.lo http_protocol.lo http_request.lo" -APACHE_MODULE(http, HTTP protocol handling, $http_objects, , yes) +dnl mod_http freaks out when built as a DSO +APACHE_MODULE(http, HTTP protocol handling, $http_objects, , static) APACHE_MODULE(mime, mapping of file-extension to MIME, , , yes) APACHE_MODPATH_FINISH diff --git a/modules/mappers/config9.m4 b/modules/mappers/config9.m4 index 7ebf46a7b91..ff7ac5de5dc 100644 --- a/modules/mappers/config9.m4 +++ b/modules/mappers/config9.m4 @@ -18,7 +18,7 @@ APACHE_MODULE(rewrite, regex URL translation, , , most, [ ]) if test "$sharedobjs" = "yes"; then - APACHE_MODULE(so, DSO capability, , , yes) + APACHE_MODULE(so, DSO capability, , , static) else APACHE_MODULE(so, DSO capability, , , no) fi