From: Amos Jeffries Date: Tue, 14 Dec 2010 02:54:35 +0000 (-0700) Subject: FreeBSD: slightly better version test for pthread support X-Git-Tag: take00~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=794533eaf3822cfbe4ce4b8bf4019f1472e063bd;p=thirdparty%2Fsquid.git FreeBSD: slightly better version test for pthread support The old one could not handle minor releases. This one only looks at the first byte of the numeric version. So will break again when 10.* is released. However 6.* should be dead by then. --- diff --git a/configure.ac b/configure.ac index d029f6507d..cb5bacd394 100644 --- a/configure.ac +++ b/configure.ac @@ -510,7 +510,7 @@ for module in $squid_disk_module_candidates none; do AC_MSG_NOTICE([Windows threads support automatically enabled]) ;; freebsd) - if test $squid_host_os_version -lt 7 ; then + if test `echo "$squid_host_os_version" | cut -b1` -lt 7 ; then AC_MSG_NOTICE(pthread library requires FreeBSD 7 or later) squid_opt_use_diskthreads="no" else