From 7df47df662414abf58b25d872c8f2ebf141072d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20E=2E=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 19 Nov 2008 02:47:24 +0100 Subject: Fix gcc version test when the CC variable needs not be quoted. When passing CC="ccache gcc", we don't want to quote "$CC" calls, otherwise the command won't be found. --- m4/optimizations.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/optimizations.m4 b/m4/optimizations.m4 index ca329154e..88ad99890 100644 --- a/m4/optimizations.m4 +++ b/m4/optimizations.m4 @@ -61,7 +61,7 @@ AC_DEFUN([AC_OPTIMIZATIONS], [ dnl -finline-functions. Use -fno-inline-functions for gcc < 3.4.0. AC_MSG_CHECKING(for gcc 3.4.0 or later) - newGCC="`"$CC" -dumpversion | + newGCC="`$CC -dumpversion | awk -F. '{ if ((@S|@1 * 10000 + @S|@2 * 100 + @S|@3) >= 30400) { print "yes" } }' `" AC_MSG_RESULT(${newGCC:-no - assuming bugginess in -finline-functions}) -- cgit v1.2.3