libdir = @libdir@/$(package)-$(version)
libexecdir = $(libdir)
datarootdir = @datarootdir@
-datadir = @datadir@/$(package)-$(version)
+# datadir is set to libdir here as GHC needs package.conf and unlit
+# to be in the same place (and things like ghc-pkg need to agree on
+# where package.conf is, so we just set it globally).
+datadir = $(libdir)
platform = @TargetPlatform@
prefix = @prefix@
LN_S = @LN_S@
CHMOD = chmod
INSTALL = @INSTALL@
+#
+# Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
+# install-sh script (if chosen). This not terribly useful to us, so we convert
+# it into an abs. path.
+#
+INSTALL := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
+
exeext = @exeext@
SED = @SedCmd@
DEFAULT_TMPDIR = /tmp