From 311fe748b155bc889a91370018a5882d93b0bb47 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 28 May 2012 22:47:22 +0200 Subject: [PATCH] configure: add option to disable l10n Signed-off-by: "Yann E. MORIN" --- configure.ac | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index c062cb7..731d36b 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,13 @@ AC_ARG_ENABLE( [install utilities to manage .config files (default=no)])]) AC_SUBST([enable_utils], [${enable_utils:-yes}]) +AC_ARG_ENABLE( + [L10n], + [AS_HELP_STRING( + [--disable-L10n], + [enable localisation (L10n) (default=auto)])]) +AC_SUBST([enable_L10n], [${enable_L10n:-yes}]) + #---------------------------------------- # Options to selectively enable/disable frontends # All are selected by default @@ -215,11 +222,13 @@ AC_CHECK_FUNCS([ gettimeofday mkdir regcomp setlocale uname ]) #---------------------------------------- # Check for gettext, for the kconfig frontends -[has_gettext=yes] -AC_CHECK_HEADERS( - [libintl.h], - [ac_ct_gettext_hdr=$ac_header; break], - [has_gettext=no]) +[has_gettext="$enable_L10n"] +AS_IF( + [test "$has_gettext" = "yes"], + [AC_CHECK_HEADERS( + [libintl.h], + [ac_ct_gettext_hdr=$ac_header; break], + [has_gettext=no])]) AS_IF( [test "$has_gettext" = "yes"], [AC_CHECK_DECL( -- 2.39.5