14
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
[m4_warning([this file was generated for autoconf 2.68.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
8639
8645
# ----------------------------------
8640
8646
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8641
8647
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8642
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8648
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
8649
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8643
8650
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8644
8651
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8645
8652
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8770
8778
])# PKG_CHECK_MODULES
8772
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
8781
# PKG_INSTALLDIR(DIRECTORY)
8782
# -------------------------
8783
# Substitutes the variable pkgconfigdir as the location where a module
8784
# should install pkg-config .pc files. By default the directory is
8785
# $libdir/pkgconfig, but the default can be changed by passing
8786
# DIRECTORY. The user can override through the --with-pkgconfigdir
8788
AC_DEFUN([PKG_INSTALLDIR],
8789
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
8790
m4_pushdef([pkg_description],
8791
[pkg-config installation directory @<:@]pkg_default[@:>@])
8792
AC_ARG_WITH([pkgconfigdir],
8793
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
8794
[with_pkgconfigdir=]pkg_default)
8795
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
8796
m4_popdef([pkg_default])
8797
m4_popdef([pkg_description])
8798
]) dnl PKG_INSTALLDIR
8801
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
8802
# -------------------------
8803
# Substitutes the variable noarch_pkgconfigdir as the location where a
8804
# module should install arch-independent pkg-config .pc files. By
8805
# default the directory is $datadir/pkgconfig, but the default can be
8806
# changed by passing DIRECTORY. The user can override through the
8807
# --with-noarch-pkgconfigdir parameter.
8808
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
8809
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
8810
m4_pushdef([pkg_description],
8811
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
8812
AC_ARG_WITH([noarch-pkgconfigdir],
8813
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
8814
[with_noarch_pkgconfigdir=]pkg_default)
8815
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
8816
m4_popdef([pkg_default])
8817
m4_popdef([pkg_description])
8818
]) dnl PKG_NOARCH_INSTALLDIR
8821
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
8822
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8823
# -------------------------------------------
8824
# Retrieves the value of the pkg-config variable for the given module.
8825
AC_DEFUN([PKG_CHECK_VAR],
8826
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8827
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
8829
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
8830
AS_VAR_COPY([$1], [pkg_cv_][$1])
8832
AS_VAR_IF([$1], [""], [$5], [$4])dnl
8835
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
8774
8837
# This file is free software; the Free Software Foundation
8775
8838
# gives unlimited permission to copy and/or distribute it,
8781
8844
# generated from the m4 files accompanying Automake X.Y.
8782
8845
# (This private macro should not be called outside this file.)
8783
8846
AC_DEFUN([AM_AUTOMAKE_VERSION],
8784
[am__api_version='1.13'
8847
[am__api_version='1.15'
8785
8848
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8786
8849
dnl require some minimum version. Point them to the right macro.
8787
m4_if([$1], [1.13.2], [],
8850
m4_if([$1], [1.15], [],
8788
8851
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8800
8863
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8801
8864
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8802
8865
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8803
[AM_AUTOMAKE_VERSION([1.13.2])dnl
8866
[AM_AUTOMAKE_VERSION([1.15])dnl
8804
8867
m4_ifndef([AC_AUTOCONF_VERSION],
8805
8868
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8806
8869
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8808
8871
# Figure out how to run the assembler. -*- Autoconf -*-
8810
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
8873
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
8812
8875
# This file is free software; the Free Software Foundation
8813
8876
# gives unlimited permission to copy and/or distribute it,
8872
8935
# configured tree to be moved without reconfiguration.
8874
8937
AC_DEFUN([AM_AUX_DIR_EXPAND],
8875
[dnl Rely on autoconf to set up CDPATH properly.
8876
AC_PREREQ([2.50])dnl
8877
# expand $ac_aux_dir to an absolute path
8878
am_aux_dir=`cd $ac_aux_dir && pwd`
8938
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8939
# Expand $ac_aux_dir to an absolute path.
8940
am_aux_dir=`cd "$ac_aux_dir" && pwd`
8881
8943
# AM_CONDITIONAL -*- Autoconf -*-
8883
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
8945
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
8885
8947
# This file is free software; the Free Software Foundation
8886
8948
# gives unlimited permission to copy and/or distribute it,
9262
9330
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9263
9331
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9264
9332
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9265
# We need awk for the "check" target. The system "awk" is bad on
9333
# We need awk for the "check" target (and possibly the TAP driver). The
9334
# system "awk" is bad on some platforms.
9267
9335
AC_REQUIRE([AC_PROG_AWK])dnl
9268
9336
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9269
9337
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9295
9363
AC_CONFIG_COMMANDS_PRE(dnl
9296
9364
[m4_provide_if([_AM_COMPILER_EXEEXT],
9297
9365
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9367
# POSIX will say in a future version that running "rm -f" with no argument
9368
# is OK; and we want to be able to make that assumption in our Makefile
9369
# recipes. So use an aggressive probe to check that the usage we want is
9370
# actually supported "in the wild" to an acceptable degree.
9371
# See automake bug#10828.
9372
# To make any issue more visible, cause the running configure to be aborted
9373
# by default if the 'rm' program in use doesn't match our expectations; the
9374
# user can still override this though.
9375
if rm -f && rm -fr && rm -rf; then : OK; else
9379
Your 'rm' program seems unable to run without file operands specified
9380
on the command line, even when the '-f' option is present. This is contrary
9381
to the behaviour of most rm programs out there, and not conforming with
9382
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9384
Please tell bug-automake@gnu.org about your system, including the value
9385
of your $PATH and any error possibly output before this message. This
9386
can help us improve future automake versions.
9389
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9390
echo 'Configuration will proceed anyway, since you have set the' >&2
9391
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9395
Aborting the configuration process, to ensure you take notice of the issue.
9397
You can download and install GNU coreutils to get an 'rm' implementation
9398
that behaves properly: <http://www.gnu.org/software/coreutils/>.
9400
If you want to complete the configuration process using your problematic
9401
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9402
to "yes", and re-run configure.
9405
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9408
dnl The trailing newline in this macro's definition is deliberate, for
9409
dnl backward compatibility and to allow trailing 'dnl'-style comments
9410
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
9300
9413
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9485
9597
AC_DEFUN([_AM_IF_OPTION],
9486
9598
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9600
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
9602
# This file is free software; the Free Software Foundation
9603
# gives unlimited permission to copy and/or distribute it,
9604
# with or without modifications, as long as this notice is preserved.
9608
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9609
# to automatically call this.
9610
AC_DEFUN([_AM_PROG_CC_C_O],
9611
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9612
AC_REQUIRE_AUX_FILE([compile])dnl
9613
AC_LANG_PUSH([C])dnl
9615
[whether $CC understands -c and -o together],
9616
[am_cv_prog_cc_c_o],
9617
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9618
# Make sure it works both with $CC and with simple cc.
9619
# Following AC_PROG_CC_C_O, we do the test twice because some
9620
# compilers refuse to overwrite an existing .o file with -o,
9621
# though they will create one.
9622
am_cv_prog_cc_c_o=yes
9624
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9625
&& test -f conftest2.$ac_objext; then
9628
am_cv_prog_cc_c_o=no
9632
rm -f core conftest*
9634
if test "$am_cv_prog_cc_c_o" != yes; then
9635
# Losing compiler, so override with the script.
9636
# FIXME: It is wrong to rewrite CC.
9637
# But if we don't then we get into trouble of one sort or another.
9638
# A longer-term fix would be to have automake use am__CC in this case,
9639
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9640
CC="$am_aux_dir/compile $CC"
9644
# For backward compatibility.
9645
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9647
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
9649
# This file is free software; the Free Software Foundation
9650
# gives unlimited permission to copy and/or distribute it,
9651
# with or without modifications, as long as this notice is preserved.
9653
# AM_RUN_LOG(COMMAND)
9654
# -------------------
9655
# Run COMMAND, save the exit status in ac_status, and log it.
9656
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9657
AC_DEFUN([AM_RUN_LOG],
9658
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9659
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9661
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9662
(exit $ac_status); }])
9488
9664
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9490
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9666
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
9492
9668
# This file is free software; the Free Software Foundation
9493
9669
# gives unlimited permission to copy and/or distribute it,