Work around cygwin bash igncr mode.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
bash carriage returns if ac_cr lost \r from ``.
* THANKS: Update.
Suggested by Eric Blake.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Aaron W. LaFramboise 2009-03-22 01:06:58 -05:00 committed by Eric Blake
parent dbcfd3b29f
commit 60e637d68f
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
Work around cygwin bash igncr mode.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
bash carriage returns if ac_cr lost \r from ``.
* THANKS: Update.
Suggested by Eric Blake.
2009-03-24 Eric Blake <ebb9@byu.net>
Fix underquoted example in manual.

1
THANKS
View File

@ -9,6 +9,7 @@ contributions significant enough to warrant copyright assignment.
Aaron Crane aaronc@pobox.com
Aaron M. Ucko amu@alum.mit.edu
Aaron W. LaFramboise aaronenvelope277@aaronwl.com
Adam J. Richter adam@yggdrasil.com
Aharon Robbins arnold@gnu.org
Akim Demaille akim@freefriends.org

View File

@ -377,6 +377,12 @@ else
ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
fi]])
ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'