X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fcodeset.m4;h=59535ebcff51de01319aae4a83239e006c6b8795;hb=bb4f35c07fc9cef71a8ee5cafba8164cdbfeda4e;hp=fbe6a80d3a1cbdc09feedfa4da7615efcf68718c;hpb=cfeec0749797616c7356b28f1a385fae73f86742;p=gnulib.git diff --git a/m4/codeset.m4 b/m4/codeset.m4 index fbe6a80d3..59535ebcf 100644 --- a/m4/codeset.m4 +++ b/m4/codeset.m4 @@ -1,19 +1,22 @@ -#serial 2 +# codeset.m4 serial AM1 (gettext-0.10.40) +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. -AC_DEFUN(jm_LANGINFO_CODESET, +AC_DEFUN([AM_LANGINFO_CODESET], [ - AC_CHECK_HEADERS(langinfo.h) - AC_CHECK_FUNCS(nl_langinfo) - - AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset, + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], - jm_cv_langinfo_codeset=yes, - jm_cv_langinfo_codeset=no) + am_cv_langinfo_codeset=yes, + am_cv_langinfo_codeset=no) ]) - if test $jm_cv_langinfo_codeset = yes; then + if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi