From ca2cf684a7ba4a5d71d6173ab2af70b9ba81f88b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 18 Feb 2014 07:00:50 -0700 Subject: [PATCH] Fix pthread library detection on FreeBSD 10 We should not be using "cut -b1" anywhere to determine OS version number. It drops digits out of the major version number. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3e027125f5..eb1ba037f8 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.47.2