summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-07-07 19:16:35 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-07-07 19:16:35 +0000
commit2d9f1007eb5d3860aff984184fed0229b2985dd2 (patch)
tree1aa56a875db0d4b26113ace3e28d51971de6d6ea
parent187e4d71342faa6696fb00e4c04212704e88ee80 (diff)
downloadlibapr-2d9f1007eb5d3860aff984184fed0229b2985dd2.tar.gz
* build/apr_hints.m4 (APR_PRELOAD): Prevent use of kqueue before
FreeBSD 4.8 (thanks to Craig Rodrigues). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65269 13f79535-47bb-0310-9956-ffa450edef68
-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])