move FP_FIND_ROOT after the "GHC is required" check
authorSimon Marlow <simonmar@microsoft.com>
Wed, 5 Dec 2007 10:18:14 +0000 (10:18 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 5 Dec 2007 10:18:14 +0000 (10:18 +0000)
configure.ac

index 66ed8a0..b20a11f 100644 (file)
@@ -637,8 +637,6 @@ AC_ARG_WITH([ghc],
   WithGhc="$GHC"])
 AC_SUBST([WithGhc])
 
-FP_FIND_ROOT
-
 AC_ARG_WITH(hc,
 [AC_HELP_STRING([--with-hc=ARG],
         [Use ARG as the path to the compiler for compiling ordinary
@@ -758,6 +756,9 @@ if test "$BootingFromHc" = "NO" -a "$WithGhc" = "" -a -d "$srcdir/compiler"; the
 AC_MSG_ERROR([GHC is required unless bootstrapping from .hc files.])
 fi;
 
+# This uses GHC, so put it after the "GHC is required" check above:
+FP_FIND_ROOT
+
 dnl ** Enable the construction of Win32 DLLs?
 dnl --------------------------------------------------------------
 dnl