* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
+2010-01-06 Paolo Bonzini <bonzini@gnu.org>
+
+ nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
+ * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
+ AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
+
2010-01-06 Jim Meyering <meyering@redhat.com>
readtokens: this module *does* require xalloc.h
[
AC_REQUIRE([gl_LANGINFO_H_DEFAULTS])
AC_REQUIRE([gl_LANGINFO_H])
- if test $HAVE_LANGINFO_H = 1; then
- AC_CHECK_FUNCS_ONCE([nl_langinfo])
- : # in case AC_CHECK_FUNCS_ONCE expands to nothing
- else
- ac_cv_func_nl_langinfo=no
- fi
- if test $ac_cv_func_nl_langinfo = yes; then
+ AC_CHECK_FUNCS_ONCE([nl_langinfo])
+ if test $HAVE_LANGINFO_H = 1 \
+ && test x$ac_cv_func_nl_langinfo = xyes; then
if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
:
else