Hi,

Yes this is the right list :)


Automake's instspc.test fails when prefix has a ^M in it, it becomes an r on darwin:

/usr/bin/install -c -m 644 ../sub/nobase.h '/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/r-prefix/foo/sub' test -f '/Users/leodavis/autotools-new/automake-1.11/tests/instspc.dir/sub1/^M-prefix/foo/sub/nobase.h'
make: *** [test-install-sep] Error 1
+ eval 'build_failures="$build_failures


status.m4 has:
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'
else
  ac_cs_awk_cr=$ac_cr
fi

ac_cs_awk_cr seems to be getting set to '\r' - is this correct?

Then later:
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || AC_MSG_ERROR([could not setup config files machinery])
_ACEOF

The sed changes ^M to r:
$ printf "a^Mb" | sed 's/^M/\r/'
arb

It works with GNU sed:
printf "a^Mb" | sed 's/^M/\r/' | hexdump
0000000 61 0d 62
0000003

Peter
--
Peter O'Gorman
http://pogma.com


Reply via email to