nl_langinfo: Simplify logic.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Jan 2010 20:25:30 +0000 (21:25 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 7 Jan 2010 20:25:30 +0000 (21:25 +0100)
ChangeLog
m4/nl_langinfo.m4

index 81e108b63d2d74063ac74e8c42c8f32a7b8ebe6f..a5622985e23acdfe6b31ad114e4275c3c3347185 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-07  Bruno Haible  <bruno@clisp.org>
+
+       * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
+
 2010-01-07  John W. Eaton  <jwe@octave.org>
 
        wctype: allow C++ use
index e13546ba0e137d93d29bd1697d37d676eb6bbfb7..ad456a264ce925faa0c181e9a8dc4f28517af663 100644 (file)
@@ -1,4 +1,4 @@
-# nl_langinfo.m4 serial 2
+# nl_langinfo.m4 serial 3
 dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,8 +9,7 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
   AC_REQUIRE([gl_LANGINFO_H_DEFAULTS])
   AC_REQUIRE([gl_LANGINFO_H])
   AC_CHECK_FUNCS_ONCE([nl_langinfo])
-  if test $HAVE_LANGINFO_H = 1 \
-     && test x$ac_cv_func_nl_langinfo = xyes; then
+  if test $ac_cv_func_nl_langinfo = yes; then
     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
       :
     else