$OpenBSD: patch-libjava_aclocal_m4,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $ --- libjava/aclocal.m4.orig 2003-10-16 22:10:48.000000000 +0200 +++ libjava/aclocal.m4 2003-11-10 20:03:57.000000000 +0100 @@ -458,3 +458,19 @@ for am_file in <<$1>>; do done<<>>dnl>>) changequote([,]))]) +dnl From Bruno Haible. + +AC_DEFUN([AM_LANGINFO_CODESET], +[ + AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, + [AC_TRY_LINK([#include ], + [char* cs = nl_langinfo(CODESET);], + am_cv_langinfo_codeset=yes, + am_cv_langinfo_codeset=no) + ]) + if test $am_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + [Define if you have and nl_langinfo(CODESET).]) + fi +]) +