]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Sep 2020 19:03:24 +0000 (21:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Sep 2020 19:42:11 +0000 (21:42 +0200)
Reported by Gavin Smith <gavinsmith0123@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
* m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.

ChangeLog
m4/gnulib-common.m4

index ec6ab91046d7084bfd5412a51252120e5e96eb5e..43e84b51809965e275c072c405f182a1e2b58e06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-09-27  Bruno Haible  <bruno@clisp.org>
+
+       Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
+       Reported by Gavin Smith <gavinsmith0123@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
+       * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
+
 2020-09-27  Bruno Haible  <bruno@clisp.org>
 
        extensions: Simplify last commit.
index 57343e440a18855108a8961d1a9b02ee2d555b12..a036454dbdb22aac23eca50fdac02b05188877a1 100644 (file)
@@ -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