|
|
@ -1,6 +1,6 @@ |
|
|
|
# generated automatically by aclocal 1.14.1 -*- Autoconf -*- |
|
|
|
# generated automatically by aclocal 1.16.1 -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1996-2018 Free Software Foundation, Inc. |
|
|
|
|
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -20,32 +20,63 @@ You have another version of autoconf. It may work, but is not guaranteed to. |
|
|
|
If you have problems, you may need to regenerate the build system entirely. |
|
|
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
|
|
|
|
|
|
|
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
|
|
|
# serial 1 (pkg-config-0.24) |
|
|
|
# |
|
|
|
# Copyright ยฉ 2004 Scott James Remnant <scott@netsplit.com>. |
|
|
|
# |
|
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
|
# it under the terms of the GNU General Public License as published by |
|
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
|
# (at your option) any later version. |
|
|
|
# |
|
|
|
# This program is distributed in the hope that it will be useful, but |
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
# General Public License for more details. |
|
|
|
# |
|
|
|
# You should have received a copy of the GNU General Public License |
|
|
|
# along with this program; if not, write to the Free Software |
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
|
# |
|
|
|
# As a special exception to the GNU General Public License, if you |
|
|
|
# distribute this file as part of a program that contains a |
|
|
|
# configuration script generated by Autoconf, you may include it under |
|
|
|
# the same distribution terms that you use for the rest of that program. |
|
|
|
|
|
|
|
# PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
|
|
|
# ---------------------------------- |
|
|
|
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
|
|
|
dnl serial 11 (pkg-config-0.29) |
|
|
|
dnl |
|
|
|
dnl Copyright ยฉ 2004 Scott James Remnant <scott@netsplit.com>. |
|
|
|
dnl Copyright ยฉ 2012-2015 Dan Nicholson <dbn.lists@gmail.com> |
|
|
|
dnl |
|
|
|
dnl This program is free software; you can redistribute it and/or modify |
|
|
|
dnl it under the terms of the GNU General Public License as published by |
|
|
|
dnl the Free Software Foundation; either version 2 of the License, or |
|
|
|
dnl (at your option) any later version. |
|
|
|
dnl |
|
|
|
dnl This program is distributed in the hope that it will be useful, but |
|
|
|
dnl WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
dnl General Public License for more details. |
|
|
|
dnl |
|
|
|
dnl You should have received a copy of the GNU General Public License |
|
|
|
dnl along with this program; if not, write to the Free Software |
|
|
|
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
|
|
|
dnl 02111-1307, USA. |
|
|
|
dnl |
|
|
|
dnl As a special exception to the GNU General Public License, if you |
|
|
|
dnl distribute this file as part of a program that contains a |
|
|
|
dnl configuration script generated by Autoconf, you may include it under |
|
|
|
dnl the same distribution terms that you use for the rest of that |
|
|
|
dnl program. |
|
|
|
|
|
|
|
dnl PKG_PREREQ(MIN-VERSION) |
|
|
|
dnl ----------------------- |
|
|
|
dnl Since: 0.29 |
|
|
|
dnl |
|
|
|
dnl Verify that the version of the pkg-config macros are at least |
|
|
|
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's |
|
|
|
dnl installed version of pkg-config, this checks the developer's version |
|
|
|
dnl of pkg.m4 when generating configure. |
|
|
|
dnl |
|
|
|
dnl To ensure that this macro is defined, also add: |
|
|
|
dnl m4_ifndef([PKG_PREREQ], |
|
|
|
dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) |
|
|
|
dnl |
|
|
|
dnl See the "Since" comment for each macro you use to see what version |
|
|
|
dnl of the macros you require. |
|
|
|
m4_defun([PKG_PREREQ], |
|
|
|
[m4_define([PKG_MACROS_VERSION], [0.29]) |
|
|
|
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, |
|
|
|
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) |
|
|
|
])dnl PKG_PREREQ |
|
|
|
|
|
|
|
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
|
|
|
dnl ---------------------------------- |
|
|
|
dnl Since: 0.16 |
|
|
|
dnl |
|
|
|
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to |
|
|
|
dnl first found in the path. Checks that the version of pkg-config found |
|
|
|
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is |
|
|
|
dnl used since that's the first version where most current features of |
|
|
|
dnl pkg-config existed. |
|
|
|
AC_DEFUN([PKG_PROG_PKG_CONFIG], |
|
|
|
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
|
|
|
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
|
|
@ -67,18 +98,19 @@ if test -n "$PKG_CONFIG"; then |
|
|
|
PKG_CONFIG="" |
|
|
|
fi |
|
|
|
fi[]dnl |
|
|
|
])# PKG_PROG_PKG_CONFIG |
|
|
|
])dnl PKG_PROG_PKG_CONFIG |
|
|
|
|
|
|
|
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
|
|
# |
|
|
|
# Check to see whether a particular set of modules exists. Similar |
|
|
|
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
|
|
|
# |
|
|
|
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
|
|
|
# only at the first occurence in configure.ac, so if the first place |
|
|
|
# it's called might be skipped (such as if it is within an "if", you |
|
|
|
# have to call PKG_CHECK_EXISTS manually |
|
|
|
# -------------------------------------------------------------- |
|
|
|
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
|
|
dnl ------------------------------------------------------------------- |
|
|
|
dnl Since: 0.18 |
|
|
|
dnl |
|
|
|
dnl Check to see whether a particular set of modules exists. Similar to |
|
|
|
dnl PKG_CHECK_MODULES(), but does not set variables or print errors. |
|
|
|
dnl |
|
|
|
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
|
|
|
dnl only at the first occurence in configure.ac, so if the first place |
|
|
|
dnl it's called might be skipped (such as if it is within an "if", you |
|
|
|
dnl have to call PKG_CHECK_EXISTS manually |
|
|
|
AC_DEFUN([PKG_CHECK_EXISTS], |
|
|
|
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
|
|
if test -n "$PKG_CONFIG" && \ |
|
|
@ -88,8 +120,10 @@ m4_ifvaln([$3], [else |
|
|
|
$3])dnl |
|
|
|
fi]) |
|
|
|
|
|
|
|
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
|
|
|
# --------------------------------------------- |
|
|
|
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
|
|
|
dnl --------------------------------------------- |
|
|
|
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting |
|
|
|
dnl pkg_failed based on the result. |
|
|
|
m4_define([_PKG_CONFIG], |
|
|
|
[if test -n "$$1"; then |
|
|
|
pkg_cv_[]$1="$$1" |
|
|
@ -101,10 +135,11 @@ m4_define([_PKG_CONFIG], |
|
|
|
else |
|
|
|
pkg_failed=untried |
|
|
|
fi[]dnl |
|
|
|
])# _PKG_CONFIG |
|
|
|
])dnl _PKG_CONFIG |
|
|
|
|
|
|
|
# _PKG_SHORT_ERRORS_SUPPORTED |
|
|
|
# ----------------------------- |
|
|
|
dnl _PKG_SHORT_ERRORS_SUPPORTED |
|
|
|
dnl --------------------------- |
|
|
|
dnl Internal check to see if pkg-config supports short errors. |
|
|
|
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
|
|
|
[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
|
|
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
|
@ -112,19 +147,17 @@ if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
|
|
else |
|
|
|
_pkg_short_errors_supported=no |
|
|
|
fi[]dnl |
|
|
|
])# _PKG_SHORT_ERRORS_SUPPORTED |
|
|
|
])dnl _PKG_SHORT_ERRORS_SUPPORTED |
|
|
|
|
|
|
|
|
|
|
|
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
|
|
|
# [ACTION-IF-NOT-FOUND]) |
|
|
|
# |
|
|
|
# |
|
|
|
# Note that if there is a possibility the first call to |
|
|
|
# PKG_CHECK_MODULES might not happen, you should be sure to include an |
|
|
|
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
|
|
|
# |
|
|
|
# |
|
|
|
# -------------------------------------------------------------- |
|
|
|
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
|
|
|
dnl [ACTION-IF-NOT-FOUND]) |
|
|
|
dnl -------------------------------------------------------------- |
|
|
|
dnl Since: 0.4.0 |
|
|
|
dnl |
|
|
|
dnl Note that if there is a possibility the first call to |
|
|
|
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an |
|
|
|
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
|
|
|
AC_DEFUN([PKG_CHECK_MODULES], |
|
|
|
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
|
|
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
|
|
@ -178,16 +211,40 @@ else |
|
|
|
AC_MSG_RESULT([yes]) |
|
|
|
$3 |
|
|
|
fi[]dnl |
|
|
|
])# PKG_CHECK_MODULES |
|
|
|
])dnl PKG_CHECK_MODULES |
|
|
|
|
|
|
|
|
|
|
|
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
|
|
|
dnl [ACTION-IF-NOT-FOUND]) |
|
|
|
dnl --------------------------------------------------------------------- |
|
|
|
dnl Since: 0.29 |
|
|
|
dnl |
|
|
|
dnl Checks for existence of MODULES and gathers its build flags with |
|
|
|
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags |
|
|
|
dnl and VARIABLE-PREFIX_LIBS from --libs. |
|
|
|
dnl |
|
|
|
dnl Note that if there is a possibility the first call to |
|
|
|
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to |
|
|
|
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your |
|
|
|
dnl configure.ac. |
|
|
|
AC_DEFUN([PKG_CHECK_MODULES_STATIC], |
|
|
|
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
|
|
_save_PKG_CONFIG=$PKG_CONFIG |
|
|
|
PKG_CONFIG="$PKG_CONFIG --static" |
|
|
|
PKG_CHECK_MODULES($@) |
|
|
|
PKG_CONFIG=$_save_PKG_CONFIG[]dnl |
|
|
|
])dnl PKG_CHECK_MODULES_STATIC |
|
|
|
|
|
|
|
|
|
|
|
# PKG_INSTALLDIR(DIRECTORY) |
|
|
|
# ------------------------- |
|
|
|
# Substitutes the variable pkgconfigdir as the location where a module |
|
|
|
# should install pkg-config .pc files. By default the directory is |
|
|
|
# $libdir/pkgconfig, but the default can be changed by passing |
|
|
|
# DIRECTORY. The user can override through the --with-pkgconfigdir |
|
|
|
# parameter. |
|
|
|
dnl PKG_INSTALLDIR([DIRECTORY]) |
|
|
|
dnl ------------------------- |
|
|
|
dnl Since: 0.27 |
|
|
|
dnl |
|
|
|
dnl Substitutes the variable pkgconfigdir as the location where a module |
|
|
|
dnl should install pkg-config .pc files. By default the directory is |
|
|
|
dnl $libdir/pkgconfig, but the default can be changed by passing |
|
|
|
dnl DIRECTORY. The user can override through the --with-pkgconfigdir |
|
|
|
dnl parameter. |
|
|
|
AC_DEFUN([PKG_INSTALLDIR], |
|
|
|
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) |
|
|
|
m4_pushdef([pkg_description], |
|
|
@ -198,16 +255,18 @@ AC_ARG_WITH([pkgconfigdir], |
|
|
|
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) |
|
|
|
m4_popdef([pkg_default]) |
|
|
|
m4_popdef([pkg_description]) |
|
|
|
]) dnl PKG_INSTALLDIR |
|
|
|
])dnl PKG_INSTALLDIR |
|
|
|
|
|
|
|
|
|
|
|
# PKG_NOARCH_INSTALLDIR(DIRECTORY) |
|
|
|
# ------------------------- |
|
|
|
# Substitutes the variable noarch_pkgconfigdir as the location where a |
|
|
|
# module should install arch-independent pkg-config .pc files. By |
|
|
|
# default the directory is $datadir/pkgconfig, but the default can be |
|
|
|
# changed by passing DIRECTORY. The user can override through the |
|
|
|
# --with-noarch-pkgconfigdir parameter. |
|
|
|
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) |
|
|
|
dnl -------------------------------- |
|
|
|
dnl Since: 0.27 |
|
|
|
dnl |
|
|
|
dnl Substitutes the variable noarch_pkgconfigdir as the location where a |
|
|
|
dnl module should install arch-independent pkg-config .pc files. By |
|
|
|
dnl default the directory is $datadir/pkgconfig, but the default can be |
|
|
|
dnl changed by passing DIRECTORY. The user can override through the |
|
|
|
dnl --with-noarch-pkgconfigdir parameter. |
|
|
|
AC_DEFUN([PKG_NOARCH_INSTALLDIR], |
|
|
|
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) |
|
|
|
m4_pushdef([pkg_description], |
|
|
@ -218,13 +277,15 @@ AC_ARG_WITH([noarch-pkgconfigdir], |
|
|
|
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) |
|
|
|
m4_popdef([pkg_default]) |
|
|
|
m4_popdef([pkg_description]) |
|
|
|
]) dnl PKG_NOARCH_INSTALLDIR |
|
|
|
])dnl PKG_NOARCH_INSTALLDIR |
|
|
|
|
|
|
|
|
|
|
|
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
|
|
|
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
|
|
# ------------------------------------------- |
|
|
|
# Retrieves the value of the pkg-config variable for the given module. |
|
|
|
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
|
|
|
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
|
|
dnl ------------------------------------------- |
|
|
|
dnl Since: 0.28 |
|
|
|
dnl |
|
|
|
dnl Retrieves the value of the pkg-config variable for the given module. |
|
|
|
AC_DEFUN([PKG_CHECK_VAR], |
|
|
|
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
|
|
|
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl |
|
|
@ -233,9 +294,9 @@ _PKG_CONFIG([$1], [variable="][$3]["], [$2]) |
|
|
|
AS_VAR_COPY([$1], [pkg_cv_][$1]) |
|
|
|
|
|
|
|
AS_VAR_IF([$1], [""], [$5], [$4])dnl |
|
|
|
])# PKG_CHECK_VAR |
|
|
|
])dnl PKG_CHECK_VAR |
|
|
|
|
|
|
|
# Copyright (C) 2002-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2002-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -247,10 +308,10 @@ AS_VAR_IF([$1], [""], [$5], [$4])dnl |
|
|
|
# generated from the m4 files accompanying Automake X.Y. |
|
|
|
# (This private macro should not be called outside this file.) |
|
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION], |
|
|
|
[am__api_version='1.14' |
|
|
|
[am__api_version='1.16' |
|
|
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
|
|
|
dnl require some minimum version. Point them to the right macro. |
|
|
|
m4_if([$1], [1.14.1], [], |
|
|
|
m4_if([$1], [1.16.1], [], |
|
|
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
|
|
|
]) |
|
|
|
|
|
|
@ -266,14 +327,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) |
|
|
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
|
|
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
|
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
|
|
|
[AM_AUTOMAKE_VERSION([1.14.1])dnl |
|
|
|
[AM_AUTOMAKE_VERSION([1.16.1])dnl |
|
|
|
m4_ifndef([AC_AUTOCONF_VERSION], |
|
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
|
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
|
|
|
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -325,7 +386,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` |
|
|
|
|
|
|
|
# AM_CONDITIONAL -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1997-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -356,7 +417,7 @@ AC_CONFIG_COMMANDS_PRE( |
|
|
|
Usually this means the macro was only invoked conditionally.]]) |
|
|
|
fi])]) |
|
|
|
|
|
|
|
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1999-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -547,13 +608,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl |
|
|
|
|
|
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1999-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
|
# with or without modifications, as long as this notice is preserved. |
|
|
|
|
|
|
|
|
|
|
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
|
# ------------------------------ |
|
|
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
@ -561,49 +621,41 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
|
# Older Autoconf quotes --file arguments for eval, but not when files |
|
|
|
# are listed without --file. Let's play safe and only enable the eval |
|
|
|
# if we detect the quoting. |
|
|
|
case $CONFIG_FILES in |
|
|
|
*\'*) eval set x "$CONFIG_FILES" ;; |
|
|
|
*) set x $CONFIG_FILES ;; |
|
|
|
esac |
|
|
|
# TODO: see whether this extra hack can be removed once we start |
|
|
|
# requiring Autoconf 2.70 or later. |
|
|
|
AS_CASE([$CONFIG_FILES], |
|
|
|
[*\'*], [eval set x "$CONFIG_FILES"], |
|
|
|
[*], [set x $CONFIG_FILES]) |
|
|
|
shift |
|
|
|
for mf |
|
|
|
# Used to flag and report bootstrapping failures. |
|
|
|
am_rc=0 |
|
|
|
for am_mf |
|
|
|
do |
|
|
|
# Strip MF so we end up with the name of the file. |
|
|
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
|
|
# Check whether this is an Automake generated Makefile or not. |
|
|
|
# We used to match only the files named 'Makefile.in', but |
|
|
|
# some people rename them; so instead we look at the file content. |
|
|
|
# Grep'ing the first line is not enough: some people post-process |
|
|
|
# each Makefile.in and add a new line on top of each file to say so. |
|
|
|
# Grep'ing the whole file is not good either: AIX grep has a line |
|
|
|
am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` |
|
|
|
# Check whether this is an Automake generated Makefile which includes |
|
|
|
# dependency-tracking related rules and includes. |
|
|
|
# Grep'ing the whole file directly is not great: AIX grep has a line |
|
|
|
# limit of 2048, but all sed's we know have understand at least 4000. |
|
|
|
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
|
|
|
dirpart=`AS_DIRNAME("$mf")` |
|
|
|
else |
|
|
|
continue |
|
|
|
fi |
|
|
|
# Extract the definition of DEPDIR, am__include, and am__quote |
|
|
|
# from the Makefile without running 'make'. |
|
|
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
|
|
test -z "$DEPDIR" && continue |
|
|
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
|
|
test -z "$am__include" && continue |
|
|
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
|
|
# Find all dependency output files, they are included files with |
|
|
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|
|
|
# simplest approach to changing $(DEPDIR) to its actual value in the |
|
|
|
# expansion. |
|
|
|
for file in `sed -n " |
|
|
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
|
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
|
|
|
# Make sure the directory exists. |
|
|
|
test -f "$dirpart/$file" && continue |
|
|
|
fdir=`AS_DIRNAME(["$file"])` |
|
|
|
AS_MKDIR_P([$dirpart/$fdir]) |
|
|
|
# echo "creating $dirpart/$file" |
|
|
|
echo '# dummy' > "$dirpart/$file" |
|
|
|
done |
|
|
|
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
|
|
|
|| continue |
|
|
|
am_dirpart=`AS_DIRNAME(["$am_mf"])` |
|
|
|
am_filepart=`AS_BASENAME(["$am_mf"])` |
|
|
|
AM_RUN_LOG([cd "$am_dirpart" \ |
|
|
|
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
|
|
|
| $MAKE -f - am--depfiles]) || am_rc=$? |
|
|
|
done |
|
|
|
if test $am_rc -ne 0; then |
|
|
|
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments |
|
|
|
for automatic dependency tracking. Try re-running configure with the |
|
|
|
'--disable-dependency-tracking' option to at least be able to build |
|
|
|
the package (albeit without support for automatic dependency tracking).]) |
|
|
|
fi |
|
|
|
AS_UNSET([am_dirpart]) |
|
|
|
AS_UNSET([am_filepart]) |
|
|
|
AS_UNSET([am_mf]) |
|
|
|
AS_UNSET([am_rc]) |
|
|
|
rm -f conftest-deps.mk |
|
|
|
} |
|
|
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
|
|
|
|
|
@ -612,18 +664,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
|
# ----------------------------- |
|
|
|
# This macro should only be invoked once -- use via AC_REQUIRE. |
|
|
|
# |
|
|
|
# This code is only required when automatic dependency tracking |
|
|
|
# is enabled. FIXME. This creates each '.P' file that we will |
|
|
|
# need in order to bootstrap the dependency handling code. |
|
|
|
# This code is only required when automatic dependency tracking is enabled. |
|
|
|
# This creates each '.Po' and '.Plo' makefile fragment that we'll need in |
|
|
|
# order to bootstrap the dependency handling code. |
|
|
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
|
[AC_CONFIG_COMMANDS([depfiles], |
|
|
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
|
|
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
|
|
|
]) |
|
|
|
[AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) |
|
|
|
|
|
|
|
# Do all the work for Automake. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1996-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -710,11 +761,11 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
|
|
|
AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
|
|
|
# For better backward compatibility. To be removed once Automake 1.9.x |
|
|
|
# dies out for good. For more background, see: |
|
|
|
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
|
|
|
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
|
|
|
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
|
|
|
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
|
|
|
AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
|
|
|
# We need awk for the "check" target. The system "awk" is bad on |
|
|
|
# some platforms. |
|
|
|
# We need awk for the "check" target (and possibly the TAP driver). The |
|
|
|
# system "awk" is bad on some platforms. |
|
|
|
AC_REQUIRE([AC_PROG_AWK])dnl |
|
|
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
|
|
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
|
@ -778,7 +829,7 @@ END |
|
|
|
Aborting the configuration process, to ensure you take notice of the issue. |
|
|
|
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation |
|
|
|
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
|
|
|
that behaves properly: <https://www.gnu.org/software/coreutils/>. |
|
|
|
|
|
|
|
If you want to complete the configuration process using your problematic |
|
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
|
|
@ -788,6 +839,9 @@ END |
|
|
|
AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) |
|
|
|
fi |
|
|
|
fi |
|
|
|
dnl The trailing newline in this macro's definition is deliberate, for |
|
|
|
dnl backward compatibility and to allow trailing 'dnl'-style comments |
|
|
|
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. |
|
|
|
]) |
|
|
|
|
|
|
|
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
|
|
@ -817,7 +871,7 @@ for _am_header in $config_headers :; do |
|
|
|
done |
|
|
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -828,7 +882,7 @@ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co |
|
|
|
# Define $install_sh. |
|
|
|
AC_DEFUN([AM_PROG_INSTALL_SH], |
|
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
|
|
if test x"${install_sh}" != xset; then |
|
|
|
if test x"${install_sh+set}" != xset; then |
|
|
|
case $am_aux_dir in |
|
|
|
*\ * | *\ *) |
|
|
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
|
@ -838,7 +892,7 @@ if test x"${install_sh}" != xset; then |
|
|
|
fi |
|
|
|
AC_SUBST([install_sh])]) |
|
|
|
|
|
|
|
# Copyright (C) 2003-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2003-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -860,7 +914,7 @@ AC_SUBST([am__leading_dot])]) |
|
|
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
|
|
|
# From Jim Meyering |
|
|
|
|
|
|
|
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1996-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -895,7 +949,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|
|
|
|
|
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -903,49 +957,42 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
|
|
|
|
|
|
|
# AM_MAKE_INCLUDE() |
|
|
|
# ----------------- |
|
|
|
# Check to see how make treats includes. |
|
|
|
# Check whether make has an 'include' directive that can support all |
|
|
|
# the idioms we need for our automatic dependency tracking code. |
|
|
|
AC_DEFUN([AM_MAKE_INCLUDE], |
|
|
|
[am_make=${MAKE-make} |
|
|
|
cat > confinc << 'END' |
|
|
|
[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) |
|
|
|
cat > confinc.mk << 'END' |
|
|
|
am__doit: |
|
|
|
@echo this is the am__doit target |
|
|
|
@echo this is the am__doit target >confinc.out |
|
|
|
.PHONY: am__doit |
|
|
|
END |
|
|
|
# If we don't find an include directive, just comment out the code. |
|
|
|
AC_MSG_CHECKING([for style of include used by $am_make]) |
|
|
|
am__include="#" |
|
|
|
am__quote= |
|
|
|
_am_result=none |
|
|
|
# First try GNU make style include. |
|
|
|
echo "include confinc" > confmf |
|
|
|
# Ignore all kinds of additional output from 'make'. |
|
|
|
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
|
|
*the\ am__doit\ target*) |
|
|
|
am__include=include |
|
|
|
am__quote= |
|
|
|
_am_result=GNU |
|
|
|
;; |
|
|
|
esac |
|
|
|
# Now try BSD make style include. |
|
|
|
if test "$am__include" = "#"; then |
|
|
|
echo '.include "confinc"' > confmf |
|
|
|
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
|
|
*the\ am__doit\ target*) |
|
|
|
am__include=.include |
|
|
|
am__quote="\"" |
|
|
|
_am_result=BSD |
|
|
|
;; |
|
|
|
esac |
|
|
|
fi |
|
|
|
AC_SUBST([am__include]) |
|
|
|
AC_SUBST([am__quote]) |
|
|
|
AC_MSG_RESULT([$_am_result]) |
|
|
|
rm -f confinc confmf |
|
|
|
]) |
|
|
|
# BSD make does it like this. |
|
|
|
echo '.include "confinc.mk" # ignored' > confmf.BSD |
|
|
|
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
|
|
|
echo 'include confinc.mk # ignored' > confmf.GNU |
|
|
|
_am_result=no |
|
|
|
for s in GNU BSD; do |
|
|
|
AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) |
|
|
|
AS_CASE([$?:`cat confinc.out 2>/dev/null`], |
|
|
|
['0:this is the am__doit target'], |
|
|
|
[AS_CASE([$s], |
|
|
|
[BSD], [am__include='.include' am__quote='"'], |
|
|
|
[am__include='include' am__quote=''])]) |
|
|
|
if test "$am__include" != "#"; then |
|
|
|
_am_result="yes ($s style)" |
|
|
|
break |
|
|
|
fi |
|
|
|
done |
|
|
|
rm -f confinc.* confmf.* |
|
|
|
AC_MSG_RESULT([${_am_result}]) |
|
|
|
AC_SUBST([am__include])]) |
|
|
|
AC_SUBST([am__quote])]) |
|
|
|
|
|
|
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1997-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1997-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -984,7 +1031,7 @@ fi |
|
|
|
|
|
|
|
# Helper functions for option handling. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1013,7 +1060,7 @@ AC_DEFUN([_AM_SET_OPTIONS], |
|
|
|
AC_DEFUN([_AM_IF_OPTION], |
|
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
|
|
|
|
|
|
|
# Copyright (C) 1999-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1999-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1060,7 +1107,7 @@ AC_LANG_POP([C])]) |
|
|
|
# For backward compatibility. |
|
|
|
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1079,7 +1126,7 @@ AC_DEFUN([AM_RUN_LOG], |
|
|
|
|
|
|
|
# Check to make sure that the build environment is sane. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 1996-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 1996-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1160,7 +1207,7 @@ AC_CONFIG_COMMANDS_PRE( |
|
|
|
rm -f conftest.file |
|
|
|
]) |
|
|
|
|
|
|
|
# Copyright (C) 2009-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2009-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1220,7 +1267,7 @@ AC_SUBST([AM_BACKSLASH])dnl |
|
|
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
|
|
|
]) |
|
|
|
|
|
|
|
# Copyright (C) 2001-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2001-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1248,7 +1295,7 @@ fi |
|
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
|
|
|
|
|
|
|
# Copyright (C) 2006-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2006-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
@ -1267,7 +1314,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
|
|
|
|
|
|
|
# Check how to create a tarball. -*- Autoconf -*- |
|
|
|
|
|
|
|
# Copyright (C) 2004-2013 Free Software Foundation, Inc. |
|
|
|
# Copyright (C) 2004-2018 Free Software Foundation, Inc. |
|
|
|
# |
|
|
|
# This file is free software; the Free Software Foundation |
|
|
|
# gives unlimited permission to copy and/or distribute it, |
|
|
|