summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libhttpd.dsp4
-rw-r--r--modules/mappers/config9.m432
-rw-r--r--os/win32/modules.c2
3 files changed, 9 insertions, 29 deletions
diff --git a/libhttpd.dsp b/libhttpd.dsp
index e6e9ce177c..72856b9e08 100644
--- a/libhttpd.dsp
+++ b/libhttpd.dsp
@@ -423,10 +423,6 @@ SOURCE=.\modules\mappers\mod_so.c
# End Source File
# Begin Source File
-SOURCE=.\modules\mappers\mod_watchdog.c
-# End Source File
-# Begin Source File
-
SOURCE=.\modules\arch\win32\mod_win32.c
# End Source File
# Begin Source File
diff --git a/modules/mappers/config9.m4 b/modules/mappers/config9.m4
index ee916a2f19..88e8c8a9a8 100644
--- a/modules/mappers/config9.m4
+++ b/modules/mappers/config9.m4
@@ -61,30 +61,16 @@ APACHE_MODULE(so, DSO capability, , , $enable_so)
APR_CHECK_APR_DEFINE(APR_HAS_THREADS)
-case "x$enable_watchdog" in
- "xyes")
- if test $ac_cv_define_APR_HAS_THREADS = "no"; then
- AC_MSG_ERROR([mod_watchdog has been requested but cannot be built on your system])
- fi
- ;;
- "xshared")
- AC_MSG_ERROR([mod_watchdog can not be built as a shared DSO])
- ;;
- "xno")
- ;;
- "x")
- enable_watchdog=$ac_cv_define_APR_HAS_THREADS
- ;;
-esac
-
-dnl mod_watchdog can only be built statically.
-if test "x$enable_watchdog" = "xyes"; then
- enable_watchdog="static"
+if test $ac_cv_define_APR_HAS_THREADS = "no"; then
+ enable_watchdog="no"
+else
+ enable_watchdog="most"
fi
-APACHE_MODULE(watchdog, Watchdog module, , , $enable_watchdog)
-
-dnl ### why save the cache?
-AC_CACHE_SAVE
+APACHE_MODULE(watchdog, Watchdog module, , , $enable_watchdog, [
+ if test $ac_cv_define_APR_HAS_THREADS = "no"; then
+ AC_MSG_ERROR([mod_watchdog requires apr to be built with --enable-threads])
+ fi
+])
APACHE_MODPATH_FINISH
diff --git a/os/win32/modules.c b/os/win32/modules.c
index fb34b3db43..6e1adae2c2 100644
--- a/os/win32/modules.c
+++ b/os/win32/modules.c
@@ -35,7 +35,6 @@ AP_DECLARE_DATA module *ap_prelinked_modules[] = {
&mpm_winnt_module,
&http_module,
&so_module,
- &watchdog_module,
NULL
};
@@ -45,7 +44,6 @@ ap_module_symbol_t ap_prelinked_module_symbols[] = {
{"mpm_winnt_module", &mpm_winnt_module},
{"http_module", &http_module},
{"so_module", &so_module},
- {"watchdog_module", &watchdog_module},
{NULL, NULL}
};