From 68ad5f2fcb2c4d02cc7f5c85f3bebf86a5a53da1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 23 May 2006 23:30:57 +0000 Subject: [PATCH] Fix a bug in the previous patch: it assumed that echo '...\...' had the BSD interpretation rather than the SysV interpretation. Use a short here-document instead. --- lib/autoconf/status.m4 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 8d785fb1..57810fc9 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -680,12 +680,14 @@ while : do # Write a here document: dnl Quote, for the `[ ]' and `define'. - echo [' # First, check the format of the line: - cat >"$tmp/defines.sed" <<\CEOF -/^[ ]*#[ ]*undef[ ][ ]*'"$ac_word_re"'[ ]*$/b def -/^[ ]*#[ ]*define[ ][ ]*'"$ac_word_re"'[( ]/b def +[ cat >>$CONFIG_STATUS <<_ACEOF + # First, check the format of the line: + cat >"\$tmp/defines.sed" <<\\CEOF +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b -:def'] >>$CONFIG_STATUS +:def +_ACEOF] sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS -- 2.11.4.GIT