source: vendor/automake/1.4-p6/tests/defs

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 1.5 KB
Line 
1# -*- ksh -*-
2# Defines for Automake testing environment.
3# Tom Tromey <tromey@cygnus.com>
4
5# Ensure $srcdir set correctly.
6test -f $srcdir/defs || {
7 echo "defs: installation error" 1>&2
8 exit 1
9}
10
11# If srcdir is relative, we need to modify it.
12case "$srcdir" in
13 /*)
14 ;;
15
16 *)
17 srcdir="../$srcdir"
18 ;;
19esac
20
21rm -rf testSubDir > /dev/null 2>&1
22mkdir testSubDir
23cd testSubDir
24
25# Build appropriate environment in test directory. Eg create
26# configure.in, touch all necessary files, etc.
27cat > configure.in << 'END'
28PACKAGE=nonesuch
29VERSION=nonesuch
30AC_ARG_PROGRAM
31AC_PROG_INSTALL
32AC_OUTPUT(Makefile)
33END
34
35: > install-sh
36: > mkinstalldirs
37: > missing
38
39# See how redirections should work. User can set VERBOSE to see all
40# output.
41test -z "$VERBOSE" && {
42 exec > /dev/null 2>&1
43}
44
45# User can set PERL to change the perl interpreter used.
46test -z "$PERL" && PERL=perl
47
48# User can set MAKE to choose which make to use. Must use GNU make.
49test -z "$MAKE" && MAKE=make
50
51echo "=== Running test $0"
52
53# See how Automake should be run. We put --foreign as the default
54# strictness to avoid having to create lots and lots of files. A test
55# can override this by specifying a different strictness.
56AUTOMAKE="$PERL ../../automake --amdir=$srcdir/.. --foreign"
57
58# See how aclocal should be run.
59# Most of the files are in $srcdir/../m4. However amversion.m4 is
60# generated in ../m4, so we include that directory in the search
61# path too.
62ACLOCAL="$PERL `pwd`/../../aclocal -I `pwd`/../../m4 --acdir=$srcdir/../m4"
Note: See TracBrowser for help on using the repository browser.