[project @ 2000-11-02 14:33:15 by simonmar]
authorsimonmar <unknown>
Thu, 2 Nov 2000 14:33:15 +0000 (14:33 +0000)
committersimonmar <unknown>
Thu, 2 Nov 2000 14:33:15 +0000 (14:33 +0000)
Found a better way to do the arch test for $(GhcWithInterpreter), used
it for $(GhcWithNativeCodeGen) too and removed one $(shell...).

mk/config.mk.in

index 24d43d9..b83135e 100644 (file)
@@ -169,26 +169,18 @@ GhcWithHscBuiltViaC=@BootingFromHc@
 #
 # Target platforms supported:
 #   i386, alpha & sparc
-GhcWithNativeCodeGen=$(shell if (test x$(findstring $(HostArch_CPP),i386 alpha sparc) = x); then echo NO; else echo YES; fi)
+ifneq "$(findstring $(HostArch_CPP), i386 alpha sparc)" ""
+GhcWithNativeCodeGen=YES
+else
+GhcWithNativeCodeGen=NO
+endif
 
 # Include GHCi in the compiler
-ifeq "$(linux_TARGET_OS)" "1"
+ifneq "$(findstring $(HostOS_CPP), linux solaris freebsd netbsd openbsd)" ""
 GhcWithInterpreter=YES
 else 
-ifeq "$(solaris_TARGET_OS)" "1"
-GhcWithInterpreter=YES
-else
-ifeq "$(freebsd_TARGET_OS)" "1"
-GhcWithInterpreter=YES
-else
-ifeq "$(netbsd_TARGET_OS)" "1"
-GhcWithInterpreter=YES
-else
 GhcWithInterpreter=NO
 endif
-endif
-endif
-endif
 
 #
 # Building various ways?