masqmail-0.2

diff aclocal.m4 @ 36:9cb4031fa5e0

updated the generated AutoHELL files
author meillo@marmaro.de
date Fri, 07 May 2010 16:44:26 +0200
parents af25f5c39d90
children c80a5730bcc5
line diff
     1.1 --- a/aclocal.m4	Fri May 07 16:42:58 2010 +0200
     1.2 +++ b/aclocal.m4	Fri May 07 16:44:26 2010 +0200
     1.3 @@ -1,7 +1,7 @@
     1.4 -# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
     1.5 +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
     1.6  
     1.7 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
     1.8 -# Free Software Foundation, Inc.
     1.9 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    1.10 +# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
    1.11  # This file is free software; the Free Software Foundation
    1.12  # gives unlimited permission to copy and/or distribute it,
    1.13  # with or without modifications, as long as this notice is preserved.
    1.14 @@ -11,853 +11,13 @@
    1.15  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1.16  # PARTICULAR PURPOSE.
    1.17  
    1.18 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
    1.19 -
    1.20 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
    1.21 -
    1.22 -# This program is free software; you can redistribute it and/or modify
    1.23 -# it under the terms of the GNU General Public License as published by
    1.24 -# the Free Software Foundation; either version 2, or (at your option)
    1.25 -# any later version.
    1.26 -
    1.27 -# This program is distributed in the hope that it will be useful,
    1.28 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.29 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.30 -# GNU General Public License for more details.
    1.31 -
    1.32 -# You should have received a copy of the GNU General Public License
    1.33 -# along with this program; if not, write to the Free Software
    1.34 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.35 -# 02111-1307, USA.
    1.36 -
    1.37 -AC_PREREQ([2.52])
    1.38 -
    1.39 -# serial 6
    1.40 -
    1.41 -# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
    1.42 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
    1.43 -
    1.44 -# Do all the work for Automake.                            -*- Autoconf -*-
    1.45 -
    1.46 -# This macro actually does too much some checks are only needed if
    1.47 -# your package does certain things.  But this isn't really a big deal.
    1.48 -
    1.49 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    1.50 -# Free Software Foundation, Inc.
    1.51 -
    1.52 -# This program is free software; you can redistribute it and/or modify
    1.53 -# it under the terms of the GNU General Public License as published by
    1.54 -# the Free Software Foundation; either version 2, or (at your option)
    1.55 -# any later version.
    1.56 -
    1.57 -# This program is distributed in the hope that it will be useful,
    1.58 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.59 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.60 -# GNU General Public License for more details.
    1.61 -
    1.62 -# You should have received a copy of the GNU General Public License
    1.63 -# along with this program; if not, write to the Free Software
    1.64 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.65 -# 02111-1307, USA.
    1.66 -
    1.67 -# serial 10
    1.68 -
    1.69 -AC_PREREQ([2.54])
    1.70 -
    1.71 -# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
    1.72 -# the ones we care about.
    1.73 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    1.74 -
    1.75 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    1.76 -# AM_INIT_AUTOMAKE([OPTIONS])
    1.77 -# -----------------------------------------------
    1.78 -# The call with PACKAGE and VERSION arguments is the old style
    1.79 -# call (pre autoconf-2.50), which is being phased out.  PACKAGE
    1.80 -# and VERSION should now be passed to AC_INIT and removed from
    1.81 -# the call to AM_INIT_AUTOMAKE.
    1.82 -# We support both call styles for the transition.  After
    1.83 -# the next Automake release, Autoconf can make the AC_INIT
    1.84 -# arguments mandatory, and then we can depend on a new Autoconf
    1.85 -# release and drop the old call support.
    1.86 -AC_DEFUN([AM_INIT_AUTOMAKE],
    1.87 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    1.88 - AC_REQUIRE([AC_PROG_INSTALL])dnl
    1.89 -# test to see if srcdir already configured
    1.90 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
    1.91 -   test -f $srcdir/config.status; then
    1.92 -  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    1.93 -fi
    1.94 -
    1.95 -# test whether we have cygpath
    1.96 -if test -z "$CYGPATH_W"; then
    1.97 -  if (cygpath --version) >/dev/null 2>/dev/null; then
    1.98 -    CYGPATH_W='cygpath -w'
    1.99 -  else
   1.100 -    CYGPATH_W=echo
   1.101 -  fi
   1.102 -fi
   1.103 -AC_SUBST([CYGPATH_W])
   1.104 -
   1.105 -# Define the identity of the package.
   1.106 -dnl Distinguish between old-style and new-style calls.
   1.107 -m4_ifval([$2],
   1.108 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
   1.109 - AC_SUBST([PACKAGE], [$1])dnl
   1.110 - AC_SUBST([VERSION], [$2])],
   1.111 -[_AM_SET_OPTIONS([$1])dnl
   1.112 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
   1.113 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
   1.114 -
   1.115 -_AM_IF_OPTION([no-define],,
   1.116 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   1.117 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
   1.118 -
   1.119 -# Some tools Automake needs.
   1.120 -AC_REQUIRE([AM_SANITY_CHECK])dnl
   1.121 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
   1.122 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
   1.123 -AM_MISSING_PROG(AUTOCONF, autoconf)
   1.124 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
   1.125 -AM_MISSING_PROG(AUTOHEADER, autoheader)
   1.126 -AM_MISSING_PROG(MAKEINFO, makeinfo)
   1.127 -AM_MISSING_PROG(AMTAR, tar)
   1.128 -AM_PROG_INSTALL_SH
   1.129 -AM_PROG_INSTALL_STRIP
   1.130 -# We need awk for the "check" target.  The system "awk" is bad on
   1.131 -# some platforms.
   1.132 -AC_REQUIRE([AC_PROG_AWK])dnl
   1.133 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   1.134 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   1.135 -
   1.136 -_AM_IF_OPTION([no-dependencies],,
   1.137 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
   1.138 -                  [_AM_DEPENDENCIES(CC)],
   1.139 -                  [define([AC_PROG_CC],
   1.140 -                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
   1.141 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
   1.142 -                  [_AM_DEPENDENCIES(CXX)],
   1.143 -                  [define([AC_PROG_CXX],
   1.144 -                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
   1.145 -])
   1.146 -])
   1.147 -
   1.148 -
   1.149 -# When config.status generates a header, we must update the stamp-h file.
   1.150 -# This file resides in the same directory as the config header
   1.151 -# that is generated.  The stamp files are numbered to have different names.
   1.152 -
   1.153 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
   1.154 -# loop where config.status creates the headers, so we can generate
   1.155 -# our stamp files there.
   1.156 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
   1.157 -[# Compute $1's index in $config_headers.
   1.158 -_am_stamp_count=1
   1.159 -for _am_header in $config_headers :; do
   1.160 -  case $_am_header in
   1.161 -    $1 | $1:* )
   1.162 -      break ;;
   1.163 -    * )
   1.164 -      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   1.165 -  esac
   1.166 -done
   1.167 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
   1.168 -
   1.169 -# Copyright 2002  Free Software Foundation, Inc.
   1.170 -
   1.171 -# This program is free software; you can redistribute it and/or modify
   1.172 -# it under the terms of the GNU General Public License as published by
   1.173 -# the Free Software Foundation; either version 2, or (at your option)
   1.174 -# any later version.
   1.175 -
   1.176 -# This program is distributed in the hope that it will be useful,
   1.177 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.178 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.179 -# GNU General Public License for more details.
   1.180 -
   1.181 -# You should have received a copy of the GNU General Public License
   1.182 -# along with this program; if not, write to the Free Software
   1.183 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.184 -
   1.185 -# AM_AUTOMAKE_VERSION(VERSION)
   1.186 -# ----------------------------
   1.187 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
   1.188 -# generated from the m4 files accompanying Automake X.Y.
   1.189 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
   1.190 -
   1.191 -# AM_SET_CURRENT_AUTOMAKE_VERSION
   1.192 -# -------------------------------
   1.193 -# Call AM_AUTOMAKE_VERSION so it can be traced.
   1.194 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
   1.195 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   1.196 -	 [AM_AUTOMAKE_VERSION([1.7.9])])
   1.197 -
   1.198 -# Helper functions for option handling.                    -*- Autoconf -*-
   1.199 -
   1.200 -# Copyright 2001, 2002  Free Software Foundation, Inc.
   1.201 -
   1.202 -# This program is free software; you can redistribute it and/or modify
   1.203 -# it under the terms of the GNU General Public License as published by
   1.204 -# the Free Software Foundation; either version 2, or (at your option)
   1.205 -# any later version.
   1.206 -
   1.207 -# This program is distributed in the hope that it will be useful,
   1.208 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.209 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.210 -# GNU General Public License for more details.
   1.211 -
   1.212 -# You should have received a copy of the GNU General Public License
   1.213 -# along with this program; if not, write to the Free Software
   1.214 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.215 -# 02111-1307, USA.
   1.216 -
   1.217 -# serial 2
   1.218 -
   1.219 -# _AM_MANGLE_OPTION(NAME)
   1.220 -# -----------------------
   1.221 -AC_DEFUN([_AM_MANGLE_OPTION],
   1.222 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
   1.223 -
   1.224 -# _AM_SET_OPTION(NAME)
   1.225 -# ------------------------------
   1.226 -# Set option NAME.  Presently that only means defining a flag for this option.
   1.227 -AC_DEFUN([_AM_SET_OPTION],
   1.228 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
   1.229 -
   1.230 -# _AM_SET_OPTIONS(OPTIONS)
   1.231 -# ----------------------------------
   1.232 -# OPTIONS is a space-separated list of Automake options.
   1.233 -AC_DEFUN([_AM_SET_OPTIONS],
   1.234 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
   1.235 -
   1.236 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
   1.237 -# -------------------------------------------
   1.238 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
   1.239 -AC_DEFUN([_AM_IF_OPTION],
   1.240 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
   1.241 -
   1.242 -#
   1.243 -# Check to make sure that the build environment is sane.
   1.244 -#
   1.245 -
   1.246 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
   1.247 -
   1.248 -# This program is free software; you can redistribute it and/or modify
   1.249 -# it under the terms of the GNU General Public License as published by
   1.250 -# the Free Software Foundation; either version 2, or (at your option)
   1.251 -# any later version.
   1.252 -
   1.253 -# This program is distributed in the hope that it will be useful,
   1.254 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.255 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.256 -# GNU General Public License for more details.
   1.257 -
   1.258 -# You should have received a copy of the GNU General Public License
   1.259 -# along with this program; if not, write to the Free Software
   1.260 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.261 -# 02111-1307, USA.
   1.262 -
   1.263 -# serial 3
   1.264 -
   1.265 -# AM_SANITY_CHECK
   1.266 -# ---------------
   1.267 -AC_DEFUN([AM_SANITY_CHECK],
   1.268 -[AC_MSG_CHECKING([whether build environment is sane])
   1.269 -# Just in case
   1.270 -sleep 1
   1.271 -echo timestamp > conftest.file
   1.272 -# Do `set' in a subshell so we don't clobber the current shell's
   1.273 -# arguments.  Must try -L first in case configure is actually a
   1.274 -# symlink; some systems play weird games with the mod time of symlinks
   1.275 -# (eg FreeBSD returns the mod time of the symlink's containing
   1.276 -# directory).
   1.277 -if (
   1.278 -   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   1.279 -   if test "$[*]" = "X"; then
   1.280 -      # -L didn't work.
   1.281 -      set X `ls -t $srcdir/configure conftest.file`
   1.282 -   fi
   1.283 -   rm -f conftest.file
   1.284 -   if test "$[*]" != "X $srcdir/configure conftest.file" \
   1.285 -      && test "$[*]" != "X conftest.file $srcdir/configure"; then
   1.286 -
   1.287 -      # If neither matched, then we have a broken ls.  This can happen
   1.288 -      # if, for instance, CONFIG_SHELL is bash and it inherits a
   1.289 -      # broken ls alias from the environment.  This has actually
   1.290 -      # happened.  Such a system could not be considered "sane".
   1.291 -      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
   1.292 -alias in your environment])
   1.293 -   fi
   1.294 -
   1.295 -   test "$[2]" = conftest.file
   1.296 -   )
   1.297 -then
   1.298 -   # Ok.
   1.299 -   :
   1.300 -else
   1.301 -   AC_MSG_ERROR([newly created file is older than distributed files!
   1.302 -Check your system clock])
   1.303 -fi
   1.304 -AC_MSG_RESULT(yes)])
   1.305 -
   1.306 -#  -*- Autoconf -*-
   1.307 -
   1.308 -
   1.309 -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
   1.310 -
   1.311 -# This program is free software; you can redistribute it and/or modify
   1.312 -# it under the terms of the GNU General Public License as published by
   1.313 -# the Free Software Foundation; either version 2, or (at your option)
   1.314 -# any later version.
   1.315 -
   1.316 -# This program is distributed in the hope that it will be useful,
   1.317 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.318 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.319 -# GNU General Public License for more details.
   1.320 -
   1.321 -# You should have received a copy of the GNU General Public License
   1.322 -# along with this program; if not, write to the Free Software
   1.323 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.324 -# 02111-1307, USA.
   1.325 -
   1.326 -# serial 3
   1.327 -
   1.328 -# AM_MISSING_PROG(NAME, PROGRAM)
   1.329 -# ------------------------------
   1.330 -AC_DEFUN([AM_MISSING_PROG],
   1.331 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
   1.332 -$1=${$1-"${am_missing_run}$2"}
   1.333 -AC_SUBST($1)])
   1.334 -
   1.335 -
   1.336 -# AM_MISSING_HAS_RUN
   1.337 -# ------------------
   1.338 -# Define MISSING if not defined so far and test if it supports --run.
   1.339 -# If it does, set am_missing_run to use it, otherwise, to nothing.
   1.340 -AC_DEFUN([AM_MISSING_HAS_RUN],
   1.341 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   1.342 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   1.343 -# Use eval to expand $SHELL
   1.344 -if eval "$MISSING --run true"; then
   1.345 -  am_missing_run="$MISSING --run "
   1.346 -else
   1.347 -  am_missing_run=
   1.348 -  AC_MSG_WARN([`missing' script is too old or missing])
   1.349 -fi
   1.350 -])
   1.351 -
   1.352 -# AM_AUX_DIR_EXPAND
   1.353 -
   1.354 -# Copyright 2001 Free Software Foundation, Inc.
   1.355 -
   1.356 -# This program is free software; you can redistribute it and/or modify
   1.357 -# it under the terms of the GNU General Public License as published by
   1.358 -# the Free Software Foundation; either version 2, or (at your option)
   1.359 -# any later version.
   1.360 -
   1.361 -# This program is distributed in the hope that it will be useful,
   1.362 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.363 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.364 -# GNU General Public License for more details.
   1.365 -
   1.366 -# You should have received a copy of the GNU General Public License
   1.367 -# along with this program; if not, write to the Free Software
   1.368 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.369 -# 02111-1307, USA.
   1.370 -
   1.371 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   1.372 -# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
   1.373 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
   1.374 -#
   1.375 -# Of course, Automake must honor this variable whenever it calls a
   1.376 -# tool from the auxiliary directory.  The problem is that $srcdir (and
   1.377 -# therefore $ac_aux_dir as well) can be either absolute or relative,
   1.378 -# depending on how configure is run.  This is pretty annoying, since
   1.379 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
   1.380 -# source directory, any form will work fine, but in subdirectories a
   1.381 -# relative path needs to be adjusted first.
   1.382 -#
   1.383 -# $ac_aux_dir/missing
   1.384 -#    fails when called from a subdirectory if $ac_aux_dir is relative
   1.385 -# $top_srcdir/$ac_aux_dir/missing
   1.386 -#    fails if $ac_aux_dir is absolute,
   1.387 -#    fails when called from a subdirectory in a VPATH build with
   1.388 -#          a relative $ac_aux_dir
   1.389 -#
   1.390 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   1.391 -# are both prefixed by $srcdir.  In an in-source build this is usually
   1.392 -# harmless because $srcdir is `.', but things will broke when you
   1.393 -# start a VPATH build or use an absolute $srcdir.
   1.394 -#
   1.395 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   1.396 -# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   1.397 -#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   1.398 -# and then we would define $MISSING as
   1.399 -#   MISSING="\${SHELL} $am_aux_dir/missing"
   1.400 -# This will work as long as MISSING is not called from configure, because
   1.401 -# unfortunately $(top_srcdir) has no meaning in configure.
   1.402 -# However there are other variables, like CC, which are often used in
   1.403 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
   1.404 -#
   1.405 -# Another solution, used here, is to always expand $ac_aux_dir to an
   1.406 -# absolute PATH.  The drawback is that using absolute paths prevent a
   1.407 -# configured tree to be moved without reconfiguration.
   1.408 -
   1.409 -# Rely on autoconf to set up CDPATH properly.
   1.410 -AC_PREREQ([2.50])
   1.411 -
   1.412 -AC_DEFUN([AM_AUX_DIR_EXPAND], [
   1.413 -# expand $ac_aux_dir to an absolute path
   1.414 -am_aux_dir=`cd $ac_aux_dir && pwd`
   1.415 -])
   1.416 -
   1.417 -# AM_PROG_INSTALL_SH
   1.418 -# ------------------
   1.419 -# Define $install_sh.
   1.420 -
   1.421 -# Copyright 2001 Free Software Foundation, Inc.
   1.422 -
   1.423 -# This program is free software; you can redistribute it and/or modify
   1.424 -# it under the terms of the GNU General Public License as published by
   1.425 -# the Free Software Foundation; either version 2, or (at your option)
   1.426 -# any later version.
   1.427 -
   1.428 -# This program is distributed in the hope that it will be useful,
   1.429 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.430 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.431 -# GNU General Public License for more details.
   1.432 -
   1.433 -# You should have received a copy of the GNU General Public License
   1.434 -# along with this program; if not, write to the Free Software
   1.435 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.436 -# 02111-1307, USA.
   1.437 -
   1.438 -AC_DEFUN([AM_PROG_INSTALL_SH],
   1.439 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   1.440 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
   1.441 -AC_SUBST(install_sh)])
   1.442 -
   1.443 -# AM_PROG_INSTALL_STRIP
   1.444 -
   1.445 -# Copyright 2001 Free Software Foundation, Inc.
   1.446 -
   1.447 -# This program is free software; you can redistribute it and/or modify
   1.448 -# it under the terms of the GNU General Public License as published by
   1.449 -# the Free Software Foundation; either version 2, or (at your option)
   1.450 -# any later version.
   1.451 -
   1.452 -# This program is distributed in the hope that it will be useful,
   1.453 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.454 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.455 -# GNU General Public License for more details.
   1.456 -
   1.457 -# You should have received a copy of the GNU General Public License
   1.458 -# along with this program; if not, write to the Free Software
   1.459 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.460 -# 02111-1307, USA.
   1.461 -
   1.462 -# One issue with vendor `install' (even GNU) is that you can't
   1.463 -# specify the program used to strip binaries.  This is especially
   1.464 -# annoying in cross-compiling environments, where the build's strip
   1.465 -# is unlikely to handle the host's binaries.
   1.466 -# Fortunately install-sh will honor a STRIPPROG variable, so we
   1.467 -# always use install-sh in `make install-strip', and initialize
   1.468 -# STRIPPROG with the value of the STRIP variable (set by the user).
   1.469 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
   1.470 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
   1.471 -# Installed binaries are usually stripped using `strip' when the user
   1.472 -# run `make install-strip'.  However `strip' might not be the right
   1.473 -# tool to use in cross-compilation environments, therefore Automake
   1.474 -# will honor the `STRIP' environment variable to overrule this program.
   1.475 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
   1.476 -if test "$cross_compiling" != no; then
   1.477 -  AC_CHECK_TOOL([STRIP], [strip], :)
   1.478 -fi
   1.479 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   1.480 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
   1.481 -
   1.482 -#                                                          -*- Autoconf -*-
   1.483 -# Copyright (C) 2003  Free Software Foundation, Inc.
   1.484 -
   1.485 -# This program is free software; you can redistribute it and/or modify
   1.486 -# it under the terms of the GNU General Public License as published by
   1.487 -# the Free Software Foundation; either version 2, or (at your option)
   1.488 -# any later version.
   1.489 -
   1.490 -# This program is distributed in the hope that it will be useful,
   1.491 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.492 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.493 -# GNU General Public License for more details.
   1.494 -
   1.495 -# You should have received a copy of the GNU General Public License
   1.496 -# along with this program; if not, write to the Free Software
   1.497 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.498 -# 02111-1307, USA.
   1.499 -
   1.500 -# serial 1
   1.501 -
   1.502 -# Check whether the underlying file-system supports filenames
   1.503 -# with a leading dot.  For instance MS-DOS doesn't.
   1.504 -AC_DEFUN([AM_SET_LEADING_DOT],
   1.505 -[rm -rf .tst 2>/dev/null
   1.506 -mkdir .tst 2>/dev/null
   1.507 -if test -d .tst; then
   1.508 -  am__leading_dot=.
   1.509 -else
   1.510 -  am__leading_dot=_
   1.511 -fi
   1.512 -rmdir .tst 2>/dev/null
   1.513 -AC_SUBST([am__leading_dot])])
   1.514 -
   1.515 -# serial 5						-*- Autoconf -*-
   1.516 -
   1.517 -# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
   1.518 -
   1.519 -# This program is free software; you can redistribute it and/or modify
   1.520 -# it under the terms of the GNU General Public License as published by
   1.521 -# the Free Software Foundation; either version 2, or (at your option)
   1.522 -# any later version.
   1.523 -
   1.524 -# This program is distributed in the hope that it will be useful,
   1.525 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.526 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.527 -# GNU General Public License for more details.
   1.528 -
   1.529 -# You should have received a copy of the GNU General Public License
   1.530 -# along with this program; if not, write to the Free Software
   1.531 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.532 -# 02111-1307, USA.
   1.533 -
   1.534 -
   1.535 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
   1.536 -# written in clear, in which case automake, when reading aclocal.m4,
   1.537 -# will think it sees a *use*, and therefore will trigger all it's
   1.538 -# C support machinery.  Also note that it means that autoscan, seeing
   1.539 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
   1.540 -
   1.541 -
   1.542 -
   1.543 -# _AM_DEPENDENCIES(NAME)
   1.544 -# ----------------------
   1.545 -# See how the compiler implements dependency checking.
   1.546 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
   1.547 -# We try a few techniques and use that to set a single cache variable.
   1.548 -#
   1.549 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
   1.550 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
   1.551 -# dependency, and given that the user is not expected to run this macro,
   1.552 -# just rely on AC_PROG_CC.
   1.553 -AC_DEFUN([_AM_DEPENDENCIES],
   1.554 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
   1.555 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
   1.556 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
   1.557 -AC_REQUIRE([AM_DEP_TRACK])dnl
   1.558 -
   1.559 -ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
   1.560 -       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
   1.561 -       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
   1.562 -       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
   1.563 -                   [depcc="$$1"   am_compiler_list=])
   1.564 -
   1.565 -AC_CACHE_CHECK([dependency style of $depcc],
   1.566 -               [am_cv_$1_dependencies_compiler_type],
   1.567 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   1.568 -  # We make a subdir and do the tests there.  Otherwise we can end up
   1.569 -  # making bogus files that we don't know about and never remove.  For
   1.570 -  # instance it was reported that on HP-UX the gcc test will end up
   1.571 -  # making a dummy file named `D' -- because `-MD' means `put the output
   1.572 -  # in D'.
   1.573 -  mkdir conftest.dir
   1.574 -  # Copy depcomp to subdir because otherwise we won't find it if we're
   1.575 -  # using a relative directory.
   1.576 -  cp "$am_depcomp" conftest.dir
   1.577 -  cd conftest.dir
   1.578 -  # We will build objects and dependencies in a subdirectory because
   1.579 -  # it helps to detect inapplicable dependency modes.  For instance
   1.580 -  # both Tru64's cc and ICC support -MD to output dependencies as a
   1.581 -  # side effect of compilation, but ICC will put the dependencies in
   1.582 -  # the current directory while Tru64 will put them in the object
   1.583 -  # directory.
   1.584 -  mkdir sub
   1.585 -
   1.586 -  am_cv_$1_dependencies_compiler_type=none
   1.587 -  if test "$am_compiler_list" = ""; then
   1.588 -     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
   1.589 -  fi
   1.590 -  for depmode in $am_compiler_list; do
   1.591 -    # Setup a source with many dependencies, because some compilers
   1.592 -    # like to wrap large dependency lists on column 80 (with \), and
   1.593 -    # we should not choose a depcomp mode which is confused by this.
   1.594 -    #
   1.595 -    # We need to recreate these files for each test, as the compiler may
   1.596 -    # overwrite some of them when testing with obscure command lines.
   1.597 -    # This happens at least with the AIX C compiler.
   1.598 -    : > sub/conftest.c
   1.599 -    for i in 1 2 3 4 5 6; do
   1.600 -      echo '#include "conftst'$i'.h"' >> sub/conftest.c
   1.601 -      : > sub/conftst$i.h
   1.602 -    done
   1.603 -    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   1.604 -
   1.605 -    case $depmode in
   1.606 -    nosideeffect)
   1.607 -      # after this tag, mechanisms are not by side-effect, so they'll
   1.608 -      # only be used when explicitly requested
   1.609 -      if test "x$enable_dependency_tracking" = xyes; then
   1.610 -	continue
   1.611 -      else
   1.612 -	break
   1.613 -      fi
   1.614 -      ;;
   1.615 -    none) break ;;
   1.616 -    esac
   1.617 -    # We check with `-c' and `-o' for the sake of the "dashmstdout"
   1.618 -    # mode.  It turns out that the SunPro C++ compiler does not properly
   1.619 -    # handle `-M -o', and we need to detect this.
   1.620 -    if depmode=$depmode \
   1.621 -       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   1.622 -       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   1.623 -       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   1.624 -         >/dev/null 2>conftest.err &&
   1.625 -       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   1.626 -       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   1.627 -       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   1.628 -      # icc doesn't choke on unknown options, it will just issue warnings
   1.629 -      # (even with -Werror).  So we grep stderr for any message
   1.630 -      # that says an option was ignored.
   1.631 -      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
   1.632 -        am_cv_$1_dependencies_compiler_type=$depmode
   1.633 -        break
   1.634 -      fi
   1.635 -    fi
   1.636 -  done
   1.637 -
   1.638 -  cd ..
   1.639 -  rm -rf conftest.dir
   1.640 -else
   1.641 -  am_cv_$1_dependencies_compiler_type=none
   1.642 -fi
   1.643 -])
   1.644 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
   1.645 -AM_CONDITIONAL([am__fastdep$1], [
   1.646 -  test "x$enable_dependency_tracking" != xno \
   1.647 -  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
   1.648 -])
   1.649 -
   1.650 -
   1.651 -# AM_SET_DEPDIR
   1.652 -# -------------
   1.653 -# Choose a directory name for dependency files.
   1.654 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
   1.655 -AC_DEFUN([AM_SET_DEPDIR],
   1.656 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   1.657 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
   1.658 -])
   1.659 -
   1.660 -
   1.661 -# AM_DEP_TRACK
   1.662 -# ------------
   1.663 -AC_DEFUN([AM_DEP_TRACK],
   1.664 -[AC_ARG_ENABLE(dependency-tracking,
   1.665 -[  --disable-dependency-tracking Speeds up one-time builds
   1.666 -  --enable-dependency-tracking  Do not reject slow dependency extractors])
   1.667 -if test "x$enable_dependency_tracking" != xno; then
   1.668 -  am_depcomp="$ac_aux_dir/depcomp"
   1.669 -  AMDEPBACKSLASH='\'
   1.670 -fi
   1.671 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
   1.672 -AC_SUBST([AMDEPBACKSLASH])
   1.673 -])
   1.674 -
   1.675 -# Generate code to set up dependency tracking.   -*- Autoconf -*-
   1.676 -
   1.677 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
   1.678 -
   1.679 -# This program is free software; you can redistribute it and/or modify
   1.680 -# it under the terms of the GNU General Public License as published by
   1.681 -# the Free Software Foundation; either version 2, or (at your option)
   1.682 -# any later version.
   1.683 -
   1.684 -# This program is distributed in the hope that it will be useful,
   1.685 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.686 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.687 -# GNU General Public License for more details.
   1.688 -
   1.689 -# You should have received a copy of the GNU General Public License
   1.690 -# along with this program; if not, write to the Free Software
   1.691 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.692 -# 02111-1307, USA.
   1.693 -
   1.694 -#serial 2
   1.695 -
   1.696 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
   1.697 -# ------------------------------
   1.698 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.699 -[for mf in $CONFIG_FILES; do
   1.700 -  # Strip MF so we end up with the name of the file.
   1.701 -  mf=`echo "$mf" | sed -e 's/:.*$//'`
   1.702 -  # Check whether this is an Automake generated Makefile or not.
   1.703 -  # We used to match only the files named `Makefile.in', but
   1.704 -  # some people rename them; so instead we look at the file content.
   1.705 -  # Grep'ing the first line is not enough: some people post-process
   1.706 -  # each Makefile.in and add a new line on top of each file to say so.
   1.707 -  # So let's grep whole file.
   1.708 -  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
   1.709 -    dirpart=`AS_DIRNAME("$mf")`
   1.710 -  else
   1.711 -    continue
   1.712 -  fi
   1.713 -  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
   1.714 -  # Extract the definition of DEP_FILES from the Makefile without
   1.715 -  # running `make'.
   1.716 -  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
   1.717 -  test -z "$DEPDIR" && continue
   1.718 -  # When using ansi2knr, U may be empty or an underscore; expand it
   1.719 -  U=`sed -n -e '/^U = / s///p' < "$mf"`
   1.720 -  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
   1.721 -  # We invoke sed twice because it is the simplest approach to
   1.722 -  # changing $(DEPDIR) to its actual value in the expansion.
   1.723 -  for file in `sed -n -e '
   1.724 -    /^DEP_FILES = .*\\\\$/ {
   1.725 -      s/^DEP_FILES = //
   1.726 -      :loop
   1.727 -	s/\\\\$//
   1.728 -	p
   1.729 -	n
   1.730 -	/\\\\$/ b loop
   1.731 -      p
   1.732 -    }
   1.733 -    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
   1.734 -       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   1.735 -    # Make sure the directory exists.
   1.736 -    test -f "$dirpart/$file" && continue
   1.737 -    fdir=`AS_DIRNAME(["$file"])`
   1.738 -    AS_MKDIR_P([$dirpart/$fdir])
   1.739 -    # echo "creating $dirpart/$file"
   1.740 -    echo '# dummy' > "$dirpart/$file"
   1.741 -  done
   1.742 -done
   1.743 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
   1.744 -
   1.745 -
   1.746 -# AM_OUTPUT_DEPENDENCY_COMMANDS
   1.747 -# -----------------------------
   1.748 -# This macro should only be invoked once -- use via AC_REQUIRE.
   1.749 -#
   1.750 -# This code is only required when automatic dependency tracking
   1.751 -# is enabled.  FIXME.  This creates each `.P' file that we will
   1.752 -# need in order to bootstrap the dependency handling code.
   1.753 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.754 -[AC_CONFIG_COMMANDS([depfiles],
   1.755 -     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.756 -     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
   1.757 -])
   1.758 -
   1.759 -# Check to see how 'make' treats includes.	-*- Autoconf -*-
   1.760 -
   1.761 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
   1.762 -
   1.763 -# This program is free software; you can redistribute it and/or modify
   1.764 -# it under the terms of the GNU General Public License as published by
   1.765 -# the Free Software Foundation; either version 2, or (at your option)
   1.766 -# any later version.
   1.767 -
   1.768 -# This program is distributed in the hope that it will be useful,
   1.769 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.770 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.771 -# GNU General Public License for more details.
   1.772 -
   1.773 -# You should have received a copy of the GNU General Public License
   1.774 -# along with this program; if not, write to the Free Software
   1.775 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.776 -# 02111-1307, USA.
   1.777 -
   1.778 -# serial 2
   1.779 -
   1.780 -# AM_MAKE_INCLUDE()
   1.781 -# -----------------
   1.782 -# Check to see how make treats includes.
   1.783 -AC_DEFUN([AM_MAKE_INCLUDE],
   1.784 -[am_make=${MAKE-make}
   1.785 -cat > confinc << 'END'
   1.786 -am__doit:
   1.787 -	@echo done
   1.788 -.PHONY: am__doit
   1.789 -END
   1.790 -# If we don't find an include directive, just comment out the code.
   1.791 -AC_MSG_CHECKING([for style of include used by $am_make])
   1.792 -am__include="#"
   1.793 -am__quote=
   1.794 -_am_result=none
   1.795 -# First try GNU make style include.
   1.796 -echo "include confinc" > confmf
   1.797 -# We grep out `Entering directory' and `Leaving directory'
   1.798 -# messages which can occur if `w' ends up in MAKEFLAGS.
   1.799 -# In particular we don't look at `^make:' because GNU make might
   1.800 -# be invoked under some other name (usually "gmake"), in which
   1.801 -# case it prints its new name instead of `make'.
   1.802 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   1.803 -   am__include=include
   1.804 -   am__quote=
   1.805 -   _am_result=GNU
   1.806 -fi
   1.807 -# Now try BSD make style include.
   1.808 -if test "$am__include" = "#"; then
   1.809 -   echo '.include "confinc"' > confmf
   1.810 -   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   1.811 -      am__include=.include
   1.812 -      am__quote="\""
   1.813 -      _am_result=BSD
   1.814 -   fi
   1.815 -fi
   1.816 -AC_SUBST([am__include])
   1.817 -AC_SUBST([am__quote])
   1.818 -AC_MSG_RESULT([$_am_result])
   1.819 -rm -f confinc confmf
   1.820 -])
   1.821 -
   1.822 -# AM_CONDITIONAL                                              -*- Autoconf -*-
   1.823 -
   1.824 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
   1.825 -
   1.826 -# This program is free software; you can redistribute it and/or modify
   1.827 -# it under the terms of the GNU General Public License as published by
   1.828 -# the Free Software Foundation; either version 2, or (at your option)
   1.829 -# any later version.
   1.830 -
   1.831 -# This program is distributed in the hope that it will be useful,
   1.832 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.833 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.834 -# GNU General Public License for more details.
   1.835 -
   1.836 -# You should have received a copy of the GNU General Public License
   1.837 -# along with this program; if not, write to the Free Software
   1.838 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.839 -# 02111-1307, USA.
   1.840 -
   1.841 -# serial 5
   1.842 -
   1.843 -AC_PREREQ(2.52)
   1.844 -
   1.845 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
   1.846 -# -------------------------------------
   1.847 -# Define a conditional.
   1.848 -AC_DEFUN([AM_CONDITIONAL],
   1.849 -[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
   1.850 -        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
   1.851 -AC_SUBST([$1_TRUE])
   1.852 -AC_SUBST([$1_FALSE])
   1.853 -if $2; then
   1.854 -  $1_TRUE=
   1.855 -  $1_FALSE='#'
   1.856 -else
   1.857 -  $1_TRUE='#'
   1.858 -  $1_FALSE=
   1.859 -fi
   1.860 -AC_CONFIG_COMMANDS_PRE(
   1.861 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
   1.862 -  AC_MSG_ERROR([conditional "$1" was never defined.
   1.863 -Usually this means the macro was only invoked conditionally.])
   1.864 -fi])])
   1.865 +m4_ifndef([AC_AUTOCONF_VERSION],
   1.866 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   1.867 +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
   1.868 +[m4_warning([this file was generated for autoconf 2.65.
   1.869 +You have another version of autoconf.  It may work, but is not guaranteed to.
   1.870 +If you have problems, you may need to regenerate the build system entirely.
   1.871 +To do so, use the procedure documented by the package, typically `autoreconf'.])])
   1.872  
   1.873  # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
   1.874  # 
   1.875 @@ -1017,3 +177,945 @@
   1.876  fi[]dnl
   1.877  ])# PKG_CHECK_MODULES
   1.878  
   1.879 +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
   1.880 +#
   1.881 +# This file is free software; the Free Software Foundation
   1.882 +# gives unlimited permission to copy and/or distribute it,
   1.883 +# with or without modifications, as long as this notice is preserved.
   1.884 +
   1.885 +# AM_AUTOMAKE_VERSION(VERSION)
   1.886 +# ----------------------------
   1.887 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
   1.888 +# generated from the m4 files accompanying Automake X.Y.
   1.889 +# (This private macro should not be called outside this file.)
   1.890 +AC_DEFUN([AM_AUTOMAKE_VERSION],
   1.891 +[am__api_version='1.11'
   1.892 +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
   1.893 +dnl require some minimum version.  Point them to the right macro.
   1.894 +m4_if([$1], [1.11.1], [],
   1.895 +      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
   1.896 +])
   1.897 +
   1.898 +# _AM_AUTOCONF_VERSION(VERSION)
   1.899 +# -----------------------------
   1.900 +# aclocal traces this macro to find the Autoconf version.
   1.901 +# This is a private macro too.  Using m4_define simplifies
   1.902 +# the logic in aclocal, which can simply ignore this definition.
   1.903 +m4_define([_AM_AUTOCONF_VERSION], [])
   1.904 +
   1.905 +# AM_SET_CURRENT_AUTOMAKE_VERSION
   1.906 +# -------------------------------
   1.907 +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
   1.908 +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
   1.909 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   1.910 +[AM_AUTOMAKE_VERSION([1.11.1])dnl
   1.911 +m4_ifndef([AC_AUTOCONF_VERSION],
   1.912 +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   1.913 +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
   1.914 +
   1.915 +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
   1.916 +
   1.917 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
   1.918 +#
   1.919 +# This file is free software; the Free Software Foundation
   1.920 +# gives unlimited permission to copy and/or distribute it,
   1.921 +# with or without modifications, as long as this notice is preserved.
   1.922 +
   1.923 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   1.924 +# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
   1.925 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
   1.926 +#
   1.927 +# Of course, Automake must honor this variable whenever it calls a
   1.928 +# tool from the auxiliary directory.  The problem is that $srcdir (and
   1.929 +# therefore $ac_aux_dir as well) can be either absolute or relative,
   1.930 +# depending on how configure is run.  This is pretty annoying, since
   1.931 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
   1.932 +# source directory, any form will work fine, but in subdirectories a
   1.933 +# relative path needs to be adjusted first.
   1.934 +#
   1.935 +# $ac_aux_dir/missing
   1.936 +#    fails when called from a subdirectory if $ac_aux_dir is relative
   1.937 +# $top_srcdir/$ac_aux_dir/missing
   1.938 +#    fails if $ac_aux_dir is absolute,
   1.939 +#    fails when called from a subdirectory in a VPATH build with
   1.940 +#          a relative $ac_aux_dir
   1.941 +#
   1.942 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   1.943 +# are both prefixed by $srcdir.  In an in-source build this is usually
   1.944 +# harmless because $srcdir is `.', but things will broke when you
   1.945 +# start a VPATH build or use an absolute $srcdir.
   1.946 +#
   1.947 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   1.948 +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   1.949 +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   1.950 +# and then we would define $MISSING as
   1.951 +#   MISSING="\${SHELL} $am_aux_dir/missing"
   1.952 +# This will work as long as MISSING is not called from configure, because
   1.953 +# unfortunately $(top_srcdir) has no meaning in configure.
   1.954 +# However there are other variables, like CC, which are often used in
   1.955 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
   1.956 +#
   1.957 +# Another solution, used here, is to always expand $ac_aux_dir to an
   1.958 +# absolute PATH.  The drawback is that using absolute paths prevent a
   1.959 +# configured tree to be moved without reconfiguration.
   1.960 +
   1.961 +AC_DEFUN([AM_AUX_DIR_EXPAND],
   1.962 +[dnl Rely on autoconf to set up CDPATH properly.
   1.963 +AC_PREREQ([2.50])dnl
   1.964 +# expand $ac_aux_dir to an absolute path
   1.965 +am_aux_dir=`cd $ac_aux_dir && pwd`
   1.966 +])
   1.967 +
   1.968 +# AM_CONDITIONAL                                            -*- Autoconf -*-
   1.969 +
   1.970 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
   1.971 +# Free Software Foundation, Inc.
   1.972 +#
   1.973 +# This file is free software; the Free Software Foundation
   1.974 +# gives unlimited permission to copy and/or distribute it,
   1.975 +# with or without modifications, as long as this notice is preserved.
   1.976 +
   1.977 +# serial 9
   1.978 +
   1.979 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
   1.980 +# -------------------------------------
   1.981 +# Define a conditional.
   1.982 +AC_DEFUN([AM_CONDITIONAL],
   1.983 +[AC_PREREQ(2.52)dnl
   1.984 + ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
   1.985 +	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
   1.986 +AC_SUBST([$1_TRUE])dnl
   1.987 +AC_SUBST([$1_FALSE])dnl
   1.988 +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
   1.989 +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
   1.990 +m4_define([_AM_COND_VALUE_$1], [$2])dnl
   1.991 +if $2; then
   1.992 +  $1_TRUE=
   1.993 +  $1_FALSE='#'
   1.994 +else
   1.995 +  $1_TRUE='#'
   1.996 +  $1_FALSE=
   1.997 +fi
   1.998 +AC_CONFIG_COMMANDS_PRE(
   1.999 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  1.1000 +  AC_MSG_ERROR([[conditional "$1" was never defined.
  1.1001 +Usually this means the macro was only invoked conditionally.]])
  1.1002 +fi])])
  1.1003 +
  1.1004 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  1.1005 +# Free Software Foundation, Inc.
  1.1006 +#
  1.1007 +# This file is free software; the Free Software Foundation
  1.1008 +# gives unlimited permission to copy and/or distribute it,
  1.1009 +# with or without modifications, as long as this notice is preserved.
  1.1010 +
  1.1011 +# serial 10
  1.1012 +
  1.1013 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  1.1014 +# written in clear, in which case automake, when reading aclocal.m4,
  1.1015 +# will think it sees a *use*, and therefore will trigger all it's
  1.1016 +# C support machinery.  Also note that it means that autoscan, seeing
  1.1017 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  1.1018 +
  1.1019 +
  1.1020 +# _AM_DEPENDENCIES(NAME)
  1.1021 +# ----------------------
  1.1022 +# See how the compiler implements dependency checking.
  1.1023 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  1.1024 +# We try a few techniques and use that to set a single cache variable.
  1.1025 +#
  1.1026 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  1.1027 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  1.1028 +# dependency, and given that the user is not expected to run this macro,
  1.1029 +# just rely on AC_PROG_CC.
  1.1030 +AC_DEFUN([_AM_DEPENDENCIES],
  1.1031 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  1.1032 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  1.1033 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  1.1034 +AC_REQUIRE([AM_DEP_TRACK])dnl
  1.1035 +
  1.1036 +ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
  1.1037 +       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
  1.1038 +       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  1.1039 +       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
  1.1040 +       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
  1.1041 +                   [depcc="$$1"   am_compiler_list=])
  1.1042 +
  1.1043 +AC_CACHE_CHECK([dependency style of $depcc],
  1.1044 +               [am_cv_$1_dependencies_compiler_type],
  1.1045 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1.1046 +  # We make a subdir and do the tests there.  Otherwise we can end up
  1.1047 +  # making bogus files that we don't know about and never remove.  For
  1.1048 +  # instance it was reported that on HP-UX the gcc test will end up
  1.1049 +  # making a dummy file named `D' -- because `-MD' means `put the output
  1.1050 +  # in D'.
  1.1051 +  mkdir conftest.dir
  1.1052 +  # Copy depcomp to subdir because otherwise we won't find it if we're
  1.1053 +  # using a relative directory.
  1.1054 +  cp "$am_depcomp" conftest.dir
  1.1055 +  cd conftest.dir
  1.1056 +  # We will build objects and dependencies in a subdirectory because
  1.1057 +  # it helps to detect inapplicable dependency modes.  For instance
  1.1058 +  # both Tru64's cc and ICC support -MD to output dependencies as a
  1.1059 +  # side effect of compilation, but ICC will put the dependencies in
  1.1060 +  # the current directory while Tru64 will put them in the object
  1.1061 +  # directory.
  1.1062 +  mkdir sub
  1.1063 +
  1.1064 +  am_cv_$1_dependencies_compiler_type=none
  1.1065 +  if test "$am_compiler_list" = ""; then
  1.1066 +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  1.1067 +  fi
  1.1068 +  am__universal=false
  1.1069 +  m4_case([$1], [CC],
  1.1070 +    [case " $depcc " in #(
  1.1071 +     *\ -arch\ *\ -arch\ *) am__universal=true ;;
  1.1072 +     esac],
  1.1073 +    [CXX],
  1.1074 +    [case " $depcc " in #(
  1.1075 +     *\ -arch\ *\ -arch\ *) am__universal=true ;;
  1.1076 +     esac])
  1.1077 +
  1.1078 +  for depmode in $am_compiler_list; do
  1.1079 +    # Setup a source with many dependencies, because some compilers
  1.1080 +    # like to wrap large dependency lists on column 80 (with \), and
  1.1081 +    # we should not choose a depcomp mode which is confused by this.
  1.1082 +    #
  1.1083 +    # We need to recreate these files for each test, as the compiler may
  1.1084 +    # overwrite some of them when testing with obscure command lines.
  1.1085 +    # This happens at least with the AIX C compiler.
  1.1086 +    : > sub/conftest.c
  1.1087 +    for i in 1 2 3 4 5 6; do
  1.1088 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  1.1089 +      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  1.1090 +      # Solaris 8's {/usr,}/bin/sh.
  1.1091 +      touch sub/conftst$i.h
  1.1092 +    done
  1.1093 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  1.1094 +
  1.1095 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
  1.1096 +    # mode.  It turns out that the SunPro C++ compiler does not properly
  1.1097 +    # handle `-M -o', and we need to detect this.  Also, some Intel
  1.1098 +    # versions had trouble with output in subdirs
  1.1099 +    am__obj=sub/conftest.${OBJEXT-o}
  1.1100 +    am__minus_obj="-o $am__obj"
  1.1101 +    case $depmode in
  1.1102 +    gcc)
  1.1103 +      # This depmode causes a compiler race in universal mode.
  1.1104 +      test "$am__universal" = false || continue
  1.1105 +      ;;
  1.1106 +    nosideeffect)
  1.1107 +      # after this tag, mechanisms are not by side-effect, so they'll
  1.1108 +      # only be used when explicitly requested
  1.1109 +      if test "x$enable_dependency_tracking" = xyes; then
  1.1110 +	continue
  1.1111 +      else
  1.1112 +	break
  1.1113 +      fi
  1.1114 +      ;;
  1.1115 +    msvisualcpp | msvcmsys)
  1.1116 +      # This compiler won't grok `-c -o', but also, the minuso test has
  1.1117 +      # not run yet.  These depmodes are late enough in the game, and
  1.1118 +      # so weak that their functioning should not be impacted.
  1.1119 +      am__obj=conftest.${OBJEXT-o}
  1.1120 +      am__minus_obj=
  1.1121 +      ;;
  1.1122 +    none) break ;;
  1.1123 +    esac
  1.1124 +    if depmode=$depmode \
  1.1125 +       source=sub/conftest.c object=$am__obj \
  1.1126 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  1.1127 +       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  1.1128 +         >/dev/null 2>conftest.err &&
  1.1129 +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  1.1130 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  1.1131 +       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  1.1132 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  1.1133 +      # icc doesn't choke on unknown options, it will just issue warnings
  1.1134 +      # or remarks (even with -Werror).  So we grep stderr for any message
  1.1135 +      # that says an option was ignored or not supported.
  1.1136 +      # When given -MP, icc 7.0 and 7.1 complain thusly:
  1.1137 +      #   icc: Command line warning: ignoring option '-M'; no argument required
  1.1138 +      # The diagnosis changed in icc 8.0:
  1.1139 +      #   icc: Command line remark: option '-MP' not supported
  1.1140 +      if (grep 'ignoring option' conftest.err ||
  1.1141 +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  1.1142 +        am_cv_$1_dependencies_compiler_type=$depmode
  1.1143 +        break
  1.1144 +      fi
  1.1145 +    fi
  1.1146 +  done
  1.1147 +
  1.1148 +  cd ..
  1.1149 +  rm -rf conftest.dir
  1.1150 +else
  1.1151 +  am_cv_$1_dependencies_compiler_type=none
  1.1152 +fi
  1.1153 +])
  1.1154 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  1.1155 +AM_CONDITIONAL([am__fastdep$1], [
  1.1156 +  test "x$enable_dependency_tracking" != xno \
  1.1157 +  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  1.1158 +])
  1.1159 +
  1.1160 +
  1.1161 +# AM_SET_DEPDIR
  1.1162 +# -------------
  1.1163 +# Choose a directory name for dependency files.
  1.1164 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  1.1165 +AC_DEFUN([AM_SET_DEPDIR],
  1.1166 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  1.1167 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  1.1168 +])
  1.1169 +
  1.1170 +
  1.1171 +# AM_DEP_TRACK
  1.1172 +# ------------
  1.1173 +AC_DEFUN([AM_DEP_TRACK],
  1.1174 +[AC_ARG_ENABLE(dependency-tracking,
  1.1175 +[  --disable-dependency-tracking  speeds up one-time build
  1.1176 +  --enable-dependency-tracking   do not reject slow dependency extractors])
  1.1177 +if test "x$enable_dependency_tracking" != xno; then
  1.1178 +  am_depcomp="$ac_aux_dir/depcomp"
  1.1179 +  AMDEPBACKSLASH='\'
  1.1180 +fi
  1.1181 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  1.1182 +AC_SUBST([AMDEPBACKSLASH])dnl
  1.1183 +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  1.1184 +])
  1.1185 +
  1.1186 +# Generate code to set up dependency tracking.              -*- Autoconf -*-
  1.1187 +
  1.1188 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  1.1189 +# Free Software Foundation, Inc.
  1.1190 +#
  1.1191 +# This file is free software; the Free Software Foundation
  1.1192 +# gives unlimited permission to copy and/or distribute it,
  1.1193 +# with or without modifications, as long as this notice is preserved.
  1.1194 +
  1.1195 +#serial 5
  1.1196 +
  1.1197 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1.1198 +# ------------------------------
  1.1199 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  1.1200 +[{
  1.1201 +  # Autoconf 2.62 quotes --file arguments for eval, but not when files
  1.1202 +  # are listed without --file.  Let's play safe and only enable the eval
  1.1203 +  # if we detect the quoting.
  1.1204 +  case $CONFIG_FILES in
  1.1205 +  *\'*) eval set x "$CONFIG_FILES" ;;
  1.1206 +  *)   set x $CONFIG_FILES ;;
  1.1207 +  esac
  1.1208 +  shift
  1.1209 +  for mf
  1.1210 +  do
  1.1211 +    # Strip MF so we end up with the name of the file.
  1.1212 +    mf=`echo "$mf" | sed -e 's/:.*$//'`
  1.1213 +    # Check whether this is an Automake generated Makefile or not.
  1.1214 +    # We used to match only the files named `Makefile.in', but
  1.1215 +    # some people rename them; so instead we look at the file content.
  1.1216 +    # Grep'ing the first line is not enough: some people post-process
  1.1217 +    # each Makefile.in and add a new line on top of each file to say so.
  1.1218 +    # Grep'ing the whole file is not good either: AIX grep has a line
  1.1219 +    # limit of 2048, but all sed's we know have understand at least 4000.
  1.1220 +    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  1.1221 +      dirpart=`AS_DIRNAME("$mf")`
  1.1222 +    else
  1.1223 +      continue
  1.1224 +    fi
  1.1225 +    # Extract the definition of DEPDIR, am__include, and am__quote
  1.1226 +    # from the Makefile without running `make'.
  1.1227 +    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  1.1228 +    test -z "$DEPDIR" && continue
  1.1229 +    am__include=`sed -n 's/^am__include = //p' < "$mf"`
  1.1230 +    test -z "am__include" && continue
  1.1231 +    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  1.1232 +    # When using ansi2knr, U may be empty or an underscore; expand it
  1.1233 +    U=`sed -n 's/^U = //p' < "$mf"`
  1.1234 +    # Find all dependency output files, they are included files with
  1.1235 +    # $(DEPDIR) in their names.  We invoke sed twice because it is the
  1.1236 +    # simplest approach to changing $(DEPDIR) to its actual value in the
  1.1237 +    # expansion.
  1.1238 +    for file in `sed -n "
  1.1239 +      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  1.1240 +	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  1.1241 +      # Make sure the directory exists.
  1.1242 +      test -f "$dirpart/$file" && continue
  1.1243 +      fdir=`AS_DIRNAME(["$file"])`
  1.1244 +      AS_MKDIR_P([$dirpart/$fdir])
  1.1245 +      # echo "creating $dirpart/$file"
  1.1246 +      echo '# dummy' > "$dirpart/$file"
  1.1247 +    done
  1.1248 +  done
  1.1249 +}
  1.1250 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  1.1251 +
  1.1252 +
  1.1253 +# AM_OUTPUT_DEPENDENCY_COMMANDS
  1.1254 +# -----------------------------
  1.1255 +# This macro should only be invoked once -- use via AC_REQUIRE.
  1.1256 +#
  1.1257 +# This code is only required when automatic dependency tracking
  1.1258 +# is enabled.  FIXME.  This creates each `.P' file that we will
  1.1259 +# need in order to bootstrap the dependency handling code.
  1.1260 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  1.1261 +[AC_CONFIG_COMMANDS([depfiles],
  1.1262 +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  1.1263 +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  1.1264 +])
  1.1265 +
  1.1266 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  1.1267 +# Free Software Foundation, Inc.
  1.1268 +#
  1.1269 +# This file is free software; the Free Software Foundation
  1.1270 +# gives unlimited permission to copy and/or distribute it,
  1.1271 +# with or without modifications, as long as this notice is preserved.
  1.1272 +
  1.1273 +# serial 8
  1.1274 +
  1.1275 +# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
  1.1276 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  1.1277 +
  1.1278 +# Do all the work for Automake.                             -*- Autoconf -*-
  1.1279 +
  1.1280 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  1.1281 +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  1.1282 +#
  1.1283 +# This file is free software; the Free Software Foundation
  1.1284 +# gives unlimited permission to copy and/or distribute it,
  1.1285 +# with or without modifications, as long as this notice is preserved.
  1.1286 +
  1.1287 +# serial 16
  1.1288 +
  1.1289 +# This macro actually does too much.  Some checks are only needed if
  1.1290 +# your package does certain things.  But this isn't really a big deal.
  1.1291 +
  1.1292 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  1.1293 +# AM_INIT_AUTOMAKE([OPTIONS])
  1.1294 +# -----------------------------------------------
  1.1295 +# The call with PACKAGE and VERSION arguments is the old style
  1.1296 +# call (pre autoconf-2.50), which is being phased out.  PACKAGE
  1.1297 +# and VERSION should now be passed to AC_INIT and removed from
  1.1298 +# the call to AM_INIT_AUTOMAKE.
  1.1299 +# We support both call styles for the transition.  After
  1.1300 +# the next Automake release, Autoconf can make the AC_INIT
  1.1301 +# arguments mandatory, and then we can depend on a new Autoconf
  1.1302 +# release and drop the old call support.
  1.1303 +AC_DEFUN([AM_INIT_AUTOMAKE],
  1.1304 +[AC_PREREQ([2.62])dnl
  1.1305 +dnl Autoconf wants to disallow AM_ names.  We explicitly allow
  1.1306 +dnl the ones we care about.
  1.1307 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  1.1308 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  1.1309 +AC_REQUIRE([AC_PROG_INSTALL])dnl
  1.1310 +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1.1311 +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1.1312 +  # is not polluted with repeated "-I."
  1.1313 +  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  1.1314 +  # test to see if srcdir already configured
  1.1315 +  if test -f $srcdir/config.status; then
  1.1316 +    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  1.1317 +  fi
  1.1318 +fi
  1.1319 +
  1.1320 +# test whether we have cygpath
  1.1321 +if test -z "$CYGPATH_W"; then
  1.1322 +  if (cygpath --version) >/dev/null 2>/dev/null; then
  1.1323 +    CYGPATH_W='cygpath -w'
  1.1324 +  else
  1.1325 +    CYGPATH_W=echo
  1.1326 +  fi
  1.1327 +fi
  1.1328 +AC_SUBST([CYGPATH_W])
  1.1329 +
  1.1330 +# Define the identity of the package.
  1.1331 +dnl Distinguish between old-style and new-style calls.
  1.1332 +m4_ifval([$2],
  1.1333 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  1.1334 + AC_SUBST([PACKAGE], [$1])dnl
  1.1335 + AC_SUBST([VERSION], [$2])],
  1.1336 +[_AM_SET_OPTIONS([$1])dnl
  1.1337 +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  1.1338 +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  1.1339 +  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  1.1340 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  1.1341 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  1.1342 +
  1.1343 +_AM_IF_OPTION([no-define],,
  1.1344 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  1.1345 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  1.1346 +
  1.1347 +# Some tools Automake needs.
  1.1348 +AC_REQUIRE([AM_SANITY_CHECK])dnl
  1.1349 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  1.1350 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  1.1351 +AM_MISSING_PROG(AUTOCONF, autoconf)
  1.1352 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  1.1353 +AM_MISSING_PROG(AUTOHEADER, autoheader)
  1.1354 +AM_MISSING_PROG(MAKEINFO, makeinfo)
  1.1355 +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1.1356 +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  1.1357 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  1.1358 +# We need awk for the "check" target.  The system "awk" is bad on
  1.1359 +# some platforms.
  1.1360 +AC_REQUIRE([AC_PROG_AWK])dnl
  1.1361 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  1.1362 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  1.1363 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  1.1364 +	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  1.1365 +			     [_AM_PROG_TAR([v7])])])
  1.1366 +_AM_IF_OPTION([no-dependencies],,
  1.1367 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  1.1368 +		  [_AM_DEPENDENCIES(CC)],
  1.1369 +		  [define([AC_PROG_CC],
  1.1370 +			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  1.1371 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1.1372 +		  [_AM_DEPENDENCIES(CXX)],
  1.1373 +		  [define([AC_PROG_CXX],
  1.1374 +			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  1.1375 +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  1.1376 +		  [_AM_DEPENDENCIES(OBJC)],
  1.1377 +		  [define([AC_PROG_OBJC],
  1.1378 +			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  1.1379 +])
  1.1380 +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  1.1381 +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  1.1382 +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
  1.1383 +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  1.1384 +AC_CONFIG_COMMANDS_PRE(dnl
  1.1385 +[m4_provide_if([_AM_COMPILER_EXEEXT],
  1.1386 +  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  1.1387 +])
  1.1388 +
  1.1389 +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
  1.1390 +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  1.1391 +dnl mangled by Autoconf and run in a shell conditional statement.
  1.1392 +m4_define([_AC_COMPILER_EXEEXT],
  1.1393 +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  1.1394 +
  1.1395 +
  1.1396 +# When config.status generates a header, we must update the stamp-h file.
  1.1397 +# This file resides in the same directory as the config header
  1.1398 +# that is generated.  The stamp files are numbered to have different names.
  1.1399 +
  1.1400 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  1.1401 +# loop where config.status creates the headers, so we can generate
  1.1402 +# our stamp files there.
  1.1403 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  1.1404 +[# Compute $1's index in $config_headers.
  1.1405 +_am_arg=$1
  1.1406 +_am_stamp_count=1
  1.1407 +for _am_header in $config_headers :; do
  1.1408 +  case $_am_header in
  1.1409 +    $_am_arg | $_am_arg:* )
  1.1410 +      break ;;
  1.1411 +    * )
  1.1412 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  1.1413 +  esac
  1.1414 +done
  1.1415 +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  1.1416 +
  1.1417 +# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
  1.1418 +#
  1.1419 +# This file is free software; the Free Software Foundation
  1.1420 +# gives unlimited permission to copy and/or distribute it,
  1.1421 +# with or without modifications, as long as this notice is preserved.
  1.1422 +
  1.1423 +# AM_PROG_INSTALL_SH
  1.1424 +# ------------------
  1.1425 +# Define $install_sh.
  1.1426 +AC_DEFUN([AM_PROG_INSTALL_SH],
  1.1427 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1.1428 +if test x"${install_sh}" != xset; then
  1.1429 +  case $am_aux_dir in
  1.1430 +  *\ * | *\	*)
  1.1431 +    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1.1432 +  *)
  1.1433 +    install_sh="\${SHELL} $am_aux_dir/install-sh"
  1.1434 +  esac
  1.1435 +fi
  1.1436 +AC_SUBST(install_sh)])
  1.1437 +
  1.1438 +# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
  1.1439 +#
  1.1440 +# This file is free software; the Free Software Foundation
  1.1441 +# gives unlimited permission to copy and/or distribute it,
  1.1442 +# with or without modifications, as long as this notice is preserved.
  1.1443 +
  1.1444 +# serial 2
  1.1445 +
  1.1446 +# Check whether the underlying file-system supports filenames
  1.1447 +# with a leading dot.  For instance MS-DOS doesn't.
  1.1448 +AC_DEFUN([AM_SET_LEADING_DOT],
  1.1449 +[rm -rf .tst 2>/dev/null
  1.1450 +mkdir .tst 2>/dev/null
  1.1451 +if test -d .tst; then
  1.1452 +  am__leading_dot=.
  1.1453 +else
  1.1454 +  am__leading_dot=_
  1.1455 +fi
  1.1456 +rmdir .tst 2>/dev/null
  1.1457 +AC_SUBST([am__leading_dot])])
  1.1458 +
  1.1459 +# Check to see how 'make' treats includes.	            -*- Autoconf -*-
  1.1460 +
  1.1461 +# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
  1.1462 +#
  1.1463 +# This file is free software; the Free Software Foundation
  1.1464 +# gives unlimited permission to copy and/or distribute it,
  1.1465 +# with or without modifications, as long as this notice is preserved.
  1.1466 +
  1.1467 +# serial 4
  1.1468 +
  1.1469 +# AM_MAKE_INCLUDE()
  1.1470 +# -----------------
  1.1471 +# Check to see how make treats includes.
  1.1472 +AC_DEFUN([AM_MAKE_INCLUDE],
  1.1473 +[am_make=${MAKE-make}
  1.1474 +cat > confinc << 'END'
  1.1475 +am__doit:
  1.1476 +	@echo this is the am__doit target
  1.1477 +.PHONY: am__doit
  1.1478 +END
  1.1479 +# If we don't find an include directive, just comment out the code.
  1.1480 +AC_MSG_CHECKING([for style of include used by $am_make])
  1.1481 +am__include="#"
  1.1482 +am__quote=
  1.1483 +_am_result=none
  1.1484 +# First try GNU make style include.
  1.1485 +echo "include confinc" > confmf
  1.1486 +# Ignore all kinds of additional output from `make'.
  1.1487 +case `$am_make -s -f confmf 2> /dev/null` in #(
  1.1488 +*the\ am__doit\ target*)
  1.1489 +  am__include=include
  1.1490 +  am__quote=
  1.1491 +  _am_result=GNU
  1.1492 +  ;;
  1.1493 +esac
  1.1494 +# Now try BSD make style include.
  1.1495 +if test "$am__include" = "#"; then
  1.1496 +   echo '.include "confinc"' > confmf
  1.1497 +   case `$am_make -s -f confmf 2> /dev/null` in #(
  1.1498 +   *the\ am__doit\ target*)
  1.1499 +     am__include=.include
  1.1500 +     am__quote="\""
  1.1501 +     _am_result=BSD
  1.1502 +     ;;
  1.1503 +   esac
  1.1504 +fi
  1.1505 +AC_SUBST([am__include])
  1.1506 +AC_SUBST([am__quote])
  1.1507 +AC_MSG_RESULT([$_am_result])
  1.1508 +rm -f confinc confmf
  1.1509 +])
  1.1510 +
  1.1511 +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
  1.1512 +
  1.1513 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1.1514 +# Free Software Foundation, Inc.
  1.1515 +#
  1.1516 +# This file is free software; the Free Software Foundation
  1.1517 +# gives unlimited permission to copy and/or distribute it,
  1.1518 +# with or without modifications, as long as this notice is preserved.
  1.1519 +
  1.1520 +# serial 6
  1.1521 +
  1.1522 +# AM_MISSING_PROG(NAME, PROGRAM)
  1.1523 +# ------------------------------
  1.1524 +AC_DEFUN([AM_MISSING_PROG],
  1.1525 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  1.1526 +$1=${$1-"${am_missing_run}$2"}
  1.1527 +AC_SUBST($1)])
  1.1528 +
  1.1529 +
  1.1530 +# AM_MISSING_HAS_RUN
  1.1531 +# ------------------
  1.1532 +# Define MISSING if not defined so far and test if it supports --run.
  1.1533 +# If it does, set am_missing_run to use it, otherwise, to nothing.
  1.1534 +AC_DEFUN([AM_MISSING_HAS_RUN],
  1.1535 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1.1536 +AC_REQUIRE_AUX_FILE([missing])dnl
  1.1537 +if test x"${MISSING+set}" != xset; then
  1.1538 +  case $am_aux_dir in
  1.1539 +  *\ * | *\	*)
  1.1540 +    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1.1541 +  *)
  1.1542 +    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1.1543 +  esac
  1.1544 +fi
  1.1545 +# Use eval to expand $SHELL
  1.1546 +if eval "$MISSING --run true"; then
  1.1547 +  am_missing_run="$MISSING --run "
  1.1548 +else
  1.1549 +  am_missing_run=
  1.1550 +  AC_MSG_WARN([`missing' script is too old or missing])
  1.1551 +fi
  1.1552 +])
  1.1553 +
  1.1554 +# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
  1.1555 +#
  1.1556 +# This file is free software; the Free Software Foundation
  1.1557 +# gives unlimited permission to copy and/or distribute it,
  1.1558 +# with or without modifications, as long as this notice is preserved.
  1.1559 +
  1.1560 +# AM_PROG_MKDIR_P
  1.1561 +# ---------------
  1.1562 +# Check for `mkdir -p'.
  1.1563 +AC_DEFUN([AM_PROG_MKDIR_P],
  1.1564 +[AC_PREREQ([2.60])dnl
  1.1565 +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1.1566 +dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
  1.1567 +dnl while keeping a definition of mkdir_p for backward compatibility.
  1.1568 +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1.1569 +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1.1570 +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1.1571 +dnl adjustment using top_builddir (which is defined more often than
  1.1572 +dnl MKDIR_P).
  1.1573 +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1.1574 +case $mkdir_p in
  1.1575 +  [[\\/$]]* | ?:[[\\/]]*) ;;
  1.1576 +  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1.1577 +esac
  1.1578 +])
  1.1579 +
  1.1580 +# Helper functions for option handling.                     -*- Autoconf -*-
  1.1581 +
  1.1582 +# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
  1.1583 +#
  1.1584 +# This file is free software; the Free Software Foundation
  1.1585 +# gives unlimited permission to copy and/or distribute it,
  1.1586 +# with or without modifications, as long as this notice is preserved.
  1.1587 +
  1.1588 +# serial 4
  1.1589 +
  1.1590 +# _AM_MANGLE_OPTION(NAME)
  1.1591 +# -----------------------
  1.1592 +AC_DEFUN([_AM_MANGLE_OPTION],
  1.1593 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1.1594 +
  1.1595 +# _AM_SET_OPTION(NAME)
  1.1596 +# ------------------------------
  1.1597 +# Set option NAME.  Presently that only means defining a flag for this option.
  1.1598 +AC_DEFUN([_AM_SET_OPTION],
  1.1599 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1.1600 +
  1.1601 +# _AM_SET_OPTIONS(OPTIONS)
  1.1602 +# ----------------------------------
  1.1603 +# OPTIONS is a space-separated list of Automake options.
  1.1604 +AC_DEFUN([_AM_SET_OPTIONS],
  1.1605 +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1.1606 +
  1.1607 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1.1608 +# -------------------------------------------
  1.1609 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1.1610 +AC_DEFUN([_AM_IF_OPTION],
  1.1611 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1.1612 +
  1.1613 +# Check to make sure that the build environment is sane.    -*- Autoconf -*-
  1.1614 +
  1.1615 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  1.1616 +# Free Software Foundation, Inc.
  1.1617 +#
  1.1618 +# This file is free software; the Free Software Foundation
  1.1619 +# gives unlimited permission to copy and/or distribute it,
  1.1620 +# with or without modifications, as long as this notice is preserved.
  1.1621 +
  1.1622 +# serial 5
  1.1623 +
  1.1624 +# AM_SANITY_CHECK
  1.1625 +# ---------------
  1.1626 +AC_DEFUN([AM_SANITY_CHECK],
  1.1627 +[AC_MSG_CHECKING([whether build environment is sane])
  1.1628 +# Just in case
  1.1629 +sleep 1
  1.1630 +echo timestamp > conftest.file
  1.1631 +# Reject unsafe characters in $srcdir or the absolute working directory
  1.1632 +# name.  Accept space and tab only in the latter.
  1.1633 +am_lf='
  1.1634 +'
  1.1635 +case `pwd` in
  1.1636 +  *[[\\\"\#\$\&\'\`$am_lf]]*)
  1.1637 +    AC_MSG_ERROR([unsafe absolute working directory name]);;
  1.1638 +esac
  1.1639 +case $srcdir in
  1.1640 +  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
  1.1641 +    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  1.1642 +esac
  1.1643 +
  1.1644 +# Do `set' in a subshell so we don't clobber the current shell's
  1.1645 +# arguments.  Must try -L first in case configure is actually a
  1.1646 +# symlink; some systems play weird games with the mod time of symlinks
  1.1647 +# (eg FreeBSD returns the mod time of the symlink's containing
  1.1648 +# directory).
  1.1649 +if (
  1.1650 +   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1.1651 +   if test "$[*]" = "X"; then
  1.1652 +      # -L didn't work.
  1.1653 +      set X `ls -t "$srcdir/configure" conftest.file`
  1.1654 +   fi
  1.1655 +   rm -f conftest.file
  1.1656 +   if test "$[*]" != "X $srcdir/configure conftest.file" \
  1.1657 +      && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1.1658 +
  1.1659 +      # If neither matched, then we have a broken ls.  This can happen
  1.1660 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
  1.1661 +      # broken ls alias from the environment.  This has actually
  1.1662 +      # happened.  Such a system could not be considered "sane".
  1.1663 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
  1.1664 +alias in your environment])
  1.1665 +   fi
  1.1666 +
  1.1667 +   test "$[2]" = conftest.file
  1.1668 +   )
  1.1669 +then
  1.1670 +   # Ok.
  1.1671 +   :
  1.1672 +else
  1.1673 +   AC_MSG_ERROR([newly created file is older than distributed files!
  1.1674 +Check your system clock])
  1.1675 +fi
  1.1676 +AC_MSG_RESULT(yes)])
  1.1677 +
  1.1678 +# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
  1.1679 +#
  1.1680 +# This file is free software; the Free Software Foundation
  1.1681 +# gives unlimited permission to copy and/or distribute it,
  1.1682 +# with or without modifications, as long as this notice is preserved.
  1.1683 +
  1.1684 +# AM_PROG_INSTALL_STRIP
  1.1685 +# ---------------------
  1.1686 +# One issue with vendor `install' (even GNU) is that you can't
  1.1687 +# specify the program used to strip binaries.  This is especially
  1.1688 +# annoying in cross-compiling environments, where the build's strip
  1.1689 +# is unlikely to handle the host's binaries.
  1.1690 +# Fortunately install-sh will honor a STRIPPROG variable, so we
  1.1691 +# always use install-sh in `make install-strip', and initialize
  1.1692 +# STRIPPROG with the value of the STRIP variable (set by the user).
  1.1693 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1.1694 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1.1695 +# Installed binaries are usually stripped using `strip' when the user
  1.1696 +# run `make install-strip'.  However `strip' might not be the right
  1.1697 +# tool to use in cross-compilation environments, therefore Automake
  1.1698 +# will honor the `STRIP' environment variable to overrule this program.
  1.1699 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1.1700 +if test "$cross_compiling" != no; then
  1.1701 +  AC_CHECK_TOOL([STRIP], [strip], :)
  1.1702 +fi
  1.1703 +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1.1704 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1.1705 +
  1.1706 +# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
  1.1707 +#
  1.1708 +# This file is free software; the Free Software Foundation
  1.1709 +# gives unlimited permission to copy and/or distribute it,
  1.1710 +# with or without modifications, as long as this notice is preserved.
  1.1711 +
  1.1712 +# serial 2
  1.1713 +
  1.1714 +# _AM_SUBST_NOTMAKE(VARIABLE)
  1.1715 +# ---------------------------
  1.1716 +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1.1717 +# This macro is traced by Automake.
  1.1718 +AC_DEFUN([_AM_SUBST_NOTMAKE])
  1.1719 +
  1.1720 +# AM_SUBST_NOTMAKE(VARIABLE)
  1.1721 +# ---------------------------
  1.1722 +# Public sister of _AM_SUBST_NOTMAKE.
  1.1723 +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1.1724 +
  1.1725 +# Check how to create a tarball.                            -*- Autoconf -*-
  1.1726 +
  1.1727 +# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
  1.1728 +#
  1.1729 +# This file is free software; the Free Software Foundation
  1.1730 +# gives unlimited permission to copy and/or distribute it,
  1.1731 +# with or without modifications, as long as this notice is preserved.
  1.1732 +
  1.1733 +# serial 2
  1.1734 +
  1.1735 +# _AM_PROG_TAR(FORMAT)
  1.1736 +# --------------------
  1.1737 +# Check how to create a tarball in format FORMAT.
  1.1738 +# FORMAT should be one of `v7', `ustar', or `pax'.
  1.1739 +#
  1.1740 +# Substitute a variable $(am__tar) that is a command
  1.1741 +# writing to stdout a FORMAT-tarball containing the directory
  1.1742 +# $tardir.
  1.1743 +#     tardir=directory && $(am__tar) > result.tar
  1.1744 +#
  1.1745 +# Substitute a variable $(am__untar) that extract such
  1.1746 +# a tarball read from stdin.
  1.1747 +#     $(am__untar) < result.tar
  1.1748 +AC_DEFUN([_AM_PROG_TAR],
  1.1749 +[# Always define AMTAR for backward compatibility.
  1.1750 +AM_MISSING_PROG([AMTAR], [tar])
  1.1751 +m4_if([$1], [v7],
  1.1752 +     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1.1753 +     [m4_case([$1], [ustar],, [pax],,
  1.1754 +              [m4_fatal([Unknown tar format])])
  1.1755 +AC_MSG_CHECKING([how to create a $1 tar archive])
  1.1756 +# Loop over all known methods to create a tar archive until one works.
  1.1757 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1.1758 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1.1759 +# Do not fold the above two line into one, because Tru64 sh and
  1.1760 +# Solaris sh will not grok spaces in the rhs of `-'.
  1.1761 +for _am_tool in $_am_tools
  1.1762 +do
  1.1763 +  case $_am_tool in
  1.1764 +  gnutar)
  1.1765 +    for _am_tar in tar gnutar gtar;
  1.1766 +    do
  1.1767 +      AM_RUN_LOG([$_am_tar --version]) && break
  1.1768 +    done
  1.1769 +    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1.1770 +    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1.1771 +    am__untar="$_am_tar -xf -"
  1.1772 +    ;;
  1.1773 +  plaintar)
  1.1774 +    # Must skip GNU tar: if it does not support --format= it doesn't create
  1.1775 +    # ustar tarball either.
  1.1776 +    (tar --version) >/dev/null 2>&1 && continue
  1.1777 +    am__tar='tar chf - "$$tardir"'
  1.1778 +    am__tar_='tar chf - "$tardir"'
  1.1779 +    am__untar='tar xf -'
  1.1780 +    ;;
  1.1781 +  pax)
  1.1782 +    am__tar='pax -L -x $1 -w "$$tardir"'
  1.1783 +    am__tar_='pax -L -x $1 -w "$tardir"'
  1.1784 +    am__untar='pax -r'
  1.1785 +    ;;
  1.1786 +  cpio)
  1.1787 +    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1.1788 +    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1.1789 +    am__untar='cpio -i -H $1 -d'
  1.1790 +    ;;
  1.1791 +  none)
  1.1792 +    am__tar=false
  1.1793 +    am__tar_=false
  1.1794 +    am__untar=false
  1.1795 +    ;;
  1.1796 +  esac
  1.1797 +
  1.1798 +  # If the value was cached, stop now.  We just wanted to have am__tar
  1.1799 +  # and am__untar set.
  1.1800 +  test -n "${am_cv_prog_tar_$1}" && break
  1.1801 +
  1.1802 +  # tar/untar a dummy directory, and stop if the command works
  1.1803 +  rm -rf conftest.dir
  1.1804 +  mkdir conftest.dir
  1.1805 +  echo GrepMe > conftest.dir/file
  1.1806 +  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1.1807 +  rm -rf conftest.dir
  1.1808 +  if test -s conftest.tar; then
  1.1809 +    AM_RUN_LOG([$am__untar <conftest.tar])
  1.1810 +    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1.1811 +  fi
  1.1812 +done
  1.1813 +rm -rf conftest.dir
  1.1814 +
  1.1815 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1.1816 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1.1817 +AC_SUBST([am__tar])
  1.1818 +AC_SUBST([am__untar])
  1.1819 +]) # _AM_PROG_TAR
  1.1820 +