summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <vkareh@redhat.com>2020-01-09 07:54:17 -0500
committerVictor Kareh <vkareh@redhat.com>2020-01-09 10:50:57 -0500
commita5c0a3353bf015e4ba88f7ba4eef41a4610aa3d7 (patch)
treeee1bb53dddec188b25b6775623099db21298e149
parent74e0c20bcc9aba38636364d162e9b7daa225a003 (diff)
downloadlibwnck-a5c0a3353bf015e4ba88f7ba4eef41a4610aa3d7.tar.gz
build: Allow building with gettext ≥ 0.20
The use of AM_GNU_GETTEXT_VERSION in configure.ac instructs autopoint to copy po/Makefile.in.in from the exact gettext version. It is fine if the version of gettext installed on the system has the same minor version number with the requested version, but it fails if you have a newer version of gettext because of the mismatch between autoconf macros and Makefile.in.in. *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.20 Instead of specifying the exact version with AM_GNU_GETTEXT_VERSION, we can use AM_GNU_GETTEXT_REQUIRE_VERSION to ask autopoint to simply use the gettext version installed on the system to prevent the mismatch. This also bumps the version requirement on gettext to 0.19.6 because AM_GNU_GETTEXT_REQUIRE_VERSION was added in this version. fix copied from: https://gitlab.gnome.org/GNOME/libgsf/commit/91027d3447666c6f13c31b4b5984e1a8212983da
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 981e4ff..a33ea57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,8 @@ AC_ARG_ENABLE(tools,
[enable_tools=yes])
AM_CONDITIONAL(ENABLE_TOOLS, test "x$enable_tools" != "xno")
-AM_GNU_GETTEXT_VERSION([0.19.4])
+AM_GNU_GETTEXT_VERSION([0.19.6])
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
AM_GNU_GETTEXT([external])
GETTEXT_PACKAGE=libwnck-3.0