From 3653fae6ed2d1ac78063f7629143cb958646dc45 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 28 May 2012 21:34:47 +0200 Subject: [PATCH] utils: don't build gettext if intl support is missing Signed-off-by: "Yann E. MORIN" --- configure.ac | 3 +++ utils/Makefile.am | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a01b715..c062cb7 100644 --- a/configure.ac +++ b/configure.ac @@ -418,6 +418,9 @@ AM_CONDITIONAL( AM_CONDITIONAL( [COND_utils], [test "$enable_utils" = "yes"]) +AM_CONDITIONAL( + [COND_utils_gettext], + [test "$has_gettext" = "yes"]) #---------------------------------------- # Get the version to apply to the parser shared library diff --git a/utils/Makefile.am b/utils/Makefile.am index f81be38..843c696 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -1,6 +1,10 @@ dist_bin_SCRIPTS = tweak diff merge dist_bin_SCRIPTS += streamline -bin_PROGRAMS = gettext + +if COND_utils_gettext + MAYBE_utils_gettext = gettext +endif +bin_PROGRAMS = $(MAYBE_utils_gettext) gettext_SOURCES = gettext.c gettext_CPPFLAGS = $(AM_CPPFLAGS) \ -- 2.39.5