From f65259c5247b7829d0a2e66cc0b9c059a1dc5c0b Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jul 2010 05:28:55 +0000 Subject: [PATCH] better detection of GCC 4.2 --- trunk/c5/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/c5/GNUmakefile b/trunk/c5/GNUmakefile index e32c5e46..b6d1c830 100644 --- a/trunk/c5/GNUmakefile +++ b/trunk/c5/GNUmakefile @@ -24,7 +24,7 @@ endif ifeq ($(ISX86),1) -GCC42_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (4.[2-9]|[5-9])") +GCC42_OR_LATER = $(shell $(CXX) -v 2>&1 | $(EGREP) -c "^gcc version (4.[2-9]|[5-9])") INTEL_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\)") GAS210_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2\.[1-9][0-9]|[3-9])") GAS217_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2\.1[7-9]|2\.[2-9]|[3-9])")