Merge tag 'upstream/0.8' into tizen
[platform/upstream/avahi.git] / aclocal.m4
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
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf.  It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23 # intlmacosx.m4 serial 5 (gettext-0.18.2)
24 dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc.
25 dnl This file is free software; the Free Software Foundation
26 dnl gives unlimited permission to copy and/or distribute it,
27 dnl with or without modifications, as long as this notice is preserved.
28 dnl
29 dnl This file can be used in projects which are not available under
30 dnl the GNU General Public License or the GNU Library General Public
31 dnl License but which still want to provide support for the GNU gettext
32 dnl functionality.
33 dnl Please note that the actual code of the GNU gettext library is covered
34 dnl by the GNU Library General Public License, and the rest of the GNU
35 dnl gettext package is covered by the GNU General Public License.
36 dnl They are *not* in the public domain.
37
38 dnl Checks for special options needed on Mac OS X.
39 dnl Defines INTL_MACOSX_LIBS.
40 AC_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
80 dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
81 dnl serial 11 (pkg-config-0.29.1)
82 dnl
83 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
84 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
85 dnl
86 dnl This program is free software; you can redistribute it and/or modify
87 dnl it under the terms of the GNU General Public License as published by
88 dnl the Free Software Foundation; either version 2 of the License, or
89 dnl (at your option) any later version.
90 dnl
91 dnl This program is distributed in the hope that it will be useful, but
92 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
93 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
94 dnl General Public License for more details.
95 dnl
96 dnl You should have received a copy of the GNU General Public License
97 dnl along with this program; if not, write to the Free Software
98 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
99 dnl 02111-1307, USA.
100 dnl
101 dnl As a special exception to the GNU General Public License, if you
102 dnl distribute this file as part of a program that contains a
103 dnl configuration script generated by Autoconf, you may include it under
104 dnl the same distribution terms that you use for the rest of that
105 dnl program.
106
107 dnl PKG_PREREQ(MIN-VERSION)
108 dnl -----------------------
109 dnl Since: 0.29
110 dnl
111 dnl Verify that the version of the pkg-config macros are at least
112 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
113 dnl installed version of pkg-config, this checks the developer's version
114 dnl of pkg.m4 when generating configure.
115 dnl
116 dnl To ensure that this macro is defined, also add:
117 dnl m4_ifndef([PKG_PREREQ],
118 dnl     [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
119 dnl
120 dnl See the "Since" comment for each macro you use to see what version
121 dnl of the macros you require.
122 m4_defun([PKG_PREREQ],
123 [m4_define([PKG_MACROS_VERSION], [0.29.1])
124 m4_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
128 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
129 dnl ----------------------------------
130 dnl Since: 0.16
131 dnl
132 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
133 dnl first found in the path. Checks that the version of pkg-config found
134 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
135 dnl used since that's the first version where most current features of
136 dnl pkg-config existed.
137 AC_DEFUN([PKG_PROG_PKG_CONFIG],
138 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
139 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
140 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
141 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
142 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
143 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
144
145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
146         AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
147 fi
148 if 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
157 fi[]dnl
158 ])dnl PKG_PROG_PKG_CONFIG
159
160 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
161 dnl -------------------------------------------------------------------
162 dnl Since: 0.18
163 dnl
164 dnl Check to see whether a particular set of modules exists. Similar to
165 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
166 dnl
167 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
168 dnl only at the first occurence in configure.ac, so if the first place
169 dnl it's called might be skipped (such as if it is within an "if", you
170 dnl have to call PKG_CHECK_EXISTS manually
171 AC_DEFUN([PKG_CHECK_EXISTS],
172 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
173 if test -n "$PKG_CONFIG" && \
174     AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
175   m4_default([$2], [:])
176 m4_ifvaln([$3], [else
177   $3])dnl
178 fi])
179
180 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
181 dnl ---------------------------------------------
182 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
183 dnl pkg_failed based on the result.
184 m4_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
194 fi[]dnl
195 ])dnl _PKG_CONFIG
196
197 dnl _PKG_SHORT_ERRORS_SUPPORTED
198 dnl ---------------------------
199 dnl Internal check to see if pkg-config supports short errors.
200 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
201 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
203         _pkg_short_errors_supported=yes
204 else
205         _pkg_short_errors_supported=no
206 fi[]dnl
207 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
208
209
210 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
211 dnl   [ACTION-IF-NOT-FOUND])
212 dnl --------------------------------------------------------------
213 dnl Since: 0.4.0
214 dnl
215 dnl Note that if there is a possibility the first call to
216 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
217 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
218 AC_DEFUN([PKG_CHECK_MODULES],
219 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
220 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
221 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
222
223 pkg_failed=no
224 AC_MSG_CHECKING([for $1])
225
226 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
227 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
228
229 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
230 and $1[]_LIBS to avoid the need to call pkg-config.
231 See the pkg-config man page for more details.])
232
233 if 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
249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
250 installed software in a non-standard prefix.
251
252 _PKG_TEXT])[]dnl
253         ])
254 elif 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
258 is in your PATH or set the PKG_CONFIG environment variable to the full
259 path to pkg-config.
260
261 _PKG_TEXT
262
263 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
264         ])
265 else
266         $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
267         $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
268         AC_MSG_RESULT([yes])
269         $3
270 fi[]dnl
271 ])dnl PKG_CHECK_MODULES
272
273
274 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
275 dnl   [ACTION-IF-NOT-FOUND])
276 dnl ---------------------------------------------------------------------
277 dnl Since: 0.29
278 dnl
279 dnl Checks for existence of MODULES and gathers its build flags with
280 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
281 dnl and VARIABLE-PREFIX_LIBS from --libs.
282 dnl
283 dnl Note that if there is a possibility the first call to
284 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
285 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
286 dnl configure.ac.
287 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
288 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
289 _save_PKG_CONFIG=$PKG_CONFIG
290 PKG_CONFIG="$PKG_CONFIG --static"
291 PKG_CHECK_MODULES($@)
292 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
293 ])dnl PKG_CHECK_MODULES_STATIC
294
295
296 dnl PKG_INSTALLDIR([DIRECTORY])
297 dnl -------------------------
298 dnl Since: 0.27
299 dnl
300 dnl Substitutes the variable pkgconfigdir as the location where a module
301 dnl should install pkg-config .pc files. By default the directory is
302 dnl $libdir/pkgconfig, but the default can be changed by passing
303 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
304 dnl parameter.
305 AC_DEFUN([PKG_INSTALLDIR],
306 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
307 m4_pushdef([pkg_description],
308     [pkg-config installation directory @<:@]pkg_default[@:>@])
309 AC_ARG_WITH([pkgconfigdir],
310     [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
311     [with_pkgconfigdir=]pkg_default)
312 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
313 m4_popdef([pkg_default])
314 m4_popdef([pkg_description])
315 ])dnl PKG_INSTALLDIR
316
317
318 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
319 dnl --------------------------------
320 dnl Since: 0.27
321 dnl
322 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
323 dnl module should install arch-independent pkg-config .pc files. By
324 dnl default the directory is $datadir/pkgconfig, but the default can be
325 dnl changed by passing DIRECTORY. The user can override through the
326 dnl --with-noarch-pkgconfigdir parameter.
327 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
328 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
329 m4_pushdef([pkg_description],
330     [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
331 AC_ARG_WITH([noarch-pkgconfigdir],
332     [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
333     [with_noarch_pkgconfigdir=]pkg_default)
334 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
335 m4_popdef([pkg_default])
336 m4_popdef([pkg_description])
337 ])dnl PKG_NOARCH_INSTALLDIR
338
339
340 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
341 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
342 dnl -------------------------------------------
343 dnl Since: 0.28
344 dnl
345 dnl Retrieves the value of the pkg-config variable for the given module.
346 AC_DEFUN([PKG_CHECK_VAR],
347 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
348 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
349
350 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
351 AS_VAR_COPY([$1], [pkg_cv_][$1])
352
353 AS_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.)
367 AC_DEFUN([AM_AUTOMAKE_VERSION],
368 [am__api_version='1.15'
369 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
370 dnl require some minimum version.  Point them to the right macro.
371 m4_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.
380 m4_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.
386 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
387 [AM_AUTOMAKE_VERSION([1.15.1])dnl
388 m4_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
438 AC_DEFUN([AM_AUX_DIR_EXPAND],
439 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
440 # Expand $ac_aux_dir to an absolute path.
441 am_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.
455 AC_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
459 AC_SUBST([$1_TRUE])dnl
460 AC_SUBST([$1_FALSE])dnl
461 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
462 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
463 m4_define([_AM_COND_VALUE_$1], [$2])dnl
464 if $2; then
465   $1_TRUE=
466   $1_FALSE='#'
467 else
468   $1_TRUE='#'
469   $1_FALSE=
470 fi
471 AC_CONFIG_COMMANDS_PRE(
472 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
473   AC_MSG_ERROR([[conditional "$1" was never defined.
474 Usually this means the macro was only invoked conditionally.]])
475 fi])])
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.
501 AC_DEFUN([_AM_DEPENDENCIES],
502 [AC_REQUIRE([AM_SET_DEPDIR])dnl
503 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
504 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
505 AC_REQUIRE([AM_DEP_TRACK])dnl
506
507 m4_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
515 AC_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
623 else
624   am_cv_$1_dependencies_compiler_type=none
625 fi
626 ])
627 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
628 AM_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.
638 AC_DEFUN([AM_SET_DEPDIR],
639 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
640 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
641 ])
642
643
644 # AM_DEP_TRACK
645 # ------------
646 AC_DEFUN([AM_DEP_TRACK],
647 [AC_ARG_ENABLE([dependency-tracking], [dnl
648 AS_HELP_STRING(
649   [--enable-dependency-tracking],
650   [do not reject slow dependency extractors])
651 AS_HELP_STRING(
652   [--disable-dependency-tracking],
653   [speeds up one-time build])])
654 if test "x$enable_dependency_tracking" != xno; then
655   am_depcomp="$ac_aux_dir/depcomp"
656   AMDEPBACKSLASH='\'
657   am__nodep='_no'
658 fi
659 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
660 AC_SUBST([AMDEPBACKSLASH])dnl
661 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
662 AC_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 # ------------------------------
677 AC_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.
736 AC_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
753 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
754 m4_define([AC_PROG_CC],
755 m4_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.
770 AC_DEFUN([AM_INIT_AUTOMAKE],
771 [AC_PREREQ([2.65])dnl
772 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
773 dnl the ones we care about.
774 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
775 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
776 AC_REQUIRE([AC_PROG_INSTALL])dnl
777 if 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
785 fi
786
787 # test whether we have cygpath
788 if 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
794 fi
795 AC_SUBST([CYGPATH_W])
796
797 # Define the identity of the package.
798 dnl Distinguish between old-style and new-style calls.
799 m4_ifval([$2],
800 [AC_DIAGNOSE([obsolete],
801              [$0: two- and three-arguments forms are deprecated.])
802 m4_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
806 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
807 m4_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.
819 AC_REQUIRE([AM_SANITY_CHECK])dnl
820 AC_REQUIRE([AC_ARG_PROGRAM])dnl
821 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
822 AM_MISSING_PROG([AUTOCONF], [autoconf])
823 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
824 AM_MISSING_PROG([AUTOHEADER], [autoheader])
825 AM_MISSING_PROG([MAKEINFO], [makeinfo])
826 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
827 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
828 AC_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>
833 AC_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.
836 AC_REQUIRE([AC_PROG_AWK])dnl
837 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
838 AC_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
847 AC_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
851 AC_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
855 AC_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 ])
860 AC_REQUIRE([AM_SILENT_RULES])dnl
861 dnl The testsuite driver may need to know about EXEEXT, so add the
862 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
863 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
864 AC_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.
876 if rm -f && rm -fr && rm -rf; then : OK; else
877   cat >&2 <<'END'
878 Oops!
879
880 Your 'rm' program seems unable to run without file operands specified
881 on the command line, even when the '-f' option is present.  This is contrary
882 to the behaviour of most rm programs out there, and not conforming with
883 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
884
885 Please tell bug-automake@gnu.org about your system, including the value
886 of your $PATH and any error possibly output before this message.  This
887 can help us improve future automake versions.
888
889 END
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'
896 Aborting the configuration process, to ensure you take notice of the issue.
897
898 You can download and install GNU coreutils to get an 'rm' implementation
899 that behaves properly: <http://www.gnu.org/software/coreutils/>.
900
901 If you want to complete the configuration process using your problematic
902 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
903 to "yes", and re-run configure.
904
905 END
906     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
907   fi
908 fi
909 dnl The trailing newline in this macro's definition is deliberate, for
910 dnl backward compatibility and to allow trailing 'dnl'-style comments
911 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
912 ])
913
914 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
915 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
916 dnl mangled by Autoconf and run in a shell conditional statement.
917 m4_define([_AC_COMPILER_EXEEXT],
918 m4_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.
927 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
928 [# Compute $1's index in $config_headers.
929 _am_arg=$1
930 _am_stamp_count=1
931 for _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
938 done
939 echo "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.
950 AC_DEFUN([AM_PROG_INSTALL_SH],
951 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
952 if 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
959 fi
960 AC_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.
970 AC_DEFUN([AM_SET_LEADING_DOT],
971 [rm -rf .tst 2>/dev/null
972 mkdir .tst 2>/dev/null
973 if test -d .tst; then
974   am__leading_dot=.
975 else
976   am__leading_dot=_
977 fi
978 rmdir .tst 2>/dev/null
979 AC_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.
992 AC_DEFUN([AM_MAKE_INCLUDE],
993 [am_make=${MAKE-make}
994 cat > confinc << 'END'
995 am__doit:
996         @echo this is the am__doit target
997 .PHONY: am__doit
998 END
999 # If we don't find an include directive, just comment out the code.
1000 AC_MSG_CHECKING([for style of include used by $am_make])
1001 am__include="#"
1002 am__quote=
1003 _am_result=none
1004 # First try GNU make style include.
1005 echo "include confinc" > confmf
1006 # Ignore all kinds of additional output from 'make'.
1007 case `$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   ;;
1013 esac
1014 # Now try BSD make style include.
1015 if 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
1024 fi
1025 AC_SUBST([am__include])
1026 AC_SUBST([am__quote])
1027 AC_MSG_RESULT([$_am_result])
1028 rm -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 # ------------------------------
1041 AC_DEFUN([AM_MISSING_PROG],
1042 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1043 $1=${$1-"${am_missing_run}$2"}
1044 AC_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.
1050 AC_DEFUN([AM_MISSING_HAS_RUN],
1051 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1052 AC_REQUIRE_AUX_FILE([missing])dnl
1053 if 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
1060 fi
1061 # Use eval to expand $SHELL
1062 if eval "$MISSING --is-lightweight"; then
1063   am_missing_run="$MISSING "
1064 else
1065   am_missing_run=
1066   AC_MSG_WARN(['missing' script is too old or missing])
1067 fi
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 # -----------------------
1080 AC_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.
1086 AC_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.
1092 AC_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.
1098 AC_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.
1111 AC_DEFUN([_AM_PROG_CC_C_O],
1112 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1113 AC_REQUIRE_AUX_FILE([compile])dnl
1114 AC_LANG_PUSH([C])dnl
1115 AC_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])
1135 if 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"
1142 fi
1143 AC_LANG_POP([C])])
1144
1145 # For backward compatibility.
1146 AC_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.
1177 AC_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="\
1254 import sys
1255 # Prefer sysconfig over distutils.sysconfig, for better compatibility
1256 # with python 3.x.  See automake bug#10227.
1257 try:
1258     import sysconfig
1259 except ImportError:
1260     can_use_sysconfig = 0
1261 else:
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>
1265 try:
1266     from platform import python_implementation
1267     if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
1268         can_use_sysconfig = 0
1269 except 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
1289 if can_use_sysconfig:
1290     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1291 else:
1292     from distutils import sysconfig
1293     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
1294 sys.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
1331 if can_use_sysconfig:
1332     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
1333 else:
1334     from distutils import sysconfig
1335     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
1336 sys.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).
1372 AC_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
1377 minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1378 minverhex = 0
1379 # xrange is not present in Python 3.0 and range returns an iterator
1380 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1381 sys.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.)
1394 AC_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 # ---------------
1411 AC_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.
1415 am_lf='
1416 '
1417 case `pwd` in
1418   *[[\\\"\#\$\&\'\`$am_lf]]*)
1419     AC_MSG_ERROR([unsafe absolute working directory name]);;
1420 esac
1421 case $srcdir in
1422   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1423     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1424 esac
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).
1431 if (
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    )
1459 then
1460    # Ok.
1461    :
1462 else
1463    AC_MSG_ERROR([newly created file is older than distributed files!
1464 Check your system clock])
1465 fi
1466 AC_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.
1469 am_sleep_pid=
1470 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1471   ( sleep 1 ) &
1472   am_sleep_pid=$!
1473 fi
1474 AC_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])])
1481 rm -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).
1494 AC_DEFUN([AM_SILENT_RULES],
1495 [AC_ARG_ENABLE([silent-rules], [dnl
1496 AS_HELP_STRING(
1497   [--enable-silent-rules],
1498   [less verbose build output (undo: "make V=1")])
1499 AS_HELP_STRING(
1500   [--disable-silent-rules],
1501   [verbose build output (undo: "make V=0")])dnl
1502 ])
1503 case $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]);;
1507 esac
1508 dnl
1509 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1510 dnl do not support nested variable expansions.
1511 dnl See automake bug#9928 and bug#10237.
1512 am_make=${MAKE-make}
1513 AC_CACHE_CHECK([whether $am_make supports nested variables],
1514    [am_cv_make_support_nested_variables],
1515    [if AS_ECHO([['TRUE=$(BAR$(V))
1516 BAR0=false
1517 BAR1=true
1518 V=1
1519 am__doit:
1520         @$(TRUE)
1521 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1522   am_cv_make_support_nested_variables=yes
1523 else
1524   am_cv_make_support_nested_variables=no
1525 fi])
1526 if 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)'
1530 else
1531   AM_V=$AM_DEFAULT_VERBOSITY
1532   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1533 fi
1534 AC_SUBST([AM_V])dnl
1535 AM_SUBST_NOTMAKE([AM_V])dnl
1536 AC_SUBST([AM_DEFAULT_V])dnl
1537 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1538 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1539 AM_BACKSLASH='\'
1540 AC_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).
1559 AC_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.
1565 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1566 if test "$cross_compiling" != no; then
1567   AC_CHECK_TOOL([STRIP], [strip], :)
1568 fi
1569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1570 AC_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.
1582 AC_DEFUN([_AM_SUBST_NOTMAKE])
1583
1584 # AM_SUBST_NOTMAKE(VARIABLE)
1585 # --------------------------
1586 # Public sister of _AM_SUBST_NOTMAKE.
1587 AC_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 #
1611 AC_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 ...
1614 AC_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
1619 m4_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
1718 AC_SUBST([am__tar])
1719 AC_SUBST([am__untar])
1720 ]) # _AM_PROG_TAR
1721
1722 m4_include([common/acx_pthread.m4])
1723 m4_include([common/gcc_stack_protect.m4])
1724 m4_include([common/gcc_visibility.m4])
1725 m4_include([common/gettext.m4])
1726 m4_include([common/iconv.m4])
1727 m4_include([common/introspection.m4])
1728 m4_include([common/lib-ld.m4])
1729 m4_include([common/lib-link.m4])
1730 m4_include([common/lib-prefix.m4])
1731 m4_include([common/libtool.m4])
1732 m4_include([common/ltoptions.m4])
1733 m4_include([common/ltsugar.m4])
1734 m4_include([common/ltversion.m4])
1735 m4_include([common/lt~obsolete.m4])
1736 m4_include([common/nls.m4])
1737 m4_include([common/po.m4])
1738 m4_include([common/progtest.m4])
1739 m4_include([common/python.m4])
1740 m4_include([common/qt5-pie.m4])
1741 m4_include([acinclude.m4])