5 AC_DEFUN(jm_LANGINFO_CODESET,
7 AC_CHECK_HEADERS(langinfo.h)
8 AC_CHECK_FUNCS(nl_langinfo)
10 AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
11 [AC_TRY_LINK([#include <langinfo.h>],
12 [char* cs = nl_langinfo(CODESET);],
13 jm_cv_langinfo_codeset=yes,
14 jm_cv_langinfo_codeset=no)
16 if test $jm_cv_langinfo_codeset = yes; then
17 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
18 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])