automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {master} deptrack: avoid few forks in configure (minor optimizatio


From: Stefano Lattarini
Subject: [FYI] {master} deptrack: avoid few forks in configure (minor optimization)
Date: Thu, 23 Feb 2012 22:38:01 +0100

* m4/depend.m4 (_AM_DEPENDENCIES): Use 'echo > file' instead of
'touch file' to ensure the creation of a dummy file.  Adjust the
comment that explains why we can't merely use ': > file': the
problem this latter idiom tickles is present also with Solaris 10
/bin/sh, not merely with Solaris 8 /bin/sh.
---
 m4/depend.m4 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/depend.m4 b/m4/depend.m4
index 9fbf438..1601c63 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -85,8 +85,8 @@ AC_CACHE_CHECK([dependency style of $depcc],
     for i in 1 2 3 4 5 6; do
       echo '#include "conftst'$i'.h"' >> sub/conftest.c
       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
-      touch sub/conftst$i.h
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
     done
     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
-- 
1.7.9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]