i18n: Use Gnulib's `nl_langinfo' module.
authorLudovic Courtès <ludo@gnu.org>
Fri, 3 Feb 2012 13:05:31 +0000 (14:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 3 Feb 2012 13:14:14 +0000 (14:14 +0100)
commita0919aefee7512686c3374876df2c549fd47e071
tree373ae4e717076d6554ccff4077539d6ac02c5eb0
parenteb4a14ed47a34e03566261b02c77bfcc02b20134
i18n: Use Gnulib's `nl_langinfo' module.

* configure.ac: Remove checks for <langinfo.h> and <nl_types.h>, and
  `nl_langinfo'.

* libguile/i18n.c: Remove #ifdefs for HAVE_LANGINFO_H, HAVE_NL_TYPES_H,
  HAVE_NL_ITEM, and HAVE_LANGINFO_CODESET.
  (SCM_VALIDATE_OPTIONAL_LOCALE_COPY): Use `SCM_UNBNDP'.

* m4/gnulib-cache.m4 (gl_MODULES): Add `nl_langinfo'.

* module/ice-9/i18n.scm (define-vector-langinfo-mapping): Remove
  `defaults' parameter; assume (provided? 'nl-langinfo) is always true.
  Update users accordingly.
  (define-simple-langinfo-mapping): Likewise.
  (define-monetary-langinfo-mapping): Likewise, but do not assume
  LOCAL-ITEM and INTL-ITEM are always defined.
configure.ac
lib/Makefile.am
libguile/i18n.c
m4/gnulib-cache.m4
module/ice-9/i18n.scm