summaryrefslogtreecommitdiffstats
path: root/modules/generators/config5.m4
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-12-26 23:46:09 +0100
committerRyan Bloom <rbb@apache.org>2000-12-26 23:46:09 +0100
commit0ef67c93b0049623e9d62dbd1e1d0d12c62c2f0a (patch)
treeecd000f97dc950afdcd012329cae9b1ea8f67131 /modules/generators/config5.m4
parentAllow buildconf to find the config.m4 files in the correct order. This (diff)
downloadapache2-0ef67c93b0049623e9d62dbd1e1d0d12c62c2f0a.tar.xz
apache2-0ef67c93b0049623e9d62dbd1e1d0d12c62c2f0a.zip
Move the config.m4 file to config5.m4 in the generators directory so that
we can actually make the cgi module decision based on MPM. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87527 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/generators/config5.m4')
-rw-r--r--modules/generators/config5.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/generators/config5.m4 b/modules/generators/config5.m4
new file mode 100644
index 0000000000..2a1ed8ff27
--- /dev/null
+++ b/modules/generators/config5.m4
@@ -0,0 +1,28 @@
+dnl modules enabled in this directory by default
+
+dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
+
+APACHE_MODPATH_INIT(generators)
+
+APACHE_MODULE(status, process/thread monitoring, , , no)
+APACHE_MODULE(autoindex, directory listing, , , yes)
+APACHE_MODULE(asis, as-is filetypes, , , yes)
+APACHE_MODULE(info, server information, , , no)
+APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no)
+
+LTFLAGS="$LTFLAGS -export-dynamic"
+
+if test "$apache_cv_mpm" = "mpmt_pthread" -o "$apache_cv_mpm" = "dexter"; then
+# if we are using a threaded MPM, we will get better performance with
+# mod_cgid, so make it the default.
+ APACHE_MODULE(cgid, CGI scripts, , , yes)
+ APACHE_MODULE(cgi, CGI scripts, , , no)
+else
+# if we are using a non-threaded MPM, it makes little sense to use
+# mod_cgid, and it just opens up holes we don't need. Make mod_cgi the
+# default
+ APACHE_MODULE(cgi, CGI scripts, , , yes)
+ APACHE_MODULE(cgid, CGI scripts, , , no)
+fi
+
+APACHE_MODPATH_FINISH