AC_SUBST(exeext)
-AC_PATH_PROG(GHC,ghc)
+if test "$GHC" = ""; then
+ AC_PATH_PROG(GHC,ghc)
+fi
+if test "$GHC" != ""; then
+ FPTOOLS_GHC_VERSION
+fi
+
AC_PATH_PROGS(NHC,nhc nhc98)
AC_PATH_PROG(HBC,hbc)
AC_SUBST(HaveLibGmp)
AC_SUBST(LibGmp)
+dnl ** check whether this machine has GNU regex in libc.
+FPTOOLS_REGEX_IN_LIBC
+
dnl ** check whether this machine has BFD and liberty installed (used for debugging)
dnl the order of these tests matters: bfd needs liberty
AC_CHECK_LIB(iberty, xmalloc)