configure.ac: Generalize gcc / clang version check
[valgrind.git] / vg-in-place
blobb364c10dba55ee75549663561e03e472c276d2c3
1 #!/bin/sh
3 # Figure out an absolute pathname to this file, based on
4 # $0 (the name of the file) and $PWD.
6 dollarzero=$0
7 if [ -h "${dollarzero}" ]; then
8 dollarzero=`readlink "${dollarzero}"`
9 fi
11 if [ "${dollarzero#/}" = "${dollarzero}" ];
12 then
13 # Relative name
14 scriptname=$PWD/$dollarzero;
15 else
16 # Absolute name
17 scriptname=$dollarzero;
20 # echo "Name of this script: " $scriptname
22 vgbasedir=`dirname $scriptname`
24 # echo "VG base directory: " $vgbasedir
27 # We set both VALGRIND_LIB and VALGRIND_LIB_INNER to handle normal and
28 # 'inner' builds.
29 VALGRIND_LIB="$vgbasedir/.in_place" \
30 VALGRIND_LIB_INNER="$vgbasedir/.in_place" \
31 "$vgbasedir/coregrind/valgrind" "$@"