[project @ 1997-05-18 04:56:43 by sof]
[ghc-hetmet.git] / mk / config.mk.in
index d94ba3d..927285f 100644 (file)
@@ -82,9 +82,9 @@ IncludeTestDirsInBuild=NO
 # 
 GhcProjectName       =The Glorious Glasgow Haskell Compilation System
 GhcProjectNameShort  =ghc
-GhcProjectVersion    =2.02
+GhcProjectVersion    =2.03
 GhcProjectPatchLevel =0
-GhcBuildeeVersion    =202
+GhcBuildeeVersion    =203
 GhcBuilderVersion    =29
 
 #
@@ -402,6 +402,7 @@ MKDIRHIER_PREFIX    = $(GLAFP_UTILS)/mkdirhier/
 LITERATE               = $(FPTOOLS_TOP)/literate
 
 LITERATE_PREFIX        = $(FPTOOLS_TOP)/literate/
+INFO_PREFIX                    = $(FPTOOLS_TOP)/literate/info-utils/
 TEXI2HTML_PREFIX        = $(LITERATE_PREFIX)texi2html/
 
 HAPPY_PREFIX           = $(FPTOOLS_TOP)/happy/src/
@@ -467,6 +468,14 @@ CTAGS                      = $(ETAGS)
 RAWCPP                  = @RAWCPP@
 GNUCPP                  = @GNUCPP@
 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.
+# 
+ifeq "$(INSTALL)" ".././install-sh"
+INSTALL                        = $(FPTOOLS_TOP_ABS)/install-sh
+endif
 LATEX                  = latex
 LN_S                   = @LN_S@
 MANMACROS              = -man
@@ -481,6 +490,29 @@ RANLIB                     = @RANLIB@
 RM                     = rm -f
 SED                    = @SedCmd@
 SHELL                  = /bin/sh
+#
+# In emergency situations, REAL_SHELL is used to perform shell commands
+# from within the ghc driver script, by scribbling the command line to
+# a temp file and then having $(REAL_SHELL) execute it. 
+#
+# The reason for having to do this is that overly long command lines
+# cause unnecessary trouble with some shells (e.g., /bin/sh on Solaris
+# 2.5.1), which is why this backdoor is provided. The situation of overly
+# long command lines is either encountered while doing `make boot' in ghc/compiler, 
+# or when linking the compiler binary (`hsc'). 
+#
+# We do not use SHELL to execute long commands, as `make' will more than likely
+# override whatever setting you have in your environment while executing. 
+
+# By default, REAL_SHELL is set equal SHELL, which is not really a smart move
+# as it SHELL that will show up the bogosity in the first place, but setting
+# it to anything else isn't really portable.
+#
+#  ====> If long command lines cause you trouble, invoke `ghc' (via `make' or otherwise)
+# with REAL_SHELL set to something else than /bin/sh, for instance, your favourite
+# command shell.
+#
+REAL_SHELL=$(SHELL)
 SIZE                   = size
 STRIP                  = strip
 TAR                    = @TarCmd@