Blame m4/codeset.m4

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