Code

configure.ac: added --disable-nls
authorMax Kellermann <max@duempel.org>
Fri, 7 Nov 2008 07:25:51 +0000 (08:25 +0100)
committerMax Kellermann <max@duempel.org>
Fri, 7 Nov 2008 07:25:51 +0000 (08:25 +0100)
Option --disable-nls disables all NLS features, even if the system
supports it.

configure.ac

index 4dec85891ade1c5b59e5abbd4c41a505894a3300..212b618e5c9667d6c5c7136aa99c39b9dac8ad5a 100644 (file)
@@ -155,6 +155,19 @@ fi
 
 
 dnl i18n
+
+AC_MSG_CHECKING([national language support])
+AC_ARG_ENABLE([nls],
+       AS_HELP_STRING([--enable-nls], [Enable national language support]),
+       [enable_nls=$enableval],
+       [enable_nls=$disable_mini])
+AC_MSG_RESULT([$enable_nls])
+
+if test "x$enable_nls" = xno; then
+       glib24=no
+       nls=no
+fi
+
 AM_NLS
 if test "x$glib24" = "xyes"; then
   nls=$USE_NLS