No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / autoconf-lib-link / tests / rpath-2_b
blob7fd4385b4924455b16f8ce113e44caeb4cb6eecd
1 # Common portion of all rpath-2?b? tests.
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
6 builddir=`pwd`
7 global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8 export global_top_auxdir
10 test -d tstdir || mkdir tstdir
12 tmpfiles="$tmpfiles $rp-prefix1"
13 rm -rf $rp-prefix1
14 mkdir $rp-prefix1
16 tmpfiles="$tmpfiles $rp-prefix2"
17 rm -rf $rp-prefix2
18 mkdir $rp-prefix2
20 tmpfiles="$tmpfiles $rp-prefix"
21 rm -rf $rp-prefix
22 mkdir $rp-prefix
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 > configure.log 2>&1
30  make > make.log 2>&1
31  make install > install.log 2>&1
33 if test $remove_la = yes; then
34   rm -f $rp-prefix1/lib/librpathx.la
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 --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
43  make > make.log 2>&1
44  make install > install.log 2>&1
46 if test $remove_la = yes; then
47   rm -f $rp-prefix2/lib/librpathy.la
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 --with-librpathy-prefix=$builddir/$rp-prefix2 $build3_configure_flags > configure.log 2>&1
61  make > make.log 2>&1
62  make check >> make.log
64 result=$?
66 rm -rf $tmpfiles
68 exit $result