• 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?b? 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-prefix1"
13rm -rf $rp-prefix1
14mkdir $rp-prefix1
15
16tmpfiles="$tmpfiles $rp-prefix2"
17rm -rf $rp-prefix2
18mkdir $rp-prefix2
19
20tmpfiles="$tmpfiles $rp-prefix"
21rm -rf $rp-prefix
22mkdir $rp-prefix
23
24tmpfiles="$tmpfiles tstdir/$rp-build1"
25rm -rf tstdir/$rp-build1
26mkdir 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)
33if test $remove_la = yes; then
34  rm -f $rp-prefix1/lib/librpathx.la
35fi
36
37tmpfiles="$tmpfiles tstdir/$rp-build2"
38rm -rf tstdir/$rp-build2
39mkdir 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)
46if test $remove_la = yes; then
47  rm -f $rp-prefix2/lib/librpathy.la
48fi
49
50tmpfiles="$tmpfiles tstdir/$rp-build3"
51rm -rf tstdir/$rp-build3
52mkdir 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)
64result=$?
65
66rm -rf $tmpfiles
67
68exit $result
69