From 6b75f380bf85ccdf4def333adbd49cbacc8d8910 Mon Sep 17 00:00:00 2001 From: Cliff Woolley Date: Mon, 20 May 2002 21:24:04 +0000 Subject: [PATCH] ./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 --- modules/http/config2.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) -- 2.47.3