monotone

monotone Mtn Source Tree

Root/m4/xgettextflag.m4

1# Check whether xgettext supports the --flag option. If it does not,
2# we forcibly override XGETTEXT_OPTIONS in po/Makefile.in to prevent
3# its being used. (See po/Makevars for further explanation.)
4#
5# Yes, this is a big hack, but due to the way po/Makefile is
6# generated, there is no other way to do this in a dynamic fashion.
7
8AC_DEFUN([AC_PROG_XGETTEXT_FLAG_OPTION],
9[AC_CACHE_CHECK([whether xgettext supports --flag],
10ac_cv_prog_xgettext_flag_option,
11 [echo 'int main(void) { return 0; }' >> conftest.c
12 if ${XGETTEXT} --flag printf:1:c-format -o conftest.po conftest.c \
13 >/dev/null 2>&1
14 then ac_cv_prog_xgettext_flag_option=yes
15 else ac_cv_prog_xgettext_flag_option=no
16 fi])
17 AC_CONFIG_FILES([po/Makefile.in],
18 [if test $xgettext_flag_option = no; then
19 echo 'XGETTEXT_OPTIONS = $(XGETTEXT_OPTIONS_NO_FLAG)' >>po/Makefile.in
20 fi],
21 [xgettext_flag_option=$ac_cv_prog_xgettext_flag_option])
22])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status