Blame aclocal.m4

Packit ae235b
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit ae235b
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# This program is distributed in the hope that it will be useful,
Packit ae235b
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit ae235b
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit ae235b
# PARTICULAR PURPOSE.
Packit ae235b
Packit ae235b
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
Packit ae235b
m4_ifndef([AC_AUTOCONF_VERSION],
Packit ae235b
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit ae235b
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit ae235b
[m4_warning([this file was generated for autoconf 2.69.
Packit ae235b
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit ae235b
If you have problems, you may need to regenerate the build system entirely.
Packit ae235b
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit ae235b
Packit ae235b
# pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
Packit ae235b
# serial 11 (pkg-config-0.29.1)
Packit ae235b
Packit ae235b
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit ae235b
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
Packit ae235b
dnl
Packit ae235b
dnl This program is free software; you can redistribute it and/or modify
Packit ae235b
dnl it under the terms of the GNU General Public License as published by
Packit ae235b
dnl the Free Software Foundation; either version 2 of the License, or
Packit ae235b
dnl (at your option) any later version.
Packit ae235b
dnl
Packit ae235b
dnl This program is distributed in the hope that it will be useful, but
Packit ae235b
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Packit ae235b
dnl General Public License for more details.
Packit ae235b
dnl
Packit ae235b
dnl You should have received a copy of the GNU General Public License
Packit ae235b
dnl along with this program; if not, write to the Free Software
Packit ae235b
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
Packit ae235b
dnl 02111-1307, USA.
Packit ae235b
dnl
Packit ae235b
dnl As a special exception to the GNU General Public License, if you
Packit ae235b
dnl distribute this file as part of a program that contains a
Packit ae235b
dnl configuration script generated by Autoconf, you may include it under
Packit ae235b
dnl the same distribution terms that you use for the rest of that
Packit ae235b
dnl program.
Packit ae235b
Packit ae235b
dnl PKG_PREREQ(MIN-VERSION)
Packit ae235b
dnl -----------------------
Packit ae235b
dnl Since: 0.29
Packit ae235b
dnl
Packit ae235b
dnl Verify that the version of the pkg-config macros are at least
Packit ae235b
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
Packit ae235b
dnl installed version of pkg-config, this checks the developer's version
Packit ae235b
dnl of pkg.m4 when generating configure.
Packit ae235b
dnl
Packit ae235b
dnl To ensure that this macro is defined, also add:
Packit ae235b
dnl m4_ifndef([PKG_PREREQ],
Packit ae235b
dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
Packit ae235b
dnl
Packit ae235b
dnl See the "Since" comment for each macro you use to see what version
Packit ae235b
dnl of the macros you require.
Packit ae235b
m4_defun([PKG_PREREQ],
Packit ae235b
[m4_define([PKG_MACROS_VERSION], [0.29.1])
Packit ae235b
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
Packit ae235b
    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
Packit ae235b
])dnl PKG_PREREQ
Packit ae235b
Packit ae235b
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit ae235b
dnl ----------------------------------
Packit ae235b
dnl Since: 0.16
Packit ae235b
dnl
Packit ae235b
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
Packit ae235b
dnl first found in the path. Checks that the version of pkg-config found
Packit ae235b
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
Packit ae235b
dnl used since that's the first version where most current features of
Packit ae235b
dnl pkg-config existed.
Packit ae235b
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit ae235b
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit ae235b
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit ae235b
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit ae235b
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit ae235b
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit ae235b
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit ae235b
Packit ae235b
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit ae235b
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit ae235b
fi
Packit ae235b
if test -n "$PKG_CONFIG"; then
Packit ae235b
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit ae235b
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit ae235b
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit ae235b
		AC_MSG_RESULT([yes])
Packit ae235b
	else
Packit ae235b
		AC_MSG_RESULT([no])
Packit ae235b
		PKG_CONFIG=""
Packit ae235b
	fi
Packit ae235b
fi[]dnl
Packit ae235b
])dnl PKG_PROG_PKG_CONFIG
Packit ae235b
Packit ae235b
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit ae235b
dnl -------------------------------------------------------------------
Packit ae235b
dnl Since: 0.18
Packit ae235b
dnl
Packit ae235b
dnl Check to see whether a particular set of modules exists. Similar to
Packit ae235b
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit ae235b
dnl
Packit ae235b
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit ae235b
dnl only at the first occurence in configure.ac, so if the first place
Packit ae235b
dnl it's called might be skipped (such as if it is within an "if", you
Packit ae235b
dnl have to call PKG_CHECK_EXISTS manually
Packit ae235b
AC_DEFUN([PKG_CHECK_EXISTS],
Packit ae235b
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit ae235b
if test -n "$PKG_CONFIG" && \
Packit ae235b
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit ae235b
  m4_default([$2], [:])
Packit ae235b
m4_ifvaln([$3], [else
Packit ae235b
  $3])dnl
Packit ae235b
fi])
Packit ae235b
Packit ae235b
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit ae235b
dnl ---------------------------------------------
Packit ae235b
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
Packit ae235b
dnl pkg_failed based on the result.
Packit ae235b
m4_define([_PKG_CONFIG],
Packit ae235b
[if test -n "$$1"; then
Packit ae235b
    pkg_cv_[]$1="$$1"
Packit ae235b
 elif test -n "$PKG_CONFIG"; then
Packit ae235b
    PKG_CHECK_EXISTS([$3],
Packit ae235b
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit ae235b
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit ae235b
		     [pkg_failed=yes])
Packit ae235b
 else
Packit ae235b
    pkg_failed=untried
Packit ae235b
fi[]dnl
Packit ae235b
])dnl _PKG_CONFIG
Packit ae235b
Packit ae235b
dnl _PKG_SHORT_ERRORS_SUPPORTED
Packit ae235b
dnl ---------------------------
Packit ae235b
dnl Internal check to see if pkg-config supports short errors.
Packit ae235b
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit ae235b
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit ae235b
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit ae235b
        _pkg_short_errors_supported=yes
Packit ae235b
else
Packit ae235b
        _pkg_short_errors_supported=no
Packit ae235b
fi[]dnl
Packit ae235b
])dnl _PKG_SHORT_ERRORS_SUPPORTED
Packit ae235b
Packit ae235b
Packit ae235b
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit ae235b
dnl   [ACTION-IF-NOT-FOUND])
Packit ae235b
dnl --------------------------------------------------------------
Packit ae235b
dnl Since: 0.4.0
Packit ae235b
dnl
Packit ae235b
dnl Note that if there is a possibility the first call to
Packit ae235b
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit ae235b
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit ae235b
AC_DEFUN([PKG_CHECK_MODULES],
Packit ae235b
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit ae235b
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit ae235b
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit ae235b
Packit ae235b
pkg_failed=no
Packit ae235b
AC_MSG_CHECKING([for $1])
Packit ae235b
Packit ae235b
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit ae235b
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit ae235b
Packit ae235b
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit ae235b
and $1[]_LIBS to avoid the need to call pkg-config.
Packit ae235b
See the pkg-config man page for more details.])
Packit ae235b
Packit ae235b
if test $pkg_failed = yes; then
Packit ae235b
   	AC_MSG_RESULT([no])
Packit ae235b
        _PKG_SHORT_ERRORS_SUPPORTED
Packit ae235b
        if test $_pkg_short_errors_supported = yes; then
Packit ae235b
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit ae235b
        else 
Packit ae235b
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit ae235b
        fi
Packit ae235b
	# Put the nasty error message in config.log where it belongs
Packit ae235b
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit ae235b
Packit ae235b
	m4_default([$4], [AC_MSG_ERROR(
Packit ae235b
[Package requirements ($2) were not met:
Packit ae235b
Packit ae235b
$$1_PKG_ERRORS
Packit ae235b
Packit ae235b
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit ae235b
installed software in a non-standard prefix.
Packit ae235b
Packit ae235b
_PKG_TEXT])[]dnl
Packit ae235b
        ])
Packit ae235b
elif test $pkg_failed = untried; then
Packit ae235b
     	AC_MSG_RESULT([no])
Packit ae235b
	m4_default([$4], [AC_MSG_FAILURE(
Packit ae235b
[The pkg-config script could not be found or is too old.  Make sure it
Packit ae235b
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit ae235b
path to pkg-config.
Packit ae235b
Packit ae235b
_PKG_TEXT
Packit ae235b
Packit ae235b
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit ae235b
        ])
Packit ae235b
else
Packit ae235b
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit ae235b
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit ae235b
        AC_MSG_RESULT([yes])
Packit ae235b
	$3
Packit ae235b
fi[]dnl
Packit ae235b
])dnl PKG_CHECK_MODULES
Packit ae235b
Packit ae235b
Packit ae235b
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit ae235b
dnl   [ACTION-IF-NOT-FOUND])
Packit ae235b
dnl ---------------------------------------------------------------------
Packit ae235b
dnl Since: 0.29
Packit ae235b
dnl
Packit ae235b
dnl Checks for existence of MODULES and gathers its build flags with
Packit ae235b
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
Packit ae235b
dnl and VARIABLE-PREFIX_LIBS from --libs.
Packit ae235b
dnl
Packit ae235b
dnl Note that if there is a possibility the first call to
Packit ae235b
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
Packit ae235b
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
Packit ae235b
dnl configure.ac.
Packit ae235b
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
Packit ae235b
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit ae235b
_save_PKG_CONFIG=$PKG_CONFIG
Packit ae235b
PKG_CONFIG="$PKG_CONFIG --static"
Packit ae235b
PKG_CHECK_MODULES($@)
Packit ae235b
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
Packit ae235b
])dnl PKG_CHECK_MODULES_STATIC
Packit ae235b
Packit ae235b
Packit ae235b
dnl PKG_INSTALLDIR([DIRECTORY])
Packit ae235b
dnl -------------------------
Packit ae235b
dnl Since: 0.27
Packit ae235b
dnl
Packit ae235b
dnl Substitutes the variable pkgconfigdir as the location where a module
Packit ae235b
dnl should install pkg-config .pc files. By default the directory is
Packit ae235b
dnl $libdir/pkgconfig, but the default can be changed by passing
Packit ae235b
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
Packit ae235b
dnl parameter.
Packit ae235b
AC_DEFUN([PKG_INSTALLDIR],
Packit ae235b
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
Packit ae235b
m4_pushdef([pkg_description],
Packit ae235b
    [pkg-config installation directory @<:@]pkg_default[@:>@])
Packit ae235b
AC_ARG_WITH([pkgconfigdir],
Packit ae235b
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
Packit ae235b
    [with_pkgconfigdir=]pkg_default)
Packit ae235b
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
Packit ae235b
m4_popdef([pkg_default])
Packit ae235b
m4_popdef([pkg_description])
Packit ae235b
])dnl PKG_INSTALLDIR
Packit ae235b
Packit ae235b
Packit ae235b
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
Packit ae235b
dnl --------------------------------
Packit ae235b
dnl Since: 0.27
Packit ae235b
dnl
Packit ae235b
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
Packit ae235b
dnl module should install arch-independent pkg-config .pc files. By
Packit ae235b
dnl default the directory is $datadir/pkgconfig, but the default can be
Packit ae235b
dnl changed by passing DIRECTORY. The user can override through the
Packit ae235b
dnl --with-noarch-pkgconfigdir parameter.
Packit ae235b
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
Packit ae235b
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
Packit ae235b
m4_pushdef([pkg_description],
Packit ae235b
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
Packit ae235b
AC_ARG_WITH([noarch-pkgconfigdir],
Packit ae235b
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
Packit ae235b
    [with_noarch_pkgconfigdir=]pkg_default)
Packit ae235b
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
Packit ae235b
m4_popdef([pkg_default])
Packit ae235b
m4_popdef([pkg_description])
Packit ae235b
])dnl PKG_NOARCH_INSTALLDIR
Packit ae235b
Packit ae235b
Packit ae235b
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
Packit ae235b
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit ae235b
dnl -------------------------------------------
Packit ae235b
dnl Since: 0.28
Packit ae235b
dnl
Packit ae235b
dnl Retrieves the value of the pkg-config variable for the given module.
Packit ae235b
AC_DEFUN([PKG_CHECK_VAR],
Packit ae235b
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit ae235b
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
Packit ae235b
Packit ae235b
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
Packit ae235b
AS_VAR_COPY([$1], [pkg_cv_][$1])
Packit ae235b
Packit ae235b
AS_VAR_IF([$1], [""], [$5], [$4])dnl
Packit ae235b
])dnl PKG_CHECK_VAR
Packit ae235b
Packit ae235b
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Packit ae235b
dnl   [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
Packit ae235b
dnl   [DESCRIPTION], [DEFAULT])
Packit ae235b
dnl ------------------------------------------
Packit ae235b
dnl
Packit ae235b
dnl Prepare a "--with-" configure option using the lowercase
Packit ae235b
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
Packit ae235b
dnl PKG_CHECK_MODULES in a single macro.
Packit ae235b
AC_DEFUN([PKG_WITH_MODULES],
Packit ae235b
[
Packit ae235b
m4_pushdef([with_arg], m4_tolower([$1]))
Packit ae235b
Packit ae235b
m4_pushdef([description],
Packit ae235b
           [m4_default([$5], [build with ]with_arg[ support])])
Packit ae235b
Packit ae235b
m4_pushdef([def_arg], [m4_default([$6], [auto])])
Packit ae235b
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
Packit ae235b
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
Packit ae235b
Packit ae235b
m4_case(def_arg,
Packit ae235b
            [yes],[m4_pushdef([with_without], [--without-]with_arg)],
Packit ae235b
            [m4_pushdef([with_without],[--with-]with_arg)])
Packit ae235b
Packit ae235b
AC_ARG_WITH(with_arg,
Packit ae235b
     AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
Packit ae235b
    [AS_TR_SH([with_]with_arg)=def_arg])
Packit ae235b
Packit ae235b
AS_CASE([$AS_TR_SH([with_]with_arg)],
Packit ae235b
            [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
Packit ae235b
            [auto],[PKG_CHECK_MODULES([$1],[$2],
Packit ae235b
                                        [m4_n([def_action_if_found]) $3],
Packit ae235b
                                        [m4_n([def_action_if_not_found]) $4])])
Packit ae235b
Packit ae235b
m4_popdef([with_arg])
Packit ae235b
m4_popdef([description])
Packit ae235b
m4_popdef([def_arg])
Packit ae235b
Packit ae235b
])dnl PKG_WITH_MODULES
Packit ae235b
Packit ae235b
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Packit ae235b
dnl   [DESCRIPTION], [DEFAULT])
Packit ae235b
dnl -----------------------------------------------
Packit ae235b
dnl
Packit ae235b
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
Packit ae235b
dnl check._[VARIABLE-PREFIX] is exported as make variable.
Packit ae235b
AC_DEFUN([PKG_HAVE_WITH_MODULES],
Packit ae235b
[
Packit ae235b
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
Packit ae235b
Packit ae235b
AM_CONDITIONAL([HAVE_][$1],
Packit ae235b
               [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
Packit ae235b
])dnl PKG_HAVE_WITH_MODULES
Packit ae235b
Packit ae235b
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
Packit ae235b
dnl   [DESCRIPTION], [DEFAULT])
Packit ae235b
dnl ------------------------------------------------------
Packit ae235b
dnl
Packit ae235b
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
Packit ae235b
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
Packit ae235b
dnl and preprocessor variable.
Packit ae235b
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
Packit ae235b
[
Packit ae235b
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
Packit ae235b
Packit ae235b
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
Packit ae235b
        [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
Packit ae235b
])dnl PKG_HAVE_DEFINE_WITH_MODULES
Packit ae235b
Packit ae235b
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_AUTOMAKE_VERSION(VERSION)
Packit ae235b
# ----------------------------
Packit ae235b
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit ae235b
# generated from the m4 files accompanying Automake X.Y.
Packit ae235b
# (This private macro should not be called outside this file.)
Packit ae235b
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit ae235b
[am__api_version='1.15'
Packit ae235b
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit ae235b
dnl require some minimum version.  Point them to the right macro.
Packit ae235b
m4_if([$1], [1.15.1], [],
Packit ae235b
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit ae235b
])
Packit ae235b
Packit ae235b
# _AM_AUTOCONF_VERSION(VERSION)
Packit ae235b
# -----------------------------
Packit ae235b
# aclocal traces this macro to find the Autoconf version.
Packit ae235b
# This is a private macro too.  Using m4_define simplifies
Packit ae235b
# the logic in aclocal, which can simply ignore this definition.
Packit ae235b
m4_define([_AM_AUTOCONF_VERSION], [])
Packit ae235b
Packit ae235b
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit ae235b
# -------------------------------
Packit ae235b
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit ae235b
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit ae235b
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit ae235b
[AM_AUTOMAKE_VERSION([1.15.1])dnl
Packit ae235b
m4_ifndef([AC_AUTOCONF_VERSION],
Packit ae235b
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit ae235b
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit ae235b
Packit ae235b
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit ae235b
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit ae235b
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit ae235b
#
Packit ae235b
# Of course, Automake must honor this variable whenever it calls a
Packit ae235b
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit ae235b
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit ae235b
# depending on how configure is run.  This is pretty annoying, since
Packit ae235b
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit ae235b
# source directory, any form will work fine, but in subdirectories a
Packit ae235b
# relative path needs to be adjusted first.
Packit ae235b
#
Packit ae235b
# $ac_aux_dir/missing
Packit ae235b
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit ae235b
# $top_srcdir/$ac_aux_dir/missing
Packit ae235b
#    fails if $ac_aux_dir is absolute,
Packit ae235b
#    fails when called from a subdirectory in a VPATH build with
Packit ae235b
#          a relative $ac_aux_dir
Packit ae235b
#
Packit ae235b
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit ae235b
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit ae235b
# harmless because $srcdir is '.', but things will broke when you
Packit ae235b
# start a VPATH build or use an absolute $srcdir.
Packit ae235b
#
Packit ae235b
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit ae235b
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit ae235b
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit ae235b
# and then we would define $MISSING as
Packit ae235b
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit ae235b
# This will work as long as MISSING is not called from configure, because
Packit ae235b
# unfortunately $(top_srcdir) has no meaning in configure.
Packit ae235b
# However there are other variables, like CC, which are often used in
Packit ae235b
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit ae235b
#
Packit ae235b
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit ae235b
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit ae235b
# configured tree to be moved without reconfiguration.
Packit ae235b
Packit ae235b
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit ae235b
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Packit ae235b
# Expand $ac_aux_dir to an absolute path.
Packit ae235b
am_aux_dir=`cd "$ac_aux_dir" && pwd`
Packit ae235b
])
Packit ae235b
Packit ae235b
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit ae235b
# -------------------------------------
Packit ae235b
# Define a conditional.
Packit ae235b
AC_DEFUN([AM_CONDITIONAL],
Packit ae235b
[AC_PREREQ([2.52])dnl
Packit ae235b
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit ae235b
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit ae235b
AC_SUBST([$1_TRUE])dnl
Packit ae235b
AC_SUBST([$1_FALSE])dnl
Packit ae235b
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit ae235b
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit ae235b
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit ae235b
if $2; then
Packit ae235b
  $1_TRUE=
Packit ae235b
  $1_FALSE='#'
Packit ae235b
else
Packit ae235b
  $1_TRUE='#'
Packit ae235b
  $1_FALSE=
Packit ae235b
fi
Packit ae235b
AC_CONFIG_COMMANDS_PRE(
Packit ae235b
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit ae235b
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit ae235b
Usually this means the macro was only invoked conditionally.]])
Packit ae235b
fi])])
Packit ae235b
Packit ae235b
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
Packit ae235b
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit ae235b
# written in clear, in which case automake, when reading aclocal.m4,
Packit ae235b
# will think it sees a *use*, and therefore will trigger all it's
Packit ae235b
# C support machinery.  Also note that it means that autoscan, seeing
Packit ae235b
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit ae235b
Packit ae235b
Packit ae235b
# _AM_DEPENDENCIES(NAME)
Packit ae235b
# ----------------------
Packit ae235b
# See how the compiler implements dependency checking.
Packit ae235b
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit ae235b
# We try a few techniques and use that to set a single cache variable.
Packit ae235b
#
Packit ae235b
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit ae235b
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit ae235b
# dependency, and given that the user is not expected to run this macro,
Packit ae235b
# just rely on AC_PROG_CC.
Packit ae235b
AC_DEFUN([_AM_DEPENDENCIES],
Packit ae235b
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit ae235b
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit ae235b
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit ae235b
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit ae235b
Packit ae235b
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit ae235b
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit ae235b
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit ae235b
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit ae235b
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit ae235b
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit ae235b
                    [depcc="$$1"   am_compiler_list=])
Packit ae235b
Packit ae235b
AC_CACHE_CHECK([dependency style of $depcc],
Packit ae235b
               [am_cv_$1_dependencies_compiler_type],
Packit ae235b
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit ae235b
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit ae235b
  # making bogus files that we don't know about and never remove.  For
Packit ae235b
  # instance it was reported that on HP-UX the gcc test will end up
Packit ae235b
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit ae235b
  # in D".
Packit ae235b
  rm -rf conftest.dir
Packit ae235b
  mkdir conftest.dir
Packit ae235b
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit ae235b
  # using a relative directory.
Packit ae235b
  cp "$am_depcomp" conftest.dir
Packit ae235b
  cd conftest.dir
Packit ae235b
  # We will build objects and dependencies in a subdirectory because
Packit ae235b
  # it helps to detect inapplicable dependency modes.  For instance
Packit ae235b
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit ae235b
  # side effect of compilation, but ICC will put the dependencies in
Packit ae235b
  # the current directory while Tru64 will put them in the object
Packit ae235b
  # directory.
Packit ae235b
  mkdir sub
Packit ae235b
Packit ae235b
  am_cv_$1_dependencies_compiler_type=none
Packit ae235b
  if test "$am_compiler_list" = ""; then
Packit ae235b
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit ae235b
  fi
Packit ae235b
  am__universal=false
Packit ae235b
  m4_case([$1], [CC],
Packit ae235b
    [case " $depcc " in #(
Packit ae235b
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit ae235b
     esac],
Packit ae235b
    [CXX],
Packit ae235b
    [case " $depcc " in #(
Packit ae235b
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit ae235b
     esac])
Packit ae235b
Packit ae235b
  for depmode in $am_compiler_list; do
Packit ae235b
    # Setup a source with many dependencies, because some compilers
Packit ae235b
    # like to wrap large dependency lists on column 80 (with \), and
Packit ae235b
    # we should not choose a depcomp mode which is confused by this.
Packit ae235b
    #
Packit ae235b
    # We need to recreate these files for each test, as the compiler may
Packit ae235b
    # overwrite some of them when testing with obscure command lines.
Packit ae235b
    # This happens at least with the AIX C compiler.
Packit ae235b
    : > sub/conftest.c
Packit ae235b
    for i in 1 2 3 4 5 6; do
Packit ae235b
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit ae235b
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit ae235b
      # Solaris 10 /bin/sh.
Packit ae235b
      echo '/* dummy */' > sub/conftst$i.h
Packit ae235b
    done
Packit ae235b
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit ae235b
Packit ae235b
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit ae235b
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit ae235b
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit ae235b
    # versions had trouble with output in subdirs.
Packit ae235b
    am__obj=sub/conftest.${OBJEXT-o}
Packit ae235b
    am__minus_obj="-o $am__obj"
Packit ae235b
    case $depmode in
Packit ae235b
    gcc)
Packit ae235b
      # This depmode causes a compiler race in universal mode.
Packit ae235b
      test "$am__universal" = false || continue
Packit ae235b
      ;;
Packit ae235b
    nosideeffect)
Packit ae235b
      # After this tag, mechanisms are not by side-effect, so they'll
Packit ae235b
      # only be used when explicitly requested.
Packit ae235b
      if test "x$enable_dependency_tracking" = xyes; then
Packit ae235b
	continue
Packit ae235b
      else
Packit ae235b
	break
Packit ae235b
      fi
Packit ae235b
      ;;
Packit ae235b
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit ae235b
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit ae235b
      # not run yet.  These depmodes are late enough in the game, and
Packit ae235b
      # so weak that their functioning should not be impacted.
Packit ae235b
      am__obj=conftest.${OBJEXT-o}
Packit ae235b
      am__minus_obj=
Packit ae235b
      ;;
Packit ae235b
    none) break ;;
Packit ae235b
    esac
Packit ae235b
    if depmode=$depmode \
Packit ae235b
       source=sub/conftest.c object=$am__obj \
Packit ae235b
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit ae235b
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit ae235b
         >/dev/null 2>conftest.err &&
Packit ae235b
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit ae235b
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit ae235b
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit ae235b
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit ae235b
      # icc doesn't choke on unknown options, it will just issue warnings
Packit ae235b
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit ae235b
      # that says an option was ignored or not supported.
Packit ae235b
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit ae235b
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit ae235b
      # The diagnosis changed in icc 8.0:
Packit ae235b
      #   icc: Command line remark: option '-MP' not supported
Packit ae235b
      if (grep 'ignoring option' conftest.err ||
Packit ae235b
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit ae235b
        am_cv_$1_dependencies_compiler_type=$depmode
Packit ae235b
        break
Packit ae235b
      fi
Packit ae235b
    fi
Packit ae235b
  done
Packit ae235b
Packit ae235b
  cd ..
Packit ae235b
  rm -rf conftest.dir
Packit ae235b
else
Packit ae235b
  am_cv_$1_dependencies_compiler_type=none
Packit ae235b
fi
Packit ae235b
])
Packit ae235b
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit ae235b
AM_CONDITIONAL([am__fastdep$1], [
Packit ae235b
  test "x$enable_dependency_tracking" != xno \
Packit ae235b
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit ae235b
])
Packit ae235b
Packit ae235b
Packit ae235b
# AM_SET_DEPDIR
Packit ae235b
# -------------
Packit ae235b
# Choose a directory name for dependency files.
Packit ae235b
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit ae235b
AC_DEFUN([AM_SET_DEPDIR],
Packit ae235b
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit ae235b
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit ae235b
])
Packit ae235b
Packit ae235b
Packit ae235b
# AM_DEP_TRACK
Packit ae235b
# ------------
Packit ae235b
AC_DEFUN([AM_DEP_TRACK],
Packit ae235b
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit ae235b
AS_HELP_STRING(
Packit ae235b
  [--enable-dependency-tracking],
Packit ae235b
  [do not reject slow dependency extractors])
Packit ae235b
AS_HELP_STRING(
Packit ae235b
  [--disable-dependency-tracking],
Packit ae235b
  [speeds up one-time build])])
Packit ae235b
if test "x$enable_dependency_tracking" != xno; then
Packit ae235b
  am_depcomp="$ac_aux_dir/depcomp"
Packit ae235b
  AMDEPBACKSLASH='\'
Packit ae235b
  am__nodep='_no'
Packit ae235b
fi
Packit ae235b
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit ae235b
AC_SUBST([AMDEPBACKSLASH])dnl
Packit ae235b
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit ae235b
AC_SUBST([am__nodep])dnl
Packit ae235b
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit ae235b
])
Packit ae235b
Packit ae235b
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
Packit ae235b
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit ae235b
# ------------------------------
Packit ae235b
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit ae235b
[{
Packit ae235b
  # Older Autoconf quotes --file arguments for eval, but not when files
Packit ae235b
  # are listed without --file.  Let's play safe and only enable the eval
Packit ae235b
  # if we detect the quoting.
Packit ae235b
  case $CONFIG_FILES in
Packit ae235b
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit ae235b
  *)   set x $CONFIG_FILES ;;
Packit ae235b
  esac
Packit ae235b
  shift
Packit ae235b
  for mf
Packit ae235b
  do
Packit ae235b
    # Strip MF so we end up with the name of the file.
Packit ae235b
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit ae235b
    # Check whether this is an Automake generated Makefile or not.
Packit ae235b
    # We used to match only the files named 'Makefile.in', but
Packit ae235b
    # some people rename them; so instead we look at the file content.
Packit ae235b
    # Grep'ing the first line is not enough: some people post-process
Packit ae235b
    # each Makefile.in and add a new line on top of each file to say so.
Packit ae235b
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit ae235b
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit ae235b
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit ae235b
      dirpart=`AS_DIRNAME("$mf")`
Packit ae235b
    else
Packit ae235b
      continue
Packit ae235b
    fi
Packit ae235b
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit ae235b
    # from the Makefile without running 'make'.
Packit ae235b
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit ae235b
    test -z "$DEPDIR" && continue
Packit ae235b
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit ae235b
    test -z "$am__include" && continue
Packit ae235b
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit ae235b
    # Find all dependency output files, they are included files with
Packit ae235b
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit ae235b
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit ae235b
    # expansion.
Packit ae235b
    for file in `sed -n "
Packit ae235b
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit ae235b
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit ae235b
      # Make sure the directory exists.
Packit ae235b
      test -f "$dirpart/$file" && continue
Packit ae235b
      fdir=`AS_DIRNAME(["$file"])`
Packit ae235b
      AS_MKDIR_P([$dirpart/$fdir])
Packit ae235b
      # echo "creating $dirpart/$file"
Packit ae235b
      echo '# dummy' > "$dirpart/$file"
Packit ae235b
    done
Packit ae235b
  done
Packit ae235b
}
Packit ae235b
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit ae235b
Packit ae235b
Packit ae235b
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit ae235b
# -----------------------------
Packit ae235b
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit ae235b
#
Packit ae235b
# This code is only required when automatic dependency tracking
Packit ae235b
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit ae235b
# need in order to bootstrap the dependency handling code.
Packit ae235b
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit ae235b
[AC_CONFIG_COMMANDS([depfiles],
Packit ae235b
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit ae235b
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit ae235b
])
Packit ae235b
Packit ae235b
# Do all the work for Automake.                             -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# This macro actually does too much.  Some checks are only needed if
Packit ae235b
# your package does certain things.  But this isn't really a big deal.
Packit ae235b
Packit ae235b
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
Packit ae235b
m4_define([AC_PROG_CC],
Packit ae235b
m4_defn([AC_PROG_CC])
Packit ae235b
[_AM_PROG_CC_C_O
Packit ae235b
])
Packit ae235b
Packit ae235b
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit ae235b
# AM_INIT_AUTOMAKE([OPTIONS])
Packit ae235b
# -----------------------------------------------
Packit ae235b
# The call with PACKAGE and VERSION arguments is the old style
Packit ae235b
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit ae235b
# and VERSION should now be passed to AC_INIT and removed from
Packit ae235b
# the call to AM_INIT_AUTOMAKE.
Packit ae235b
# We support both call styles for the transition.  After
Packit ae235b
# the next Automake release, Autoconf can make the AC_INIT
Packit ae235b
# arguments mandatory, and then we can depend on a new Autoconf
Packit ae235b
# release and drop the old call support.
Packit ae235b
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit ae235b
[AC_PREREQ([2.65])dnl
Packit ae235b
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit ae235b
dnl the ones we care about.
Packit ae235b
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit ae235b
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit ae235b
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit ae235b
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit ae235b
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit ae235b
  # is not polluted with repeated "-I."
Packit ae235b
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit ae235b
  # test to see if srcdir already configured
Packit ae235b
  if test -f $srcdir/config.status; then
Packit ae235b
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit ae235b
  fi
Packit ae235b
fi
Packit ae235b
Packit ae235b
# test whether we have cygpath
Packit ae235b
if test -z "$CYGPATH_W"; then
Packit ae235b
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit ae235b
    CYGPATH_W='cygpath -w'
Packit ae235b
  else
Packit ae235b
    CYGPATH_W=echo
Packit ae235b
  fi
Packit ae235b
fi
Packit ae235b
AC_SUBST([CYGPATH_W])
Packit ae235b
Packit ae235b
# Define the identity of the package.
Packit ae235b
dnl Distinguish between old-style and new-style calls.
Packit ae235b
m4_ifval([$2],
Packit ae235b
[AC_DIAGNOSE([obsolete],
Packit ae235b
             [$0: two- and three-arguments forms are deprecated.])
Packit ae235b
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit ae235b
 AC_SUBST([PACKAGE], [$1])dnl
Packit ae235b
 AC_SUBST([VERSION], [$2])],
Packit ae235b
[_AM_SET_OPTIONS([$1])dnl
Packit ae235b
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit ae235b
m4_if(
Packit ae235b
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit ae235b
  [ok:ok],,
Packit ae235b
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit ae235b
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit ae235b
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit ae235b
Packit ae235b
_AM_IF_OPTION([no-define],,
Packit ae235b
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit ae235b
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit ae235b
Packit ae235b
# Some tools Automake needs.
Packit ae235b
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit ae235b
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit ae235b
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit ae235b
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit ae235b
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit ae235b
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit ae235b
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit ae235b
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit ae235b
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit ae235b
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit ae235b
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit ae235b
# dies out for good.  For more background, see:
Packit ae235b
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit ae235b
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit ae235b
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit ae235b
# We need awk for the "check" target (and possibly the TAP driver).  The
Packit ae235b
# system "awk" is bad on some platforms.
Packit ae235b
AC_REQUIRE([AC_PROG_AWK])dnl
Packit ae235b
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit ae235b
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit ae235b
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit ae235b
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit ae235b
			     [_AM_PROG_TAR([v7])])])
Packit ae235b
_AM_IF_OPTION([no-dependencies],,
Packit ae235b
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit ae235b
		  [_AM_DEPENDENCIES([CC])],
Packit ae235b
		  [m4_define([AC_PROG_CC],
Packit ae235b
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit ae235b
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit ae235b
		  [_AM_DEPENDENCIES([CXX])],
Packit ae235b
		  [m4_define([AC_PROG_CXX],
Packit ae235b
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit ae235b
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit ae235b
		  [_AM_DEPENDENCIES([OBJC])],
Packit ae235b
		  [m4_define([AC_PROG_OBJC],
Packit ae235b
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit ae235b
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit ae235b
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit ae235b
		  [m4_define([AC_PROG_OBJCXX],
Packit ae235b
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
Packit ae235b
])
Packit ae235b
AC_REQUIRE([AM_SILENT_RULES])dnl
Packit ae235b
dnl The testsuite driver may need to know about EXEEXT, so add the
Packit ae235b
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
Packit ae235b
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit ae235b
AC_CONFIG_COMMANDS_PRE(dnl
Packit ae235b
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit ae235b
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit ae235b
Packit ae235b
# POSIX will say in a future version that running "rm -f" with no argument
Packit ae235b
# is OK; and we want to be able to make that assumption in our Makefile
Packit ae235b
# recipes.  So use an aggressive probe to check that the usage we want is
Packit ae235b
# actually supported "in the wild" to an acceptable degree.
Packit ae235b
# See automake bug#10828.
Packit ae235b
# To make any issue more visible, cause the running configure to be aborted
Packit ae235b
# by default if the 'rm' program in use doesn't match our expectations; the
Packit ae235b
# user can still override this though.
Packit ae235b
if rm -f && rm -fr && rm -rf; then : OK; else
Packit ae235b
  cat >&2 <<'END'
Packit ae235b
Oops!
Packit ae235b
Packit ae235b
Your 'rm' program seems unable to run without file operands specified
Packit ae235b
on the command line, even when the '-f' option is present.  This is contrary
Packit ae235b
to the behaviour of most rm programs out there, and not conforming with
Packit ae235b
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Packit ae235b
Packit ae235b
Please tell bug-automake@gnu.org about your system, including the value
Packit ae235b
of your $PATH and any error possibly output before this message.  This
Packit ae235b
can help us improve future automake versions.
Packit ae235b
Packit ae235b
END
Packit ae235b
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Packit ae235b
    echo 'Configuration will proceed anyway, since you have set the' >&2
Packit ae235b
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Packit ae235b
    echo >&2
Packit ae235b
  else
Packit ae235b
    cat >&2 <<'END'
Packit ae235b
Aborting the configuration process, to ensure you take notice of the issue.
Packit ae235b
Packit ae235b
You can download and install GNU coreutils to get an 'rm' implementation
Packit ae235b
that behaves properly: <http://www.gnu.org/software/coreutils/>.
Packit ae235b
Packit ae235b
If you want to complete the configuration process using your problematic
Packit ae235b
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Packit ae235b
to "yes", and re-run configure.
Packit ae235b
Packit ae235b
END
Packit ae235b
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
Packit ae235b
  fi
Packit ae235b
fi
Packit ae235b
dnl The trailing newline in this macro's definition is deliberate, for
Packit ae235b
dnl backward compatibility and to allow trailing 'dnl'-style comments
Packit ae235b
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
Packit ae235b
])
Packit ae235b
Packit ae235b
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit ae235b
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit ae235b
dnl mangled by Autoconf and run in a shell conditional statement.
Packit ae235b
m4_define([_AC_COMPILER_EXEEXT],
Packit ae235b
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit ae235b
Packit ae235b
# When config.status generates a header, we must update the stamp-h file.
Packit ae235b
# This file resides in the same directory as the config header
Packit ae235b
# that is generated.  The stamp files are numbered to have different names.
Packit ae235b
Packit ae235b
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit ae235b
# loop where config.status creates the headers, so we can generate
Packit ae235b
# our stamp files there.
Packit ae235b
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit ae235b
[# Compute $1's index in $config_headers.
Packit ae235b
_am_arg=$1
Packit ae235b
_am_stamp_count=1
Packit ae235b
for _am_header in $config_headers :; do
Packit ae235b
  case $_am_header in
Packit ae235b
    $_am_arg | $_am_arg:* )
Packit ae235b
      break ;;
Packit ae235b
    * )
Packit ae235b
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit ae235b
  esac
Packit ae235b
done
Packit ae235b
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_PROG_INSTALL_SH
Packit ae235b
# ------------------
Packit ae235b
# Define $install_sh.
Packit ae235b
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit ae235b
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit ae235b
if test x"${install_sh+set}" != xset; then
Packit ae235b
  case $am_aux_dir in
Packit ae235b
  *\ * | *\	*)
Packit ae235b
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit ae235b
  *)
Packit ae235b
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit ae235b
  esac
Packit ae235b
fi
Packit ae235b
AC_SUBST([install_sh])])
Packit ae235b
Packit ae235b
# Copyright (C) 2003-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# Check whether the underlying file-system supports filenames
Packit ae235b
# with a leading dot.  For instance MS-DOS doesn't.
Packit ae235b
AC_DEFUN([AM_SET_LEADING_DOT],
Packit ae235b
[rm -rf .tst 2>/dev/null
Packit ae235b
mkdir .tst 2>/dev/null
Packit ae235b
if test -d .tst; then
Packit ae235b
  am__leading_dot=.
Packit ae235b
else
Packit ae235b
  am__leading_dot=_
Packit ae235b
fi
Packit ae235b
rmdir .tst 2>/dev/null
Packit ae235b
AC_SUBST([am__leading_dot])])
Packit ae235b
Packit ae235b
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
Packit ae235b
# From Jim Meyering
Packit ae235b
Packit ae235b
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_MAINTAINER_MODE([DEFAULT-MODE])
Packit ae235b
# ----------------------------------
Packit ae235b
# Control maintainer-specific portions of Makefiles.
Packit ae235b
# Default is to disable them, unless 'enable' is passed literally.
Packit ae235b
# For symmetry, 'disable' may be passed as well.  Anyway, the user
Packit ae235b
# can override the default with the --enable/--disable switch.
Packit ae235b
AC_DEFUN([AM_MAINTAINER_MODE],
Packit ae235b
[m4_case(m4_default([$1], [disable]),
Packit ae235b
       [enable], [m4_define([am_maintainer_other], [disable])],
Packit ae235b
       [disable], [m4_define([am_maintainer_other], [enable])],
Packit ae235b
       [m4_define([am_maintainer_other], [enable])
Packit ae235b
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
Packit ae235b
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit ae235b
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
Packit ae235b
  AC_ARG_ENABLE([maintainer-mode],
Packit ae235b
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
Packit ae235b
      am_maintainer_other[ make rules and dependencies not useful
Packit ae235b
      (and sometimes confusing) to the casual installer])],
Packit ae235b
    [USE_MAINTAINER_MODE=$enableval],
Packit ae235b
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
Packit ae235b
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
Packit ae235b
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
Packit ae235b
  MAINT=$MAINTAINER_MODE_TRUE
Packit ae235b
  AC_SUBST([MAINT])dnl
Packit ae235b
]
Packit ae235b
)
Packit ae235b
Packit ae235b
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_MAKE_INCLUDE()
Packit ae235b
# -----------------
Packit ae235b
# Check to see how make treats includes.
Packit ae235b
AC_DEFUN([AM_MAKE_INCLUDE],
Packit ae235b
[am_make=${MAKE-make}
Packit ae235b
cat > confinc << 'END'
Packit ae235b
am__doit:
Packit ae235b
	@echo this is the am__doit target
Packit ae235b
.PHONY: am__doit
Packit ae235b
END
Packit ae235b
# If we don't find an include directive, just comment out the code.
Packit ae235b
AC_MSG_CHECKING([for style of include used by $am_make])
Packit ae235b
am__include="#"
Packit ae235b
am__quote=
Packit ae235b
_am_result=none
Packit ae235b
# First try GNU make style include.
Packit ae235b
echo "include confinc" > confmf
Packit ae235b
# Ignore all kinds of additional output from 'make'.
Packit ae235b
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit ae235b
*the\ am__doit\ target*)
Packit ae235b
  am__include=include
Packit ae235b
  am__quote=
Packit ae235b
  _am_result=GNU
Packit ae235b
  ;;
Packit ae235b
esac
Packit ae235b
# Now try BSD make style include.
Packit ae235b
if test "$am__include" = "#"; then
Packit ae235b
   echo '.include "confinc"' > confmf
Packit ae235b
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit ae235b
   *the\ am__doit\ target*)
Packit ae235b
     am__include=.include
Packit ae235b
     am__quote="\""
Packit ae235b
     _am_result=BSD
Packit ae235b
     ;;
Packit ae235b
   esac
Packit ae235b
fi
Packit ae235b
AC_SUBST([am__include])
Packit ae235b
AC_SUBST([am__quote])
Packit ae235b
AC_MSG_RESULT([$_am_result])
Packit ae235b
rm -f confinc confmf
Packit ae235b
])
Packit ae235b
Packit ae235b
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_MISSING_PROG(NAME, PROGRAM)
Packit ae235b
# ------------------------------
Packit ae235b
AC_DEFUN([AM_MISSING_PROG],
Packit ae235b
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit ae235b
$1=${$1-"${am_missing_run}$2"}
Packit ae235b
AC_SUBST($1)])
Packit ae235b
Packit ae235b
# AM_MISSING_HAS_RUN
Packit ae235b
# ------------------
Packit ae235b
# Define MISSING if not defined so far and test if it is modern enough.
Packit ae235b
# If it is, set am_missing_run to use it, otherwise, to nothing.
Packit ae235b
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit ae235b
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit ae235b
AC_REQUIRE_AUX_FILE([missing])dnl
Packit ae235b
if test x"${MISSING+set}" != xset; then
Packit ae235b
  case $am_aux_dir in
Packit ae235b
  *\ * | *\	*)
Packit ae235b
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit ae235b
  *)
Packit ae235b
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit ae235b
  esac
Packit ae235b
fi
Packit ae235b
# Use eval to expand $SHELL
Packit ae235b
if eval "$MISSING --is-lightweight"; then
Packit ae235b
  am_missing_run="$MISSING "
Packit ae235b
else
Packit ae235b
  am_missing_run=
Packit ae235b
  AC_MSG_WARN(['missing' script is too old or missing])
Packit ae235b
fi
Packit ae235b
])
Packit ae235b
Packit ae235b
# Helper functions for option handling.                     -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# _AM_MANGLE_OPTION(NAME)
Packit ae235b
# -----------------------
Packit ae235b
AC_DEFUN([_AM_MANGLE_OPTION],
Packit ae235b
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit ae235b
Packit ae235b
# _AM_SET_OPTION(NAME)
Packit ae235b
# --------------------
Packit ae235b
# Set option NAME.  Presently that only means defining a flag for this option.
Packit ae235b
AC_DEFUN([_AM_SET_OPTION],
Packit ae235b
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit ae235b
Packit ae235b
# _AM_SET_OPTIONS(OPTIONS)
Packit ae235b
# ------------------------
Packit ae235b
# OPTIONS is a space-separated list of Automake options.
Packit ae235b
AC_DEFUN([_AM_SET_OPTIONS],
Packit ae235b
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit ae235b
Packit ae235b
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit ae235b
# -------------------------------------------
Packit ae235b
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit ae235b
AC_DEFUN([_AM_IF_OPTION],
Packit ae235b
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit ae235b
Packit ae235b
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# _AM_PROG_CC_C_O
Packit ae235b
# ---------------
Packit ae235b
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
Packit ae235b
# to automatically call this.
Packit ae235b
AC_DEFUN([_AM_PROG_CC_C_O],
Packit ae235b
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit ae235b
AC_REQUIRE_AUX_FILE([compile])dnl
Packit ae235b
AC_LANG_PUSH([C])dnl
Packit ae235b
AC_CACHE_CHECK(
Packit ae235b
  [whether $CC understands -c and -o together],
Packit ae235b
  [am_cv_prog_cc_c_o],
Packit ae235b
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
Packit ae235b
  # Make sure it works both with $CC and with simple cc.
Packit ae235b
  # Following AC_PROG_CC_C_O, we do the test twice because some
Packit ae235b
  # compilers refuse to overwrite an existing .o file with -o,
Packit ae235b
  # though they will create one.
Packit ae235b
  am_cv_prog_cc_c_o=yes
Packit ae235b
  for am_i in 1 2; do
Packit ae235b
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
Packit ae235b
         && test -f conftest2.$ac_objext; then
Packit ae235b
      : OK
Packit ae235b
    else
Packit ae235b
      am_cv_prog_cc_c_o=no
Packit ae235b
      break
Packit ae235b
    fi
Packit ae235b
  done
Packit ae235b
  rm -f core conftest*
Packit ae235b
  unset am_i])
Packit ae235b
if test "$am_cv_prog_cc_c_o" != yes; then
Packit ae235b
   # Losing compiler, so override with the script.
Packit ae235b
   # FIXME: It is wrong to rewrite CC.
Packit ae235b
   # But if we don't then we get into trouble of one sort or another.
Packit ae235b
   # A longer-term fix would be to have automake use am__CC in this case,
Packit ae235b
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Packit ae235b
   CC="$am_aux_dir/compile $CC"
Packit ae235b
fi
Packit ae235b
AC_LANG_POP([C])])
Packit ae235b
Packit ae235b
# For backward compatibility.
Packit ae235b
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
Packit ae235b
Packit ae235b
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
Packit ae235b
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit ae235b
# ---------------------------------------------------------------------------
Packit ae235b
# Adds support for distributing Python modules and packages.  To
Packit ae235b
# install modules, copy them to $(pythondir), using the python_PYTHON
Packit ae235b
# automake variable.  To install a package with the same name as the
Packit ae235b
# automake package, install to $(pkgpythondir), or use the
Packit ae235b
# pkgpython_PYTHON automake variable.
Packit ae235b
#
Packit ae235b
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
Packit ae235b
# locations to install python extension modules (shared libraries).
Packit ae235b
# Another macro is required to find the appropriate flags to compile
Packit ae235b
# extension modules.
Packit ae235b
#
Packit ae235b
# If your package is configured with a different prefix to python,
Packit ae235b
# users will have to add the install directory to the PYTHONPATH
Packit ae235b
# environment variable, or create a .pth file (see the python
Packit ae235b
# documentation for details).
Packit ae235b
#
Packit ae235b
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
Packit ae235b
# cause an error if the version of python installed on the system
Packit ae235b
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
Packit ae235b
# numbers and dots only.
Packit ae235b
AC_DEFUN([AM_PATH_PYTHON],
Packit ae235b
 [
Packit ae235b
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
Packit ae235b
  dnl supported. (2.0 was released on October 16, 2000).
Packit ae235b
  dnl FIXME: Remove the need to hard-code Python versions here.
Packit ae235b
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
Packit ae235b
[python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
Packit ae235b
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
Packit ae235b
Packit ae235b
  AC_ARG_VAR([PYTHON], [the Python interpreter])
Packit ae235b
Packit ae235b
  m4_if([$1],[],[
Packit ae235b
    dnl No version check is needed.
Packit ae235b
    # Find any Python interpreter.
Packit ae235b
    if test -z "$PYTHON"; then
Packit ae235b
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
Packit ae235b
    fi
Packit ae235b
    am_display_PYTHON=python
Packit ae235b
  ], [
Packit ae235b
    dnl A version check is needed.
Packit ae235b
    if test -n "$PYTHON"; then
Packit ae235b
      # If the user set $PYTHON, use it and don't search something else.
Packit ae235b
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
Packit ae235b
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
Packit ae235b
			      [AC_MSG_RESULT([yes])],
Packit ae235b
			      [AC_MSG_RESULT([no])
Packit ae235b
			       AC_MSG_ERROR([Python interpreter is too old])])
Packit ae235b
      am_display_PYTHON=$PYTHON
Packit ae235b
    else
Packit ae235b
      # Otherwise, try each interpreter until we find one that satisfies
Packit ae235b
      # VERSION.
Packit ae235b
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
Packit ae235b
	[am_cv_pathless_PYTHON],[
Packit ae235b
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
Packit ae235b
	  test "$am_cv_pathless_PYTHON" = none && break
Packit ae235b
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
Packit ae235b
	done])
Packit ae235b
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
Packit ae235b
      if test "$am_cv_pathless_PYTHON" = none; then
Packit ae235b
	PYTHON=:
Packit ae235b
      else
Packit ae235b
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
Packit ae235b
      fi
Packit ae235b
      am_display_PYTHON=$am_cv_pathless_PYTHON
Packit ae235b
    fi
Packit ae235b
  ])
Packit ae235b
Packit ae235b
  if test "$PYTHON" = :; then
Packit ae235b
  dnl Run any user-specified action, or abort.
Packit ae235b
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
Packit ae235b
  else
Packit ae235b
Packit ae235b
  dnl Query Python for its version number.  Getting [:3] seems to be
Packit ae235b
  dnl the best way to do this; it's what "site.py" does in the standard
Packit ae235b
  dnl library.
Packit ae235b
Packit ae235b
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
Packit ae235b
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
Packit ae235b
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
Packit ae235b
Packit ae235b
  dnl Use the values of $prefix and $exec_prefix for the corresponding
Packit ae235b
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
Packit ae235b
  dnl distinct variables so they can be overridden if need be.  However,
Packit ae235b
  dnl general consensus is that you shouldn't need this ability.
Packit ae235b
Packit ae235b
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
Packit ae235b
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
Packit ae235b
Packit ae235b
  dnl At times (like when building shared libraries) you may want
Packit ae235b
  dnl to know which OS platform Python thinks this is.
Packit ae235b
Packit ae235b
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
Packit ae235b
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
Packit ae235b
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
Packit ae235b
Packit ae235b
  # Just factor out some code duplication.
Packit ae235b
  am_python_setup_sysconfig="\
Packit ae235b
import sys
Packit ae235b
# Prefer sysconfig over distutils.sysconfig, for better compatibility
Packit ae235b
# with python 3.x.  See automake bug#10227.
Packit ae235b
try:
Packit ae235b
    import sysconfig
Packit ae235b
except ImportError:
Packit ae235b
    can_use_sysconfig = 0
Packit ae235b
else:
Packit ae235b
    can_use_sysconfig = 1
Packit ae235b
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
Packit ae235b
# <https://github.com/pypa/virtualenv/issues/118>
Packit ae235b
try:
Packit ae235b
    from platform import python_implementation
Packit ae235b
    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
Packit ae235b
        can_use_sysconfig = 0
Packit ae235b
except ImportError:
Packit ae235b
    pass"
Packit ae235b
Packit ae235b
  dnl Set up 4 directories:
Packit ae235b
Packit ae235b
  dnl pythondir -- where to install python scripts.  This is the
Packit ae235b
  dnl   site-packages directory, not the python standard library
Packit ae235b
  dnl   directory like in previous automake betas.  This behavior
Packit ae235b
  dnl   is more consistent with lispdir.m4 for example.
Packit ae235b
  dnl Query distutils for this directory.
Packit ae235b
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
Packit ae235b
    [am_cv_python_pythondir],
Packit ae235b
    [if test "x$prefix" = xNONE
Packit ae235b
     then
Packit ae235b
       am_py_prefix=$ac_default_prefix
Packit ae235b
     else
Packit ae235b
       am_py_prefix=$prefix
Packit ae235b
     fi
Packit ae235b
     am_cv_python_pythondir=`$PYTHON -c "
Packit ae235b
$am_python_setup_sysconfig
Packit ae235b
if can_use_sysconfig:
Packit ae235b
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
Packit ae235b
else:
Packit ae235b
    from distutils import sysconfig
Packit ae235b
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
Packit ae235b
sys.stdout.write(sitedir)"`
Packit ae235b
     case $am_cv_python_pythondir in
Packit ae235b
     $am_py_prefix*)
Packit ae235b
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
Packit ae235b
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
Packit ae235b
       ;;
Packit ae235b
     *)
Packit ae235b
       case $am_py_prefix in
Packit ae235b
         /usr|/System*) ;;
Packit ae235b
         *)
Packit ae235b
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit ae235b
	  ;;
Packit ae235b
       esac
Packit ae235b
       ;;
Packit ae235b
     esac
Packit ae235b
    ])
Packit ae235b
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
Packit ae235b
Packit ae235b
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
Packit ae235b
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
Packit ae235b
  dnl   more consistent with the rest of automake.
Packit ae235b
Packit ae235b
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
Packit ae235b
Packit ae235b
  dnl pyexecdir -- directory for installing python extension modules
Packit ae235b
  dnl   (shared libraries)
Packit ae235b
  dnl Query distutils for this directory.
Packit ae235b
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
Packit ae235b
    [am_cv_python_pyexecdir],
Packit ae235b
    [if test "x$exec_prefix" = xNONE
Packit ae235b
     then
Packit ae235b
       am_py_exec_prefix=$am_py_prefix
Packit ae235b
     else
Packit ae235b
       am_py_exec_prefix=$exec_prefix
Packit ae235b
     fi
Packit ae235b
     am_cv_python_pyexecdir=`$PYTHON -c "
Packit ae235b
$am_python_setup_sysconfig
Packit ae235b
if can_use_sysconfig:
Packit ae235b
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
Packit ae235b
else:
Packit ae235b
    from distutils import sysconfig
Packit ae235b
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
Packit ae235b
sys.stdout.write(sitedir)"`
Packit ae235b
     case $am_cv_python_pyexecdir in
Packit ae235b
     $am_py_exec_prefix*)
Packit ae235b
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
Packit ae235b
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
Packit ae235b
       ;;
Packit ae235b
     *)
Packit ae235b
       case $am_py_exec_prefix in
Packit ae235b
         /usr|/System*) ;;
Packit ae235b
         *)
Packit ae235b
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit ae235b
	   ;;
Packit ae235b
       esac
Packit ae235b
       ;;
Packit ae235b
     esac
Packit ae235b
    ])
Packit ae235b
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
Packit ae235b
Packit ae235b
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
Packit ae235b
Packit ae235b
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
Packit ae235b
Packit ae235b
  dnl Run any user-specified action.
Packit ae235b
  $2
Packit ae235b
  fi
Packit ae235b
Packit ae235b
])
Packit ae235b
Packit ae235b
Packit ae235b
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
Packit ae235b
# ---------------------------------------------------------------------------
Packit ae235b
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
Packit ae235b
# Run ACTION-IF-FALSE otherwise.
Packit ae235b
# This test uses sys.hexversion instead of the string equivalent (first
Packit ae235b
# word of sys.version), in order to cope with versions such as 2.2c1.
Packit ae235b
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
Packit ae235b
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
Packit ae235b
 [prog="import sys
Packit ae235b
# split strings by '.' and convert to numeric.  Append some zeros
Packit ae235b
# because we need at least 4 digits for the hex conversion.
Packit ae235b
# map returns an iterator in Python 3.0 and a list in 2.x
Packit ae235b
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
Packit ae235b
minverhex = 0
Packit ae235b
# xrange is not present in Python 3.0 and range returns an iterator
Packit ae235b
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
Packit ae235b
sys.exit(sys.hexversion < minverhex)"
Packit ae235b
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_RUN_LOG(COMMAND)
Packit ae235b
# -------------------
Packit ae235b
# Run COMMAND, save the exit status in ac_status, and log it.
Packit ae235b
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Packit ae235b
AC_DEFUN([AM_RUN_LOG],
Packit ae235b
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Packit ae235b
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Packit ae235b
   ac_status=$?
Packit ae235b
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit ae235b
   (exit $ac_status); }])
Packit ae235b
Packit ae235b
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_SANITY_CHECK
Packit ae235b
# ---------------
Packit ae235b
AC_DEFUN([AM_SANITY_CHECK],
Packit ae235b
[AC_MSG_CHECKING([whether build environment is sane])
Packit ae235b
# Reject unsafe characters in $srcdir or the absolute working directory
Packit ae235b
# name.  Accept space and tab only in the latter.
Packit ae235b
am_lf='
Packit ae235b
'
Packit ae235b
case `pwd` in
Packit ae235b
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit ae235b
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit ae235b
esac
Packit ae235b
case $srcdir in
Packit ae235b
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit ae235b
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit ae235b
esac
Packit ae235b
Packit ae235b
# Do 'set' in a subshell so we don't clobber the current shell's
Packit ae235b
# arguments.  Must try -L first in case configure is actually a
Packit ae235b
# symlink; some systems play weird games with the mod time of symlinks
Packit ae235b
# (eg FreeBSD returns the mod time of the symlink's containing
Packit ae235b
# directory).
Packit ae235b
if (
Packit ae235b
   am_has_slept=no
Packit ae235b
   for am_try in 1 2; do
Packit ae235b
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit ae235b
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit ae235b
     if test "$[*]" = "X"; then
Packit ae235b
	# -L didn't work.
Packit ae235b
	set X `ls -t "$srcdir/configure" conftest.file`
Packit ae235b
     fi
Packit ae235b
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit ae235b
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit ae235b
Packit ae235b
	# If neither matched, then we have a broken ls.  This can happen
Packit ae235b
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit ae235b
	# broken ls alias from the environment.  This has actually
Packit ae235b
	# happened.  Such a system could not be considered "sane".
Packit ae235b
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit ae235b
  alias in your environment])
Packit ae235b
     fi
Packit ae235b
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit ae235b
       break
Packit ae235b
     fi
Packit ae235b
     # Just in case.
Packit ae235b
     sleep 1
Packit ae235b
     am_has_slept=yes
Packit ae235b
   done
Packit ae235b
   test "$[2]" = conftest.file
Packit ae235b
   )
Packit ae235b
then
Packit ae235b
   # Ok.
Packit ae235b
   :
Packit ae235b
else
Packit ae235b
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit ae235b
Check your system clock])
Packit ae235b
fi
Packit ae235b
AC_MSG_RESULT([yes])
Packit ae235b
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit ae235b
# generated files are strictly newer.
Packit ae235b
am_sleep_pid=
Packit ae235b
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit ae235b
  ( sleep 1 ) &
Packit ae235b
  am_sleep_pid=$!
Packit ae235b
fi
Packit ae235b
AC_CONFIG_COMMANDS_PRE(
Packit ae235b
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit ae235b
   if test -n "$am_sleep_pid"; then
Packit ae235b
     # Hide warnings about reused PIDs.
Packit ae235b
     wait $am_sleep_pid 2>/dev/null
Packit ae235b
   fi
Packit ae235b
   AC_MSG_RESULT([done])])
Packit ae235b
rm -f conftest.file
Packit ae235b
])
Packit ae235b
Packit ae235b
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_SILENT_RULES([DEFAULT])
Packit ae235b
# --------------------------
Packit ae235b
# Enable less verbose build rules; with the default set to DEFAULT
Packit ae235b
# ("yes" being less verbose, "no" or empty being verbose).
Packit ae235b
AC_DEFUN([AM_SILENT_RULES],
Packit ae235b
[AC_ARG_ENABLE([silent-rules], [dnl
Packit ae235b
AS_HELP_STRING(
Packit ae235b
  [--enable-silent-rules],
Packit ae235b
  [less verbose build output (undo: "make V=1")])
Packit ae235b
AS_HELP_STRING(
Packit ae235b
  [--disable-silent-rules],
Packit ae235b
  [verbose build output (undo: "make V=0")])dnl
Packit ae235b
])
Packit ae235b
case $enable_silent_rules in @%:@ (((
Packit ae235b
  yes) AM_DEFAULT_VERBOSITY=0;;
Packit ae235b
   no) AM_DEFAULT_VERBOSITY=1;;
Packit ae235b
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit ae235b
esac
Packit ae235b
dnl
Packit ae235b
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Packit ae235b
dnl do not support nested variable expansions.
Packit ae235b
dnl See automake bug#9928 and bug#10237.
Packit ae235b
am_make=${MAKE-make}
Packit ae235b
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit ae235b
   [am_cv_make_support_nested_variables],
Packit ae235b
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit ae235b
BAR0=false
Packit ae235b
BAR1=true
Packit ae235b
V=1
Packit ae235b
am__doit:
Packit ae235b
	@$(TRUE)
Packit ae235b
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit ae235b
  am_cv_make_support_nested_variables=yes
Packit ae235b
else
Packit ae235b
  am_cv_make_support_nested_variables=no
Packit ae235b
fi])
Packit ae235b
if test $am_cv_make_support_nested_variables = yes; then
Packit ae235b
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
Packit ae235b
  AM_V='$(V)'
Packit ae235b
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit ae235b
else
Packit ae235b
  AM_V=$AM_DEFAULT_VERBOSITY
Packit ae235b
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit ae235b
fi
Packit ae235b
AC_SUBST([AM_V])dnl
Packit ae235b
AM_SUBST_NOTMAKE([AM_V])dnl
Packit ae235b
AC_SUBST([AM_DEFAULT_V])dnl
Packit ae235b
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit ae235b
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit ae235b
AM_BACKSLASH='\'
Packit ae235b
AC_SUBST([AM_BACKSLASH])dnl
Packit ae235b
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit ae235b
])
Packit ae235b
Packit ae235b
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# AM_PROG_INSTALL_STRIP
Packit ae235b
# ---------------------
Packit ae235b
# One issue with vendor 'install' (even GNU) is that you can't
Packit ae235b
# specify the program used to strip binaries.  This is especially
Packit ae235b
# annoying in cross-compiling environments, where the build's strip
Packit ae235b
# is unlikely to handle the host's binaries.
Packit ae235b
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit ae235b
# always use install-sh in "make install-strip", and initialize
Packit ae235b
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit ae235b
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit ae235b
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit ae235b
# Installed binaries are usually stripped using 'strip' when the user
Packit ae235b
# run "make install-strip".  However 'strip' might not be the right
Packit ae235b
# tool to use in cross-compilation environments, therefore Automake
Packit ae235b
# will honor the 'STRIP' environment variable to overrule this program.
Packit ae235b
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit ae235b
if test "$cross_compiling" != no; then
Packit ae235b
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit ae235b
fi
Packit ae235b
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit ae235b
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit ae235b
Packit ae235b
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit ae235b
# ---------------------------
Packit ae235b
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit ae235b
# This macro is traced by Automake.
Packit ae235b
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit ae235b
Packit ae235b
# AM_SUBST_NOTMAKE(VARIABLE)
Packit ae235b
# --------------------------
Packit ae235b
# Public sister of _AM_SUBST_NOTMAKE.
Packit ae235b
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit ae235b
Packit ae235b
# Check how to create a tarball.                            -*- Autoconf -*-
Packit ae235b
Packit ae235b
# Copyright (C) 2004-2017 Free Software Foundation, Inc.
Packit ae235b
#
Packit ae235b
# This file is free software; the Free Software Foundation
Packit ae235b
# gives unlimited permission to copy and/or distribute it,
Packit ae235b
# with or without modifications, as long as this notice is preserved.
Packit ae235b
Packit ae235b
# _AM_PROG_TAR(FORMAT)
Packit ae235b
# --------------------
Packit ae235b
# Check how to create a tarball in format FORMAT.
Packit ae235b
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit ae235b
#
Packit ae235b
# Substitute a variable $(am__tar) that is a command
Packit ae235b
# writing to stdout a FORMAT-tarball containing the directory
Packit ae235b
# $tardir.
Packit ae235b
#     tardir=directory && $(am__tar) > result.tar
Packit ae235b
#
Packit ae235b
# Substitute a variable $(am__untar) that extract such
Packit ae235b
# a tarball read from stdin.
Packit ae235b
#     $(am__untar) < result.tar
Packit ae235b
#
Packit ae235b
AC_DEFUN([_AM_PROG_TAR],
Packit ae235b
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit ae235b
# in the wild :-(  We should find a proper way to deprecate it ...
Packit ae235b
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit ae235b
Packit ae235b
# We'll loop over all known methods to create a tar archive until one works.
Packit ae235b
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit ae235b
Packit ae235b
m4_if([$1], [v7],
Packit ae235b
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit ae235b
Packit ae235b
  [m4_case([$1],
Packit ae235b
    [ustar],
Packit ae235b
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
Packit ae235b
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
Packit ae235b
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
Packit ae235b
      # and bug#13588).
Packit ae235b
      am_max_uid=2097151 # 2^21 - 1
Packit ae235b
      am_max_gid=$am_max_uid
Packit ae235b
      # The $UID and $GID variables are not portable, so we need to resort
Packit ae235b
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
Packit ae235b
      # below are definitely unexpected, so allow the users to see them
Packit ae235b
      # (that is, avoid stderr redirection).
Packit ae235b
      am_uid=`id -u || echo unknown`
Packit ae235b
      am_gid=`id -g || echo unknown`
Packit ae235b
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
Packit ae235b
      if test $am_uid -le $am_max_uid; then
Packit ae235b
         AC_MSG_RESULT([yes])
Packit ae235b
      else
Packit ae235b
         AC_MSG_RESULT([no])
Packit ae235b
         _am_tools=none
Packit ae235b
      fi
Packit ae235b
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
Packit ae235b
      if test $am_gid -le $am_max_gid; then
Packit ae235b
         AC_MSG_RESULT([yes])
Packit ae235b
      else
Packit ae235b
        AC_MSG_RESULT([no])
Packit ae235b
        _am_tools=none
Packit ae235b
      fi],
Packit ae235b
Packit ae235b
  [pax],
Packit ae235b
    [],
Packit ae235b
Packit ae235b
  [m4_fatal([Unknown tar format])])
Packit ae235b
Packit ae235b
  AC_MSG_CHECKING([how to create a $1 tar archive])
Packit ae235b
Packit ae235b
  # Go ahead even if we have the value already cached.  We do so because we
Packit ae235b
  # need to set the values for the 'am__tar' and 'am__untar' variables.
Packit ae235b
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit ae235b
Packit ae235b
  for _am_tool in $_am_tools; do
Packit ae235b
    case $_am_tool in
Packit ae235b
    gnutar)
Packit ae235b
      for _am_tar in tar gnutar gtar; do
Packit ae235b
        AM_RUN_LOG([$_am_tar --version]) && break
Packit ae235b
      done
Packit ae235b
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit ae235b
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit ae235b
      am__untar="$_am_tar -xf -"
Packit ae235b
      ;;
Packit ae235b
    plaintar)
Packit ae235b
      # Must skip GNU tar: if it does not support --format= it doesn't create
Packit ae235b
      # ustar tarball either.
Packit ae235b
      (tar --version) >/dev/null 2>&1 && continue
Packit ae235b
      am__tar='tar chf - "$$tardir"'
Packit ae235b
      am__tar_='tar chf - "$tardir"'
Packit ae235b
      am__untar='tar xf -'
Packit ae235b
      ;;
Packit ae235b
    pax)
Packit ae235b
      am__tar='pax -L -x $1 -w "$$tardir"'
Packit ae235b
      am__tar_='pax -L -x $1 -w "$tardir"'
Packit ae235b
      am__untar='pax -r'
Packit ae235b
      ;;
Packit ae235b
    cpio)
Packit ae235b
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit ae235b
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit ae235b
      am__untar='cpio -i -H $1 -d'
Packit ae235b
      ;;
Packit ae235b
    none)
Packit ae235b
      am__tar=false
Packit ae235b
      am__tar_=false
Packit ae235b
      am__untar=false
Packit ae235b
      ;;
Packit ae235b
    esac
Packit ae235b
Packit ae235b
    # If the value was cached, stop now.  We just wanted to have am__tar
Packit ae235b
    # and am__untar set.
Packit ae235b
    test -n "${am_cv_prog_tar_$1}" && break
Packit ae235b
Packit ae235b
    # tar/untar a dummy directory, and stop if the command works.
Packit ae235b
    rm -rf conftest.dir
Packit ae235b
    mkdir conftest.dir
Packit ae235b
    echo GrepMe > conftest.dir/file
Packit ae235b
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit ae235b
    rm -rf conftest.dir
Packit ae235b
    if test -s conftest.tar; then
Packit ae235b
      AM_RUN_LOG([$am__untar 
Packit ae235b
      AM_RUN_LOG([cat conftest.dir/file])
Packit ae235b
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit ae235b
    fi
Packit ae235b
  done
Packit ae235b
  rm -rf conftest.dir
Packit ae235b
Packit ae235b
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit ae235b
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit ae235b
Packit ae235b
AC_SUBST([am__tar])
Packit ae235b
AC_SUBST([am__untar])
Packit ae235b
]) # _AM_PROG_TAR
Packit ae235b
Packit ae235b
m4_include([m4macros/attributes.m4])
Packit ae235b
m4_include([m4macros/glibtests.m4])
Packit ae235b
m4_include([m4macros/gtk-doc.m4])
Packit ae235b
m4_include([m4macros/libtool.m4])
Packit ae235b
m4_include([m4macros/ltoptions.m4])
Packit ae235b
m4_include([m4macros/ltsugar.m4])
Packit ae235b
m4_include([m4macros/ltversion.m4])
Packit ae235b
m4_include([m4macros/lt~obsolete.m4])
Packit ae235b
m4_include([acinclude.m4])