Blame m4/codeset.m4

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