[project @ 2005-11-23 12:23:10 by simonmar]
authorsimonmar <unknown>
Wed, 23 Nov 2005 12:23:10 +0000 (12:23 +0000)
committersimonmar <unknown>
Wed, 23 Nov 2005 12:23:10 +0000 (12:23 +0000)
fix up the GhcWithNativeCodeGen logic

mk/config.mk.in

index 5a66706..ddd5a20 100644 (file)
@@ -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