diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-07-08 10:38:47 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-07-08 10:38:47 +0000 |
commit | 13c1387eed9cde12ef680dc237df5255b89c29ae (patch) | |
tree | 0b2c0f19015244416bd962359aac930dc80cd7b6 /build/apr_hints.m4 | |
parent | 2d9f1007eb5d3860aff984184fed0229b2985dd2 (diff) | |
download | libapr-13c1387eed9cde12ef680dc237df5255b89c29ae.tar.gz |
* build/apr_hints.m4 (APR_PRELOAD): Use full path to sysctl in case
$PATH does not contain /sbin, or fail gracefully if /sbin/sysctl is
missing.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_hints.m4')
-rw-r--r-- | build/apr_hints.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4 index eb80c8f5a..928474a69 100644 --- a/build/apr_hints.m4 +++ b/build/apr_hints.m4 @@ -137,7 +137,11 @@ 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` + if test -x /sbin/sysctl; then + os_version=`sysctl -n kern.osreldate` + else + os_version=000000 + fi # 502102 is when libc_r switched to libpthread (aka libkse). if test $os_version -ge "502102"; then apr_cv_pthreads_cflags="none" |