1 1.1 christos # Common portion of all rpath-2?b? tests. 2 1.1 christos 3 1.1 christos tmpfiles="" 4 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 5 1.1 christos 6 1.1 christos builddir=`pwd` 7 1.1 christos global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` 8 1.1 christos export global_top_auxdir 9 1.1 christos 10 1.1 christos test -d tstdir || mkdir tstdir 11 1.1 christos 12 1.1 christos tmpfiles="$tmpfiles $rp-prefix1" 13 1.1 christos rm -rf $rp-prefix1 14 1.1 christos mkdir $rp-prefix1 15 1.1 christos 16 1.1 christos tmpfiles="$tmpfiles $rp-prefix2" 17 1.1 christos rm -rf $rp-prefix2 18 1.1 christos mkdir $rp-prefix2 19 1.1 christos 20 1.1 christos tmpfiles="$tmpfiles $rp-prefix" 21 1.1 christos rm -rf $rp-prefix 22 1.1 christos mkdir $rp-prefix 23 1.1 christos 24 1.1 christos tmpfiles="$tmpfiles tstdir/$rp-build1" 25 1.1 christos rm -rf tstdir/$rp-build1 26 1.1 christos mkdir tstdir/$rp-build1 27 1.1 christos (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) 28 1.1 christos (cd tstdir/$rp-build1 29 1.1 christos ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 --libdir=$builddir/$rp-prefix1/$LIBDIRSTEM > configure.log 2>&1 30 1.1 christos make > make.log 2>&1 31 1.1 christos make install > install.log 2>&1 32 1.1 christos ) 33 1.1 christos if test $remove_la = yes; then 34 1.1 christos rm -f $rp-prefix1/lib/librpathx.la 35 1.1 christos fi 36 1.1 christos 37 1.1 christos tmpfiles="$tmpfiles tstdir/$rp-build2" 38 1.1 christos rm -rf tstdir/$rp-build2 39 1.1 christos mkdir tstdir/$rp-build2 40 1.1 christos (cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) 41 1.1 christos (cd tstdir/$rp-build2 42 1.1 christos ${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 43 1.1 christos make > make.log 2>&1 44 1.1 christos make install > install.log 2>&1 45 1.1 christos ) 46 1.1 christos if test $remove_la = yes; then 47 1.1 christos rm -f $rp-prefix2/lib/librpathy.la 48 1.1 christos fi 49 1.1 christos 50 1.1 christos tmpfiles="$tmpfiles tstdir/$rp-build3" 51 1.1 christos rm -rf tstdir/$rp-build3 52 1.1 christos mkdir tstdir/$rp-build3 53 1.1 christos (cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -) 54 1.1 christos (cd tstdir/$rp-build3 55 1.1 christos if test $remove_la = yes; then 56 1.1 christos build3_configure_flags=--with-librpathx-prefix=$builddir/$rp-prefix1 57 1.1 christos else 58 1.1 christos build3_configure_flags= 59 1.1 christos fi 60 1.1 christos ${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 61 1.1 christos make > make.log 2>&1 62 1.1 christos make check >> make.log 63 1.1 christos ) 64 1.1 christos result=$? 65 1.1 christos 66 1.1 christos rm -rf $tmpfiles 67 1.1 christos 68 1.1 christos exit $result 69