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)
if test -z "$Catalog"; then
AC_MSG_RESULT([Warning: You will not be able to build the documentation.])
fi
-case $HostOS_CPP in
- mingw32)
- Catalog=`cygpath -w $hardtop/$Catalog`
- ;;
- *)
- Catalog=$hardtop/$Catalog
- ;;
+case $Catalog in
+ glafp*)
+ case $HostOS_CPP in
+ mingw32)
+ Catalog=`cygpath -w $hardtop/$Catalog`
+ ;;
+ *) Catalog=$hardtop/$Catalog
+ ;;
+ esac
+ ;;
esac
AC_SUBST(Catalog)
dnl ** check for specific library functions that we are interested in
-AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime mprotect readlink setitimer stat symlink sysconf timelocal times vadvise vfork localtime_r gmtime_r)
+AC_CHECK_FUNCS(access ftime getclock getpagesize getrusage gettimeofday mktime mprotect readlink setitimer stat lstat symlink sysconf timelocal times vadvise vfork localtime_r gmtime_r)
dnl ** check whether this machine has gmp3 installed
AC_CHECK_LIB(gmp, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp,