From: Yann E. MORIN" Date: Mon, 28 May 2012 19:34:47 +0000 (+0200) Subject: utils: don't build gettext if intl support is missing X-Git-Tag: v3.5.0-0~21 X-Git-Url: https://git.sur5r.net/?p=kconfig-frontends;a=commitdiff_plain;h=3653fae6ed2d1ac78063f7629143cb958646dc45 utils: don't build gettext if intl support is missing Signed-off-by: "Yann E. MORIN" --- 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) \