aboutsummaryrefslogtreecommitdiff
blob: caba87184d91117651315540f207910f2736de4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/configure.ac
+++ b/configure.ac
@@ -332,18 +332,18 @@
 AM_CONDITIONAL([TEST], [test "x$enable_test" = "xyes"])
 
 dnl Check whether to include native language support (i18n)
-AC_MSG_CHECKING([whether to include NLS support])
-AC_ARG_ENABLE([nls],
-	AS_HELP_STRING([--enable-nls],
-		[include native language support (default=yes)]),
-	[], [enable_nls=yes]
-)
-AC_MSG_RESULT([$enable_nls])
-AS_IF([test "x$enable_nls" = "xyes"], [
-	AC_DEFINE([NLS], [1], [Native language support])
-	NLS="-DNLS"
-], [])
-AC_SUBST([NLS])
+AC_PREREQ([2.50])
+
+AC_DEFUN([AM_NLS],
+[
+  AC_MSG_CHECKING([whether NLS is requested])
+  dnl Default is enabled NLS
+  AC_ARG_ENABLE([nls],
+    [  --disable-nls           do not use Native Language Support],
+    USE_NLS=$enableval, USE_NLS=yes)
+  AC_MSG_RESULT([$USE_NLS])
+  AC_SUBST([USE_NLS])
+])
 
 dnl Check for new timed pixmap cache
 AC_MSG_CHECKING([whether to use a timed pixmap cache])