Autoupdated configure.in and config/m4/*.m4. Obsolete macros removed.
[elinks.git] / config / m4 / codeset.m4
bloba54e02d5da0c46813638ee6a91e011e67aca471b
1 #serial AM1
3 dnl From Bruno Haible.
5 AC_DEFUN([AM_LANGINFO_CODESET],
7   AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
8     [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[char* cs = nl_langinfo(CODESET);]])],[am_cv_langinfo_codeset=yes],[am_cv_langinfo_codeset=no])
9     ])
10   if test $am_cv_langinfo_codeset = yes; then
11     AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
12       [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
13   fi