~ubuntu-branches/ubuntu/gutsy/gnome-games/gutsy

« back to all changes in this revision

Viewing changes to m4/intltool.m4

  • Committer: Package Import Robot
  • Author(s): Aron Sisak
  • Date: 2007-08-28 11:17:57 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20070828111757-p1o9q24u57fbgkuq
Tags: 1:2.19.91-0ubuntu1
* New upstream release:
  - Sudoku:
    - Fix a crash when solving a sudoku, caused by a type mismatch (#470523).
  - Aisleriot:
    - Fix translation of "Autoplay" in Napoleons Tomb (#469363).
  - Gnometris:
    - Remove gaussian blur in background image to improve rendering performance.
  - Mahjongg:
    - Fix workaround for bug #353964. (LP: #94851)
* debian/patches/99_autoconf.patch:
  - Update via automagic

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
## the same distribution terms that you use for the rest of that program.
24
24
 
25
25
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
26
 
# serial 36 IT_PROG_INTLTOOL
 
26
# serial 35 IT_PROG_INTLTOOL
27
27
AC_DEFUN([IT_PROG_INTLTOOL],
28
28
[AC_PREREQ([2.50])dnl
29
29
 
36
36
esac
37
37
 
38
38
if test -n "$1"; then
39
 
    AC_MSG_CHECKING([for intltool >= $1])
 
39
    AC_MSG_CHECKING(for intltool >= $1)
40
40
 
41
41
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
42
42
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
65
65
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
66
66
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
67
67
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
68
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
69
68
 
70
69
AC_SUBST(INTLTOOL_DESKTOP_RULE)
71
70
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
85
84
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
86
85
AC_SUBST(INTLTOOL_THEME_RULE)
87
86
AC_SUBST(INTLTOOL_SERVICE_RULE)
88
 
AC_SUBST(INTLTOOL_POLICY_RULE)
89
87
 
90
88
# Use the tools built into the package, not the ones that are installed.
91
89
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
108
106
   fi
109
107
fi
110
108
 
 
109
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
 
110
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
 
111
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
 
112
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
 
113
 
111
114
# Substitute ALL_LINGUAS so we can use it in po/Makefile
112
115
AC_SUBST(ALL_LINGUAS)
113
116
 
114
117
# Set DATADIRNAME correctly if it is not set yet
115
118
# (copied from glib-gettext.m4)
116
119
if test -z "$DATADIRNAME"; then
117
 
  AC_LINK_IFELSE(
118
 
    [AC_LANG_PROGRAM([[]],
119
 
                     [[extern int _nl_msg_cat_cntr;
120
 
                       return _nl_msg_cat_cntr]])],
 
120
  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
121
                 return _nl_msg_cat_cntr],
121
122
    [DATADIRNAME=share],
122
123
    [case $host in
123
124
    *-*-solaris*)
158
159
for file in intltool-extract intltool-merge intltool-update; do
159
160
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
160
161
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
162
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
 
163
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
 
164
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
 
165
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
161
166
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
162
167
        < ${ac_aux_dir}/${file}.in > ${file}.out
163
168
  if cmp -s ${file} ${file}.out 2>/dev/null; then
172
177
],
173
178
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
174
179
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
175
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
 
180
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
 
181
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
 
182
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
176
183
 
177
184
])
178
185