1 # Common portion of all rpath-2?b? 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-prefix1"
17 tmpfiles="$tmpfiles $rp-prefix2"
21 tmpfiles="$tmpfiles $rp-prefix"
25 tmpfiles="$tmpfiles $tstdir/$rp-build1"
26 rm -rf $tstdir/$rp-build1
27 mkdir $tstdir/$rp-build1
28 (cd $srcdir/rpathx && tar cf - *) | (cd $tstdir/$rp-build1 && tar xf -)
29 (cd $tstdir/$rp-build1
30 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 --libdir=$builddir/$rp-prefix1/$LIBDIRSTEM > configure.log 2>&1
32 make install > install.log 2>&1
34 if test $remove_la = yes; then
35 rm -f $rp-prefix1/lib/librpathx.la
38 tmpfiles="$tmpfiles $tstdir/$rp-build2"
39 rm -rf $tstdir/$rp-build2
40 mkdir $tstdir/$rp-build2
41 (cd $srcdir/rpathy && tar cf - *) | (cd $tstdir/$rp-build2 && tar xf -)
42 (cd $tstdir/$rp-build2
43 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --libdir=$builddir/$rp-prefix2/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
45 make install > install.log 2>&1
47 if test $remove_la = yes; then
48 rm -f $rp-prefix2/lib/librpathy.la
51 tmpfiles="$tmpfiles $tstdir/$rp-build3"
52 rm -rf $tstdir/$rp-build3
53 mkdir $tstdir/$rp-build3
54 (cd $srcdir/$build3_package && tar cf - *) | (cd $tstdir/$rp-build3 && tar xf -)
55 (cd $tstdir/$rp-build3
56 if test $remove_la = yes; then
57 build3_configure_flags=--with-librpathx-prefix=$builddir/$rp-prefix1
59 build3_configure_flags=
61 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM --with-librpathy-prefix=$builddir/$rp-prefix2 $build3_configure_flags > configure.log 2>&1
63 make check >> make.log