Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / depend2.test
blob15624a03e5fa8c8239a5acaee19d070960c25744
1 #! /bin/sh
2 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002
3 # Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Test to make sure dependency tracking works with
19 # --disable-dependency-tracking.
20 # Report from Robert Boehne
22 required=gcc
23 . ./defs || Exit 1
25 cat > configure.in << 'END'
26 AC_INIT(hello.c)
27 AM_INIT_AUTOMAKE(hello,0.23)
28 AC_PROG_CC
29 AC_OUTPUT(Makefile)
30 END
32 cat > Makefile.am << 'END'
33 bin_PROGRAMS = hello
34 END
36 cat > hello.h << 'END'
37 #include <stdio.h>
38 END
40 cat > hello.c << 'END'
41 #include "hello.h"
42 int
43 main (int argc, char *argv[])
45 printf ("yeah, yeah\n");
46 return 0;
48 END
50 set -e
52 $ACLOCAL
53 $AUTOCONF
54 $AUTOMAKE -a
56 # Ignore user CFLAGS.
57 CFLAGS=
58 export CFLAGS
60 ./configure --disable-dependency-tracking
62 $MAKE