]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
./configure --enable-http --enable-mods-shared=most would cause mod_http
authorCliff Woolley <jwoolley@apache.org>
Mon, 20 May 2002 21:24:04 +0000 (21:24 +0000)
committerCliff Woolley <jwoolley@apache.org>
Mon, 20 May 2002 21:24:04 +0000 (21:24 +0000)
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 <robbat2@orbis-terrarum.net>

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

modules/http/config2.m4

index fce61e70ac4d99aa62e2ab9ec20de1f8639d1793..ecb7e6e52d48e7e5e983b84d580d49dfe177e479 100644 (file)
@@ -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)