From a2b43d04dfe753d022eb79e1b886eddb95e306d7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 4 Feb 2001 03:41:45 +0000 Subject: [PATCH] * m4/depend.m4 (depcpp): Run tests in a subdir. Fixes report from Bob Proulx. --- ChangeLog | 3 +++ THANKS | 1 + m4/depend.m4 | 10 +++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2dcd79a2..1355eb2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-02-03 Tom Tromey + * m4/depend.m4 (depcpp): Run tests in a subdir. Fixes report from + Bob Proulx. + * automake.in (scan_one_autoconf_file): Disable warning about AM_PROG_LIBTOOL. diff --git a/THANKS b/THANKS index b86674fb..80347c91 100644 --- a/THANKS +++ b/THANKS @@ -17,6 +17,7 @@ Bernard Urban Bernard.Urban@meteo.fr Bill Currie bcurrie@tssc.co.nz Bill Davidson bill@kayhay.com Bill Fenner fenner@parc.xerox.com +Bob Proulx rwp@hprwp.fc.hp.com Brendan O'Dea bod@compusol.com.au Brian Ford ford@vss.fsi.com Brian Jones cbj@nortel.net diff --git a/m4/depend.m4 b/m4/depend.m4 index b07836d8..d4aea487 100644 --- a/m4/depend.m4 +++ b/m4/depend.m4 @@ -31,6 +31,13 @@ depcpp=""]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir confdir + cd confdir echo '#include "conftest.h"' > conftest.c echo 'int i;' > conftest.h @@ -61,7 +68,8 @@ AC_CACHE_CHECK([dependency style of $depcc], fi done - rm -f conftest.* + cd .. + rm -rf confdir else am_cv_$1_dependencies_compiler_type=none fi -- 2.43.5