8852
8848
# ----------------------------
8853
8849
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8854
8850
# generated from the m4 files accompanying Automake X.Y.
8855
# (This private macro should not be called outside this file.)
8856
AC_DEFUN([AM_AUTOMAKE_VERSION],
8857
[am__api_version='1.10'
8858
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8859
dnl require some minimum version. Point them to the right macro.
8860
m4_if([$1], [1.10.2], [],
8861
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8864
# _AM_AUTOCONF_VERSION(VERSION)
8865
# -----------------------------
8866
# aclocal traces this macro to find the Autoconf version.
8867
# This is a private macro too. Using m4_define simplifies
8868
# the logic in aclocal, which can simply ignore this definition.
8869
m4_define([_AM_AUTOCONF_VERSION], [])
8851
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
8871
8853
# AM_SET_CURRENT_AUTOMAKE_VERSION
8872
8854
# -------------------------------
8873
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8874
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8855
# Call AM_AUTOMAKE_VERSION so it can be traced.
8856
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8875
8857
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8876
[AM_AUTOMAKE_VERSION([1.10.2])dnl
8877
m4_ifndef([AC_AUTOCONF_VERSION],
8878
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8879
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8858
[AM_AUTOMAKE_VERSION([1.9.6])])
8881
8860
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8966
8943
Usually this means the macro was only invoked conditionally.]])
8969
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8947
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8970
8948
# Free Software Foundation, Inc.
8972
8950
# This file is free software; the Free Software Foundation
8973
8951
# gives unlimited permission to copy and/or distribute it,
8974
8952
# with or without modifications, as long as this notice is preserved.
8978
8956
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8979
8957
# written in clear, in which case automake, when reading aclocal.m4,
9120
9096
AMDEPBACKSLASH='\'
9122
9098
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9123
AC_SUBST([AMDEPBACKSLASH])dnl
9124
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9099
AC_SUBST([AMDEPBACKSLASH])
9127
9102
# Generate code to set up dependency tracking. -*- Autoconf -*-
9129
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9104
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9130
9105
# Free Software Foundation, Inc.
9132
9107
# This file is free software; the Free Software Foundation
9133
9108
# gives unlimited permission to copy and/or distribute it,
9134
9109
# with or without modifications, as long as this notice is preserved.
9138
9113
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9139
9114
# ------------------------------
9140
9115
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9142
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9143
# are listed without --file. Let's play safe and only enable the eval
9144
# if we detect the quoting.
9145
case $CONFIG_FILES in
9146
*\'*) eval set x "$CONFIG_FILES" ;;
9147
*) set x $CONFIG_FILES ;;
9152
# Strip MF so we end up with the name of the file.
9153
mf=`echo "$mf" | sed -e 's/:.*$//'`
9154
# Check whether this is an Automake generated Makefile or not.
9155
# We used to match only the files named `Makefile.in', but
9156
# some people rename them; so instead we look at the file content.
9157
# Grep'ing the first line is not enough: some people post-process
9158
# each Makefile.in and add a new line on top of each file to say so.
9159
# Grep'ing the whole file is not good either: AIX grep has a line
9160
# limit of 2048, but all sed's we know have understand at least 4000.
9161
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9162
dirpart=`AS_DIRNAME("$mf")`
9166
# Extract the definition of DEPDIR, am__include, and am__quote
9167
# from the Makefile without running `make'.
9168
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9169
test -z "$DEPDIR" && continue
9170
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9171
test -z "am__include" && continue
9172
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9173
# When using ansi2knr, U may be empty or an underscore; expand it
9174
U=`sed -n 's/^U = //p' < "$mf"`
9175
# Find all dependency output files, they are included files with
9176
# $(DEPDIR) in their names. We invoke sed twice because it is the
9177
# simplest approach to changing $(DEPDIR) to its actual value in the
9179
for file in `sed -n "
9180
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9181
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9182
# Make sure the directory exists.
9183
test -f "$dirpart/$file" && continue
9184
fdir=`AS_DIRNAME(["$file"])`
9185
AS_MKDIR_P([$dirpart/$fdir])
9186
# echo "creating $dirpart/$file"
9187
echo '# dummy' > "$dirpart/$file"
9116
[for mf in $CONFIG_FILES; do
9117
# Strip MF so we end up with the name of the file.
9118
mf=`echo "$mf" | sed -e 's/:.*$//'`
9119
# Check whether this is an Automake generated Makefile or not.
9120
# We used to match only the files named `Makefile.in', but
9121
# some people rename them; so instead we look at the file content.
9122
# Grep'ing the first line is not enough: some people post-process
9123
# each Makefile.in and add a new line on top of each file to say so.
9124
# So let's grep whole file.
9125
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9126
dirpart=`AS_DIRNAME("$mf")`
9130
# Extract the definition of DEPDIR, am__include, and am__quote
9131
# from the Makefile without running `make'.
9132
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9133
test -z "$DEPDIR" && continue
9134
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9135
test -z "am__include" && continue
9136
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9137
# When using ansi2knr, U may be empty or an underscore; expand it
9138
U=`sed -n 's/^U = //p' < "$mf"`
9139
# Find all dependency output files, they are included files with
9140
# $(DEPDIR) in their names. We invoke sed twice because it is the
9141
# simplest approach to changing $(DEPDIR) to its actual value in the
9143
for file in `sed -n "
9144
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9145
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9146
# Make sure the directory exists.
9147
test -f "$dirpart/$file" && continue
9148
fdir=`AS_DIRNAME(["$file"])`
9149
AS_MKDIR_P([$dirpart/$fdir])
9150
# echo "creating $dirpart/$file"
9151
echo '# dummy' > "$dirpart/$file"
9191
9154
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9219
9182
# Do all the work for Automake. -*- Autoconf -*-
9221
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9222
# 2005, 2006, 2008 Free Software Foundation, Inc.
9184
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
9185
# Free Software Foundation, Inc.
9224
9187
# This file is free software; the Free Software Foundation
9225
9188
# gives unlimited permission to copy and/or distribute it,
9226
9189
# with or without modifications, as long as this notice is preserved.
9230
9193
# This macro actually does too much. Some checks are only needed if
9231
9194
# your package does certain things. But this isn't really a big deal.
9242
9205
# arguments mandatory, and then we can depend on a new Autoconf
9243
9206
# release and drop the old call support.
9244
9207
AC_DEFUN([AM_INIT_AUTOMAKE],
9245
[AC_PREREQ([2.60])dnl
9208
[AC_PREREQ([2.58])dnl
9246
9209
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9247
9210
dnl the ones we care about.
9248
9211
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9249
9212
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9250
9213
AC_REQUIRE([AC_PROG_INSTALL])dnl
9251
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9252
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9253
# is not polluted with repeated "-I."
9254
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9255
# test to see if srcdir already configured
9256
if test -f $srcdir/config.status; then
9257
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9214
# test to see if srcdir already configured
9215
if test "`cd $srcdir && pwd`" != "`pwd`" &&
9216
test -f $srcdir/config.status; then
9217
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9261
9220
# test whether we have cygpath
9503
9453
# AM_PROG_MKDIR_P
9504
9454
# ---------------
9505
# Check for `mkdir -p'.
9455
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
9457
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
9458
# created by `make install' are always world readable, even if the
9459
# installer happens to have an overly restrictive umask (e.g. 077).
9460
# This was a mistake. There are at least two reasons why we must not
9462
# - it causes special bits like SGID to be ignored,
9463
# - it may be too restrictive (some setups expect 775 directories).
9465
# Do not use -m 0755 and let people choose whatever they expect by
9468
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
9469
# Some implementations (such as Solaris 8's) are not thread-safe: if a
9470
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
9471
# concurrently, both version can detect that a/ is missing, but only
9472
# one can create it and the other will error out. Consequently we
9473
# restrict ourselves to GNU make (using the --version option ensures
9506
9475
AC_DEFUN([AM_PROG_MKDIR_P],
9507
[AC_PREREQ([2.60])dnl
9508
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9509
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9510
dnl while keeping a definition of mkdir_p for backward compatibility.
9511
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9512
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9513
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9514
dnl adjustment using top_builddir (which is defined more often than
9516
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9518
[[\\/$]]* | ?:[[\\/]]*) ;;
9519
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9476
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
9477
# We used to keeping the `.' as first argument, in order to
9478
# allow $(mkdir_p) to be used without argument. As in
9479
# $(mkdir_p) $(somedir)
9480
# where $(somedir) is conditionally defined. However this is wrong
9482
# 1. if the package is installed by a user who cannot write `.'
9483
# make install will fail,
9484
# 2. the above comment should most certainly read
9485
# $(mkdir_p) $(DESTDIR)$(somedir)
9486
# so it does not work when $(somedir) is undefined and
9487
# $(DESTDIR) is not.
9488
# To support the latter case, we have to write
9489
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
9490
# so the `.' trick is pointless.
9491
mkdir_p='mkdir -p --'
9493
# On NextStep and OpenStep, the `mkdir' command does not
9494
# recognize any option. It will interpret all options as
9495
# directories to create, and then abort because `.' already
9497
for d in ./-p ./--version;
9499
test -d $d && rmdir $d
9501
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
9502
if test -f "$ac_aux_dir/mkinstalldirs"; then
9503
mkdir_p='$(mkinstalldirs)'
9505
mkdir_p='$(install_sh) -d'
9508
AC_SUBST([mkdir_p])])
9523
9510
# Helper functions for option handling. -*- Autoconf -*-
9525
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9512
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
9527
9514
# This file is free software; the Free Software Foundation
9528
9515
# gives unlimited permission to copy and/or distribute it,
9529
9516
# with or without modifications, as long as this notice is preserved.
9533
9520
# _AM_MANGLE_OPTION(NAME)
9534
9521
# -----------------------
9630
9617
if test "$cross_compiling" != no; then
9631
9618
AC_CHECK_TOOL([STRIP], [strip], :)
9633
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9620
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
9634
9621
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9636
# Copyright (C) 2006 Free Software Foundation, Inc.
9638
# This file is free software; the Free Software Foundation
9639
# gives unlimited permission to copy and/or distribute it,
9640
# with or without modifications, as long as this notice is preserved.
9642
# _AM_SUBST_NOTMAKE(VARIABLE)
9643
# ---------------------------
9644
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9645
# This macro is traced by Automake.
9646
AC_DEFUN([_AM_SUBST_NOTMAKE])
9648
9623
# Check how to create a tarball. -*- Autoconf -*-
9650
9625
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.