]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix pthread library detection on FreeBSD 10
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Feb 2014 13:57:16 +0000 (06:57 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 18 Feb 2014 13:57:16 +0000 (06:57 -0700)
We should not be using "cut -b1" anywhere to determine OS version
number. It drops digits out of the major version number.

configure.ac

index ad84d5a278b14bd5379c0e43930f65222ff9e732..126b6450cfdd1675b825712fe1d0907620175900 100644 (file)
@@ -606,7 +606,7 @@ for module in $squid_disk_module_candidates none; do
             AC_MSG_NOTICE([Windows threads support automatically enabled])
             ;;
           freebsd)
-            if test `echo "$squid_host_os_version" | cut -b1` -lt 7 ; then
+            if test `echo "$squid_host_os_version" | tr -d .` -lt 70 ; then
                 AC_MSG_NOTICE(pthread library requires FreeBSD 7 or later)
                 squid_opt_use_diskthreads="no"
             else