File: gst-gettext.m4

package info (click to toggle)
gst-python1.0 1.10.4-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,628 kB
  • ctags: 456
  • sloc: sh: 4,727; perl: 1,431; python: 931; ansic: 542; makefile: 182
file content (28 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (40)
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
dnl gettext setup

dnl AG_GST_GETTEXT([gettext-package])
dnl defines GETTEXT_PACKAGE and LOCALEDIR

AC_DEFUN([AG_GST_GETTEXT],
[
  if test "$USE_NLS" = "yes"; then
    GETTEXT_PACKAGE=[$1]
  else
    GETTEXT_PACKAGE=[NULL]
  fi
  AC_SUBST(GETTEXT_PACKAGE)
  AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
                     [gettext package name])

  dnl make sure po/Makevars is kept in sync with GETTEXT_PACKAGE
  if test -e "${srcdir}/po/Makevars"; 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",
                     [gettext locale dir])
])