Blame m4/codeset.m4

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