Fix bootstrap with 6.10.1 on Windows
authorSimon Marlow <marlowsd@gmail.com>
Mon, 10 Nov 2008 13:43:18 +0000 (13:43 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 10 Nov 2008 13:43:18 +0000 (13:43 +0000)
ghc-pkg doesn't understand the old syntax any more, so 'ghc-pkg -l' fails

aclocal.m4

index c49271d..18af870 100644 (file)
@@ -927,6 +927,9 @@ AC_DEFUN([FP_PROG_GHC_PKG],
 [fp_ghc_pkg_guess=`echo $WithGhc | sed 's,ghc\(@<:@^/\\@:>@*\)$,ghc-pkg\1,'`
 if "$fp_ghc_pkg_guess" -l > /dev/null 2>&1; then
   fp_cv_matching_ghc_pkg=$fp_ghc_pkg_guess
+elif "$fp_ghc_pkg_guess" list > /dev/null 2>&1; then
+  # from 6.10, ghc-pkg doesn't support the old -l syntax any more
+  fp_cv_matching_ghc_pkg=$fp_ghc_pkg_guess
 else
   fp_cv_matching_ghc_pkg=no
 fi])