From addb243b52a49f2e97ce88443a10cbed90f402a6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 6 Apr 2009 03:05:17 +0200 Subject: [PATCH] Work around an autoconf limitation on line lengths. --- ChangeLog | 6 ++++++ gnulib-tool | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 41b9d6857..946f4006a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-04-05 Bruno Haible + Work around an autoconf limitation. + * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by" + comment line if it would be longer than 3 KB. + +2009-04-05 Bruno Haible + Avoid test failure with libiconv-1.13. * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one of the expected test results. diff --git a/gnulib-tool b/gnulib-tool index 56f5616ce..74ea4fc8a 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -1953,7 +1953,14 @@ func_emit_lib_Makefile_am () echo "## Process this file with automake to produce Makefile.in." func_emit_copyright_notice if test -n "$actioncmd"; then - echo "# Reproduce by: $actioncmd" + # The maximum line length (excluding the terminating newline) of any file + # that is to be preprocessed by config.status is 3070. config.status uses + # awk, and the HP-UX 11.00 awk fails if a line has length >= 3071; + # similarly, the IRIX 6.5 awk fails if a line has length >= 3072. + len=`echo "$actioncmd" | wc -c` + if test -n "$len" && test "$len" -le 3000; then + echo "# Reproduce by: $actioncmd" + fi fi echo uses_subdirs= -- 2.11.0