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