Hi Tom, > This causes a build error. > source='nl_langinfo.c' object='nl_langinfo.o' libtool=no \ > DEPDIR=.deps depmode=sgi /bin/ksh ../build-aux/depcomp \ > cc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -g -c > nl_langinfo.c > ./langinfo.h 116: Syntax error > cfe: Error: ./langinfo.h:116: Badly formed constant expression. > ./langinfo.h 130: Syntax error > cfe: Error: ./langinfo.h:130: Badly formed constant expression. > > I see in config.log: > HAVE_LANGINFO_T_FMT_AMPM='' > HAVE_LANGINFO_YESEXPR='' > > Looks like just missing initialization in langinfo_h.m4.
Oops, you're right. I'm applying this fixup. Thanks for your rapid testing! Bruno 2010-09-10 Bruno Haible <[email protected]> langinfo: Fix last commit. * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR. Reported by Tom G. Christensen <[email protected]>. --- m4/langinfo_h.m4.orig Fri Sep 10 23:17:21 2010 +++ m4/langinfo_h.m4 Fri Sep 10 23:17:06 2010 @@ -16,12 +16,14 @@ dnl Determine whether <langinfo.h> exists. It is missing on mingw and BeOS. HAVE_LANGINFO_CODESET=0 + HAVE_LANGINFO_T_FMT_AMPM=0 HAVE_LANGINFO_ERA=0 + HAVE_LANGINFO_YESEXPR=0 AC_CHECK_HEADERS_ONCE([langinfo.h]) if test $ac_cv_header_langinfo_h = yes; then HAVE_LANGINFO_H=1 dnl Determine what <langinfo.h> defines. CODESET and ERA etc. are missing - dnl on OpenBSD 3.8. T_FMT_AMPM an YESEXPR, NOEXPR are missing on IRIX 5.3. + dnl on OpenBSD 3.8. T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3. AC_CACHE_CHECK([whether langinfo.h defines CODESET], [gl_cv_header_langinfo_codeset], [AC_COMPILE_IFELSE(
