From: simonmar Date: Wed, 23 Nov 2005 12:23:10 +0000 (+0000) Subject: [project @ 2005-11-23 12:23:10 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~28 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=c4aefec7092fcd183f63d3990147c03bfa6c180f [project @ 2005-11-23 12:23:10 by simonmar] fix up the GhcWithNativeCodeGen logic --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 5a66706..ddd5a20 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -255,7 +255,11 @@ GhcUnregisterised=NO # Target platforms supported: # i386, powerpc # sparc has bitrotted -ifneq "$(findstring $(HostArch_CPP), i386 x86_64 powerpc)" "" +# AIX is not supported +ArchSupportsNCG=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc))) +OsSupportsNCG=$(strip $(patsubst $(HostOS_CPP), YES, $(patsubst aix,,$(HostOS_CPP)))) + +ifeq "$(OsSupportsNCG)$(ArchSupportsNCG)" "YESYES" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO