>From a20f05df0897a66fcfca7aaaa637e9dd84722d65 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 27 Sep 2020 21:03:24 +0200 Subject: [PATCH 1/2] Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c. Reported by Gavin Smith in . * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT. --- ChangeLog | 7 +++++++ m4/gnulib-common.m4 | 9 ++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec6ab91..43e84b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-09-27 Bruno Haible + Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c. + Reported by Gavin Smith in + . + * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT. + +2020-09-27 Bruno Haible + extensions: Simplify last commit. * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require AC_GNU_SOURCE ever. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 57343e4..a036454 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 60 +# gnulib-common.m4 serial 61 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -653,10 +653,9 @@ AC_DEFUN([gl_SILENT], # by an AC_MSG_CHECKING/AC_MSG_RESULT pair. AC_DEFUN([gl_CACHE_VAL_SILENT], [ - saved_as_echo_n="$as_echo_n" - as_echo_n=':' - AC_CACHE_VAL([$1], [$2]) - as_echo_n="$saved_as_echo_n" + gl_SILENT([ + AC_CACHE_VAL([$1], [$2]) + ]) ]) dnl Expands to some code for use in .c programs that, on native Windows, defines -- 2.7.4