1 # Common portion of all rpath-1* tests.
4 trap 'rm -fr $tmpfiles' 1 2 3 15
7 global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8 export global_top_auxdir
11 test -d $tstdir || { mkdir tst && mkdir $tstdir; }
13 tmpfiles="$tmpfiles $rp-prefix"
17 tmpfiles="$tmpfiles $tstdir/$rp-build1"
18 rm -rf $tstdir/$rp-build1
19 mkdir $tstdir/$rp-build1
20 (cd $srcdir/rpathx && tar cf - *) | (cd $tstdir/$rp-build1 && tar xf -)
21 (cd $tstdir/$rp-build1
22 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
24 make install > install.log 2>&1
27 tmpfiles="$tmpfiles $tstdir/$rp-build2"
28 rm -rf $tstdir/$rp-build2
29 mkdir $tstdir/$rp-build2
30 (cd $srcdir/rpathlx && tar cf - *) | (cd $tstdir/$rp-build2 && tar xf -)
31 (cd $tstdir/$rp-build2
32 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
34 make check >> make.log