changeset 1173:5789206ce65b

. Expand the versions of ccache which should be acceptable. In particular, include NetBSD's ccache 3.2.x. Authored by: Christos Zoulas <christos@zoulas.com>
author Greg Lewis <glewis@eyesbeyond.com>
date Sat, 14 Mar 2015 09:47:35 -0700
parents 9408a3ea9596
children 1a82bfcb7d4b
files common/autoconf/build-performance.m4
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/common/autoconf/build-performance.m4	Sun Feb 01 21:04:41 2015 -0800
+++ b/common/autoconf/build-performance.m4	Sat Mar 14 09:47:35 2015 -0700
@@ -208,8 +208,8 @@
     # Only use ccache if it is 3.1.4 or later, which supports
     # precompiled headers.
     AC_MSG_CHECKING([if ccache supports precompiled headers])
-    HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.@<:@456789@:>@) 2> /dev/null`
-    if test "x$HAS_GOOD_CCACHE" = x; then
+    HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | awk '{ split($3, a, "."); if (a@<:@1@:>@ >= 3 && (a@<:@2@:>@ > 1 || (a@<:@2@:>@ == 1 && a@<:@3@:>@ >= 4))) print "yes"; else print "no"; }') 2> /dev/null`
+    if test "x$HAS_GOOD_CCACHE" = xyes; then
       AC_MSG_RESULT([no, disabling ccache])
       CCACHE=
     else