~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to m4/intltool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 22:20:05 UTC
  • mto: (2.1.6 squeeze) (1.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 171.
  • Revision ID: james.westby@ubuntu.com-20100114222005-rll7tw9fojl3ac6z
Tags: upstream-2.29.5.1
ImportĀ upstreamĀ versionĀ 2.29.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    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 $< [$]@'
76
76
   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 $< [$]@'
77
77
 
78
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
79
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
80
 
AC_SUBST(INTLTOOL_KEYS_RULE)
81
 
AC_SUBST(INTLTOOL_PROP_RULE)
82
 
AC_SUBST(INTLTOOL_OAF_RULE)
83
 
AC_SUBST(INTLTOOL_PONG_RULE)
84
 
AC_SUBST(INTLTOOL_SERVER_RULE)
85
 
AC_SUBST(INTLTOOL_SHEET_RULE)
86
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
87
 
AC_SUBST(INTLTOOL_UI_RULE)
88
 
AC_SUBST(INTLTOOL_XAM_RULE)
89
 
AC_SUBST(INTLTOOL_KBD_RULE)
90
 
AC_SUBST(INTLTOOL_XML_RULE)
91
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
92
 
AC_SUBST(INTLTOOL_CAVES_RULE)
93
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
94
 
AC_SUBST(INTLTOOL_THEME_RULE)
95
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
96
 
AC_SUBST(INTLTOOL_POLICY_RULE)
 
78
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
79
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
80
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
81
_IT_SUBST(INTLTOOL_PROP_RULE)
 
82
_IT_SUBST(INTLTOOL_OAF_RULE)
 
83
_IT_SUBST(INTLTOOL_PONG_RULE)
 
84
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
85
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
86
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
87
_IT_SUBST(INTLTOOL_UI_RULE)
 
88
_IT_SUBST(INTLTOOL_XAM_RULE)
 
89
_IT_SUBST(INTLTOOL_KBD_RULE)
 
90
_IT_SUBST(INTLTOOL_XML_RULE)
 
91
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
92
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
93
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
94
_IT_SUBST(INTLTOOL_THEME_RULE)
 
95
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
96
_IT_SUBST(INTLTOOL_POLICY_RULE)
97
97
 
98
98
# Check the gettext tools to make sure they are GNU
99
99
AC_PATH_PROG(XGETTEXT, xgettext)
110
110
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
111
111
fi
112
112
 
113
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
113
AC_PATH_PROG(INTLTOOL_PERL, perl)
114
114
if test -z "$INTLTOOL_PERL"; then
115
 
   AC_MSG_ERROR([perl not found; required for intltool])
 
115
   AC_MSG_ERROR([perl not found])
116
116
fi
117
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
118
 
   AC_MSG_ERROR([perl 5.x required for intltool])
 
117
AC_MSG_CHECKING([for perl >= 5.8.1])
 
118
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
119
if test $? -ne 0; then
 
120
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
121
else
 
122
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
123
   AC_MSG_RESULT([$IT_PERL_VERSION])
119
124
fi
120
125
if test "x$2" != "xno-xml"; then
121
126
   AC_MSG_CHECKING([for XML::Parser])
171
176
dnl of config.status.
172
177
AC_CONFIG_COMMANDS_PRE([
173
178
  AC_CONFIG_COMMANDS([$1/stamp-it], [
174
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
179
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
175
180
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
176
181
    fi
177
182
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
193
198
])dnl
194
199
])
195
200
 
 
201
# _IT_SUBST(VARIABLE)
 
202
# -------------------
 
203
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
204
#
 
205
AC_DEFUN([_IT_SUBST],
 
206
[
 
207
AC_SUBST([$1])
 
208
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
209
]
 
210
)
 
211
 
196
212
# deprecated macros
197
213
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
198
214
# A hint is needed for aclocal from Automake <= 1.9.4: