Commit bc3291f1 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-10-11 14:25:44 by simonmar]

Detect whether $(GHC) supports the readline package.
parent 3163b547
...@@ -694,6 +694,19 @@ ifelse($#, [1], [dnl ...@@ -694,6 +694,19 @@ ifelse($#, [1], [dnl
])dnl ])dnl
AC_DEFUN(FPTOOLS_GHC_HAS_READLINE,
[AC_CACHE_CHECK([whether ghc has readline package], [fptools_ghc_has_readline],
[if "${GhcPkgCmd-ghc-pkg}" --show-package readline >/dev/null 2>&1; then
fptools_ghc_has_readline='yes';
GhcHasReadline='YES';
else
fptools_ghc_has_readline='no';
GhcHasReadline='NO';
fi
AC_SUBST(GhcHasReadline)
])
])
dnl ** Map an arithmetic C type to a Haskell type. dnl ** Map an arithmetic C type to a Haskell type.
dnl Based on autconf's AC_CHECK_SIZEOF. dnl Based on autconf's AC_CHECK_SIZEOF.
......
...@@ -864,6 +864,9 @@ FP_PROG_FO_PROCESSOR ...@@ -864,6 +864,9 @@ FP_PROG_FO_PROCESSOR
dnl ** check for ghc-pkg command dnl ** check for ghc-pkg command
FP_PROG_GHC_PKG FP_PROG_GHC_PKG
dnl Check whether this GHC has readline installed
FPTOOLS_GHC_HAS_READLINE
AC_ARG_WITH(greencard, AC_ARG_WITH(greencard,
[AC_HELP_STRING([--with-greencard=ARG], [AC_HELP_STRING([--with-greencard=ARG],
[Use ARG as the path to greencard [default=autodetct]])], [Use ARG as the path to greencard [default=autodetct]])],
......
...@@ -729,6 +729,9 @@ else ...@@ -729,6 +729,9 @@ else
GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion) GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion)
endif endif
# Set to YES if $(GHC) has the readline package installed
GhcHasReadline = @GhcHasReadline@
HBC = @HBC@ HBC = @HBC@
NHC = @NHC@ NHC = @NHC@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment