From 9d34c4185bae693426a80a5cd206e7e47a61709a Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 6 Jun 2006 20:39:22 +0000 Subject: [PATCH] * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Do not use plain `grep' on the Makefile, as its line length may exceed that for grep. Bug report against coreutils by Sam Sirlin. * THANKS: Update. --- ChangeLog | 7 +++++++ THANKS | 1 + m4/depout.m4 | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0c4e76c4..6a8f27342 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-06-06 Ralf Wildenhues + + * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Do not use + plain `grep' on the Makefile, as its line length may exceed that + for grep. Bug report against coreutils by Sam Sirlin. + * THANKS: Update. + 2006-05-26 Sergey Poznyakoff (tiny change) * doc/automake.texi (Options): Add anchor `tar-formats'. diff --git a/THANKS b/THANKS index dd991e216..323379271 100644 --- a/THANKS +++ b/THANKS @@ -248,6 +248,7 @@ Ronald Landheer ronald@landheer.com Rusty Ballinger rusty@rlyeh.engr.sgi.com Ryan T. Sammartino ryants@shaw.ca Sam Hocevar sam@zoy.org +Sam Sirlin sam@kalessin.jpl.nasa.gov Sander Niemeijer niemeijer@science-and-technology.nl Santiago Vila sanvila@unex.es Scott James Remnant scott@netsplit.com diff --git a/m4/depout.m4 b/m4/depout.m4 index 9a987a8a8..0d9717a10 100644 --- a/m4/depout.m4 +++ b/m4/depout.m4 @@ -20,8 +20,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue -- 2.47.2