]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
FreeBSD: slightly better version test for pthread support
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 14 Dec 2010 02:54:35 +0000 (19:54 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 14 Dec 2010 02:54:35 +0000 (19:54 -0700)
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.

configure.ac

index d029f6507df8cfedccf9137c09ddf3c95a2a7902..cb5bacd394d52ed37cc149ae783a148e09fb1af3 100644 (file)
@@ -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