Blame aclocal.m4

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