** Fixes bug #517244
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 5 May 2008 19:05:35 +0000 (19:05 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Mon, 5 May 2008 19:05:35 +0000 (19:05 +0000)
2008-05-05  Matthew Barnes  <mbarnes@redhat.com>

** Fixes bug #517244

* configure.in:
Add test for nl_langinfo(CODESET).  Defines HAVE_CODESET.

svn path=/trunk/; revision=8738

ChangeLog
configure.in

index 924cd80..cde5c83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-05-05  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes bug #517244
+
+       * configure.in:
+       Add test for nl_langinfo(CODESET).  Defines HAVE_CODESET.
+
 2008-05-05  Wang Xin  <jedy.wang@sun.com>
 
        * libedataserver/e-proxy.c: Fixes #530688.
index 256783d..da5a937 100644 (file)
@@ -375,6 +375,17 @@ AC_TRY_RUN([
 CFLAGS="$save_CFLAGS"
 LIBS="$save_LIBS"
 
+dnl Check for nl_langinfo and CODESET
+AC_MSG_CHECKING([for nl_langinfo (CODESET)])
+AC_TRY_COMPILE([#include <langinfo.h>],
+       [char *codeset = nl_langinfo (CODESET);],
+       [ac_cv_langinfo_codeset=yes],
+       [ac_cv_langinfo_codeset=no])
+if test x$ac_cv_langinfo_codeset = xyes; then
+       AC_DEFINE(HAVE_CODESET, 1, [Have nl_langinfo (CODESET)])
+fi
+AC_MSG_RESULT($ac_cv_langinfo_codeset)
+
 dnl Check to see if strftime supports the use of %l and %k
 
 AC_MSG_CHECKING(for %l and %k support in strftime)