]> git.sur5r.net Git - kconfig-frontends/commitdiff
utils: don't build gettext if intl support is missing
authorYann E. MORIN" <yann.morin.1998@free.fr>
Mon, 28 May 2012 19:34:47 +0000 (21:34 +0200)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Mon, 28 May 2012 19:34:47 +0000 (21:34 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
configure.ac
utils/Makefile.am

index a01b71547b6b50c959321dbe16efecaaa567dc80..c062cb729158a103c5c7ce1d0de5742eec99f7cc 100644 (file)
@@ -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
index f81be3816bd4f0787d1dd0ba608b0f10ff34c5c4..843c696f6a7850d72adcb51ad6f05892dd0b5e78 100644 (file)
@@ -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)   \