]> granicus.if.org Git - apache/commitdiff
Disable event/eventopt if apr skiplist isn't available
authorJeff Trawick <trawick@apache.org>
Sat, 5 Oct 2013 12:44:36 +0000 (12:44 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 5 Oct 2013 12:44:36 +0000 (12:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1529442 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/config.m4
server/mpm/event/config.m4
server/mpm/eventopt/config.m4

index 0b263cbc568598758dc7eb66daefeacaf09e4bb7..07118bd904613a15b44ca8d29be684c28a3c2107 100644 (file)
@@ -38,6 +38,17 @@ AC_CACHE_CHECK([whether APR supports thread-safe pollsets], [ac_cv_have_threadsa
     fi
 ])
 
+dnl See if APR has skiplist
+dnl The base httpd prereq is APR 1.4.x, so we don't have to consider
+dnl earlier versions.
+case $APR_VERSION in
+    1.4*)
+        apr_has_skiplist=no
+        ;;
+    *)
+        apr_has_skiplist=yes
+esac
+
 dnl See if this is a forking platform w.r.t. MPMs
 case $host in
     *mingw32* | *os2-emx*)
index 351f1acf4bd7b3d3a4087821a57e161a6634cd10..c891c75805125071b028a08819f9fb35902644d3 100644 (file)
@@ -7,6 +7,8 @@ elif test $have_threaded_sig_graceful != yes; then
     AC_MSG_RESULT(no - SIG_GRACEFUL cannot be used with a threaded MPM)
 elif test $ac_cv_have_threadsafe_pollset != yes; then
     AC_MSG_RESULT(no - APR_POLLSET_THREADSAFE is not supported)
+elif test $apr_has_skiplist != yes; then
+    AC_MSG_RESULT(no - APR skiplist is not available, need APR 1.5.x or later)
 else
     AC_MSG_RESULT(yes)
     APACHE_MPM_SUPPORTED(event, yes, yes)
index 92f2789a3860fa57ccc2e928fbece109d6ef6168..1b6c1f8336ab676d350b3ae7885b47a544136d5e 100644 (file)
@@ -5,6 +5,8 @@ elif test $ac_cv_define_APR_HAS_THREADS != yes; then
     AC_MSG_RESULT(no - APR does not support threads)
 elif test $have_threaded_sig_graceful != yes; then
     AC_MSG_RESULT(no - SIG_GRACEFUL cannot be used with a threaded MPM)
+elif test $apr_has_skiplist != yes; then
+    AC_MSG_RESULT(no - APR skiplist is not available, need APR 1.5.x or later)
 else
     AC_MSG_RESULT(yes)
     APACHE_MPM_SUPPORTED(eventopt, yes, yes)