Changes for SunOS: grep -q doesn't work on SunOS and GNU make on SunOS defines CC as 'cc' by default (it's not present).

This commit is contained in:
Coyote 2007-05-30 19:36:40 +00:00
parent 0f679da4c7
commit 869ca5dbb3

View file

@ -52,9 +52,16 @@ ARCH=$(COMPILE_ARCH)
endif
ifndef CC
CC=gcc
CC=gcc
endif
ifeq ($(PLATFORM),sunos)
# GNU make on SunOS defines CC as 'cc'. 'grep -q' is not an option on SunOS.
CC=gcc
CC_IS_GCC=1
else
CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1)
endif
CC_IS_GCC=$(shell $(CC) --version | grep -q "(GCC)" && echo 1)
ifeq ($(ARCH),powerpc)
ARCH=ppc