Are you sure your patch changes something? I mean, the problem is
probably with the confdefs.undef file, not confdefs.defines:
confdefs.defines part:
| # Break up conftest.defines because some shells have a limit on the size
| # of here documents, and old seds have small limits too (100 cmds).
| echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
| echo ' if egrep ["^[ ]*#[ ]*define"] $tmp/in >/dev/null; then'
|>>$CONFIG_STATUS
| echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
| 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 <<CEOF' >>$CONFIG_STATUS
| dnl Speed up: don't consider the non `#define' lines.
| echo ['/^[ ]*#[ ]*define/!b'] >>$CONFIG_STATUS
| sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
| echo 'CEOF
| sed -f $tmp/frag $tmp/in >$tmp/out
| rm -f $tmp/in
| mv $tmp/out $tmp/in
| ' >>$CONFIG_STATUS
| sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
| rm -f conftest.defines
| mv conftest.tail conftest.defines
| done
+ echo : >>$CONFIG_STATUS
I don't think it is needed here, there is already one above. Maybe
you wanted it the section below?
| rm -f conftest.defines
| echo ' fi # egrep' >>$CONFIG_STATUS
| echo >>$CONFIG_STATUS
confdefs.undefs part:
| # Break up conftest.undefs because some shells have a limit on the size
| # of here documents, and old seds have small limits too (100 cmds).
| 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 <<CEOF' >>$CONFIG_STATUS
| dnl Speed up: don't consider the non `#undef'
| echo ['/^[ ]*#[ ]*undef/!b'] >>$CONFIG_STATUS
| sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
| echo 'CEOF
| sed -f $tmp/frag $tmp/in >$tmp/out
| rm -f $tmp/in
| mv $tmp/out $tmp/in
| ' >>$CONFIG_STATUS
| sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
| rm -f conftest.undefs
| mv conftest.tail conftest.undefs
| done
| rm -f conftest.undefs