From: Akim Demaille Date: Tue, 11 Jul 2000 10:12:30 +0000 (+0000) Subject: !*^&$@ sed portability problems... The test on AC_CHECK_TYPES is X-Git-Tag: autoconf-2.50~729 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a55506ba389768f4fd02218a2159ec53fe46ea;p=thirdparty%2Fautoconf.git !*^&$@ sed portability problems... The test on AC_CHECK_TYPES is failing on RISC/OS 4.52 because of the forget-to-reset-the-flag bug in its sed. * acgeneral.m4 (_AC_OUTPUT_HEADERS): Work around this bug. --- diff --git a/ChangeLog b/ChangeLog index ee944a30c..9b0063c18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-07-11 Akim Demaille + + !*^&$@ sed portability problems... The test on AC_CHECK_TYPES is + failing on RISC/OS 4.52 because of the forget-to-reset-the-flag + bug in its sed. + + * acgeneral.m4 (_AC_OUTPUT_HEADERS): Work around this bug. + 2000-07-11 Akim Demaille * acspecific.m4 (AC_INT_16_BITS, AC_LONG_64_BITS): s/ac_check/ac_cv/. diff --git a/acgeneral.m4 b/acgeneral.m4 index bf05b0fa6..0a2e31f10 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -4846,13 +4846,16 @@ echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do - # Write a limited-size here document to $tmp/frag. - echo ' cat >$tmp/frag <>$CONFIG_STATUS -dnl Speed up: don't consider the non `#define' lines. + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. echo ['/^[ ]*#[ ]*define/!b'] >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF - sed -f $tmp/frag $tmp/in >$tmp/out + sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS @@ -4870,13 +4873,16 @@ echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do - # Write a limited-size here document to $tmp/frag. - echo ' cat >$tmp/frag <>$CONFIG_STATUS -dnl Speed up: don't consider the non `#undef' + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' echo ['/^[ ]*#[ ]*undef/!b'] >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF - sed -f $tmp/frag $tmp/in >$tmp/out + sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index bf05b0fa6..0a2e31f10 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -4846,13 +4846,16 @@ echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do - # Write a limited-size here document to $tmp/frag. - echo ' cat >$tmp/frag <>$CONFIG_STATUS -dnl Speed up: don't consider the non `#define' lines. + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. echo ['/^[ ]*#[ ]*define/!b'] >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF - sed -f $tmp/frag $tmp/in >$tmp/out + sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS @@ -4870,13 +4873,16 @@ echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do - # Write a limited-size here document to $tmp/frag. - echo ' cat >$tmp/frag <>$CONFIG_STATUS -dnl Speed up: don't consider the non `#undef' + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' echo ['/^[ ]*#[ ]*undef/!b'] >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF - sed -f $tmp/frag $tmp/in >$tmp/out + sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS