Blame m4/lcmessage.m4

Packit 1ac44c
# lcmessage.m4 serial 7 (gettext-0.18.2)
Packit 1ac44c
dnl Copyright (C) 1995-2002, 2004-2005, 2008-2013 Free Software Foundation,
Packit 1ac44c
dnl Inc.
Packit 1ac44c
dnl This file is free software; the Free Software Foundation
Packit 1ac44c
dnl gives unlimited permission to copy and/or distribute it,
Packit 1ac44c
dnl with or without modifications, as long as this notice is preserved.
Packit 1ac44c
dnl
Packit 1ac44c
dnl This file can can be used in projects which are not available under
Packit 1ac44c
dnl the GNU General Public License or the GNU Library General Public
Packit 1ac44c
dnl License but which still want to provide support for the GNU gettext
Packit 1ac44c
dnl functionality.
Packit 1ac44c
dnl Please note that the actual code of the GNU gettext library is covered
Packit 1ac44c
dnl by the GNU Library General Public License, and the rest of the GNU
Packit 1ac44c
dnl gettext package package is covered by the GNU General Public License.
Packit 1ac44c
dnl They are *not* in the public domain.
Packit 1ac44c
Packit 1ac44c
dnl Authors:
Packit 1ac44c
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
Packit 1ac44c
Packit 1ac44c
# Check whether LC_MESSAGES is available in <locale.h>.
Packit 1ac44c
Packit 1ac44c
AC_DEFUN([gt_LC_MESSAGES],
Packit 1ac44c
[
Packit 1ac44c
  AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
Packit 1ac44c
    [AC_LINK_IFELSE(
Packit 1ac44c
       [AC_LANG_PROGRAM(
Packit 1ac44c
          [[#include <locale.h>]],
Packit 1ac44c
          [[return LC_MESSAGES]])],
Packit 1ac44c
       [gt_cv_val_LC_MESSAGES=yes],
Packit 1ac44c
       [gt_cv_val_LC_MESSAGES=no])])
Packit 1ac44c
  if test $gt_cv_val_LC_MESSAGES = yes; then
Packit 1ac44c
    AC_DEFINE([HAVE_LC_MESSAGES], [1],
Packit 1ac44c
      [Define if your <locale.h> file defines LC_MESSAGES.])
Packit 1ac44c
  fi
Packit 1ac44c
])