X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=configure.in;h=d5427d4d963f823d4be6a4487f0328073f3167fc;hb=1a8d01f99c116ea79fa765afc8f8f6129c5b270d;hp=7cac2826ae81194dce112977d4ddfbde32848f26;hpb=b9f325de0473f28247025ac0f8edb02348547142;p=ghc-hetmet.git diff --git a/configure.in b/configure.in index 7cac282..d5427d4 100644 --- a/configure.in +++ b/configure.in @@ -346,17 +346,19 @@ dnl use either is considered a Feature. 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= 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) @@ -839,7 +841,7 @@ AC_CHECK_FUNCS(pclose _pclose ) 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,