]> sourceware.org Git - automake.git/commitdiff
* m4/depend.m4 (depcpp): Run tests in a subdir. Fixes report from
authorTom Tromey <tromey@redhat.com>
Sun, 4 Feb 2001 03:41:45 +0000 (03:41 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 4 Feb 2001 03:41:45 +0000 (03:41 +0000)
Bob Proulx.

ChangeLog
THANKS
m4/depend.m4

index 2dcd79a2edf5ecd4a96fc8fb6f9c2f5d08634934..1355eb2f57f5472eef4d833579092c1077f3d829 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-02-03  Tom Tromey  <tromey@redhat.com>
 
+       * 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 b86674fb4877a7b9013b0099d323a81bdae4dd2e..80347c916bdfceb26ad189c6d15561788cd7fd6b 100644 (file)
--- 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
index b07836d8929e7a566c266793e395661953ad09d4..d4aea487bf9433cdcbd13f1a3b955b1f5cb5079b 100644 (file)
@@ -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
This page took 0.033639 seconds and 5 git commands to generate.