11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
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])])
19
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
21
# This file is free software; the Free Software Foundation
22
# gives unlimited permission to copy and/or distribute it,
23
# with or without modifications, as long as this notice is preserved.
25
# AM_AUTOMAKE_VERSION(VERSION)
26
# ----------------------------
27
# Automake X.Y traces this macro to ensure aclocal.m4 has been
28
# generated from the m4 files accompanying Automake X.Y.
29
# (This private macro should not be called outside this file.)
30
AC_DEFUN([AM_AUTOMAKE_VERSION],
31
[am__api_version='1.10'
32
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
33
dnl require some minimum version. Point them to the right macro.
34
m4_if([$1], [1.10], [],
35
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38
# _AM_AUTOCONF_VERSION(VERSION)
39
# -----------------------------
40
# aclocal traces this macro to find the Autoconf version.
41
# This is a private macro too. Using m4_define simplifies
42
# the logic in aclocal, which can simply ignore this definition.
43
m4_define([_AM_AUTOCONF_VERSION], [])
45
# AM_SET_CURRENT_AUTOMAKE_VERSION
46
# -------------------------------
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
48
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
49
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
50
[AM_AUTOMAKE_VERSION([1.10])dnl
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
53
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
55
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
57
# This file is free software; the Free Software Foundation
58
# gives unlimited permission to copy and/or distribute it,
59
# with or without modifications, as long as this notice is preserved.
61
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
62
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
63
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
65
# Of course, Automake must honor this variable whenever it calls a
66
# tool from the auxiliary directory. The problem is that $srcdir (and
67
# therefore $ac_aux_dir as well) can be either absolute or relative,
68
# depending on how configure is run. This is pretty annoying, since
69
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
70
# source directory, any form will work fine, but in subdirectories a
71
# relative path needs to be adjusted first.
74
# fails when called from a subdirectory if $ac_aux_dir is relative
75
# $top_srcdir/$ac_aux_dir/missing
76
# fails if $ac_aux_dir is absolute,
77
# fails when called from a subdirectory in a VPATH build with
78
# a relative $ac_aux_dir
80
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
81
# are both prefixed by $srcdir. In an in-source build this is usually
82
# harmless because $srcdir is `.', but things will broke when you
83
# start a VPATH build or use an absolute $srcdir.
85
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
86
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
87
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
88
# and then we would define $MISSING as
89
# MISSING="\${SHELL} $am_aux_dir/missing"
90
# This will work as long as MISSING is not called from configure, because
91
# unfortunately $(top_srcdir) has no meaning in configure.
92
# However there are other variables, like CC, which are often used in
93
# configure, and could therefore not use this "fixed" $ac_aux_dir.
95
# Another solution, used here, is to always expand $ac_aux_dir to an
96
# absolute PATH. The drawback is that using absolute paths prevent a
97
# configured tree to be moved without reconfiguration.
99
AC_DEFUN([AM_AUX_DIR_EXPAND],
100
[dnl Rely on autoconf to set up CDPATH properly.
102
# expand $ac_aux_dir to an absolute path
103
am_aux_dir=`cd $ac_aux_dir && pwd`
106
# AM_CONDITIONAL -*- Autoconf -*-
108
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
109
# Free Software Foundation, Inc.
111
# This file is free software; the Free Software Foundation
112
# gives unlimited permission to copy and/or distribute it,
113
# with or without modifications, as long as this notice is preserved.
117
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
118
# -------------------------------------
119
# Define a conditional.
120
AC_DEFUN([AM_CONDITIONAL],
122
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
123
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
124
AC_SUBST([$1_TRUE])dnl
125
AC_SUBST([$1_FALSE])dnl
126
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
127
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
135
AC_CONFIG_COMMANDS_PRE(
136
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
137
AC_MSG_ERROR([[conditional "$1" was never defined.
138
Usually this means the macro was only invoked conditionally.]])
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
142
# Free Software Foundation, Inc.
144
# This file is free software; the Free Software Foundation
145
# gives unlimited permission to copy and/or distribute it,
146
# with or without modifications, as long as this notice is preserved.
150
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
151
# written in clear, in which case automake, when reading aclocal.m4,
152
# will think it sees a *use*, and therefore will trigger all it's
153
# C support machinery. Also note that it means that autoscan, seeing
154
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
157
# _AM_DEPENDENCIES(NAME)
158
# ----------------------
159
# See how the compiler implements dependency checking.
160
# NAME is "CC", "CXX", "GCJ", or "OBJC".
161
# We try a few techniques and use that to set a single cache variable.
163
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165
# dependency, and given that the user is not expected to run this macro,
166
# just rely on AC_PROG_CC.
167
AC_DEFUN([_AM_DEPENDENCIES],
168
[AC_REQUIRE([AM_SET_DEPDIR])dnl
169
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171
AC_REQUIRE([AM_DEP_TRACK])dnl
173
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
174
[$1], CXX, [depcc="$CXX" am_compiler_list=],
175
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176
[$1], UPC, [depcc="$UPC" am_compiler_list=],
177
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
178
[depcc="$$1" am_compiler_list=])
180
AC_CACHE_CHECK([dependency style of $depcc],
181
[am_cv_$1_dependencies_compiler_type],
182
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
183
# We make a subdir and do the tests there. Otherwise we can end up
184
# making bogus files that we don't know about and never remove. For
185
# instance it was reported that on HP-UX the gcc test will end up
186
# making a dummy file named `D' -- because `-MD' means `put the output
189
# Copy depcomp to subdir because otherwise we won't find it if we're
190
# using a relative directory.
191
cp "$am_depcomp" conftest.dir
193
# We will build objects and dependencies in a subdirectory because
194
# it helps to detect inapplicable dependency modes. For instance
195
# both Tru64's cc and ICC support -MD to output dependencies as a
196
# side effect of compilation, but ICC will put the dependencies in
197
# the current directory while Tru64 will put them in the object
201
am_cv_$1_dependencies_compiler_type=none
202
if test "$am_compiler_list" = ""; then
203
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
205
for depmode in $am_compiler_list; do
206
# Setup a source with many dependencies, because some compilers
207
# like to wrap large dependency lists on column 80 (with \), and
208
# we should not choose a depcomp mode which is confused by this.
210
# We need to recreate these files for each test, as the compiler may
211
# overwrite some of them when testing with obscure command lines.
212
# This happens at least with the AIX C compiler.
214
for i in 1 2 3 4 5 6; do
215
echo '#include "conftst'$i'.h"' >> sub/conftest.c
216
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
217
# Solaris 8's {/usr,}/bin/sh.
218
touch sub/conftst$i.h
220
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
224
# after this tag, mechanisms are not by side-effect, so they'll
225
# only be used when explicitly requested
226
if test "x$enable_dependency_tracking" = xyes; then
234
# We check with `-c' and `-o' for the sake of the "dashmstdout"
235
# mode. It turns out that the SunPro C++ compiler does not properly
236
# handle `-M -o', and we need to detect this.
237
if depmode=$depmode \
238
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
239
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
240
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
241
>/dev/null 2>conftest.err &&
242
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
243
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
244
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
245
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
246
# icc doesn't choke on unknown options, it will just issue warnings
247
# or remarks (even with -Werror). So we grep stderr for any message
248
# that says an option was ignored or not supported.
249
# When given -MP, icc 7.0 and 7.1 complain thusly:
250
# icc: Command line warning: ignoring option '-M'; no argument required
251
# The diagnosis changed in icc 8.0:
252
# icc: Command line remark: option '-MP' not supported
253
if (grep 'ignoring option' conftest.err ||
254
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
255
am_cv_$1_dependencies_compiler_type=$depmode
264
am_cv_$1_dependencies_compiler_type=none
267
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
268
AM_CONDITIONAL([am__fastdep$1], [
269
test "x$enable_dependency_tracking" != xno \
270
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
276
# Choose a directory name for dependency files.
277
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
278
AC_DEFUN([AM_SET_DEPDIR],
279
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
280
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
286
AC_DEFUN([AM_DEP_TRACK],
287
[AC_ARG_ENABLE(dependency-tracking,
288
[ --disable-dependency-tracking speeds up one-time build
289
--enable-dependency-tracking do not reject slow dependency extractors])
290
if test "x$enable_dependency_tracking" != xno; then
291
am_depcomp="$ac_aux_dir/depcomp"
294
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
295
AC_SUBST([AMDEPBACKSLASH])dnl
296
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
299
# Generate code to set up dependency tracking. -*- Autoconf -*-
301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
302
# Free Software Foundation, Inc.
304
# This file is free software; the Free Software Foundation
305
# gives unlimited permission to copy and/or distribute it,
306
# with or without modifications, as long as this notice is preserved.
310
# _AM_OUTPUT_DEPENDENCY_COMMANDS
311
# ------------------------------
312
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
313
[for mf in $CONFIG_FILES; do
314
# Strip MF so we end up with the name of the file.
315
mf=`echo "$mf" | sed -e 's/:.*$//'`
316
# Check whether this is an Automake generated Makefile or not.
317
# We used to match only the files named `Makefile.in', but
318
# some people rename them; so instead we look at the file content.
319
# Grep'ing the first line is not enough: some people post-process
320
# each Makefile.in and add a new line on top of each file to say so.
321
# Grep'ing the whole file is not good either: AIX grep has a line
322
# limit of 2048, but all sed's we know have understand at least 4000.
323
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
324
dirpart=`AS_DIRNAME("$mf")`
328
# Extract the definition of DEPDIR, am__include, and am__quote
329
# from the Makefile without running `make'.
330
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
331
test -z "$DEPDIR" && continue
332
am__include=`sed -n 's/^am__include = //p' < "$mf"`
333
test -z "am__include" && continue
334
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
335
# When using ansi2knr, U may be empty or an underscore; expand it
336
U=`sed -n 's/^U = //p' < "$mf"`
337
# Find all dependency output files, they are included files with
338
# $(DEPDIR) in their names. We invoke sed twice because it is the
339
# simplest approach to changing $(DEPDIR) to its actual value in the
341
for file in `sed -n "
342
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
343
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
344
# Make sure the directory exists.
345
test -f "$dirpart/$file" && continue
346
fdir=`AS_DIRNAME(["$file"])`
347
AS_MKDIR_P([$dirpart/$fdir])
348
# echo "creating $dirpart/$file"
349
echo '# dummy' > "$dirpart/$file"
352
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
355
# AM_OUTPUT_DEPENDENCY_COMMANDS
356
# -----------------------------
357
# This macro should only be invoked once -- use via AC_REQUIRE.
359
# This code is only required when automatic dependency tracking
360
# is enabled. FIXME. This creates each `.P' file that we will
361
# need in order to bootstrap the dependency handling code.
362
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
363
[AC_CONFIG_COMMANDS([depfiles],
364
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
365
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
368
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
369
# Free Software Foundation, Inc.
371
# This file is free software; the Free Software Foundation
372
# gives unlimited permission to copy and/or distribute it,
373
# with or without modifications, as long as this notice is preserved.
377
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
378
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
380
# Do all the work for Automake. -*- Autoconf -*-
382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
383
# 2005, 2006 Free Software Foundation, Inc.
385
# This file is free software; the Free Software Foundation
386
# gives unlimited permission to copy and/or distribute it,
387
# with or without modifications, as long as this notice is preserved.
391
# This macro actually does too much. Some checks are only needed if
392
# your package does certain things. But this isn't really a big deal.
394
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
395
# AM_INIT_AUTOMAKE([OPTIONS])
396
# -----------------------------------------------
397
# The call with PACKAGE and VERSION arguments is the old style
398
# call (pre autoconf-2.50), which is being phased out. PACKAGE
399
# and VERSION should now be passed to AC_INIT and removed from
400
# the call to AM_INIT_AUTOMAKE.
401
# We support both call styles for the transition. After
402
# the next Automake release, Autoconf can make the AC_INIT
403
# arguments mandatory, and then we can depend on a new Autoconf
404
# release and drop the old call support.
405
AC_DEFUN([AM_INIT_AUTOMAKE],
406
[AC_PREREQ([2.60])dnl
407
dnl Autoconf wants to disallow AM_ names. We explicitly allow
408
dnl the ones we care about.
409
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
410
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
411
AC_REQUIRE([AC_PROG_INSTALL])dnl
412
if test "`cd $srcdir && pwd`" != "`pwd`"; then
413
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
414
# is not polluted with repeated "-I."
415
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
416
# test to see if srcdir already configured
417
if test -f $srcdir/config.status; then
418
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
422
# test whether we have cygpath
423
if test -z "$CYGPATH_W"; then
424
if (cygpath --version) >/dev/null 2>/dev/null; then
425
CYGPATH_W='cygpath -w'
430
AC_SUBST([CYGPATH_W])
432
# Define the identity of the package.
433
dnl Distinguish between old-style and new-style calls.
435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
436
AC_SUBST([PACKAGE], [$1])dnl
437
AC_SUBST([VERSION], [$2])],
438
[_AM_SET_OPTIONS([$1])dnl
439
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
440
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
441
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
442
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
443
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
445
_AM_IF_OPTION([no-define],,
446
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
447
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
449
# Some tools Automake needs.
450
AC_REQUIRE([AM_SANITY_CHECK])dnl
451
AC_REQUIRE([AC_ARG_PROGRAM])dnl
452
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
453
AM_MISSING_PROG(AUTOCONF, autoconf)
454
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
455
AM_MISSING_PROG(AUTOHEADER, autoheader)
456
AM_MISSING_PROG(MAKEINFO, makeinfo)
458
AM_PROG_INSTALL_STRIP
459
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
460
# We need awk for the "check" target. The system "awk" is bad on
462
AC_REQUIRE([AC_PROG_AWK])dnl
463
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
464
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
465
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
466
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
467
[_AM_PROG_TAR([v7])])])
468
_AM_IF_OPTION([no-dependencies],,
469
[AC_PROVIDE_IFELSE([AC_PROG_CC],
470
[_AM_DEPENDENCIES(CC)],
471
[define([AC_PROG_CC],
472
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
473
AC_PROVIDE_IFELSE([AC_PROG_CXX],
474
[_AM_DEPENDENCIES(CXX)],
475
[define([AC_PROG_CXX],
476
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
477
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
478
[_AM_DEPENDENCIES(OBJC)],
479
[define([AC_PROG_OBJC],
480
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
485
# When config.status generates a header, we must update the stamp-h file.
486
# This file resides in the same directory as the config header
487
# that is generated. The stamp files are numbered to have different names.
489
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
490
# loop where config.status creates the headers, so we can generate
491
# our stamp files there.
492
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
493
[# Compute $1's index in $config_headers.
495
for _am_header in $config_headers :; do
500
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
503
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
505
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
507
# This file is free software; the Free Software Foundation
508
# gives unlimited permission to copy and/or distribute it,
509
# with or without modifications, as long as this notice is preserved.
513
# Define $install_sh.
514
AC_DEFUN([AM_PROG_INSTALL_SH],
515
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
516
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
517
AC_SUBST(install_sh)])
519
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
521
# This file is free software; the Free Software Foundation
522
# gives unlimited permission to copy and/or distribute it,
523
# with or without modifications, as long as this notice is preserved.
527
# Check whether the underlying file-system supports filenames
528
# with a leading dot. For instance MS-DOS doesn't.
529
AC_DEFUN([AM_SET_LEADING_DOT],
530
[rm -rf .tst 2>/dev/null
531
mkdir .tst 2>/dev/null
532
if test -d .tst; then
537
rmdir .tst 2>/dev/null
538
AC_SUBST([am__leading_dot])])
540
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
543
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
544
# Free Software Foundation, Inc.
546
# This file is free software; the Free Software Foundation
547
# gives unlimited permission to copy and/or distribute it,
548
# with or without modifications, as long as this notice is preserved.
552
AC_DEFUN([AM_MAINTAINER_MODE],
553
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
554
dnl maintainer-mode is disabled by default
555
AC_ARG_ENABLE(maintainer-mode,
556
[ --enable-maintainer-mode enable make rules and dependencies not useful
557
(and sometimes confusing) to the casual installer],
558
USE_MAINTAINER_MODE=$enableval,
559
USE_MAINTAINER_MODE=no)
560
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
561
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
562
MAINT=$MAINTAINER_MODE_TRUE
567
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
569
# Check to see how 'make' treats includes. -*- Autoconf -*-
571
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
573
# This file is free software; the Free Software Foundation
574
# gives unlimited permission to copy and/or distribute it,
575
# with or without modifications, as long as this notice is preserved.
581
# Check to see how make treats includes.
582
AC_DEFUN([AM_MAKE_INCLUDE],
583
[am_make=${MAKE-make}
584
cat > confinc << 'END'
589
# If we don't find an include directive, just comment out the code.
590
AC_MSG_CHECKING([for style of include used by $am_make])
594
# First try GNU make style include.
595
echo "include confinc" > confmf
596
# We grep out `Entering directory' and `Leaving directory'
597
# messages which can occur if `w' ends up in MAKEFLAGS.
598
# In particular we don't look at `^make:' because GNU make might
599
# be invoked under some other name (usually "gmake"), in which
600
# case it prints its new name instead of `make'.
601
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
606
# Now try BSD make style include.
607
if test "$am__include" = "#"; then
608
echo '.include "confinc"' > confmf
609
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
615
AC_SUBST([am__include])
616
AC_SUBST([am__quote])
617
AC_MSG_RESULT([$_am_result])
621
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
623
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
624
# Free Software Foundation, Inc.
626
# This file is free software; the Free Software Foundation
627
# gives unlimited permission to copy and/or distribute it,
628
# with or without modifications, as long as this notice is preserved.
632
# AM_MISSING_PROG(NAME, PROGRAM)
633
# ------------------------------
634
AC_DEFUN([AM_MISSING_PROG],
635
[AC_REQUIRE([AM_MISSING_HAS_RUN])
636
$1=${$1-"${am_missing_run}$2"}
642
# Define MISSING if not defined so far and test if it supports --run.
643
# If it does, set am_missing_run to use it, otherwise, to nothing.
644
AC_DEFUN([AM_MISSING_HAS_RUN],
645
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
646
AC_REQUIRE_AUX_FILE([missing])dnl
647
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
648
# Use eval to expand $SHELL
649
if eval "$MISSING --run true"; then
650
am_missing_run="$MISSING --run "
653
AC_MSG_WARN([`missing' script is too old or missing])
657
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
659
# This file is free software; the Free Software Foundation
660
# gives unlimited permission to copy and/or distribute it,
661
# with or without modifications, as long as this notice is preserved.
665
# Check for `mkdir -p'.
666
AC_DEFUN([AM_PROG_MKDIR_P],
667
[AC_PREREQ([2.60])dnl
668
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
669
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
670
dnl while keeping a definition of mkdir_p for backward compatibility.
671
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
672
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
673
dnl Makefile.ins that do not define MKDIR_P, so we do our own
674
dnl adjustment using top_builddir (which is defined more often than
676
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
678
[[\\/$]]* | ?:[[\\/]]*) ;;
679
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
683
# Helper functions for option handling. -*- Autoconf -*-
685
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
687
# This file is free software; the Free Software Foundation
688
# gives unlimited permission to copy and/or distribute it,
689
# with or without modifications, as long as this notice is preserved.
693
# _AM_MANGLE_OPTION(NAME)
694
# -----------------------
695
AC_DEFUN([_AM_MANGLE_OPTION],
696
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
698
# _AM_SET_OPTION(NAME)
699
# ------------------------------
700
# Set option NAME. Presently that only means defining a flag for this option.
701
AC_DEFUN([_AM_SET_OPTION],
702
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
704
# _AM_SET_OPTIONS(OPTIONS)
705
# ----------------------------------
706
# OPTIONS is a space-separated list of Automake options.
707
AC_DEFUN([_AM_SET_OPTIONS],
708
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
710
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
711
# -------------------------------------------
712
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
713
AC_DEFUN([_AM_IF_OPTION],
714
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
716
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
717
# Free Software Foundation, Inc.
719
# This file is free software; the Free Software Foundation
720
# gives unlimited permission to copy and/or distribute it,
721
# with or without modifications, as long as this notice is preserved.
723
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
724
# ---------------------------------------------------------------------------
725
# Adds support for distributing Python modules and packages. To
726
# install modules, copy them to $(pythondir), using the python_PYTHON
727
# automake variable. To install a package with the same name as the
728
# automake package, install to $(pkgpythondir), or use the
729
# pkgpython_PYTHON automake variable.
731
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
732
# locations to install python extension modules (shared libraries).
733
# Another macro is required to find the appropriate flags to compile
736
# If your package is configured with a different prefix to python,
737
# users will have to add the install directory to the PYTHONPATH
738
# environment variable, or create a .pth file (see the python
739
# documentation for details).
741
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
742
# cause an error if the version of python installed on the system
743
# doesn't meet the requirement. MINIMUM-VERSION should consist of
744
# numbers and dots only.
745
AC_DEFUN([AM_PATH_PYTHON],
747
dnl Find a Python interpreter. Python versions prior to 1.5 are not
748
dnl supported because the default installation locations changed from
749
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
751
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
752
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
753
python2.1 python2.0 python1.6 python1.5])
756
dnl No version check is needed.
757
# Find any Python interpreter.
758
if test -z "$PYTHON"; then
759
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
761
am_display_PYTHON=python
763
dnl A version check is needed.
764
if test -n "$PYTHON"; then
765
# If the user set $PYTHON, use it and don't search something else.
766
AC_MSG_CHECKING([whether $PYTHON version >= $1])
767
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
768
[AC_MSG_RESULT(yes)],
769
[AC_MSG_ERROR(too old)])
770
am_display_PYTHON=$PYTHON
772
# Otherwise, try each interpreter until we find one that satisfies
774
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
775
[am_cv_pathless_PYTHON],[
776
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
777
test "$am_cv_pathless_PYTHON" = none && break
778
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
780
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
781
if test "$am_cv_pathless_PYTHON" = none; then
784
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
786
am_display_PYTHON=$am_cv_pathless_PYTHON
790
if test "$PYTHON" = :; then
791
dnl Run any user-specified action, or abort.
792
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
795
dnl Query Python for its version number. Getting [:3] seems to be
796
dnl the best way to do this; it's what "site.py" does in the standard
799
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
800
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
801
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
803
dnl Use the values of $prefix and $exec_prefix for the corresponding
804
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
805
dnl distinct variables so they can be overridden if need be. However,
806
dnl general consensus is that you shouldn't need this ability.
808
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
809
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
811
dnl At times (like when building shared libraries) you may want
812
dnl to know which OS platform Python thinks this is.
814
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
815
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
816
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
819
dnl Set up 4 directories:
821
dnl pythondir -- where to install python scripts. This is the
822
dnl site-packages directory, not the python standard library
823
dnl directory like in previous automake betas. This behavior
824
dnl is more consistent with lispdir.m4 for example.
825
dnl Query distutils for this directory. distutils does not exist in
826
dnl Python 1.5, so we fall back to the hardcoded directory if it
828
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
829
[am_cv_python_pythondir],
830
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
831
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
832
AC_SUBST([pythondir], [$am_cv_python_pythondir])
834
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
835
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
836
dnl more consistent with the rest of automake.
838
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
840
dnl pyexecdir -- directory for installing python extension modules
841
dnl (shared libraries)
842
dnl Query distutils for this directory. distutils does not exist in
843
dnl Python 1.5, so we fall back to the hardcoded directory if it
845
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
846
[am_cv_python_pyexecdir],
847
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
848
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
849
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
851
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
853
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
855
dnl Run any user-specified action.
862
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
863
# ---------------------------------------------------------------------------
864
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
865
# Run ACTION-IF-FALSE otherwise.
866
# This test uses sys.hexversion instead of the string equivalent (first
867
# word of sys.version), in order to cope with versions such as 2.2c1.
868
# hexversion has been introduced in Python 1.5.2; it's probably not
869
# worth to support older versions (1.5.1 was released on October 31, 1998).
870
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
871
[prog="import sys, string
872
# split strings by '.' and convert to numeric. Append some zeros
873
# because we need at least 4 digits for the hex conversion.
874
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
876
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
877
sys.exit(sys.hexversion < minverhex)"
878
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
880
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
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.
886
# AM_RUN_LOG(COMMAND)
887
# -------------------
888
# Run COMMAND, save the exit status in ac_status, and log it.
889
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
890
AC_DEFUN([AM_RUN_LOG],
891
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
892
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
894
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
895
(exit $ac_status); }])
897
# Check to make sure that the build environment is sane. -*- Autoconf -*-
899
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
900
# Free Software Foundation, Inc.
902
# This file is free software; the Free Software Foundation
903
# gives unlimited permission to copy and/or distribute it,
904
# with or without modifications, as long as this notice is preserved.
910
AC_DEFUN([AM_SANITY_CHECK],
911
[AC_MSG_CHECKING([whether build environment is sane])
914
echo timestamp > conftest.file
915
# Do `set' in a subshell so we don't clobber the current shell's
916
# arguments. Must try -L first in case configure is actually a
917
# symlink; some systems play weird games with the mod time of symlinks
918
# (eg FreeBSD returns the mod time of the symlink's containing
921
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
922
if test "$[*]" = "X"; then
924
set X `ls -t $srcdir/configure conftest.file`
927
if test "$[*]" != "X $srcdir/configure conftest.file" \
928
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
930
# If neither matched, then we have a broken ls. This can happen
931
# if, for instance, CONFIG_SHELL is bash and it inherits a
932
# broken ls alias from the environment. This has actually
933
# happened. Such a system could not be considered "sane".
934
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
935
alias in your environment])
938
test "$[2]" = conftest.file
944
AC_MSG_ERROR([newly created file is older than distributed files!
945
Check your system clock])
949
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
951
# This file is free software; the Free Software Foundation
952
# gives unlimited permission to copy and/or distribute it,
953
# with or without modifications, as long as this notice is preserved.
955
# AM_PROG_INSTALL_STRIP
956
# ---------------------
957
# One issue with vendor `install' (even GNU) is that you can't
958
# specify the program used to strip binaries. This is especially
959
# annoying in cross-compiling environments, where the build's strip
960
# is unlikely to handle the host's binaries.
961
# Fortunately install-sh will honor a STRIPPROG variable, so we
962
# always use install-sh in `make install-strip', and initialize
963
# STRIPPROG with the value of the STRIP variable (set by the user).
964
AC_DEFUN([AM_PROG_INSTALL_STRIP],
965
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
966
# Installed binaries are usually stripped using `strip' when the user
967
# run `make install-strip'. However `strip' might not be the right
968
# tool to use in cross-compilation environments, therefore Automake
969
# will honor the `STRIP' environment variable to overrule this program.
970
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
971
if test "$cross_compiling" != no; then
972
AC_CHECK_TOOL([STRIP], [strip], :)
974
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
975
AC_SUBST([INSTALL_STRIP_PROGRAM])])
977
# Copyright (C) 2006 Free Software Foundation, Inc.
979
# This file is free software; the Free Software Foundation
980
# gives unlimited permission to copy and/or distribute it,
981
# with or without modifications, as long as this notice is preserved.
983
# _AM_SUBST_NOTMAKE(VARIABLE)
984
# ---------------------------
985
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
986
# This macro is traced by Automake.
987
AC_DEFUN([_AM_SUBST_NOTMAKE])
989
# Check how to create a tarball. -*- Autoconf -*-
991
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
993
# This file is free software; the Free Software Foundation
994
# gives unlimited permission to copy and/or distribute it,
995
# with or without modifications, as long as this notice is preserved.
999
# _AM_PROG_TAR(FORMAT)
1000
# --------------------
1001
# Check how to create a tarball in format FORMAT.
1002
# FORMAT should be one of `v7', `ustar', or `pax'.
1004
# Substitute a variable $(am__tar) that is a command
1005
# writing to stdout a FORMAT-tarball containing the directory
1007
# tardir=directory && $(am__tar) > result.tar
1009
# Substitute a variable $(am__untar) that extract such
1010
# a tarball read from stdin.
1011
# $(am__untar) < result.tar
1012
AC_DEFUN([_AM_PROG_TAR],
1013
[# Always define AMTAR for backward compatibility.
1014
AM_MISSING_PROG([AMTAR], [tar])
1016
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1017
[m4_case([$1], [ustar],, [pax],,
1018
[m4_fatal([Unknown tar format])])
1019
AC_MSG_CHECKING([how to create a $1 tar archive])
1020
# Loop over all known methods to create a tar archive until one works.
1021
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1022
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1023
# Do not fold the above two line into one, because Tru64 sh and
1024
# Solaris sh will not grok spaces in the rhs of `-'.
1025
for _am_tool in $_am_tools
1029
for _am_tar in tar gnutar gtar;
1031
AM_RUN_LOG([$_am_tar --version]) && break
1033
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1034
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1035
am__untar="$_am_tar -xf -"
1038
# Must skip GNU tar: if it does not support --format= it doesn't create
1039
# ustar tarball either.
1040
(tar --version) >/dev/null 2>&1 && continue
1041
am__tar='tar chf - "$$tardir"'
1042
am__tar_='tar chf - "$tardir"'
1043
am__untar='tar xf -'
1046
am__tar='pax -L -x $1 -w "$$tardir"'
1047
am__tar_='pax -L -x $1 -w "$tardir"'
1051
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1052
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1053
am__untar='cpio -i -H $1 -d'
1062
# If the value was cached, stop now. We just wanted to have am__tar
1063
# and am__untar set.
1064
test -n "${am_cv_prog_tar_$1}" && break
1066
# tar/untar a dummy directory, and stop if the command works
1069
echo GrepMe > conftest.dir/file
1070
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1072
if test -s conftest.tar; then
1073
AM_RUN_LOG([$am__untar <conftest.tar])
1074
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1079
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1080
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1082
AC_SUBST([am__untar])
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
1085
22
dnl AM_GCONF_SOURCE_2
1086
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
8250
7445
])# PKG_CHECK_MODULES
7447
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
7449
# This file is free software; the Free Software Foundation
7450
# gives unlimited permission to copy and/or distribute it,
7451
# with or without modifications, as long as this notice is preserved.
7453
# AM_AUTOMAKE_VERSION(VERSION)
7454
# ----------------------------
7455
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7456
# generated from the m4 files accompanying Automake X.Y.
7457
# (This private macro should not be called outside this file.)
7458
AC_DEFUN([AM_AUTOMAKE_VERSION],
7459
[am__api_version='1.10'
7460
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7461
dnl require some minimum version. Point them to the right macro.
7462
m4_if([$1], [1.10.1], [],
7463
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7466
# _AM_AUTOCONF_VERSION(VERSION)
7467
# -----------------------------
7468
# aclocal traces this macro to find the Autoconf version.
7469
# This is a private macro too. Using m4_define simplifies
7470
# the logic in aclocal, which can simply ignore this definition.
7471
m4_define([_AM_AUTOCONF_VERSION], [])
7473
# AM_SET_CURRENT_AUTOMAKE_VERSION
7474
# -------------------------------
7475
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7476
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7477
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7478
[AM_AUTOMAKE_VERSION([1.10.1])dnl
7479
m4_ifndef([AC_AUTOCONF_VERSION],
7480
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7481
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
7483
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7485
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7487
# This file is free software; the Free Software Foundation
7488
# gives unlimited permission to copy and/or distribute it,
7489
# with or without modifications, as long as this notice is preserved.
7491
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7492
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7493
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7495
# Of course, Automake must honor this variable whenever it calls a
7496
# tool from the auxiliary directory. The problem is that $srcdir (and
7497
# therefore $ac_aux_dir as well) can be either absolute or relative,
7498
# depending on how configure is run. This is pretty annoying, since
7499
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7500
# source directory, any form will work fine, but in subdirectories a
7501
# relative path needs to be adjusted first.
7503
# $ac_aux_dir/missing
7504
# fails when called from a subdirectory if $ac_aux_dir is relative
7505
# $top_srcdir/$ac_aux_dir/missing
7506
# fails if $ac_aux_dir is absolute,
7507
# fails when called from a subdirectory in a VPATH build with
7508
# a relative $ac_aux_dir
7510
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7511
# are both prefixed by $srcdir. In an in-source build this is usually
7512
# harmless because $srcdir is `.', but things will broke when you
7513
# start a VPATH build or use an absolute $srcdir.
7515
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7516
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7517
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7518
# and then we would define $MISSING as
7519
# MISSING="\${SHELL} $am_aux_dir/missing"
7520
# This will work as long as MISSING is not called from configure, because
7521
# unfortunately $(top_srcdir) has no meaning in configure.
7522
# However there are other variables, like CC, which are often used in
7523
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7525
# Another solution, used here, is to always expand $ac_aux_dir to an
7526
# absolute PATH. The drawback is that using absolute paths prevent a
7527
# configured tree to be moved without reconfiguration.
7529
AC_DEFUN([AM_AUX_DIR_EXPAND],
7530
[dnl Rely on autoconf to set up CDPATH properly.
7531
AC_PREREQ([2.50])dnl
7532
# expand $ac_aux_dir to an absolute path
7533
am_aux_dir=`cd $ac_aux_dir && pwd`
7536
# AM_CONDITIONAL -*- Autoconf -*-
7538
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7539
# Free Software Foundation, Inc.
7541
# This file is free software; the Free Software Foundation
7542
# gives unlimited permission to copy and/or distribute it,
7543
# with or without modifications, as long as this notice is preserved.
7547
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7548
# -------------------------------------
7549
# Define a conditional.
7550
AC_DEFUN([AM_CONDITIONAL],
7552
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7553
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7554
AC_SUBST([$1_TRUE])dnl
7555
AC_SUBST([$1_FALSE])dnl
7556
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7557
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7565
AC_CONFIG_COMMANDS_PRE(
7566
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7567
AC_MSG_ERROR([[conditional "$1" was never defined.
7568
Usually this means the macro was only invoked conditionally.]])
7571
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7572
# Free Software Foundation, Inc.
7574
# This file is free software; the Free Software Foundation
7575
# gives unlimited permission to copy and/or distribute it,
7576
# with or without modifications, as long as this notice is preserved.
7580
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7581
# written in clear, in which case automake, when reading aclocal.m4,
7582
# will think it sees a *use*, and therefore will trigger all it's
7583
# C support machinery. Also note that it means that autoscan, seeing
7584
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7587
# _AM_DEPENDENCIES(NAME)
7588
# ----------------------
7589
# See how the compiler implements dependency checking.
7590
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7591
# We try a few techniques and use that to set a single cache variable.
7593
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7594
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7595
# dependency, and given that the user is not expected to run this macro,
7596
# just rely on AC_PROG_CC.
7597
AC_DEFUN([_AM_DEPENDENCIES],
7598
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7599
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7600
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7601
AC_REQUIRE([AM_DEP_TRACK])dnl
7603
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7604
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7605
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7606
[$1], UPC, [depcc="$UPC" am_compiler_list=],
7607
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7608
[depcc="$$1" am_compiler_list=])
7610
AC_CACHE_CHECK([dependency style of $depcc],
7611
[am_cv_$1_dependencies_compiler_type],
7612
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7613
# We make a subdir and do the tests there. Otherwise we can end up
7614
# making bogus files that we don't know about and never remove. For
7615
# instance it was reported that on HP-UX the gcc test will end up
7616
# making a dummy file named `D' -- because `-MD' means `put the output
7619
# Copy depcomp to subdir because otherwise we won't find it if we're
7620
# using a relative directory.
7621
cp "$am_depcomp" conftest.dir
7623
# We will build objects and dependencies in a subdirectory because
7624
# it helps to detect inapplicable dependency modes. For instance
7625
# both Tru64's cc and ICC support -MD to output dependencies as a
7626
# side effect of compilation, but ICC will put the dependencies in
7627
# the current directory while Tru64 will put them in the object
7631
am_cv_$1_dependencies_compiler_type=none
7632
if test "$am_compiler_list" = ""; then
7633
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7635
for depmode in $am_compiler_list; do
7636
# Setup a source with many dependencies, because some compilers
7637
# like to wrap large dependency lists on column 80 (with \), and
7638
# we should not choose a depcomp mode which is confused by this.
7640
# We need to recreate these files for each test, as the compiler may
7641
# overwrite some of them when testing with obscure command lines.
7642
# This happens at least with the AIX C compiler.
7644
for i in 1 2 3 4 5 6; do
7645
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7646
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7647
# Solaris 8's {/usr,}/bin/sh.
7648
touch sub/conftst$i.h
7650
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7654
# after this tag, mechanisms are not by side-effect, so they'll
7655
# only be used when explicitly requested
7656
if test "x$enable_dependency_tracking" = xyes; then
7664
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7665
# mode. It turns out that the SunPro C++ compiler does not properly
7666
# handle `-M -o', and we need to detect this.
7667
if depmode=$depmode \
7668
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7669
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7670
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7671
>/dev/null 2>conftest.err &&
7672
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7673
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7674
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7675
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7676
# icc doesn't choke on unknown options, it will just issue warnings
7677
# or remarks (even with -Werror). So we grep stderr for any message
7678
# that says an option was ignored or not supported.
7679
# When given -MP, icc 7.0 and 7.1 complain thusly:
7680
# icc: Command line warning: ignoring option '-M'; no argument required
7681
# The diagnosis changed in icc 8.0:
7682
# icc: Command line remark: option '-MP' not supported
7683
if (grep 'ignoring option' conftest.err ||
7684
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7685
am_cv_$1_dependencies_compiler_type=$depmode
7694
am_cv_$1_dependencies_compiler_type=none
7697
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7698
AM_CONDITIONAL([am__fastdep$1], [
7699
test "x$enable_dependency_tracking" != xno \
7700
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7706
# Choose a directory name for dependency files.
7707
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7708
AC_DEFUN([AM_SET_DEPDIR],
7709
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7710
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7716
AC_DEFUN([AM_DEP_TRACK],
7717
[AC_ARG_ENABLE(dependency-tracking,
7718
[ --disable-dependency-tracking speeds up one-time build
7719
--enable-dependency-tracking do not reject slow dependency extractors])
7720
if test "x$enable_dependency_tracking" != xno; then
7721
am_depcomp="$ac_aux_dir/depcomp"
7724
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7725
AC_SUBST([AMDEPBACKSLASH])dnl
7726
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7729
# Generate code to set up dependency tracking. -*- Autoconf -*-
7731
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7732
# Free Software Foundation, Inc.
7734
# This file is free software; the Free Software Foundation
7735
# gives unlimited permission to copy and/or distribute it,
7736
# with or without modifications, as long as this notice is preserved.
7740
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7741
# ------------------------------
7742
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7743
[for mf in $CONFIG_FILES; do
7744
# Strip MF so we end up with the name of the file.
7745
mf=`echo "$mf" | sed -e 's/:.*$//'`
7746
# Check whether this is an Automake generated Makefile or not.
7747
# We used to match only the files named `Makefile.in', but
7748
# some people rename them; so instead we look at the file content.
7749
# Grep'ing the first line is not enough: some people post-process
7750
# each Makefile.in and add a new line on top of each file to say so.
7751
# Grep'ing the whole file is not good either: AIX grep has a line
7752
# limit of 2048, but all sed's we know have understand at least 4000.
7753
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7754
dirpart=`AS_DIRNAME("$mf")`
7758
# Extract the definition of DEPDIR, am__include, and am__quote
7759
# from the Makefile without running `make'.
7760
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7761
test -z "$DEPDIR" && continue
7762
am__include=`sed -n 's/^am__include = //p' < "$mf"`
7763
test -z "am__include" && continue
7764
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7765
# When using ansi2knr, U may be empty or an underscore; expand it
7766
U=`sed -n 's/^U = //p' < "$mf"`
7767
# Find all dependency output files, they are included files with
7768
# $(DEPDIR) in their names. We invoke sed twice because it is the
7769
# simplest approach to changing $(DEPDIR) to its actual value in the
7771
for file in `sed -n "
7772
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7773
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7774
# Make sure the directory exists.
7775
test -f "$dirpart/$file" && continue
7776
fdir=`AS_DIRNAME(["$file"])`
7777
AS_MKDIR_P([$dirpart/$fdir])
7778
# echo "creating $dirpart/$file"
7779
echo '# dummy' > "$dirpart/$file"
7782
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7785
# AM_OUTPUT_DEPENDENCY_COMMANDS
7786
# -----------------------------
7787
# This macro should only be invoked once -- use via AC_REQUIRE.
7789
# This code is only required when automatic dependency tracking
7790
# is enabled. FIXME. This creates each `.P' file that we will
7791
# need in order to bootstrap the dependency handling code.
7792
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7793
[AC_CONFIG_COMMANDS([depfiles],
7794
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7795
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7798
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7799
# Free Software Foundation, Inc.
7801
# This file is free software; the Free Software Foundation
7802
# gives unlimited permission to copy and/or distribute it,
7803
# with or without modifications, as long as this notice is preserved.
7807
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7808
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7810
# Do all the work for Automake. -*- Autoconf -*-
7812
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7813
# 2005, 2006, 2008 Free Software Foundation, Inc.
7815
# This file is free software; the Free Software Foundation
7816
# gives unlimited permission to copy and/or distribute it,
7817
# with or without modifications, as long as this notice is preserved.
7821
# This macro actually does too much. Some checks are only needed if
7822
# your package does certain things. But this isn't really a big deal.
7824
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7825
# AM_INIT_AUTOMAKE([OPTIONS])
7826
# -----------------------------------------------
7827
# The call with PACKAGE and VERSION arguments is the old style
7828
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7829
# and VERSION should now be passed to AC_INIT and removed from
7830
# the call to AM_INIT_AUTOMAKE.
7831
# We support both call styles for the transition. After
7832
# the next Automake release, Autoconf can make the AC_INIT
7833
# arguments mandatory, and then we can depend on a new Autoconf
7834
# release and drop the old call support.
7835
AC_DEFUN([AM_INIT_AUTOMAKE],
7836
[AC_PREREQ([2.60])dnl
7837
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7838
dnl the ones we care about.
7839
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7840
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7841
AC_REQUIRE([AC_PROG_INSTALL])dnl
7842
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7843
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7844
# is not polluted with repeated "-I."
7845
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7846
# test to see if srcdir already configured
7847
if test -f $srcdir/config.status; then
7848
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7852
# test whether we have cygpath
7853
if test -z "$CYGPATH_W"; then
7854
if (cygpath --version) >/dev/null 2>/dev/null; then
7855
CYGPATH_W='cygpath -w'
7860
AC_SUBST([CYGPATH_W])
7862
# Define the identity of the package.
7863
dnl Distinguish between old-style and new-style calls.
7865
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7866
AC_SUBST([PACKAGE], [$1])dnl
7867
AC_SUBST([VERSION], [$2])],
7868
[_AM_SET_OPTIONS([$1])dnl
7869
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7870
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7871
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7872
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7873
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7875
_AM_IF_OPTION([no-define],,
7876
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7877
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7879
# Some tools Automake needs.
7880
AC_REQUIRE([AM_SANITY_CHECK])dnl
7881
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7882
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7883
AM_MISSING_PROG(AUTOCONF, autoconf)
7884
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7885
AM_MISSING_PROG(AUTOHEADER, autoheader)
7886
AM_MISSING_PROG(MAKEINFO, makeinfo)
7888
AM_PROG_INSTALL_STRIP
7889
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7890
# We need awk for the "check" target. The system "awk" is bad on
7892
AC_REQUIRE([AC_PROG_AWK])dnl
7893
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7894
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7895
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7896
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7897
[_AM_PROG_TAR([v7])])])
7898
_AM_IF_OPTION([no-dependencies],,
7899
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7900
[_AM_DEPENDENCIES(CC)],
7901
[define([AC_PROG_CC],
7902
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7903
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7904
[_AM_DEPENDENCIES(CXX)],
7905
[define([AC_PROG_CXX],
7906
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7907
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7908
[_AM_DEPENDENCIES(OBJC)],
7909
[define([AC_PROG_OBJC],
7910
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7915
# When config.status generates a header, we must update the stamp-h file.
7916
# This file resides in the same directory as the config header
7917
# that is generated. The stamp files are numbered to have different names.
7919
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7920
# loop where config.status creates the headers, so we can generate
7921
# our stamp files there.
7922
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7923
[# Compute $1's index in $config_headers.
7926
for _am_header in $config_headers :; do
7928
$_am_arg | $_am_arg:* )
7931
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7934
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7936
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7938
# This file is free software; the Free Software Foundation
7939
# gives unlimited permission to copy and/or distribute it,
7940
# with or without modifications, as long as this notice is preserved.
7942
# AM_PROG_INSTALL_SH
7943
# ------------------
7944
# Define $install_sh.
7945
AC_DEFUN([AM_PROG_INSTALL_SH],
7946
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7947
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7948
AC_SUBST(install_sh)])
7950
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7952
# This file is free software; the Free Software Foundation
7953
# gives unlimited permission to copy and/or distribute it,
7954
# with or without modifications, as long as this notice is preserved.
7958
# Check whether the underlying file-system supports filenames
7959
# with a leading dot. For instance MS-DOS doesn't.
7960
AC_DEFUN([AM_SET_LEADING_DOT],
7961
[rm -rf .tst 2>/dev/null
7962
mkdir .tst 2>/dev/null
7963
if test -d .tst; then
7968
rmdir .tst 2>/dev/null
7969
AC_SUBST([am__leading_dot])])
7971
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7974
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7975
# Free Software Foundation, Inc.
7977
# This file is free software; the Free Software Foundation
7978
# gives unlimited permission to copy and/or distribute it,
7979
# with or without modifications, as long as this notice is preserved.
7983
AC_DEFUN([AM_MAINTAINER_MODE],
7984
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7985
dnl maintainer-mode is disabled by default
7986
AC_ARG_ENABLE(maintainer-mode,
7987
[ --enable-maintainer-mode enable make rules and dependencies not useful
7988
(and sometimes confusing) to the casual installer],
7989
USE_MAINTAINER_MODE=$enableval,
7990
USE_MAINTAINER_MODE=no)
7991
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7992
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7993
MAINT=$MAINTAINER_MODE_TRUE
7998
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8000
# Check to see how 'make' treats includes. -*- Autoconf -*-
8002
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8004
# This file is free software; the Free Software Foundation
8005
# gives unlimited permission to copy and/or distribute it,
8006
# with or without modifications, as long as this notice is preserved.
8012
# Check to see how make treats includes.
8013
AC_DEFUN([AM_MAKE_INCLUDE],
8014
[am_make=${MAKE-make}
8015
cat > confinc << 'END'
8020
# If we don't find an include directive, just comment out the code.
8021
AC_MSG_CHECKING([for style of include used by $am_make])
8025
# First try GNU make style include.
8026
echo "include confinc" > confmf
8027
# We grep out `Entering directory' and `Leaving directory'
8028
# messages which can occur if `w' ends up in MAKEFLAGS.
8029
# In particular we don't look at `^make:' because GNU make might
8030
# be invoked under some other name (usually "gmake"), in which
8031
# case it prints its new name instead of `make'.
8032
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8037
# Now try BSD make style include.
8038
if test "$am__include" = "#"; then
8039
echo '.include "confinc"' > confmf
8040
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8041
am__include=.include
8046
AC_SUBST([am__include])
8047
AC_SUBST([am__quote])
8048
AC_MSG_RESULT([$_am_result])
8049
rm -f confinc confmf
8052
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8054
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8055
# Free Software Foundation, Inc.
8057
# This file is free software; the Free Software Foundation
8058
# gives unlimited permission to copy and/or distribute it,
8059
# with or without modifications, as long as this notice is preserved.
8063
# AM_MISSING_PROG(NAME, PROGRAM)
8064
# ------------------------------
8065
AC_DEFUN([AM_MISSING_PROG],
8066
[AC_REQUIRE([AM_MISSING_HAS_RUN])
8067
$1=${$1-"${am_missing_run}$2"}
8071
# AM_MISSING_HAS_RUN
8072
# ------------------
8073
# Define MISSING if not defined so far and test if it supports --run.
8074
# If it does, set am_missing_run to use it, otherwise, to nothing.
8075
AC_DEFUN([AM_MISSING_HAS_RUN],
8076
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8077
AC_REQUIRE_AUX_FILE([missing])dnl
8078
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8079
# Use eval to expand $SHELL
8080
if eval "$MISSING --run true"; then
8081
am_missing_run="$MISSING --run "
8084
AC_MSG_WARN([`missing' script is too old or missing])
8088
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8090
# This file is free software; the Free Software Foundation
8091
# gives unlimited permission to copy and/or distribute it,
8092
# with or without modifications, as long as this notice is preserved.
8096
# Check for `mkdir -p'.
8097
AC_DEFUN([AM_PROG_MKDIR_P],
8098
[AC_PREREQ([2.60])dnl
8099
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8100
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8101
dnl while keeping a definition of mkdir_p for backward compatibility.
8102
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8103
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8104
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8105
dnl adjustment using top_builddir (which is defined more often than
8107
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8109
[[\\/$]]* | ?:[[\\/]]*) ;;
8110
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8114
# Helper functions for option handling. -*- Autoconf -*-
8116
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8118
# This file is free software; the Free Software Foundation
8119
# gives unlimited permission to copy and/or distribute it,
8120
# with or without modifications, as long as this notice is preserved.
8124
# _AM_MANGLE_OPTION(NAME)
8125
# -----------------------
8126
AC_DEFUN([_AM_MANGLE_OPTION],
8127
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8129
# _AM_SET_OPTION(NAME)
8130
# ------------------------------
8131
# Set option NAME. Presently that only means defining a flag for this option.
8132
AC_DEFUN([_AM_SET_OPTION],
8133
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8135
# _AM_SET_OPTIONS(OPTIONS)
8136
# ----------------------------------
8137
# OPTIONS is a space-separated list of Automake options.
8138
AC_DEFUN([_AM_SET_OPTIONS],
8139
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8141
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8142
# -------------------------------------------
8143
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8144
AC_DEFUN([_AM_IF_OPTION],
8145
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8148
# Free Software Foundation, Inc.
8150
# This file is free software; the Free Software Foundation
8151
# gives unlimited permission to copy and/or distribute it,
8152
# with or without modifications, as long as this notice is preserved.
8154
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8155
# ---------------------------------------------------------------------------
8156
# Adds support for distributing Python modules and packages. To
8157
# install modules, copy them to $(pythondir), using the python_PYTHON
8158
# automake variable. To install a package with the same name as the
8159
# automake package, install to $(pkgpythondir), or use the
8160
# pkgpython_PYTHON automake variable.
8162
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
8163
# locations to install python extension modules (shared libraries).
8164
# Another macro is required to find the appropriate flags to compile
8165
# extension modules.
8167
# If your package is configured with a different prefix to python,
8168
# users will have to add the install directory to the PYTHONPATH
8169
# environment variable, or create a .pth file (see the python
8170
# documentation for details).
8172
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
8173
# cause an error if the version of python installed on the system
8174
# doesn't meet the requirement. MINIMUM-VERSION should consist of
8175
# numbers and dots only.
8176
AC_DEFUN([AM_PATH_PYTHON],
8178
dnl Find a Python interpreter. Python versions prior to 1.5 are not
8179
dnl supported because the default installation locations changed from
8180
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
8182
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
8183
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
8184
python2.1 python2.0 python1.6 python1.5])
8187
dnl No version check is needed.
8188
# Find any Python interpreter.
8189
if test -z "$PYTHON"; then
8190
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
8192
am_display_PYTHON=python
8194
dnl A version check is needed.
8195
if test -n "$PYTHON"; then
8196
# If the user set $PYTHON, use it and don't search something else.
8197
AC_MSG_CHECKING([whether $PYTHON version >= $1])
8198
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
8199
[AC_MSG_RESULT(yes)],
8200
[AC_MSG_ERROR(too old)])
8201
am_display_PYTHON=$PYTHON
8203
# Otherwise, try each interpreter until we find one that satisfies
8205
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
8206
[am_cv_pathless_PYTHON],[
8207
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
8208
test "$am_cv_pathless_PYTHON" = none && break
8209
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
8211
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8212
if test "$am_cv_pathless_PYTHON" = none; then
8215
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
8217
am_display_PYTHON=$am_cv_pathless_PYTHON
8221
if test "$PYTHON" = :; then
8222
dnl Run any user-specified action, or abort.
8223
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
8226
dnl Query Python for its version number. Getting [:3] seems to be
8227
dnl the best way to do this; it's what "site.py" does in the standard
8230
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
8231
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
8232
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
8234
dnl Use the values of $prefix and $exec_prefix for the corresponding
8235
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
8236
dnl distinct variables so they can be overridden if need be. However,
8237
dnl general consensus is that you shouldn't need this ability.
8239
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
8240
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
8242
dnl At times (like when building shared libraries) you may want
8243
dnl to know which OS platform Python thinks this is.
8245
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
8246
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
8247
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
8250
dnl Set up 4 directories:
8252
dnl pythondir -- where to install python scripts. This is the
8253
dnl site-packages directory, not the python standard library
8254
dnl directory like in previous automake betas. This behavior
8255
dnl is more consistent with lispdir.m4 for example.
8256
dnl Query distutils for this directory. distutils does not exist in
8257
dnl Python 1.5, so we fall back to the hardcoded directory if it
8259
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
8260
[am_cv_python_pythondir],
8261
[am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
8262
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
8263
AC_SUBST([pythondir], [$am_cv_python_pythondir])
8265
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
8266
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
8267
dnl more consistent with the rest of automake.
8269
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
8271
dnl pyexecdir -- directory for installing python extension modules
8272
dnl (shared libraries)
8273
dnl Query distutils for this directory. distutils does not exist in
8274
dnl Python 1.5, so we fall back to the hardcoded directory if it
8276
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
8277
[am_cv_python_pyexecdir],
8278
[am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
8279
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
8280
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
8282
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
8284
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
8286
dnl Run any user-specified action.
8293
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
8294
# ---------------------------------------------------------------------------
8295
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
8296
# Run ACTION-IF-FALSE otherwise.
8297
# This test uses sys.hexversion instead of the string equivalent (first
8298
# word of sys.version), in order to cope with versions such as 2.2c1.
8299
# hexversion has been introduced in Python 1.5.2; it's probably not
8300
# worth to support older versions (1.5.1 was released on October 31, 1998).
8301
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
8302
[prog="import sys, string
8303
# split strings by '.' and convert to numeric. Append some zeros
8304
# because we need at least 4 digits for the hex conversion.
8305
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
8307
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
8308
sys.exit(sys.hexversion < minverhex)"
8309
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
8311
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8313
# This file is free software; the Free Software Foundation
8314
# gives unlimited permission to copy and/or distribute it,
8315
# with or without modifications, as long as this notice is preserved.
8317
# AM_RUN_LOG(COMMAND)
8318
# -------------------
8319
# Run COMMAND, save the exit status in ac_status, and log it.
8320
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
8321
AC_DEFUN([AM_RUN_LOG],
8322
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
8323
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
8325
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
8326
(exit $ac_status); }])
8328
# Check to make sure that the build environment is sane. -*- Autoconf -*-
8330
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8331
# Free Software Foundation, Inc.
8333
# This file is free software; the Free Software Foundation
8334
# gives unlimited permission to copy and/or distribute it,
8335
# with or without modifications, as long as this notice is preserved.
8341
AC_DEFUN([AM_SANITY_CHECK],
8342
[AC_MSG_CHECKING([whether build environment is sane])
8345
echo timestamp > conftest.file
8346
# Do `set' in a subshell so we don't clobber the current shell's
8347
# arguments. Must try -L first in case configure is actually a
8348
# symlink; some systems play weird games with the mod time of symlinks
8349
# (eg FreeBSD returns the mod time of the symlink's containing
8352
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8353
if test "$[*]" = "X"; then
8355
set X `ls -t $srcdir/configure conftest.file`
8358
if test "$[*]" != "X $srcdir/configure conftest.file" \
8359
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8361
# If neither matched, then we have a broken ls. This can happen
8362
# if, for instance, CONFIG_SHELL is bash and it inherits a
8363
# broken ls alias from the environment. This has actually
8364
# happened. Such a system could not be considered "sane".
8365
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8366
alias in your environment])
8369
test "$[2]" = conftest.file
8375
AC_MSG_ERROR([newly created file is older than distributed files!
8376
Check your system clock])
8378
AC_MSG_RESULT(yes)])
8380
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8382
# This file is free software; the Free Software Foundation
8383
# gives unlimited permission to copy and/or distribute it,
8384
# with or without modifications, as long as this notice is preserved.
8386
# AM_PROG_INSTALL_STRIP
8387
# ---------------------
8388
# One issue with vendor `install' (even GNU) is that you can't
8389
# specify the program used to strip binaries. This is especially
8390
# annoying in cross-compiling environments, where the build's strip
8391
# is unlikely to handle the host's binaries.
8392
# Fortunately install-sh will honor a STRIPPROG variable, so we
8393
# always use install-sh in `make install-strip', and initialize
8394
# STRIPPROG with the value of the STRIP variable (set by the user).
8395
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8396
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8397
# Installed binaries are usually stripped using `strip' when the user
8398
# run `make install-strip'. However `strip' might not be the right
8399
# tool to use in cross-compilation environments, therefore Automake
8400
# will honor the `STRIP' environment variable to overrule this program.
8401
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8402
if test "$cross_compiling" != no; then
8403
AC_CHECK_TOOL([STRIP], [strip], :)
8405
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8406
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8408
# Copyright (C) 2006 Free Software Foundation, Inc.
8410
# This file is free software; the Free Software Foundation
8411
# gives unlimited permission to copy and/or distribute it,
8412
# with or without modifications, as long as this notice is preserved.
8414
# _AM_SUBST_NOTMAKE(VARIABLE)
8415
# ---------------------------
8416
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8417
# This macro is traced by Automake.
8418
AC_DEFUN([_AM_SUBST_NOTMAKE])
8420
# Check how to create a tarball. -*- Autoconf -*-
8422
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8424
# This file is free software; the Free Software Foundation
8425
# gives unlimited permission to copy and/or distribute it,
8426
# with or without modifications, as long as this notice is preserved.
8430
# _AM_PROG_TAR(FORMAT)
8431
# --------------------
8432
# Check how to create a tarball in format FORMAT.
8433
# FORMAT should be one of `v7', `ustar', or `pax'.
8435
# Substitute a variable $(am__tar) that is a command
8436
# writing to stdout a FORMAT-tarball containing the directory
8438
# tardir=directory && $(am__tar) > result.tar
8440
# Substitute a variable $(am__untar) that extract such
8441
# a tarball read from stdin.
8442
# $(am__untar) < result.tar
8443
AC_DEFUN([_AM_PROG_TAR],
8444
[# Always define AMTAR for backward compatibility.
8445
AM_MISSING_PROG([AMTAR], [tar])
8447
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8448
[m4_case([$1], [ustar],, [pax],,
8449
[m4_fatal([Unknown tar format])])
8450
AC_MSG_CHECKING([how to create a $1 tar archive])
8451
# Loop over all known methods to create a tar archive until one works.
8452
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8453
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8454
# Do not fold the above two line into one, because Tru64 sh and
8455
# Solaris sh will not grok spaces in the rhs of `-'.
8456
for _am_tool in $_am_tools
8460
for _am_tar in tar gnutar gtar;
8462
AM_RUN_LOG([$_am_tar --version]) && break
8464
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8465
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8466
am__untar="$_am_tar -xf -"
8469
# Must skip GNU tar: if it does not support --format= it doesn't create
8470
# ustar tarball either.
8471
(tar --version) >/dev/null 2>&1 && continue
8472
am__tar='tar chf - "$$tardir"'
8473
am__tar_='tar chf - "$tardir"'
8474
am__untar='tar xf -'
8477
am__tar='pax -L -x $1 -w "$$tardir"'
8478
am__tar_='pax -L -x $1 -w "$tardir"'
8482
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8483
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8484
am__untar='cpio -i -H $1 -d'
8493
# If the value was cached, stop now. We just wanted to have am__tar
8494
# and am__untar set.
8495
test -n "${am_cv_prog_tar_$1}" && break
8497
# tar/untar a dummy directory, and stop if the command works
8500
echo GrepMe > conftest.dir/file
8501
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8503
if test -s conftest.tar; then
8504
AM_RUN_LOG([$am__untar <conftest.tar])
8505
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8510
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8511
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8513
AC_SUBST([am__untar])
8252
8516
m4_include([m4/ac-define-dir.m4])
8253
8517
m4_include([m4/acinclude.m4])
8254
8518
m4_include([m4/gnome-doc-utils.m4])