a63651bf843c343e85283a67e1cfe9dccb5f4dc7
[platform/upstream/gstreamer.git] / common / m4 / gst-gettext.m4
1 dnl gettext setup
2
3 dnl AG_GST_GETTEXT([gettext-package])
4 dnl defines GETTEXT_PACKAGE and LOCALEDIR
5
6 AC_DEFUN([AG_GST_GETTEXT],
7 [
8   if test "$USE_NLS" = "yes"; then
9     GETTEXT_PACKAGE=[$1]
10   else
11     GETTEXT_PACKAGE=[NULL]
12   fi
13   AC_SUBST(GETTEXT_PACKAGE)
14   AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
15                      [gettext package name])
16
17   dnl define LOCALEDIR in config.h
18   AS_AC_EXPAND(LOCALEDIR, $datadir/locale)
19   AC_DEFINE_UNQUOTED([LOCALEDIR], "$LOCALEDIR",
20                      [gettext locale dir])
21 ])