• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/autoconf-lib-link/tests/
1# Common portion of all rpath-2?a? tests.
2
3tmpfiles=""
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6builddir=`pwd`
7global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8export global_top_auxdir
9
10test -d tstdir || mkdir tstdir
11
12tmpfiles="$tmpfiles $rp-prefix"
13rm -rf $rp-prefix
14mkdir $rp-prefix
15
16tmpfiles="$tmpfiles tstdir/$rp-build1"
17rm -rf tstdir/$rp-build1
18mkdir tstdir/$rp-build1
19(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
20(cd tstdir/$rp-build1
21 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
22 make > make.log 2>&1
23 make install > install.log 2>&1
24)
25if test $remove_la = yes; then
26  rm -f $rp-prefix/lib/librpathx.la
27fi
28
29tmpfiles="$tmpfiles tstdir/$rp-build2"
30rm -rf tstdir/$rp-build2
31mkdir tstdir/$rp-build2
32(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
33(cd tstdir/$rp-build2
34 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
35 make > make.log 2>&1
36 make install > install.log 2>&1
37)
38if test $remove_la = yes; then
39  rm -f $rp-prefix/lib/librpathy.la
40fi
41
42tmpfiles="$tmpfiles tstdir/$rp-build3"
43rm -rf tstdir/$rp-build3
44mkdir tstdir/$rp-build3
45(cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
46(cd tstdir/$rp-build3
47 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
48 make > make.log 2>&1
49 make check >> make.log
50)
51result=$?
52
53rm -rf $tmpfiles
54
55exit $result
56