From f678ea9725f06d3954f163e627ce9703488021a1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 28 Dec 2006 04:41:23 +0000 Subject: [PATCH] =?utf8?q?Use=20AC=5FCACHE=5FCHECK=20for=20the=20nl=5Flang?= =?utf8?q?info=20check.=20(#304517,=20L=C5=91rinczy?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2006-12-27 Matthias Clasen * configure.in: Use AC_CACHE_CHECK for the nl_langinfo check. (#304517, Lőrinczy Zsigmond) --- ChangeLog | 5 +++++ configure.in | 17 ++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 53df5ee..1124095 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-27 Matthias Clasen + + * configure.in: Use AC_CACHE_CHECK for the nl_langinfo + check. (#304517, Lőrinczy Zsigmond) + 2006-12-27 Tor Lillqvist * glib/gwin32.h diff --git a/configure.in b/configure.in index 74bd36a..c857a5f 100644 --- a/configure.in +++ b/configure.in @@ -1013,15 +1013,14 @@ if test x$glib_cv_sane_realloc = xyes; then fi dnl Check for nl_langinfo and CODESET - -AC_MSG_CHECKING([for nl_langinfo (CODESET)]) -AC_TRY_COMPILE([#include ], - [char *codeset = nl_langinfo (CODESET);], - AC_DEFINE(HAVE_CODESET,1,[Have nl_langinfo (CODESET)]) - have_codeset=yes, - have_codeset=no) -AC_MSG_RESULT($have_codeset) - +AC_CACHE_CHECK([for nl_langinfo (CODESET)],glib_cv_langinfo_codeset,[ + AC_TRY_COMPILE([#include ], + [char *codeset = nl_langinfo (CODESET);], + [glib_cv_langinfo_codeset=yes], + [glib_cv_langinfo_codeset=no])]) +if test x$glib_cv_langinfo_codeset = xyes; then + AC_DEFINE(HAVE_CODESET,1,[Have nl_langinfo (CODESET)]) +fi dnl **************************************** dnl *** posix_memalign *** -- 2.7.4