1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006 Free Software Foundation, Inc.
4
# 2005 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.
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.
14
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
21
16
# This file is free software; the Free Software Foundation
22
17
# gives unlimited permission to copy and/or distribute it,
26
21
# ----------------------------
27
22
# Automake X.Y traces this macro to ensure aclocal.m4 has been
28
23
# 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], [])
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
45
26
# AM_SET_CURRENT_AUTOMAKE_VERSION
46
27
# -------------------------------
47
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
48
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
49
30
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
50
[AM_AUTOMAKE_VERSION([1.10])dnl
51
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
31
[AM_AUTOMAKE_VERSION([1.9.6])])
53
33
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
106
86
# AM_CONDITIONAL -*- Autoconf -*-
108
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
88
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
109
89
# Free Software Foundation, Inc.
111
91
# This file is free software; the Free Software Foundation
112
92
# gives unlimited permission to copy and/or distribute it,
113
93
# with or without modifications, as long as this notice is preserved.
117
97
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
118
98
# -------------------------------------
138
116
Usually this means the macro was only invoked conditionally.]])
141
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
142
121
# Free Software Foundation, Inc.
144
123
# This file is free software; the Free Software Foundation
145
124
# gives unlimited permission to copy and/or distribute it,
146
125
# with or without modifications, as long as this notice is preserved.
150
129
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
151
130
# written in clear, in which case automake, when reading aclocal.m4,
173
152
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
174
153
[$1], CXX, [depcc="$CXX" am_compiler_list=],
175
154
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176
[$1], UPC, [depcc="$UPC" am_compiler_list=],
177
155
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
178
156
[depcc="$$1" am_compiler_list=])
318
294
# some people rename them; so instead we look at the file content.
319
295
# Grep'ing the first line is not enough: some people post-process
320
296
# 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
297
# So let's grep whole file.
298
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
324
299
dirpart=`AS_DIRNAME("$mf")`
380
355
# 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.
357
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
358
# Free Software Foundation, Inc.
385
360
# This file is free software; the Free Software Foundation
386
361
# gives unlimited permission to copy and/or distribute it,
403
378
# arguments mandatory, and then we can depend on a new Autoconf
404
379
# release and drop the old call support.
405
380
AC_DEFUN([AM_INIT_AUTOMAKE],
406
[AC_PREREQ([2.60])dnl
381
[AC_PREREQ([2.58])dnl
407
382
dnl Autoconf wants to disallow AM_ names. We explicitly allow
408
383
dnl the ones we care about.
409
384
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
410
385
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
411
386
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])
387
# test to see if srcdir already configured
388
if test "`cd $srcdir && pwd`" != "`pwd`" &&
389
test -f $srcdir/config.status; then
390
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
422
393
# test whether we have cygpath
436
407
AC_SUBST([PACKAGE], [$1])dnl
437
408
AC_SUBST([VERSION], [$2])],
438
409
[_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
410
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
443
411
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
592
556
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
594
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
558
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
595
559
# Free Software Foundation, Inc.
597
561
# This file is free software; the Free Software Foundation
598
562
# gives unlimited permission to copy and/or distribute it,
599
563
# with or without modifications, as long as this notice is preserved.
603
567
# AM_MISSING_PROG(NAME, PROGRAM)
604
568
# ------------------------------
614
578
# If it does, set am_missing_run to use it, otherwise, to nothing.
615
579
AC_DEFUN([AM_MISSING_HAS_RUN],
616
580
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
617
AC_REQUIRE_AUX_FILE([missing])dnl
618
581
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
619
582
# Use eval to expand $SHELL
620
583
if eval "$MISSING --run true"; then
628
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
591
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
630
593
# This file is free software; the Free Software Foundation
631
594
# gives unlimited permission to copy and/or distribute it,
634
597
# AM_PROG_MKDIR_P
635
598
# ---------------
636
# Check for `mkdir -p'.
599
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
601
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
602
# created by `make install' are always world readable, even if the
603
# installer happens to have an overly restrictive umask (e.g. 077).
604
# This was a mistake. There are at least two reasons why we must not
606
# - it causes special bits like SGID to be ignored,
607
# - it may be too restrictive (some setups expect 775 directories).
609
# Do not use -m 0755 and let people choose whatever they expect by
612
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
613
# Some implementations (such as Solaris 8's) are not thread-safe: if a
614
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
615
# concurrently, both version can detect that a/ is missing, but only
616
# one can create it and the other will error out. Consequently we
617
# restrict ourselves to GNU make (using the --version option ensures
637
619
AC_DEFUN([AM_PROG_MKDIR_P],
638
[AC_PREREQ([2.60])dnl
639
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
640
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
641
dnl while keeping a definition of mkdir_p for backward compatibility.
642
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
643
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
644
dnl Makefile.ins that do not define MKDIR_P, so we do our own
645
dnl adjustment using top_builddir (which is defined more often than
647
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
649
[[\\/$]]* | ?:[[\\/]]*) ;;
650
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
620
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
621
# We used to keeping the `.' as first argument, in order to
622
# allow $(mkdir_p) to be used without argument. As in
623
# $(mkdir_p) $(somedir)
624
# where $(somedir) is conditionally defined. However this is wrong
626
# 1. if the package is installed by a user who cannot write `.'
627
# make install will fail,
628
# 2. the above comment should most certainly read
629
# $(mkdir_p) $(DESTDIR)$(somedir)
630
# so it does not work when $(somedir) is undefined and
632
# To support the latter case, we have to write
633
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
634
# so the `.' trick is pointless.
635
mkdir_p='mkdir -p --'
637
# On NextStep and OpenStep, the `mkdir' command does not
638
# recognize any option. It will interpret all options as
639
# directories to create, and then abort because `.' already
641
for d in ./-p ./--version;
643
test -d $d && rmdir $d
645
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
646
if test -f "$ac_aux_dir/mkinstalldirs"; then
647
mkdir_p='$(mkinstalldirs)'
649
mkdir_p='$(install_sh) -d'
652
AC_SUBST([mkdir_p])])
654
654
# Helper functions for option handling. -*- Autoconf -*-
761
761
if test "$cross_compiling" != no; then
762
762
AC_CHECK_TOOL([STRIP], [strip], :)
764
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
764
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
765
765
AC_SUBST([INSTALL_STRIP_PROGRAM])])
767
# Copyright (C) 2006 Free Software Foundation, Inc.
769
# This file is free software; the Free Software Foundation
770
# gives unlimited permission to copy and/or distribute it,
771
# with or without modifications, as long as this notice is preserved.
773
# _AM_SUBST_NOTMAKE(VARIABLE)
774
# ---------------------------
775
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
776
# This macro is traced by Automake.
777
AC_DEFUN([_AM_SUBST_NOTMAKE])
779
767
# Check how to create a tarball. -*- Autoconf -*-
781
769
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.