[gtksourceview] Define ENABLE_NLS if NLS is enabled in configure
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Define ENABLE_NLS if NLS is enabled in configure
- Date: Wed, 28 Aug 2013 17:59:54 +0000 (UTC)
commit bf9bde4601bcd28ea92434277d949fe6ee8e8e70
Author: David King <amigadave amigadave com>
Date: Wed Aug 28 17:13:48 2013 +0100
Define ENABLE_NLS if NLS is enabled in configure
ENABLE_NLS is not defined by intltool if NLS is enabled, so add a check
in configure.ac and call AC_DEFINE if NLS is used.
https://bugzilla.gnome.org/show_bug.cgi?id=706846
configure.ac | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7cb30b3..829efdb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,6 +136,8 @@ AS_IF([ test "$glade_catalog" = "yes" ],
# i18N stuff
IT_PROG_INTLTOOL([0.40])
+AS_IF([test "$USE_NLS" = "yes"],
+ [AC_DEFINE([ENABLE_NLS], [1], [Defined if native language support should be enabled.])])
AC_SUBST([GETTEXT_PACKAGE], [gtksourceview-3.0])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Define to the gettext package name.])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]