diff --git a/aclocal.m4 b/aclocal.m4 index dcb8832a7549dac07cde1535b52ba6b45354df06..1e1f30cb64f528d45f4d36f681c2d38a98ebd32d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1891,6 +1891,12 @@ AC_DEFUN([BOOTSTRAPPING_GHC_INFO_FIELD],[ if test $GhcCanonVersion -ge 701 then $1=`"$WithGhc" --info | grep "^ ,(\"$2\"," | sed -e 's/.*","//' -e 's/")$//'` + tmp=${$1#\$topdir/} + if test "${$1}" != "$tmp" + then + topdir=`"$WithGhc" --print-libdir | sed 's#\\\\#/#g'` + $1="$topdir/$tmp" + fi else $1=$3 fi