2N/A# codeset.m4 serial 5 (gettext-0.18.2)
2N/Adnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/Adnl From Bruno Haible.
2N/A
2N/AAC_DEFUN([AM_LANGINFO_CODESET],
2N/A[
2N/A AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
2N/A [AC_LINK_IFELSE(
2N/A [AC_LANG_PROGRAM(
2N/A [[#include <langinfo.h>]],
2N/A [[char* cs = nl_langinfo(CODESET); return !cs;]])],
2N/A [am_cv_langinfo_codeset=yes],
2N/A [am_cv_langinfo_codeset=no])
2N/A ])
2N/A if test $am_cv_langinfo_codeset = yes; then
2N/A AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
2N/A [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
2N/A fi
2N/A])