summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2020-03-13 14:50:50 -0400
committerZack Weinberg <zackw@panix.com>2020-03-13 14:50:50 -0400
commit8a09003664733eb6bef031f56ef9cd575e403023 (patch)
tree4c56c2d4a963fcb7f37b0ccbbceefa8462ff82c8 /NEWS
parentb2e4b6333785aa55814bfd8f8747a9ce948fa88e (diff)
downloadautoconf-8a09003664733eb6bef031f56ef9cd575e403023.tar.gz
Define $as_echo and $as_echo_n for backward compatibility.
Commit 2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf removed the internal shell variables $as_echo and $as_echo_n. It turns out that these are used by several widely-used third-party m4 files (notably both gnulib-common.m4 from gnulib, and ax_pthread.m4 from the Autoconf macro archive) as well as any number of existing configure.ac’s. Restore these shell variables, unconditionally defining them to use printf. Issue -Wobsolete warnings if they are used, recommending the use of AS_ECHO and AS_ECHO_N respectively. Add a test which checks both that they do work and that they trigger warnings.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS6
1 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 24aec0f6..3cb2876d 100644
--- a/NEWS
+++ b/NEWS
@@ -17,9 +17,13 @@ GNU Autoconf NEWS - User visible changes.
by autoreconf.
** Use of printf is now recommended instead of working around bugs in
- echo. Macros AS_ECHO and AS_ECHO_N now expand unconditionally to
+ echo. The macros AS_ECHO and AS_ECHO_N now expand unconditionally to
'printf "%s\n"' and 'printf %s'.
+** Use of the undocumented internal shell variables $as_echo and
+ $as_echo_n now elicits a warning in the 'obsolete' category.
+ The macros AS_ECHO and AS_ECHO_N should be used instead.
+
** AC_CHECK_HEADER and AC_CHECK_HEADERS now default to doing only a
compilation test. This completes the transition from preprocessor-
based header tests begun in Autoconf 2.56.