2 # Copyright (C) 2002, 2003 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 2, or (at your option)
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 # Check that subdir sources, and file compiled using per-target flags
18 # can still be deansified.
19 # Report from Paul D. Smith.
26 cat >>configure.
in <<EOF
33 cat > Makefile.am
<< 'END'
34 AUTOMAKE_OPTIONS
= ansi2knr subdir-objects
35 noinst_PROGRAMS
= loadavg sub
/sub
36 loadavg_SOURCES
= loadavg.c
37 loadavg_CFLAGS
= -DTEST
38 sub_sub_SOURCES
= sub
/sub.c
41 cat > loadavg.c
<< 'END'
50 cp loadavg.c sub
/sub.c
53 $AUTOCONF -Wno-obsolete
54 $AUTOMAKE --add-missing -Wno-override -Wno-obsolete
56 $FGREP 'loadavg-loadavg$U.o: loadavg$U.c' Makefile.
in
57 # The following rule should not exist, because the
58 # default .o.c: inference rule is enough.
59 $FGREP 'sub/sub$U.o: sub/sub$U.c' Makefile.
in && Exit
1
60 # Force ansi2knr's use, regardless of the compiler.
61 .
/configure ac_cv_prog_cc_stdc
=no