14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
[m4_warning([this file was generated for autoconf 2.64.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl you should install foo.schemas files
29
AC_DEFUN([AM_GCONF_SOURCE_2],
31
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37
AC_ARG_WITH([gconf-source],
38
AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
[Config database for installing schema files.]),
40
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49
AC_ARG_WITH([gconf-schema-file-dir],
50
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
[Directory for installing schema files.]),
52
[GCONF_SCHEMA_FILE_DIR="$withval"],)
54
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57
AC_ARG_ENABLE(schemas-install,
58
AC_HELP_STRING([--disable-schemas-install],
59
[Disable the schemas installation]),
62
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
67
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
68
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
70
# This file is free software, distributed under the terms of the GNU
71
# General Public License. As a special exception to the GNU General
72
# Public License, this file may be distributed as part of a program
73
# that contains a configuration script generated by Autoconf, under
74
# the same distribution terms as the rest of that program.
76
# This file can be copied and used freely without restrictions. It can
77
# be used in projects which are not available under the GNU Public License
78
# but which still want to provide support for the GNU gettext functionality.
80
# Macro to add for using GNU gettext.
81
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
83
# Modified to never use included libintl.
84
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
86
# Major rework to remove unused code
87
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
89
# Added better handling of ALL_LINGUAS from GNU gettext version
90
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
92
# Modified to require ngettext
93
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
95
# We need this here as well, since someone might use autoconf-2.5x
96
# to configure GLib then an older version to configure a package
97
# using AM_GLIB_GNU_GETTEXT
101
dnl We go to great lengths to make sure that aclocal won't
102
dnl try to pull in the installed version of these macros
103
dnl when running aclocal in the glib directory.
105
m4_copy([AC_DEFUN],[glib_DEFUN])
106
m4_copy([AC_REQUIRE],[glib_REQUIRE])
108
dnl At the end, if we're not within glib, we'll define the public
109
dnl definitions in terms of our private definitions.
113
#--------------------
114
glib_DEFUN([GLIB_LC_MESSAGES],
115
[AC_CHECK_HEADERS([locale.h])
116
if test $ac_cv_header_locale_h = yes; then
117
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120
if test $am_cv_val_LC_MESSAGES = yes; then
121
AC_DEFINE(HAVE_LC_MESSAGES, 1,
122
[Define if your <locale.h> file defines LC_MESSAGES.])
126
# GLIB_PATH_PROG_WITH_TEST
127
#----------------------------
128
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131
[# Extract the first word of "$2", so it can be a program name with args.
132
set dummy $2; ac_word=[$]2
133
AC_MSG_CHECKING([for $ac_word])
134
AC_CACHE_VAL(ac_cv_path_$1,
137
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
140
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141
for ac_dir in ifelse([$5], , $PATH, [$5]); do
142
test -z "$ac_dir" && ac_dir=.
143
if test -f $ac_dir/$ac_word; then
145
ac_cv_path_$1="$ac_dir/$ac_word"
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
24
# This file is free software; the Free Software Foundation
25
# gives unlimited permission to copy and/or distribute it,
26
# with or without modifications, as long as this notice is preserved.
28
# AM_AUTOMAKE_VERSION(VERSION)
29
# ----------------------------
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
# generated from the m4 files accompanying Automake X.Y.
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.11'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.11], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
# -------------------------------
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.11])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62
# This file is free software; the Free Software Foundation
63
# gives unlimited permission to copy and/or distribute it,
64
# with or without modifications, as long as this notice is preserved.
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70
# Of course, Automake must honor this variable whenever it calls a
71
# tool from the auxiliary directory. The problem is that $srcdir (and
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
# depending on how configure is run. This is pretty annoying, since
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
# source directory, any form will work fine, but in subdirectories a
76
# relative path needs to be adjusted first.
79
# fails when called from a subdirectory if $ac_aux_dir is relative
80
# $top_srcdir/$ac_aux_dir/missing
81
# fails if $ac_aux_dir is absolute,
82
# fails when called from a subdirectory in a VPATH build with
83
# a relative $ac_aux_dir
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
# are both prefixed by $srcdir. In an in-source build this is usually
87
# harmless because $srcdir is `.', but things will broke when you
88
# start a VPATH build or use an absolute $srcdir.
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
# and then we would define $MISSING as
94
# MISSING="\${SHELL} $am_aux_dir/missing"
95
# This will work as long as MISSING is not called from configure, because
96
# unfortunately $(top_srcdir) has no meaning in configure.
97
# However there are other variables, like CC, which are often used in
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
100
# Another solution, used here, is to always expand $ac_aux_dir to an
101
# absolute PATH. The drawback is that using absolute paths prevent a
102
# configured tree to be moved without reconfiguration.
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
[dnl Rely on autoconf to set up CDPATH properly.
107
# expand $ac_aux_dir to an absolute path
108
am_aux_dir=`cd $ac_aux_dir && pwd`
111
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
# Free Software Foundation, Inc.
116
# This file is free software; the Free Software Foundation
117
# gives unlimited permission to copy and/or distribute it,
118
# with or without modifications, as long as this notice is preserved.
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
# -------------------------------------
124
# Define a conditional.
125
AC_DEFUN([AM_CONDITIONAL],
127
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
AC_SUBST([$1_TRUE])dnl
130
AC_SUBST([$1_FALSE])dnl
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
141
AC_CONFIG_COMMANDS_PRE(
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143
AC_MSG_ERROR([[conditional "$1" was never defined.
144
Usually this means the macro was only invoked conditionally.]])
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
# Free Software Foundation, Inc.
150
# This file is free software; the Free Software Foundation
151
# gives unlimited permission to copy and/or distribute it,
152
# with or without modifications, as long as this notice is preserved.
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
# written in clear, in which case automake, when reading aclocal.m4,
158
# will think it sees a *use*, and therefore will trigger all it's
159
# C support machinery. Also note that it means that autoscan, seeing
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
163
# _AM_DEPENDENCIES(NAME)
164
# ----------------------
165
# See how the compiler implements dependency checking.
166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
167
# We try a few techniques and use that to set a single cache variable.
169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171
# dependency, and given that the user is not expected to run this macro,
172
# just rely on AC_PROG_CC.
173
AC_DEFUN([_AM_DEPENDENCIES],
174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
AC_REQUIRE([AM_DEP_TRACK])dnl
179
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180
[$1], CXX, [depcc="$CXX" am_compiler_list=],
181
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
[$1], UPC, [depcc="$UPC" am_compiler_list=],
183
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184
[depcc="$$1" am_compiler_list=])
186
AC_CACHE_CHECK([dependency style of $depcc],
187
[am_cv_$1_dependencies_compiler_type],
188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189
# We make a subdir and do the tests there. Otherwise we can end up
190
# making bogus files that we don't know about and never remove. For
191
# instance it was reported that on HP-UX the gcc test will end up
192
# making a dummy file named `D' -- because `-MD' means `put the output
195
# Copy depcomp to subdir because otherwise we won't find it if we're
196
# using a relative directory.
197
cp "$am_depcomp" conftest.dir
199
# We will build objects and dependencies in a subdirectory because
200
# it helps to detect inapplicable dependency modes. For instance
201
# both Tru64's cc and ICC support -MD to output dependencies as a
202
# side effect of compilation, but ICC will put the dependencies in
203
# the current directory while Tru64 will put them in the object
207
am_cv_$1_dependencies_compiler_type=none
208
if test "$am_compiler_list" = ""; then
209
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
213
[case " $depcc " in #(
214
*\ -arch\ *\ -arch\ *) am__universal=true ;;
217
[case " $depcc " in #(
218
*\ -arch\ *\ -arch\ *) am__universal=true ;;
221
for depmode in $am_compiler_list; do
222
# Setup a source with many dependencies, because some compilers
223
# like to wrap large dependency lists on column 80 (with \), and
224
# we should not choose a depcomp mode which is confused by this.
226
# We need to recreate these files for each test, as the compiler may
227
# overwrite some of them when testing with obscure command lines.
228
# This happens at least with the AIX C compiler.
230
for i in 1 2 3 4 5 6; do
231
echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
# Solaris 8's {/usr,}/bin/sh.
234
touch sub/conftst$i.h
236
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
238
# We check with `-c' and `-o' for the sake of the "dashmstdout"
239
# mode. It turns out that the SunPro C++ compiler does not properly
240
# handle `-M -o', and we need to detect this. Also, some Intel
241
# versions had trouble with output in subdirs
242
am__obj=sub/conftest.${OBJEXT-o}
243
am__minus_obj="-o $am__obj"
246
# This depmode causes a compiler race in universal mode.
247
test "$am__universal" = false || continue
250
# after this tag, mechanisms are not by side-effect, so they'll
251
# only be used when explicitly requested
252
if test "x$enable_dependency_tracking" = xyes; then
151
dnl If no 4th arg is given, leave the cache variable unset,
152
dnl so AC_PATH_PROGS will keep looking.
153
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
158
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
168
glib_DEFUN([GLIB_WITH_NLS],
169
dnl NLS is obligatory
173
gt_cv_have_gettext=no
179
AC_CHECK_HEADER(libintl.h,
180
[gt_cv_func_dgettext_libintl="no"
181
libintl_extra_libs=""
184
# First check in libc
186
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
190
[return !ngettext ("","", 1)],
191
gt_cv_func_ngettext_libc=yes,
192
gt_cv_func_ngettext_libc=no)
195
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
200
[return !dgettext ("","")],
201
gt_cv_func_dgettext_libc=yes,
202
gt_cv_func_dgettext_libc=no)
206
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207
AC_CHECK_FUNCS(bind_textdomain_codeset)
211
# If we don't have everything we want, check in libintl
213
if test "$gt_cv_func_dgettext_libc" != "yes" \
214
|| test "$gt_cv_func_ngettext_libc" != "yes" \
215
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
217
AC_CHECK_LIB(intl, bindtextdomain,
218
[AC_CHECK_LIB(intl, ngettext,
219
[AC_CHECK_LIB(intl, dgettext,
220
gt_cv_func_dgettext_libintl=yes)])])
222
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223
AC_MSG_CHECKING([if -liconv is needed to use gettext])
225
AC_CHECK_LIB(intl, ngettext,
226
[AC_CHECK_LIB(intl, dcgettext,
227
[gt_cv_func_dgettext_libintl=yes
228
libintl_extra_libs=-liconv],
234
# If we found libintl, then check in it for bind_textdomain_codeset();
235
# we'll prefer libc if neither have bind_textdomain_codeset(),
236
# and both have dgettext and ngettext
238
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239
glib_save_LIBS="$LIBS"
240
LIBS="$LIBS -lintl $libintl_extra_libs"
241
unset ac_cv_func_bind_textdomain_codeset
242
AC_CHECK_FUNCS(bind_textdomain_codeset)
243
LIBS="$glib_save_LIBS"
245
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246
gt_cv_func_dgettext_libc=no
248
if test "$gt_cv_func_dgettext_libc" = "yes" \
249
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
250
gt_cv_func_dgettext_libintl=no
256
if test "$gt_cv_func_dgettext_libc" = "yes" \
257
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
258
gt_cv_have_gettext=yes
261
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262
INTLLIBS="-lintl $libintl_extra_libs"
265
if test "$gt_cv_have_gettext" = "yes"; then
266
AC_DEFINE(HAVE_GETTEXT,1,
267
[Define if the GNU gettext() function is already present or preinstalled.])
268
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270
if test "$MSGFMT" != "no"; then
271
glib_save_LIBS="$LIBS"
272
LIBS="$LIBS $INTLLIBS"
273
AC_CHECK_FUNCS(dcgettext)
275
AC_MSG_CHECKING([if msgfmt accepts -c])
276
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
279
"Content-Type: text/plain; charset=UTF-8\n"
280
"Project-Id-Version: test 1.0\n"
281
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
282
"Last-Translator: test <foo@bar.xx>\n"
283
"Language-Team: C <LL@li.org>\n"
284
"MIME-Version: 1.0\n"
285
"Content-Transfer-Encoding: 8bit\n"
286
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287
AC_SUBST(MSGFMT_OPTS)
288
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292
return _nl_msg_cat_cntr],
297
dnl On Solaris, if bind_textdomain_codeset is in libc,
298
dnl GNU format message catalog is always supported,
299
dnl since both are added to the libc all together.
300
dnl Hence, we'd like to go with DATADIRNAME=share and
301
dnl and CATOBJEXT=.gmo in this case.
302
AC_CHECK_FUNC(bind_textdomain_codeset,
313
LIBS="$glib_save_LIBS"
316
gt_cv_have_gettext=no
321
if test "$gt_cv_have_gettext" = "yes" ; then
322
AC_DEFINE(ENABLE_NLS, 1,
323
[always defined to indicate that i18n is enabled])
326
dnl Test whether we really found GNU xgettext.
327
if test "$XGETTEXT" != ":"; then
328
dnl If it is not GNU xgettext we define it as : so that the
329
dnl Makefiles still can work.
330
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
334
[found xgettext program is not GNU xgettext; ignore it])
339
# We need to process the po/ directory.
343
[case "$CONFIG_FILES" in *po/Makefile.in*)
344
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
347
dnl These rules are solely for the distribution goal. While doing this
348
dnl we only have to keep exactly one list of the available catalogs
350
for lang in $ALL_LINGUAS; do
351
GMOFILES="$GMOFILES $lang.gmo"
352
POFILES="$POFILES $lang.po"
355
dnl Make all variables we use known to autoconf.
358
AC_SUBST(DATADIRNAME)
362
AC_SUBST(PO_IN_DATADIR_TRUE)
363
AC_SUBST(PO_IN_DATADIR_FALSE)
368
# AM_GLIB_GNU_GETTEXT
369
# -------------------
370
# Do checks necessary for use of gettext. If a suitable implementation
371
# of gettext is found in either in libintl or in the C library,
372
# it will set INTLLIBS to the libraries needed for use of gettext
373
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375
# on various variables needed by the Makefile.in.in installed by
378
glib_DEFUN([GLIB_GNU_GETTEXT],
379
[AC_REQUIRE([AC_PROG_CC])dnl
380
AC_REQUIRE([AC_HEADER_STDC])dnl
385
if test "$gt_cv_have_gettext" = "yes"; then
386
if test "x$ALL_LINGUAS" = "x"; then
389
AC_MSG_CHECKING(for catalogs to be installed)
391
for presentlang in $ALL_LINGUAS; do
393
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394
desiredlanguages="$LINGUAS"
396
desiredlanguages="$ALL_LINGUAS"
398
for desiredlang in $desiredlanguages; do
399
# Use the presentlang catalog if desiredlang is
400
# a. equal to presentlang, or
401
# b. a variant of presentlang (because in this case,
402
# presentlang can be used as a fallback for messages
403
# which are not translated in the desiredlang catalog).
404
case "$desiredlang" in
405
"$presentlang"*) useit=yes;;
408
if test $useit = yes; then
409
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
413
AC_MSG_RESULT($LINGUAS)
416
dnl Construct list of names of catalog files to be constructed.
417
if test -n "$LINGUAS"; then
418
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
422
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424
dnl Try to locate is.
426
if test -n "$ac_aux_dir"; then
427
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
429
if test -z "$MKINSTALLDIRS"; then
430
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
432
AC_SUBST(MKINSTALLDIRS)
434
dnl Generate list of files to be processed by xgettext which will
435
dnl be included in po/Makefile.
436
test -d po || mkdir po
437
if test "x$srcdir" != "x."; then
438
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439
posrcprefix="$srcdir/"
441
posrcprefix="../$srcdir/"
447
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448
< $srcdir/po/POTFILES.in > po/POTFILES
451
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452
# -------------------------------
453
# Define VARIABLE to the location where catalog files will
454
# be installed by po/Makefile.
455
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457
glib_save_prefix="$prefix"
458
glib_save_exec_prefix="$exec_prefix"
459
glib_save_datarootdir="$datarootdir"
460
test "x$prefix" = xNONE && prefix=$ac_default_prefix
461
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462
datarootdir=`eval echo "${datarootdir}"`
463
if test "x$CATOBJEXT" = "x.mo" ; then
464
localedir=`eval echo "${libdir}/locale"`
466
localedir=`eval echo "${datadir}/locale"`
468
prefix="$glib_save_prefix"
469
exec_prefix="$glib_save_exec_prefix"
470
datarootdir="$glib_save_datarootdir"
471
AC_DEFINE_UNQUOTED($1, "$localedir",
472
[Define the location where the catalogs will be installed])
476
dnl Now the definitions that aclocal will find
478
ifdef(glib_configure_in,[],[
479
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
483
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
485
# Create a temporary file with TEST-FILE as its contents and pass the
486
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
487
# 0 and perform ACTION-IF-FAIL for any other exit status.
488
AC_DEFUN([GLIB_RUN_PROG],
489
[cat >conftest.foo <<_ACEOF
492
if AC_RUN_LOG([$1 conftest.foo]); then
493
m4_ifval([$3], [$3], [:])
494
m4_ifvaln([$4], [else $4])dnl
495
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
503
dnl GNOME_COMMON_INIT
505
AC_DEFUN([GNOME_COMMON_INIT],
507
dnl this macro should come after AC_CONFIG_MACRO_DIR
508
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
510
dnl ensure that when the Automake generated makefile calls aclocal,
511
dnl it honours the $ACLOCAL_FLAGS environment variable
512
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
513
if test -n "$ac_macro_dir"; then
514
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
517
AC_SUBST([ACLOCAL_AMFLAGS])
520
AC_DEFUN([GNOME_DEBUG_CHECK],
522
AC_ARG_ENABLE([debug],
523
AC_HELP_STRING([--enable-debug],
524
[turn on debugging]),,
527
if test x$enable_debug = xyes ; then
528
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
529
[Enable additional debugging at the expense of performance and size])
533
dnl GNOME_MAINTAINER_MODE_DEFINES ()
534
dnl define DISABLE_DEPRECATED
536
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
538
AC_REQUIRE([AM_MAINTAINER_MODE])
540
DISABLE_DEPRECATED=""
541
if test $USE_MAINTAINER_MODE = yes; then
542
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
543
for DOMAIN in $DOMAINS; do
544
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
548
AC_SUBST(DISABLE_DEPRECATED)
551
dnl GNOME_COMPILE_WARNINGS
552
dnl Turn on many useful compiler warnings
553
dnl For now, only works on GCC
554
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
555
dnl ******************************
556
dnl More compiler warnings
557
dnl ******************************
559
AC_ARG_ENABLE(compile-warnings,
560
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
561
[Turn on compiler warnings]),,
562
[enable_compile_warnings="m4_default([$1],[yes])"])
565
if test "x$GCC" != xyes; then
566
enable_compile_warnings=no
570
realsave_CFLAGS="$CFLAGS"
572
case "$enable_compile_warnings" in
577
warning_flags="-Wall"
580
warning_flags="-Wall -Wmissing-prototypes"
583
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
584
CFLAGS="$warning_flags $CFLAGS"
585
for option in -Wno-sign-compare; do
586
SAVE_CFLAGS="$CFLAGS"
587
CFLAGS="$CFLAGS $option"
588
AC_MSG_CHECKING([whether gcc understands $option])
589
AC_TRY_COMPILE([], [],
592
CFLAGS="$SAVE_CFLAGS"
593
AC_MSG_RESULT($has_option)
594
if test $has_option = yes; then
595
warning_flags="$warning_flags $option"
601
if test "$enable_compile_warnings" = "error" ; then
602
warning_flags="$warning_flags -Werror"
606
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
258
msvisualcpp | msvcmsys)
259
# This compiler won't grok `-c -o', but also, the minuso test has
260
# not run yet. These depmodes are late enough in the game, and
261
# so weak that their functioning should not be impacted.
262
am__obj=conftest.${OBJEXT-o}
609
CFLAGS="$realsave_CFLAGS"
610
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
611
AC_MSG_RESULT($warning_flags)
614
AC_HELP_STRING([--enable-iso-c],
615
[Try to warn if code is not ISO C ]),,
618
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
620
if test "x$enable_iso_c" != "xno"; then
621
if test "x$GCC" = "xyes"; then
623
*[\ \ ]-ansi[\ \ ]*) ;;
624
*) complCFLAGS="$complCFLAGS -ansi" ;;
627
*[\ \ ]-pedantic[\ \ ]*) ;;
628
*) complCFLAGS="$complCFLAGS -pedantic" ;;
632
AC_MSG_RESULT($complCFLAGS)
634
WARN_CFLAGS="$warning_flags $complCFLAGS"
635
AC_SUBST(WARN_CFLAGS)
638
dnl For C++, do basically the same thing.
640
AC_DEFUN([GNOME_CXX_WARNINGS],[
641
AC_ARG_ENABLE(cxx-warnings,
642
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
643
[Turn on compiler warnings.]),,
644
[enable_cxx_warnings="m4_default([$1],[minimum])"])
646
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
648
if test "x$GXX" != xyes; then
649
enable_cxx_warnings=no
651
if test "x$enable_cxx_warnings" != "xno"; then
652
if test "x$GXX" = "xyes"; then
653
case " $CXXFLAGS " in
654
*[\ \ ]-Wall[\ \ ]*) ;;
655
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
658
## -W is not all that useful. And it cannot be controlled
659
## with individual -Wno-xxx flags, unlike -Wall
660
if test "x$enable_cxx_warnings" = "xyes"; then
661
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
267
if depmode=$depmode \
268
source=sub/conftest.c object=$am__obj \
269
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271
>/dev/null 2>conftest.err &&
272
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
# icc doesn't choke on unknown options, it will just issue warnings
277
# or remarks (even with -Werror). So we grep stderr for any message
278
# that says an option was ignored or not supported.
279
# When given -MP, icc 7.0 and 7.1 complain thusly:
280
# icc: Command line warning: ignoring option '-M'; no argument required
281
# The diagnosis changed in icc 8.0:
282
# icc: Command line remark: option '-MP' not supported
283
if (grep 'ignoring option' conftest.err ||
284
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285
am_cv_$1_dependencies_compiler_type=$depmode
665
AC_MSG_RESULT($warnCXXFLAGS)
667
AC_ARG_ENABLE(iso-cxx,
668
AC_HELP_STRING([--enable-iso-cxx],
669
[Try to warn if code is not ISO C++ ]),,
672
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
674
if test "x$enable_iso_cxx" != "xno"; then
675
if test "x$GXX" = "xyes"; then
676
case " $CXXFLAGS " in
677
*[\ \ ]-ansi[\ \ ]*) ;;
678
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
681
case " $CXXFLAGS " in
682
*[\ \ ]-pedantic[\ \ ]*) ;;
683
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
687
AC_MSG_RESULT($complCXXFLAGS)
689
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
690
AC_SUBST(WARN_CXXFLAGS)
693
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
694
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
695
AC_DEFUN([GNOME_DOC_DEFINES],
697
AC_ARG_WITH([help-dir],
698
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
699
[with_help_dir='${datadir}/gnome/help'])
700
HELP_DIR="$with_help_dir"
703
AC_ARG_WITH([omf-dir],
704
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
705
[with_omf_dir='${datadir}/omf'])
706
OMF_DIR="$with_omf_dir"
709
AC_ARG_WITH([help-formats],
710
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
711
[with_help_formats=''])
712
DOC_USER_FORMATS="$with_help_formats"
713
AC_SUBST(DOC_USER_FORMATS)
715
AC_ARG_ENABLE([scrollkeeper],
716
[AC_HELP_STRING([--disable-scrollkeeper],
717
[do not make updates to the scrollkeeper database])],,
718
enable_scrollkeeper=yes)
719
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
721
dnl disable scrollkeeper automatically for distcheck
722
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
723
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
725
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
728
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
730
AC_DEFUN([GNOME_DOC_INIT],
731
[AC_REQUIRE([AC_PROG_LN_S])dnl
733
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
735
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
736
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
737
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
739
if test "$gdu_cv_have_gdu" = "yes"; then
741
ifelse([$2],,[:],[$2])
744
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
751
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
752
# serial 40 IT_PROG_INTLTOOL
753
AC_DEFUN([IT_PROG_INTLTOOL], [
755
AC_REQUIRE([AM_NLS])dnl
757
case "$am__api_version" in
759
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
765
if test -n "$1"; then
766
AC_MSG_CHECKING([for intltool >= $1])
768
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
769
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
770
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
772
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
773
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
774
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
777
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
778
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
779
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
780
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
781
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
784
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@'
785
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@'
786
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
787
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@'
788
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
789
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@'
790
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
791
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@'
792
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@'
793
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@'
794
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@'
795
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
796
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@'
797
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
798
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@'
799
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 $< [$]@'
800
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 $< [$]@'
801
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 $< [$]@'
802
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 $< [$]@'
804
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
805
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
806
_IT_SUBST(INTLTOOL_KEYS_RULE)
807
_IT_SUBST(INTLTOOL_PROP_RULE)
808
_IT_SUBST(INTLTOOL_OAF_RULE)
809
_IT_SUBST(INTLTOOL_PONG_RULE)
810
_IT_SUBST(INTLTOOL_SERVER_RULE)
811
_IT_SUBST(INTLTOOL_SHEET_RULE)
812
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
813
_IT_SUBST(INTLTOOL_UI_RULE)
814
_IT_SUBST(INTLTOOL_XAM_RULE)
815
_IT_SUBST(INTLTOOL_KBD_RULE)
816
_IT_SUBST(INTLTOOL_XML_RULE)
817
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
818
_IT_SUBST(INTLTOOL_CAVES_RULE)
819
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
820
_IT_SUBST(INTLTOOL_THEME_RULE)
821
_IT_SUBST(INTLTOOL_SERVICE_RULE)
822
_IT_SUBST(INTLTOOL_POLICY_RULE)
824
# Check the gettext tools to make sure they are GNU
825
AC_PATH_PROG(XGETTEXT, xgettext)
826
AC_PATH_PROG(MSGMERGE, msgmerge)
827
AC_PATH_PROG(MSGFMT, msgfmt)
828
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
829
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
830
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
832
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
833
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
834
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
835
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
836
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
839
AC_PATH_PROG(INTLTOOL_PERL, perl)
840
if test -z "$INTLTOOL_PERL"; then
841
AC_MSG_ERROR([perl not found])
843
AC_MSG_CHECKING([for perl >= 5.8.1])
844
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
845
if test $? -ne 0; then
846
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
848
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
849
AC_MSG_RESULT([$IT_PERL_VERSION])
851
if test "x$2" != "xno-xml"; then
852
AC_MSG_CHECKING([for XML::Parser])
853
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
856
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
860
# Substitute ALL_LINGUAS so we can use it in po/Makefile
861
AC_SUBST(ALL_LINGUAS)
863
# Set DATADIRNAME correctly if it is not set yet
864
# (copied from glib-gettext.m4)
865
if test -z "$DATADIRNAME"; then
867
[AC_LANG_PROGRAM([[]],
868
[[extern int _nl_msg_cat_cntr;
869
return _nl_msg_cat_cntr]])],
873
dnl On Solaris, if bind_textdomain_codeset is in libc,
874
dnl GNU format message catalog is always supported,
875
dnl since both are added to the libc all together.
876
dnl Hence, we'd like to go with DATADIRNAME=share
878
AC_CHECK_FUNC(bind_textdomain_codeset,
879
[DATADIRNAME=share], [DATADIRNAME=lib])
886
AC_SUBST(DATADIRNAME)
893
# IT_PO_SUBDIR(DIRNAME)
894
# ---------------------
895
# All po subdirs have to be declared with this macro; the subdir "po" is
896
# declared by IT_PROG_INTLTOOL.
898
AC_DEFUN([IT_PO_SUBDIR],
899
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
901
dnl The following CONFIG_COMMANDS should be exetuted at the very end
902
dnl of config.status.
903
AC_CONFIG_COMMANDS_PRE([
904
AC_CONFIG_COMMANDS([$1/stamp-it], [
905
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
906
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
294
am_cv_$1_dependencies_compiler_type=none
297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298
AM_CONDITIONAL([am__fastdep$1], [
299
test "x$enable_dependency_tracking" != xno \
300
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306
# Choose a directory name for dependency files.
307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308
AC_DEFUN([AM_SET_DEPDIR],
309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316
AC_DEFUN([AM_DEP_TRACK],
317
[AC_ARG_ENABLE(dependency-tracking,
318
[ --disable-dependency-tracking speeds up one-time build
319
--enable-dependency-tracking do not reject slow dependency extractors])
320
if test "x$enable_dependency_tracking" != xno; then
321
am_depcomp="$ac_aux_dir/depcomp"
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
AC_SUBST([AMDEPBACKSLASH])dnl
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329
# Generate code to set up dependency tracking. -*- Autoconf -*-
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
# Free Software Foundation, Inc.
334
# This file is free software; the Free Software Foundation
335
# gives unlimited permission to copy and/or distribute it,
336
# with or without modifications, as long as this notice is preserved.
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
# ------------------------------
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344
# Autoconf 2.62 quotes --file arguments for eval, but not when files
345
# are listed without --file. Let's play safe and only enable the eval
346
# if we detect the quoting.
347
case $CONFIG_FILES in
348
*\'*) eval set x "$CONFIG_FILES" ;;
349
*) set x $CONFIG_FILES ;;
354
# Strip MF so we end up with the name of the file.
355
mf=`echo "$mf" | sed -e 's/:.*$//'`
356
# Check whether this is an Automake generated Makefile or not.
357
# We used to match only the files named `Makefile.in', but
358
# some people rename them; so instead we look at the file content.
359
# Grep'ing the first line is not enough: some people post-process
360
# each Makefile.in and add a new line on top of each file to say so.
361
# Grep'ing the whole file is not good either: AIX grep has a line
362
# limit of 2048, but all sed's we know have understand at least 4000.
363
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
dirpart=`AS_DIRNAME("$mf")`
908
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
913
'"s|^| $ac_top_srcdir/|" \
914
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
916
[sed '/^POTFILES =/,/[^\\]$/ {
920
' "$1/Makefile.in" >"$1/Makefile"]
921
rm -f "$1/Makefile.tmp"
922
mv "$1/stamp-it.tmp" "$1/stamp-it"
927
# _IT_SUBST(VARIABLE)
928
# -------------------
929
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
931
AC_DEFUN([_IT_SUBST],
934
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
368
# Extract the definition of DEPDIR, am__include, and am__quote
369
# from the Makefile without running `make'.
370
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
test -z "$DEPDIR" && continue
372
am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
test -z "am__include" && continue
374
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
# When using ansi2knr, U may be empty or an underscore; expand it
376
U=`sed -n 's/^U = //p' < "$mf"`
377
# Find all dependency output files, they are included files with
378
# $(DEPDIR) in their names. We invoke sed twice because it is the
379
# simplest approach to changing $(DEPDIR) to its actual value in the
381
for file in `sed -n "
382
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
# Make sure the directory exists.
385
test -f "$dirpart/$file" && continue
386
fdir=`AS_DIRNAME(["$file"])`
387
AS_MKDIR_P([$dirpart/$fdir])
388
# echo "creating $dirpart/$file"
389
echo '# dummy' > "$dirpart/$file"
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
396
# AM_OUTPUT_DEPENDENCY_COMMANDS
397
# -----------------------------
398
# This macro should only be invoked once -- use via AC_REQUIRE.
400
# This code is only required when automatic dependency tracking
401
# is enabled. FIXME. This creates each `.P' file that we will
402
# need in order to bootstrap the dependency handling code.
403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
[AC_CONFIG_COMMANDS([depfiles],
405
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
409
# Do all the work for Automake. -*- Autoconf -*-
411
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
414
# This file is free software; the Free Software Foundation
415
# gives unlimited permission to copy and/or distribute it,
416
# with or without modifications, as long as this notice is preserved.
420
# This macro actually does too much. Some checks are only needed if
421
# your package does certain things. But this isn't really a big deal.
423
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
424
# AM_INIT_AUTOMAKE([OPTIONS])
425
# -----------------------------------------------
426
# The call with PACKAGE and VERSION arguments is the old style
427
# call (pre autoconf-2.50), which is being phased out. PACKAGE
428
# and VERSION should now be passed to AC_INIT and removed from
429
# the call to AM_INIT_AUTOMAKE.
430
# We support both call styles for the transition. After
431
# the next Automake release, Autoconf can make the AC_INIT
432
# arguments mandatory, and then we can depend on a new Autoconf
433
# release and drop the old call support.
434
AC_DEFUN([AM_INIT_AUTOMAKE],
435
[AC_PREREQ([2.62])dnl
436
dnl Autoconf wants to disallow AM_ names. We explicitly allow
437
dnl the ones we care about.
438
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
439
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
440
AC_REQUIRE([AC_PROG_INSTALL])dnl
441
if test "`cd $srcdir && pwd`" != "`pwd`"; then
442
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
443
# is not polluted with repeated "-I."
444
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
445
# test to see if srcdir already configured
446
if test -f $srcdir/config.status; then
447
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
451
# test whether we have cygpath
452
if test -z "$CYGPATH_W"; then
453
if (cygpath --version) >/dev/null 2>/dev/null; then
454
CYGPATH_W='cygpath -w'
459
AC_SUBST([CYGPATH_W])
461
# Define the identity of the package.
462
dnl Distinguish between old-style and new-style calls.
464
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
AC_SUBST([PACKAGE], [$1])dnl
466
AC_SUBST([VERSION], [$2])],
467
[_AM_SET_OPTIONS([$1])dnl
468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
474
_AM_IF_OPTION([no-define],,
475
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
478
# Some tools Automake needs.
479
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
AM_MISSING_PROG(AUTOCONF, autoconf)
483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
AM_MISSING_PROG(MAKEINFO, makeinfo)
486
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
489
# We need awk for the "check" target. The system "awk" is bad on
491
AC_REQUIRE([AC_PROG_AWK])dnl
492
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
493
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
494
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
495
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
496
[_AM_PROG_TAR([v7])])])
497
_AM_IF_OPTION([no-dependencies],,
498
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
[_AM_DEPENDENCIES(CC)],
500
[define([AC_PROG_CC],
501
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
502
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
[_AM_DEPENDENCIES(CXX)],
504
[define([AC_PROG_CXX],
505
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
506
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
[_AM_DEPENDENCIES(OBJC)],
508
[define([AC_PROG_OBJC],
509
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
AC_CONFIG_COMMANDS_PRE(dnl
516
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
dnl mangled by Autoconf and run in a shell conditional statement.
523
m4_define([_AC_COMPILER_EXEEXT],
524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
527
# When config.status generates a header, we must update the stamp-h file.
528
# This file resides in the same directory as the config header
529
# that is generated. The stamp files are numbered to have different names.
531
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
532
# loop where config.status creates the headers, so we can generate
533
# our stamp files there.
534
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
535
[# Compute $1's index in $config_headers.
538
for _am_header in $config_headers :; do
540
$_am_arg | $_am_arg:* )
543
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
546
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
548
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
550
# This file is free software; the Free Software Foundation
551
# gives unlimited permission to copy and/or distribute it,
552
# with or without modifications, as long as this notice is preserved.
556
# Define $install_sh.
557
AC_DEFUN([AM_PROG_INSTALL_SH],
558
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
559
if test x"${install_sh}" != xset; then
562
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
564
install_sh="\${SHELL} $am_aux_dir/install-sh"
567
AC_SUBST(install_sh)])
569
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
571
# This file is free software; the Free Software Foundation
572
# gives unlimited permission to copy and/or distribute it,
573
# with or without modifications, as long as this notice is preserved.
577
# Check whether the underlying file-system supports filenames
578
# with a leading dot. For instance MS-DOS doesn't.
579
AC_DEFUN([AM_SET_LEADING_DOT],
580
[rm -rf .tst 2>/dev/null
581
mkdir .tst 2>/dev/null
582
if test -d .tst; then
587
rmdir .tst 2>/dev/null
588
AC_SUBST([am__leading_dot])])
590
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
# Free Software Foundation, Inc.
596
# This file is free software; the Free Software Foundation
597
# gives unlimited permission to copy and/or distribute it,
598
# with or without modifications, as long as this notice is preserved.
602
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
# ----------------------------------
604
# Control maintainer-specific portions of Makefiles.
605
# Default is to disable them, unless `enable' is passed literally.
606
# For symmetry, `disable' may be passed as well. Anyway, the user
607
# can override the default with the --enable/--disable switch.
608
AC_DEFUN([AM_MAINTAINER_MODE],
609
[m4_case(m4_default([$1], [disable]),
610
[enable], [m4_define([am_maintainer_other], [disable])],
611
[disable], [m4_define([am_maintainer_other], [enable])],
612
[m4_define([am_maintainer_other], [enable])
613
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
615
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
AC_ARG_ENABLE([maintainer-mode],
617
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
618
(and sometimes confusing) to the casual installer],
619
[USE_MAINTAINER_MODE=$enableval],
620
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
MAINT=$MAINTAINER_MODE_TRUE
939
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
940
# A hint is needed for aclocal from Automake <= 1.9.4:
941
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
628
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
630
# Check to see how 'make' treats includes. -*- Autoconf -*-
632
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
634
# This file is free software; the Free Software Foundation
635
# gives unlimited permission to copy and/or distribute it,
636
# with or without modifications, as long as this notice is preserved.
642
# Check to see how make treats includes.
643
AC_DEFUN([AM_MAKE_INCLUDE],
644
[am_make=${MAKE-make}
645
cat > confinc << 'END'
647
@echo this is the am__doit target
650
# If we don't find an include directive, just comment out the code.
651
AC_MSG_CHECKING([for style of include used by $am_make])
655
# First try GNU make style include.
656
echo "include confinc" > confmf
657
# Ignore all kinds of additional output from `make'.
658
case `$am_make -s -f confmf 2> /dev/null` in #(
659
*the\ am__doit\ target*)
665
# Now try BSD make style include.
666
if test "$am__include" = "#"; then
667
echo '.include "confinc"' > confmf
668
case `$am_make -s -f confmf 2> /dev/null` in #(
669
*the\ am__doit\ target*)
676
AC_SUBST([am__include])
677
AC_SUBST([am__quote])
678
AC_MSG_RESULT([$_am_result])
682
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
684
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
685
# Free Software Foundation, Inc.
687
# This file is free software; the Free Software Foundation
688
# gives unlimited permission to copy and/or distribute it,
689
# with or without modifications, as long as this notice is preserved.
693
# AM_MISSING_PROG(NAME, PROGRAM)
694
# ------------------------------
695
AC_DEFUN([AM_MISSING_PROG],
696
[AC_REQUIRE([AM_MISSING_HAS_RUN])
697
$1=${$1-"${am_missing_run}$2"}
703
# Define MISSING if not defined so far and test if it supports --run.
704
# If it does, set am_missing_run to use it, otherwise, to nothing.
705
AC_DEFUN([AM_MISSING_HAS_RUN],
706
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
707
AC_REQUIRE_AUX_FILE([missing])dnl
708
if test x"${MISSING+set}" != xset; then
711
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
713
MISSING="\${SHELL} $am_aux_dir/missing" ;;
716
# Use eval to expand $SHELL
717
if eval "$MISSING --run true"; then
718
am_missing_run="$MISSING --run "
721
AC_MSG_WARN([`missing' script is too old or missing])
725
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
727
# This file is free software; the Free Software Foundation
728
# gives unlimited permission to copy and/or distribute it,
729
# with or without modifications, as long as this notice is preserved.
733
# Check for `mkdir -p'.
734
AC_DEFUN([AM_PROG_MKDIR_P],
735
[AC_PREREQ([2.60])dnl
736
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
737
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
738
dnl while keeping a definition of mkdir_p for backward compatibility.
739
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
740
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
741
dnl Makefile.ins that do not define MKDIR_P, so we do our own
742
dnl adjustment using top_builddir (which is defined more often than
744
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
746
[[\\/$]]* | ?:[[\\/]]*) ;;
747
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
751
# Helper functions for option handling. -*- Autoconf -*-
753
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
755
# This file is free software; the Free Software Foundation
756
# gives unlimited permission to copy and/or distribute it,
757
# with or without modifications, as long as this notice is preserved.
761
# _AM_MANGLE_OPTION(NAME)
762
# -----------------------
763
AC_DEFUN([_AM_MANGLE_OPTION],
764
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
766
# _AM_SET_OPTION(NAME)
767
# ------------------------------
768
# Set option NAME. Presently that only means defining a flag for this option.
769
AC_DEFUN([_AM_SET_OPTION],
770
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
772
# _AM_SET_OPTIONS(OPTIONS)
773
# ----------------------------------
774
# OPTIONS is a space-separated list of Automake options.
775
AC_DEFUN([_AM_SET_OPTIONS],
776
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
778
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
779
# -------------------------------------------
780
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
781
AC_DEFUN([_AM_IF_OPTION],
782
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
784
# Check to make sure that the build environment is sane. -*- Autoconf -*-
786
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
787
# Free Software Foundation, Inc.
789
# This file is free software; the Free Software Foundation
790
# gives unlimited permission to copy and/or distribute it,
791
# with or without modifications, as long as this notice is preserved.
797
AC_DEFUN([AM_SANITY_CHECK],
798
[AC_MSG_CHECKING([whether build environment is sane])
801
echo timestamp > conftest.file
802
# Reject unsafe characters in $srcdir or the absolute working directory
803
# name. Accept space and tab only in the latter.
807
*[[\\\"\#\$\&\'\`$am_lf]]*)
808
AC_MSG_ERROR([unsafe absolute working directory name]);;
811
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
812
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
815
# Do `set' in a subshell so we don't clobber the current shell's
816
# arguments. Must try -L first in case configure is actually a
817
# symlink; some systems play weird games with the mod time of symlinks
818
# (eg FreeBSD returns the mod time of the symlink's containing
821
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
822
if test "$[*]" = "X"; then
824
set X `ls -t "$srcdir/configure" conftest.file`
827
if test "$[*]" != "X $srcdir/configure conftest.file" \
828
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
830
# If neither matched, then we have a broken ls. This can happen
831
# if, for instance, CONFIG_SHELL is bash and it inherits a
832
# broken ls alias from the environment. This has actually
833
# happened. Such a system could not be considered "sane".
834
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
835
alias in your environment])
838
test "$[2]" = conftest.file
844
AC_MSG_ERROR([newly created file is older than distributed files!
845
Check your system clock])
849
# Copyright (C) 2009 Free Software Foundation, Inc.
851
# This file is free software; the Free Software Foundation
852
# gives unlimited permission to copy and/or distribute it,
853
# with or without modifications, as long as this notice is preserved.
857
# AM_SILENT_RULES([DEFAULT])
858
# --------------------------
859
# Enable less verbose build rules; with the default set to DEFAULT
860
# (`yes' being less verbose, `no' or empty being verbose).
861
AC_DEFUN([AM_SILENT_RULES],
862
[AC_ARG_ENABLE([silent-rules],
863
[ --enable-silent-rules less verbose build output (undo: `make V=1')
864
--disable-silent-rules verbose build output (undo: `make V=0')])
865
case $enable_silent_rules in
866
yes) AM_DEFAULT_VERBOSITY=0;;
867
no) AM_DEFAULT_VERBOSITY=1;;
868
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
872
AC_SUBST([AM_BACKSLASH])dnl
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
876
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
878
# This file is free software; the Free Software Foundation
879
# gives unlimited permission to copy and/or distribute it,
880
# with or without modifications, as long as this notice is preserved.
882
# AM_PROG_INSTALL_STRIP
883
# ---------------------
884
# One issue with vendor `install' (even GNU) is that you can't
885
# specify the program used to strip binaries. This is especially
886
# annoying in cross-compiling environments, where the build's strip
887
# is unlikely to handle the host's binaries.
888
# Fortunately install-sh will honor a STRIPPROG variable, so we
889
# always use install-sh in `make install-strip', and initialize
890
# STRIPPROG with the value of the STRIP variable (set by the user).
891
AC_DEFUN([AM_PROG_INSTALL_STRIP],
892
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
893
# Installed binaries are usually stripped using `strip' when the user
894
# run `make install-strip'. However `strip' might not be the right
895
# tool to use in cross-compilation environments, therefore Automake
896
# will honor the `STRIP' environment variable to overrule this program.
897
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
898
if test "$cross_compiling" != no; then
899
AC_CHECK_TOOL([STRIP], [strip], :)
901
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
902
AC_SUBST([INSTALL_STRIP_PROGRAM])])
904
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
906
# This file is free software; the Free Software Foundation
907
# gives unlimited permission to copy and/or distribute it,
908
# with or without modifications, as long as this notice is preserved.
912
# _AM_SUBST_NOTMAKE(VARIABLE)
913
# ---------------------------
914
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
915
# This macro is traced by Automake.
916
AC_DEFUN([_AM_SUBST_NOTMAKE])
918
# AM_SUBST_NOTMAKE(VARIABLE)
919
# ---------------------------
920
# Public sister of _AM_SUBST_NOTMAKE.
921
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
923
# Check how to create a tarball. -*- Autoconf -*-
925
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
927
# This file is free software; the Free Software Foundation
928
# gives unlimited permission to copy and/or distribute it,
929
# with or without modifications, as long as this notice is preserved.
933
# _AM_PROG_TAR(FORMAT)
934
# --------------------
935
# Check how to create a tarball in format FORMAT.
936
# FORMAT should be one of `v7', `ustar', or `pax'.
938
# Substitute a variable $(am__tar) that is a command
939
# writing to stdout a FORMAT-tarball containing the directory
941
# tardir=directory && $(am__tar) > result.tar
943
# Substitute a variable $(am__untar) that extract such
944
# a tarball read from stdin.
945
# $(am__untar) < result.tar
946
AC_DEFUN([_AM_PROG_TAR],
947
[# Always define AMTAR for backward compatibility.
948
AM_MISSING_PROG([AMTAR], [tar])
950
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
951
[m4_case([$1], [ustar],, [pax],,
952
[m4_fatal([Unknown tar format])])
953
AC_MSG_CHECKING([how to create a $1 tar archive])
954
# Loop over all known methods to create a tar archive until one works.
955
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
956
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
957
# Do not fold the above two line into one, because Tru64 sh and
958
# Solaris sh will not grok spaces in the rhs of `-'.
959
for _am_tool in $_am_tools
963
for _am_tar in tar gnutar gtar;
965
AM_RUN_LOG([$_am_tar --version]) && break
967
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
968
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
969
am__untar="$_am_tar -xf -"
972
# Must skip GNU tar: if it does not support --format= it doesn't create
973
# ustar tarball either.
974
(tar --version) >/dev/null 2>&1 && continue
975
am__tar='tar chf - "$$tardir"'
976
am__tar_='tar chf - "$tardir"'
980
am__tar='pax -L -x $1 -w "$$tardir"'
981
am__tar_='pax -L -x $1 -w "$tardir"'
985
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
986
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
987
am__untar='cpio -i -H $1 -d'
996
# If the value was cached, stop now. We just wanted to have am__tar
998
test -n "${am_cv_prog_tar_$1}" && break
1000
# tar/untar a dummy directory, and stop if the command works
1003
echo GrepMe > conftest.dir/file
1004
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1006
if test -s conftest.tar; then
1007
AM_RUN_LOG([$am__untar <conftest.tar])
1008
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1013
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1014
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1016
AC_SUBST([am__untar])
944
1019
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
9079
9121
])# PKG_CHECK_MODULES
9081
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9083
# This file is free software; the Free Software Foundation
9084
# gives unlimited permission to copy and/or distribute it,
9085
# with or without modifications, as long as this notice is preserved.
9087
# AM_AUTOMAKE_VERSION(VERSION)
9088
# ----------------------------
9089
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9090
# generated from the m4 files accompanying Automake X.Y.
9091
# (This private macro should not be called outside this file.)
9092
AC_DEFUN([AM_AUTOMAKE_VERSION],
9093
[am__api_version='1.11'
9094
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9095
dnl require some minimum version. Point them to the right macro.
9096
m4_if([$1], [1.11.1], [],
9097
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9100
# _AM_AUTOCONF_VERSION(VERSION)
9101
# -----------------------------
9102
# aclocal traces this macro to find the Autoconf version.
9103
# This is a private macro too. Using m4_define simplifies
9104
# the logic in aclocal, which can simply ignore this definition.
9105
m4_define([_AM_AUTOCONF_VERSION], [])
9107
# AM_SET_CURRENT_AUTOMAKE_VERSION
9123
dnl AM_GCONF_SOURCE_2
9124
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
9125
dnl (i.e. pass to gconftool-2
9126
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
9127
dnl you should install foo.schemas files
9130
AC_DEFUN([AM_GCONF_SOURCE_2],
9132
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
9133
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9135
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
9138
AC_ARG_WITH([gconf-source],
9139
AC_HELP_STRING([--with-gconf-source=sourceaddress],
9140
[Config database for installing schema files.]),
9141
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
9143
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
9144
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
9146
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
9147
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
9150
AC_ARG_WITH([gconf-schema-file-dir],
9151
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
9152
[Directory for installing schema files.]),
9153
[GCONF_SCHEMA_FILE_DIR="$withval"],)
9155
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
9156
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
9158
AC_ARG_ENABLE(schemas-install,
9159
AC_HELP_STRING([--disable-schemas-install],
9160
[Disable the schemas installation]),
9161
[case ${enableval} in
9163
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
9165
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
9168
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9169
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9171
# This file is free software, distributed under the terms of the GNU
9172
# General Public License. As a special exception to the GNU General
9173
# Public License, this file may be distributed as part of a program
9174
# that contains a configuration script generated by Autoconf, under
9175
# the same distribution terms as the rest of that program.
9177
# This file can be copied and used freely without restrictions. It can
9178
# be used in projects which are not available under the GNU Public License
9179
# but which still want to provide support for the GNU gettext functionality.
9181
# Macro to add for using GNU gettext.
9182
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9184
# Modified to never use included libintl.
9185
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
9187
# Major rework to remove unused code
9188
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
9190
# Added better handling of ALL_LINGUAS from GNU gettext version
9191
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9193
# Modified to require ngettext
9194
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
9196
# We need this here as well, since someone might use autoconf-2.5x
9197
# to configure GLib then an older version to configure a package
9198
# using AM_GLIB_GNU_GETTEXT
9202
dnl We go to great lengths to make sure that aclocal won't
9203
dnl try to pull in the installed version of these macros
9204
dnl when running aclocal in the glib directory.
9206
m4_copy([AC_DEFUN],[glib_DEFUN])
9207
m4_copy([AC_REQUIRE],[glib_REQUIRE])
9209
dnl At the end, if we're not within glib, we'll define the public
9210
dnl definitions in terms of our private definitions.
9214
#--------------------
9215
glib_DEFUN([GLIB_LC_MESSAGES],
9216
[AC_CHECK_HEADERS([locale.h])
9217
if test $ac_cv_header_locale_h = yes; then
9218
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9219
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9220
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9221
if test $am_cv_val_LC_MESSAGES = yes; then
9222
AC_DEFINE(HAVE_LC_MESSAGES, 1,
9223
[Define if your <locale.h> file defines LC_MESSAGES.])
9227
# GLIB_PATH_PROG_WITH_TEST
9228
#----------------------------
9229
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9230
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9231
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9232
[# Extract the first word of "$2", so it can be a program name with args.
9233
set dummy $2; ac_word=[$]2
9234
AC_MSG_CHECKING([for $ac_word])
9235
AC_CACHE_VAL(ac_cv_path_$1,
9238
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9241
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9242
for ac_dir in ifelse([$5], , $PATH, [$5]); do
9243
test -z "$ac_dir" && ac_dir=.
9244
if test -f $ac_dir/$ac_word; then
9246
ac_cv_path_$1="$ac_dir/$ac_word"
9252
dnl If no 4th arg is given, leave the cache variable unset,
9253
dnl so AC_PATH_PROGS will keep looking.
9254
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9259
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9260
AC_MSG_RESULT([$]$1)
9269
glib_DEFUN([GLIB_WITH_NLS],
9270
dnl NLS is obligatory
9274
gt_cv_have_gettext=no
9280
AC_CHECK_HEADER(libintl.h,
9281
[gt_cv_func_dgettext_libintl="no"
9282
libintl_extra_libs=""
9285
# First check in libc
9287
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9289
#include <libintl.h>
9291
[return !ngettext ("","", 1)],
9292
gt_cv_func_ngettext_libc=yes,
9293
gt_cv_func_ngettext_libc=no)
9296
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9297
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9299
#include <libintl.h>
9301
[return !dgettext ("","")],
9302
gt_cv_func_dgettext_libc=yes,
9303
gt_cv_func_dgettext_libc=no)
9307
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9308
AC_CHECK_FUNCS(bind_textdomain_codeset)
9312
# If we don't have everything we want, check in libintl
9314
if test "$gt_cv_func_dgettext_libc" != "yes" \
9315
|| test "$gt_cv_func_ngettext_libc" != "yes" \
9316
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9318
AC_CHECK_LIB(intl, bindtextdomain,
9319
[AC_CHECK_LIB(intl, ngettext,
9320
[AC_CHECK_LIB(intl, dgettext,
9321
gt_cv_func_dgettext_libintl=yes)])])
9323
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9324
AC_MSG_CHECKING([if -liconv is needed to use gettext])
9326
AC_CHECK_LIB(intl, ngettext,
9327
[AC_CHECK_LIB(intl, dcgettext,
9328
[gt_cv_func_dgettext_libintl=yes
9329
libintl_extra_libs=-liconv],
9335
# If we found libintl, then check in it for bind_textdomain_codeset();
9336
# we'll prefer libc if neither have bind_textdomain_codeset(),
9337
# and both have dgettext and ngettext
9339
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9340
glib_save_LIBS="$LIBS"
9341
LIBS="$LIBS -lintl $libintl_extra_libs"
9342
unset ac_cv_func_bind_textdomain_codeset
9343
AC_CHECK_FUNCS(bind_textdomain_codeset)
9344
LIBS="$glib_save_LIBS"
9346
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9347
gt_cv_func_dgettext_libc=no
9349
if test "$gt_cv_func_dgettext_libc" = "yes" \
9350
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
9351
gt_cv_func_dgettext_libintl=no
9357
if test "$gt_cv_func_dgettext_libc" = "yes" \
9358
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
9359
gt_cv_have_gettext=yes
9362
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9363
INTLLIBS="-lintl $libintl_extra_libs"
9366
if test "$gt_cv_have_gettext" = "yes"; then
9367
AC_DEFINE(HAVE_GETTEXT,1,
9368
[Define if the GNU gettext() function is already present or preinstalled.])
9369
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9370
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9371
if test "$MSGFMT" != "no"; then
9372
glib_save_LIBS="$LIBS"
9373
LIBS="$LIBS $INTLLIBS"
9374
AC_CHECK_FUNCS(dcgettext)
9376
AC_MSG_CHECKING([if msgfmt accepts -c])
9377
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9380
"Content-Type: text/plain; charset=UTF-8\n"
9381
"Project-Id-Version: test 1.0\n"
9382
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9383
"Last-Translator: test <foo@bar.xx>\n"
9384
"Language-Team: C <LL@li.org>\n"
9385
"MIME-Version: 1.0\n"
9386
"Content-Transfer-Encoding: 8bit\n"
9387
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9388
AC_SUBST(MSGFMT_OPTS)
9389
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9390
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9391
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9392
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9393
return _nl_msg_cat_cntr],
9398
dnl On Solaris, if bind_textdomain_codeset is in libc,
9399
dnl GNU format message catalog is always supported,
9400
dnl since both are added to the libc all together.
9401
dnl Hence, we'd like to go with DATADIRNAME=share and
9402
dnl and CATOBJEXT=.gmo in this case.
9403
AC_CHECK_FUNC(bind_textdomain_codeset,
9414
LIBS="$glib_save_LIBS"
9417
gt_cv_have_gettext=no
9422
if test "$gt_cv_have_gettext" = "yes" ; then
9423
AC_DEFINE(ENABLE_NLS, 1,
9424
[always defined to indicate that i18n is enabled])
9427
dnl Test whether we really found GNU xgettext.
9428
if test "$XGETTEXT" != ":"; then
9429
dnl If it is not GNU xgettext we define it as : so that the
9430
dnl Makefiles still can work.
9431
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9435
[found xgettext program is not GNU xgettext; ignore it])
9440
# We need to process the po/ directory.
9444
[case "$CONFIG_FILES" in *po/Makefile.in*)
9445
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9448
dnl These rules are solely for the distribution goal. While doing this
9449
dnl we only have to keep exactly one list of the available catalogs
9450
dnl in configure.in.
9451
for lang in $ALL_LINGUAS; do
9452
GMOFILES="$GMOFILES $lang.gmo"
9453
POFILES="$POFILES $lang.po"
9456
dnl Make all variables we use known to autoconf.
9459
AC_SUBST(DATADIRNAME)
9461
AC_SUBST(INSTOBJEXT)
9463
AC_SUBST(PO_IN_DATADIR_TRUE)
9464
AC_SUBST(PO_IN_DATADIR_FALSE)
9469
# AM_GLIB_GNU_GETTEXT
9470
# -------------------
9471
# Do checks necessary for use of gettext. If a suitable implementation
9472
# of gettext is found in either in libintl or in the C library,
9473
# it will set INTLLIBS to the libraries needed for use of gettext
9474
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
9475
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
9476
# on various variables needed by the Makefile.in.in installed by
9479
glib_DEFUN([GLIB_GNU_GETTEXT],
9480
[AC_REQUIRE([AC_PROG_CC])dnl
9481
AC_REQUIRE([AC_HEADER_STDC])dnl
9486
if test "$gt_cv_have_gettext" = "yes"; then
9487
if test "x$ALL_LINGUAS" = "x"; then
9490
AC_MSG_CHECKING(for catalogs to be installed)
9492
for presentlang in $ALL_LINGUAS; do
9494
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9495
desiredlanguages="$LINGUAS"
9497
desiredlanguages="$ALL_LINGUAS"
9499
for desiredlang in $desiredlanguages; do
9500
# Use the presentlang catalog if desiredlang is
9501
# a. equal to presentlang, or
9502
# b. a variant of presentlang (because in this case,
9503
# presentlang can be used as a fallback for messages
9504
# which are not translated in the desiredlang catalog).
9505
case "$desiredlang" in
9506
"$presentlang"*) useit=yes;;
9509
if test $useit = yes; then
9510
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9513
LINGUAS=$NEW_LINGUAS
9514
AC_MSG_RESULT($LINGUAS)
9517
dnl Construct list of names of catalog files to be constructed.
9518
if test -n "$LINGUAS"; then
9519
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9523
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
9524
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
9525
dnl Try to locate is.
9527
if test -n "$ac_aux_dir"; then
9528
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9530
if test -z "$MKINSTALLDIRS"; then
9531
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9533
AC_SUBST(MKINSTALLDIRS)
9535
dnl Generate list of files to be processed by xgettext which will
9536
dnl be included in po/Makefile.
9537
test -d po || mkdir po
9538
if test "x$srcdir" != "x."; then
9539
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9540
posrcprefix="$srcdir/"
9542
posrcprefix="../$srcdir/"
9548
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9549
< $srcdir/po/POTFILES.in > po/POTFILES
9552
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
9108
9553
# -------------------------------
9109
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9110
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9111
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9112
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9113
m4_ifndef([AC_AUTOCONF_VERSION],
9114
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9115
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9117
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9119
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9121
# This file is free software; the Free Software Foundation
9122
# gives unlimited permission to copy and/or distribute it,
9123
# with or without modifications, as long as this notice is preserved.
9125
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9126
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9127
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9129
# Of course, Automake must honor this variable whenever it calls a
9130
# tool from the auxiliary directory. The problem is that $srcdir (and
9131
# therefore $ac_aux_dir as well) can be either absolute or relative,
9132
# depending on how configure is run. This is pretty annoying, since
9133
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9134
# source directory, any form will work fine, but in subdirectories a
9135
# relative path needs to be adjusted first.
9137
# $ac_aux_dir/missing
9138
# fails when called from a subdirectory if $ac_aux_dir is relative
9139
# $top_srcdir/$ac_aux_dir/missing
9140
# fails if $ac_aux_dir is absolute,
9141
# fails when called from a subdirectory in a VPATH build with
9142
# a relative $ac_aux_dir
9144
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9145
# are both prefixed by $srcdir. In an in-source build this is usually
9146
# harmless because $srcdir is `.', but things will broke when you
9147
# start a VPATH build or use an absolute $srcdir.
9149
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9150
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9151
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9152
# and then we would define $MISSING as
9153
# MISSING="\${SHELL} $am_aux_dir/missing"
9154
# This will work as long as MISSING is not called from configure, because
9155
# unfortunately $(top_srcdir) has no meaning in configure.
9156
# However there are other variables, like CC, which are often used in
9157
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9159
# Another solution, used here, is to always expand $ac_aux_dir to an
9160
# absolute PATH. The drawback is that using absolute paths prevent a
9161
# configured tree to be moved without reconfiguration.
9163
AC_DEFUN([AM_AUX_DIR_EXPAND],
9164
[dnl Rely on autoconf to set up CDPATH properly.
9554
# Define VARIABLE to the location where catalog files will
9555
# be installed by po/Makefile.
9556
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
9557
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
9558
glib_save_prefix="$prefix"
9559
glib_save_exec_prefix="$exec_prefix"
9560
glib_save_datarootdir="$datarootdir"
9561
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9562
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
9563
datarootdir=`eval echo "${datarootdir}"`
9564
if test "x$CATOBJEXT" = "x.mo" ; then
9565
localedir=`eval echo "${libdir}/locale"`
9567
localedir=`eval echo "${datadir}/locale"`
9569
prefix="$glib_save_prefix"
9570
exec_prefix="$glib_save_exec_prefix"
9571
datarootdir="$glib_save_datarootdir"
9572
AC_DEFINE_UNQUOTED($1, "$localedir",
9573
[Define the location where the catalogs will be installed])
9577
dnl Now the definitions that aclocal will find
9579
ifdef(glib_configure_in,[],[
9580
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
9581
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
9584
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
9586
# Create a temporary file with TEST-FILE as its contents and pass the
9587
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
9588
# 0 and perform ACTION-IF-FAIL for any other exit status.
9589
AC_DEFUN([GLIB_RUN_PROG],
9590
[cat >conftest.foo <<_ACEOF
9593
if AC_RUN_LOG([$1 conftest.foo]); then
9594
m4_ifval([$3], [$3], [:])
9595
m4_ifvaln([$4], [else $4])dnl
9596
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
9597
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
9606
dnl GNOME_COMMON_INIT
9608
AU_DEFUN([GNOME_COMMON_INIT],
9610
dnl this macro should come after AC_CONFIG_MACRO_DIR
9611
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
9613
dnl ensure that when the Automake generated makefile calls aclocal,
9614
dnl it honours the $ACLOCAL_FLAGS environment variable
9615
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
9616
if test -n "$ac_macro_dir"; then
9617
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
9620
AC_SUBST([ACLOCAL_AMFLAGS])
9622
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
9623
in your top-level Makefile.am, instead, where "m4" is the macro directory set
9624
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
9626
AC_DEFUN([GNOME_DEBUG_CHECK],
9628
AC_ARG_ENABLE([debug],
9629
AC_HELP_STRING([--enable-debug],
9630
[turn on debugging]),,
9633
if test x$enable_debug = xyes ; then
9634
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
9635
[Enable additional debugging at the expense of performance and size])
9639
dnl GNOME_MAINTAINER_MODE_DEFINES ()
9640
dnl define DISABLE_DEPRECATED
9642
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
9644
AC_REQUIRE([AM_MAINTAINER_MODE])
9646
DISABLE_DEPRECATED=""
9647
if test $USE_MAINTAINER_MODE = yes; then
9648
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
9649
for DOMAIN in $DOMAINS; do
9650
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
9654
AC_SUBST(DISABLE_DEPRECATED)
9657
dnl GNOME_COMPILE_WARNINGS
9658
dnl Turn on many useful compiler warnings
9659
dnl For now, only works on GCC
9660
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
9661
dnl ******************************
9662
dnl More compiler warnings
9663
dnl ******************************
9665
AC_ARG_ENABLE(compile-warnings,
9666
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
9667
[Turn on compiler warnings]),,
9668
[enable_compile_warnings="m4_default([$1],[yes])"])
9671
if test "x$GCC" != xyes; then
9672
enable_compile_warnings=no
9676
realsave_CFLAGS="$CFLAGS"
9678
case "$enable_compile_warnings" in
9683
warning_flags="-Wall"
9686
warning_flags="-Wall -Wmissing-prototypes"
9689
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
9690
CFLAGS="$warning_flags $CFLAGS"
9691
for option in -Wno-sign-compare; do
9692
SAVE_CFLAGS="$CFLAGS"
9693
CFLAGS="$CFLAGS $option"
9694
AC_MSG_CHECKING([whether gcc understands $option])
9695
AC_TRY_COMPILE([], [],
9698
CFLAGS="$SAVE_CFLAGS"
9699
AC_MSG_RESULT($has_option)
9700
if test $has_option = yes; then
9701
warning_flags="$warning_flags $option"
9707
if test "$enable_compile_warnings" = "error" ; then
9708
warning_flags="$warning_flags -Werror"
9712
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
9715
CFLAGS="$realsave_CFLAGS"
9716
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
9717
AC_MSG_RESULT($warning_flags)
9719
AC_ARG_ENABLE(iso-c,
9720
AC_HELP_STRING([--enable-iso-c],
9721
[Try to warn if code is not ISO C ]),,
9724
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
9726
if test "x$enable_iso_c" != "xno"; then
9727
if test "x$GCC" = "xyes"; then
9729
*[\ \ ]-ansi[\ \ ]*) ;;
9730
*) complCFLAGS="$complCFLAGS -ansi" ;;
9733
*[\ \ ]-pedantic[\ \ ]*) ;;
9734
*) complCFLAGS="$complCFLAGS -pedantic" ;;
9738
AC_MSG_RESULT($complCFLAGS)
9740
WARN_CFLAGS="$warning_flags $complCFLAGS"
9741
AC_SUBST(WARN_CFLAGS)
9744
dnl For C++, do basically the same thing.
9746
AC_DEFUN([GNOME_CXX_WARNINGS],[
9747
AC_ARG_ENABLE(cxx-warnings,
9748
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
9749
[Turn on compiler warnings.]),,
9750
[enable_cxx_warnings="m4_default([$1],[minimum])"])
9752
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
9754
if test "x$GXX" != xyes; then
9755
enable_cxx_warnings=no
9757
if test "x$enable_cxx_warnings" != "xno"; then
9758
if test "x$GXX" = "xyes"; then
9759
case " $CXXFLAGS " in
9760
*[\ \ ]-Wall[\ \ ]*) ;;
9761
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
9764
## -W is not all that useful. And it cannot be controlled
9765
## with individual -Wno-xxx flags, unlike -Wall
9766
if test "x$enable_cxx_warnings" = "xyes"; then
9767
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9771
AC_MSG_RESULT($warnCXXFLAGS)
9773
AC_ARG_ENABLE(iso-cxx,
9774
AC_HELP_STRING([--enable-iso-cxx],
9775
[Try to warn if code is not ISO C++ ]),,
9776
[enable_iso_cxx=no])
9778
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
9780
if test "x$enable_iso_cxx" != "xno"; then
9781
if test "x$GXX" = "xyes"; then
9782
case " $CXXFLAGS " in
9783
*[\ \ ]-ansi[\ \ ]*) ;;
9784
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
9787
case " $CXXFLAGS " in
9788
*[\ \ ]-pedantic[\ \ ]*) ;;
9789
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
9793
AC_MSG_RESULT($complCXXFLAGS)
9795
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
9796
AC_SUBST(WARN_CXXFLAGS)
9799
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
9800
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
9801
AC_DEFUN([GNOME_DOC_DEFINES],
9803
AC_ARG_WITH([help-dir],
9804
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
9805
[with_help_dir='${datadir}/gnome/help'])
9806
HELP_DIR="$with_help_dir"
9809
AC_ARG_WITH([omf-dir],
9810
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
9811
[with_omf_dir='${datadir}/omf'])
9812
OMF_DIR="$with_omf_dir"
9815
AC_ARG_WITH([help-formats],
9816
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
9817
[with_help_formats=''])
9818
DOC_USER_FORMATS="$with_help_formats"
9819
AC_SUBST(DOC_USER_FORMATS)
9821
AC_ARG_ENABLE([scrollkeeper],
9822
[AC_HELP_STRING([--disable-scrollkeeper],
9823
[do not make updates to the scrollkeeper database])],,
9824
enable_scrollkeeper=yes)
9825
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
9827
dnl disable scrollkeeper automatically for distcheck
9828
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
9829
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
9831
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
9834
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
9836
AC_DEFUN([GNOME_DOC_INIT],
9837
[AC_REQUIRE([AC_PROG_LN_S])dnl
9839
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
9841
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
9842
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
9844
if test "$gdu_cv_have_gdu" = "yes"; then
9845
ifelse([$2],,[:],[$2])
9847
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
9854
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
9855
# serial 40 IT_PROG_INTLTOOL
9856
AC_DEFUN([IT_PROG_INTLTOOL], [
9165
9857
AC_PREREQ([2.50])dnl
9166
# expand $ac_aux_dir to an absolute path
9167
am_aux_dir=`cd $ac_aux_dir && pwd`
9170
# AM_CONDITIONAL -*- Autoconf -*-
9172
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9173
# Free Software Foundation, Inc.
9175
# This file is free software; the Free Software Foundation
9176
# gives unlimited permission to copy and/or distribute it,
9177
# with or without modifications, as long as this notice is preserved.
9181
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9182
# -------------------------------------
9183
# Define a conditional.
9184
AC_DEFUN([AM_CONDITIONAL],
9186
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9187
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9188
AC_SUBST([$1_TRUE])dnl
9189
AC_SUBST([$1_FALSE])dnl
9190
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9191
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9192
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9200
AC_CONFIG_COMMANDS_PRE(
9201
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9202
AC_MSG_ERROR([[conditional "$1" was never defined.
9203
Usually this means the macro was only invoked conditionally.]])
9206
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9207
# Free Software Foundation, Inc.
9209
# This file is free software; the Free Software Foundation
9210
# gives unlimited permission to copy and/or distribute it,
9211
# with or without modifications, as long as this notice is preserved.
9215
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9216
# written in clear, in which case automake, when reading aclocal.m4,
9217
# will think it sees a *use*, and therefore will trigger all it's
9218
# C support machinery. Also note that it means that autoscan, seeing
9219
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9222
# _AM_DEPENDENCIES(NAME)
9223
# ----------------------
9224
# See how the compiler implements dependency checking.
9225
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9226
# We try a few techniques and use that to set a single cache variable.
9228
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9229
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9230
# dependency, and given that the user is not expected to run this macro,
9231
# just rely on AC_PROG_CC.
9232
AC_DEFUN([_AM_DEPENDENCIES],
9233
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9234
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9235
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9236
AC_REQUIRE([AM_DEP_TRACK])dnl
9238
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9239
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9240
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9241
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9242
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9243
[depcc="$$1" am_compiler_list=])
9245
AC_CACHE_CHECK([dependency style of $depcc],
9246
[am_cv_$1_dependencies_compiler_type],
9247
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9248
# We make a subdir and do the tests there. Otherwise we can end up
9249
# making bogus files that we don't know about and never remove. For
9250
# instance it was reported that on HP-UX the gcc test will end up
9251
# making a dummy file named `D' -- because `-MD' means `put the output
9254
# Copy depcomp to subdir because otherwise we won't find it if we're
9255
# using a relative directory.
9256
cp "$am_depcomp" conftest.dir
9258
# We will build objects and dependencies in a subdirectory because
9259
# it helps to detect inapplicable dependency modes. For instance
9260
# both Tru64's cc and ICC support -MD to output dependencies as a
9261
# side effect of compilation, but ICC will put the dependencies in
9262
# the current directory while Tru64 will put them in the object
9266
am_cv_$1_dependencies_compiler_type=none
9267
if test "$am_compiler_list" = ""; then
9268
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9272
[case " $depcc " in #(
9273
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9276
[case " $depcc " in #(
9277
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9280
for depmode in $am_compiler_list; do
9281
# Setup a source with many dependencies, because some compilers
9282
# like to wrap large dependency lists on column 80 (with \), and
9283
# we should not choose a depcomp mode which is confused by this.
9285
# We need to recreate these files for each test, as the compiler may
9286
# overwrite some of them when testing with obscure command lines.
9287
# This happens at least with the AIX C compiler.
9289
for i in 1 2 3 4 5 6; do
9290
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9291
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9292
# Solaris 8's {/usr,}/bin/sh.
9293
touch sub/conftst$i.h
9295
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9297
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9298
# mode. It turns out that the SunPro C++ compiler does not properly
9299
# handle `-M -o', and we need to detect this. Also, some Intel
9300
# versions had trouble with output in subdirs
9301
am__obj=sub/conftest.${OBJEXT-o}
9302
am__minus_obj="-o $am__obj"
9305
# This depmode causes a compiler race in universal mode.
9306
test "$am__universal" = false || continue
9309
# after this tag, mechanisms are not by side-effect, so they'll
9310
# only be used when explicitly requested
9311
if test "x$enable_dependency_tracking" = xyes; then
9317
msvisualcpp | msvcmsys)
9318
# This compiler won't grok `-c -o', but also, the minuso test has
9319
# not run yet. These depmodes are late enough in the game, and
9320
# so weak that their functioning should not be impacted.
9321
am__obj=conftest.${OBJEXT-o}
9326
if depmode=$depmode \
9327
source=sub/conftest.c object=$am__obj \
9328
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9329
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9330
>/dev/null 2>conftest.err &&
9331
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9332
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9333
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9334
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9335
# icc doesn't choke on unknown options, it will just issue warnings
9336
# or remarks (even with -Werror). So we grep stderr for any message
9337
# that says an option was ignored or not supported.
9338
# When given -MP, icc 7.0 and 7.1 complain thusly:
9339
# icc: Command line warning: ignoring option '-M'; no argument required
9340
# The diagnosis changed in icc 8.0:
9341
# icc: Command line remark: option '-MP' not supported
9342
if (grep 'ignoring option' conftest.err ||
9343
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9344
am_cv_$1_dependencies_compiler_type=$depmode
9353
am_cv_$1_dependencies_compiler_type=none
9356
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9357
AM_CONDITIONAL([am__fastdep$1], [
9358
test "x$enable_dependency_tracking" != xno \
9359
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9365
# Choose a directory name for dependency files.
9366
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9367
AC_DEFUN([AM_SET_DEPDIR],
9368
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9369
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9375
AC_DEFUN([AM_DEP_TRACK],
9376
[AC_ARG_ENABLE(dependency-tracking,
9377
[ --disable-dependency-tracking speeds up one-time build
9378
--enable-dependency-tracking do not reject slow dependency extractors])
9379
if test "x$enable_dependency_tracking" != xno; then
9380
am_depcomp="$ac_aux_dir/depcomp"
9383
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9384
AC_SUBST([AMDEPBACKSLASH])dnl
9385
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9388
# Generate code to set up dependency tracking. -*- Autoconf -*-
9390
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9391
# Free Software Foundation, Inc.
9393
# This file is free software; the Free Software Foundation
9394
# gives unlimited permission to copy and/or distribute it,
9395
# with or without modifications, as long as this notice is preserved.
9399
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9400
# ------------------------------
9401
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9403
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9404
# are listed without --file. Let's play safe and only enable the eval
9405
# if we detect the quoting.
9406
case $CONFIG_FILES in
9407
*\'*) eval set x "$CONFIG_FILES" ;;
9408
*) set x $CONFIG_FILES ;;
9413
# Strip MF so we end up with the name of the file.
9414
mf=`echo "$mf" | sed -e 's/:.*$//'`
9415
# Check whether this is an Automake generated Makefile or not.
9416
# We used to match only the files named `Makefile.in', but
9417
# some people rename them; so instead we look at the file content.
9418
# Grep'ing the first line is not enough: some people post-process
9419
# each Makefile.in and add a new line on top of each file to say so.
9420
# Grep'ing the whole file is not good either: AIX grep has a line
9421
# limit of 2048, but all sed's we know have understand at least 4000.
9422
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9423
dirpart=`AS_DIRNAME("$mf")`
9427
# Extract the definition of DEPDIR, am__include, and am__quote
9428
# from the Makefile without running `make'.
9429
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9430
test -z "$DEPDIR" && continue
9431
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9432
test -z "am__include" && continue
9433
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9434
# When using ansi2knr, U may be empty or an underscore; expand it
9435
U=`sed -n 's/^U = //p' < "$mf"`
9436
# Find all dependency output files, they are included files with
9437
# $(DEPDIR) in their names. We invoke sed twice because it is the
9438
# simplest approach to changing $(DEPDIR) to its actual value in the
9440
for file in `sed -n "
9441
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9442
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9443
# Make sure the directory exists.
9444
test -f "$dirpart/$file" && continue
9445
fdir=`AS_DIRNAME(["$file"])`
9446
AS_MKDIR_P([$dirpart/$fdir])
9447
# echo "creating $dirpart/$file"
9448
echo '# dummy' > "$dirpart/$file"
9452
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9455
# AM_OUTPUT_DEPENDENCY_COMMANDS
9456
# -----------------------------
9457
# This macro should only be invoked once -- use via AC_REQUIRE.
9459
# This code is only required when automatic dependency tracking
9460
# is enabled. FIXME. This creates each `.P' file that we will
9461
# need in order to bootstrap the dependency handling code.
9462
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9463
[AC_CONFIG_COMMANDS([depfiles],
9464
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9465
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9468
# Do all the work for Automake. -*- Autoconf -*-
9470
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9471
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9473
# This file is free software; the Free Software Foundation
9474
# gives unlimited permission to copy and/or distribute it,
9475
# with or without modifications, as long as this notice is preserved.
9479
# This macro actually does too much. Some checks are only needed if
9480
# your package does certain things. But this isn't really a big deal.
9482
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9483
# AM_INIT_AUTOMAKE([OPTIONS])
9484
# -----------------------------------------------
9485
# The call with PACKAGE and VERSION arguments is the old style
9486
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9487
# and VERSION should now be passed to AC_INIT and removed from
9488
# the call to AM_INIT_AUTOMAKE.
9489
# We support both call styles for the transition. After
9490
# the next Automake release, Autoconf can make the AC_INIT
9491
# arguments mandatory, and then we can depend on a new Autoconf
9492
# release and drop the old call support.
9493
AC_DEFUN([AM_INIT_AUTOMAKE],
9494
[AC_PREREQ([2.62])dnl
9495
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9496
dnl the ones we care about.
9497
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9498
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9499
AC_REQUIRE([AC_PROG_INSTALL])dnl
9500
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9501
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9502
# is not polluted with repeated "-I."
9503
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9504
# test to see if srcdir already configured
9505
if test -f $srcdir/config.status; then
9506
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9510
# test whether we have cygpath
9511
if test -z "$CYGPATH_W"; then
9512
if (cygpath --version) >/dev/null 2>/dev/null; then
9513
CYGPATH_W='cygpath -w'
9518
AC_SUBST([CYGPATH_W])
9520
# Define the identity of the package.
9521
dnl Distinguish between old-style and new-style calls.
9523
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9524
AC_SUBST([PACKAGE], [$1])dnl
9525
AC_SUBST([VERSION], [$2])],
9526
[_AM_SET_OPTIONS([$1])dnl
9527
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9528
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9529
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9530
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9531
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9533
_AM_IF_OPTION([no-define],,
9534
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9535
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9537
# Some tools Automake needs.
9538
AC_REQUIRE([AM_SANITY_CHECK])dnl
9539
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9540
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9541
AM_MISSING_PROG(AUTOCONF, autoconf)
9542
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9543
AM_MISSING_PROG(AUTOHEADER, autoheader)
9544
AM_MISSING_PROG(MAKEINFO, makeinfo)
9545
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9546
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9547
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9548
# We need awk for the "check" target. The system "awk" is bad on
9550
AC_REQUIRE([AC_PROG_AWK])dnl
9551
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9552
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9553
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9554
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9555
[_AM_PROG_TAR([v7])])])
9556
_AM_IF_OPTION([no-dependencies],,
9557
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9558
[_AM_DEPENDENCIES(CC)],
9559
[define([AC_PROG_CC],
9560
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9561
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9562
[_AM_DEPENDENCIES(CXX)],
9563
[define([AC_PROG_CXX],
9564
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9565
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9566
[_AM_DEPENDENCIES(OBJC)],
9567
[define([AC_PROG_OBJC],
9568
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9570
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9571
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9572
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9573
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9574
AC_CONFIG_COMMANDS_PRE(dnl
9575
[m4_provide_if([_AM_COMPILER_EXEEXT],
9576
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9579
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9580
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9581
dnl mangled by Autoconf and run in a shell conditional statement.
9582
m4_define([_AC_COMPILER_EXEEXT],
9583
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9586
# When config.status generates a header, we must update the stamp-h file.
9587
# This file resides in the same directory as the config header
9588
# that is generated. The stamp files are numbered to have different names.
9590
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9591
# loop where config.status creates the headers, so we can generate
9592
# our stamp files there.
9593
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9594
[# Compute $1's index in $config_headers.
9597
for _am_header in $config_headers :; do
9599
$_am_arg | $_am_arg:* )
9602
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9605
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9607
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9609
# This file is free software; the Free Software Foundation
9610
# gives unlimited permission to copy and/or distribute it,
9611
# with or without modifications, as long as this notice is preserved.
9613
# AM_PROG_INSTALL_SH
9614
# ------------------
9615
# Define $install_sh.
9616
AC_DEFUN([AM_PROG_INSTALL_SH],
9617
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9618
if test x"${install_sh}" != xset; then
9621
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9623
install_sh="\${SHELL} $am_aux_dir/install-sh"
9626
AC_SUBST(install_sh)])
9628
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9630
# This file is free software; the Free Software Foundation
9631
# gives unlimited permission to copy and/or distribute it,
9632
# with or without modifications, as long as this notice is preserved.
9636
# Check whether the underlying file-system supports filenames
9637
# with a leading dot. For instance MS-DOS doesn't.
9638
AC_DEFUN([AM_SET_LEADING_DOT],
9639
[rm -rf .tst 2>/dev/null
9640
mkdir .tst 2>/dev/null
9641
if test -d .tst; then
9646
rmdir .tst 2>/dev/null
9647
AC_SUBST([am__leading_dot])])
9649
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9652
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9653
# Free Software Foundation, Inc.
9655
# This file is free software; the Free Software Foundation
9656
# gives unlimited permission to copy and/or distribute it,
9657
# with or without modifications, as long as this notice is preserved.
9661
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9662
# ----------------------------------
9663
# Control maintainer-specific portions of Makefiles.
9664
# Default is to disable them, unless `enable' is passed literally.
9665
# For symmetry, `disable' may be passed as well. Anyway, the user
9666
# can override the default with the --enable/--disable switch.
9667
AC_DEFUN([AM_MAINTAINER_MODE],
9668
[m4_case(m4_default([$1], [disable]),
9669
[enable], [m4_define([am_maintainer_other], [disable])],
9670
[disable], [m4_define([am_maintainer_other], [enable])],
9671
[m4_define([am_maintainer_other], [enable])
9672
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9673
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9674
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9675
AC_ARG_ENABLE([maintainer-mode],
9676
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9677
(and sometimes confusing) to the casual installer],
9678
[USE_MAINTAINER_MODE=$enableval],
9679
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9680
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9681
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9682
MAINT=$MAINTAINER_MODE_TRUE
9683
AC_SUBST([MAINT])dnl
9858
AC_REQUIRE([AM_NLS])dnl
9860
case "$am__api_version" in
9862
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
9868
if test -n "$1"; then
9869
AC_MSG_CHECKING([for intltool >= $1])
9871
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
9872
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
9873
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
9875
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
9876
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
9877
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
9880
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
9881
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
9882
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
9883
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
9884
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
9887
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@'
9888
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@'
9889
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9890
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@'
9891
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
9892
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@'
9893
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9894
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@'
9895
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@'
9896
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@'
9897
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@'
9898
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
9899
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@'
9900
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9901
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@'
9902
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 $< [$]@'
9903
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 $< [$]@'
9904
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 $< [$]@'
9905
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 $< [$]@'
9907
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
9908
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
9909
_IT_SUBST(INTLTOOL_KEYS_RULE)
9910
_IT_SUBST(INTLTOOL_PROP_RULE)
9911
_IT_SUBST(INTLTOOL_OAF_RULE)
9912
_IT_SUBST(INTLTOOL_PONG_RULE)
9913
_IT_SUBST(INTLTOOL_SERVER_RULE)
9914
_IT_SUBST(INTLTOOL_SHEET_RULE)
9915
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
9916
_IT_SUBST(INTLTOOL_UI_RULE)
9917
_IT_SUBST(INTLTOOL_XAM_RULE)
9918
_IT_SUBST(INTLTOOL_KBD_RULE)
9919
_IT_SUBST(INTLTOOL_XML_RULE)
9920
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
9921
_IT_SUBST(INTLTOOL_CAVES_RULE)
9922
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
9923
_IT_SUBST(INTLTOOL_THEME_RULE)
9924
_IT_SUBST(INTLTOOL_SERVICE_RULE)
9925
_IT_SUBST(INTLTOOL_POLICY_RULE)
9927
# Check the gettext tools to make sure they are GNU
9928
AC_PATH_PROG(XGETTEXT, xgettext)
9929
AC_PATH_PROG(MSGMERGE, msgmerge)
9930
AC_PATH_PROG(MSGFMT, msgfmt)
9931
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9932
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
9933
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
9935
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
9936
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
9937
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
9938
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
9939
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
9942
AC_PATH_PROG(INTLTOOL_PERL, perl)
9943
if test -z "$INTLTOOL_PERL"; then
9944
AC_MSG_ERROR([perl not found])
9946
AC_MSG_CHECKING([for perl >= 5.8.1])
9947
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
9948
if test $? -ne 0; then
9949
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
9951
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
9952
AC_MSG_RESULT([$IT_PERL_VERSION])
9954
if test "x$2" != "xno-xml"; then
9955
AC_MSG_CHECKING([for XML::Parser])
9956
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
9959
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
9963
# Substitute ALL_LINGUAS so we can use it in po/Makefile
9964
AC_SUBST(ALL_LINGUAS)
9966
# Set DATADIRNAME correctly if it is not set yet
9967
# (copied from glib-gettext.m4)
9968
if test -z "$DATADIRNAME"; then
9970
[AC_LANG_PROGRAM([[]],
9971
[[extern int _nl_msg_cat_cntr;
9972
return _nl_msg_cat_cntr]])],
9973
[DATADIRNAME=share],
9976
dnl On Solaris, if bind_textdomain_codeset is in libc,
9977
dnl GNU format message catalog is always supported,
9978
dnl since both are added to the libc all together.
9979
dnl Hence, we'd like to go with DATADIRNAME=share
9981
AC_CHECK_FUNC(bind_textdomain_codeset,
9982
[DATADIRNAME=share], [DATADIRNAME=lib])
9989
AC_SUBST(DATADIRNAME)
9996
# IT_PO_SUBDIR(DIRNAME)
9997
# ---------------------
9998
# All po subdirs have to be declared with this macro; the subdir "po" is
9999
# declared by IT_PROG_INTLTOOL.
10001
AC_DEFUN([IT_PO_SUBDIR],
10002
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10004
dnl The following CONFIG_COMMANDS should be exetuted at the very end
10005
dnl of config.status.
10006
AC_CONFIG_COMMANDS_PRE([
10007
AC_CONFIG_COMMANDS([$1/stamp-it], [
10008
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10009
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10011
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10016
'"s|^| $ac_top_srcdir/|" \
10017
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10019
[sed '/^POTFILES =/,/[^\\]$/ {
10023
' "$1/Makefile.in" >"$1/Makefile"]
10024
rm -f "$1/Makefile.tmp"
10025
mv "$1/stamp-it.tmp" "$1/stamp-it"
10030
# _IT_SUBST(VARIABLE)
10031
# -------------------
10032
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10034
AC_DEFUN([_IT_SUBST],
10037
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
9687
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9689
# Check to see how 'make' treats includes. -*- Autoconf -*-
9691
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9693
# This file is free software; the Free Software Foundation
9694
# gives unlimited permission to copy and/or distribute it,
9695
# with or without modifications, as long as this notice is preserved.
9701
# Check to see how make treats includes.
9702
AC_DEFUN([AM_MAKE_INCLUDE],
9703
[am_make=${MAKE-make}
9704
cat > confinc << 'END'
9706
@echo this is the am__doit target
9709
# If we don't find an include directive, just comment out the code.
9710
AC_MSG_CHECKING([for style of include used by $am_make])
9714
# First try GNU make style include.
9715
echo "include confinc" > confmf
9716
# Ignore all kinds of additional output from `make'.
9717
case `$am_make -s -f confmf 2> /dev/null` in #(
9718
*the\ am__doit\ target*)
9724
# Now try BSD make style include.
9725
if test "$am__include" = "#"; then
9726
echo '.include "confinc"' > confmf
9727
case `$am_make -s -f confmf 2> /dev/null` in #(
9728
*the\ am__doit\ target*)
9729
am__include=.include
9735
AC_SUBST([am__include])
9736
AC_SUBST([am__quote])
9737
AC_MSG_RESULT([$_am_result])
9738
rm -f confinc confmf
9741
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9743
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9744
# Free Software Foundation, Inc.
9746
# This file is free software; the Free Software Foundation
9747
# gives unlimited permission to copy and/or distribute it,
9748
# with or without modifications, as long as this notice is preserved.
9752
# AM_MISSING_PROG(NAME, PROGRAM)
9753
# ------------------------------
9754
AC_DEFUN([AM_MISSING_PROG],
9755
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9756
$1=${$1-"${am_missing_run}$2"}
9760
# AM_MISSING_HAS_RUN
9761
# ------------------
9762
# Define MISSING if not defined so far and test if it supports --run.
9763
# If it does, set am_missing_run to use it, otherwise, to nothing.
9764
AC_DEFUN([AM_MISSING_HAS_RUN],
9765
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9766
AC_REQUIRE_AUX_FILE([missing])dnl
9767
if test x"${MISSING+set}" != xset; then
9770
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9772
MISSING="\${SHELL} $am_aux_dir/missing" ;;
9775
# Use eval to expand $SHELL
9776
if eval "$MISSING --run true"; then
9777
am_missing_run="$MISSING --run "
9780
AC_MSG_WARN([`missing' script is too old or missing])
9784
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9786
# This file is free software; the Free Software Foundation
9787
# gives unlimited permission to copy and/or distribute it,
9788
# with or without modifications, as long as this notice is preserved.
9792
# Check for `mkdir -p'.
9793
AC_DEFUN([AM_PROG_MKDIR_P],
9794
[AC_PREREQ([2.60])dnl
9795
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9796
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9797
dnl while keeping a definition of mkdir_p for backward compatibility.
9798
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9799
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9800
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9801
dnl adjustment using top_builddir (which is defined more often than
9803
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9805
[[\\/$]]* | ?:[[\\/]]*) ;;
9806
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9810
# Helper functions for option handling. -*- Autoconf -*-
9812
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9814
# This file is free software; the Free Software Foundation
9815
# gives unlimited permission to copy and/or distribute it,
9816
# with or without modifications, as long as this notice is preserved.
9820
# _AM_MANGLE_OPTION(NAME)
9821
# -----------------------
9822
AC_DEFUN([_AM_MANGLE_OPTION],
9823
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9825
# _AM_SET_OPTION(NAME)
9826
# ------------------------------
9827
# Set option NAME. Presently that only means defining a flag for this option.
9828
AC_DEFUN([_AM_SET_OPTION],
9829
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9831
# _AM_SET_OPTIONS(OPTIONS)
9832
# ----------------------------------
9833
# OPTIONS is a space-separated list of Automake options.
9834
AC_DEFUN([_AM_SET_OPTIONS],
9835
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9837
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9838
# -------------------------------------------
9839
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9840
AC_DEFUN([_AM_IF_OPTION],
9841
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9843
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9845
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9846
# Free Software Foundation, Inc.
9848
# This file is free software; the Free Software Foundation
9849
# gives unlimited permission to copy and/or distribute it,
9850
# with or without modifications, as long as this notice is preserved.
9856
AC_DEFUN([AM_SANITY_CHECK],
9857
[AC_MSG_CHECKING([whether build environment is sane])
9860
echo timestamp > conftest.file
9861
# Reject unsafe characters in $srcdir or the absolute working directory
9862
# name. Accept space and tab only in the latter.
9866
*[[\\\"\#\$\&\'\`$am_lf]]*)
9867
AC_MSG_ERROR([unsafe absolute working directory name]);;
9870
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9871
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9874
# Do `set' in a subshell so we don't clobber the current shell's
9875
# arguments. Must try -L first in case configure is actually a
9876
# symlink; some systems play weird games with the mod time of symlinks
9877
# (eg FreeBSD returns the mod time of the symlink's containing
9880
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9881
if test "$[*]" = "X"; then
9883
set X `ls -t "$srcdir/configure" conftest.file`
9886
if test "$[*]" != "X $srcdir/configure conftest.file" \
9887
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9889
# If neither matched, then we have a broken ls. This can happen
9890
# if, for instance, CONFIG_SHELL is bash and it inherits a
9891
# broken ls alias from the environment. This has actually
9892
# happened. Such a system could not be considered "sane".
9893
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9894
alias in your environment])
9897
test "$[2]" = conftest.file
9903
AC_MSG_ERROR([newly created file is older than distributed files!
9904
Check your system clock])
9906
AC_MSG_RESULT(yes)])
9908
# Copyright (C) 2009 Free Software Foundation, Inc.
9910
# This file is free software; the Free Software Foundation
9911
# gives unlimited permission to copy and/or distribute it,
9912
# with or without modifications, as long as this notice is preserved.
9916
# AM_SILENT_RULES([DEFAULT])
9917
# --------------------------
9918
# Enable less verbose build rules; with the default set to DEFAULT
9919
# (`yes' being less verbose, `no' or empty being verbose).
9920
AC_DEFUN([AM_SILENT_RULES],
9921
[AC_ARG_ENABLE([silent-rules],
9922
[ --enable-silent-rules less verbose build output (undo: `make V=1')
9923
--disable-silent-rules verbose build output (undo: `make V=0')])
9924
case $enable_silent_rules in
9925
yes) AM_DEFAULT_VERBOSITY=0;;
9926
no) AM_DEFAULT_VERBOSITY=1;;
9927
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9929
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9931
AC_SUBST([AM_BACKSLASH])dnl
9932
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9935
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9937
# This file is free software; the Free Software Foundation
9938
# gives unlimited permission to copy and/or distribute it,
9939
# with or without modifications, as long as this notice is preserved.
9941
# AM_PROG_INSTALL_STRIP
9942
# ---------------------
9943
# One issue with vendor `install' (even GNU) is that you can't
9944
# specify the program used to strip binaries. This is especially
9945
# annoying in cross-compiling environments, where the build's strip
9946
# is unlikely to handle the host's binaries.
9947
# Fortunately install-sh will honor a STRIPPROG variable, so we
9948
# always use install-sh in `make install-strip', and initialize
9949
# STRIPPROG with the value of the STRIP variable (set by the user).
9950
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9951
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9952
# Installed binaries are usually stripped using `strip' when the user
9953
# run `make install-strip'. However `strip' might not be the right
9954
# tool to use in cross-compilation environments, therefore Automake
9955
# will honor the `STRIP' environment variable to overrule this program.
9956
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9957
if test "$cross_compiling" != no; then
9958
AC_CHECK_TOOL([STRIP], [strip], :)
9960
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9961
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9963
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9965
# This file is free software; the Free Software Foundation
9966
# gives unlimited permission to copy and/or distribute it,
9967
# with or without modifications, as long as this notice is preserved.
9971
# _AM_SUBST_NOTMAKE(VARIABLE)
9972
# ---------------------------
9973
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9974
# This macro is traced by Automake.
9975
AC_DEFUN([_AM_SUBST_NOTMAKE])
9977
# AM_SUBST_NOTMAKE(VARIABLE)
9978
# ---------------------------
9979
# Public sister of _AM_SUBST_NOTMAKE.
9980
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9982
# Check how to create a tarball. -*- Autoconf -*-
9984
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9986
# This file is free software; the Free Software Foundation
9987
# gives unlimited permission to copy and/or distribute it,
9988
# with or without modifications, as long as this notice is preserved.
9992
# _AM_PROG_TAR(FORMAT)
9993
# --------------------
9994
# Check how to create a tarball in format FORMAT.
9995
# FORMAT should be one of `v7', `ustar', or `pax'.
9997
# Substitute a variable $(am__tar) that is a command
9998
# writing to stdout a FORMAT-tarball containing the directory
10000
# tardir=directory && $(am__tar) > result.tar
10002
# Substitute a variable $(am__untar) that extract such
10003
# a tarball read from stdin.
10004
# $(am__untar) < result.tar
10005
AC_DEFUN([_AM_PROG_TAR],
10006
[# Always define AMTAR for backward compatibility.
10007
AM_MISSING_PROG([AMTAR], [tar])
10009
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10010
[m4_case([$1], [ustar],, [pax],,
10011
[m4_fatal([Unknown tar format])])
10012
AC_MSG_CHECKING([how to create a $1 tar archive])
10013
# Loop over all known methods to create a tar archive until one works.
10014
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10015
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10016
# Do not fold the above two line into one, because Tru64 sh and
10017
# Solaris sh will not grok spaces in the rhs of `-'.
10018
for _am_tool in $_am_tools
10022
for _am_tar in tar gnutar gtar;
10024
AM_RUN_LOG([$_am_tar --version]) && break
10026
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10027
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10028
am__untar="$_am_tar -xf -"
10031
# Must skip GNU tar: if it does not support --format= it doesn't create
10032
# ustar tarball either.
10033
(tar --version) >/dev/null 2>&1 && continue
10034
am__tar='tar chf - "$$tardir"'
10035
am__tar_='tar chf - "$tardir"'
10036
am__untar='tar xf -'
10039
am__tar='pax -L -x $1 -w "$$tardir"'
10040
am__tar_='pax -L -x $1 -w "$tardir"'
10044
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10045
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10046
am__untar='cpio -i -H $1 -d'
10055
# If the value was cached, stop now. We just wanted to have am__tar
10056
# and am__untar set.
10057
test -n "${am_cv_prog_tar_$1}" && break
10059
# tar/untar a dummy directory, and stop if the command works
10060
rm -rf conftest.dir
10062
echo GrepMe > conftest.dir/file
10063
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10064
rm -rf conftest.dir
10065
if test -s conftest.tar; then
10066
AM_RUN_LOG([$am__untar <conftest.tar])
10067
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10070
rm -rf conftest.dir
10072
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10073
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10074
AC_SUBST([am__tar])
10075
AC_SUBST([am__untar])
10041
# deprecated macros
10042
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10043
# A hint is needed for aclocal from Automake <= 1.9.4:
10044
# AC_DEFUN([AC_PROG_INTLTOOL], ...)