]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Revert "config.status: handle CRLF line endings in AC_CONFIG_HEADERS input"
authorZack Weinberg <zack@owlfolio.org>
Mon, 18 Dec 2023 23:25:27 +0000 (18:25 -0500)
committerZack Weinberg <zack@owlfolio.org>
Mon, 18 Dec 2023 23:25:27 +0000 (18:25 -0500)
Solaris 10 /usr/bin/awk doesn't implement sub().  Let's defer this
change until after the release and I have time to think about it
some more.

This reverts commit bfd3894367e4d1c36c514e02c62173cde157f06b.
This reopens bug <https://savannah.gnu.org/support/?110554>.

lib/autoconf/status.m4
tests/torture.at

index e5eb67bff663f7ed0365a388c99c17c3c096b381..2bfaf32bccd0a72773e5fd7d87c37b3835a559a2 100644 (file)
@@ -503,7 +503,6 @@ cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 }
 {
   line = $ 0
-  sub(/\r\$/, "", line)
   nfields = split(line, field, "@")
   substed = 0
   len = length(field[1])
@@ -825,7 +824,6 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   for (key in D) D_is_set[key] = 1
   FS = "\a"
 }
-{ sub(/\r\$/, "", \$ 0) }
 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   line = \$ 0
   split(line, arg, " ")
index 4e81d0dce1449dcff6a6040e7295995c147d7116..ba52e12dc8c64d74ee5a89a7f1b5dee9e372e5d1 100644 (file)
@@ -1093,35 +1093,6 @@ AT_CHECK_DEFINES([[#define foo one
 
 AT_CLEANUP
 
-## ------------------- ##
-## CRLF line endings.  ##
-## ------------------- ##
-
-AT_SETUP([CRLF line endings in .in files])
-
-AT_CONFIGURE_AC([[
-AC_DEFINE([MACRO], [1], [Define MACRO as 1 always.])
-AC_SUBST([VARIABLE], [value])
-AC_CONFIG_FILES([config.out:config.oin])
-]])
-
-# Shell `printf` should understand \r.
-AT_CHECK([printf '%s\r\n' \
-  '/* Define MACRO as 1 always. */' \
-  '#undef MACRO' \
-  > config.hin])
-AT_CHECK([printf '%s\r\n' \
-  'VARIABLE=@VARIABLE@' \
-  > config.oin])
-
-AT_SKIP_IF([grep '\\r' config.hin > /dev/null])
-
-AT_CHECK_AUTOCONF
-AT_CHECK_CONFIGURE
-AT_CHECK([grep '#define MACRO 1' config.h > /dev/null])
-AT_CHECK([grep 'VARIABLE=value' config.out > /dev/null])
-
-AT_CLEANUP
 
 ## ------------------------------------ ##
 ## AC_SUBST: variable name validation.  ##