+2006-03-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * doc/autoconf.texi (Caching Results): Fix the examples to use a
+ recommended quoting style and discard unwanted output.
+
2006-03-05 Paul Eggert <eggert@cs.ucla.edu>
* lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
AC_DEFUN([AC_SHELL_TRUE],
[AC_CACHE_CHECK([whether true(1) works], [ac_cv_shell_true_works],
[ac_cv_shell_true_works=no
- true && ac_cv_shell_true_works=yes
- if test $ac_cv_shell_true_works = yes; then
+ (true) 2>/dev/null && ac_cv_shell_true_works=yes
+ if test "$ac_cv_shell_true_works" = yes; then
AC_DEFINE([TRUE_WORKS], [1],
[Define if `true(1)' works properly.])
fi])
AC_DEFUN([AC_SHELL_TRUE],
[AC_CACHE_CHECK([whether true(1) works], [ac_cv_shell_true_works],
[ac_cv_shell_true_works=no
- true && ac_cv_shell_true_works=yes])
- if test $ac_cv_shell_true_works = yes; then
+ (true) 2>/dev/null && ac_cv_shell_true_works=yes])
+ if test "$ac_cv_shell_true_works" = yes; then
AC_DEFINE([TRUE_WORKS], [1],
[Define if `true(1)' works properly.])
fi