x86 NCG: fix regUsageOfInstr for VMOVU & friends
[ghc.git] / m4 / bootstrapping_ghc_info_field.m4
blob54936263cd0a60e87433c1d1226768c3880d9824
1 # BOOTSTRAPPING_GHC_INFO_FIELD
2 # --------------------------------
3 # Set the variable $1 to the value of the ghc --info field $2.
4 AC_DEFUN([BOOTSTRAPPING_GHC_INFO_FIELD],[
5 $1=`"$WithGhc" --info | grep "^ ,(\"$2\"," | sed -e 's/.*","//' -e 's/")$//'`
6 tmp=${$1#\$topdir/}
7 if test "${$1}" != "$tmp"
8 then
9     topdir=`"$WithGhc" --print-libdir | sed 's#\\\\#/#g'`
10     $1="$topdir/$tmp"
12 AC_SUBST($1)