Blame m4/codeset.m4

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