public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Arsen Arsenović" <arsen@aarsen.me>
To: gcc-patches@gcc.gnu.org
Cc: "Iain Sandoe" <iain@sandoe.co.uk>,
	"Bruno Haible" <bruno@clisp.org>,
	"Arsen Arsenović" <arsen@aarsen.me>
Subject: [PATCH v3 0/2] Replace intl/ with out-of-tree GNU gettext
Date: Thu,  2 Nov 2023 09:27:33 +0100	[thread overview]
Message-ID: <20231102083615.2736151-2-arsen@aarsen.me> (raw)

Morning!

This patch is a rebase and slight wording tweak of
https://inbox.sourceware.org/20231006140501.3370874-1-arsen@aarsen.me

Changes since v2:
- Elaborate on the libintl requirement on non-glibc hosts, per Andrews
  request

Range diff since v2 (since it seems sufficiently readable here):
@@ gcc/doc/install.texi: which lets GCC output diagnostics in languages
  English.  Native Language Support is enabled by default if not doing a
  canadian cross build.  The @option{--disable-nls} option disables NLS@.
  
++Note that this functionality requires either libintl (provided by GNU
++gettext) or C standard library that contains support for gettext (such
++as the GNU C Library).
++@xref{with-included-gettext,,--with-included-gettext} for more
++information on the conditions required to get gettext support.
++
 +@item --with-libintl-prefix=@var{dir}
 +@itemx --without-libintl-prefix
 +Searches for libintl in @file{@var{dir}/include} and
@@ gcc/doc/install.texi: which lets GCC output diagnostics in languages
 +Specifies the type of library to search for when looking for libintl.
 +@var{type} can be one of @code{auto}, @code{static} or @code{shared}.
 +
++@anchor{with-included-gettext}
  @item --with-included-gettext


OK for trunk?  (granted that a regstrap + hand-test for working
localization passes - build's ongoing asynchronously)

Thanks in advance, have a lovely day.

Arsen Arsenović (2):
  intl: remove, in favor of out-of-tree gettext
  *: add modern gettext

 .gitignore                     |    1 +
 Makefile.def                   |   72 +-
 Makefile.in                    | 1612 +++----
 config/gettext-sister.m4       |   35 +-
 config/gettext.m4              |  357 +-
 config/iconv.m4                |  313 +-
 config/intlmacosx.m4           |   69 +
 configure                      |   44 +-
 configure.ac                   |   44 +-
 contrib/download_prerequisites |    2 +
 contrib/prerequisites.md5      |    1 +
 contrib/prerequisites.sha512   |    1 +
 gcc/Makefile.in                |    8 +-
 gcc/aclocal.m4                 |    4 +
 gcc/configure                  | 2001 +++++++-
 gcc/doc/install.texi           |   72 +-
 intl/ChangeLog                 |  306 --
 intl/Makefile.in               |  264 -
 intl/README                    |   21 -
 intl/VERSION                   |    1 -
 intl/aclocal.m4                |   33 -
 intl/bindtextdom.c             |  374 --
 intl/config.h.in               |  280 --
 intl/config.intl.in            |   12 -
 intl/configure                 | 8288 --------------------------------
 intl/configure.ac              |  108 -
 intl/dcgettext.c               |   59 -
 intl/dcigettext.c              | 1238 -----
 intl/dcngettext.c              |   60 -
 intl/dgettext.c                |   60 -
 intl/dngettext.c               |   62 -
 intl/eval-plural.h             |  114 -
 intl/explodename.c             |  192 -
 intl/finddomain.c              |  195 -
 intl/gettext.c                 |   64 -
 intl/gettextP.h                |  224 -
 intl/gmo.h                     |  148 -
 intl/hash-string.h             |   59 -
 intl/intl-compat.c             |  151 -
 intl/l10nflist.c               |  453 --
 intl/libgnuintl.h              |  341 --
 intl/loadinfo.h                |  156 -
 intl/loadmsgcat.c              | 1322 -----
 intl/localcharset.c            |  398 --
 intl/localcharset.h            |   42 -
 intl/locale.alias              |   78 -
 intl/localealias.c             |  419 --
 intl/localename.c              |  772 ---
 intl/log.c                     |  104 -
 intl/ngettext.c                |   68 -
 intl/osdep.c                   |   24 -
 intl/plural-config.h           |    1 -
 intl/plural-exp.c              |  156 -
 intl/plural-exp.h              |  132 -
 intl/plural.c                  | 1540 ------
 intl/plural.y                  |  434 --
 intl/relocatable.c             |  439 --
 intl/relocatable.h             |   67 -
 intl/textdomain.c              |  142 -
 libcpp/aclocal.m4              |    5 +
 libcpp/configure               | 2139 ++++++++-
 libstdc++-v3/configure         |  727 +--
 62 files changed, 5467 insertions(+), 21441 deletions(-)
 create mode 100644 config/intlmacosx.m4
 delete mode 100644 intl/ChangeLog
 delete mode 100644 intl/Makefile.in
 delete mode 100644 intl/README
 delete mode 100644 intl/VERSION
 delete mode 100644 intl/aclocal.m4
 delete mode 100644 intl/bindtextdom.c
 delete mode 100644 intl/config.h.in
 delete mode 100644 intl/config.intl.in
 delete mode 100755 intl/configure
 delete mode 100644 intl/configure.ac
 delete mode 100644 intl/dcgettext.c
 delete mode 100644 intl/dcigettext.c
 delete mode 100644 intl/dcngettext.c
 delete mode 100644 intl/dgettext.c
 delete mode 100644 intl/dngettext.c
 delete mode 100644 intl/eval-plural.h
 delete mode 100644 intl/explodename.c
 delete mode 100644 intl/finddomain.c
 delete mode 100644 intl/gettext.c
 delete mode 100644 intl/gettextP.h
 delete mode 100644 intl/gmo.h
 delete mode 100644 intl/hash-string.h
 delete mode 100644 intl/intl-compat.c
 delete mode 100644 intl/l10nflist.c
 delete mode 100644 intl/libgnuintl.h
 delete mode 100644 intl/loadinfo.h
 delete mode 100644 intl/loadmsgcat.c
 delete mode 100644 intl/localcharset.c
 delete mode 100644 intl/localcharset.h
 delete mode 100644 intl/locale.alias
 delete mode 100644 intl/localealias.c
 delete mode 100644 intl/localename.c
 delete mode 100644 intl/log.c
 delete mode 100644 intl/ngettext.c
 delete mode 100644 intl/osdep.c
 delete mode 100644 intl/plural-config.h
 delete mode 100644 intl/plural-exp.c
 delete mode 100644 intl/plural-exp.h
 delete mode 100644 intl/plural.c
 delete mode 100644 intl/plural.y
 delete mode 100644 intl/relocatable.c
 delete mode 100644 intl/relocatable.h
 delete mode 100644 intl/textdomain.c

-- 
2.42.0


             reply	other threads:[~2023-11-02  8:41 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-02  8:27 Arsen Arsenović [this message]
2023-11-02  8:27 ` [PATCH v3 1/2] intl: remove, in favor of out-of-tree gettext Arsen Arsenović
2023-11-02  8:45 ` [PATCH v3 2/2] *: add modern gettext Arsen Arsenović
2023-11-10 10:37 ` [PATCH v3 0/2] Replace intl/ with out-of-tree GNU gettext Richard Biener
2023-11-14 20:37 David Edelsohn
2023-11-14 23:06 ` Arsen Arsenović
2023-11-15  1:49   ` David Edelsohn
2023-11-15 14:14     ` Arsen Arsenović
2023-11-15 15:51       ` Xi Ruoyao
2023-11-16 18:48         ` Arsen Arsenović
2023-11-15 17:19       ` David Edelsohn
2023-11-16 18:33         ` Arsen Arsenović
2023-11-16 21:11           ` Arsen Arsenović
2023-11-16 21:40             ` David Edelsohn
2023-11-16 22:19               ` Arsen Arsenović
2023-11-16 22:30                 ` David Edelsohn
2023-11-16 22:32                   ` Arsen Arsenović
2023-11-16 23:59                     ` David Edelsohn
2023-11-17  8:34                       ` Arsen Arsenović
2023-11-17  8:50                         ` Richard Biener
2023-11-17  8:56                           ` Arsen Arsenović
2023-11-17 14:41                         ` David Edelsohn
2023-11-17 15:16                           ` Arsen Arsenović
2023-11-17 16:07                             ` David Edelsohn
2023-11-18 18:10                               ` Arsen Arsenović
2023-11-19 21:55                               ` Bruno Haible
2023-11-19 23:00                                 ` Bruno Haible
2023-11-19 23:06                                   ` Andrew Pinski
2023-11-20  1:17                                 ` David Edelsohn
2023-11-20 21:18                                   ` Arsen Arsenović
2023-11-20 21:38                                     ` David Edelsohn
2023-11-21  0:44                                       ` Arsen Arsenović
2023-11-20 23:00                                     ` Bruno Haible
2023-11-21  0:45                                       ` Arsen Arsenović
2023-11-21 13:13                                         ` Arsen Arsenović
2023-11-21 16:28                                           ` David Edelsohn
2023-11-21 20:58                                           ` Eric Gallager
2023-11-15 19:58       ` David Edelsohn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231102083615.2736151-2-arsen@aarsen.me \
    --to=arsen@aarsen.me \
    --cc=bruno@clisp.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iain@sandoe.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).