From: Cliff Woolley Date: Mon, 20 May 2002 21:24:04 +0000 (+0000) Subject: ./configure --enable-http --enable-mods-shared=most would cause mod_http X-Git-Tag: 2.0.37~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b75f380bf85ccdf4def333adbd49cbacc8d8910;p=thirdparty%2Fapache%2Fhttpd.git ./configure --enable-http --enable-mods-shared=most would cause mod_http to get built as a DSO, which it can't be. This forces it to be static only. PR: 9244 Submitted by: Cliff Woolley, and simultaneously by Robin Johnson git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95194 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/config2.m4 b/modules/http/config2.m4 index fce61e70ac4..ecb7e6e52d4 100644 --- a/modules/http/config2.m4 +++ b/modules/http/config2.m4 @@ -4,7 +4,16 @@ APACHE_MODPATH_INIT(http) http_objects="http_core.lo http_protocol.lo http_request.lo" -dnl mod_http freaks out when built as a DSO +dnl mod_http should only be built as a static module for now. +dnl this will hopefully be "fixed" at some point in the future by +dnl refactoring mod_http and moving some things to the core and +dnl vice versa so that the core does not depend upon mod_http. +if test "$enable_http" = "yes"; then + enable_http="static" +elif test "$enable_http" = "shared"; then + AC_MSG_ERROR([mod_http can not be built as a shared DSO]) +fi + APACHE_MODULE(http, HTTP protocol handling, $http_objects, , static) APACHE_MODULE(mime, mapping of file-extension to MIME, , , yes)