Tag
Hash :
81963327
Author :
Date :
2002-06-19T18:31:37
* tests/nobase.test, tests/pr204.test, tests/pr300-lib.test, tests/pr300-ltlib.test, tests/pr300-prog.test, tests/specflags7.test, tests/specflags8.test, tests/subdir5.test, tests/subobj6.test, tests/subpkg.test, tests/transform.test: Require gcc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
#! /bin/sh
# Make sure that --program-transform works.
required=gcc
. $srcdir/defs || exit 1
set -e
cat >>configure.in <<'END'
AC_PROG_CC
AC_OUTPUT
END
cat >Makefile.am <<'EOF'
bin_PROGRAMS = h
bin_SCRIPTS = h.sh
man_MANS = h.1
EOF
cat >h.c <<'EOF'
int
main ()
{
return 0;
}
EOF
: > h.sh
: > h.1
$ACLOCAL
$AUTOCONF
$AUTOMAKE
./configure --program-prefix=gnu- --prefix `pwd`/inst
$MAKE
$MAKE install
test -f inst/bin/gnu-h
test -f inst/bin/gnu-h.sh
test -f inst/man/man1/gnu-h.1
$MAKE uninstall
test `find inst/foo -type f -print | wc -l` = 0