summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2019-07-20 13:54:27 +0800
committerFederico Mena Quintero <federico.mena@gmail.com>2019-07-22 18:39:12 +0000
commitf6dfb716b518355cc135e10d2650cb5d9c6358fd (patch)
treecbb8a66b28711e848b09c2c2864064c8d7233c1c
parentab61c2656dfa4240389f282d1815afd0d419b6d3 (diff)
downloadlibrsvg-wip/lantw/allow-building-with-gettext-0.20.tar.gz
Allow building with gettext ≥ 0.20wip/lantw/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.
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fea5fa67..70406c7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,9 @@ dnl ===========================================================================
dnl Gettext stuff
dnl ===========================================================================
+# FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
AM_GNU_GETTEXT_VERSION([0.19.8])
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
AM_GNU_GETTEXT([external])
AC_SUBST([GETTEXT_PACKAGE], [librsvg])