From 9a36aaaeaab61de53fad0b6b416563daaccc54cb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 13 May 2001 23:45:32 +0000 Subject: [PATCH] Report from Robert Boehne: * tests/Makefile.am (TESTS): Added depend2.test. * tests/depend2.test: New file. --- ChangeLog | 6 ++++++ tests/Makefile.am | 1 + tests/Makefile.in | 1 + tests/depend2.test | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100755 tests/depend2.test diff --git a/ChangeLog b/ChangeLog index cf33c6c2..83c49d10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-05-13 Tom Tromey + + Report from Robert Boehne: + * tests/Makefile.am (TESTS): Added depend2.test. + * tests/depend2.test: New file. + 2001-05-13 James Henstridge * m4/python.m4 (AM_PATH_PYTHON): Added more names for python. diff --git a/tests/Makefile.am b/tests/Makefile.am index 3d3ee783..fdcf68cc 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -94,6 +94,7 @@ depacl.test \ depacl2.test \ depcomp.test \ depend.test \ +depend2.test \ depend3.test \ discover.test \ distcommon.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 2dc0ec00..2ad77d57 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -166,6 +166,7 @@ depacl.test \ depacl2.test \ depcomp.test \ depend.test \ +depend2.test \ depend3.test \ discover.test \ distcommon.test \ diff --git a/tests/depend2.test b/tests/depend2.test new file mode 100755 index 00000000..e737a4cd --- /dev/null +++ b/tests/depend2.test @@ -0,0 +1,48 @@ +#! /bin/sh + +# Test to make sure dependency tracking works with +# --disable-dependency-tracking. +# Report from Robert Boehne + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(hello.c) +AM_INIT_AUTOMAKE(hello,0.23) +AC_PROG_CC +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = hello +END + +cat > hello.h << 'END' +#include +END + +cat > hello.c << 'END' +#include "hello.h" +int +main (int argc, char *argv[]) +{ + printf ("yeah, yeah\n"); + return 0; +} +END + +# Fail gracefully if no autoconf. +$needs_autoconf + +# Likewise for gcc. +(gcc -v) > /dev/null 2>&1 || exit 77 + +set -e + +$ACLOCAL +$AUTOCONF +$AUTOMAKE -a + +CC='gcc' ./configure --disable-dependency-tracking + +$MAKE -- 2.43.5