patch configure.ac to use System.Directory.getCurrentDirectory

Also generate configure from configure.ac

This fixes the error,

<interactive>:2:1:
    Failed to load interface for `Directory'
    It is a member of the hidden package `haskell98-2.0.0.1'.
    Use -v to see a list of the files searched for.

We could also try adding the -package haskell98 flag, but that gives:

Top level:
    Ambiguous interface for `Prelude':
      it was found in multiple packages: base haskell98-2.0.0.1
This commit is contained in:
Jeremy Shaw 2012-03-19 22:21:25 +00:00
parent 26d09ce631
commit 0c1cb118c4
2 changed files with 2604 additions and 2082 deletions

4684
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@ AC_DEFINE_UNQUOTED(LEADING_UNDERSCORE, $LEADING_UNDERSCORE,
# Find pwd, in a cygwin friendly way.
# Suggested by: http://www.haskell.org/ghc/docs/latest/html/users_guide/ch11s04.html
TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'`
TOP=`echo "System.Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'`
AC_DEFINE_UNQUOTED(TOP, "$TOP", [Path to top of build tree])
AC_SUBST(TOP)