TIVI-153: Adding automake14 as dep for iputils package
[profile/ivi/automake14.git] / tests / defs
1 # -*- ksh -*-
2 # Defines for Automake testing environment.
3 # Tom Tromey <tromey@cygnus.com>
4
5 # Ensure $srcdir set correctly.
6 test -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.
12 case "$srcdir" in
13  /*)
14     ;;
15
16  *)
17     srcdir="../$srcdir"
18     ;;
19 esac
20
21 rm -rf testSubDir > /dev/null 2>&1
22 mkdir testSubDir
23 cd testSubDir
24
25 # Build appropriate environment in test directory.  Eg create
26 # configure.in, touch all necessary files, etc.
27 cat > configure.in << 'END'
28 PACKAGE=nonesuch
29 VERSION=nonesuch
30 AC_ARG_PROGRAM
31 AC_PROG_INSTALL
32 AC_OUTPUT(Makefile)
33 END
34
35 : > install-sh
36 : > mkinstalldirs
37 : > missing
38
39 # See how redirections should work.  User can set VERBOSE to see all
40 # output.
41 test -z "$VERBOSE" && {
42    exec > /dev/null 2>&1
43 }
44
45 # User can set PERL to change the perl interpreter used.
46 test -z "$PERL" && PERL=perl
47
48 # User can set MAKE to choose which make to use.  Must use GNU make.
49 test -z "$MAKE" && MAKE=make
50
51 echo "=== 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.
56 AUTOMAKE="$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.
62 ACLOCAL="$PERL `pwd`/../../aclocal -I `pwd`/../../m4 --acdir=$srcdir/../m4"