aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-25 04:29:56 +0100
committerMax Kellermann <max@duempel.org>2008-12-25 04:29:56 +0100
commit844bc26c63e8a0b448a7da6ee89acdcc4585924a (patch)
tree831f84aa30764d96406f9ff82f198441728eb836
parent8b42b7cf6e77c610313fcaeb973f4d515b1b04f5 (diff)
downloadmpd-844bc26c63e8a0b448a7da6ee89acdcc4585924a.tar.gz
mpd-844bc26c63e8a0b448a7da6ee89acdcc4585924a.tar.xz
mpd-844bc26c63e8a0b448a7da6ee89acdcc4585924a.zip
configure.ac: disable NLS in mini mode
-rw-r--r--configure.ac14
1 files changed, 8 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index a6884456d..6211f0ee6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,19 +154,21 @@ if test x$enable_locale = xyes; then
AC_DEFINE([ENABLE_LOCALE], [1], [Locale support is enabled])
fi
+if test x$enable_mini != xyes; then
+ AM_NLS
+else
+ USE_NLS=no
+fi
-AM_NLS
-nls=$USE_NLS
-
-if test "x$nls" = "xyes"; then
+if test x$USE_NLS = xyes; then
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=$PACKAGE
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],
["${GETTEXT_PACKAGE}"],
[gettext domain])
- nls=$gt_cv_have_gettext
- if test "x$nls" != "xyes"; then
+ USE_NLS=$gt_cv_have_gettext
+ if test x$USE_NLS != xyes; then
AC_MSG_WARN([NLS support disabled!])
fi
else