1# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2017 Free Software Foundation, Inc.
4
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf.  It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# intlmacosx.m4 serial 5 (gettext-0.18.2)
24dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc.
25dnl This file is free software; the Free Software Foundation
26dnl gives unlimited permission to copy and/or distribute it,
27dnl with or without modifications, as long as this notice is preserved.
28dnl
29dnl This file can be used in projects which are not available under
30dnl the GNU General Public License or the GNU Library General Public
31dnl License but which still want to provide support for the GNU gettext
32dnl functionality.
33dnl Please note that the actual code of the GNU gettext library is covered
34dnl by the GNU Library General Public License, and the rest of the GNU
35dnl gettext package is covered by the GNU General Public License.
36dnl They are *not* in the public domain.
37
38dnl Checks for special options needed on Mac OS X.
39dnl Defines INTL_MACOSX_LIBS.
40AC_DEFUN([gt_INTL_MACOSX],
41[
42  dnl Check for API introduced in Mac OS X 10.2.
43  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
44    [gt_cv_func_CFPreferencesCopyAppValue],
45    [gt_save_LIBS="$LIBS"
46     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
47     AC_LINK_IFELSE(
48       [AC_LANG_PROGRAM(
49          [[#include <CoreFoundation/CFPreferences.h>]],
50          [[CFPreferencesCopyAppValue(NULL, NULL)]])],
51       [gt_cv_func_CFPreferencesCopyAppValue=yes],
52       [gt_cv_func_CFPreferencesCopyAppValue=no])
53     LIBS="$gt_save_LIBS"])
54  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
55    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
56      [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
57  fi
58  dnl Check for API introduced in Mac OS X 10.3.
59  AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
60    [gt_save_LIBS="$LIBS"
61     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
62     AC_LINK_IFELSE(
63       [AC_LANG_PROGRAM(
64          [[#include <CoreFoundation/CFLocale.h>]],
65          [[CFLocaleCopyCurrent();]])],
66       [gt_cv_func_CFLocaleCopyCurrent=yes],
67       [gt_cv_func_CFLocaleCopyCurrent=no])
68     LIBS="$gt_save_LIBS"])
69  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
70    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
71      [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
72  fi
73  INTL_MACOSX_LIBS=
74  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
75    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
76  fi
77  AC_SUBST([INTL_MACOSX_LIBS])
78])
79
80dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
81dnl serial 11 (pkg-config-0.29.1)
82dnl
83dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
84dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
85dnl
86dnl This program is free software; you can redistribute it and/or modify
87dnl it under the terms of the GNU General Public License as published by
88dnl the Free Software Foundation; either version 2 of the License, or
89dnl (at your option) any later version.
90dnl
91dnl This program is distributed in the hope that it will be useful, but
92dnl WITHOUT ANY WARRANTY; without even the implied warranty of
93dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
94dnl General Public License for more details.
95dnl
96dnl You should have received a copy of the GNU General Public License
97dnl along with this program; if not, write to the Free Software
98dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
99dnl 02111-1307, USA.
100dnl
101dnl As a special exception to the GNU General Public License, if you
102dnl distribute this file as part of a program that contains a
103dnl configuration script generated by Autoconf, you may include it under
104dnl the same distribution terms that you use for the rest of that
105dnl program.
106
107dnl PKG_PREREQ(MIN-VERSION)
108dnl -----------------------
109dnl Since: 0.29
110dnl
111dnl Verify that the version of the pkg-config macros are at least
112dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
113dnl installed version of pkg-config, this checks the developer's version
114dnl of pkg.m4 when generating configure.
115dnl
116dnl To ensure that this macro is defined, also add:
117dnl m4_ifndef([PKG_PREREQ],
118dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
119dnl
120dnl See the "Since" comment for each macro you use to see what version
121dnl of the macros you require.
122m4_defun([PKG_PREREQ],
123[m4_define([PKG_MACROS_VERSION], [0.29.1])
124m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
125    [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
126])dnl PKG_PREREQ
127
128dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
129dnl ----------------------------------
130dnl Since: 0.16
131dnl
132dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
133dnl first found in the path. Checks that the version of pkg-config found
134dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
135dnl used since that's the first version where most current features of
136dnl pkg-config existed.
137AC_DEFUN([PKG_PROG_PKG_CONFIG],
138[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
139m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
140m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
141AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
142AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
143AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
144
145if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
146	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
147fi
148if test -n "$PKG_CONFIG"; then
149	_pkg_min_version=m4_default([$1], [0.9.0])
150	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
151	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
152		AC_MSG_RESULT([yes])
153	else
154		AC_MSG_RESULT([no])
155		PKG_CONFIG=""
156	fi
157fi[]dnl
158])dnl PKG_PROG_PKG_CONFIG
159
160dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
161dnl -------------------------------------------------------------------
162dnl Since: 0.18
163dnl
164dnl Check to see whether a particular set of modules exists. Similar to
165dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
166dnl
167dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
168dnl only at the first occurence in configure.ac, so if the first place
169dnl it's called might be skipped (such as if it is within an "if", you
170dnl have to call PKG_CHECK_EXISTS manually
171AC_DEFUN([PKG_CHECK_EXISTS],
172[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
173if test -n "$PKG_CONFIG" && \
174    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
175  m4_default([$2], [:])
176m4_ifvaln([$3], [else
177  $3])dnl
178fi])
179
180dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
181dnl ---------------------------------------------
182dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
183dnl pkg_failed based on the result.
184m4_define([_PKG_CONFIG],
185[if test -n "$$1"; then
186    pkg_cv_[]$1="$$1"
187 elif test -n "$PKG_CONFIG"; then
188    PKG_CHECK_EXISTS([$3],
189                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
190		      test "x$?" != "x0" && pkg_failed=yes ],
191		     [pkg_failed=yes])
192 else
193    pkg_failed=untried
194fi[]dnl
195])dnl _PKG_CONFIG
196
197dnl _PKG_SHORT_ERRORS_SUPPORTED
198dnl ---------------------------
199dnl Internal check to see if pkg-config supports short errors.
200AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
201[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
203        _pkg_short_errors_supported=yes
204else
205        _pkg_short_errors_supported=no
206fi[]dnl
207])dnl _PKG_SHORT_ERRORS_SUPPORTED
208
209
210dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
211dnl   [ACTION-IF-NOT-FOUND])
212dnl --------------------------------------------------------------
213dnl Since: 0.4.0
214dnl
215dnl Note that if there is a possibility the first call to
216dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
217dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
218AC_DEFUN([PKG_CHECK_MODULES],
219[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
220AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
221AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
222
223pkg_failed=no
224AC_MSG_CHECKING([for $1])
225
226_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
227_PKG_CONFIG([$1][_LIBS], [libs], [$2])
228
229m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
230and $1[]_LIBS to avoid the need to call pkg-config.
231See the pkg-config man page for more details.])
232
233if test $pkg_failed = yes; then
234   	AC_MSG_RESULT([no])
235        _PKG_SHORT_ERRORS_SUPPORTED
236        if test $_pkg_short_errors_supported = yes; then
237	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
238        else
239	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
240        fi
241	# Put the nasty error message in config.log where it belongs
242	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
243
244	m4_default([$4], [AC_MSG_ERROR(
245[Package requirements ($2) were not met:
246
247$$1_PKG_ERRORS
248
249Consider adjusting the PKG_CONFIG_PATH environment variable if you
250installed software in a non-standard prefix.
251
252_PKG_TEXT])[]dnl
253        ])
254elif test $pkg_failed = untried; then
255     	AC_MSG_RESULT([no])
256	m4_default([$4], [AC_MSG_FAILURE(
257[The pkg-config script could not be found or is too old.  Make sure it
258is in your PATH or set the PKG_CONFIG environment variable to the full
259path to pkg-config.
260
261_PKG_TEXT
262
263To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
264        ])
265else
266	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
267	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
268        AC_MSG_RESULT([yes])
269	$3
270fi[]dnl
271])dnl PKG_CHECK_MODULES
272
273
274dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
275dnl   [ACTION-IF-NOT-FOUND])
276dnl ---------------------------------------------------------------------
277dnl Since: 0.29
278dnl
279dnl Checks for existence of MODULES and gathers its build flags with
280dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
281dnl and VARIABLE-PREFIX_LIBS from --libs.
282dnl
283dnl Note that if there is a possibility the first call to
284dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
285dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
286dnl configure.ac.
287AC_DEFUN([PKG_CHECK_MODULES_STATIC],
288[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
289_save_PKG_CONFIG=$PKG_CONFIG
290PKG_CONFIG="$PKG_CONFIG --static"
291PKG_CHECK_MODULES($@)
292PKG_CONFIG=$_save_PKG_CONFIG[]dnl
293])dnl PKG_CHECK_MODULES_STATIC
294
295
296dnl PKG_INSTALLDIR([DIRECTORY])
297dnl -------------------------
298dnl Since: 0.27
299dnl
300dnl Substitutes the variable pkgconfigdir as the location where a module
301dnl should install pkg-config .pc files. By default the directory is
302dnl $libdir/pkgconfig, but the default can be changed by passing
303dnl DIRECTORY. The user can override through the --with-pkgconfigdir
304dnl parameter.
305AC_DEFUN([PKG_INSTALLDIR],
306[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
307m4_pushdef([pkg_description],
308    [pkg-config installation directory @<:@]pkg_default[@:>@])
309AC_ARG_WITH([pkgconfigdir],
310    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
311    [with_pkgconfigdir=]pkg_default)
312AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
313m4_popdef([pkg_default])
314m4_popdef([pkg_description])
315])dnl PKG_INSTALLDIR
316
317
318dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
319dnl --------------------------------
320dnl Since: 0.27
321dnl
322dnl Substitutes the variable noarch_pkgconfigdir as the location where a
323dnl module should install arch-independent pkg-config .pc files. By
324dnl default the directory is $datadir/pkgconfig, but the default can be
325dnl changed by passing DIRECTORY. The user can override through the
326dnl --with-noarch-pkgconfigdir parameter.
327AC_DEFUN([PKG_NOARCH_INSTALLDIR],
328[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
329m4_pushdef([pkg_description],
330    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
331AC_ARG_WITH([noarch-pkgconfigdir],
332    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
333    [with_noarch_pkgconfigdir=]pkg_default)
334AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
335m4_popdef([pkg_default])
336m4_popdef([pkg_description])
337])dnl PKG_NOARCH_INSTALLDIR
338
339
340dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
341dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
342dnl -------------------------------------------
343dnl Since: 0.28
344dnl
345dnl Retrieves the value of the pkg-config variable for the given module.
346AC_DEFUN([PKG_CHECK_VAR],
347[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
348AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
349
350_PKG_CONFIG([$1], [variable="][$3]["], [$2])
351AS_VAR_COPY([$1], [pkg_cv_][$1])
352
353AS_VAR_IF([$1], [""], [$5], [$4])dnl
354])dnl PKG_CHECK_VAR
355
356# Copyright (C) 2002-2017 Free Software Foundation, Inc.
357#
358# This file is free software; the Free Software Foundation
359# gives unlimited permission to copy and/or distribute it,
360# with or without modifications, as long as this notice is preserved.
361
362# AM_AUTOMAKE_VERSION(VERSION)
363# ----------------------------
364# Automake X.Y traces this macro to ensure aclocal.m4 has been
365# generated from the m4 files accompanying Automake X.Y.
366# (This private macro should not be called outside this file.)
367AC_DEFUN([AM_AUTOMAKE_VERSION],
368[am__api_version='1.15'
369dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
370dnl require some minimum version.  Point them to the right macro.
371m4_if([$1], [1.15.1], [],
372      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
373])
374
375# _AM_AUTOCONF_VERSION(VERSION)
376# -----------------------------
377# aclocal traces this macro to find the Autoconf version.
378# This is a private macro too.  Using m4_define simplifies
379# the logic in aclocal, which can simply ignore this definition.
380m4_define([_AM_AUTOCONF_VERSION], [])
381
382# AM_SET_CURRENT_AUTOMAKE_VERSION
383# -------------------------------
384# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
385# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
386AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
387[AM_AUTOMAKE_VERSION([1.15.1])dnl
388m4_ifndef([AC_AUTOCONF_VERSION],
389  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
390_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
391
392# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
393
394# Copyright (C) 2001-2017 Free Software Foundation, Inc.
395#
396# This file is free software; the Free Software Foundation
397# gives unlimited permission to copy and/or distribute it,
398# with or without modifications, as long as this notice is preserved.
399
400# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
401# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
402# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
403#
404# Of course, Automake must honor this variable whenever it calls a
405# tool from the auxiliary directory.  The problem is that $srcdir (and
406# therefore $ac_aux_dir as well) can be either absolute or relative,
407# depending on how configure is run.  This is pretty annoying, since
408# it makes $ac_aux_dir quite unusable in subdirectories: in the top
409# source directory, any form will work fine, but in subdirectories a
410# relative path needs to be adjusted first.
411#
412# $ac_aux_dir/missing
413#    fails when called from a subdirectory if $ac_aux_dir is relative
414# $top_srcdir/$ac_aux_dir/missing
415#    fails if $ac_aux_dir is absolute,
416#    fails when called from a subdirectory in a VPATH build with
417#          a relative $ac_aux_dir
418#
419# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
420# are both prefixed by $srcdir.  In an in-source build this is usually
421# harmless because $srcdir is '.', but things will broke when you
422# start a VPATH build or use an absolute $srcdir.
423#
424# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
425# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
426#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
427# and then we would define $MISSING as
428#   MISSING="\${SHELL} $am_aux_dir/missing"
429# This will work as long as MISSING is not called from configure, because
430# unfortunately $(top_srcdir) has no meaning in configure.
431# However there are other variables, like CC, which are often used in
432# configure, and could therefore not use this "fixed" $ac_aux_dir.
433#
434# Another solution, used here, is to always expand $ac_aux_dir to an
435# absolute PATH.  The drawback is that using absolute paths prevent a
436# configured tree to be moved without reconfiguration.
437
438AC_DEFUN([AM_AUX_DIR_EXPAND],
439[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
440# Expand $ac_aux_dir to an absolute path.
441am_aux_dir=`cd "$ac_aux_dir" && pwd`
442])
443
444# AM_CONDITIONAL                                            -*- Autoconf -*-
445
446# Copyright (C) 1997-2017 Free Software Foundation, Inc.
447#
448# This file is free software; the Free Software Foundation
449# gives unlimited permission to copy and/or distribute it,
450# with or without modifications, as long as this notice is preserved.
451
452# AM_CONDITIONAL(NAME, SHELL-CONDITION)
453# -------------------------------------
454# Define a conditional.
455AC_DEFUN([AM_CONDITIONAL],
456[AC_PREREQ([2.52])dnl
457 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
458       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
459AC_SUBST([$1_TRUE])dnl
460AC_SUBST([$1_FALSE])dnl
461_AM_SUBST_NOTMAKE([$1_TRUE])dnl
462_AM_SUBST_NOTMAKE([$1_FALSE])dnl
463m4_define([_AM_COND_VALUE_$1], [$2])dnl
464if $2; then
465  $1_TRUE=
466  $1_FALSE='#'
467else
468  $1_TRUE='#'
469  $1_FALSE=
470fi
471AC_CONFIG_COMMANDS_PRE(
472[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
473  AC_MSG_ERROR([[conditional "$1" was never defined.
474Usually this means the macro was only invoked conditionally.]])
475fi])])
476
477# Copyright (C) 1999-2017 Free Software Foundation, Inc.
478#
479# This file is free software; the Free Software Foundation
480# gives unlimited permission to copy and/or distribute it,
481# with or without modifications, as long as this notice is preserved.
482
483
484# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
485# written in clear, in which case automake, when reading aclocal.m4,
486# will think it sees a *use*, and therefore will trigger all it's
487# C support machinery.  Also note that it means that autoscan, seeing
488# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
489
490
491# _AM_DEPENDENCIES(NAME)
492# ----------------------
493# See how the compiler implements dependency checking.
494# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
495# We try a few techniques and use that to set a single cache variable.
496#
497# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
498# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
499# dependency, and given that the user is not expected to run this macro,
500# just rely on AC_PROG_CC.
501AC_DEFUN([_AM_DEPENDENCIES],
502[AC_REQUIRE([AM_SET_DEPDIR])dnl
503AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
504AC_REQUIRE([AM_MAKE_INCLUDE])dnl
505AC_REQUIRE([AM_DEP_TRACK])dnl
506
507m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
508      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
509      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
510      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
511      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
512      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
513                    [depcc="$$1"   am_compiler_list=])
514
515AC_CACHE_CHECK([dependency style of $depcc],
516               [am_cv_$1_dependencies_compiler_type],
517[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
518  # We make a subdir and do the tests there.  Otherwise we can end up
519  # making bogus files that we don't know about and never remove.  For
520  # instance it was reported that on HP-UX the gcc test will end up
521  # making a dummy file named 'D' -- because '-MD' means "put the output
522  # in D".
523  rm -rf conftest.dir
524  mkdir conftest.dir
525  # Copy depcomp to subdir because otherwise we won't find it if we're
526  # using a relative directory.
527  cp "$am_depcomp" conftest.dir
528  cd conftest.dir
529  # We will build objects and dependencies in a subdirectory because
530  # it helps to detect inapplicable dependency modes.  For instance
531  # both Tru64's cc and ICC support -MD to output dependencies as a
532  # side effect of compilation, but ICC will put the dependencies in
533  # the current directory while Tru64 will put them in the object
534  # directory.
535  mkdir sub
536
537  am_cv_$1_dependencies_compiler_type=none
538  if test "$am_compiler_list" = ""; then
539     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
540  fi
541  am__universal=false
542  m4_case([$1], [CC],
543    [case " $depcc " in #(
544     *\ -arch\ *\ -arch\ *) am__universal=true ;;
545     esac],
546    [CXX],
547    [case " $depcc " in #(
548     *\ -arch\ *\ -arch\ *) am__universal=true ;;
549     esac])
550
551  for depmode in $am_compiler_list; do
552    # Setup a source with many dependencies, because some compilers
553    # like to wrap large dependency lists on column 80 (with \), and
554    # we should not choose a depcomp mode which is confused by this.
555    #
556    # We need to recreate these files for each test, as the compiler may
557    # overwrite some of them when testing with obscure command lines.
558    # This happens at least with the AIX C compiler.
559    : > sub/conftest.c
560    for i in 1 2 3 4 5 6; do
561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
562      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
563      # Solaris 10 /bin/sh.
564      echo '/* dummy */' > sub/conftst$i.h
565    done
566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
567
568    # We check with '-c' and '-o' for the sake of the "dashmstdout"
569    # mode.  It turns out that the SunPro C++ compiler does not properly
570    # handle '-M -o', and we need to detect this.  Also, some Intel
571    # versions had trouble with output in subdirs.
572    am__obj=sub/conftest.${OBJEXT-o}
573    am__minus_obj="-o $am__obj"
574    case $depmode in
575    gcc)
576      # This depmode causes a compiler race in universal mode.
577      test "$am__universal" = false || continue
578      ;;
579    nosideeffect)
580      # After this tag, mechanisms are not by side-effect, so they'll
581      # only be used when explicitly requested.
582      if test "x$enable_dependency_tracking" = xyes; then
583	continue
584      else
585	break
586      fi
587      ;;
588    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
589      # This compiler won't grok '-c -o', but also, the minuso test has
590      # not run yet.  These depmodes are late enough in the game, and
591      # so weak that their functioning should not be impacted.
592      am__obj=conftest.${OBJEXT-o}
593      am__minus_obj=
594      ;;
595    none) break ;;
596    esac
597    if depmode=$depmode \
598       source=sub/conftest.c object=$am__obj \
599       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
600       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
601         >/dev/null 2>conftest.err &&
602       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
603       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
604       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
605       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
606      # icc doesn't choke on unknown options, it will just issue warnings
607      # or remarks (even with -Werror).  So we grep stderr for any message
608      # that says an option was ignored or not supported.
609      # When given -MP, icc 7.0 and 7.1 complain thusly:
610      #   icc: Command line warning: ignoring option '-M'; no argument required
611      # The diagnosis changed in icc 8.0:
612      #   icc: Command line remark: option '-MP' not supported
613      if (grep 'ignoring option' conftest.err ||
614          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
615        am_cv_$1_dependencies_compiler_type=$depmode
616        break
617      fi
618    fi
619  done
620
621  cd ..
622  rm -rf conftest.dir
623else
624  am_cv_$1_dependencies_compiler_type=none
625fi
626])
627AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
628AM_CONDITIONAL([am__fastdep$1], [
629  test "x$enable_dependency_tracking" != xno \
630  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
631])
632
633
634# AM_SET_DEPDIR
635# -------------
636# Choose a directory name for dependency files.
637# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
638AC_DEFUN([AM_SET_DEPDIR],
639[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
640AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
641])
642
643
644# AM_DEP_TRACK
645# ------------
646AC_DEFUN([AM_DEP_TRACK],
647[AC_ARG_ENABLE([dependency-tracking], [dnl
648AS_HELP_STRING(
649  [--enable-dependency-tracking],
650  [do not reject slow dependency extractors])
651AS_HELP_STRING(
652  [--disable-dependency-tracking],
653  [speeds up one-time build])])
654if test "x$enable_dependency_tracking" != xno; then
655  am_depcomp="$ac_aux_dir/depcomp"
656  AMDEPBACKSLASH='\'
657  am__nodep='_no'
658fi
659AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
660AC_SUBST([AMDEPBACKSLASH])dnl
661_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
662AC_SUBST([am__nodep])dnl
663_AM_SUBST_NOTMAKE([am__nodep])dnl
664])
665
666# Generate code to set up dependency tracking.              -*- Autoconf -*-
667
668# Copyright (C) 1999-2017 Free Software Foundation, Inc.
669#
670# This file is free software; the Free Software Foundation
671# gives unlimited permission to copy and/or distribute it,
672# with or without modifications, as long as this notice is preserved.
673
674
675# _AM_OUTPUT_DEPENDENCY_COMMANDS
676# ------------------------------
677AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
678[{
679  # Older Autoconf quotes --file arguments for eval, but not when files
680  # are listed without --file.  Let's play safe and only enable the eval
681  # if we detect the quoting.
682  case $CONFIG_FILES in
683  *\'*) eval set x "$CONFIG_FILES" ;;
684  *)   set x $CONFIG_FILES ;;
685  esac
686  shift
687  for mf
688  do
689    # Strip MF so we end up with the name of the file.
690    mf=`echo "$mf" | sed -e 's/:.*$//'`
691    # Check whether this is an Automake generated Makefile or not.
692    # We used to match only the files named 'Makefile.in', but
693    # some people rename them; so instead we look at the file content.
694    # Grep'ing the first line is not enough: some people post-process
695    # each Makefile.in and add a new line on top of each file to say so.
696    # Grep'ing the whole file is not good either: AIX grep has a line
697    # limit of 2048, but all sed's we know have understand at least 4000.
698    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
699      dirpart=`AS_DIRNAME("$mf")`
700    else
701      continue
702    fi
703    # Extract the definition of DEPDIR, am__include, and am__quote
704    # from the Makefile without running 'make'.
705    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
706    test -z "$DEPDIR" && continue
707    am__include=`sed -n 's/^am__include = //p' < "$mf"`
708    test -z "$am__include" && continue
709    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
710    # Find all dependency output files, they are included files with
711    # $(DEPDIR) in their names.  We invoke sed twice because it is the
712    # simplest approach to changing $(DEPDIR) to its actual value in the
713    # expansion.
714    for file in `sed -n "
715      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
716	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
717      # Make sure the directory exists.
718      test -f "$dirpart/$file" && continue
719      fdir=`AS_DIRNAME(["$file"])`
720      AS_MKDIR_P([$dirpart/$fdir])
721      # echo "creating $dirpart/$file"
722      echo '# dummy' > "$dirpart/$file"
723    done
724  done
725}
726])# _AM_OUTPUT_DEPENDENCY_COMMANDS
727
728
729# AM_OUTPUT_DEPENDENCY_COMMANDS
730# -----------------------------
731# This macro should only be invoked once -- use via AC_REQUIRE.
732#
733# This code is only required when automatic dependency tracking
734# is enabled.  FIXME.  This creates each '.P' file that we will
735# need in order to bootstrap the dependency handling code.
736AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
737[AC_CONFIG_COMMANDS([depfiles],
738     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
739     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
740])
741
742# Do all the work for Automake.                             -*- Autoconf -*-
743
744# Copyright (C) 1996-2017 Free Software Foundation, Inc.
745#
746# This file is free software; the Free Software Foundation
747# gives unlimited permission to copy and/or distribute it,
748# with or without modifications, as long as this notice is preserved.
749
750# This macro actually does too much.  Some checks are only needed if
751# your package does certain things.  But this isn't really a big deal.
752
753dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
754m4_define([AC_PROG_CC],
755m4_defn([AC_PROG_CC])
756[_AM_PROG_CC_C_O
757])
758
759# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
760# AM_INIT_AUTOMAKE([OPTIONS])
761# -----------------------------------------------
762# The call with PACKAGE and VERSION arguments is the old style
763# call (pre autoconf-2.50), which is being phased out.  PACKAGE
764# and VERSION should now be passed to AC_INIT and removed from
765# the call to AM_INIT_AUTOMAKE.
766# We support both call styles for the transition.  After
767# the next Automake release, Autoconf can make the AC_INIT
768# arguments mandatory, and then we can depend on a new Autoconf
769# release and drop the old call support.
770AC_DEFUN([AM_INIT_AUTOMAKE],
771[AC_PREREQ([2.65])dnl
772dnl Autoconf wants to disallow AM_ names.  We explicitly allow
773dnl the ones we care about.
774m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
775AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
776AC_REQUIRE([AC_PROG_INSTALL])dnl
777if test "`cd $srcdir && pwd`" != "`pwd`"; then
778  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
779  # is not polluted with repeated "-I."
780  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
781  # test to see if srcdir already configured
782  if test -f $srcdir/config.status; then
783    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
784  fi
785fi
786
787# test whether we have cygpath
788if test -z "$CYGPATH_W"; then
789  if (cygpath --version) >/dev/null 2>/dev/null; then
790    CYGPATH_W='cygpath -w'
791  else
792    CYGPATH_W=echo
793  fi
794fi
795AC_SUBST([CYGPATH_W])
796
797# Define the identity of the package.
798dnl Distinguish between old-style and new-style calls.
799m4_ifval([$2],
800[AC_DIAGNOSE([obsolete],
801             [$0: two- and three-arguments forms are deprecated.])
802m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
803 AC_SUBST([PACKAGE], [$1])dnl
804 AC_SUBST([VERSION], [$2])],
805[_AM_SET_OPTIONS([$1])dnl
806dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
807m4_if(
808  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
809  [ok:ok],,
810  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
811 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
812 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
813
814_AM_IF_OPTION([no-define],,
815[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
816 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
817
818# Some tools Automake needs.
819AC_REQUIRE([AM_SANITY_CHECK])dnl
820AC_REQUIRE([AC_ARG_PROGRAM])dnl
821AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
822AM_MISSING_PROG([AUTOCONF], [autoconf])
823AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
824AM_MISSING_PROG([AUTOHEADER], [autoheader])
825AM_MISSING_PROG([MAKEINFO], [makeinfo])
826AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
827AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
828AC_REQUIRE([AC_PROG_MKDIR_P])dnl
829# For better backward compatibility.  To be removed once Automake 1.9.x
830# dies out for good.  For more background, see:
831# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
832# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
833AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
834# We need awk for the "check" target (and possibly the TAP driver).  The
835# system "awk" is bad on some platforms.
836AC_REQUIRE([AC_PROG_AWK])dnl
837AC_REQUIRE([AC_PROG_MAKE_SET])dnl
838AC_REQUIRE([AM_SET_LEADING_DOT])dnl
839_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
840	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
841			     [_AM_PROG_TAR([v7])])])
842_AM_IF_OPTION([no-dependencies],,
843[AC_PROVIDE_IFELSE([AC_PROG_CC],
844		  [_AM_DEPENDENCIES([CC])],
845		  [m4_define([AC_PROG_CC],
846			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
847AC_PROVIDE_IFELSE([AC_PROG_CXX],
848		  [_AM_DEPENDENCIES([CXX])],
849		  [m4_define([AC_PROG_CXX],
850			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
851AC_PROVIDE_IFELSE([AC_PROG_OBJC],
852		  [_AM_DEPENDENCIES([OBJC])],
853		  [m4_define([AC_PROG_OBJC],
854			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
855AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
856		  [_AM_DEPENDENCIES([OBJCXX])],
857		  [m4_define([AC_PROG_OBJCXX],
858			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
859])
860AC_REQUIRE([AM_SILENT_RULES])dnl
861dnl The testsuite driver may need to know about EXEEXT, so add the
862dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
863dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
864AC_CONFIG_COMMANDS_PRE(dnl
865[m4_provide_if([_AM_COMPILER_EXEEXT],
866  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
867
868# POSIX will say in a future version that running "rm -f" with no argument
869# is OK; and we want to be able to make that assumption in our Makefile
870# recipes.  So use an aggressive probe to check that the usage we want is
871# actually supported "in the wild" to an acceptable degree.
872# See automake bug#10828.
873# To make any issue more visible, cause the running configure to be aborted
874# by default if the 'rm' program in use doesn't match our expectations; the
875# user can still override this though.
876if rm -f && rm -fr && rm -rf; then : OK; else
877  cat >&2 <<'END'
878Oops!
879
880Your 'rm' program seems unable to run without file operands specified
881on the command line, even when the '-f' option is present.  This is contrary
882to the behaviour of most rm programs out there, and not conforming with
883the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
884
885Please tell bug-automake@gnu.org about your system, including the value
886of your $PATH and any error possibly output before this message.  This
887can help us improve future automake versions.
888
889END
890  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
891    echo 'Configuration will proceed anyway, since you have set the' >&2
892    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
893    echo >&2
894  else
895    cat >&2 <<'END'
896Aborting the configuration process, to ensure you take notice of the issue.
897
898You can download and install GNU coreutils to get an 'rm' implementation
899that behaves properly: <http://www.gnu.org/software/coreutils/>.
900
901If you want to complete the configuration process using your problematic
902'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
903to "yes", and re-run configure.
904
905END
906    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
907  fi
908fi
909dnl The trailing newline in this macro's definition is deliberate, for
910dnl backward compatibility and to allow trailing 'dnl'-style comments
911dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
912])
913
914dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
915dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
916dnl mangled by Autoconf and run in a shell conditional statement.
917m4_define([_AC_COMPILER_EXEEXT],
918m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
919
920# When config.status generates a header, we must update the stamp-h file.
921# This file resides in the same directory as the config header
922# that is generated.  The stamp files are numbered to have different names.
923
924# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
925# loop where config.status creates the headers, so we can generate
926# our stamp files there.
927AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
928[# Compute $1's index in $config_headers.
929_am_arg=$1
930_am_stamp_count=1
931for _am_header in $config_headers :; do
932  case $_am_header in
933    $_am_arg | $_am_arg:* )
934      break ;;
935    * )
936      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
937  esac
938done
939echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
940
941# Copyright (C) 2001-2017 Free Software Foundation, Inc.
942#
943# This file is free software; the Free Software Foundation
944# gives unlimited permission to copy and/or distribute it,
945# with or without modifications, as long as this notice is preserved.
946
947# AM_PROG_INSTALL_SH
948# ------------------
949# Define $install_sh.
950AC_DEFUN([AM_PROG_INSTALL_SH],
951[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
952if test x"${install_sh+set}" != xset; then
953  case $am_aux_dir in
954  *\ * | *\	*)
955    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
956  *)
957    install_sh="\${SHELL} $am_aux_dir/install-sh"
958  esac
959fi
960AC_SUBST([install_sh])])
961
962# Copyright (C) 2003-2017 Free Software Foundation, Inc.
963#
964# This file is free software; the Free Software Foundation
965# gives unlimited permission to copy and/or distribute it,
966# with or without modifications, as long as this notice is preserved.
967
968# Check whether the underlying file-system supports filenames
969# with a leading dot.  For instance MS-DOS doesn't.
970AC_DEFUN([AM_SET_LEADING_DOT],
971[rm -rf .tst 2>/dev/null
972mkdir .tst 2>/dev/null
973if test -d .tst; then
974  am__leading_dot=.
975else
976  am__leading_dot=_
977fi
978rmdir .tst 2>/dev/null
979AC_SUBST([am__leading_dot])])
980
981# Check to see how 'make' treats includes.	            -*- Autoconf -*-
982
983# Copyright (C) 2001-2017 Free Software Foundation, Inc.
984#
985# This file is free software; the Free Software Foundation
986# gives unlimited permission to copy and/or distribute it,
987# with or without modifications, as long as this notice is preserved.
988
989# AM_MAKE_INCLUDE()
990# -----------------
991# Check to see how make treats includes.
992AC_DEFUN([AM_MAKE_INCLUDE],
993[am_make=${MAKE-make}
994cat > confinc << 'END'
995am__doit:
996	@echo this is the am__doit target
997.PHONY: am__doit
998END
999# If we don't find an include directive, just comment out the code.
1000AC_MSG_CHECKING([for style of include used by $am_make])
1001am__include="#"
1002am__quote=
1003_am_result=none
1004# First try GNU make style include.
1005echo "include confinc" > confmf
1006# Ignore all kinds of additional output from 'make'.
1007case `$am_make -s -f confmf 2> /dev/null` in #(
1008*the\ am__doit\ target*)
1009  am__include=include
1010  am__quote=
1011  _am_result=GNU
1012  ;;
1013esac
1014# Now try BSD make style include.
1015if test "$am__include" = "#"; then
1016   echo '.include "confinc"' > confmf
1017   case `$am_make -s -f confmf 2> /dev/null` in #(
1018   *the\ am__doit\ target*)
1019     am__include=.include
1020     am__quote="\""
1021     _am_result=BSD
1022     ;;
1023   esac
1024fi
1025AC_SUBST([am__include])
1026AC_SUBST([am__quote])
1027AC_MSG_RESULT([$_am_result])
1028rm -f confinc confmf
1029])
1030
1031# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1032
1033# Copyright (C) 1997-2017 Free Software Foundation, Inc.
1034#
1035# This file is free software; the Free Software Foundation
1036# gives unlimited permission to copy and/or distribute it,
1037# with or without modifications, as long as this notice is preserved.
1038
1039# AM_MISSING_PROG(NAME, PROGRAM)
1040# ------------------------------
1041AC_DEFUN([AM_MISSING_PROG],
1042[AC_REQUIRE([AM_MISSING_HAS_RUN])
1043$1=${$1-"${am_missing_run}$2"}
1044AC_SUBST($1)])
1045
1046# AM_MISSING_HAS_RUN
1047# ------------------
1048# Define MISSING if not defined so far and test if it is modern enough.
1049# If it is, set am_missing_run to use it, otherwise, to nothing.
1050AC_DEFUN([AM_MISSING_HAS_RUN],
1051[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1052AC_REQUIRE_AUX_FILE([missing])dnl
1053if test x"${MISSING+set}" != xset; then
1054  case $am_aux_dir in
1055  *\ * | *\	*)
1056    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1057  *)
1058    MISSING="\${SHELL} $am_aux_dir/missing" ;;
1059  esac
1060fi
1061# Use eval to expand $SHELL
1062if eval "$MISSING --is-lightweight"; then
1063  am_missing_run="$MISSING "
1064else
1065  am_missing_run=
1066  AC_MSG_WARN(['missing' script is too old or missing])
1067fi
1068])
1069
1070# Helper functions for option handling.                     -*- Autoconf -*-
1071
1072# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1073#
1074# This file is free software; the Free Software Foundation
1075# gives unlimited permission to copy and/or distribute it,
1076# with or without modifications, as long as this notice is preserved.
1077
1078# _AM_MANGLE_OPTION(NAME)
1079# -----------------------
1080AC_DEFUN([_AM_MANGLE_OPTION],
1081[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1082
1083# _AM_SET_OPTION(NAME)
1084# --------------------
1085# Set option NAME.  Presently that only means defining a flag for this option.
1086AC_DEFUN([_AM_SET_OPTION],
1087[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1088
1089# _AM_SET_OPTIONS(OPTIONS)
1090# ------------------------
1091# OPTIONS is a space-separated list of Automake options.
1092AC_DEFUN([_AM_SET_OPTIONS],
1093[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1094
1095# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1096# -------------------------------------------
1097# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1098AC_DEFUN([_AM_IF_OPTION],
1099[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1100
1101# Copyright (C) 1999-2017 Free Software Foundation, Inc.
1102#
1103# This file is free software; the Free Software Foundation
1104# gives unlimited permission to copy and/or distribute it,
1105# with or without modifications, as long as this notice is preserved.
1106
1107# _AM_PROG_CC_C_O
1108# ---------------
1109# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
1110# to automatically call this.
1111AC_DEFUN([_AM_PROG_CC_C_O],
1112[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1113AC_REQUIRE_AUX_FILE([compile])dnl
1114AC_LANG_PUSH([C])dnl
1115AC_CACHE_CHECK(
1116  [whether $CC understands -c and -o together],
1117  [am_cv_prog_cc_c_o],
1118  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1119  # Make sure it works both with $CC and with simple cc.
1120  # Following AC_PROG_CC_C_O, we do the test twice because some
1121  # compilers refuse to overwrite an existing .o file with -o,
1122  # though they will create one.
1123  am_cv_prog_cc_c_o=yes
1124  for am_i in 1 2; do
1125    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1126         && test -f conftest2.$ac_objext; then
1127      : OK
1128    else
1129      am_cv_prog_cc_c_o=no
1130      break
1131    fi
1132  done
1133  rm -f core conftest*
1134  unset am_i])
1135if test "$am_cv_prog_cc_c_o" != yes; then
1136   # Losing compiler, so override with the script.
1137   # FIXME: It is wrong to rewrite CC.
1138   # But if we don't then we get into trouble of one sort or another.
1139   # A longer-term fix would be to have automake use am__CC in this case,
1140   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1141   CC="$am_aux_dir/compile $CC"
1142fi
1143AC_LANG_POP([C])])
1144
1145# For backward compatibility.
1146AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1147
1148# Copyright (C) 1999-2017 Free Software Foundation, Inc.
1149#
1150# This file is free software; the Free Software Foundation
1151# gives unlimited permission to copy and/or distribute it,
1152# with or without modifications, as long as this notice is preserved.
1153
1154
1155# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1156# ---------------------------------------------------------------------------
1157# Adds support for distributing Python modules and packages.  To
1158# install modules, copy them to $(pythondir), using the python_PYTHON
1159# automake variable.  To install a package with the same name as the
1160# automake package, install to $(pkgpythondir), or use the
1161# pkgpython_PYTHON automake variable.
1162#
1163# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
1164# locations to install python extension modules (shared libraries).
1165# Another macro is required to find the appropriate flags to compile
1166# extension modules.
1167#
1168# If your package is configured with a different prefix to python,
1169# users will have to add the install directory to the PYTHONPATH
1170# environment variable, or create a .pth file (see the python
1171# documentation for details).
1172#
1173# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1174# cause an error if the version of python installed on the system
1175# doesn't meet the requirement.  MINIMUM-VERSION should consist of
1176# numbers and dots only.
1177AC_DEFUN([AM_PATH_PYTHON],
1178 [
1179  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
1180  dnl supported. (2.0 was released on October 16, 2000).
1181  dnl FIXME: Remove the need to hard-code Python versions here.
1182  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1183[python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
1184 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
1185
1186  AC_ARG_VAR([PYTHON], [the Python interpreter])
1187
1188  m4_if([$1],[],[
1189    dnl No version check is needed.
1190    # Find any Python interpreter.
1191    if test -z "$PYTHON"; then
1192      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
1193    fi
1194    am_display_PYTHON=python
1195  ], [
1196    dnl A version check is needed.
1197    if test -n "$PYTHON"; then
1198      # If the user set $PYTHON, use it and don't search something else.
1199      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
1200      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
1201			      [AC_MSG_RESULT([yes])],
1202			      [AC_MSG_RESULT([no])
1203			       AC_MSG_ERROR([Python interpreter is too old])])
1204      am_display_PYTHON=$PYTHON
1205    else
1206      # Otherwise, try each interpreter until we find one that satisfies
1207      # VERSION.
1208      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
1209	[am_cv_pathless_PYTHON],[
1210	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
1211	  test "$am_cv_pathless_PYTHON" = none && break
1212	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
1213	done])
1214      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1215      if test "$am_cv_pathless_PYTHON" = none; then
1216	PYTHON=:
1217      else
1218        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
1219      fi
1220      am_display_PYTHON=$am_cv_pathless_PYTHON
1221    fi
1222  ])
1223
1224  if test "$PYTHON" = :; then
1225  dnl Run any user-specified action, or abort.
1226    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
1227  else
1228
1229  dnl Query Python for its version number.  Getting [:3] seems to be
1230  dnl the best way to do this; it's what "site.py" does in the standard
1231  dnl library.
1232
1233  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1234    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
1235  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1236
1237  dnl Use the values of $prefix and $exec_prefix for the corresponding
1238  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
1239  dnl distinct variables so they can be overridden if need be.  However,
1240  dnl general consensus is that you shouldn't need this ability.
1241
1242  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
1243  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
1244
1245  dnl At times (like when building shared libraries) you may want
1246  dnl to know which OS platform Python thinks this is.
1247
1248  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1249    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1250  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1251
1252  # Just factor out some code duplication.
1253  am_python_setup_sysconfig="\
1254import sys
1255# Prefer sysconfig over distutils.sysconfig, for better compatibility
1256# with python 3.x.  See automake bug#10227.
1257try:
1258    import sysconfig
1259except ImportError:
1260    can_use_sysconfig = 0
1261else:
1262    can_use_sysconfig = 1
1263# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1264# <https://github.com/pypa/virtualenv/issues/118>
1265try:
1266    from platform import python_implementation
1267    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
1268        can_use_sysconfig = 0
1269except ImportError:
1270    pass"
1271
1272  dnl Set up 4 directories:
1273
1274  dnl pythondir -- where to install python scripts.  This is the
1275  dnl   site-packages directory, not the python standard library
1276  dnl   directory like in previous automake betas.  This behavior
1277  dnl   is more consistent with lispdir.m4 for example.
1278  dnl Query distutils for this directory.
1279  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1280    [am_cv_python_pythondir],
1281    [if test "x$prefix" = xNONE
1282     then
1283       am_py_prefix=$ac_default_prefix
1284     else
1285       am_py_prefix=$prefix
1286     fi
1287     am_cv_python_pythondir=`$PYTHON -c "
1288$am_python_setup_sysconfig
1289if can_use_sysconfig:
1290    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1291else:
1292    from distutils import sysconfig
1293    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1294sys.stdout.write(sitedir)"`
1295     case $am_cv_python_pythondir in
1296     $am_py_prefix*)
1297       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
1298       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
1299       ;;
1300     *)
1301       case $am_py_prefix in
1302         /usr|/System*) ;;
1303         *)
1304	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
1305	  ;;
1306       esac
1307       ;;
1308     esac
1309    ])
1310  AC_SUBST([pythondir], [$am_cv_python_pythondir])
1311
1312  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
1313  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
1314  dnl   more consistent with the rest of automake.
1315
1316  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1317
1318  dnl pyexecdir -- directory for installing python extension modules
1319  dnl   (shared libraries)
1320  dnl Query distutils for this directory.
1321  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1322    [am_cv_python_pyexecdir],
1323    [if test "x$exec_prefix" = xNONE
1324     then
1325       am_py_exec_prefix=$am_py_prefix
1326     else
1327       am_py_exec_prefix=$exec_prefix
1328     fi
1329     am_cv_python_pyexecdir=`$PYTHON -c "
1330$am_python_setup_sysconfig
1331if can_use_sysconfig:
1332    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
1333else:
1334    from distutils import sysconfig
1335    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
1336sys.stdout.write(sitedir)"`
1337     case $am_cv_python_pyexecdir in
1338     $am_py_exec_prefix*)
1339       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
1340       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
1341       ;;
1342     *)
1343       case $am_py_exec_prefix in
1344         /usr|/System*) ;;
1345         *)
1346	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
1347	   ;;
1348       esac
1349       ;;
1350     esac
1351    ])
1352  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1353
1354  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1355
1356  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1357
1358  dnl Run any user-specified action.
1359  $2
1360  fi
1361
1362])
1363
1364
1365# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1366# ---------------------------------------------------------------------------
1367# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1368# Run ACTION-IF-FALSE otherwise.
1369# This test uses sys.hexversion instead of the string equivalent (first
1370# word of sys.version), in order to cope with versions such as 2.2c1.
1371# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1372AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1373 [prog="import sys
1374# split strings by '.' and convert to numeric.  Append some zeros
1375# because we need at least 4 digits for the hex conversion.
1376# map returns an iterator in Python 3.0 and a list in 2.x
1377minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1378minverhex = 0
1379# xrange is not present in Python 3.0 and range returns an iterator
1380for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1381sys.exit(sys.hexversion < minverhex)"
1382  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1383
1384# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1385#
1386# This file is free software; the Free Software Foundation
1387# gives unlimited permission to copy and/or distribute it,
1388# with or without modifications, as long as this notice is preserved.
1389
1390# AM_RUN_LOG(COMMAND)
1391# -------------------
1392# Run COMMAND, save the exit status in ac_status, and log it.
1393# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1394AC_DEFUN([AM_RUN_LOG],
1395[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1396   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1397   ac_status=$?
1398   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1399   (exit $ac_status); }])
1400
1401# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1402
1403# Copyright (C) 1996-2017 Free Software Foundation, Inc.
1404#
1405# This file is free software; the Free Software Foundation
1406# gives unlimited permission to copy and/or distribute it,
1407# with or without modifications, as long as this notice is preserved.
1408
1409# AM_SANITY_CHECK
1410# ---------------
1411AC_DEFUN([AM_SANITY_CHECK],
1412[AC_MSG_CHECKING([whether build environment is sane])
1413# Reject unsafe characters in $srcdir or the absolute working directory
1414# name.  Accept space and tab only in the latter.
1415am_lf='
1416'
1417case `pwd` in
1418  *[[\\\"\#\$\&\'\`$am_lf]]*)
1419    AC_MSG_ERROR([unsafe absolute working directory name]);;
1420esac
1421case $srcdir in
1422  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
1423    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1424esac
1425
1426# Do 'set' in a subshell so we don't clobber the current shell's
1427# arguments.  Must try -L first in case configure is actually a
1428# symlink; some systems play weird games with the mod time of symlinks
1429# (eg FreeBSD returns the mod time of the symlink's containing
1430# directory).
1431if (
1432   am_has_slept=no
1433   for am_try in 1 2; do
1434     echo "timestamp, slept: $am_has_slept" > conftest.file
1435     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1436     if test "$[*]" = "X"; then
1437	# -L didn't work.
1438	set X `ls -t "$srcdir/configure" conftest.file`
1439     fi
1440     if test "$[*]" != "X $srcdir/configure conftest.file" \
1441	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1442
1443	# If neither matched, then we have a broken ls.  This can happen
1444	# if, for instance, CONFIG_SHELL is bash and it inherits a
1445	# broken ls alias from the environment.  This has actually
1446	# happened.  Such a system could not be considered "sane".
1447	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1448  alias in your environment])
1449     fi
1450     if test "$[2]" = conftest.file || test $am_try -eq 2; then
1451       break
1452     fi
1453     # Just in case.
1454     sleep 1
1455     am_has_slept=yes
1456   done
1457   test "$[2]" = conftest.file
1458   )
1459then
1460   # Ok.
1461   :
1462else
1463   AC_MSG_ERROR([newly created file is older than distributed files!
1464Check your system clock])
1465fi
1466AC_MSG_RESULT([yes])
1467# If we didn't sleep, we still need to ensure time stamps of config.status and
1468# generated files are strictly newer.
1469am_sleep_pid=
1470if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1471  ( sleep 1 ) &
1472  am_sleep_pid=$!
1473fi
1474AC_CONFIG_COMMANDS_PRE(
1475  [AC_MSG_CHECKING([that generated files are newer than configure])
1476   if test -n "$am_sleep_pid"; then
1477     # Hide warnings about reused PIDs.
1478     wait $am_sleep_pid 2>/dev/null
1479   fi
1480   AC_MSG_RESULT([done])])
1481rm -f conftest.file
1482])
1483
1484# Copyright (C) 2009-2017 Free Software Foundation, Inc.
1485#
1486# This file is free software; the Free Software Foundation
1487# gives unlimited permission to copy and/or distribute it,
1488# with or without modifications, as long as this notice is preserved.
1489
1490# AM_SILENT_RULES([DEFAULT])
1491# --------------------------
1492# Enable less verbose build rules; with the default set to DEFAULT
1493# ("yes" being less verbose, "no" or empty being verbose).
1494AC_DEFUN([AM_SILENT_RULES],
1495[AC_ARG_ENABLE([silent-rules], [dnl
1496AS_HELP_STRING(
1497  [--enable-silent-rules],
1498  [less verbose build output (undo: "make V=1")])
1499AS_HELP_STRING(
1500  [--disable-silent-rules],
1501  [verbose build output (undo: "make V=0")])dnl
1502])
1503case $enable_silent_rules in @%:@ (((
1504  yes) AM_DEFAULT_VERBOSITY=0;;
1505   no) AM_DEFAULT_VERBOSITY=1;;
1506    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1507esac
1508dnl
1509dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1510dnl do not support nested variable expansions.
1511dnl See automake bug#9928 and bug#10237.
1512am_make=${MAKE-make}
1513AC_CACHE_CHECK([whether $am_make supports nested variables],
1514   [am_cv_make_support_nested_variables],
1515   [if AS_ECHO([['TRUE=$(BAR$(V))
1516BAR0=false
1517BAR1=true
1518V=1
1519am__doit:
1520	@$(TRUE)
1521.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1522  am_cv_make_support_nested_variables=yes
1523else
1524  am_cv_make_support_nested_variables=no
1525fi])
1526if test $am_cv_make_support_nested_variables = yes; then
1527  dnl Using '$V' instead of '$(V)' breaks IRIX make.
1528  AM_V='$(V)'
1529  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1530else
1531  AM_V=$AM_DEFAULT_VERBOSITY
1532  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1533fi
1534AC_SUBST([AM_V])dnl
1535AM_SUBST_NOTMAKE([AM_V])dnl
1536AC_SUBST([AM_DEFAULT_V])dnl
1537AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1538AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1539AM_BACKSLASH='\'
1540AC_SUBST([AM_BACKSLASH])dnl
1541_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1542])
1543
1544# Copyright (C) 2001-2017 Free Software Foundation, Inc.
1545#
1546# This file is free software; the Free Software Foundation
1547# gives unlimited permission to copy and/or distribute it,
1548# with or without modifications, as long as this notice is preserved.
1549
1550# AM_PROG_INSTALL_STRIP
1551# ---------------------
1552# One issue with vendor 'install' (even GNU) is that you can't
1553# specify the program used to strip binaries.  This is especially
1554# annoying in cross-compiling environments, where the build's strip
1555# is unlikely to handle the host's binaries.
1556# Fortunately install-sh will honor a STRIPPROG variable, so we
1557# always use install-sh in "make install-strip", and initialize
1558# STRIPPROG with the value of the STRIP variable (set by the user).
1559AC_DEFUN([AM_PROG_INSTALL_STRIP],
1560[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1561# Installed binaries are usually stripped using 'strip' when the user
1562# run "make install-strip".  However 'strip' might not be the right
1563# tool to use in cross-compilation environments, therefore Automake
1564# will honor the 'STRIP' environment variable to overrule this program.
1565dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1566if test "$cross_compiling" != no; then
1567  AC_CHECK_TOOL([STRIP], [strip], :)
1568fi
1569INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1570AC_SUBST([INSTALL_STRIP_PROGRAM])])
1571
1572# Copyright (C) 2006-2017 Free Software Foundation, Inc.
1573#
1574# This file is free software; the Free Software Foundation
1575# gives unlimited permission to copy and/or distribute it,
1576# with or without modifications, as long as this notice is preserved.
1577
1578# _AM_SUBST_NOTMAKE(VARIABLE)
1579# ---------------------------
1580# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1581# This macro is traced by Automake.
1582AC_DEFUN([_AM_SUBST_NOTMAKE])
1583
1584# AM_SUBST_NOTMAKE(VARIABLE)
1585# --------------------------
1586# Public sister of _AM_SUBST_NOTMAKE.
1587AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1588
1589# Check how to create a tarball.                            -*- Autoconf -*-
1590
1591# Copyright (C) 2004-2017 Free Software Foundation, Inc.
1592#
1593# This file is free software; the Free Software Foundation
1594# gives unlimited permission to copy and/or distribute it,
1595# with or without modifications, as long as this notice is preserved.
1596
1597# _AM_PROG_TAR(FORMAT)
1598# --------------------
1599# Check how to create a tarball in format FORMAT.
1600# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1601#
1602# Substitute a variable $(am__tar) that is a command
1603# writing to stdout a FORMAT-tarball containing the directory
1604# $tardir.
1605#     tardir=directory && $(am__tar) > result.tar
1606#
1607# Substitute a variable $(am__untar) that extract such
1608# a tarball read from stdin.
1609#     $(am__untar) < result.tar
1610#
1611AC_DEFUN([_AM_PROG_TAR],
1612[# Always define AMTAR for backward compatibility.  Yes, it's still used
1613# in the wild :-(  We should find a proper way to deprecate it ...
1614AC_SUBST([AMTAR], ['$${TAR-tar}'])
1615
1616# We'll loop over all known methods to create a tar archive until one works.
1617_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1618
1619m4_if([$1], [v7],
1620  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1621
1622  [m4_case([$1],
1623    [ustar],
1624     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1625      # There is notably a 21 bits limit for the UID and the GID.  In fact,
1626      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1627      # and bug#13588).
1628      am_max_uid=2097151 # 2^21 - 1
1629      am_max_gid=$am_max_uid
1630      # The $UID and $GID variables are not portable, so we need to resort
1631      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1632      # below are definitely unexpected, so allow the users to see them
1633      # (that is, avoid stderr redirection).
1634      am_uid=`id -u || echo unknown`
1635      am_gid=`id -g || echo unknown`
1636      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1637      if test $am_uid -le $am_max_uid; then
1638         AC_MSG_RESULT([yes])
1639      else
1640         AC_MSG_RESULT([no])
1641         _am_tools=none
1642      fi
1643      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1644      if test $am_gid -le $am_max_gid; then
1645         AC_MSG_RESULT([yes])
1646      else
1647        AC_MSG_RESULT([no])
1648        _am_tools=none
1649      fi],
1650
1651  [pax],
1652    [],
1653
1654  [m4_fatal([Unknown tar format])])
1655
1656  AC_MSG_CHECKING([how to create a $1 tar archive])
1657
1658  # Go ahead even if we have the value already cached.  We do so because we
1659  # need to set the values for the 'am__tar' and 'am__untar' variables.
1660  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1661
1662  for _am_tool in $_am_tools; do
1663    case $_am_tool in
1664    gnutar)
1665      for _am_tar in tar gnutar gtar; do
1666        AM_RUN_LOG([$_am_tar --version]) && break
1667      done
1668      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1669      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1670      am__untar="$_am_tar -xf -"
1671      ;;
1672    plaintar)
1673      # Must skip GNU tar: if it does not support --format= it doesn't create
1674      # ustar tarball either.
1675      (tar --version) >/dev/null 2>&1 && continue
1676      am__tar='tar chf - "$$tardir"'
1677      am__tar_='tar chf - "$tardir"'
1678      am__untar='tar xf -'
1679      ;;
1680    pax)
1681      am__tar='pax -L -x $1 -w "$$tardir"'
1682      am__tar_='pax -L -x $1 -w "$tardir"'
1683      am__untar='pax -r'
1684      ;;
1685    cpio)
1686      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1687      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1688      am__untar='cpio -i -H $1 -d'
1689      ;;
1690    none)
1691      am__tar=false
1692      am__tar_=false
1693      am__untar=false
1694      ;;
1695    esac
1696
1697    # If the value was cached, stop now.  We just wanted to have am__tar
1698    # and am__untar set.
1699    test -n "${am_cv_prog_tar_$1}" && break
1700
1701    # tar/untar a dummy directory, and stop if the command works.
1702    rm -rf conftest.dir
1703    mkdir conftest.dir
1704    echo GrepMe > conftest.dir/file
1705    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1706    rm -rf conftest.dir
1707    if test -s conftest.tar; then
1708      AM_RUN_LOG([$am__untar <conftest.tar])
1709      AM_RUN_LOG([cat conftest.dir/file])
1710      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1711    fi
1712  done
1713  rm -rf conftest.dir
1714
1715  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1716  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1717
1718AC_SUBST([am__tar])
1719AC_SUBST([am__untar])
1720]) # _AM_PROG_TAR
1721
1722m4_include([common/acx_pthread.m4])
1723m4_include([common/gcc_stack_protect.m4])
1724m4_include([common/gcc_visibility.m4])
1725m4_include([common/gettext.m4])
1726m4_include([common/iconv.m4])
1727m4_include([common/introspection.m4])
1728m4_include([common/lib-ld.m4])
1729m4_include([common/lib-link.m4])
1730m4_include([common/lib-prefix.m4])
1731m4_include([common/libtool.m4])
1732m4_include([common/ltoptions.m4])
1733m4_include([common/ltsugar.m4])
1734m4_include([common/ltversion.m4])
1735m4_include([common/lt~obsolete.m4])
1736m4_include([common/nls.m4])
1737m4_include([common/po.m4])
1738m4_include([common/progtest.m4])
1739m4_include([common/python.m4])
1740m4_include([common/qt5-pie.m4])
1741m4_include([acinclude.m4])
1742