]> git.ipfire.org Git - thirdparty/gettext.git/commit
m4: Rely less on internal symbols
authorDaiki Ueno <ueno@gnu.org>
Thu, 26 May 2016 04:38:57 +0000 (13:38 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 27 May 2016 08:39:22 +0000 (17:39 +0900)
commitb67399b40bc5bf3165b09e6a095ec941d4b30a97
treede31b6d530001b82cf52b688f942d7db49d547bb
parent34feee233ae4d66b2e1658159e5319ded111e97b
m4: Rely less on internal symbols

* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Skip checks for the
internal symbols _nl_msg_cat_cntr, _nl_domain_bindings, and
_nl_expand_alias, if __GNU_GETTEXT_SUPPORTED_REVISION is defined.
Problem reported and fix suggested by Masanori Ogino in:
https://lists.gnu.org/archive/html/bug-gettext/2016-04/msg00000.html
The rationale behind this is: (1) those symbol checks are for detecting
certain broken implementations, namely NetBSD and Solaris 7, and
(2) __GNU_GETTEXT_SUPPORTED_REVISION is not defined in those
implementations, while it is defined on compatible implementations, such
as musl-libc which doesn't have those internal symbols.
gettext-runtime/m4/gettext.m4