summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/apr_hints.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4
index 4ba64a8cf..eb80c8f5a 100644
--- a/build/apr_hints.m4
+++ b/build/apr_hints.m4
@@ -138,7 +138,7 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
*-freebsd*)
APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
os_version=`sysctl -n kern.osreldate`
- dnl 502102 is when libc_r switched to libpthread (aka libkse).
+ # 502102 is when libc_r switched to libpthread (aka libkse).
if test $os_version -ge "502102"; then
apr_cv_pthreads_cflags="none"
apr_cv_pthreads_lib="-lpthread"
@@ -146,6 +146,10 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
apr_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT"
APR_SETIFNULL(enable_threads, [no])
fi
+ # prevent use of KQueue before FreeBSD 4.8
+ if test $os_version -lt "480000"; then
+ APR_SETIFNULL(ac_cv_func_kqueue, no)
+ fi
;;
*-next-nextstep*)
APR_SETIFNULL(CFLAGS, [-O])