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