Mercurial > gnulib
diff m4/gnulib-common.m4 @ 11229:6dad92faecd1
Avoid spurious "(cached)" in configure output.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 27 Feb 2009 18:38:43 +0100 |
parents | 231dfa4dc2c1 |
children | e8d2c6fc33ad |
line wrap: on
line diff
--- a/m4/gnulib-common.m4 Fri Feb 27 08:46:07 2009 -0700 +++ b/m4/gnulib-common.m4 Fri Feb 27 18:38:43 2009 +0100 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 10 +# gnulib-common.m4 serial 11 dnl Copyright (C) 2007-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -109,3 +109,16 @@ [ AC_C_BIGENDIAN ]) + +# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) +# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not +# output a spurious "(cached)" mark in the midst of other configure output. +# This macro should be used instead of AC_CACHE_VAL when it is not surrounded +# 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" +])