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.
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
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
fi
done
- rm -f conftest.*
+ cd ..
+ rm -rf confdir
else
am_cv_$1_dependencies_compiler_type=none
fi