On Fri, Sep 10, 2010 at 08:27:41PM +0200, Bruno Haible wrote: > 2010-09-10 Bruno Haible <[email protected]> > > langinfo, nl_langinfo: Fix for IRIX 5.3. > * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines > T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM, > HAVE_LANGINFO_YESEXPR. > * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM, > HAVE_LANGINFO_YESEXPR. > * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if > HAVE_LANGINFO_T_FMT_AMPM is 0. > (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if > HAVE_LANGINFO_YESEXPR is 0. > * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR, > NOEXPR. > * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem. > * doc/posix-functions/nl_langinfo.texi: Likewise. > Reported by Eric Blake. > 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. -tgc
