From 999825b056332cd0487e8078f869eae9b066d27a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 11 Jan 2002 23:00:58 +0000 Subject: natSystem.cc (init_properties): Only look for default locale if LC_MESSAGES is defined. * java/lang/natSystem.cc (init_properties): Only look for default locale if LC_MESSAGES is defined. * aclocal.m4, configure, include/config.h.in: Rebuilt. * configure.in: Call AM_LC_MESSAGES. * acinclude.m4 (AM_LC_MESSAGES): New macro. From-SVN: r48781 --- libjava/acinclude.m4 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'libjava/acinclude.m4') diff --git a/libjava/acinclude.m4 b/libjava/acinclude.m4 index a2034fc..3412e62f 100644 --- a/libjava/acinclude.m4 +++ b/libjava/acinclude.m4 @@ -191,3 +191,28 @@ size_t iconv(); fi AC_SUBST(LIBICONV) ]) + +# Check whether LC_MESSAGES is available in . +# Ulrich Drepper , 1995. +# +# This file can be copied and used freely without restrictions. It can +# be used in projects which are not available under the GNU General Public +# License or the GNU Library General Public License but which still want +# to provide support for the GNU gettext functionality. +# Please note that the actual code of the GNU gettext library is covered +# by the GNU Library General Public License, and the rest of the GNU +# gettext package package is covered by the GNU General Public License. +# They are *not* in the public domain. + +# serial 2 + +AC_DEFUN([AM_LC_MESSAGES], + [if test $ac_cv_header_locale_h = yes; then + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, + [AC_TRY_LINK([#include ], [return LC_MESSAGES], + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) + if test $am_cv_val_LC_MESSAGES = yes; then + AC_DEFINE(HAVE_LC_MESSAGES, 1, + [Define if your file defines LC_MESSAGES.]) + fi + fi]) -- cgit v1.1