]> git.ipfire.org Git - thirdparty/gcc.git/commit
*: add modern gettext
authorArsen Arsenović <arsen@aarsen.me>
Fri, 19 May 2023 19:12:57 +0000 (21:12 +0200)
committerArsen Arsenović <arsen@gcc.gnu.org>
Mon, 13 Nov 2023 23:47:11 +0000 (00:47 +0100)
commitdb50aea62595452db12565186cb520728540d987
tree0e0eb6aee1f36218e7246ffd75498bdc284f53e1
parentfbe4e64365ec7fc68536bbf351c2fb246afaf7e6
*: add modern gettext

This patch updates gettext.m4 and related .m4 files and adds
gettext-runtime as a gmp/mpfr/... style host library, allowing newer
libintl to be used.

This patch /does not/ add build-time tools required for
internationalizing (msgfmt et al), instead, it just updates the runtime
library.  The result should be a distribution that acts exactly the same
when a copy of gettext is present, and disables internationalization
otherwise.

There should be no changes in behavior when gettext is included in-tree.
When gettext is not included in tree, nor available on the system, the
programs will be built without localization.

ChangeLog:

PR bootstrap/12596
* .gitignore: Add '/gettext*'.
* configure.ac (host_libs): Replace intl with gettext.
(hbaseargs, bbaseargs, baseargs): Split baseargs into
{h,b}baseargs.
(skip_barg): New flag.  Skips appending current flag to
bbaseargs.
<library exemptions>: Exempt --with-libintl-{type,prefix} from
target and build machine argument passing.
* configure: Regenerate.
* Makefile.def (host_modules): Replace intl module with gettext
module.
(configure-ld): Depend on configure-gettext.
* Makefile.in: Regenerate.

config/ChangeLog:

* intlmacosx.m4: Import from gettext-0.22 (serial 8).
* gettext.m4: Sync with gettext-0.22 (serial 77).
* gettext-sister.m4 (ZW_GNU_GETTEXT_SISTER_DIR): Load gettext's
uninstalled-config.sh, or call AM_GNU_GETTEXT if missing.
* iconv.m4: Sync with gettext-0.22 (serial 26).

contrib/ChangeLog:

* prerequisites.sha512: Add gettext.
* prerequisites.md5: Add gettext.
* download_prerequisites: Add gettext.

gcc/ChangeLog:

* configure: Regenerate.
* aclocal.m4: Regenerate.
* Makefile.in (LIBDEPS): Remove (potential) ./ prefix from
LIBINTL_DEP.
* doc/install.texi: Document new (notable) flags added by the
optional gettext tree and by AM_GNU_GETTEXT.  Document libintl/libc
with gettext dependency.

libcpp/ChangeLog:

* configure: Regenerate.
* aclocal.m4: Regenerate.

libstdc++-v3/ChangeLog:

* configure: Regenerate.
19 files changed:
.gitignore
Makefile.def
Makefile.in
config/gettext-sister.m4
config/gettext.m4
config/iconv.m4
config/intlmacosx.m4 [new file with mode: 0644]
configure
configure.ac
contrib/download_prerequisites
contrib/prerequisites.md5
contrib/prerequisites.sha512
gcc/Makefile.in
gcc/aclocal.m4
gcc/configure
gcc/doc/install.texi
libcpp/aclocal.m4
libcpp/configure
libstdc++-v3/configure