summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-12 08:42:19 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-12 08:42:19 +0000
commit62bad39ed8e644de8ff24cfb2557ee3e59336b14 (patch)
treee02bfca40e94444ce0f14f8d914a08501c5c8a98 /GNUmakefile
parent895fb7b90c8cb881fd2de3664c8da5e1ee8a25b6 (diff)
downloadcryptopp-62bad39ed8e644de8ff24cfb2557ee3e59336b14.tar.gz
use egrep instead of grep
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@256 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6746d08..dd1e919 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,8 +12,8 @@ RANLIB = ranlib
CP = cp
MKDIR = mkdir
UNAME = $(shell uname)
-ISX86 = $(shell uname -m | grep -c "i.86\|x86")
-ISMINGW = $(shell uname | grep -c "MINGW32")
+ISX86 = $(shell uname -m | egrep -c "i.86|x86")
+ISMINGW = $(shell uname | egrep -c "MINGW32")
# Default prefix for make install
ifeq ($(PREFIX),)
@@ -26,8 +26,8 @@ endif
ifeq ($(ISX86),1)
-GCC33ORLATER = $(shell $(CXX) -v 2>&1 | grep -c "gcc version \(3.[3-9]\|[4-9]\)")
-GAS210ORLATER = $(shell echo "" | $(AS) -v 2>&1 | grep -c "GNU assembler version \(2.[1-9][0-9]\|[3-9]\)")
+GCC33ORLATER = $(shell $(CXX) -v 2>&1 | egrep -c "gcc version (3.[3-9]|[4-9])")
+GAS210ORLATER = $(shell echo "" | $(AS) -v 2>&1 | egrep -c "GNU assembler version (2.[1-9][0-9]|[3-9])")
ifeq ($(GCC33ORLATER) $(ISMINGW),1 0) # MINGW32 is missing the memalign function
CXXFLAGS += -msse2
@@ -58,7 +58,7 @@ AR = libtool
ARFLAGS = -static -o
CXX = c++
CXXFLAGS += -D__pic__
-IS_GCC2 = $(shell $(CXX) -v 2>&1 | grep -c gcc-932)
+IS_GCC2 = $(shell $(CXX) -v 2>&1 | egrep -c gcc-932)
ifeq ($(IS_GCC2),1)
CXXFLAGS += -fno-coalesce-templates -fno-coalesce-static-vtables
LDLIBS += -lstdc++