~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
dnl  Usage: RELAYTOOL(LIBRARY_NAME, LIBS, CFLAGS, ACTION-IF-WEAK-LINK-IS-POSSIBLE)
15
 
 
16
 
dnl  Example:
17
 
dnl  RELAYTOOL("gtkspell", GTKSPELL_LIBS, GTKSPELL_CFLAGS, gtkspell_weak=yes)
18
 
dnl  Will modify GTKSPELL_LIBS to include a call to relaytool if available
19
 
dnl  or if not, will modify GTKSPELL_CFLAGS to include -D switches to define
20
 
dnl  libgtkspell_is_present=1 and libgtkspell_symbol_is_present=1
21
 
 
22
 
AC_DEFUN([RELAYTOOL], [
23
 
    if test -z "$RELAYTOOL_PROG"; then
24
 
        AC_PATH_PROG(RELAYTOOL_PROG, relaytool, no)
25
 
    fi
26
 
 
27
 
    AC_MSG_CHECKING(whether we can weak link $1)
28
 
 
29
 
    _RELAYTOOL_PROCESSED_NAME=`echo "$1" | sed 's/-/_/g;s/\./_/g;'`
30
 
    _RELAYTOOL_UPPER_NAME=`echo $_RELAYTOOL_PROCESSED_NAME | tr '[[:lower:]]' '[[:upper:]]'`
31
 
 
32
 
    if test "$RELAYTOOL_PROG" = "no"; then
33
 
        AC_MSG_RESULT(no)
34
 
        $3="-DRELAYTOOL_${_RELAYTOOL_UPPER_NAME}='static const int lib${_RELAYTOOL_PROCESSED_NAME}_is_present = 1; static int __attribute__((unused)) lib${_RELAYTOOL_PROCESSED_NAME}_symbol_is_present(char *m) { return 1; }' $$3"
35
 
    else
36
 
        AC_MSG_RESULT(yes)
37
 
        $2=`echo $$2|sed 's/\`/\\\\\`/g;'`
38
 
        $2="-Wl,--gc-sections \`relaytool --relay $1 $$2\`"
39
 
        $3="-DRELAYTOOL_${_RELAYTOOL_UPPER_NAME}='extern int lib${_RELAYTOOL_PROCESSED_NAME}_is_present; extern int lib${_RELAYTOOL_PROCESSED_NAME}_symbol_is_present(char *s);' $$3"
40
 
        $4
41
 
    fi
42
 
])
43
 
 
44
 
 
45
 
# Do all the work for Automake.                            -*- Autoconf -*-
46
 
 
47
 
# This macro actually does too much some checks are only needed if
48
 
# your package does certain things.  But this isn't really a big deal.
49
 
 
50
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
51
 
# Free Software Foundation, Inc.
52
 
 
53
 
# This program is free software; you can redistribute it and/or modify
54
 
# it under the terms of the GNU General Public License as published by
55
 
# the Free Software Foundation; either version 2, or (at your option)
56
 
# any later version.
57
 
 
58
 
# This program is distributed in the hope that it will be useful,
59
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
60
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
61
 
# GNU General Public License for more details.
62
 
 
63
 
# You should have received a copy of the GNU General Public License
64
 
# along with this program; if not, write to the Free Software
65
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
66
 
# 02111-1307, USA.
67
 
 
68
 
# serial 10
69
 
 
70
 
AC_PREREQ([2.54])
71
 
 
72
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
73
 
# the ones we care about.
74
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
75
 
 
76
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
77
 
# AM_INIT_AUTOMAKE([OPTIONS])
78
 
# -----------------------------------------------
79
 
# The call with PACKAGE and VERSION arguments is the old style
80
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
81
 
# and VERSION should now be passed to AC_INIT and removed from
82
 
# the call to AM_INIT_AUTOMAKE.
83
 
# We support both call styles for the transition.  After
84
 
# the next Automake release, Autoconf can make the AC_INIT
85
 
# arguments mandatory, and then we can depend on a new Autoconf
86
 
# release and drop the old call support.
87
 
AC_DEFUN([AM_INIT_AUTOMAKE],
88
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
89
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
90
 
# test to see if srcdir already configured
91
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
92
 
   test -f $srcdir/config.status; then
93
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
94
 
fi
95
 
 
96
 
# test whether we have cygpath
97
 
if test -z "$CYGPATH_W"; then
98
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
99
 
    CYGPATH_W='cygpath -w'
100
 
  else
101
 
    CYGPATH_W=echo
102
 
  fi
103
 
fi
104
 
AC_SUBST([CYGPATH_W])
105
 
 
106
 
# Define the identity of the package.
107
 
dnl Distinguish between old-style and new-style calls.
108
 
m4_ifval([$2],
109
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
110
 
 AC_SUBST([PACKAGE], [$1])dnl
111
 
 AC_SUBST([VERSION], [$2])],
112
 
[_AM_SET_OPTIONS([$1])dnl
113
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
114
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
115
 
 
116
 
_AM_IF_OPTION([no-define],,
117
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
118
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
119
 
 
120
 
# Some tools Automake needs.
121
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
122
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
123
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
124
 
AM_MISSING_PROG(AUTOCONF, autoconf)
125
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
126
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
127
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
128
 
AM_MISSING_PROG(AMTAR, tar)
129
 
AM_PROG_INSTALL_SH
130
 
AM_PROG_INSTALL_STRIP
131
 
# We need awk for the "check" target.  The system "awk" is bad on
132
 
# some platforms.
133
 
AC_REQUIRE([AC_PROG_AWK])dnl
134
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
135
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
136
 
 
137
 
_AM_IF_OPTION([no-dependencies],,
138
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
139
 
                  [_AM_DEPENDENCIES(CC)],
140
 
                  [define([AC_PROG_CC],
141
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
142
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
143
 
                  [_AM_DEPENDENCIES(CXX)],
144
 
                  [define([AC_PROG_CXX],
145
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
146
 
])
147
 
])
148
 
 
149
 
 
150
 
# When config.status generates a header, we must update the stamp-h file.
151
 
# This file resides in the same directory as the config header
152
 
# that is generated.  The stamp files are numbered to have different names.
153
 
 
154
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
155
 
# loop where config.status creates the headers, so we can generate
156
 
# our stamp files there.
157
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
158
 
[# Compute $1's index in $config_headers.
159
 
_am_stamp_count=1
160
 
for _am_header in $config_headers :; do
161
 
  case $_am_header in
162
 
    $1 | $1:* )
163
 
      break ;;
164
 
    * )
165
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
166
 
  esac
167
 
done
168
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
169
 
 
170
 
# Copyright 2002  Free Software Foundation, Inc.
171
 
 
172
 
# This program is free software; you can redistribute it and/or modify
173
 
# it under the terms of the GNU General Public License as published by
174
 
# the Free Software Foundation; either version 2, or (at your option)
175
 
# any later version.
176
 
 
177
 
# This program is distributed in the hope that it will be useful,
178
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
180
 
# GNU General Public License for more details.
181
 
 
182
 
# You should have received a copy of the GNU General Public License
183
 
# along with this program; if not, write to the Free Software
184
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
185
 
 
186
 
# AM_AUTOMAKE_VERSION(VERSION)
187
 
# ----------------------------
188
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
189
 
# generated from the m4 files accompanying Automake X.Y.
190
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
191
 
 
192
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
193
 
# -------------------------------
194
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
195
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
196
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
197
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
198
 
 
199
 
# Helper functions for option handling.                    -*- Autoconf -*-
200
 
 
201
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
202
 
 
203
 
# This program is free software; you can redistribute it and/or modify
204
 
# it under the terms of the GNU General Public License as published by
205
 
# the Free Software Foundation; either version 2, or (at your option)
206
 
# any later version.
207
 
 
208
 
# This program is distributed in the hope that it will be useful,
209
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
210
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
211
 
# GNU General Public License for more details.
212
 
 
213
 
# You should have received a copy of the GNU General Public License
214
 
# along with this program; if not, write to the Free Software
215
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
216
 
# 02111-1307, USA.
217
 
 
218
 
# serial 2
219
 
 
220
 
# _AM_MANGLE_OPTION(NAME)
221
 
# -----------------------
222
 
AC_DEFUN([_AM_MANGLE_OPTION],
223
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
224
 
 
225
 
# _AM_SET_OPTION(NAME)
226
 
# ------------------------------
227
 
# Set option NAME.  Presently that only means defining a flag for this option.
228
 
AC_DEFUN([_AM_SET_OPTION],
229
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
230
 
 
231
 
# _AM_SET_OPTIONS(OPTIONS)
232
 
# ----------------------------------
233
 
# OPTIONS is a space-separated list of Automake options.
234
 
AC_DEFUN([_AM_SET_OPTIONS],
235
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
236
 
 
237
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
238
 
# -------------------------------------------
239
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
240
 
AC_DEFUN([_AM_IF_OPTION],
241
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
242
 
 
243
 
#
244
 
# Check to make sure that the build environment is sane.
245
 
#
246
 
 
247
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
248
 
 
249
 
# This program is free software; you can redistribute it and/or modify
250
 
# it under the terms of the GNU General Public License as published by
251
 
# the Free Software Foundation; either version 2, or (at your option)
252
 
# any later version.
253
 
 
254
 
# This program is distributed in the hope that it will be useful,
255
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
256
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
257
 
# GNU General Public License for more details.
258
 
 
259
 
# You should have received a copy of the GNU General Public License
260
 
# along with this program; if not, write to the Free Software
261
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
262
 
# 02111-1307, USA.
263
 
 
264
 
# serial 3
265
 
 
266
 
# AM_SANITY_CHECK
267
 
# ---------------
268
 
AC_DEFUN([AM_SANITY_CHECK],
269
 
[AC_MSG_CHECKING([whether build environment is sane])
270
 
# Just in case
271
 
sleep 1
272
 
echo timestamp > conftest.file
273
 
# Do `set' in a subshell so we don't clobber the current shell's
274
 
# arguments.  Must try -L first in case configure is actually a
275
 
# symlink; some systems play weird games with the mod time of symlinks
276
 
# (eg FreeBSD returns the mod time of the symlink's containing
277
 
# directory).
278
 
if (
279
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
280
 
   if test "$[*]" = "X"; then
281
 
      # -L didn't work.
282
 
      set X `ls -t $srcdir/configure conftest.file`
283
 
   fi
284
 
   rm -f conftest.file
285
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
286
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
287
 
 
288
 
      # If neither matched, then we have a broken ls.  This can happen
289
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
290
 
      # broken ls alias from the environment.  This has actually
291
 
      # happened.  Such a system could not be considered "sane".
292
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
293
 
alias in your environment])
294
 
   fi
295
 
 
296
 
   test "$[2]" = conftest.file
297
 
   )
298
 
then
299
 
   # Ok.
300
 
   :
301
 
else
302
 
   AC_MSG_ERROR([newly created file is older than distributed files!
303
 
Check your system clock])
304
 
fi
305
 
AC_MSG_RESULT(yes)])
306
 
 
307
 
#  -*- Autoconf -*-
308
 
 
309
 
 
310
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
311
 
 
312
 
# This program is free software; you can redistribute it and/or modify
313
 
# it under the terms of the GNU General Public License as published by
314
 
# the Free Software Foundation; either version 2, or (at your option)
315
 
# any later version.
316
 
 
317
 
# This program is distributed in the hope that it will be useful,
318
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
319
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
320
 
# GNU General Public License for more details.
321
 
 
322
 
# You should have received a copy of the GNU General Public License
323
 
# along with this program; if not, write to the Free Software
324
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
325
 
# 02111-1307, USA.
326
 
 
327
 
# serial 3
328
 
 
329
 
# AM_MISSING_PROG(NAME, PROGRAM)
330
 
# ------------------------------
331
 
AC_DEFUN([AM_MISSING_PROG],
332
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
333
 
$1=${$1-"${am_missing_run}$2"}
334
 
AC_SUBST($1)])
335
 
 
336
 
 
337
 
# AM_MISSING_HAS_RUN
338
 
# ------------------
339
 
# Define MISSING if not defined so far and test if it supports --run.
340
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
341
 
AC_DEFUN([AM_MISSING_HAS_RUN],
342
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
343
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
344
 
# Use eval to expand $SHELL
345
 
if eval "$MISSING --run true"; then
346
 
  am_missing_run="$MISSING --run "
347
 
else
348
 
  am_missing_run=
349
 
  AC_MSG_WARN([`missing' script is too old or missing])
350
 
fi
351
 
])
352
 
 
353
 
# AM_AUX_DIR_EXPAND
354
 
 
355
 
# Copyright 2001 Free Software Foundation, Inc.
356
 
 
357
 
# This program is free software; you can redistribute it and/or modify
358
 
# it under the terms of the GNU General Public License as published by
359
 
# the Free Software Foundation; either version 2, or (at your option)
360
 
# any later version.
361
 
 
362
 
# This program is distributed in the hope that it will be useful,
363
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
364
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
365
 
# GNU General Public License for more details.
366
 
 
367
 
# You should have received a copy of the GNU General Public License
368
 
# along with this program; if not, write to the Free Software
369
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
370
 
# 02111-1307, USA.
371
 
 
372
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
373
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
374
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
375
 
#
376
 
# Of course, Automake must honor this variable whenever it calls a
377
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
378
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
379
 
# depending on how configure is run.  This is pretty annoying, since
380
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
381
 
# source directory, any form will work fine, but in subdirectories a
382
 
# relative path needs to be adjusted first.
383
 
#
384
 
# $ac_aux_dir/missing
385
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
386
 
# $top_srcdir/$ac_aux_dir/missing
387
 
#    fails if $ac_aux_dir is absolute,
388
 
#    fails when called from a subdirectory in a VPATH build with
389
 
#          a relative $ac_aux_dir
390
 
#
391
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
392
 
# are both prefixed by $srcdir.  In an in-source build this is usually
393
 
# harmless because $srcdir is `.', but things will broke when you
394
 
# start a VPATH build or use an absolute $srcdir.
395
 
#
396
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
397
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
398
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
399
 
# and then we would define $MISSING as
400
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
401
 
# This will work as long as MISSING is not called from configure, because
402
 
# unfortunately $(top_srcdir) has no meaning in configure.
403
 
# However there are other variables, like CC, which are often used in
404
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
405
 
#
406
 
# Another solution, used here, is to always expand $ac_aux_dir to an
407
 
# absolute PATH.  The drawback is that using absolute paths prevent a
408
 
# configured tree to be moved without reconfiguration.
409
 
 
410
 
# Rely on autoconf to set up CDPATH properly.
411
 
AC_PREREQ([2.50])
412
 
 
413
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
414
 
# expand $ac_aux_dir to an absolute path
415
 
am_aux_dir=`cd $ac_aux_dir && pwd`
416
 
])
417
 
 
418
 
# AM_PROG_INSTALL_SH
419
 
# ------------------
420
 
# Define $install_sh.
421
 
 
422
 
# Copyright 2001 Free Software Foundation, Inc.
423
 
 
424
 
# This program is free software; you can redistribute it and/or modify
425
 
# it under the terms of the GNU General Public License as published by
426
 
# the Free Software Foundation; either version 2, or (at your option)
427
 
# any later version.
428
 
 
429
 
# This program is distributed in the hope that it will be useful,
430
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
431
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
432
 
# GNU General Public License for more details.
433
 
 
434
 
# You should have received a copy of the GNU General Public License
435
 
# along with this program; if not, write to the Free Software
436
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
437
 
# 02111-1307, USA.
438
 
 
439
 
AC_DEFUN([AM_PROG_INSTALL_SH],
440
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
441
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
442
 
AC_SUBST(install_sh)])
443
 
 
444
 
# AM_PROG_INSTALL_STRIP
445
 
 
446
 
# Copyright 2001 Free Software Foundation, Inc.
447
 
 
448
 
# This program is free software; you can redistribute it and/or modify
449
 
# it under the terms of the GNU General Public License as published by
450
 
# the Free Software Foundation; either version 2, or (at your option)
451
 
# any later version.
452
 
 
453
 
# This program is distributed in the hope that it will be useful,
454
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
455
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
456
 
# GNU General Public License for more details.
457
 
 
458
 
# You should have received a copy of the GNU General Public License
459
 
# along with this program; if not, write to the Free Software
460
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461
 
# 02111-1307, USA.
462
 
 
463
 
# One issue with vendor `install' (even GNU) is that you can't
464
 
# specify the program used to strip binaries.  This is especially
465
 
# annoying in cross-compiling environments, where the build's strip
466
 
# is unlikely to handle the host's binaries.
467
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
468
 
# always use install-sh in `make install-strip', and initialize
469
 
# STRIPPROG with the value of the STRIP variable (set by the user).
470
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
471
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
472
 
# Installed binaries are usually stripped using `strip' when the user
473
 
# run `make install-strip'.  However `strip' might not be the right
474
 
# tool to use in cross-compilation environments, therefore Automake
475
 
# will honor the `STRIP' environment variable to overrule this program.
476
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
477
 
if test "$cross_compiling" != no; then
478
 
  AC_CHECK_TOOL([STRIP], [strip], :)
479
 
fi
480
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
481
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
482
 
 
483
 
#                                                          -*- Autoconf -*-
484
 
# Copyright (C) 2003  Free Software Foundation, Inc.
485
 
 
486
 
# This program is free software; you can redistribute it and/or modify
487
 
# it under the terms of the GNU General Public License as published by
488
 
# the Free Software Foundation; either version 2, or (at your option)
489
 
# any later version.
490
 
 
491
 
# This program is distributed in the hope that it will be useful,
492
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
493
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
494
 
# GNU General Public License for more details.
495
 
 
496
 
# You should have received a copy of the GNU General Public License
497
 
# along with this program; if not, write to the Free Software
498
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
499
 
# 02111-1307, USA.
500
 
 
501
 
# serial 1
502
 
 
503
 
# Check whether the underlying file-system supports filenames
504
 
# with a leading dot.  For instance MS-DOS doesn't.
505
 
AC_DEFUN([AM_SET_LEADING_DOT],
506
 
[rm -rf .tst 2>/dev/null
507
 
mkdir .tst 2>/dev/null
508
 
if test -d .tst; then
509
 
  am__leading_dot=.
510
 
else
511
 
  am__leading_dot=_
512
 
fi
513
 
rmdir .tst 2>/dev/null
514
 
AC_SUBST([am__leading_dot])])
515
 
 
516
 
# serial 5                                              -*- Autoconf -*-
517
 
 
518
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
519
 
 
520
 
# This program is free software; you can redistribute it and/or modify
521
 
# it under the terms of the GNU General Public License as published by
522
 
# the Free Software Foundation; either version 2, or (at your option)
523
 
# any later version.
524
 
 
525
 
# This program is distributed in the hope that it will be useful,
526
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
527
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
528
 
# GNU General Public License for more details.
529
 
 
530
 
# You should have received a copy of the GNU General Public License
531
 
# along with this program; if not, write to the Free Software
532
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
533
 
# 02111-1307, USA.
534
 
 
535
 
 
536
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
537
 
# written in clear, in which case automake, when reading aclocal.m4,
538
 
# will think it sees a *use*, and therefore will trigger all it's
539
 
# C support machinery.  Also note that it means that autoscan, seeing
540
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
541
 
 
542
 
 
543
 
 
544
 
# _AM_DEPENDENCIES(NAME)
545
 
# ----------------------
546
 
# See how the compiler implements dependency checking.
547
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
548
 
# We try a few techniques and use that to set a single cache variable.
549
 
#
550
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
551
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
552
 
# dependency, and given that the user is not expected to run this macro,
553
 
# just rely on AC_PROG_CC.
554
 
AC_DEFUN([_AM_DEPENDENCIES],
555
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
556
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
557
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
558
 
AC_REQUIRE([AM_DEP_TRACK])dnl
559
 
 
560
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
561
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
562
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
563
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
564
 
                   [depcc="$$1"   am_compiler_list=])
565
 
 
566
 
AC_CACHE_CHECK([dependency style of $depcc],
567
 
               [am_cv_$1_dependencies_compiler_type],
568
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
569
 
  # We make a subdir and do the tests there.  Otherwise we can end up
570
 
  # making bogus files that we don't know about and never remove.  For
571
 
  # instance it was reported that on HP-UX the gcc test will end up
572
 
  # making a dummy file named `D' -- because `-MD' means `put the output
573
 
  # in D'.
574
 
  mkdir conftest.dir
575
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
576
 
  # using a relative directory.
577
 
  cp "$am_depcomp" conftest.dir
578
 
  cd conftest.dir
579
 
  # We will build objects and dependencies in a subdirectory because
580
 
  # it helps to detect inapplicable dependency modes.  For instance
581
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
582
 
  # side effect of compilation, but ICC will put the dependencies in
583
 
  # the current directory while Tru64 will put them in the object
584
 
  # directory.
585
 
  mkdir sub
586
 
 
587
 
  am_cv_$1_dependencies_compiler_type=none
588
 
  if test "$am_compiler_list" = ""; then
589
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
590
 
  fi
591
 
  for depmode in $am_compiler_list; do
592
 
    # Setup a source with many dependencies, because some compilers
593
 
    # like to wrap large dependency lists on column 80 (with \), and
594
 
    # we should not choose a depcomp mode which is confused by this.
595
 
    #
596
 
    # We need to recreate these files for each test, as the compiler may
597
 
    # overwrite some of them when testing with obscure command lines.
598
 
    # This happens at least with the AIX C compiler.
599
 
    : > sub/conftest.c
600
 
    for i in 1 2 3 4 5 6; do
601
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
602
 
      : > sub/conftst$i.h
603
 
    done
604
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
605
 
 
606
 
    case $depmode in
607
 
    nosideeffect)
608
 
      # after this tag, mechanisms are not by side-effect, so they'll
609
 
      # only be used when explicitly requested
610
 
      if test "x$enable_dependency_tracking" = xyes; then
611
 
        continue
612
 
      else
613
 
        break
614
 
      fi
615
 
      ;;
616
 
    none) break ;;
617
 
    esac
618
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
619
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
620
 
    # handle `-M -o', and we need to detect this.
621
 
    if depmode=$depmode \
622
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
623
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
624
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
625
 
         >/dev/null 2>conftest.err &&
626
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
627
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
628
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
629
 
      # icc doesn't choke on unknown options, it will just issue warnings
630
 
      # (even with -Werror).  So we grep stderr for any message
631
 
      # that says an option was ignored.
632
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
633
 
        am_cv_$1_dependencies_compiler_type=$depmode
634
 
        break
635
 
      fi
636
 
    fi
637
 
  done
638
 
 
639
 
  cd ..
640
 
  rm -rf conftest.dir
641
 
else
642
 
  am_cv_$1_dependencies_compiler_type=none
643
 
fi
644
 
])
645
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
646
 
AM_CONDITIONAL([am__fastdep$1], [
647
 
  test "x$enable_dependency_tracking" != xno \
648
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649
 
])
650
 
 
651
 
 
652
 
# AM_SET_DEPDIR
653
 
# -------------
654
 
# Choose a directory name for dependency files.
655
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
656
 
AC_DEFUN([AM_SET_DEPDIR],
657
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
658
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659
 
])
660
 
 
661
 
 
662
 
# AM_DEP_TRACK
663
 
# ------------
664
 
AC_DEFUN([AM_DEP_TRACK],
665
 
[AC_ARG_ENABLE(dependency-tracking,
666
 
[  --disable-dependency-tracking Speeds up one-time builds
667
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
668
 
if test "x$enable_dependency_tracking" != xno; then
669
 
  am_depcomp="$ac_aux_dir/depcomp"
670
 
  AMDEPBACKSLASH='\'
671
 
fi
672
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
673
 
AC_SUBST([AMDEPBACKSLASH])
674
 
])
675
 
 
676
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
677
 
 
678
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
679
 
 
680
 
# This program is free software; you can redistribute it and/or modify
681
 
# it under the terms of the GNU General Public License as published by
682
 
# the Free Software Foundation; either version 2, or (at your option)
683
 
# any later version.
684
 
 
685
 
# This program is distributed in the hope that it will be useful,
686
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
687
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
688
 
# GNU General Public License for more details.
689
 
 
690
 
# You should have received a copy of the GNU General Public License
691
 
# along with this program; if not, write to the Free Software
692
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
693
 
# 02111-1307, USA.
694
 
 
695
 
#serial 2
696
 
 
697
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
698
 
# ------------------------------
699
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
700
 
[for mf in $CONFIG_FILES; do
701
 
  # Strip MF so we end up with the name of the file.
702
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
703
 
  # Check whether this is an Automake generated Makefile or not.
704
 
  # We used to match only the files named `Makefile.in', but
705
 
  # some people rename them; so instead we look at the file content.
706
 
  # Grep'ing the first line is not enough: some people post-process
707
 
  # each Makefile.in and add a new line on top of each file to say so.
708
 
  # So let's grep whole file.
709
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
710
 
    dirpart=`AS_DIRNAME("$mf")`
711
 
  else
712
 
    continue
713
 
  fi
714
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
715
 
  # Extract the definition of DEP_FILES from the Makefile without
716
 
  # running `make'.
717
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
718
 
  test -z "$DEPDIR" && continue
719
 
  # When using ansi2knr, U may be empty or an underscore; expand it
720
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
721
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
722
 
  # We invoke sed twice because it is the simplest approach to
723
 
  # changing $(DEPDIR) to its actual value in the expansion.
724
 
  for file in `sed -n -e '
725
 
    /^DEP_FILES = .*\\\\$/ {
726
 
      s/^DEP_FILES = //
727
 
      :loop
728
 
        s/\\\\$//
729
 
        p
730
 
        n
731
 
        /\\\\$/ b loop
732
 
      p
733
 
    }
734
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
735
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
736
 
    # Make sure the directory exists.
737
 
    test -f "$dirpart/$file" && continue
738
 
    fdir=`AS_DIRNAME(["$file"])`
739
 
    AS_MKDIR_P([$dirpart/$fdir])
740
 
    # echo "creating $dirpart/$file"
741
 
    echo '# dummy' > "$dirpart/$file"
742
 
  done
743
 
done
744
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
745
 
 
746
 
 
747
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
748
 
# -----------------------------
749
 
# This macro should only be invoked once -- use via AC_REQUIRE.
750
 
#
751
 
# This code is only required when automatic dependency tracking
752
 
# is enabled.  FIXME.  This creates each `.P' file that we will
753
 
# need in order to bootstrap the dependency handling code.
754
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
755
 
[AC_CONFIG_COMMANDS([depfiles],
756
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
757
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
758
 
])
759
 
 
760
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
761
 
 
762
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
763
 
 
764
 
# This program is free software; you can redistribute it and/or modify
765
 
# it under the terms of the GNU General Public License as published by
766
 
# the Free Software Foundation; either version 2, or (at your option)
767
 
# any later version.
768
 
 
769
 
# This program is distributed in the hope that it will be useful,
770
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
771
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
772
 
# GNU General Public License for more details.
773
 
 
774
 
# You should have received a copy of the GNU General Public License
775
 
# along with this program; if not, write to the Free Software
776
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
777
 
# 02111-1307, USA.
778
 
 
779
 
# serial 2
780
 
 
781
 
# AM_MAKE_INCLUDE()
782
 
# -----------------
783
 
# Check to see how make treats includes.
784
 
AC_DEFUN([AM_MAKE_INCLUDE],
785
 
[am_make=${MAKE-make}
786
 
cat > confinc << 'END'
787
 
am__doit:
788
 
        @echo done
789
 
.PHONY: am__doit
790
 
END
791
 
# If we don't find an include directive, just comment out the code.
792
 
AC_MSG_CHECKING([for style of include used by $am_make])
793
 
am__include="#"
794
 
am__quote=
795
 
_am_result=none
796
 
# First try GNU make style include.
797
 
echo "include confinc" > confmf
798
 
# We grep out `Entering directory' and `Leaving directory'
799
 
# messages which can occur if `w' ends up in MAKEFLAGS.
800
 
# In particular we don't look at `^make:' because GNU make might
801
 
# be invoked under some other name (usually "gmake"), in which
802
 
# case it prints its new name instead of `make'.
803
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
804
 
   am__include=include
805
 
   am__quote=
806
 
   _am_result=GNU
807
 
fi
808
 
# Now try BSD make style include.
809
 
if test "$am__include" = "#"; then
810
 
   echo '.include "confinc"' > confmf
811
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
812
 
      am__include=.include
813
 
      am__quote="\""
814
 
      _am_result=BSD
815
 
   fi
816
 
fi
817
 
AC_SUBST([am__include])
818
 
AC_SUBST([am__quote])
819
 
AC_MSG_RESULT([$_am_result])
820
 
rm -f confinc confmf
821
 
])
822
 
 
823
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
824
 
 
825
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
826
 
 
827
 
# This program is free software; you can redistribute it and/or modify
828
 
# it under the terms of the GNU General Public License as published by
829
 
# the Free Software Foundation; either version 2, or (at your option)
830
 
# any later version.
831
 
 
832
 
# This program is distributed in the hope that it will be useful,
833
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
834
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
835
 
# GNU General Public License for more details.
836
 
 
837
 
# You should have received a copy of the GNU General Public License
838
 
# along with this program; if not, write to the Free Software
839
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
840
 
# 02111-1307, USA.
841
 
 
842
 
# serial 5
843
 
 
844
 
AC_PREREQ(2.52)
845
 
 
846
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
847
 
# -------------------------------------
848
 
# Define a conditional.
849
 
AC_DEFUN([AM_CONDITIONAL],
850
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
851
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
852
 
AC_SUBST([$1_TRUE])
853
 
AC_SUBST([$1_FALSE])
854
 
if $2; then
855
 
  $1_TRUE=
856
 
  $1_FALSE='#'
857
 
else
858
 
  $1_TRUE='#'
859
 
  $1_FALSE=
860
 
fi
861
 
AC_CONFIG_COMMANDS_PRE(
862
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
863
 
  AC_MSG_ERROR([conditional "$1" was never defined.
864
 
Usually this means the macro was only invoked conditionally.])
865
 
fi])])
866
 
 
867
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
868
 
 
869
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
870
 
 
871
 
# This program is free software; you can redistribute it and/or modify
872
 
# it under the terms of the GNU General Public License as published by
873
 
# the Free Software Foundation; either version 2, or (at your option)
874
 
# any later version.
875
 
 
876
 
# This program is distributed in the hope that it will be useful,
877
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
878
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
879
 
# GNU General Public License for more details.
880
 
 
881
 
# You should have received a copy of the GNU General Public License
882
 
# along with this program; if not, write to the Free Software
883
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
884
 
# 02111-1307, USA.
885
 
 
886
 
AC_PREREQ([2.52])
887
 
 
888
 
# serial 6
889
 
 
890
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
891
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
892
 
 
893
 
 
894
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
895
 
# serial 36 IT_PROG_INTLTOOL
896
 
AC_DEFUN([IT_PROG_INTLTOOL],
897
 
[AC_PREREQ([2.50])dnl
898
 
 
899
 
case "$am__api_version" in
900
 
    1.[01234])
901
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
902
 
    ;;
903
 
    *)
904
 
    ;;
905
 
esac
906
 
 
907
 
if test -n "$1"; then
908
 
    AC_MSG_CHECKING([for intltool >= $1])
909
 
 
910
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
911
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
912
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
913
 
    ]
914
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
915
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
916
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
917
 
fi
918
 
 
919
 
  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 $< [$]@' 
920
 
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 $< [$]@' 
921
 
     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 $< [$]@' 
922
 
     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 $< [$]@' 
923
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
924
 
     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 $< [$]@' 
925
 
   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 $< [$]@' 
926
 
    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 $< [$]@' 
927
 
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 $< [$]@' 
928
 
       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 $< [$]@' 
929
 
      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 $< [$]@' 
930
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
931
 
      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 $< [$]@' 
932
 
      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 $< [$]@' 
933
 
    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 $< [$]@' 
934
 
  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 $< [$]@' 
935
 
    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 $< [$]@' 
936
 
    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 $< [$]@'
937
 
   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 $< [$]@'
938
 
 
939
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
940
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
941
 
AC_SUBST(INTLTOOL_KEYS_RULE)
942
 
AC_SUBST(INTLTOOL_PROP_RULE)
943
 
AC_SUBST(INTLTOOL_OAF_RULE)
944
 
AC_SUBST(INTLTOOL_PONG_RULE)
945
 
AC_SUBST(INTLTOOL_SERVER_RULE)
946
 
AC_SUBST(INTLTOOL_SHEET_RULE)
947
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
948
 
AC_SUBST(INTLTOOL_UI_RULE)
949
 
AC_SUBST(INTLTOOL_XAM_RULE)
950
 
AC_SUBST(INTLTOOL_KBD_RULE)
951
 
AC_SUBST(INTLTOOL_XML_RULE)
952
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
953
 
AC_SUBST(INTLTOOL_CAVES_RULE)
954
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
955
 
AC_SUBST(INTLTOOL_THEME_RULE)
956
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
957
 
AC_SUBST(INTLTOOL_POLICY_RULE)
958
 
 
959
 
# Check the gettext tools to make sure they are GNU
960
 
AC_PATH_PROG(XGETTEXT, xgettext)
961
 
AC_PATH_PROG(MSGMERGE, msgmerge)
962
 
AC_PATH_PROG(MSGFMT, msgfmt)
963
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
964
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
965
 
fi
966
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
967
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
968
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
969
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
970
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
971
 
fi
972
 
 
973
 
# Use the tools built into the package, not the ones that are installed.
974
 
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
975
 
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
976
 
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
977
 
 
978
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
979
 
if test -z "$INTLTOOL_PERL"; then
980
 
   AC_MSG_ERROR([perl not found; required for intltool])
981
 
fi
982
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
983
 
   AC_MSG_ERROR([perl 5.x required for intltool])
984
 
fi
985
 
if test "x$2" != "xno-xml"; then
986
 
   AC_MSG_CHECKING([for XML::Parser])
987
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
988
 
       AC_MSG_RESULT([ok])
989
 
   else
990
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
991
 
   fi
992
 
fi
993
 
 
994
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
995
 
AC_SUBST(ALL_LINGUAS)
996
 
 
997
 
# Set DATADIRNAME correctly if it is not set yet
998
 
# (copied from glib-gettext.m4)
999
 
if test -z "$DATADIRNAME"; then
1000
 
  AC_LINK_IFELSE(
1001
 
    [AC_LANG_PROGRAM([[]],
1002
 
                     [[extern int _nl_msg_cat_cntr;
1003
 
                       return _nl_msg_cat_cntr]])],
1004
 
    [DATADIRNAME=share],
1005
 
    [case $host in
1006
 
    *-*-solaris*)
1007
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
1008
 
    dnl GNU format message catalog is always supported,
1009
 
    dnl since both are added to the libc all together.
1010
 
    dnl Hence, we'd like to go with DATADIRNAME=share
1011
 
    dnl in this case.
1012
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
1013
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
1014
 
    ;;
1015
 
    *)
1016
 
    [DATADIRNAME=lib]
1017
 
    ;;
1018
 
    esac])
1019
 
fi
1020
 
AC_SUBST(DATADIRNAME)
1021
 
 
1022
 
IT_PO_SUBDIR([po])
1023
 
 
1024
 
dnl The following is very similar to
1025
 
dnl
1026
 
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
1027
 
dnl
1028
 
dnl with the following slight differences:
1029
 
dnl  - the *.in files are in ac_aux_dir,
1030
 
dnl  - if the file haven't changed upon reconfigure, it's not touched,
1031
 
dnl  - the evaluation of the third parameter enables a hack which computes
1032
 
dnl    the actual value of $libdir,
1033
 
dnl  - the user sees "executing intltool commands", instead of
1034
 
dnl    "creating intltool-extract" and such.
1035
 
dnl
1036
 
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
1037
 
dnl a reason for it.
1038
 
 
1039
 
AC_CONFIG_COMMANDS([intltool], [
1040
 
 
1041
 
for file in intltool-extract intltool-merge intltool-update; do
1042
 
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
1043
 
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
1044
 
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
1045
 
        < ${ac_aux_dir}/${file}.in > ${file}.out
1046
 
  if cmp -s ${file} ${file}.out 2>/dev/null; then
1047
 
    rm -f ${file}.out
1048
 
  else
1049
 
    mv -f ${file}.out ${file}
1050
 
  fi
1051
 
  chmod ugo+x ${file}
1052
 
  chmod u+w ${file}
1053
 
done
1054
 
 
1055
 
],
1056
 
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
1057
 
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
1058
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
1059
 
 
1060
 
])
1061
 
 
1062
 
 
1063
 
# IT_PO_SUBDIR(DIRNAME)
1064
 
# ---------------------
1065
 
# All po subdirs have to be declared with this macro; the subdir "po" is
1066
 
# declared by IT_PROG_INTLTOOL.
1067
 
#
1068
 
AC_DEFUN([IT_PO_SUBDIR],
1069
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1070
 
dnl
1071
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
1072
 
dnl of config.status.
1073
 
AC_CONFIG_COMMANDS_PRE([
1074
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
1075
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1076
 
    >"$1/stamp-it.tmp"
1077
 
    [sed '/^#/d
1078
 
         s/^[[].*] *//
1079
 
         /^[    ]*$/d
1080
 
        '"s|^|  $ac_top_srcdir/|" \
1081
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1082
 
    ]
1083
 
    if test ! -f "$1/Makefile"; then
1084
 
      AC_MSG_ERROR([$1/Makefile is not ready.])
1085
 
    fi
1086
 
    mv "$1/Makefile" "$1/Makefile.tmp"
1087
 
    [sed '/^POTFILES =/,/[^\\]$/ {
1088
 
                /^POTFILES =/!d
1089
 
                r $1/POTFILES
1090
 
          }
1091
 
         ' "$1/Makefile.tmp" >"$1/Makefile"]
1092
 
    rm -f "$1/Makefile.tmp"
1093
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
1094
 
  ])
1095
 
])dnl
1096
 
])
1097
 
 
1098
 
 
1099
 
# deprecated macros
1100
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1101
 
# A hint is needed for aclocal from Automake <= 1.9.4:
1102
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1103
 
 
1104
 
 
1105
 
# serial 2
1106
 
 
1107
 
# AM_PROG_CC_C_O
1108
 
# --------------
1109
 
# Like AC_PROG_CC_C_O, but changed for automake.
1110
 
 
1111
 
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
1112
 
 
1113
 
# This program is free software; you can redistribute it and/or modify
1114
 
# it under the terms of the GNU General Public License as published by
1115
 
# the Free Software Foundation; either version 2, or (at your option)
1116
 
# any later version.
1117
 
 
1118
 
# This program is distributed in the hope that it will be useful,
1119
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1120
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1121
 
# GNU General Public License for more details.
1122
 
 
1123
 
# You should have received a copy of the GNU General Public License
1124
 
# along with this program; if not, write to the Free Software
1125
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1126
 
# 02111-1307, USA.
1127
 
 
1128
 
AC_DEFUN([AM_PROG_CC_C_O],
1129
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1130
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1131
 
# FIXME: we rely on the cache variable name because
1132
 
# there is no other way.
1133
 
set dummy $CC
1134
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1135
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
1136
 
   # Losing compiler, so override with the script.
1137
 
   # FIXME: It is wrong to rewrite CC.
1138
 
   # But if we don't then we get into trouble of one sort or another.
1139
 
   # A longer-term fix would be to have automake use am__CC in this case,
1140
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1141
 
   CC="$am_aux_dir/compile $CC"
1142
 
fi
1143
 
])
1144
 
 
1145
 
 
1146
 
# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
1147
 
 
1148
 
# This program is free software; you can redistribute it and/or modify
1149
 
# it under the terms of the GNU General Public License as published by
1150
 
# the Free Software Foundation; either version 2, or (at your option)
1151
 
# any later version.
1152
 
 
1153
 
# This program is distributed in the hope that it will be useful,
1154
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1155
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1156
 
# GNU General Public License for more details.
1157
 
 
1158
 
# You should have received a copy of the GNU General Public License
1159
 
# along with this program; if not, write to the Free Software
1160
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1161
 
# 02111-1307, USA.
1162
 
 
1163
 
# serial 2
1164
 
 
1165
 
# @defmac AC_PROG_CC_STDC
1166
 
# @maindex PROG_CC_STDC
1167
 
# @ovindex CC
1168
 
# If the C compiler in not in ANSI C mode by default, try to add an option
1169
 
# to output variable @code{CC} to make it so.  This macro tries various
1170
 
# options that select ANSI C on some system or another.  It considers the
1171
 
# compiler to be in ANSI C mode if it handles function prototypes correctly.
1172
 
#
1173
 
# If you use this macro, you should check after calling it whether the C
1174
 
# compiler has been set to accept ANSI C; if not, the shell variable
1175
 
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
1176
 
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1177
 
# program @code{ansi2knr}, which comes with Ghostscript.
1178
 
# @end defmac
1179
 
 
1180
 
AC_DEFUN([AM_PROG_CC_STDC],
1181
 
[AC_REQUIRE([AC_PROG_CC])
1182
 
AC_BEFORE([$0], [AC_C_INLINE])
1183
 
AC_BEFORE([$0], [AC_C_CONST])
1184
 
dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
1185
 
dnl a magic option to avoid problems with ANSI preprocessor commands
1186
 
dnl like #elif.
1187
 
dnl FIXME: can't do this because then AC_AIX won't work due to a
1188
 
dnl circular dependency.
1189
 
dnl AC_BEFORE([$0], [AC_PROG_CPP])
1190
 
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1191
 
AC_CACHE_VAL(am_cv_prog_cc_stdc,
1192
 
[am_cv_prog_cc_stdc=no
1193
 
ac_save_CC="$CC"
1194
 
# Don't try gcc -ansi; that turns off useful extensions and
1195
 
# breaks some systems' header files.
1196
 
# AIX                   -qlanglvl=ansi
1197
 
# Ultrix and OSF/1      -std1
1198
 
# HP-UX 10.20 and later -Ae
1199
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
1200
 
# SVR4                  -Xc -D__EXTENSIONS__
1201
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1202
 
do
1203
 
  CC="$ac_save_CC $ac_arg"
1204
 
  AC_TRY_COMPILE(
1205
 
[#include <stdarg.h>
1206
 
#include <stdio.h>
1207
 
#include <sys/types.h>
1208
 
#include <sys/stat.h>
1209
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1210
 
struct buf { int x; };
1211
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1212
 
static char *e (p, i)
1213
 
     char **p;
1214
 
     int i;
1215
 
{
1216
 
  return p[i];
1217
 
}
1218
 
static char *f (char * (*g) (char **, int), char **p, ...)
1219
 
{
1220
 
  char *s;
1221
 
  va_list v;
1222
 
  va_start (v,p);
1223
 
  s = g (p, va_arg (v,int));
1224
 
  va_end (v);
1225
 
  return s;
1226
 
}
1227
 
int test (int i, double x);
1228
 
struct s1 {int (*f) (int a);};
1229
 
struct s2 {int (*f) (double a);};
1230
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1231
 
int argc;
1232
 
char **argv;
1233
 
], [
1234
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1235
 
],
1236
 
[am_cv_prog_cc_stdc="$ac_arg"; break])
1237
 
done
1238
 
CC="$ac_save_CC"
1239
 
])
1240
 
if test -z "$am_cv_prog_cc_stdc"; then
1241
 
  AC_MSG_RESULT([none needed])
1242
 
else
1243
 
  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1244
 
fi
1245
 
case "x$am_cv_prog_cc_stdc" in
1246
 
  x|xno) ;;
1247
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
1248
 
esac
1249
 
])
1250
 
 
1251
 
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1252
 
 
1253
 
# Figure out how to run the assembler.             -*- Autoconf -*-
1254
 
 
1255
 
# serial 2
1256
 
 
1257
 
# Copyright 2001 Free Software Foundation, Inc.
1258
 
 
1259
 
# This program is free software; you can redistribute it and/or modify
1260
 
# it under the terms of the GNU General Public License as published by
1261
 
# the Free Software Foundation; either version 2, or (at your option)
1262
 
# any later version.
1263
 
 
1264
 
# This program is distributed in the hope that it will be useful,
1265
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1266
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1267
 
# GNU General Public License for more details.
1268
 
 
1269
 
# You should have received a copy of the GNU General Public License
1270
 
# along with this program; if not, write to the Free Software
1271
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1272
 
# 02111-1307, USA.
1273
 
 
1274
 
# AM_PROG_AS
1275
 
# ----------
1276
 
AC_DEFUN([AM_PROG_AS],
1277
 
[# By default we simply use the C compiler to build assembly code.
1278
 
AC_REQUIRE([AC_PROG_CC])
1279
 
: ${CCAS='$(CC)'}
1280
 
# Set ASFLAGS if not already set.
1281
 
: ${CCASFLAGS='$(CFLAGS)'}
1282
 
AC_SUBST(CCAS)
1283
 
AC_SUBST(CCASFLAGS)])
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
1284
18
 
1285
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1286
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1715
449
fi])
1716
450
 
1717
451
 
 
452
 
 
453
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
454
# serial 36 IT_PROG_INTLTOOL
 
455
AC_DEFUN([IT_PROG_INTLTOOL],
 
456
[AC_PREREQ([2.50])dnl
 
457
 
 
458
case "$am__api_version" in
 
459
    1.[01234])
 
460
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
461
    ;;
 
462
    *)
 
463
    ;;
 
464
esac
 
465
 
 
466
if test -n "$1"; then
 
467
    AC_MSG_CHECKING([for intltool >= $1])
 
468
 
 
469
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
470
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
471
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
 
472
    ]
 
473
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
474
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
475
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
476
fi
 
477
 
 
478
  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 $< [$]@' 
 
479
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 $< [$]@' 
 
480
     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 $< [$]@' 
 
481
     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 $< [$]@' 
 
482
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
483
     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 $< [$]@' 
 
484
   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 $< [$]@' 
 
485
    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 $< [$]@' 
 
486
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 $< [$]@' 
 
487
       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 $< [$]@' 
 
488
      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 $< [$]@' 
 
489
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
490
      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 $< [$]@' 
 
491
      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 $< [$]@' 
 
492
    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 $< [$]@' 
 
493
  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 $< [$]@' 
 
494
    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 $< [$]@' 
 
495
    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 $< [$]@'
 
496
   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 $< [$]@'
 
497
 
 
498
AC_SUBST(INTLTOOL_DESKTOP_RULE)
 
499
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
 
500
AC_SUBST(INTLTOOL_KEYS_RULE)
 
501
AC_SUBST(INTLTOOL_PROP_RULE)
 
502
AC_SUBST(INTLTOOL_OAF_RULE)
 
503
AC_SUBST(INTLTOOL_PONG_RULE)
 
504
AC_SUBST(INTLTOOL_SERVER_RULE)
 
505
AC_SUBST(INTLTOOL_SHEET_RULE)
 
506
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
507
AC_SUBST(INTLTOOL_UI_RULE)
 
508
AC_SUBST(INTLTOOL_XAM_RULE)
 
509
AC_SUBST(INTLTOOL_KBD_RULE)
 
510
AC_SUBST(INTLTOOL_XML_RULE)
 
511
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
512
AC_SUBST(INTLTOOL_CAVES_RULE)
 
513
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
 
514
AC_SUBST(INTLTOOL_THEME_RULE)
 
515
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
516
AC_SUBST(INTLTOOL_POLICY_RULE)
 
517
 
 
518
# Check the gettext tools to make sure they are GNU
 
519
AC_PATH_PROG(XGETTEXT, xgettext)
 
520
AC_PATH_PROG(MSGMERGE, msgmerge)
 
521
AC_PATH_PROG(MSGFMT, msgfmt)
 
522
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
523
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
524
fi
 
525
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
526
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
527
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
528
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
529
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
530
fi
 
531
 
 
532
# Use the tools built into the package, not the ones that are installed.
 
533
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
 
534
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
 
535
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
 
536
 
 
537
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
538
if test -z "$INTLTOOL_PERL"; then
 
539
   AC_MSG_ERROR([perl not found; required for intltool])
 
540
fi
 
541
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
542
   AC_MSG_ERROR([perl 5.x required for intltool])
 
543
fi
 
544
if test "x$2" != "xno-xml"; then
 
545
   AC_MSG_CHECKING([for XML::Parser])
 
546
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
547
       AC_MSG_RESULT([ok])
 
548
   else
 
549
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
550
   fi
 
551
fi
 
552
 
 
553
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
554
AC_SUBST(ALL_LINGUAS)
 
555
 
 
556
# Set DATADIRNAME correctly if it is not set yet
 
557
# (copied from glib-gettext.m4)
 
558
if test -z "$DATADIRNAME"; then
 
559
  AC_LINK_IFELSE(
 
560
    [AC_LANG_PROGRAM([[]],
 
561
                     [[extern int _nl_msg_cat_cntr;
 
562
                       return _nl_msg_cat_cntr]])],
 
563
    [DATADIRNAME=share],
 
564
    [case $host in
 
565
    *-*-solaris*)
 
566
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
567
    dnl GNU format message catalog is always supported,
 
568
    dnl since both are added to the libc all together.
 
569
    dnl Hence, we'd like to go with DATADIRNAME=share
 
570
    dnl in this case.
 
571
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
572
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
573
    ;;
 
574
    *)
 
575
    [DATADIRNAME=lib]
 
576
    ;;
 
577
    esac])
 
578
fi
 
579
AC_SUBST(DATADIRNAME)
 
580
 
 
581
IT_PO_SUBDIR([po])
 
582
 
 
583
dnl The following is very similar to
 
584
dnl
 
585
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
 
586
dnl
 
587
dnl with the following slight differences:
 
588
dnl  - the *.in files are in ac_aux_dir,
 
589
dnl  - if the file haven't changed upon reconfigure, it's not touched,
 
590
dnl  - the evaluation of the third parameter enables a hack which computes
 
591
dnl    the actual value of $libdir,
 
592
dnl  - the user sees "executing intltool commands", instead of
 
593
dnl    "creating intltool-extract" and such.
 
594
dnl
 
595
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
 
596
dnl a reason for it.
 
597
 
 
598
AC_CONFIG_COMMANDS([intltool], [
 
599
 
 
600
for file in intltool-extract intltool-merge intltool-update; do
 
601
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
602
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
603
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
604
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
605
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
606
    rm -f ${file}.out
 
607
  else
 
608
    mv -f ${file}.out ${file}
 
609
  fi
 
610
  chmod ugo+x ${file}
 
611
  chmod u+w ${file}
 
612
done
 
613
 
 
614
],
 
615
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
616
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
 
617
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
 
618
 
 
619
])
 
620
 
 
621
 
 
622
# IT_PO_SUBDIR(DIRNAME)
 
623
# ---------------------
 
624
# All po subdirs have to be declared with this macro; the subdir "po" is
 
625
# declared by IT_PROG_INTLTOOL.
 
626
#
 
627
AC_DEFUN([IT_PO_SUBDIR],
 
628
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
629
dnl
 
630
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
631
dnl of config.status.
 
632
AC_CONFIG_COMMANDS_PRE([
 
633
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
634
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
635
    >"$1/stamp-it.tmp"
 
636
    [sed '/^#/d
 
637
         s/^[[].*] *//
 
638
         /^[    ]*$/d
 
639
        '"s|^|  $ac_top_srcdir/|" \
 
640
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
641
    ]
 
642
    if test ! -f "$1/Makefile"; then
 
643
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
644
    fi
 
645
    mv "$1/Makefile" "$1/Makefile.tmp"
 
646
    [sed '/^POTFILES =/,/[^\\]$/ {
 
647
                /^POTFILES =/!d
 
648
                r $1/POTFILES
 
649
          }
 
650
         ' "$1/Makefile.tmp" >"$1/Makefile"]
 
651
    rm -f "$1/Makefile.tmp"
 
652
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
653
  ])
 
654
])dnl
 
655
])
 
656
 
 
657
 
 
658
# deprecated macros
 
659
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
660
# A hint is needed for aclocal from Automake <= 1.9.4:
 
661
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
662
 
 
663
 
1718
664
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
1719
665
1720
666
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1873
819
fi[]dnl
1874
820
])# PKG_CHECK_MODULES
1875
821
 
 
822
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
823
#
 
824
# This file is free software; the Free Software Foundation
 
825
# gives unlimited permission to copy and/or distribute it,
 
826
# with or without modifications, as long as this notice is preserved.
 
827
 
 
828
# AM_AUTOMAKE_VERSION(VERSION)
 
829
# ----------------------------
 
830
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
831
# generated from the m4 files accompanying Automake X.Y.
 
832
# (This private macro should not be called outside this file.)
 
833
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
834
[am__api_version='1.10'
 
835
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
836
dnl require some minimum version.  Point them to the right macro.
 
837
m4_if([$1], [1.10], [],
 
838
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
839
])
 
840
 
 
841
# _AM_AUTOCONF_VERSION(VERSION)
 
842
# -----------------------------
 
843
# aclocal traces this macro to find the Autoconf version.
 
844
# This is a private macro too.  Using m4_define simplifies
 
845
# the logic in aclocal, which can simply ignore this definition.
 
846
m4_define([_AM_AUTOCONF_VERSION], [])
 
847
 
 
848
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
849
# -------------------------------
 
850
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
851
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
852
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
853
[AM_AUTOMAKE_VERSION([1.10])dnl
 
854
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
855
 
 
856
# Figure out how to run the assembler.                      -*- Autoconf -*-
 
857
 
 
858
# Copyright (C) 2001, 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
859
#
 
860
# This file is free software; the Free Software Foundation
 
861
# gives unlimited permission to copy and/or distribute it,
 
862
# with or without modifications, as long as this notice is preserved.
 
863
 
 
864
# serial 5
 
865
 
 
866
# AM_PROG_AS
 
867
# ----------
 
868
AC_DEFUN([AM_PROG_AS],
 
869
[# By default we simply use the C compiler to build assembly code.
 
870
AC_REQUIRE([AC_PROG_CC])
 
871
test "${CCAS+set}" = set || CCAS=$CC
 
872
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
873
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
 
874
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
 
875
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
 
876
])
 
877
 
 
878
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
879
 
 
880
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
881
#
 
882
# This file is free software; the Free Software Foundation
 
883
# gives unlimited permission to copy and/or distribute it,
 
884
# with or without modifications, as long as this notice is preserved.
 
885
 
 
886
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
887
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
888
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
889
#
 
890
# Of course, Automake must honor this variable whenever it calls a
 
891
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
892
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
893
# depending on how configure is run.  This is pretty annoying, since
 
894
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
895
# source directory, any form will work fine, but in subdirectories a
 
896
# relative path needs to be adjusted first.
 
897
#
 
898
# $ac_aux_dir/missing
 
899
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
900
# $top_srcdir/$ac_aux_dir/missing
 
901
#    fails if $ac_aux_dir is absolute,
 
902
#    fails when called from a subdirectory in a VPATH build with
 
903
#          a relative $ac_aux_dir
 
904
#
 
905
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
906
# are both prefixed by $srcdir.  In an in-source build this is usually
 
907
# harmless because $srcdir is `.', but things will broke when you
 
908
# start a VPATH build or use an absolute $srcdir.
 
909
#
 
910
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
911
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
912
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
913
# and then we would define $MISSING as
 
914
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
915
# This will work as long as MISSING is not called from configure, because
 
916
# unfortunately $(top_srcdir) has no meaning in configure.
 
917
# However there are other variables, like CC, which are often used in
 
918
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
919
#
 
920
# Another solution, used here, is to always expand $ac_aux_dir to an
 
921
# absolute PATH.  The drawback is that using absolute paths prevent a
 
922
# configured tree to be moved without reconfiguration.
 
923
 
 
924
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
925
[dnl Rely on autoconf to set up CDPATH properly.
 
926
AC_PREREQ([2.50])dnl
 
927
# expand $ac_aux_dir to an absolute path
 
928
am_aux_dir=`cd $ac_aux_dir && pwd`
 
929
])
 
930
 
 
931
 
 
932
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
 
933
# Free Software Foundation, Inc.
 
934
#
 
935
# This file is free software; the Free Software Foundation
 
936
# gives unlimited permission to copy and/or distribute it,
 
937
# with or without modifications, as long as this notice is preserved.
 
938
 
 
939
# serial 4
 
940
 
 
941
# This was merged into AC_PROG_CC in Autoconf.
 
942
 
 
943
AU_DEFUN([AM_PROG_CC_STDC],
 
944
[AC_PROG_CC
 
945
AC_DIAGNOSE([obsolete], [$0:
 
946
        your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
 
947
        `ac_cv_prog_cc_stdc'.  Remove this warning and the assignment when
 
948
        you adjust the code.  You can also remove the above call to
 
949
        AC_PROG_CC if you already called it elsewhere.])
 
950
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
951
])
 
952
AU_DEFUN([fp_PROG_CC_STDC])
 
953
 
 
954
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
955
 
 
956
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
957
# Free Software Foundation, Inc.
 
958
#
 
959
# This file is free software; the Free Software Foundation
 
960
# gives unlimited permission to copy and/or distribute it,
 
961
# with or without modifications, as long as this notice is preserved.
 
962
 
 
963
# serial 8
 
964
 
 
965
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
966
# -------------------------------------
 
967
# Define a conditional.
 
968
AC_DEFUN([AM_CONDITIONAL],
 
969
[AC_PREREQ(2.52)dnl
 
970
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
971
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
972
AC_SUBST([$1_TRUE])dnl
 
973
AC_SUBST([$1_FALSE])dnl
 
974
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
975
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
976
if $2; then
 
977
  $1_TRUE=
 
978
  $1_FALSE='#'
 
979
else
 
980
  $1_TRUE='#'
 
981
  $1_FALSE=
 
982
fi
 
983
AC_CONFIG_COMMANDS_PRE(
 
984
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
985
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
986
Usually this means the macro was only invoked conditionally.]])
 
987
fi])])
 
988
 
 
989
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
990
# Free Software Foundation, Inc.
 
991
#
 
992
# This file is free software; the Free Software Foundation
 
993
# gives unlimited permission to copy and/or distribute it,
 
994
# with or without modifications, as long as this notice is preserved.
 
995
 
 
996
# serial 9
 
997
 
 
998
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
999
# written in clear, in which case automake, when reading aclocal.m4,
 
1000
# will think it sees a *use*, and therefore will trigger all it's
 
1001
# C support machinery.  Also note that it means that autoscan, seeing
 
1002
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
1003
 
 
1004
 
 
1005
# _AM_DEPENDENCIES(NAME)
 
1006
# ----------------------
 
1007
# See how the compiler implements dependency checking.
 
1008
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
1009
# We try a few techniques and use that to set a single cache variable.
 
1010
#
 
1011
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
1012
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
1013
# dependency, and given that the user is not expected to run this macro,
 
1014
# just rely on AC_PROG_CC.
 
1015
AC_DEFUN([_AM_DEPENDENCIES],
 
1016
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
1017
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
1018
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
1019
AC_REQUIRE([AM_DEP_TRACK])dnl
 
1020
 
 
1021
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
1022
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
1023
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
1024
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
1025
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
1026
                   [depcc="$$1"   am_compiler_list=])
 
1027
 
 
1028
AC_CACHE_CHECK([dependency style of $depcc],
 
1029
               [am_cv_$1_dependencies_compiler_type],
 
1030
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
1031
  # We make a subdir and do the tests there.  Otherwise we can end up
 
1032
  # making bogus files that we don't know about and never remove.  For
 
1033
  # instance it was reported that on HP-UX the gcc test will end up
 
1034
  # making a dummy file named `D' -- because `-MD' means `put the output
 
1035
  # in D'.
 
1036
  mkdir conftest.dir
 
1037
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
1038
  # using a relative directory.
 
1039
  cp "$am_depcomp" conftest.dir
 
1040
  cd conftest.dir
 
1041
  # We will build objects and dependencies in a subdirectory because
 
1042
  # it helps to detect inapplicable dependency modes.  For instance
 
1043
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
1044
  # side effect of compilation, but ICC will put the dependencies in
 
1045
  # the current directory while Tru64 will put them in the object
 
1046
  # directory.
 
1047
  mkdir sub
 
1048
 
 
1049
  am_cv_$1_dependencies_compiler_type=none
 
1050
  if test "$am_compiler_list" = ""; then
 
1051
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
1052
  fi
 
1053
  for depmode in $am_compiler_list; do
 
1054
    # Setup a source with many dependencies, because some compilers
 
1055
    # like to wrap large dependency lists on column 80 (with \), and
 
1056
    # we should not choose a depcomp mode which is confused by this.
 
1057
    #
 
1058
    # We need to recreate these files for each test, as the compiler may
 
1059
    # overwrite some of them when testing with obscure command lines.
 
1060
    # This happens at least with the AIX C compiler.
 
1061
    : > sub/conftest.c
 
1062
    for i in 1 2 3 4 5 6; do
 
1063
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
1064
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
1065
      # Solaris 8's {/usr,}/bin/sh.
 
1066
      touch sub/conftst$i.h
 
1067
    done
 
1068
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
1069
 
 
1070
    case $depmode in
 
1071
    nosideeffect)
 
1072
      # after this tag, mechanisms are not by side-effect, so they'll
 
1073
      # only be used when explicitly requested
 
1074
      if test "x$enable_dependency_tracking" = xyes; then
 
1075
        continue
 
1076
      else
 
1077
        break
 
1078
      fi
 
1079
      ;;
 
1080
    none) break ;;
 
1081
    esac
 
1082
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
1083
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
1084
    # handle `-M -o', and we need to detect this.
 
1085
    if depmode=$depmode \
 
1086
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
1087
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
1088
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
1089
         >/dev/null 2>conftest.err &&
 
1090
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
1091
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
1092
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
1093
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
1094
      # icc doesn't choke on unknown options, it will just issue warnings
 
1095
      # or remarks (even with -Werror).  So we grep stderr for any message
 
1096
      # that says an option was ignored or not supported.
 
1097
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
1098
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
1099
      # The diagnosis changed in icc 8.0:
 
1100
      #   icc: Command line remark: option '-MP' not supported
 
1101
      if (grep 'ignoring option' conftest.err ||
 
1102
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
1103
        am_cv_$1_dependencies_compiler_type=$depmode
 
1104
        break
 
1105
      fi
 
1106
    fi
 
1107
  done
 
1108
 
 
1109
  cd ..
 
1110
  rm -rf conftest.dir
 
1111
else
 
1112
  am_cv_$1_dependencies_compiler_type=none
 
1113
fi
 
1114
])
 
1115
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
1116
AM_CONDITIONAL([am__fastdep$1], [
 
1117
  test "x$enable_dependency_tracking" != xno \
 
1118
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
1119
])
 
1120
 
 
1121
 
 
1122
# AM_SET_DEPDIR
 
1123
# -------------
 
1124
# Choose a directory name for dependency files.
 
1125
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
1126
AC_DEFUN([AM_SET_DEPDIR],
 
1127
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1128
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
1129
])
 
1130
 
 
1131
 
 
1132
# AM_DEP_TRACK
 
1133
# ------------
 
1134
AC_DEFUN([AM_DEP_TRACK],
 
1135
[AC_ARG_ENABLE(dependency-tracking,
 
1136
[  --disable-dependency-tracking  speeds up one-time build
 
1137
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
1138
if test "x$enable_dependency_tracking" != xno; then
 
1139
  am_depcomp="$ac_aux_dir/depcomp"
 
1140
  AMDEPBACKSLASH='\'
 
1141
fi
 
1142
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
1143
AC_SUBST([AMDEPBACKSLASH])dnl
 
1144
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
1145
])
 
1146
 
 
1147
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
1148
 
 
1149
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1150
# Free Software Foundation, Inc.
 
1151
#
 
1152
# This file is free software; the Free Software Foundation
 
1153
# gives unlimited permission to copy and/or distribute it,
 
1154
# with or without modifications, as long as this notice is preserved.
 
1155
 
 
1156
#serial 3
 
1157
 
 
1158
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1159
# ------------------------------
 
1160
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1161
[for mf in $CONFIG_FILES; do
 
1162
  # Strip MF so we end up with the name of the file.
 
1163
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
1164
  # Check whether this is an Automake generated Makefile or not.
 
1165
  # We used to match only the files named `Makefile.in', but
 
1166
  # some people rename them; so instead we look at the file content.
 
1167
  # Grep'ing the first line is not enough: some people post-process
 
1168
  # each Makefile.in and add a new line on top of each file to say so.
 
1169
  # Grep'ing the whole file is not good either: AIX grep has a line
 
1170
  # limit of 2048, but all sed's we know have understand at least 4000.
 
1171
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
1172
    dirpart=`AS_DIRNAME("$mf")`
 
1173
  else
 
1174
    continue
 
1175
  fi
 
1176
  # Extract the definition of DEPDIR, am__include, and am__quote
 
1177
  # from the Makefile without running `make'.
 
1178
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
1179
  test -z "$DEPDIR" && continue
 
1180
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
1181
  test -z "am__include" && continue
 
1182
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
1183
  # When using ansi2knr, U may be empty or an underscore; expand it
 
1184
  U=`sed -n 's/^U = //p' < "$mf"`
 
1185
  # Find all dependency output files, they are included files with
 
1186
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
1187
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
1188
  # expansion.
 
1189
  for file in `sed -n "
 
1190
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
1191
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1192
    # Make sure the directory exists.
 
1193
    test -f "$dirpart/$file" && continue
 
1194
    fdir=`AS_DIRNAME(["$file"])`
 
1195
    AS_MKDIR_P([$dirpart/$fdir])
 
1196
    # echo "creating $dirpart/$file"
 
1197
    echo '# dummy' > "$dirpart/$file"
 
1198
  done
 
1199
done
 
1200
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1201
 
 
1202
 
 
1203
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
1204
# -----------------------------
 
1205
# This macro should only be invoked once -- use via AC_REQUIRE.
 
1206
#
 
1207
# This code is only required when automatic dependency tracking
 
1208
# is enabled.  FIXME.  This creates each `.P' file that we will
 
1209
# need in order to bootstrap the dependency handling code.
 
1210
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1211
[AC_CONFIG_COMMANDS([depfiles],
 
1212
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1213
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
1214
])
 
1215
 
 
1216
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1217
# Free Software Foundation, Inc.
 
1218
#
 
1219
# This file is free software; the Free Software Foundation
 
1220
# gives unlimited permission to copy and/or distribute it,
 
1221
# with or without modifications, as long as this notice is preserved.
 
1222
 
 
1223
# serial 8
 
1224
 
 
1225
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
1226
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
1227
 
 
1228
# Do all the work for Automake.                             -*- Autoconf -*-
 
1229
 
 
1230
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1231
# 2005, 2006 Free Software Foundation, Inc.
 
1232
#
 
1233
# This file is free software; the Free Software Foundation
 
1234
# gives unlimited permission to copy and/or distribute it,
 
1235
# with or without modifications, as long as this notice is preserved.
 
1236
 
 
1237
# serial 12
 
1238
 
 
1239
# This macro actually does too much.  Some checks are only needed if
 
1240
# your package does certain things.  But this isn't really a big deal.
 
1241
 
 
1242
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
1243
# AM_INIT_AUTOMAKE([OPTIONS])
 
1244
# -----------------------------------------------
 
1245
# The call with PACKAGE and VERSION arguments is the old style
 
1246
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
1247
# and VERSION should now be passed to AC_INIT and removed from
 
1248
# the call to AM_INIT_AUTOMAKE.
 
1249
# We support both call styles for the transition.  After
 
1250
# the next Automake release, Autoconf can make the AC_INIT
 
1251
# arguments mandatory, and then we can depend on a new Autoconf
 
1252
# release and drop the old call support.
 
1253
AC_DEFUN([AM_INIT_AUTOMAKE],
 
1254
[AC_PREREQ([2.60])dnl
 
1255
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
1256
dnl the ones we care about.
 
1257
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
1258
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
1259
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
1260
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1261
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1262
  # is not polluted with repeated "-I."
 
1263
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1264
  # test to see if srcdir already configured
 
1265
  if test -f $srcdir/config.status; then
 
1266
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1267
  fi
 
1268
fi
 
1269
 
 
1270
# test whether we have cygpath
 
1271
if test -z "$CYGPATH_W"; then
 
1272
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1273
    CYGPATH_W='cygpath -w'
 
1274
  else
 
1275
    CYGPATH_W=echo
 
1276
  fi
 
1277
fi
 
1278
AC_SUBST([CYGPATH_W])
 
1279
 
 
1280
# Define the identity of the package.
 
1281
dnl Distinguish between old-style and new-style calls.
 
1282
m4_ifval([$2],
 
1283
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
1284
 AC_SUBST([PACKAGE], [$1])dnl
 
1285
 AC_SUBST([VERSION], [$2])],
 
1286
[_AM_SET_OPTIONS([$1])dnl
 
1287
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1288
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1289
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
1290
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
1291
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
1292
 
 
1293
_AM_IF_OPTION([no-define],,
 
1294
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
1295
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
1296
 
 
1297
# Some tools Automake needs.
 
1298
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
1299
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
1300
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
1301
AM_MISSING_PROG(AUTOCONF, autoconf)
 
1302
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
1303
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
1304
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1305
AM_PROG_INSTALL_SH
 
1306
AM_PROG_INSTALL_STRIP
 
1307
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1308
# We need awk for the "check" target.  The system "awk" is bad on
 
1309
# some platforms.
 
1310
AC_REQUIRE([AC_PROG_AWK])dnl
 
1311
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
1312
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1313
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
1314
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1315
                             [_AM_PROG_TAR([v7])])])
 
1316
_AM_IF_OPTION([no-dependencies],,
 
1317
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
1318
                  [_AM_DEPENDENCIES(CC)],
 
1319
                  [define([AC_PROG_CC],
 
1320
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1321
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1322
                  [_AM_DEPENDENCIES(CXX)],
 
1323
                  [define([AC_PROG_CXX],
 
1324
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1325
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1326
                  [_AM_DEPENDENCIES(OBJC)],
 
1327
                  [define([AC_PROG_OBJC],
 
1328
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1329
])
 
1330
])
 
1331
 
 
1332
 
 
1333
# When config.status generates a header, we must update the stamp-h file.
 
1334
# This file resides in the same directory as the config header
 
1335
# that is generated.  The stamp files are numbered to have different names.
 
1336
 
 
1337
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
1338
# loop where config.status creates the headers, so we can generate
 
1339
# our stamp files there.
 
1340
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
1341
[# Compute $1's index in $config_headers.
 
1342
_am_stamp_count=1
 
1343
for _am_header in $config_headers :; do
 
1344
  case $_am_header in
 
1345
    $1 | $1:* )
 
1346
      break ;;
 
1347
    * )
 
1348
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
1349
  esac
 
1350
done
 
1351
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
1352
 
 
1353
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1354
#
 
1355
# This file is free software; the Free Software Foundation
 
1356
# gives unlimited permission to copy and/or distribute it,
 
1357
# with or without modifications, as long as this notice is preserved.
 
1358
 
 
1359
# AM_PROG_INSTALL_SH
 
1360
# ------------------
 
1361
# Define $install_sh.
 
1362
AC_DEFUN([AM_PROG_INSTALL_SH],
 
1363
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1364
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1365
AC_SUBST(install_sh)])
 
1366
 
 
1367
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1368
#
 
1369
# This file is free software; the Free Software Foundation
 
1370
# gives unlimited permission to copy and/or distribute it,
 
1371
# with or without modifications, as long as this notice is preserved.
 
1372
 
 
1373
# serial 2
 
1374
 
 
1375
# Check whether the underlying file-system supports filenames
 
1376
# with a leading dot.  For instance MS-DOS doesn't.
 
1377
AC_DEFUN([AM_SET_LEADING_DOT],
 
1378
[rm -rf .tst 2>/dev/null
 
1379
mkdir .tst 2>/dev/null
 
1380
if test -d .tst; then
 
1381
  am__leading_dot=.
 
1382
else
 
1383
  am__leading_dot=_
 
1384
fi
 
1385
rmdir .tst 2>/dev/null
 
1386
AC_SUBST([am__leading_dot])])
 
1387
 
 
1388
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
1389
 
 
1390
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1391
#
 
1392
# This file is free software; the Free Software Foundation
 
1393
# gives unlimited permission to copy and/or distribute it,
 
1394
# with or without modifications, as long as this notice is preserved.
 
1395
 
 
1396
# serial 3
 
1397
 
 
1398
# AM_MAKE_INCLUDE()
 
1399
# -----------------
 
1400
# Check to see how make treats includes.
 
1401
AC_DEFUN([AM_MAKE_INCLUDE],
 
1402
[am_make=${MAKE-make}
 
1403
cat > confinc << 'END'
 
1404
am__doit:
 
1405
        @echo done
 
1406
.PHONY: am__doit
 
1407
END
 
1408
# If we don't find an include directive, just comment out the code.
 
1409
AC_MSG_CHECKING([for style of include used by $am_make])
 
1410
am__include="#"
 
1411
am__quote=
 
1412
_am_result=none
 
1413
# First try GNU make style include.
 
1414
echo "include confinc" > confmf
 
1415
# We grep out `Entering directory' and `Leaving directory'
 
1416
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1417
# In particular we don't look at `^make:' because GNU make might
 
1418
# be invoked under some other name (usually "gmake"), in which
 
1419
# case it prints its new name instead of `make'.
 
1420
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
1421
   am__include=include
 
1422
   am__quote=
 
1423
   _am_result=GNU
 
1424
fi
 
1425
# Now try BSD make style include.
 
1426
if test "$am__include" = "#"; then
 
1427
   echo '.include "confinc"' > confmf
 
1428
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1429
      am__include=.include
 
1430
      am__quote="\""
 
1431
      _am_result=BSD
 
1432
   fi
 
1433
fi
 
1434
AC_SUBST([am__include])
 
1435
AC_SUBST([am__quote])
 
1436
AC_MSG_RESULT([$_am_result])
 
1437
rm -f confinc confmf
 
1438
])
 
1439
 
 
1440
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
1441
# Free Software Foundation, Inc.
 
1442
#
 
1443
# This file is free software; the Free Software Foundation
 
1444
# gives unlimited permission to copy and/or distribute it,
 
1445
# with or without modifications, as long as this notice is preserved.
 
1446
 
 
1447
# serial 5
 
1448
 
 
1449
# AM_PROG_CC_C_O
 
1450
# --------------
 
1451
# Like AC_PROG_CC_C_O, but changed for automake.
 
1452
AC_DEFUN([AM_PROG_CC_C_O],
 
1453
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
1454
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1455
AC_REQUIRE_AUX_FILE([compile])dnl
 
1456
# FIXME: we rely on the cache variable name because
 
1457
# there is no other way.
 
1458
set dummy $CC
 
1459
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1460
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
1461
   # Losing compiler, so override with the script.
 
1462
   # FIXME: It is wrong to rewrite CC.
 
1463
   # But if we don't then we get into trouble of one sort or another.
 
1464
   # A longer-term fix would be to have automake use am__CC in this case,
 
1465
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1466
   CC="$am_aux_dir/compile $CC"
 
1467
fi
 
1468
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
1469
dnl setting of CC.
 
1470
m4_define([AC_PROG_CC],
 
1471
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
1472
])
 
1473
 
 
1474
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
1475
 
 
1476
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1477
# Free Software Foundation, Inc.
 
1478
#
 
1479
# This file is free software; the Free Software Foundation
 
1480
# gives unlimited permission to copy and/or distribute it,
 
1481
# with or without modifications, as long as this notice is preserved.
 
1482
 
 
1483
# serial 5
 
1484
 
 
1485
# AM_MISSING_PROG(NAME, PROGRAM)
 
1486
# ------------------------------
 
1487
AC_DEFUN([AM_MISSING_PROG],
 
1488
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
1489
$1=${$1-"${am_missing_run}$2"}
 
1490
AC_SUBST($1)])
 
1491
 
 
1492
 
 
1493
# AM_MISSING_HAS_RUN
 
1494
# ------------------
 
1495
# Define MISSING if not defined so far and test if it supports --run.
 
1496
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1497
AC_DEFUN([AM_MISSING_HAS_RUN],
 
1498
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1499
AC_REQUIRE_AUX_FILE([missing])dnl
 
1500
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1501
# Use eval to expand $SHELL
 
1502
if eval "$MISSING --run true"; then
 
1503
  am_missing_run="$MISSING --run "
 
1504
else
 
1505
  am_missing_run=
 
1506
  AC_MSG_WARN([`missing' script is too old or missing])
 
1507
fi
 
1508
])
 
1509
 
 
1510
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
1511
#
 
1512
# This file is free software; the Free Software Foundation
 
1513
# gives unlimited permission to copy and/or distribute it,
 
1514
# with or without modifications, as long as this notice is preserved.
 
1515
 
 
1516
# AM_PROG_MKDIR_P
 
1517
# ---------------
 
1518
# Check for `mkdir -p'.
 
1519
AC_DEFUN([AM_PROG_MKDIR_P],
 
1520
[AC_PREREQ([2.60])dnl
 
1521
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1522
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1523
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1524
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1525
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1526
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1527
dnl adjustment using top_builddir (which is defined more often than
 
1528
dnl MKDIR_P).
 
1529
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1530
case $mkdir_p in
 
1531
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1532
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1533
esac
 
1534
])
 
1535
 
 
1536
# Helper functions for option handling.                     -*- Autoconf -*-
 
1537
 
 
1538
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1539
#
 
1540
# This file is free software; the Free Software Foundation
 
1541
# gives unlimited permission to copy and/or distribute it,
 
1542
# with or without modifications, as long as this notice is preserved.
 
1543
 
 
1544
# serial 3
 
1545
 
 
1546
# _AM_MANGLE_OPTION(NAME)
 
1547
# -----------------------
 
1548
AC_DEFUN([_AM_MANGLE_OPTION],
 
1549
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
1550
 
 
1551
# _AM_SET_OPTION(NAME)
 
1552
# ------------------------------
 
1553
# Set option NAME.  Presently that only means defining a flag for this option.
 
1554
AC_DEFUN([_AM_SET_OPTION],
 
1555
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1556
 
 
1557
# _AM_SET_OPTIONS(OPTIONS)
 
1558
# ----------------------------------
 
1559
# OPTIONS is a space-separated list of Automake options.
 
1560
AC_DEFUN([_AM_SET_OPTIONS],
 
1561
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1562
 
 
1563
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
1564
# -------------------------------------------
 
1565
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
1566
AC_DEFUN([_AM_IF_OPTION],
 
1567
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
1568
 
 
1569
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1570
#
 
1571
# This file is free software; the Free Software Foundation
 
1572
# gives unlimited permission to copy and/or distribute it,
 
1573
# with or without modifications, as long as this notice is preserved.
 
1574
 
 
1575
# AM_RUN_LOG(COMMAND)
 
1576
# -------------------
 
1577
# Run COMMAND, save the exit status in ac_status, and log it.
 
1578
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
1579
AC_DEFUN([AM_RUN_LOG],
 
1580
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
1581
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
1582
   ac_status=$?
 
1583
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1584
   (exit $ac_status); }])
 
1585
 
 
1586
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1587
 
 
1588
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1589
# Free Software Foundation, Inc.
 
1590
#
 
1591
# This file is free software; the Free Software Foundation
 
1592
# gives unlimited permission to copy and/or distribute it,
 
1593
# with or without modifications, as long as this notice is preserved.
 
1594
 
 
1595
# serial 4
 
1596
 
 
1597
# AM_SANITY_CHECK
 
1598
# ---------------
 
1599
AC_DEFUN([AM_SANITY_CHECK],
 
1600
[AC_MSG_CHECKING([whether build environment is sane])
 
1601
# Just in case
 
1602
sleep 1
 
1603
echo timestamp > conftest.file
 
1604
# Do `set' in a subshell so we don't clobber the current shell's
 
1605
# arguments.  Must try -L first in case configure is actually a
 
1606
# symlink; some systems play weird games with the mod time of symlinks
 
1607
# (eg FreeBSD returns the mod time of the symlink's containing
 
1608
# directory).
 
1609
if (
 
1610
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1611
   if test "$[*]" = "X"; then
 
1612
      # -L didn't work.
 
1613
      set X `ls -t $srcdir/configure conftest.file`
 
1614
   fi
 
1615
   rm -f conftest.file
 
1616
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1617
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1618
 
 
1619
      # If neither matched, then we have a broken ls.  This can happen
 
1620
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1621
      # broken ls alias from the environment.  This has actually
 
1622
      # happened.  Such a system could not be considered "sane".
 
1623
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1624
alias in your environment])
 
1625
   fi
 
1626
 
 
1627
   test "$[2]" = conftest.file
 
1628
   )
 
1629
then
 
1630
   # Ok.
 
1631
   :
 
1632
else
 
1633
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1634
Check your system clock])
 
1635
fi
 
1636
AC_MSG_RESULT(yes)])
 
1637
 
 
1638
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1639
#
 
1640
# This file is free software; the Free Software Foundation
 
1641
# gives unlimited permission to copy and/or distribute it,
 
1642
# with or without modifications, as long as this notice is preserved.
 
1643
 
 
1644
# AM_PROG_INSTALL_STRIP
 
1645
# ---------------------
 
1646
# One issue with vendor `install' (even GNU) is that you can't
 
1647
# specify the program used to strip binaries.  This is especially
 
1648
# annoying in cross-compiling environments, where the build's strip
 
1649
# is unlikely to handle the host's binaries.
 
1650
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1651
# always use install-sh in `make install-strip', and initialize
 
1652
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1653
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1654
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1655
# Installed binaries are usually stripped using `strip' when the user
 
1656
# run `make install-strip'.  However `strip' might not be the right
 
1657
# tool to use in cross-compilation environments, therefore Automake
 
1658
# will honor the `STRIP' environment variable to overrule this program.
 
1659
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1660
if test "$cross_compiling" != no; then
 
1661
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1662
fi
 
1663
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1664
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1665
 
 
1666
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1667
#
 
1668
# This file is free software; the Free Software Foundation
 
1669
# gives unlimited permission to copy and/or distribute it,
 
1670
# with or without modifications, as long as this notice is preserved.
 
1671
 
 
1672
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1673
# ---------------------------
 
1674
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
1675
# This macro is traced by Automake.
 
1676
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1677
 
 
1678
# Check how to create a tarball.                            -*- Autoconf -*-
 
1679
 
 
1680
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1681
#
 
1682
# This file is free software; the Free Software Foundation
 
1683
# gives unlimited permission to copy and/or distribute it,
 
1684
# with or without modifications, as long as this notice is preserved.
 
1685
 
 
1686
# serial 2
 
1687
 
 
1688
# _AM_PROG_TAR(FORMAT)
 
1689
# --------------------
 
1690
# Check how to create a tarball in format FORMAT.
 
1691
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1692
#
 
1693
# Substitute a variable $(am__tar) that is a command
 
1694
# writing to stdout a FORMAT-tarball containing the directory
 
1695
# $tardir.
 
1696
#     tardir=directory && $(am__tar) > result.tar
 
1697
#
 
1698
# Substitute a variable $(am__untar) that extract such
 
1699
# a tarball read from stdin.
 
1700
#     $(am__untar) < result.tar
 
1701
AC_DEFUN([_AM_PROG_TAR],
 
1702
[# Always define AMTAR for backward compatibility.
 
1703
AM_MISSING_PROG([AMTAR], [tar])
 
1704
m4_if([$1], [v7],
 
1705
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1706
     [m4_case([$1], [ustar],, [pax],,
 
1707
              [m4_fatal([Unknown tar format])])
 
1708
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1709
# Loop over all known methods to create a tar archive until one works.
 
1710
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1711
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1712
# Do not fold the above two line into one, because Tru64 sh and
 
1713
# Solaris sh will not grok spaces in the rhs of `-'.
 
1714
for _am_tool in $_am_tools
 
1715
do
 
1716
  case $_am_tool in
 
1717
  gnutar)
 
1718
    for _am_tar in tar gnutar gtar;
 
1719
    do
 
1720
      AM_RUN_LOG([$_am_tar --version]) && break
 
1721
    done
 
1722
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1723
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1724
    am__untar="$_am_tar -xf -"
 
1725
    ;;
 
1726
  plaintar)
 
1727
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1728
    # ustar tarball either.
 
1729
    (tar --version) >/dev/null 2>&1 && continue
 
1730
    am__tar='tar chf - "$$tardir"'
 
1731
    am__tar_='tar chf - "$tardir"'
 
1732
    am__untar='tar xf -'
 
1733
    ;;
 
1734
  pax)
 
1735
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1736
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1737
    am__untar='pax -r'
 
1738
    ;;
 
1739
  cpio)
 
1740
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1741
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1742
    am__untar='cpio -i -H $1 -d'
 
1743
    ;;
 
1744
  none)
 
1745
    am__tar=false
 
1746
    am__tar_=false
 
1747
    am__untar=false
 
1748
    ;;
 
1749
  esac
 
1750
 
 
1751
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1752
  # and am__untar set.
 
1753
  test -n "${am_cv_prog_tar_$1}" && break
 
1754
 
 
1755
  # tar/untar a dummy directory, and stop if the command works
 
1756
  rm -rf conftest.dir
 
1757
  mkdir conftest.dir
 
1758
  echo GrepMe > conftest.dir/file
 
1759
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1760
  rm -rf conftest.dir
 
1761
  if test -s conftest.tar; then
 
1762
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1763
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1764
  fi
 
1765
done
 
1766
rm -rf conftest.dir
 
1767
 
 
1768
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1769
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1770
AC_SUBST([am__tar])
 
1771
AC_SUBST([am__untar])
 
1772
]) # _AM_PROG_TAR
 
1773
 
 
1774
m4_include([acinclude.m4])