Blob Blame History Raw
From 962124a320a11b19bcb5d112887a748c27cc9b64 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <petr.pisar@atlas.cz>
Date: Mon, 1 Mar 2021 14:53:11 +0100
Subject: [PATCH] Do not force gettext 0.21 for autoreconf
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

AM_GNU_GETTEXT_VERSION() insists on exact match with system gettext.
This breaks autoreconf on systems with an older gettext.
AM_GNU_GETTEXT_REQUIRE_VERSION() is for specifying a minimal version.
But then Autoconf warns on missing AM_GNU_GETTEXT_VERSION(). So keep
both of them. A side effect is that autopoint invoked by autorconf
notifies that both macros exists. That seems harmless.

Signed-off-by: Petr Písař <petr.pisar@atlas.cz>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index b1b28cd..8488a2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AS_IF([test "$enable_debug" = "yes"],
 
 # Enable gettext
 AM_GNU_GETTEXT_VERSION([0.21])
+AM_GNU_GETTEXT_REQUIRE_VERSION([0.18.2])
 AM_GNU_GETTEXT([external])
 AM_CONDITIONAL([BUILD_NLS], [test "$USE_NLS" = "yes"])
 
-- 
2.26.2