Blame aclocal.m4

Packit 7e555f
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit 7e555f
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# This program is distributed in the hope that it will be useful,
Packit 7e555f
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit 7e555f
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit 7e555f
# PARTICULAR PURPOSE.
Packit 7e555f
Packit 7e555f
m4_ifndef([AC_AUTOCONF_VERSION],
Packit 7e555f
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit 7e555f
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit 7e555f
[m4_warning([this file was generated for autoconf 2.69.
Packit 7e555f
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit 7e555f
If you have problems, you may need to regenerate the build system entirely.
Packit 7e555f
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit 7e555f
Packit 7e555f
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
Packit 7e555f
# serial 1 (pkg-config-0.24)
Packit 7e555f
# 
Packit 7e555f
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit 7e555f
#
Packit 7e555f
# This program is free software; you can redistribute it and/or modify
Packit 7e555f
# it under the terms of the GNU General Public License as published by
Packit 7e555f
# the Free Software Foundation; either version 2 of the License, or
Packit 7e555f
# (at your option) any later version.
Packit 7e555f
#
Packit 7e555f
# This program is distributed in the hope that it will be useful, but
Packit 7e555f
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 7e555f
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 7e555f
# General Public License for more details.
Packit 7e555f
#
Packit 7e555f
# You should have received a copy of the GNU General Public License
Packit 7e555f
# along with this program; if not, write to the Free Software
Packit 7e555f
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit 7e555f
#
Packit 7e555f
# As a special exception to the GNU General Public License, if you
Packit 7e555f
# distribute this file as part of a program that contains a
Packit 7e555f
# configuration script generated by Autoconf, you may include it under
Packit 7e555f
# the same distribution terms that you use for the rest of that program.
Packit 7e555f
Packit 7e555f
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit 7e555f
# ----------------------------------
Packit 7e555f
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit 7e555f
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit 7e555f
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit 7e555f
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit 7e555f
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit 7e555f
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit 7e555f
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit 7e555f
Packit 7e555f
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit 7e555f
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit 7e555f
fi
Packit 7e555f
if test -n "$PKG_CONFIG"; then
Packit 7e555f
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit 7e555f
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit 7e555f
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit 7e555f
		AC_MSG_RESULT([yes])
Packit 7e555f
	else
Packit 7e555f
		AC_MSG_RESULT([no])
Packit 7e555f
		PKG_CONFIG=""
Packit 7e555f
	fi
Packit 7e555f
fi[]dnl
Packit 7e555f
])# PKG_PROG_PKG_CONFIG
Packit 7e555f
Packit 7e555f
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit 7e555f
#
Packit 7e555f
# Check to see whether a particular set of modules exists.  Similar
Packit 7e555f
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit 7e555f
#
Packit 7e555f
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit 7e555f
# only at the first occurence in configure.ac, so if the first place
Packit 7e555f
# it's called might be skipped (such as if it is within an "if", you
Packit 7e555f
# have to call PKG_CHECK_EXISTS manually
Packit 7e555f
# --------------------------------------------------------------
Packit 7e555f
AC_DEFUN([PKG_CHECK_EXISTS],
Packit 7e555f
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 7e555f
if test -n "$PKG_CONFIG" && \
Packit 7e555f
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit 7e555f
  m4_default([$2], [:])
Packit 7e555f
m4_ifvaln([$3], [else
Packit 7e555f
  $3])dnl
Packit 7e555f
fi])
Packit 7e555f
Packit 7e555f
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit 7e555f
# ---------------------------------------------
Packit 7e555f
m4_define([_PKG_CONFIG],
Packit 7e555f
[if test -n "$$1"; then
Packit 7e555f
    pkg_cv_[]$1="$$1"
Packit 7e555f
 elif test -n "$PKG_CONFIG"; then
Packit 7e555f
    PKG_CHECK_EXISTS([$3],
Packit 7e555f
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit 7e555f
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit 7e555f
		     [pkg_failed=yes])
Packit 7e555f
 else
Packit 7e555f
    pkg_failed=untried
Packit 7e555f
fi[]dnl
Packit 7e555f
])# _PKG_CONFIG
Packit 7e555f
Packit 7e555f
# _PKG_SHORT_ERRORS_SUPPORTED
Packit 7e555f
# -----------------------------
Packit 7e555f
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit 7e555f
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit 7e555f
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit 7e555f
        _pkg_short_errors_supported=yes
Packit 7e555f
else
Packit 7e555f
        _pkg_short_errors_supported=no
Packit 7e555f
fi[]dnl
Packit 7e555f
])# _PKG_SHORT_ERRORS_SUPPORTED
Packit 7e555f
Packit 7e555f
Packit 7e555f
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit 7e555f
# [ACTION-IF-NOT-FOUND])
Packit 7e555f
#
Packit 7e555f
#
Packit 7e555f
# Note that if there is a possibility the first call to
Packit 7e555f
# PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit 7e555f
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit 7e555f
#
Packit 7e555f
#
Packit 7e555f
# --------------------------------------------------------------
Packit 7e555f
AC_DEFUN([PKG_CHECK_MODULES],
Packit 7e555f
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit 7e555f
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit 7e555f
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit 7e555f
Packit 7e555f
pkg_failed=no
Packit 7e555f
AC_MSG_CHECKING([for $1])
Packit 7e555f
Packit 7e555f
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit 7e555f
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit 7e555f
Packit 7e555f
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit 7e555f
and $1[]_LIBS to avoid the need to call pkg-config.
Packit 7e555f
See the pkg-config man page for more details.])
Packit 7e555f
Packit 7e555f
if test $pkg_failed = yes; then
Packit 7e555f
   	AC_MSG_RESULT([no])
Packit 7e555f
        _PKG_SHORT_ERRORS_SUPPORTED
Packit 7e555f
        if test $_pkg_short_errors_supported = yes; then
Packit 7e555f
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit 7e555f
        else 
Packit 7e555f
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit 7e555f
        fi
Packit 7e555f
	# Put the nasty error message in config.log where it belongs
Packit 7e555f
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit 7e555f
Packit 7e555f
	m4_default([$4], [AC_MSG_ERROR(
Packit 7e555f
[Package requirements ($2) were not met:
Packit 7e555f
Packit 7e555f
$$1_PKG_ERRORS
Packit 7e555f
Packit 7e555f
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit 7e555f
installed software in a non-standard prefix.
Packit 7e555f
Packit 7e555f
_PKG_TEXT])[]dnl
Packit 7e555f
        ])
Packit 7e555f
elif test $pkg_failed = untried; then
Packit 7e555f
     	AC_MSG_RESULT([no])
Packit 7e555f
	m4_default([$4], [AC_MSG_FAILURE(
Packit 7e555f
[The pkg-config script could not be found or is too old.  Make sure it
Packit 7e555f
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit 7e555f
path to pkg-config.
Packit 7e555f
Packit 7e555f
_PKG_TEXT
Packit 7e555f
Packit 7e555f
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit 7e555f
        ])
Packit 7e555f
else
Packit 7e555f
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit 7e555f
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit 7e555f
        AC_MSG_RESULT([yes])
Packit 7e555f
	$3
Packit 7e555f
fi[]dnl
Packit 7e555f
])# PKG_CHECK_MODULES
Packit 7e555f
Packit 7e555f
Packit 7e555f
# PKG_INSTALLDIR(DIRECTORY)
Packit 7e555f
# -------------------------
Packit 7e555f
# Substitutes the variable pkgconfigdir as the location where a module
Packit 7e555f
# should install pkg-config .pc files. By default the directory is
Packit 7e555f
# $libdir/pkgconfig, but the default can be changed by passing
Packit 7e555f
# DIRECTORY. The user can override through the --with-pkgconfigdir
Packit 7e555f
# parameter.
Packit 7e555f
AC_DEFUN([PKG_INSTALLDIR],
Packit 7e555f
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
Packit 7e555f
m4_pushdef([pkg_description],
Packit 7e555f
    [pkg-config installation directory @<:@]pkg_default[@:>@])
Packit 7e555f
AC_ARG_WITH([pkgconfigdir],
Packit 7e555f
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
Packit 7e555f
    [with_pkgconfigdir=]pkg_default)
Packit 7e555f
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
Packit 7e555f
m4_popdef([pkg_default])
Packit 7e555f
m4_popdef([pkg_description])
Packit 7e555f
]) dnl PKG_INSTALLDIR
Packit 7e555f
Packit 7e555f
Packit 7e555f
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
Packit 7e555f
# -------------------------
Packit 7e555f
# Substitutes the variable noarch_pkgconfigdir as the location where a
Packit 7e555f
# module should install arch-independent pkg-config .pc files. By
Packit 7e555f
# default the directory is $datadir/pkgconfig, but the default can be
Packit 7e555f
# changed by passing DIRECTORY. The user can override through the
Packit 7e555f
# --with-noarch-pkgconfigdir parameter.
Packit 7e555f
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
Packit 7e555f
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
Packit 7e555f
m4_pushdef([pkg_description],
Packit 7e555f
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
Packit 7e555f
AC_ARG_WITH([noarch-pkgconfigdir],
Packit 7e555f
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
Packit 7e555f
    [with_noarch_pkgconfigdir=]pkg_default)
Packit 7e555f
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
Packit 7e555f
m4_popdef([pkg_default])
Packit 7e555f
m4_popdef([pkg_description])
Packit 7e555f
]) dnl PKG_NOARCH_INSTALLDIR
Packit 7e555f
Packit 7e555f
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 8
Packit 7e555f
Packit 7e555f
# AM_AUTOMAKE_VERSION(VERSION)
Packit 7e555f
# ----------------------------
Packit 7e555f
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit 7e555f
# generated from the m4 files accompanying Automake X.Y.
Packit 7e555f
# (This private macro should not be called outside this file.)
Packit 7e555f
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit 7e555f
[am__api_version='1.12'
Packit 7e555f
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit 7e555f
dnl require some minimum version.  Point them to the right macro.
Packit 7e555f
m4_if([$1], [1.12.2], [],
Packit 7e555f
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# _AM_AUTOCONF_VERSION(VERSION)
Packit 7e555f
# -----------------------------
Packit 7e555f
# aclocal traces this macro to find the Autoconf version.
Packit 7e555f
# This is a private macro too.  Using m4_define simplifies
Packit 7e555f
# the logic in aclocal, which can simply ignore this definition.
Packit 7e555f
m4_define([_AM_AUTOCONF_VERSION], [])
Packit 7e555f
Packit 7e555f
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit 7e555f
# -------------------------------
Packit 7e555f
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit 7e555f
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit 7e555f
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit 7e555f
[AM_AUTOMAKE_VERSION([1.12.2])dnl
Packit 7e555f
m4_ifndef([AC_AUTOCONF_VERSION],
Packit 7e555f
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit 7e555f
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit 7e555f
Packit 7e555f
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 2
Packit 7e555f
Packit 7e555f
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit 7e555f
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit 7e555f
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit 7e555f
#
Packit 7e555f
# Of course, Automake must honor this variable whenever it calls a
Packit 7e555f
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit 7e555f
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit 7e555f
# depending on how configure is run.  This is pretty annoying, since
Packit 7e555f
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit 7e555f
# source directory, any form will work fine, but in subdirectories a
Packit 7e555f
# relative path needs to be adjusted first.
Packit 7e555f
#
Packit 7e555f
# $ac_aux_dir/missing
Packit 7e555f
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit 7e555f
# $top_srcdir/$ac_aux_dir/missing
Packit 7e555f
#    fails if $ac_aux_dir is absolute,
Packit 7e555f
#    fails when called from a subdirectory in a VPATH build with
Packit 7e555f
#          a relative $ac_aux_dir
Packit 7e555f
#
Packit 7e555f
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit 7e555f
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit 7e555f
# harmless because $srcdir is '.', but things will broke when you
Packit 7e555f
# start a VPATH build or use an absolute $srcdir.
Packit 7e555f
#
Packit 7e555f
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit 7e555f
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit 7e555f
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit 7e555f
# and then we would define $MISSING as
Packit 7e555f
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit 7e555f
# This will work as long as MISSING is not called from configure, because
Packit 7e555f
# unfortunately $(top_srcdir) has no meaning in configure.
Packit 7e555f
# However there are other variables, like CC, which are often used in
Packit 7e555f
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit 7e555f
#
Packit 7e555f
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit 7e555f
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit 7e555f
# configured tree to be moved without reconfiguration.
Packit 7e555f
Packit 7e555f
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit 7e555f
[dnl Rely on autoconf to set up CDPATH properly.
Packit 7e555f
AC_PREREQ([2.50])dnl
Packit 7e555f
# expand $ac_aux_dir to an absolute path
Packit 7e555f
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 10
Packit 7e555f
Packit 7e555f
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit 7e555f
# -------------------------------------
Packit 7e555f
# Define a conditional.
Packit 7e555f
AC_DEFUN([AM_CONDITIONAL],
Packit 7e555f
[AC_PREREQ([2.52])dnl
Packit 7e555f
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit 7e555f
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit 7e555f
AC_SUBST([$1_TRUE])dnl
Packit 7e555f
AC_SUBST([$1_FALSE])dnl
Packit 7e555f
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit 7e555f
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit 7e555f
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit 7e555f
if $2; then
Packit 7e555f
  $1_TRUE=
Packit 7e555f
  $1_FALSE='#'
Packit 7e555f
else
Packit 7e555f
  $1_TRUE='#'
Packit 7e555f
  $1_FALSE=
Packit 7e555f
fi
Packit 7e555f
AC_CONFIG_COMMANDS_PRE(
Packit 7e555f
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit 7e555f
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit 7e555f
Usually this means the macro was only invoked conditionally.]])
Packit 7e555f
fi])])
Packit 7e555f
Packit 7e555f
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 17
Packit 7e555f
Packit 7e555f
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit 7e555f
# written in clear, in which case automake, when reading aclocal.m4,
Packit 7e555f
# will think it sees a *use*, and therefore will trigger all it's
Packit 7e555f
# C support machinery.  Also note that it means that autoscan, seeing
Packit 7e555f
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit 7e555f
Packit 7e555f
Packit 7e555f
# _AM_DEPENDENCIES(NAME)
Packit 7e555f
# ----------------------
Packit 7e555f
# See how the compiler implements dependency checking.
Packit 7e555f
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit 7e555f
# We try a few techniques and use that to set a single cache variable.
Packit 7e555f
#
Packit 7e555f
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit 7e555f
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit 7e555f
# dependency, and given that the user is not expected to run this macro,
Packit 7e555f
# just rely on AC_PROG_CC.
Packit 7e555f
AC_DEFUN([_AM_DEPENDENCIES],
Packit 7e555f
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit 7e555f
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit 7e555f
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit 7e555f
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit 7e555f
Packit 7e555f
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit 7e555f
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit 7e555f
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit 7e555f
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit 7e555f
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit 7e555f
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit 7e555f
                    [depcc="$$1"   am_compiler_list=])
Packit 7e555f
Packit 7e555f
AC_CACHE_CHECK([dependency style of $depcc],
Packit 7e555f
               [am_cv_$1_dependencies_compiler_type],
Packit 7e555f
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit 7e555f
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit 7e555f
  # making bogus files that we don't know about and never remove.  For
Packit 7e555f
  # instance it was reported that on HP-UX the gcc test will end up
Packit 7e555f
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit 7e555f
  # in D".
Packit 7e555f
  rm -rf conftest.dir
Packit 7e555f
  mkdir conftest.dir
Packit 7e555f
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit 7e555f
  # using a relative directory.
Packit 7e555f
  cp "$am_depcomp" conftest.dir
Packit 7e555f
  cd conftest.dir
Packit 7e555f
  # We will build objects and dependencies in a subdirectory because
Packit 7e555f
  # it helps to detect inapplicable dependency modes.  For instance
Packit 7e555f
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit 7e555f
  # side effect of compilation, but ICC will put the dependencies in
Packit 7e555f
  # the current directory while Tru64 will put them in the object
Packit 7e555f
  # directory.
Packit 7e555f
  mkdir sub
Packit 7e555f
Packit 7e555f
  am_cv_$1_dependencies_compiler_type=none
Packit 7e555f
  if test "$am_compiler_list" = ""; then
Packit 7e555f
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit 7e555f
  fi
Packit 7e555f
  am__universal=false
Packit 7e555f
  m4_case([$1], [CC],
Packit 7e555f
    [case " $depcc " in #(
Packit 7e555f
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit 7e555f
     esac],
Packit 7e555f
    [CXX],
Packit 7e555f
    [case " $depcc " in #(
Packit 7e555f
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit 7e555f
     esac])
Packit 7e555f
Packit 7e555f
  for depmode in $am_compiler_list; do
Packit 7e555f
    # Setup a source with many dependencies, because some compilers
Packit 7e555f
    # like to wrap large dependency lists on column 80 (with \), and
Packit 7e555f
    # we should not choose a depcomp mode which is confused by this.
Packit 7e555f
    #
Packit 7e555f
    # We need to recreate these files for each test, as the compiler may
Packit 7e555f
    # overwrite some of them when testing with obscure command lines.
Packit 7e555f
    # This happens at least with the AIX C compiler.
Packit 7e555f
    : > sub/conftest.c
Packit 7e555f
    for i in 1 2 3 4 5 6; do
Packit 7e555f
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit 7e555f
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit 7e555f
      # Solaris 10 /bin/sh.
Packit 7e555f
      echo '/* dummy */' > sub/conftst$i.h
Packit 7e555f
    done
Packit 7e555f
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit 7e555f
Packit 7e555f
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit 7e555f
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit 7e555f
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit 7e555f
    # versions had trouble with output in subdirs.
Packit 7e555f
    am__obj=sub/conftest.${OBJEXT-o}
Packit 7e555f
    am__minus_obj="-o $am__obj"
Packit 7e555f
    case $depmode in
Packit 7e555f
    gcc)
Packit 7e555f
      # This depmode causes a compiler race in universal mode.
Packit 7e555f
      test "$am__universal" = false || continue
Packit 7e555f
      ;;
Packit 7e555f
    nosideeffect)
Packit 7e555f
      # After this tag, mechanisms are not by side-effect, so they'll
Packit 7e555f
      # only be used when explicitly requested.
Packit 7e555f
      if test "x$enable_dependency_tracking" = xyes; then
Packit 7e555f
	continue
Packit 7e555f
      else
Packit 7e555f
	break
Packit 7e555f
      fi
Packit 7e555f
      ;;
Packit 7e555f
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit 7e555f
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit 7e555f
      # not run yet.  These depmodes are late enough in the game, and
Packit 7e555f
      # so weak that their functioning should not be impacted.
Packit 7e555f
      am__obj=conftest.${OBJEXT-o}
Packit 7e555f
      am__minus_obj=
Packit 7e555f
      ;;
Packit 7e555f
    none) break ;;
Packit 7e555f
    esac
Packit 7e555f
    if depmode=$depmode \
Packit 7e555f
       source=sub/conftest.c object=$am__obj \
Packit 7e555f
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit 7e555f
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit 7e555f
         >/dev/null 2>conftest.err &&
Packit 7e555f
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit 7e555f
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit 7e555f
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit 7e555f
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit 7e555f
      # icc doesn't choke on unknown options, it will just issue warnings
Packit 7e555f
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit 7e555f
      # that says an option was ignored or not supported.
Packit 7e555f
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit 7e555f
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit 7e555f
      # The diagnosis changed in icc 8.0:
Packit 7e555f
      #   icc: Command line remark: option '-MP' not supported
Packit 7e555f
      if (grep 'ignoring option' conftest.err ||
Packit 7e555f
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit 7e555f
        am_cv_$1_dependencies_compiler_type=$depmode
Packit 7e555f
        break
Packit 7e555f
      fi
Packit 7e555f
    fi
Packit 7e555f
  done
Packit 7e555f
Packit 7e555f
  cd ..
Packit 7e555f
  rm -rf conftest.dir
Packit 7e555f
else
Packit 7e555f
  am_cv_$1_dependencies_compiler_type=none
Packit 7e555f
fi
Packit 7e555f
])
Packit 7e555f
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit 7e555f
AM_CONDITIONAL([am__fastdep$1], [
Packit 7e555f
  test "x$enable_dependency_tracking" != xno \
Packit 7e555f
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
Packit 7e555f
# AM_SET_DEPDIR
Packit 7e555f
# -------------
Packit 7e555f
# Choose a directory name for dependency files.
Packit 7e555f
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit 7e555f
AC_DEFUN([AM_SET_DEPDIR],
Packit 7e555f
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit 7e555f
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
Packit 7e555f
# AM_DEP_TRACK
Packit 7e555f
# ------------
Packit 7e555f
AC_DEFUN([AM_DEP_TRACK],
Packit 7e555f
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit 7e555f
AS_HELP_STRING(
Packit 7e555f
  [--enable-dependency-tracking],
Packit 7e555f
  [do not reject slow dependency extractors])
Packit 7e555f
AS_HELP_STRING(
Packit 7e555f
  [--disable-dependency-tracking],
Packit 7e555f
  [speeds up one-time build])])
Packit 7e555f
if test "x$enable_dependency_tracking" != xno; then
Packit 7e555f
  am_depcomp="$ac_aux_dir/depcomp"
Packit 7e555f
  AMDEPBACKSLASH='\'
Packit 7e555f
  am__nodep='_no'
Packit 7e555f
fi
Packit 7e555f
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit 7e555f
AC_SUBST([AMDEPBACKSLASH])dnl
Packit 7e555f
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit 7e555f
AC_SUBST([am__nodep])dnl
Packit 7e555f
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 6
Packit 7e555f
Packit 7e555f
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 7e555f
# ------------------------------
Packit 7e555f
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 7e555f
[{
Packit 7e555f
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
Packit 7e555f
  # are listed without --file.  Let's play safe and only enable the eval
Packit 7e555f
  # if we detect the quoting.
Packit 7e555f
  case $CONFIG_FILES in
Packit 7e555f
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit 7e555f
  *)   set x $CONFIG_FILES ;;
Packit 7e555f
  esac
Packit 7e555f
  shift
Packit 7e555f
  for mf
Packit 7e555f
  do
Packit 7e555f
    # Strip MF so we end up with the name of the file.
Packit 7e555f
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit 7e555f
    # Check whether this is an Automake generated Makefile or not.
Packit 7e555f
    # We used to match only the files named 'Makefile.in', but
Packit 7e555f
    # some people rename them; so instead we look at the file content.
Packit 7e555f
    # Grep'ing the first line is not enough: some people post-process
Packit 7e555f
    # each Makefile.in and add a new line on top of each file to say so.
Packit 7e555f
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit 7e555f
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit 7e555f
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit 7e555f
      dirpart=`AS_DIRNAME("$mf")`
Packit 7e555f
    else
Packit 7e555f
      continue
Packit 7e555f
    fi
Packit 7e555f
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit 7e555f
    # from the Makefile without running 'make'.
Packit 7e555f
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit 7e555f
    test -z "$DEPDIR" && continue
Packit 7e555f
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit 7e555f
    test -z "am__include" && continue
Packit 7e555f
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit 7e555f
    # Find all dependency output files, they are included files with
Packit 7e555f
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit 7e555f
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit 7e555f
    # expansion.
Packit 7e555f
    for file in `sed -n "
Packit 7e555f
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit 7e555f
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit 7e555f
      # Make sure the directory exists.
Packit 7e555f
      test -f "$dirpart/$file" && continue
Packit 7e555f
      fdir=`AS_DIRNAME(["$file"])`
Packit 7e555f
      AS_MKDIR_P([$dirpart/$fdir])
Packit 7e555f
      # echo "creating $dirpart/$file"
Packit 7e555f
      echo '# dummy' > "$dirpart/$file"
Packit 7e555f
    done
Packit 7e555f
  done
Packit 7e555f
}
Packit 7e555f
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 7e555f
Packit 7e555f
Packit 7e555f
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit 7e555f
# -----------------------------
Packit 7e555f
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit 7e555f
#
Packit 7e555f
# This code is only required when automatic dependency tracking
Packit 7e555f
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit 7e555f
# need in order to bootstrap the dependency handling code.
Packit 7e555f
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 7e555f
[AC_CONFIG_COMMANDS([depfiles],
Packit 7e555f
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit 7e555f
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Do all the work for Automake.                             -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 19
Packit 7e555f
Packit 7e555f
# This macro actually does too much.  Some checks are only needed if
Packit 7e555f
# your package does certain things.  But this isn't really a big deal.
Packit 7e555f
Packit 7e555f
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit 7e555f
# AM_INIT_AUTOMAKE([OPTIONS])
Packit 7e555f
# -----------------------------------------------
Packit 7e555f
# The call with PACKAGE and VERSION arguments is the old style
Packit 7e555f
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit 7e555f
# and VERSION should now be passed to AC_INIT and removed from
Packit 7e555f
# the call to AM_INIT_AUTOMAKE.
Packit 7e555f
# We support both call styles for the transition.  After
Packit 7e555f
# the next Automake release, Autoconf can make the AC_INIT
Packit 7e555f
# arguments mandatory, and then we can depend on a new Autoconf
Packit 7e555f
# release and drop the old call support.
Packit 7e555f
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit 7e555f
[AC_PREREQ([2.62])dnl
Packit 7e555f
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit 7e555f
dnl the ones we care about.
Packit 7e555f
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit 7e555f
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit 7e555f
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit 7e555f
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit 7e555f
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit 7e555f
  # is not polluted with repeated "-I."
Packit 7e555f
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit 7e555f
  # test to see if srcdir already configured
Packit 7e555f
  if test -f $srcdir/config.status; then
Packit 7e555f
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit 7e555f
  fi
Packit 7e555f
fi
Packit 7e555f
Packit 7e555f
# test whether we have cygpath
Packit 7e555f
if test -z "$CYGPATH_W"; then
Packit 7e555f
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit 7e555f
    CYGPATH_W='cygpath -w'
Packit 7e555f
  else
Packit 7e555f
    CYGPATH_W=echo
Packit 7e555f
  fi
Packit 7e555f
fi
Packit 7e555f
AC_SUBST([CYGPATH_W])
Packit 7e555f
Packit 7e555f
# Define the identity of the package.
Packit 7e555f
dnl Distinguish between old-style and new-style calls.
Packit 7e555f
m4_ifval([$2],
Packit 7e555f
[AC_DIAGNOSE([obsolete],
Packit 7e555f
[$0: two- and three-arguments forms are deprecated.  For more info, see:
Packit 7e555f
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
Packit 7e555f
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit 7e555f
 AC_SUBST([PACKAGE], [$1])dnl
Packit 7e555f
 AC_SUBST([VERSION], [$2])],
Packit 7e555f
[_AM_SET_OPTIONS([$1])dnl
Packit 7e555f
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit 7e555f
m4_if(
Packit 7e555f
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit 7e555f
  [ok:ok],,
Packit 7e555f
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit 7e555f
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit 7e555f
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit 7e555f
Packit 7e555f
_AM_IF_OPTION([no-define],,
Packit 7e555f
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit 7e555f
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit 7e555f
Packit 7e555f
# Some tools Automake needs.
Packit 7e555f
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit 7e555f
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit 7e555f
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit 7e555f
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit 7e555f
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit 7e555f
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit 7e555f
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit 7e555f
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit 7e555f
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit 7e555f
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit 7e555f
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit 7e555f
# dies out for good.  For more background, see:
Packit 7e555f
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit 7e555f
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit 7e555f
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit 7e555f
# We need awk for the "check" target.  The system "awk" is bad on
Packit 7e555f
# some platforms.
Packit 7e555f
AC_REQUIRE([AC_PROG_AWK])dnl
Packit 7e555f
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit 7e555f
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit 7e555f
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit 7e555f
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit 7e555f
			     [_AM_PROG_TAR([v7])])])
Packit 7e555f
_AM_IF_OPTION([no-dependencies],,
Packit 7e555f
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit 7e555f
		  [_AM_DEPENDENCIES([CC])],
Packit 7e555f
		  [m4_define([AC_PROG_CC],
Packit 7e555f
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit 7e555f
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit 7e555f
		  [_AM_DEPENDENCIES([CXX])],
Packit 7e555f
		  [m4_define([AC_PROG_CXX],
Packit 7e555f
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit 7e555f
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit 7e555f
		  [_AM_DEPENDENCIES([OBJC])],
Packit 7e555f
		  [m4_define([AC_PROG_OBJC],
Packit 7e555f
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit 7e555f
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
Packit 7e555f
dnl but we still cater to Autoconf 2.62.
Packit 7e555f
m4_ifdef([AC_PROG_OBJCXX],
Packit 7e555f
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit 7e555f
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit 7e555f
		  [m4_define([AC_PROG_OBJCXX],
Packit 7e555f
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
Packit 7e555f
])
Packit 7e555f
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
Packit 7e555f
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
Packit 7e555f
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
Packit 7e555f
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit 7e555f
AC_CONFIG_COMMANDS_PRE(dnl
Packit 7e555f
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit 7e555f
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit 7e555f
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit 7e555f
dnl mangled by Autoconf and run in a shell conditional statement.
Packit 7e555f
m4_define([_AC_COMPILER_EXEEXT],
Packit 7e555f
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit 7e555f
Packit 7e555f
Packit 7e555f
# When config.status generates a header, we must update the stamp-h file.
Packit 7e555f
# This file resides in the same directory as the config header
Packit 7e555f
# that is generated.  The stamp files are numbered to have different names.
Packit 7e555f
Packit 7e555f
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit 7e555f
# loop where config.status creates the headers, so we can generate
Packit 7e555f
# our stamp files there.
Packit 7e555f
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit 7e555f
[# Compute $1's index in $config_headers.
Packit 7e555f
_am_arg=$1
Packit 7e555f
_am_stamp_count=1
Packit 7e555f
for _am_header in $config_headers :; do
Packit 7e555f
  case $_am_header in
Packit 7e555f
    $_am_arg | $_am_arg:* )
Packit 7e555f
      break ;;
Packit 7e555f
    * )
Packit 7e555f
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit 7e555f
  esac
Packit 7e555f
done
Packit 7e555f
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 8
Packit 7e555f
Packit 7e555f
# AM_PROG_INSTALL_SH
Packit 7e555f
# ------------------
Packit 7e555f
# Define $install_sh.
Packit 7e555f
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit 7e555f
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit 7e555f
if test x"${install_sh}" != xset; then
Packit 7e555f
  case $am_aux_dir in
Packit 7e555f
  *\ * | *\	*)
Packit 7e555f
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit 7e555f
  *)
Packit 7e555f
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit 7e555f
  esac
Packit 7e555f
fi
Packit 7e555f
AC_SUBST([install_sh])])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 2
Packit 7e555f
Packit 7e555f
# Check whether the underlying file-system supports filenames
Packit 7e555f
# with a leading dot.  For instance MS-DOS doesn't.
Packit 7e555f
AC_DEFUN([AM_SET_LEADING_DOT],
Packit 7e555f
[rm -rf .tst 2>/dev/null
Packit 7e555f
mkdir .tst 2>/dev/null
Packit 7e555f
if test -d .tst; then
Packit 7e555f
  am__leading_dot=.
Packit 7e555f
else
Packit 7e555f
  am__leading_dot=_
Packit 7e555f
fi
Packit 7e555f
rmdir .tst 2>/dev/null
Packit 7e555f
AC_SUBST([am__leading_dot])])
Packit 7e555f
Packit 7e555f
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
Packit 7e555f
# From Jim Meyering
Packit 7e555f
Packit 7e555f
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 7
Packit 7e555f
Packit 7e555f
# AM_MAINTAINER_MODE([DEFAULT-MODE])
Packit 7e555f
# ----------------------------------
Packit 7e555f
# Control maintainer-specific portions of Makefiles.
Packit 7e555f
# Default is to disable them, unless 'enable' is passed literally.
Packit 7e555f
# For symmetry, 'disable' may be passed as well.  Anyway, the user
Packit 7e555f
# can override the default with the --enable/--disable switch.
Packit 7e555f
AC_DEFUN([AM_MAINTAINER_MODE],
Packit 7e555f
[m4_case(m4_default([$1], [disable]),
Packit 7e555f
       [enable], [m4_define([am_maintainer_other], [disable])],
Packit 7e555f
       [disable], [m4_define([am_maintainer_other], [enable])],
Packit 7e555f
       [m4_define([am_maintainer_other], [enable])
Packit 7e555f
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Packit 7e555f
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit 7e555f
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Packit 7e555f
  AC_ARG_ENABLE([maintainer-mode],
Packit 7e555f
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
Packit 7e555f
      am_maintainer_other[ make rules and dependencies not useful
Packit 7e555f
      (and sometimes confusing) to the casual installer])],
Packit 7e555f
    [USE_MAINTAINER_MODE=$enableval],
Packit 7e555f
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Packit 7e555f
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Packit 7e555f
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Packit 7e555f
  MAINT=$MAINTAINER_MODE_TRUE
Packit 7e555f
  AC_SUBST([MAINT])dnl
Packit 7e555f
]
Packit 7e555f
)
Packit 7e555f
Packit 7e555f
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
Packit 7e555f
Packit 7e555f
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 5
Packit 7e555f
Packit 7e555f
# AM_MAKE_INCLUDE()
Packit 7e555f
# -----------------
Packit 7e555f
# Check to see how make treats includes.
Packit 7e555f
AC_DEFUN([AM_MAKE_INCLUDE],
Packit 7e555f
[am_make=${MAKE-make}
Packit 7e555f
cat > confinc << 'END'
Packit 7e555f
am__doit:
Packit 7e555f
	@echo this is the am__doit target
Packit 7e555f
.PHONY: am__doit
Packit 7e555f
END
Packit 7e555f
# If we don't find an include directive, just comment out the code.
Packit 7e555f
AC_MSG_CHECKING([for style of include used by $am_make])
Packit 7e555f
am__include="#"
Packit 7e555f
am__quote=
Packit 7e555f
_am_result=none
Packit 7e555f
# First try GNU make style include.
Packit 7e555f
echo "include confinc" > confmf
Packit 7e555f
# Ignore all kinds of additional output from 'make'.
Packit 7e555f
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit 7e555f
*the\ am__doit\ target*)
Packit 7e555f
  am__include=include
Packit 7e555f
  am__quote=
Packit 7e555f
  _am_result=GNU
Packit 7e555f
  ;;
Packit 7e555f
esac
Packit 7e555f
# Now try BSD make style include.
Packit 7e555f
if test "$am__include" = "#"; then
Packit 7e555f
   echo '.include "confinc"' > confmf
Packit 7e555f
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit 7e555f
   *the\ am__doit\ target*)
Packit 7e555f
     am__include=.include
Packit 7e555f
     am__quote="\""
Packit 7e555f
     _am_result=BSD
Packit 7e555f
     ;;
Packit 7e555f
   esac
Packit 7e555f
fi
Packit 7e555f
AC_SUBST([am__include])
Packit 7e555f
AC_SUBST([am__quote])
Packit 7e555f
AC_MSG_RESULT([$_am_result])
Packit 7e555f
rm -f confinc confmf
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 7
Packit 7e555f
Packit 7e555f
# AM_MISSING_PROG(NAME, PROGRAM)
Packit 7e555f
# ------------------------------
Packit 7e555f
AC_DEFUN([AM_MISSING_PROG],
Packit 7e555f
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit 7e555f
$1=${$1-"${am_missing_run}$2"}
Packit 7e555f
AC_SUBST($1)])
Packit 7e555f
Packit 7e555f
Packit 7e555f
# AM_MISSING_HAS_RUN
Packit 7e555f
# ------------------
Packit 7e555f
# Define MISSING if not defined so far and test if it supports --run.
Packit 7e555f
# If it does, set am_missing_run to use it, otherwise, to nothing.
Packit 7e555f
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit 7e555f
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit 7e555f
AC_REQUIRE_AUX_FILE([missing])dnl
Packit 7e555f
if test x"${MISSING+set}" != xset; then
Packit 7e555f
  case $am_aux_dir in
Packit 7e555f
  *\ * | *\	*)
Packit 7e555f
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit 7e555f
  *)
Packit 7e555f
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit 7e555f
  esac
Packit 7e555f
fi
Packit 7e555f
# Use eval to expand $SHELL
Packit 7e555f
if eval "$MISSING --run true"; then
Packit 7e555f
  am_missing_run="$MISSING --run "
Packit 7e555f
else
Packit 7e555f
  am_missing_run=
Packit 7e555f
  AC_MSG_WARN(['missing' script is too old or missing])
Packit 7e555f
fi
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 3
Packit 7e555f
Packit 7e555f
# AM_PROG_MKDIR_P
Packit 7e555f
# ---------------
Packit 7e555f
# Check for 'mkdir -p'.
Packit 7e555f
AC_DEFUN([AM_PROG_MKDIR_P],
Packit 7e555f
[AC_PREREQ([2.60])dnl
Packit 7e555f
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit 7e555f
dnl FIXME to be removed in Automake 1.13.
Packit 7e555f
AC_DIAGNOSE([obsolete],
Packit 7e555f
[$0: this macro is deprecated, and will soon be removed.
Packit 7e555f
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
Packit 7e555f
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
Packit 7e555f
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
Packit 7e555f
dnl while keeping a definition of mkdir_p for backward compatibility.
Packit 7e555f
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
Packit 7e555f
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
Packit 7e555f
dnl Makefile.ins that do not define MKDIR_P, so we do our own
Packit 7e555f
dnl adjustment using top_builddir (which is defined more often than
Packit 7e555f
dnl MKDIR_P).
Packit 7e555f
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
Packit 7e555f
case $mkdir_p in
Packit 7e555f
  [[\\/$]]* | ?:[[\\/]]*) ;;
Packit 7e555f
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
Packit 7e555f
esac
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Helper functions for option handling.                     -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 6
Packit 7e555f
Packit 7e555f
# _AM_MANGLE_OPTION(NAME)
Packit 7e555f
# -----------------------
Packit 7e555f
AC_DEFUN([_AM_MANGLE_OPTION],
Packit 7e555f
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit 7e555f
Packit 7e555f
# _AM_SET_OPTION(NAME)
Packit 7e555f
# --------------------
Packit 7e555f
# Set option NAME.  Presently that only means defining a flag for this option.
Packit 7e555f
AC_DEFUN([_AM_SET_OPTION],
Packit 7e555f
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit 7e555f
Packit 7e555f
# _AM_SET_OPTIONS(OPTIONS)
Packit 7e555f
# ------------------------
Packit 7e555f
# OPTIONS is a space-separated list of Automake options.
Packit 7e555f
AC_DEFUN([_AM_SET_OPTIONS],
Packit 7e555f
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit 7e555f
Packit 7e555f
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit 7e555f
# -------------------------------------------
Packit 7e555f
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit 7e555f
AC_DEFUN([_AM_IF_OPTION],
Packit 7e555f
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit 7e555f
Packit 7e555f
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 9
Packit 7e555f
Packit 7e555f
# AM_SANITY_CHECK
Packit 7e555f
# ---------------
Packit 7e555f
AC_DEFUN([AM_SANITY_CHECK],
Packit 7e555f
[AC_MSG_CHECKING([whether build environment is sane])
Packit 7e555f
# Reject unsafe characters in $srcdir or the absolute working directory
Packit 7e555f
# name.  Accept space and tab only in the latter.
Packit 7e555f
am_lf='
Packit 7e555f
'
Packit 7e555f
case `pwd` in
Packit 7e555f
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit 7e555f
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit 7e555f
esac
Packit 7e555f
case $srcdir in
Packit 7e555f
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit 7e555f
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit 7e555f
esac
Packit 7e555f
Packit 7e555f
# Do 'set' in a subshell so we don't clobber the current shell's
Packit 7e555f
# arguments.  Must try -L first in case configure is actually a
Packit 7e555f
# symlink; some systems play weird games with the mod time of symlinks
Packit 7e555f
# (eg FreeBSD returns the mod time of the symlink's containing
Packit 7e555f
# directory).
Packit 7e555f
if (
Packit 7e555f
   am_has_slept=no
Packit 7e555f
   for am_try in 1 2; do
Packit 7e555f
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit 7e555f
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit 7e555f
     if test "$[*]" = "X"; then
Packit 7e555f
	# -L didn't work.
Packit 7e555f
	set X `ls -t "$srcdir/configure" conftest.file`
Packit 7e555f
     fi
Packit 7e555f
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit 7e555f
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit 7e555f
Packit 7e555f
	# If neither matched, then we have a broken ls.  This can happen
Packit 7e555f
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit 7e555f
	# broken ls alias from the environment.  This has actually
Packit 7e555f
	# happened.  Such a system could not be considered "sane".
Packit 7e555f
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit 7e555f
  alias in your environment])
Packit 7e555f
     fi
Packit 7e555f
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit 7e555f
       break
Packit 7e555f
     fi
Packit 7e555f
     # Just in case.
Packit 7e555f
     sleep 1
Packit 7e555f
     am_has_slept=yes
Packit 7e555f
   done
Packit 7e555f
   test "$[2]" = conftest.file
Packit 7e555f
   )
Packit 7e555f
then
Packit 7e555f
   # Ok.
Packit 7e555f
   :
Packit 7e555f
else
Packit 7e555f
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit 7e555f
Check your system clock])
Packit 7e555f
fi
Packit 7e555f
AC_MSG_RESULT([yes])
Packit 7e555f
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit 7e555f
# generated files are strictly newer.
Packit 7e555f
am_sleep_pid=
Packit 7e555f
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit 7e555f
  ( sleep 1 ) &
Packit 7e555f
  am_sleep_pid=$!
Packit 7e555f
fi
Packit 7e555f
AC_CONFIG_COMMANDS_PRE(
Packit 7e555f
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit 7e555f
   if test -n "$am_sleep_pid"; then
Packit 7e555f
     # Hide warnings about reused PIDs.
Packit 7e555f
     wait $am_sleep_pid 2>/dev/null
Packit 7e555f
   fi
Packit 7e555f
   AC_MSG_RESULT([done])])
Packit 7e555f
rm -f conftest.file
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 3
Packit 7e555f
Packit 7e555f
# AM_SILENT_RULES([DEFAULT])
Packit 7e555f
# --------------------------
Packit 7e555f
# Enable less verbose build rules; with the default set to DEFAULT
Packit 7e555f
# ("yes" being less verbose, "no" or empty being verbose).
Packit 7e555f
AC_DEFUN([AM_SILENT_RULES],
Packit 7e555f
[AC_ARG_ENABLE([silent-rules], [dnl
Packit 7e555f
AS_HELP_STRING(
Packit 7e555f
  [--enable-silent-rules],
Packit 7e555f
  [less verbose build output (undo: "make V=1")])
Packit 7e555f
AS_HELP_STRING(
Packit 7e555f
  [--disable-silent-rules],
Packit 7e555f
  [verbose build output (undo: "make V=0")])dnl
Packit 7e555f
])
Packit 7e555f
case $enable_silent_rules in @%:@ (((
Packit 7e555f
  yes) AM_DEFAULT_VERBOSITY=0;;
Packit 7e555f
   no) AM_DEFAULT_VERBOSITY=1;;
Packit 7e555f
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit 7e555f
esac
Packit 7e555f
dnl
Packit 7e555f
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Packit 7e555f
dnl do not support nested variable expansions.
Packit 7e555f
dnl See automake bug#9928 and bug#10237.
Packit 7e555f
am_make=${MAKE-make}
Packit 7e555f
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit 7e555f
   [am_cv_make_support_nested_variables],
Packit 7e555f
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit 7e555f
BAR0=false
Packit 7e555f
BAR1=true
Packit 7e555f
V=1
Packit 7e555f
am__doit:
Packit 7e555f
	@$(TRUE)
Packit 7e555f
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit 7e555f
  am_cv_make_support_nested_variables=yes
Packit 7e555f
else
Packit 7e555f
  am_cv_make_support_nested_variables=no
Packit 7e555f
fi])
Packit 7e555f
if test $am_cv_make_support_nested_variables = yes; then
Packit 7e555f
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
Packit 7e555f
  AM_V='$(V)'
Packit 7e555f
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit 7e555f
else
Packit 7e555f
  AM_V=$AM_DEFAULT_VERBOSITY
Packit 7e555f
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit 7e555f
fi
Packit 7e555f
AC_SUBST([AM_V])dnl
Packit 7e555f
AM_SUBST_NOTMAKE([AM_V])dnl
Packit 7e555f
AC_SUBST([AM_DEFAULT_V])dnl
Packit 7e555f
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit 7e555f
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit 7e555f
AM_BACKSLASH='\'
Packit 7e555f
AC_SUBST([AM_BACKSLASH])dnl
Packit 7e555f
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit 7e555f
])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 2
Packit 7e555f
Packit 7e555f
# AM_PROG_INSTALL_STRIP
Packit 7e555f
# ---------------------
Packit 7e555f
# One issue with vendor 'install' (even GNU) is that you can't
Packit 7e555f
# specify the program used to strip binaries.  This is especially
Packit 7e555f
# annoying in cross-compiling environments, where the build's strip
Packit 7e555f
# is unlikely to handle the host's binaries.
Packit 7e555f
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit 7e555f
# always use install-sh in "make install-strip", and initialize
Packit 7e555f
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit 7e555f
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit 7e555f
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit 7e555f
# Installed binaries are usually stripped using 'strip' when the user
Packit 7e555f
# run "make install-strip".  However 'strip' might not be the right
Packit 7e555f
# tool to use in cross-compilation environments, therefore Automake
Packit 7e555f
# will honor the 'STRIP' environment variable to overrule this program.
Packit 7e555f
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit 7e555f
if test "$cross_compiling" != no; then
Packit 7e555f
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit 7e555f
fi
Packit 7e555f
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit 7e555f
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit 7e555f
Packit 7e555f
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 3
Packit 7e555f
Packit 7e555f
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit 7e555f
# ---------------------------
Packit 7e555f
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit 7e555f
# This macro is traced by Automake.
Packit 7e555f
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit 7e555f
Packit 7e555f
# AM_SUBST_NOTMAKE(VARIABLE)
Packit 7e555f
# --------------------------
Packit 7e555f
# Public sister of _AM_SUBST_NOTMAKE.
Packit 7e555f
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit 7e555f
Packit 7e555f
# Check how to create a tarball.                            -*- Autoconf -*-
Packit 7e555f
Packit 7e555f
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
Packit 7e555f
#
Packit 7e555f
# This file is free software; the Free Software Foundation
Packit 7e555f
# gives unlimited permission to copy and/or distribute it,
Packit 7e555f
# with or without modifications, as long as this notice is preserved.
Packit 7e555f
Packit 7e555f
# serial 3
Packit 7e555f
Packit 7e555f
# _AM_PROG_TAR(FORMAT)
Packit 7e555f
# --------------------
Packit 7e555f
# Check how to create a tarball in format FORMAT.
Packit 7e555f
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit 7e555f
#
Packit 7e555f
# Substitute a variable $(am__tar) that is a command
Packit 7e555f
# writing to stdout a FORMAT-tarball containing the directory
Packit 7e555f
# $tardir.
Packit 7e555f
#     tardir=directory && $(am__tar) > result.tar
Packit 7e555f
#
Packit 7e555f
# Substitute a variable $(am__untar) that extract such
Packit 7e555f
# a tarball read from stdin.
Packit 7e555f
#     $(am__untar) < result.tar
Packit 7e555f
AC_DEFUN([_AM_PROG_TAR],
Packit 7e555f
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit 7e555f
# in the wild :-(  We should find a proper way to deprecate it ...
Packit 7e555f
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit 7e555f
m4_if([$1], [v7],
Packit 7e555f
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit 7e555f
     [m4_case([$1], [ustar],, [pax],,
Packit 7e555f
              [m4_fatal([Unknown tar format])])
Packit 7e555f
AC_MSG_CHECKING([how to create a $1 tar archive])
Packit 7e555f
# Loop over all known methods to create a tar archive until one works.
Packit 7e555f
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit 7e555f
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit 7e555f
# Do not fold the above two line into one, because Tru64 sh and
Packit 7e555f
# Solaris sh will not grok spaces in the rhs of '-'.
Packit 7e555f
for _am_tool in $_am_tools
Packit 7e555f
do
Packit 7e555f
  case $_am_tool in
Packit 7e555f
  gnutar)
Packit 7e555f
    for _am_tar in tar gnutar gtar;
Packit 7e555f
    do
Packit 7e555f
      AM_RUN_LOG([$_am_tar --version]) && break
Packit 7e555f
    done
Packit 7e555f
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit 7e555f
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit 7e555f
    am__untar="$_am_tar -xf -"
Packit 7e555f
    ;;
Packit 7e555f
  plaintar)
Packit 7e555f
    # Must skip GNU tar: if it does not support --format= it doesn't create
Packit 7e555f
    # ustar tarball either.
Packit 7e555f
    (tar --version) >/dev/null 2>&1 && continue
Packit 7e555f
    am__tar='tar chf - "$$tardir"'
Packit 7e555f
    am__tar_='tar chf - "$tardir"'
Packit 7e555f
    am__untar='tar xf -'
Packit 7e555f
    ;;
Packit 7e555f
  pax)
Packit 7e555f
    am__tar='pax -L -x $1 -w "$$tardir"'
Packit 7e555f
    am__tar_='pax -L -x $1 -w "$tardir"'
Packit 7e555f
    am__untar='pax -r'
Packit 7e555f
    ;;
Packit 7e555f
  cpio)
Packit 7e555f
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit 7e555f
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit 7e555f
    am__untar='cpio -i -H $1 -d'
Packit 7e555f
    ;;
Packit 7e555f
  none)
Packit 7e555f
    am__tar=false
Packit 7e555f
    am__tar_=false
Packit 7e555f
    am__untar=false
Packit 7e555f
    ;;
Packit 7e555f
  esac
Packit 7e555f
Packit 7e555f
  # If the value was cached, stop now.  We just wanted to have am__tar
Packit 7e555f
  # and am__untar set.
Packit 7e555f
  test -n "${am_cv_prog_tar_$1}" && break
Packit 7e555f
Packit 7e555f
  # tar/untar a dummy directory, and stop if the command works
Packit 7e555f
  rm -rf conftest.dir
Packit 7e555f
  mkdir conftest.dir
Packit 7e555f
  echo GrepMe > conftest.dir/file
Packit 7e555f
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit 7e555f
  rm -rf conftest.dir
Packit 7e555f
  if test -s conftest.tar; then
Packit 7e555f
    AM_RUN_LOG([$am__untar 
Packit 7e555f
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit 7e555f
  fi
Packit 7e555f
done
Packit 7e555f
rm -rf conftest.dir
Packit 7e555f
Packit 7e555f
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit 7e555f
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit 7e555f
AC_SUBST([am__tar])
Packit 7e555f
AC_SUBST([am__untar])
Packit 7e555f
]) # _AM_PROG_TAR
Packit 7e555f
Packit 7e555f
m4_include([m4/gettext.m4])
Packit 7e555f
m4_include([m4/gtk-doc.m4])
Packit 7e555f
m4_include([m4/iconv.m4])
Packit 7e555f
m4_include([m4/intlmacosx.m4])
Packit 7e555f
m4_include([m4/introspection.m4])
Packit 7e555f
m4_include([m4/lib-ld.m4])
Packit 7e555f
m4_include([m4/lib-link.m4])
Packit 7e555f
m4_include([m4/lib-prefix.m4])
Packit 7e555f
m4_include([m4/libtool.m4])
Packit 7e555f
m4_include([m4/ltoptions.m4])
Packit 7e555f
m4_include([m4/ltsugar.m4])
Packit 7e555f
m4_include([m4/ltversion.m4])
Packit 7e555f
m4_include([m4/lt~obsolete.m4])
Packit 7e555f
m4_include([m4/nls.m4])
Packit 7e555f
m4_include([m4/po.m4])
Packit 7e555f
m4_include([m4/progtest.m4])
Packit 7e555f
m4_include([m4/vapigen.m4])