summaryrefslogtreecommitdiff
path: root/m4/depend.m4
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2004-02-29 21:26:45 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2004-02-29 21:26:45 +0000
commit584d21d8533ee6141d5b53f48a455cdeafee7c8f (patch)
treec7a14f03dc140a1b391429e994fd4550a3a22dc3 /m4/depend.m4
parent2ac4685e495eae08c7b7ca778558102a70af28a1 (diff)
downloadautomake-584d21d8533ee6141d5b53f48a455cdeafee7c8f.tar.gz
* m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
to create numbered dependencies. This fixes a portability issue when CONFIG_SHELL is forced to /bin/sh on Solaris 8. Reported by Mark Phillips.
Diffstat (limited to 'm4/depend.m4')
-rw-r--r--m4/depend.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/depend.m4 b/m4/depend.m4
index f695a3843..fe5fee449 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -1,4 +1,4 @@
-# serial 6 -*- Autoconf -*-
+# serial 7 -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
# Free Software Foundation, Inc.
@@ -85,7 +85,9 @@ AC_CACHE_CHECK([dependency style of $depcc],
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
- : > sub/conftst$i.h
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
done
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf