Commit ee250e51 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

When configuring, handle $topdir/ in the ghc --info output

It might make more sense for there to be a way to get the
"ghc --info" output with $topdir already expanded, but in
the mean time this gets things working again.
parent 2719cacd
...@@ -1944,6 +1944,12 @@ AC_DEFUN([BOOTSTRAPPING_GHC_INFO_FIELD],[ ...@@ -1944,6 +1944,12 @@ AC_DEFUN([BOOTSTRAPPING_GHC_INFO_FIELD],[
if test $GhcCanonVersion -ge 701 if test $GhcCanonVersion -ge 701
then then
$1=`"$WithGhc" --info | grep "^ ,(\"$2\"," | sed -e 's/.*","//' -e 's/")$//'` $1=`"$WithGhc" --info | grep "^ ,(\"$2\"," | sed -e 's/.*","//' -e 's/")$//'`
if test "${$1}" != "$tmp"
topdir=`"$WithGhc" --print-libdir | sed 's#\\\\#/#g'`
else else
$1=$3 $1=$3
fi fi
Markdown is supported
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