Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / libobj8.test
blob9cdec3d3de9553f0712fa46de3ec96af2b650c54
1 #! /bin/sh
2 # Copyright (C) 1998, 2000, 2001, 2002, 2006 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure `_.c' dependencies are generated for LIBOBJS
18 # objects.
20 . ./defs || Exit 1
22 cat > configure.in << 'END'
23 AC_INIT
24 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
25 AC_PROG_CC
26 AC_PROG_CC_STDC
27 AC_PROG_RANLIB
28 AC_REPLACE_FUNCS(basename dirname strsignal)
29 AM_C_PROTOTYPES
30 AC_OUTPUT(Makefile)
31 END
33 cat > Makefile.am << 'END'
34 AUTOMAKE_OPTIONS = ansi2knr
35 noinst_LIBRARIES = libtu.a
36 libtu_a_SOURCES =
37 libtu_a_LIBADD = @LIBOBJS@
38 END
40 : > basename.c
41 : > dirname.c
42 : > strsignal.c
44 : > ansi2knr.1
45 : > ansi2knr.c
47 $ACLOCAL || Exit 1
48 $AUTOMAKE || Exit 1
50 grep 'strsignal_.c:' Makefile.in