summaryrefslogtreecommitdiff
path: root/m4/depend.m4
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-02-04 03:51:19 +0000
committerTom Tromey <tromey@redhat.com>2001-02-04 03:51:19 +0000
commit04e6519be31e694809b5a46706e917a78a50e89d (patch)
tree758049fad674da456da2180475ce46ff1b7b2c7c /m4/depend.m4
parent3c30a281fcab51e4b19e3b18fbdb9d8b3f976aee (diff)
downloadautomake-04e6519be31e694809b5a46706e917a78a50e89d.tar.gz
2001-02-03 Ville Laurikari <vlaurika@hutcs.cs.hut.fi>
* depcomp (aix): New side-effect dependency tracking mode, for the C for AIX compiler. * m4/depend.m4 (AM_DEPENDENCIES): Recreate `conftest.c' and `conftest.h' for each test.
Diffstat (limited to 'm4/depend.m4')
-rw-r--r--m4/depend.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/depend.m4 b/m4/depend.m4
index d4aea487b..8f63a3d64 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -38,11 +38,15 @@ AC_CACHE_CHECK([dependency style of $depcc],
# in D'.
mkdir confdir
cd confdir
- echo '#include "conftest.h"' > conftest.c
- echo 'int i;' > conftest.h
am_cv_$1_dependencies_compiler_type=none
for depmode in `sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < "$am_depcomp"`; do
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ echo '#include "conftest.h"' > conftest.c
+ echo 'int i;' > conftest.h
+
case "$depmode" in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll