1 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
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.
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
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'.])])
23 dnl -*- mode: autoconf -*-
24 dnl Copyright 2009 Johan Dahlin
26 dnl This file is free software; the author(s) gives unlimited
27 dnl permission to copy and/or distribute it, with or without
28 dnl modifications, as long as this notice is preserved.
33 dnl This is a copy of AS_AC_EXPAND
35 dnl (C) 2003, 2004, 2005 Thomas Vander Stichele <thomas at apestaart dot org>
36 dnl Copying and distribution of this file, with or without modification,
37 dnl are permitted in any medium without royalty provided the copyright
38 dnl notice and this notice are preserved.
39 m4_define([_GOBJECT_INTROSPECTION_AS_AC_EXPAND],
44 dnl first expand prefix and exec_prefix if necessary
46 exec_prefix_save=$exec_prefix
48 dnl if no prefix given, then use /usr/local, the default prefix
49 if test "x$prefix" = "xNONE"; then
50 prefix="$ac_default_prefix"
52 dnl if no exec_prefix given, then use prefix
53 if test "x$exec_prefix" = "xNONE"; then
58 dnl loop until it doesn't change anymore
60 new_full_var="`eval echo $full_var`"
61 if test "x$new_full_var" = "x$full_var"; then break; fi
62 full_var=$new_full_var
66 full_var=$new_full_var
67 AC_SUBST([$1], "$full_var")
69 dnl restore prefix and exec_prefix
71 exec_prefix=$exec_prefix_save
74 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
76 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
77 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
78 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
80 dnl enable/disable introspection
81 m4_if([$2], [require],
83 enable_introspection=yes
85 AC_ARG_ENABLE(introspection,
86 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
87 [Enable introspection for this build]),,
88 [enable_introspection=auto])
91 AC_MSG_CHECKING([for gobject-introspection])
93 dnl presence/version checking
94 AS_CASE([$enable_introspection],
96 found_introspection="no (disabled, use --enable-introspection to enable)"
99 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
100 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
101 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
102 found_introspection=yes,
103 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
106 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
107 dnl Canonicalize enable_introspection
108 enable_introspection=$found_introspection
111 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
114 AC_MSG_RESULT([$found_introspection])
116 dnl expand datadir/libdir so we can pass them to pkg-config
117 dnl and get paths relative to our target directories
118 _GOBJECT_INTROSPECTION_AS_AC_EXPAND(_GI_EXP_DATADIR, "$datadir")
119 _GOBJECT_INTROSPECTION_AS_AC_EXPAND(_GI_EXP_LIBDIR, "$libdir")
121 INTROSPECTION_SCANNER=
122 INTROSPECTION_COMPILER=
123 INTROSPECTION_GENERATE=
124 INTROSPECTION_GIRDIR=
125 INTROSPECTION_TYPELIBDIR=
126 if test "x$found_introspection" = "xyes"; then
127 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
128 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
129 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
130 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
131 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
132 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
133 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
134 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
136 AC_SUBST(INTROSPECTION_SCANNER)
137 AC_SUBST(INTROSPECTION_COMPILER)
138 AC_SUBST(INTROSPECTION_GENERATE)
139 AC_SUBST(INTROSPECTION_GIRDIR)
140 AC_SUBST(INTROSPECTION_TYPELIBDIR)
141 AC_SUBST(INTROSPECTION_CFLAGS)
142 AC_SUBST(INTROSPECTION_LIBS)
143 AC_SUBST(INTROSPECTION_MAKEFILE)
145 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
150 dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
152 AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
154 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
158 dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
161 AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
163 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
166 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
167 dnl serial 11 (pkg-config-0.29.1)
169 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
170 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
172 dnl This program is free software; you can redistribute it and/or modify
173 dnl it under the terms of the GNU General Public License as published by
174 dnl the Free Software Foundation; either version 2 of the License, or
175 dnl (at your option) any later version.
177 dnl This program is distributed in the hope that it will be useful, but
178 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
179 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
180 dnl General Public License for more details.
182 dnl You should have received a copy of the GNU General Public License
183 dnl along with this program; if not, write to the Free Software
184 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
187 dnl As a special exception to the GNU General Public License, if you
188 dnl distribute this file as part of a program that contains a
189 dnl configuration script generated by Autoconf, you may include it under
190 dnl the same distribution terms that you use for the rest of that
193 dnl PKG_PREREQ(MIN-VERSION)
194 dnl -----------------------
197 dnl Verify that the version of the pkg-config macros are at least
198 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
199 dnl installed version of pkg-config, this checks the developer's version
200 dnl of pkg.m4 when generating configure.
202 dnl To ensure that this macro is defined, also add:
203 dnl m4_ifndef([PKG_PREREQ],
204 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
206 dnl See the "Since" comment for each macro you use to see what version
207 dnl of the macros you require.
208 m4_defun([PKG_PREREQ],
209 [m4_define([PKG_MACROS_VERSION], [0.29.1])
210 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
211 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
214 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
215 dnl ----------------------------------
218 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
219 dnl first found in the path. Checks that the version of pkg-config found
220 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
221 dnl used since that's the first version where most current features of
222 dnl pkg-config existed.
223 AC_DEFUN([PKG_PROG_PKG_CONFIG],
224 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
225 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
226 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
227 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
228 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
229 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
231 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
232 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
234 if test -n "$PKG_CONFIG"; then
235 _pkg_min_version=m4_default([$1], [0.9.0])
236 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
244 ])dnl PKG_PROG_PKG_CONFIG
246 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
247 dnl -------------------------------------------------------------------
250 dnl Check to see whether a particular set of modules exists. Similar to
251 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
253 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
254 dnl only at the first occurence in configure.ac, so if the first place
255 dnl it's called might be skipped (such as if it is within an "if", you
256 dnl have to call PKG_CHECK_EXISTS manually
257 AC_DEFUN([PKG_CHECK_EXISTS],
258 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
259 if test -n "$PKG_CONFIG" && \
260 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
261 m4_default([$2], [:])
262 m4_ifvaln([$3], [else
266 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
267 dnl ---------------------------------------------
268 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
269 dnl pkg_failed based on the result.
270 m4_define([_PKG_CONFIG],
271 [if test -n "$$1"; then
273 elif test -n "$PKG_CONFIG"; then
274 PKG_CHECK_EXISTS([$3],
275 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
276 test "x$?" != "x0" && pkg_failed=yes ],
283 dnl _PKG_SHORT_ERRORS_SUPPORTED
284 dnl ---------------------------
285 dnl Internal check to see if pkg-config supports short errors.
286 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
287 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
288 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
289 _pkg_short_errors_supported=yes
291 _pkg_short_errors_supported=no
293 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
296 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
297 dnl [ACTION-IF-NOT-FOUND])
298 dnl --------------------------------------------------------------
301 dnl Note that if there is a possibility the first call to
302 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
303 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
304 AC_DEFUN([PKG_CHECK_MODULES],
305 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
306 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
307 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
310 AC_MSG_CHECKING([for $1])
312 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
313 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
315 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
316 and $1[]_LIBS to avoid the need to call pkg-config.
317 See the pkg-config man page for more details.])
319 if test $pkg_failed = yes; then
321 _PKG_SHORT_ERRORS_SUPPORTED
322 if test $_pkg_short_errors_supported = yes; then
323 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
325 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
327 # Put the nasty error message in config.log where it belongs
328 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
330 m4_default([$4], [AC_MSG_ERROR(
331 [Package requirements ($2) were not met:
335 Consider adjusting the PKG_CONFIG_PATH environment variable if you
336 installed software in a non-standard prefix.
340 elif test $pkg_failed = untried; then
342 m4_default([$4], [AC_MSG_FAILURE(
343 [The pkg-config script could not be found or is too old. Make sure it
344 is in your PATH or set the PKG_CONFIG environment variable to the full
349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
352 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
353 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
357 ])dnl PKG_CHECK_MODULES
360 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
361 dnl [ACTION-IF-NOT-FOUND])
362 dnl ---------------------------------------------------------------------
365 dnl Checks for existence of MODULES and gathers its build flags with
366 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
367 dnl and VARIABLE-PREFIX_LIBS from --libs.
369 dnl Note that if there is a possibility the first call to
370 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
371 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
373 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
374 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
375 _save_PKG_CONFIG=$PKG_CONFIG
376 PKG_CONFIG="$PKG_CONFIG --static"
377 PKG_CHECK_MODULES($@)
378 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
379 ])dnl PKG_CHECK_MODULES_STATIC
382 dnl PKG_INSTALLDIR([DIRECTORY])
383 dnl -------------------------
386 dnl Substitutes the variable pkgconfigdir as the location where a module
387 dnl should install pkg-config .pc files. By default the directory is
388 dnl $libdir/pkgconfig, but the default can be changed by passing
389 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
391 AC_DEFUN([PKG_INSTALLDIR],
392 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
393 m4_pushdef([pkg_description],
394 [pkg-config installation directory @<:@]pkg_default[@:>@])
395 AC_ARG_WITH([pkgconfigdir],
396 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
397 [with_pkgconfigdir=]pkg_default)
398 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
399 m4_popdef([pkg_default])
400 m4_popdef([pkg_description])
404 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
405 dnl --------------------------------
408 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
409 dnl module should install arch-independent pkg-config .pc files. By
410 dnl default the directory is $datadir/pkgconfig, but the default can be
411 dnl changed by passing DIRECTORY. The user can override through the
412 dnl --with-noarch-pkgconfigdir parameter.
413 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
414 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
415 m4_pushdef([pkg_description],
416 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
417 AC_ARG_WITH([noarch-pkgconfigdir],
418 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
419 [with_noarch_pkgconfigdir=]pkg_default)
420 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
421 m4_popdef([pkg_default])
422 m4_popdef([pkg_description])
423 ])dnl PKG_NOARCH_INSTALLDIR
426 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
427 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
428 dnl -------------------------------------------
431 dnl Retrieves the value of the pkg-config variable for the given module.
432 AC_DEFUN([PKG_CHECK_VAR],
433 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
434 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
436 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
437 AS_VAR_COPY([$1], [pkg_cv_][$1])
439 AS_VAR_IF([$1], [""], [$5], [$4])dnl
442 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
444 # This file is free software; the Free Software Foundation
445 # gives unlimited permission to copy and/or distribute it,
446 # with or without modifications, as long as this notice is preserved.
448 # AM_AUTOMAKE_VERSION(VERSION)
449 # ----------------------------
450 # Automake X.Y traces this macro to ensure aclocal.m4 has been
451 # generated from the m4 files accompanying Automake X.Y.
452 # (This private macro should not be called outside this file.)
453 AC_DEFUN([AM_AUTOMAKE_VERSION],
454 [am__api_version='1.16'
455 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
456 dnl require some minimum version. Point them to the right macro.
457 m4_if([$1], [1.16.1], [],
458 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
461 # _AM_AUTOCONF_VERSION(VERSION)
462 # -----------------------------
463 # aclocal traces this macro to find the Autoconf version.
464 # This is a private macro too. Using m4_define simplifies
465 # the logic in aclocal, which can simply ignore this definition.
466 m4_define([_AM_AUTOCONF_VERSION], [])
468 # AM_SET_CURRENT_AUTOMAKE_VERSION
469 # -------------------------------
470 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
471 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
472 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
473 [AM_AUTOMAKE_VERSION([1.16.1])dnl
474 m4_ifndef([AC_AUTOCONF_VERSION],
475 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
476 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
478 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
480 # This file is free software; the Free Software Foundation
481 # gives unlimited permission to copy and/or distribute it,
482 # with or without modifications, as long as this notice is preserved.
484 # AM_PROG_AR([ACT-IF-FAIL])
485 # -------------------------
486 # Try to determine the archiver interface, and trigger the ar-lib wrapper
487 # if it is needed. If the detection of archiver interface fails, run
488 # ACT-IF-FAIL (default is to abort configure with a proper error message).
489 AC_DEFUN([AM_PROG_AR],
490 [AC_BEFORE([$0], [LT_INIT])dnl
491 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
492 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
493 AC_REQUIRE_AUX_FILE([ar-lib])dnl
494 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
497 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
499 am_cv_ar_interface=ar
500 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
501 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
502 AC_TRY_EVAL([am_ar_try])
503 if test "$ac_status" -eq 0; then
504 am_cv_ar_interface=ar
506 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
507 AC_TRY_EVAL([am_ar_try])
508 if test "$ac_status" -eq 0; then
509 am_cv_ar_interface=lib
511 am_cv_ar_interface=unknown
514 rm -f conftest.lib libconftest.a
518 case $am_cv_ar_interface in
522 # Microsoft lib, so override with the ar-lib wrapper script.
523 # FIXME: It is wrong to rewrite AR.
524 # But if we don't then we get into trouble of one sort or another.
525 # A longer-term fix would be to have automake use am__AR in this case,
526 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
528 AR="$am_aux_dir/ar-lib $AR"
532 [AC_MSG_ERROR([could not determine $AR interface])])
538 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
540 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
542 # This file is free software; the Free Software Foundation
543 # gives unlimited permission to copy and/or distribute it,
544 # with or without modifications, as long as this notice is preserved.
546 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
547 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
548 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
550 # Of course, Automake must honor this variable whenever it calls a
551 # tool from the auxiliary directory. The problem is that $srcdir (and
552 # therefore $ac_aux_dir as well) can be either absolute or relative,
553 # depending on how configure is run. This is pretty annoying, since
554 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
555 # source directory, any form will work fine, but in subdirectories a
556 # relative path needs to be adjusted first.
558 # $ac_aux_dir/missing
559 # fails when called from a subdirectory if $ac_aux_dir is relative
560 # $top_srcdir/$ac_aux_dir/missing
561 # fails if $ac_aux_dir is absolute,
562 # fails when called from a subdirectory in a VPATH build with
563 # a relative $ac_aux_dir
565 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
566 # are both prefixed by $srcdir. In an in-source build this is usually
567 # harmless because $srcdir is '.', but things will broke when you
568 # start a VPATH build or use an absolute $srcdir.
570 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
571 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
572 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
573 # and then we would define $MISSING as
574 # MISSING="\${SHELL} $am_aux_dir/missing"
575 # This will work as long as MISSING is not called from configure, because
576 # unfortunately $(top_srcdir) has no meaning in configure.
577 # However there are other variables, like CC, which are often used in
578 # configure, and could therefore not use this "fixed" $ac_aux_dir.
580 # Another solution, used here, is to always expand $ac_aux_dir to an
581 # absolute PATH. The drawback is that using absolute paths prevent a
582 # configured tree to be moved without reconfiguration.
584 AC_DEFUN([AM_AUX_DIR_EXPAND],
585 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
586 # Expand $ac_aux_dir to an absolute path.
587 am_aux_dir=`cd "$ac_aux_dir" && pwd`
590 # AM_CONDITIONAL -*- Autoconf -*-
592 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
594 # This file is free software; the Free Software Foundation
595 # gives unlimited permission to copy and/or distribute it,
596 # with or without modifications, as long as this notice is preserved.
598 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
599 # -------------------------------------
600 # Define a conditional.
601 AC_DEFUN([AM_CONDITIONAL],
602 [AC_PREREQ([2.52])dnl
603 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
604 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
605 AC_SUBST([$1_TRUE])dnl
606 AC_SUBST([$1_FALSE])dnl
607 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
608 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
609 m4_define([_AM_COND_VALUE_$1], [$2])dnl
617 AC_CONFIG_COMMANDS_PRE(
618 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
619 AC_MSG_ERROR([[conditional "$1" was never defined.
620 Usually this means the macro was only invoked conditionally.]])
623 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
625 # This file is free software; the Free Software Foundation
626 # gives unlimited permission to copy and/or distribute it,
627 # with or without modifications, as long as this notice is preserved.
630 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
631 # written in clear, in which case automake, when reading aclocal.m4,
632 # will think it sees a *use*, and therefore will trigger all it's
633 # C support machinery. Also note that it means that autoscan, seeing
634 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
637 # _AM_DEPENDENCIES(NAME)
638 # ----------------------
639 # See how the compiler implements dependency checking.
640 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
641 # We try a few techniques and use that to set a single cache variable.
643 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
644 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
645 # dependency, and given that the user is not expected to run this macro,
646 # just rely on AC_PROG_CC.
647 AC_DEFUN([_AM_DEPENDENCIES],
648 [AC_REQUIRE([AM_SET_DEPDIR])dnl
649 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
650 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
651 AC_REQUIRE([AM_DEP_TRACK])dnl
653 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
654 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
655 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
656 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
657 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
658 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
659 [depcc="$$1" am_compiler_list=])
661 AC_CACHE_CHECK([dependency style of $depcc],
662 [am_cv_$1_dependencies_compiler_type],
663 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
664 # We make a subdir and do the tests there. Otherwise we can end up
665 # making bogus files that we don't know about and never remove. For
666 # instance it was reported that on HP-UX the gcc test will end up
667 # making a dummy file named 'D' -- because '-MD' means "put the output
671 # Copy depcomp to subdir because otherwise we won't find it if we're
672 # using a relative directory.
673 cp "$am_depcomp" conftest.dir
675 # We will build objects and dependencies in a subdirectory because
676 # it helps to detect inapplicable dependency modes. For instance
677 # both Tru64's cc and ICC support -MD to output dependencies as a
678 # side effect of compilation, but ICC will put the dependencies in
679 # the current directory while Tru64 will put them in the object
683 am_cv_$1_dependencies_compiler_type=none
684 if test "$am_compiler_list" = ""; then
685 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
689 [case " $depcc " in #(
690 *\ -arch\ *\ -arch\ *) am__universal=true ;;
693 [case " $depcc " in #(
694 *\ -arch\ *\ -arch\ *) am__universal=true ;;
697 for depmode in $am_compiler_list; do
698 # Setup a source with many dependencies, because some compilers
699 # like to wrap large dependency lists on column 80 (with \), and
700 # we should not choose a depcomp mode which is confused by this.
702 # We need to recreate these files for each test, as the compiler may
703 # overwrite some of them when testing with obscure command lines.
704 # This happens at least with the AIX C compiler.
706 for i in 1 2 3 4 5 6; do
707 echo '#include "conftst'$i'.h"' >> sub/conftest.c
708 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
709 # Solaris 10 /bin/sh.
710 echo '/* dummy */' > sub/conftst$i.h
712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
714 # We check with '-c' and '-o' for the sake of the "dashmstdout"
715 # mode. It turns out that the SunPro C++ compiler does not properly
716 # handle '-M -o', and we need to detect this. Also, some Intel
717 # versions had trouble with output in subdirs.
718 am__obj=sub/conftest.${OBJEXT-o}
719 am__minus_obj="-o $am__obj"
722 # This depmode causes a compiler race in universal mode.
723 test "$am__universal" = false || continue
726 # After this tag, mechanisms are not by side-effect, so they'll
727 # only be used when explicitly requested.
728 if test "x$enable_dependency_tracking" = xyes; then
734 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
735 # This compiler won't grok '-c -o', but also, the minuso test has
736 # not run yet. These depmodes are late enough in the game, and
737 # so weak that their functioning should not be impacted.
738 am__obj=conftest.${OBJEXT-o}
743 if depmode=$depmode \
744 source=sub/conftest.c object=$am__obj \
745 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
746 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
747 >/dev/null 2>conftest.err &&
748 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
749 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
750 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
751 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
752 # icc doesn't choke on unknown options, it will just issue warnings
753 # or remarks (even with -Werror). So we grep stderr for any message
754 # that says an option was ignored or not supported.
755 # When given -MP, icc 7.0 and 7.1 complain thusly:
756 # icc: Command line warning: ignoring option '-M'; no argument required
757 # The diagnosis changed in icc 8.0:
758 # icc: Command line remark: option '-MP' not supported
759 if (grep 'ignoring option' conftest.err ||
760 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
761 am_cv_$1_dependencies_compiler_type=$depmode
770 am_cv_$1_dependencies_compiler_type=none
773 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
774 AM_CONDITIONAL([am__fastdep$1], [
775 test "x$enable_dependency_tracking" != xno \
776 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
782 # Choose a directory name for dependency files.
783 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
784 AC_DEFUN([AM_SET_DEPDIR],
785 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
786 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
792 AC_DEFUN([AM_DEP_TRACK],
793 [AC_ARG_ENABLE([dependency-tracking], [dnl
795 [--enable-dependency-tracking],
796 [do not reject slow dependency extractors])
798 [--disable-dependency-tracking],
799 [speeds up one-time build])])
800 if test "x$enable_dependency_tracking" != xno; then
801 am_depcomp="$ac_aux_dir/depcomp"
805 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
806 AC_SUBST([AMDEPBACKSLASH])dnl
807 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
808 AC_SUBST([am__nodep])dnl
809 _AM_SUBST_NOTMAKE([am__nodep])dnl
812 # Generate code to set up dependency tracking. -*- Autoconf -*-
814 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
816 # This file is free software; the Free Software Foundation
817 # gives unlimited permission to copy and/or distribute it,
818 # with or without modifications, as long as this notice is preserved.
820 # _AM_OUTPUT_DEPENDENCY_COMMANDS
821 # ------------------------------
822 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
824 # Older Autoconf quotes --file arguments for eval, but not when files
825 # are listed without --file. Let's play safe and only enable the eval
826 # if we detect the quoting.
827 # TODO: see whether this extra hack can be removed once we start
828 # requiring Autoconf 2.70 or later.
829 AS_CASE([$CONFIG_FILES],
830 [*\'*], [eval set x "$CONFIG_FILES"],
831 [*], [set x $CONFIG_FILES])
833 # Used to flag and report bootstrapping failures.
837 # Strip MF so we end up with the name of the file.
838 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
839 # Check whether this is an Automake generated Makefile which includes
840 # dependency-tracking related rules and includes.
841 # Grep'ing the whole file directly is not great: AIX grep has a line
842 # limit of 2048, but all sed's we know have understand at least 4000.
843 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
845 am_dirpart=`AS_DIRNAME(["$am_mf"])`
846 am_filepart=`AS_BASENAME(["$am_mf"])`
847 AM_RUN_LOG([cd "$am_dirpart" \
848 && sed -e '/# am--include-marker/d' "$am_filepart" \
849 | $MAKE -f - am--depfiles]) || am_rc=$?
851 if test $am_rc -ne 0; then
852 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
853 for automatic dependency tracking. Try re-running configure with the
854 '--disable-dependency-tracking' option to at least be able to build
855 the package (albeit without support for automatic dependency tracking).])
857 AS_UNSET([am_dirpart])
858 AS_UNSET([am_filepart])
861 rm -f conftest-deps.mk
863 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
866 # AM_OUTPUT_DEPENDENCY_COMMANDS
867 # -----------------------------
868 # This macro should only be invoked once -- use via AC_REQUIRE.
870 # This code is only required when automatic dependency tracking is enabled.
871 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
872 # order to bootstrap the dependency handling code.
873 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
874 [AC_CONFIG_COMMANDS([depfiles],
875 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
876 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
878 # Do all the work for Automake. -*- Autoconf -*-
880 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
882 # This file is free software; the Free Software Foundation
883 # gives unlimited permission to copy and/or distribute it,
884 # with or without modifications, as long as this notice is preserved.
886 # This macro actually does too much. Some checks are only needed if
887 # your package does certain things. But this isn't really a big deal.
889 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
890 m4_define([AC_PROG_CC],
891 m4_defn([AC_PROG_CC])
895 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
896 # AM_INIT_AUTOMAKE([OPTIONS])
897 # -----------------------------------------------
898 # The call with PACKAGE and VERSION arguments is the old style
899 # call (pre autoconf-2.50), which is being phased out. PACKAGE
900 # and VERSION should now be passed to AC_INIT and removed from
901 # the call to AM_INIT_AUTOMAKE.
902 # We support both call styles for the transition. After
903 # the next Automake release, Autoconf can make the AC_INIT
904 # arguments mandatory, and then we can depend on a new Autoconf
905 # release and drop the old call support.
906 AC_DEFUN([AM_INIT_AUTOMAKE],
907 [AC_PREREQ([2.65])dnl
908 dnl Autoconf wants to disallow AM_ names. We explicitly allow
909 dnl the ones we care about.
910 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
911 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
912 AC_REQUIRE([AC_PROG_INSTALL])dnl
913 if test "`cd $srcdir && pwd`" != "`pwd`"; then
914 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
915 # is not polluted with repeated "-I."
916 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
917 # test to see if srcdir already configured
918 if test -f $srcdir/config.status; then
919 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
923 # test whether we have cygpath
924 if test -z "$CYGPATH_W"; then
925 if (cygpath --version) >/dev/null 2>/dev/null; then
926 CYGPATH_W='cygpath -w'
931 AC_SUBST([CYGPATH_W])
933 # Define the identity of the package.
934 dnl Distinguish between old-style and new-style calls.
936 [AC_DIAGNOSE([obsolete],
937 [$0: two- and three-arguments forms are deprecated.])
938 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
939 AC_SUBST([PACKAGE], [$1])dnl
940 AC_SUBST([VERSION], [$2])],
941 [_AM_SET_OPTIONS([$1])dnl
942 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
944 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
946 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
947 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
948 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
950 _AM_IF_OPTION([no-define],,
951 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
952 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
954 # Some tools Automake needs.
955 AC_REQUIRE([AM_SANITY_CHECK])dnl
956 AC_REQUIRE([AC_ARG_PROGRAM])dnl
957 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
958 AM_MISSING_PROG([AUTOCONF], [autoconf])
959 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
960 AM_MISSING_PROG([AUTOHEADER], [autoheader])
961 AM_MISSING_PROG([MAKEINFO], [makeinfo])
962 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
963 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
964 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
965 # For better backward compatibility. To be removed once Automake 1.9.x
966 # dies out for good. For more background, see:
967 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
968 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
969 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
970 # We need awk for the "check" target (and possibly the TAP driver). The
971 # system "awk" is bad on some platforms.
972 AC_REQUIRE([AC_PROG_AWK])dnl
973 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
974 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
975 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
976 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
977 [_AM_PROG_TAR([v7])])])
978 _AM_IF_OPTION([no-dependencies],,
979 [AC_PROVIDE_IFELSE([AC_PROG_CC],
980 [_AM_DEPENDENCIES([CC])],
981 [m4_define([AC_PROG_CC],
982 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
983 AC_PROVIDE_IFELSE([AC_PROG_CXX],
984 [_AM_DEPENDENCIES([CXX])],
985 [m4_define([AC_PROG_CXX],
986 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
987 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
988 [_AM_DEPENDENCIES([OBJC])],
989 [m4_define([AC_PROG_OBJC],
990 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
991 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
992 [_AM_DEPENDENCIES([OBJCXX])],
993 [m4_define([AC_PROG_OBJCXX],
994 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
996 AC_REQUIRE([AM_SILENT_RULES])dnl
997 dnl The testsuite driver may need to know about EXEEXT, so add the
998 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
999 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1000 AC_CONFIG_COMMANDS_PRE(dnl
1001 [m4_provide_if([_AM_COMPILER_EXEEXT],
1002 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1004 # POSIX will say in a future version that running "rm -f" with no argument
1005 # is OK; and we want to be able to make that assumption in our Makefile
1006 # recipes. So use an aggressive probe to check that the usage we want is
1007 # actually supported "in the wild" to an acceptable degree.
1008 # See automake bug#10828.
1009 # To make any issue more visible, cause the running configure to be aborted
1010 # by default if the 'rm' program in use doesn't match our expectations; the
1011 # user can still override this though.
1012 if rm -f && rm -fr && rm -rf; then : OK; else
1016 Your 'rm' program seems unable to run without file operands specified
1017 on the command line, even when the '-f' option is present. This is contrary
1018 to the behaviour of most rm programs out there, and not conforming with
1019 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1021 Please tell bug-automake@gnu.org about your system, including the value
1022 of your $PATH and any error possibly output before this message. This
1023 can help us improve future automake versions.
1026 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1027 echo 'Configuration will proceed anyway, since you have set the' >&2
1028 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1032 Aborting the configuration process, to ensure you take notice of the issue.
1034 You can download and install GNU coreutils to get an 'rm' implementation
1035 that behaves properly: <https://www.gnu.org/software/coreutils/>.
1037 If you want to complete the configuration process using your problematic
1038 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1039 to "yes", and re-run configure.
1042 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1045 dnl The trailing newline in this macro's definition is deliberate, for
1046 dnl backward compatibility and to allow trailing 'dnl'-style comments
1047 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1050 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1051 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1052 dnl mangled by Autoconf and run in a shell conditional statement.
1053 m4_define([_AC_COMPILER_EXEEXT],
1054 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1056 # When config.status generates a header, we must update the stamp-h file.
1057 # This file resides in the same directory as the config header
1058 # that is generated. The stamp files are numbered to have different names.
1060 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1061 # loop where config.status creates the headers, so we can generate
1062 # our stamp files there.
1063 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1064 [# Compute $1's index in $config_headers.
1067 for _am_header in $config_headers :; do
1069 $_am_arg | $_am_arg:* )
1072 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1075 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1077 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1079 # This file is free software; the Free Software Foundation
1080 # gives unlimited permission to copy and/or distribute it,
1081 # with or without modifications, as long as this notice is preserved.
1083 # AM_PROG_INSTALL_SH
1084 # ------------------
1085 # Define $install_sh.
1086 AC_DEFUN([AM_PROG_INSTALL_SH],
1087 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1088 if test x"${install_sh+set}" != xset; then
1091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1093 install_sh="\${SHELL} $am_aux_dir/install-sh"
1096 AC_SUBST([install_sh])])
1098 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
1100 # This file is free software; the Free Software Foundation
1101 # gives unlimited permission to copy and/or distribute it,
1102 # with or without modifications, as long as this notice is preserved.
1104 # Check whether the underlying file-system supports filenames
1105 # with a leading dot. For instance MS-DOS doesn't.
1106 AC_DEFUN([AM_SET_LEADING_DOT],
1107 [rm -rf .tst 2>/dev/null
1108 mkdir .tst 2>/dev/null
1109 if test -d .tst; then
1114 rmdir .tst 2>/dev/null
1115 AC_SUBST([am__leading_dot])])
1117 # Check to see how 'make' treats includes. -*- Autoconf -*-
1119 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1121 # This file is free software; the Free Software Foundation
1122 # gives unlimited permission to copy and/or distribute it,
1123 # with or without modifications, as long as this notice is preserved.
1127 # Check whether make has an 'include' directive that can support all
1128 # the idioms we need for our automatic dependency tracking code.
1129 AC_DEFUN([AM_MAKE_INCLUDE],
1130 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1131 cat > confinc.mk << 'END'
1133 @echo this is the am__doit target >confinc.out
1138 # BSD make does it like this.
1139 echo '.include "confinc.mk" # ignored' > confmf.BSD
1140 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1141 echo 'include confinc.mk # ignored' > confmf.GNU
1143 for s in GNU BSD; do
1144 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1145 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1146 ['0:this is the am__doit target'],
1148 [BSD], [am__include='.include' am__quote='"'],
1149 [am__include='include' am__quote=''])])
1150 if test "$am__include" != "#"; then
1151 _am_result="yes ($s style)"
1155 rm -f confinc.* confmf.*
1156 AC_MSG_RESULT([${_am_result}])
1157 AC_SUBST([am__include])])
1158 AC_SUBST([am__quote])])
1160 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1162 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
1164 # This file is free software; the Free Software Foundation
1165 # gives unlimited permission to copy and/or distribute it,
1166 # with or without modifications, as long as this notice is preserved.
1168 # AM_MISSING_PROG(NAME, PROGRAM)
1169 # ------------------------------
1170 AC_DEFUN([AM_MISSING_PROG],
1171 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1172 $1=${$1-"${am_missing_run}$2"}
1175 # AM_MISSING_HAS_RUN
1176 # ------------------
1177 # Define MISSING if not defined so far and test if it is modern enough.
1178 # If it is, set am_missing_run to use it, otherwise, to nothing.
1179 AC_DEFUN([AM_MISSING_HAS_RUN],
1180 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1181 AC_REQUIRE_AUX_FILE([missing])dnl
1182 if test x"${MISSING+set}" != xset; then
1185 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1187 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1190 # Use eval to expand $SHELL
1191 if eval "$MISSING --is-lightweight"; then
1192 am_missing_run="$MISSING "
1195 AC_MSG_WARN(['missing' script is too old or missing])
1199 # Helper functions for option handling. -*- Autoconf -*-
1201 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1203 # This file is free software; the Free Software Foundation
1204 # gives unlimited permission to copy and/or distribute it,
1205 # with or without modifications, as long as this notice is preserved.
1207 # _AM_MANGLE_OPTION(NAME)
1208 # -----------------------
1209 AC_DEFUN([_AM_MANGLE_OPTION],
1210 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1212 # _AM_SET_OPTION(NAME)
1213 # --------------------
1214 # Set option NAME. Presently that only means defining a flag for this option.
1215 AC_DEFUN([_AM_SET_OPTION],
1216 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1218 # _AM_SET_OPTIONS(OPTIONS)
1219 # ------------------------
1220 # OPTIONS is a space-separated list of Automake options.
1221 AC_DEFUN([_AM_SET_OPTIONS],
1222 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1224 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1225 # -------------------------------------------
1226 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1227 AC_DEFUN([_AM_IF_OPTION],
1228 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1230 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
1232 # This file is free software; the Free Software Foundation
1233 # gives unlimited permission to copy and/or distribute it,
1234 # with or without modifications, as long as this notice is preserved.
1238 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1239 # to automatically call this.
1240 AC_DEFUN([_AM_PROG_CC_C_O],
1241 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1242 AC_REQUIRE_AUX_FILE([compile])dnl
1243 AC_LANG_PUSH([C])dnl
1245 [whether $CC understands -c and -o together],
1246 [am_cv_prog_cc_c_o],
1247 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1248 # Make sure it works both with $CC and with simple cc.
1249 # Following AC_PROG_CC_C_O, we do the test twice because some
1250 # compilers refuse to overwrite an existing .o file with -o,
1251 # though they will create one.
1252 am_cv_prog_cc_c_o=yes
1254 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1255 && test -f conftest2.$ac_objext; then
1258 am_cv_prog_cc_c_o=no
1262 rm -f core conftest*
1264 if test "$am_cv_prog_cc_c_o" != yes; then
1265 # Losing compiler, so override with the script.
1266 # FIXME: It is wrong to rewrite CC.
1267 # But if we don't then we get into trouble of one sort or another.
1268 # A longer-term fix would be to have automake use am__CC in this case,
1269 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1270 CC="$am_aux_dir/compile $CC"
1274 # For backward compatibility.
1275 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1277 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1279 # This file is free software; the Free Software Foundation
1280 # gives unlimited permission to copy and/or distribute it,
1281 # with or without modifications, as long as this notice is preserved.
1283 # AM_RUN_LOG(COMMAND)
1284 # -------------------
1285 # Run COMMAND, save the exit status in ac_status, and log it.
1286 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1287 AC_DEFUN([AM_RUN_LOG],
1288 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1289 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1291 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1292 (exit $ac_status); }])
1294 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1296 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
1298 # This file is free software; the Free Software Foundation
1299 # gives unlimited permission to copy and/or distribute it,
1300 # with or without modifications, as long as this notice is preserved.
1304 AC_DEFUN([AM_SANITY_CHECK],
1305 [AC_MSG_CHECKING([whether build environment is sane])
1306 # Reject unsafe characters in $srcdir or the absolute working directory
1307 # name. Accept space and tab only in the latter.
1311 *[[\\\"\#\$\&\'\`$am_lf]]*)
1312 AC_MSG_ERROR([unsafe absolute working directory name]);;
1315 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1316 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1319 # Do 'set' in a subshell so we don't clobber the current shell's
1320 # arguments. Must try -L first in case configure is actually a
1321 # symlink; some systems play weird games with the mod time of symlinks
1322 # (eg FreeBSD returns the mod time of the symlink's containing
1326 for am_try in 1 2; do
1327 echo "timestamp, slept: $am_has_slept" > conftest.file
1328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1329 if test "$[*]" = "X"; then
1331 set X `ls -t "$srcdir/configure" conftest.file`
1333 if test "$[*]" != "X $srcdir/configure conftest.file" \
1334 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1336 # If neither matched, then we have a broken ls. This can happen
1337 # if, for instance, CONFIG_SHELL is bash and it inherits a
1338 # broken ls alias from the environment. This has actually
1339 # happened. Such a system could not be considered "sane".
1340 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1341 alias in your environment])
1343 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1350 test "$[2]" = conftest.file
1356 AC_MSG_ERROR([newly created file is older than distributed files!
1357 Check your system clock])
1359 AC_MSG_RESULT([yes])
1360 # If we didn't sleep, we still need to ensure time stamps of config.status and
1361 # generated files are strictly newer.
1363 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1367 AC_CONFIG_COMMANDS_PRE(
1368 [AC_MSG_CHECKING([that generated files are newer than configure])
1369 if test -n "$am_sleep_pid"; then
1370 # Hide warnings about reused PIDs.
1371 wait $am_sleep_pid 2>/dev/null
1373 AC_MSG_RESULT([done])])
1377 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
1379 # This file is free software; the Free Software Foundation
1380 # gives unlimited permission to copy and/or distribute it,
1381 # with or without modifications, as long as this notice is preserved.
1383 # AM_SILENT_RULES([DEFAULT])
1384 # --------------------------
1385 # Enable less verbose build rules; with the default set to DEFAULT
1386 # ("yes" being less verbose, "no" or empty being verbose).
1387 AC_DEFUN([AM_SILENT_RULES],
1388 [AC_ARG_ENABLE([silent-rules], [dnl
1390 [--enable-silent-rules],
1391 [less verbose build output (undo: "make V=1")])
1393 [--disable-silent-rules],
1394 [verbose build output (undo: "make V=0")])dnl
1396 case $enable_silent_rules in @%:@ (((
1397 yes) AM_DEFAULT_VERBOSITY=0;;
1398 no) AM_DEFAULT_VERBOSITY=1;;
1399 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1402 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1403 dnl do not support nested variable expansions.
1404 dnl See automake bug#9928 and bug#10237.
1405 am_make=${MAKE-make}
1406 AC_CACHE_CHECK([whether $am_make supports nested variables],
1407 [am_cv_make_support_nested_variables],
1408 [if AS_ECHO([['TRUE=$(BAR$(V))
1414 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1415 am_cv_make_support_nested_variables=yes
1417 am_cv_make_support_nested_variables=no
1419 if test $am_cv_make_support_nested_variables = yes; then
1420 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1422 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1424 AM_V=$AM_DEFAULT_VERBOSITY
1425 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1428 AM_SUBST_NOTMAKE([AM_V])dnl
1429 AC_SUBST([AM_DEFAULT_V])dnl
1430 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1431 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1433 AC_SUBST([AM_BACKSLASH])dnl
1434 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1437 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
1439 # This file is free software; the Free Software Foundation
1440 # gives unlimited permission to copy and/or distribute it,
1441 # with or without modifications, as long as this notice is preserved.
1443 # AM_PROG_INSTALL_STRIP
1444 # ---------------------
1445 # One issue with vendor 'install' (even GNU) is that you can't
1446 # specify the program used to strip binaries. This is especially
1447 # annoying in cross-compiling environments, where the build's strip
1448 # is unlikely to handle the host's binaries.
1449 # Fortunately install-sh will honor a STRIPPROG variable, so we
1450 # always use install-sh in "make install-strip", and initialize
1451 # STRIPPROG with the value of the STRIP variable (set by the user).
1452 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1453 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1454 # Installed binaries are usually stripped using 'strip' when the user
1455 # run "make install-strip". However 'strip' might not be the right
1456 # tool to use in cross-compilation environments, therefore Automake
1457 # will honor the 'STRIP' environment variable to overrule this program.
1458 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1459 if test "$cross_compiling" != no; then
1460 AC_CHECK_TOOL([STRIP], [strip], :)
1462 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1463 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1465 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1467 # This file is free software; the Free Software Foundation
1468 # gives unlimited permission to copy and/or distribute it,
1469 # with or without modifications, as long as this notice is preserved.
1471 # _AM_SUBST_NOTMAKE(VARIABLE)
1472 # ---------------------------
1473 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1474 # This macro is traced by Automake.
1475 AC_DEFUN([_AM_SUBST_NOTMAKE])
1477 # AM_SUBST_NOTMAKE(VARIABLE)
1478 # --------------------------
1479 # Public sister of _AM_SUBST_NOTMAKE.
1480 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1482 # Check how to create a tarball. -*- Autoconf -*-
1484 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
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.
1490 # _AM_PROG_TAR(FORMAT)
1491 # --------------------
1492 # Check how to create a tarball in format FORMAT.
1493 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1495 # Substitute a variable $(am__tar) that is a command
1496 # writing to stdout a FORMAT-tarball containing the directory
1498 # tardir=directory && $(am__tar) > result.tar
1500 # Substitute a variable $(am__untar) that extract such
1501 # a tarball read from stdin.
1502 # $(am__untar) < result.tar
1504 AC_DEFUN([_AM_PROG_TAR],
1505 [# Always define AMTAR for backward compatibility. Yes, it's still used
1506 # in the wild :-( We should find a proper way to deprecate it ...
1507 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1509 # We'll loop over all known methods to create a tar archive until one works.
1510 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1513 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1517 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1518 # There is notably a 21 bits limit for the UID and the GID. In fact,
1519 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1521 am_max_uid=2097151 # 2^21 - 1
1522 am_max_gid=$am_max_uid
1523 # The $UID and $GID variables are not portable, so we need to resort
1524 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1525 # below are definitely unexpected, so allow the users to see them
1526 # (that is, avoid stderr redirection).
1527 am_uid=`id -u || echo unknown`
1528 am_gid=`id -g || echo unknown`
1529 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1530 if test $am_uid -le $am_max_uid; then
1531 AC_MSG_RESULT([yes])
1536 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1537 if test $am_gid -le $am_max_gid; then
1538 AC_MSG_RESULT([yes])
1547 [m4_fatal([Unknown tar format])])
1549 AC_MSG_CHECKING([how to create a $1 tar archive])
1551 # Go ahead even if we have the value already cached. We do so because we
1552 # need to set the values for the 'am__tar' and 'am__untar' variables.
1553 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1555 for _am_tool in $_am_tools; do
1558 for _am_tar in tar gnutar gtar; do
1559 AM_RUN_LOG([$_am_tar --version]) && break
1561 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1562 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1563 am__untar="$_am_tar -xf -"
1566 # Must skip GNU tar: if it does not support --format= it doesn't create
1567 # ustar tarball either.
1568 (tar --version) >/dev/null 2>&1 && continue
1569 am__tar='tar chf - "$$tardir"'
1570 am__tar_='tar chf - "$tardir"'
1571 am__untar='tar xf -'
1574 am__tar='pax -L -x $1 -w "$$tardir"'
1575 am__tar_='pax -L -x $1 -w "$tardir"'
1579 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1580 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1581 am__untar='cpio -i -H $1 -d'
1590 # If the value was cached, stop now. We just wanted to have am__tar
1591 # and am__untar set.
1592 test -n "${am_cv_prog_tar_$1}" && break
1594 # tar/untar a dummy directory, and stop if the command works.
1597 echo GrepMe > conftest.dir/file
1598 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1600 if test -s conftest.tar; then
1601 AM_RUN_LOG([$am__untar <conftest.tar])
1602 AM_RUN_LOG([cat conftest.dir/file])
1603 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1608 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1609 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1612 AC_SUBST([am__untar])
1615 m4_include([m4/ax_check_link_flag.m4])
1616 m4_include([m4/ax_code_coverage.m4])
1617 m4_include([m4/ax_cxx_compile_stdcxx.m4])
1618 m4_include([m4/ax_pthread.m4])
1619 m4_include([m4/gtk-doc.m4])
1620 m4_include([m4/libtool.m4])
1621 m4_include([m4/ltoptions.m4])
1622 m4_include([m4/ltsugar.m4])
1623 m4_include([m4/ltversion.m4])
1624 m4_include([m4/lt~obsolete.m4])