Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / libobj8.test
1 #! /bin/sh
2 # Copyright (C) 1998, 2000, 2001, 2002, 2006  Free Software Foundation, Inc.
3 #
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 2, or (at your option)
7 # any later version.
8 #
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.
13 #
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/>.
16
17 # Test to make sure `_.c' dependencies are generated for LIBOBJS
18 # objects.
19
20 . ./defs || Exit 1
21
22 cat > configure.in << 'END'
23 AC_INIT
24 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
25 AC_PROG_CC
26 AC_PROG_CC_STDC
27 AM_PROG_AR
28 AC_PROG_RANLIB
29 AC_REPLACE_FUNCS(basename dirname strsignal)
30 AM_C_PROTOTYPES
31 AC_OUTPUT(Makefile)
32 END
33
34 cat > Makefile.am << 'END'
35 AUTOMAKE_OPTIONS = ansi2knr
36 noinst_LIBRARIES = libtu.a
37 libtu_a_SOURCES =
38 libtu_a_LIBADD = @LIBOBJS@
39 END
40
41 : > basename.c
42 : > dirname.c
43 : > strsignal.c
44
45 : > ansi2knr.1
46 : > ansi2knr.c
47 : > ar-lib
48
49 $ACLOCAL || Exit 1
50 $AUTOMAKE  -Wno-obsolete || Exit 1
51
52 grep 'strsignal_.c:' Makefile.in