Blame m4/codeset.m4

Packit Service 97d2fb
# codeset.m4 serial AM1 (gettext-0.10.40)
Packit Service 97d2fb
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
Packit Service 97d2fb
dnl This file is free software, distributed under the terms of the GNU
Packit Service 97d2fb
dnl General Public License.  As a special exception to the GNU General
Packit Service 97d2fb
dnl Public License, this file may be distributed as part of a program
Packit Service 97d2fb
dnl that contains a configuration script generated by Autoconf, under
Packit Service 97d2fb
dnl the same distribution terms as the rest of that program.
Packit Service 97d2fb
Packit Service 97d2fb
dnl From Bruno Haible.
Packit Service 97d2fb
Packit Service 97d2fb
AC_DEFUN([AM_LANGINFO_CODESET],
Packit Service 97d2fb
[
Packit Service 97d2fb
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
Packit Service 97d2fb
    [AC_TRY_LINK([#include <langinfo.h>],
Packit Service 97d2fb
      [char* cs = nl_langinfo(CODESET);],
Packit Service 97d2fb
      am_cv_langinfo_codeset=yes,
Packit Service 97d2fb
      am_cv_langinfo_codeset=no)
Packit Service 97d2fb
    ])
Packit Service 97d2fb
  if test $am_cv_langinfo_codeset = yes; then
Packit Service 97d2fb
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
Packit Service 97d2fb
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
Packit Service 97d2fb
  fi
Packit Service 97d2fb
])