xref: /netbsd-src/external/gpl2/diffutils/dist/m4/lcmessage.m4 (revision 75f6d617e282811cb173c2ccfbf5df0dd71f7045)
1*75f6d617Schristos# lcmessage.m4 serial 2 (gettext-0.10.40)
2*75f6d617Schristosdnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
3*75f6d617Schristosdnl This file is free software, distributed under the terms of the GNU
4*75f6d617Schristosdnl General Public License.  As a special exception to the GNU General
5*75f6d617Schristosdnl Public License, this file may be distributed as part of a program
6*75f6d617Schristosdnl that contains a configuration script generated by Autoconf, under
7*75f6d617Schristosdnl the same distribution terms as the rest of that program.
8*75f6d617Schristosdnl
9*75f6d617Schristosdnl This file can can be used in projects which are not available under
10*75f6d617Schristosdnl the GNU General Public License or the GNU Library General Public
11*75f6d617Schristosdnl License but which still want to provide support for the GNU gettext
12*75f6d617Schristosdnl functionality.
13*75f6d617Schristosdnl Please note that the actual code of the GNU gettext library is covered
14*75f6d617Schristosdnl by the GNU Library General Public License, and the rest of the GNU
15*75f6d617Schristosdnl gettext package package is covered by the GNU General Public License.
16*75f6d617Schristosdnl They are *not* in the public domain.
17*75f6d617Schristos
18*75f6d617Schristosdnl Authors:
19*75f6d617Schristosdnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
20*75f6d617Schristos
21*75f6d617Schristos# Check whether LC_MESSAGES is available in <locale.h>.
22*75f6d617Schristos
23*75f6d617SchristosAC_DEFUN([AM_LC_MESSAGES],
24*75f6d617Schristos  [if test $ac_cv_header_locale_h = yes; then
25*75f6d617Schristos    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
26*75f6d617Schristos      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
27*75f6d617Schristos       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
28*75f6d617Schristos    if test $am_cv_val_LC_MESSAGES = yes; then
29*75f6d617Schristos      AC_DEFINE(HAVE_LC_MESSAGES, 1,
30*75f6d617Schristos        [Define if your <locale.h> file defines LC_MESSAGES.])
31*75f6d617Schristos    fi
32*75f6d617Schristos  fi])
33