diff options
author | Tom Tromey <tromey@redhat.com> | 2002-01-11 23:00:58 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-01-11 23:00:58 +0000 |
commit | 999825b056332cd0487e8078f869eae9b066d27a (patch) | |
tree | 1d139542491b284e8c2d967e32d05338ecf6ae5c /libjava/acinclude.m4 | |
parent | 3e92902c7e34bd561ceb94757b13152d443a2454 (diff) | |
download | gcc-999825b056332cd0487e8078f869eae9b066d27a.zip gcc-999825b056332cd0487e8078f869eae9b066d27a.tar.gz gcc-999825b056332cd0487e8078f869eae9b066d27a.tar.bz2 |
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
Diffstat (limited to 'libjava/acinclude.m4')
-rw-r--r-- | libjava/acinclude.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
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 <locale.h>. +# Ulrich Drepper <drepper@cygnus.com>, 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 <locale.h>], [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 <locale.h> file defines LC_MESSAGES.]) + fi + fi]) |