summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2013-12-22 21:50:50 +0000
committerTim-Philipp Müller <tim@centricular.com>2013-12-22 22:06:11 +0000
commita20eb84625f74a600755962e156780659b989b57 (patch)
tree01d195e21d715a896bf7ea1ae0f828bbcc9008e4 /m4
parente73bf974d9a86aa10a741e530e4447992386d0ab (diff)
gst-gettext.m4: make sure DOMAIN in po/Makevars matches GETTEXT_DOMAIN
https://bugzilla.gnome.org/show_bug.cgi?id=705455
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-gettext.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/gst-gettext.m4 b/m4/gst-gettext.m4
index a63651b..9dd658e 100644
--- a/m4/gst-gettext.m4
+++ b/m4/gst-gettext.m4
@@ -14,6 +14,13 @@ AC_DEFUN([AG_GST_GETTEXT],
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
[gettext package name])
+ dnl make sure po/Makevars is kept in sync with GETTEXT_PACKAGE
+ if test -d "${srcdir}/po"; then
+ if ! grep -e "$1" "${srcdir}/po/Makevars"; then
+ AC_MSG_ERROR([DOMAIN in po/Makevars does not match GETTEXT_PACKAGE $1])
+ fi
+ fi
+
dnl define LOCALEDIR in config.h
AS_AC_EXPAND(LOCALEDIR, $datadir/locale)
AC_DEFINE_UNQUOTED([LOCALEDIR], "$LOCALEDIR",