summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 02:51:59 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-04-16 02:51:59 +0000
commitb5f625d875e79351237cea1d5aba865148c77911 (patch)
treec9a2f3ded94c20d0da72c8b780116ed9c3a991ea /GNUmakefile
parent6389365f00fe636f261913fcb5b0cc20bac4e62c (diff)
downloadcryptopp-b5f625d875e79351237cea1d5aba865148c77911.tar.gz
fix compile with Intel compiler
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@324 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c1dbaef..f839002 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -27,10 +27,11 @@ endif
ifeq ($(ISX86),1)
-GCC33_OR_LATER = $(shell $(CXX) -v 2>&1 | $(EGREP) -c "gcc version (3.[3-9]|[4-9])")
+GCC33_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(GCC\) (3.[3-9]|[4-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])")
-ifeq ($(GCC33_OR_LATER),1)
+ifneq ($(GCC33_OR_LATER) $(INTEL_COMPILER),0 0)
CXXFLAGS += -msse2
endif