# Target platforms supported:
# i386, powerpc
# sparc has bitrotted
-ifneq "$(findstring $(HostArch_CPP), i386 powerpc)" ""
+ifneq "$(findstring $(HostArch_CPP), i386 x86_64 powerpc)" ""
GhcWithNativeCodeGen=YES
else
GhcWithNativeCodeGen=NO
HaveRtldNext = @HaveRtldNext@
HaveRtldLocal = @HaveRtldLocal@
-# Include GHCi in the compiler. Default to NO for the time being.
+# Whether to include GHCi in the compiler. Depends on whether the RTS linker
+# has support for this OS/ARCH combination.
-ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd darwin)" ""
+OsSupportsGHCi=$(strip $(patsubst $(HostOS_CPP), YES, $(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd darwin)))
+ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 powerpc powerpc64 sparc sparc64)))
+
+ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES"
GhcWithInterpreter=YES
else
GhcWithInterpreter=NO
ifeq "$(GhcUnregisterised)" "YES"
SplitObjs=NO
endif
-ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux"
+ifeq "$(TargetArch_CPP)" "ia64"
SplitObjs=NO
endif
# Options for GHC's RTS
# For an optimised RTS (you probably don't want to change these; we build
-# a debugging RTS by default now. Use -package rts_debug to get it).
+# a debugging RTS by default now. Use -debug to get it).
GhcRtsHcOpts=-O2
GhcRtsCcOpts=-fomit-frame-pointer
# Haskell compiler options for nofib
NoFibHcOpts = -O
+# Number of times to run each program
+NoFibRuns = 5
+
# ==============================================================================
#
# END OF PROJECT-SPECIFIC STUFF
LibGmp = @LibGmp@
#-----------------------------------------------------------------------------
-# Mingwex Library
+# GMP framework (Mac OS X)
#
-HaveLibMingwEx = @HaveLibMingwEx@
+HaveFrameworkGMP = @HaveFrameworkGMP@
#-----------------------------------------------------------------------------
-# HaskellSupport framework (Mac OS X)
+# Mingwex Library
#
-HaveFrameworkHaskellSupport = @HaveFrameworkHaskellSupport@
+HaveLibMingwEx = @HaveLibMingwEx@
#-----------------------------------------------------------------------------
# Flex (currently unused, could be moved to glafp-utils)