[libgnome-games-support] The use of AM_GNU_GETTEXT_VERSION in configure.ac instructs autopoint to copy po/Makefile.in.in from



commit b647266502c560653c5d3a8299808f5ae2c21163
Author: Robert Roth <robert roth off gmail com>
Date:   Mon Aug 26 04:25:58 2019 +0300

    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.

 configure.ac | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/configure.ac b/configure.ac
index e2f4cbe..b97e73d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,7 @@ PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.19.2])
 
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.19.8])
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
 AC_SUBST([GETTEXT_PACKAGE], [AC_PACKAGE_NAME])
 
 AC_CONFIG_FILES([


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]