summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2001-08-19 18:00:59 +0200
committerJustin Erenkrantz <jerenkrantz@apache.org>2001-08-19 18:00:59 +0200
commit6aee4107301c7912fa652d2f5e4b57c1caef902c (patch)
treee18e8747a2bc90fed30ba5afd99e8832bde39ad5 /acinclude.m4
parentadjust to UNP_ -> APR_URI_UNP_ rename (diff)
downloadapache2-6aee4107301c7912fa652d2f5e4b57c1caef902c.tar.xz
apache2-6aee4107301c7912fa652d2f5e4b57c1caef902c.zip
Per discussion on new-httpd, change the logic to do the following:
--enable-modules=most will disable a module if it can not be built --enable-modules=all will error if a module can not be built --enable-modules=foo will error if the specified module can not be built (even if --enable-modules=most is set) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90360 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m413
1 files changed, 12 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 21bf5d6cf8..311494061b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -202,6 +202,13 @@ AC_DEFUN(APACHE_MODULE,[
AC_ARG_ENABLE(translit($1,_,-),optname() substr([ ],len(optname()))$2,,enable_$1=ifelse($5,,maybe-all,$5))
undefine([optname])dnl
_apmod_extra_msg=""
+ dnl When --enable-modules=most is set and the module was not explicitly
+ dnl requested, allow a module to disable itself if its pre-reqs fail.
+ if test "$module_selection" = "most" -a "$enable_$1" = "most"; then
+ _apmod_error_fatal="no"
+ else
+ _apmod_error_fatal="yes"
+ fi
if test "$enable_$1" = "most"; then
if test "$module_selection" = "most" -o "$module_selection" = "all"; then
enable_$1=$module_default
@@ -224,7 +231,11 @@ AC_DEFUN(APACHE_MODULE,[
$6
AC_MSG_CHECKING(whether to enable mod_$1)
if test "$enable_$1" = "no"; then
- _apmod_extra_msg=" (disabled)"
+ if test "$_apmod_error_fatal" = "no"; then
+ _apmod_extra_msg=" (disabled)"
+ else
+ AC_MSG_ERROR([mod_$1 has been requested but can not be built due to prerequisite failures])
+ fi
fi])
fi
AC_MSG_RESULT($enable_$1$_apmod_extra_msg)