From: Bruno Haible Date: Thu, 7 Jan 2021 22:15:05 +0000 (+0100) Subject: Update after gnulib changed. X-Git-Tag: v0.21.1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec5e36895f1db2e542076fed81014866bc8f384c;p=thirdparty%2Fgettext.git Update after gnulib changed. * gettext-runtime/m4/intl.m4 (AM_INTL_SUBDIR): Test gt_localename_enhances_locale_funcs instead of gt_nameless_locales. Set ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES. * gettext-runtime/intl/Makefile.am (libgnuintl.h, libintl.h): Substitute ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES. * gettext-runtime/intl/libgnuintl.in.h: Test ENHANCE_LOCALE_FUNCS, not HAVE_NAMELESS_LOCALES. --- diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am index ebd44dfb7..329c1410b 100644 --- a/gettext-runtime/intl/Makefile.am +++ b/gettext-runtime/intl/Makefile.am @@ -1,6 +1,6 @@ ## Makefile for the gettext-runtime/intl and gettext-tools/intl subdirectories ## of GNU gettext. -## Copyright (C) 1995-1998, 2000-2007, 2009-2020 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2007, 2009-2021 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by @@ -276,8 +276,8 @@ libgnuintl.h: $(srcdir)/libgnuintl.in.h $(srcdir)/export.h -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ - -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ + -e 's,@''ENHANCE_LOCALE_FUNCS''@,@ENHANCE_LOCALE_FUNCS@,g' \ < $(srcdir)/libgnuintl.in.h \ | if test '@WOE32DLL@' = yes; then \ sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \ @@ -296,8 +296,8 @@ libintl.h: $(srcdir)/libgnuintl.in.h -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ - -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ + -e 's,@''ENHANCE_LOCALE_FUNCS''@,@ENHANCE_LOCALE_FUNCS@,g' \ < $(srcdir)/libgnuintl.in.h > libintl.h MOSTLYCLEANFILES += libintl.h diff --git a/gettext-runtime/intl/libgnuintl.in.h b/gettext-runtime/intl/libgnuintl.in.h index 6fb192061..7c6729197 100644 --- a/gettext-runtime/intl/libgnuintl.in.h +++ b/gettext-runtime/intl/libgnuintl.in.h @@ -1,5 +1,5 @@ /* Message catalogs for internationalization. - Copyright (C) 1995-1997, 2000-2016, 2018-2020 Free Software Foundation, Inc. + Copyright (C) 1995-1997, 2000-2016, 2018-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -459,7 +459,7 @@ extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); /* Support for retrieving the name of a locale_t object. */ -#if @HAVE_NAMELESS_LOCALES@ +#if @ENHANCE_LOCALE_FUNCS@ #ifndef GNULIB_defined_newlocale /* don't override gnulib */ #undef newlocale diff --git a/gettext-runtime/m4/intl.m4 b/gettext-runtime/m4/intl.m4 index 3a94c2092..788bc120a 100644 --- a/gettext-runtime/m4/intl.m4 +++ b/gettext-runtime/m4/intl.m4 @@ -1,5 +1,5 @@ -# intl.m4 serial 45 (gettext-0.21.1) -dnl Copyright (C) 1995-2014, 2016-2020 Free Software Foundation, Inc. +# intl.m4 serial 46 (gettext-0.21.1) +dnl Copyright (C) 1995-2014, 2016-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -119,12 +119,12 @@ AC_DEFUN([AM_INTL_SUBDIR], AM_LANGINFO_CODESET gt_LC_MESSAGES - if test $gt_nameless_locales = yes; then - HAVE_NAMELESS_LOCALES=1 + if test $gt_localename_enhances_locale_funcs = yes; then + ENHANCE_LOCALE_FUNCS=1 else - HAVE_NAMELESS_LOCALES=0 + ENHANCE_LOCALE_FUNCS=0 fi - AC_SUBST([HAVE_NAMELESS_LOCALES]) + AC_SUBST([ENHANCE_LOCALE_FUNCS]) dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export