Blame glib/libcharset/codeset.m4

Packit ae235b
# codeset.m4 serial AM1 (gettext-0.10.40)
Packit ae235b
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
Packit ae235b
dnl This file is free software; the Free Software Foundation
Packit ae235b
dnl gives unlimited permission to copy and/or distribute it,
Packit ae235b
dnl with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
dnl From Bruno Haible.
Packit ae235b
Packit ae235b
AC_DEFUN([AM_LANGINFO_CODESET],
Packit ae235b
[
Packit ae235b
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
Packit ae235b
    [AC_TRY_LINK([#include <langinfo.h>],
Packit ae235b
      [char* cs = nl_langinfo(CODESET);],
Packit ae235b
      am_cv_langinfo_codeset=yes,
Packit ae235b
      am_cv_langinfo_codeset=no)
Packit ae235b
    ])
Packit ae235b
  if test $am_cv_langinfo_codeset = yes; then
Packit ae235b
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
Packit ae235b
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
Packit ae235b
  fi
Packit ae235b
])