From dae2fd8016f4774de6e930dc5875f9f970abb6b0 Mon Sep 17 00:00:00 2001
From: simonmar <unknown>
Date: Tue, 18 Sep 2001 08:53:01 +0000
Subject: [PATCH] [project @ 2001-09-18 08:53:01 by simonmar] Don't check for
 an installed GHC if the user said --with-ghc=... or GHC=... ./configure.

---
 configure.in | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/configure.in b/configure.in
index f0376d9f3638..d5427d4d963f 100644
--- a/configure.in
+++ b/configure.in
@@ -346,17 +346,19 @@ dnl use either is considered a Feature.
 
 dnl ** What command to use to compile compiler sources ?
 dnl --------------------------------------------------------------
-if test "$GHC" = ""; then
-  AC_PATH_PROG(GHC,ghc)
-fi
 
 AC_ARG_WITH(ghc,
 [  --with-ghc=<haskell compiler>
         Use a command different from 'ghc' to compile GHC-specific Haskell code
 	    (including GHC itself).
 ],
-[WithGhc="$withval"],
-[WithGhc=$GHC]
+[ WithGhc="$withval" ],
+[ 
+  if test "$GHC" = ""; then
+    AC_PATH_PROG(GHC,ghc)
+  fi
+  WithGhc=$GHC
+]
 )
 AC_SUBST(WithGhc)
 
-- 
GitLab