1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
3 # Copyright (C) 1996-2014 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'.])])
24 dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
25 dnl the schema should be compiled
28 AC_DEFUN([GLIB_GSETTINGS],
30 m4_pattern_allow([AM_V_GEN])
31 AC_ARG_ENABLE(schemas-compile,
32 AS_HELP_STRING([--disable-schemas-compile],
33 [Disable regeneration of gschemas.compiled on install]),
35 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
36 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
37 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
39 AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
40 PKG_PROG_PKG_CONFIG([0.16])
41 AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
42 if test x$cross_compiling != xyes; then
43 GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
45 AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
47 AC_SUBST(GLIB_COMPILE_SCHEMAS)
48 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
49 ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
51 ifelse([$1],,[:],[$1])
55 .PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
57 mostlyclean-am: clean-gsettings-schemas
59 gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
61 %.gschema.valid: %.gschema.xml $(gsettings__enum_file)
62 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@
64 all-am: $(gsettings_SCHEMAS:.xml=.valid)
65 uninstall-am: uninstall-gsettings-schemas
66 install-data-am: install-gsettings-schemas
68 .SECONDARY: $(gsettings_SCHEMAS)
70 install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
72 if test -n "$^"; then \
73 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
74 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
75 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
78 uninstall-gsettings-schemas:
80 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
81 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
82 test -n "$$files" || exit 0; \
83 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
84 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
85 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
87 clean-gsettings-schemas:
88 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
90 ifdef gsettings_ENUM_NAMESPACE
91 $(gsettings__enum_file): $(gsettings_ENUM_FILES)
92 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
95 _GSETTINGS_SUBST(GSETTINGS_RULES)
98 dnl _GSETTINGS_SUBST(VARIABLE)
99 dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
100 AC_DEFUN([_GSETTINGS_SUBST],
103 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
107 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
108 dnl serial 11 (pkg-config-0.29.1)
110 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
111 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
113 dnl This program is free software; you can redistribute it and/or modify
114 dnl it under the terms of the GNU General Public License as published by
115 dnl the Free Software Foundation; either version 2 of the License, or
116 dnl (at your option) any later version.
118 dnl This program is distributed in the hope that it will be useful, but
119 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
120 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
121 dnl General Public License for more details.
123 dnl You should have received a copy of the GNU General Public License
124 dnl along with this program; if not, write to the Free Software
125 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
128 dnl As a special exception to the GNU General Public License, if you
129 dnl distribute this file as part of a program that contains a
130 dnl configuration script generated by Autoconf, you may include it under
131 dnl the same distribution terms that you use for the rest of that
134 dnl PKG_PREREQ(MIN-VERSION)
135 dnl -----------------------
138 dnl Verify that the version of the pkg-config macros are at least
139 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
140 dnl installed version of pkg-config, this checks the developer's version
141 dnl of pkg.m4 when generating configure.
143 dnl To ensure that this macro is defined, also add:
144 dnl m4_ifndef([PKG_PREREQ],
145 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
147 dnl See the "Since" comment for each macro you use to see what version
148 dnl of the macros you require.
149 m4_defun([PKG_PREREQ],
150 [m4_define([PKG_MACROS_VERSION], [0.29.1])
151 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
152 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
155 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
156 dnl ----------------------------------
159 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
160 dnl first found in the path. Checks that the version of pkg-config found
161 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
162 dnl used since that's the first version where most current features of
163 dnl pkg-config existed.
164 AC_DEFUN([PKG_PROG_PKG_CONFIG],
165 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
166 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
167 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
168 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
169 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
170 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
172 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
173 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
175 if test -n "$PKG_CONFIG"; then
176 _pkg_min_version=m4_default([$1], [0.9.0])
177 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
178 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
185 ])dnl PKG_PROG_PKG_CONFIG
187 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
188 dnl -------------------------------------------------------------------
191 dnl Check to see whether a particular set of modules exists. Similar to
192 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
194 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
195 dnl only at the first occurence in configure.ac, so if the first place
196 dnl it's called might be skipped (such as if it is within an "if", you
197 dnl have to call PKG_CHECK_EXISTS manually
198 AC_DEFUN([PKG_CHECK_EXISTS],
199 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
200 if test -n "$PKG_CONFIG" && \
201 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
202 m4_default([$2], [:])
203 m4_ifvaln([$3], [else
207 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
208 dnl ---------------------------------------------
209 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
210 dnl pkg_failed based on the result.
211 m4_define([_PKG_CONFIG],
212 [if test -n "$$1"; then
214 elif test -n "$PKG_CONFIG"; then
215 PKG_CHECK_EXISTS([$3],
216 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
217 test "x$?" != "x0" && pkg_failed=yes ],
224 dnl _PKG_SHORT_ERRORS_SUPPORTED
225 dnl ---------------------------
226 dnl Internal check to see if pkg-config supports short errors.
227 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
230 _pkg_short_errors_supported=yes
232 _pkg_short_errors_supported=no
234 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
237 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
238 dnl [ACTION-IF-NOT-FOUND])
239 dnl --------------------------------------------------------------
242 dnl Note that if there is a possibility the first call to
243 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
244 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
245 AC_DEFUN([PKG_CHECK_MODULES],
246 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
247 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
248 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
251 AC_MSG_CHECKING([for $1])
253 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
254 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
256 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
257 and $1[]_LIBS to avoid the need to call pkg-config.
258 See the pkg-config man page for more details.])
260 if test $pkg_failed = yes; then
262 _PKG_SHORT_ERRORS_SUPPORTED
263 if test $_pkg_short_errors_supported = yes; then
264 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
266 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
268 # Put the nasty error message in config.log where it belongs
269 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
271 m4_default([$4], [AC_MSG_ERROR(
272 [Package requirements ($2) were not met:
276 Consider adjusting the PKG_CONFIG_PATH environment variable if you
277 installed software in a non-standard prefix.
281 elif test $pkg_failed = untried; then
283 m4_default([$4], [AC_MSG_FAILURE(
284 [The pkg-config script could not be found or is too old. Make sure it
285 is in your PATH or set the PKG_CONFIG environment variable to the full
290 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
293 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
294 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
298 ])dnl PKG_CHECK_MODULES
301 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
302 dnl [ACTION-IF-NOT-FOUND])
303 dnl ---------------------------------------------------------------------
306 dnl Checks for existence of MODULES and gathers its build flags with
307 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
308 dnl and VARIABLE-PREFIX_LIBS from --libs.
310 dnl Note that if there is a possibility the first call to
311 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
312 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
314 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
315 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
316 _save_PKG_CONFIG=$PKG_CONFIG
317 PKG_CONFIG="$PKG_CONFIG --static"
318 PKG_CHECK_MODULES($@)
319 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
320 ])dnl PKG_CHECK_MODULES_STATIC
323 dnl PKG_INSTALLDIR([DIRECTORY])
324 dnl -------------------------
327 dnl Substitutes the variable pkgconfigdir as the location where a module
328 dnl should install pkg-config .pc files. By default the directory is
329 dnl $libdir/pkgconfig, but the default can be changed by passing
330 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
332 AC_DEFUN([PKG_INSTALLDIR],
333 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
334 m4_pushdef([pkg_description],
335 [pkg-config installation directory @<:@]pkg_default[@:>@])
336 AC_ARG_WITH([pkgconfigdir],
337 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
338 [with_pkgconfigdir=]pkg_default)
339 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
340 m4_popdef([pkg_default])
341 m4_popdef([pkg_description])
345 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
346 dnl --------------------------------
349 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
350 dnl module should install arch-independent pkg-config .pc files. By
351 dnl default the directory is $datadir/pkgconfig, but the default can be
352 dnl changed by passing DIRECTORY. The user can override through the
353 dnl --with-noarch-pkgconfigdir parameter.
354 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
355 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
356 m4_pushdef([pkg_description],
357 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
358 AC_ARG_WITH([noarch-pkgconfigdir],
359 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
360 [with_noarch_pkgconfigdir=]pkg_default)
361 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
362 m4_popdef([pkg_default])
363 m4_popdef([pkg_description])
364 ])dnl PKG_NOARCH_INSTALLDIR
367 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
368 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
369 dnl -------------------------------------------
372 dnl Retrieves the value of the pkg-config variable for the given module.
373 AC_DEFUN([PKG_CHECK_VAR],
374 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
375 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
377 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
378 AS_VAR_COPY([$1], [pkg_cv_][$1])
380 AS_VAR_IF([$1], [""], [$5], [$4])dnl
383 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
385 # This file is free software; the Free Software Foundation
386 # gives unlimited permission to copy and/or distribute it,
387 # with or without modifications, as long as this notice is preserved.
389 # AM_AUTOMAKE_VERSION(VERSION)
390 # ----------------------------
391 # Automake X.Y traces this macro to ensure aclocal.m4 has been
392 # generated from the m4 files accompanying Automake X.Y.
393 # (This private macro should not be called outside this file.)
394 AC_DEFUN([AM_AUTOMAKE_VERSION],
395 [am__api_version='1.15'
396 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
397 dnl require some minimum version. Point them to the right macro.
398 m4_if([$1], [1.15], [],
399 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
402 # _AM_AUTOCONF_VERSION(VERSION)
403 # -----------------------------
404 # aclocal traces this macro to find the Autoconf version.
405 # This is a private macro too. Using m4_define simplifies
406 # the logic in aclocal, which can simply ignore this definition.
407 m4_define([_AM_AUTOCONF_VERSION], [])
409 # AM_SET_CURRENT_AUTOMAKE_VERSION
410 # -------------------------------
411 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
412 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
413 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
414 [AM_AUTOMAKE_VERSION([1.15])dnl
415 m4_ifndef([AC_AUTOCONF_VERSION],
416 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
417 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
419 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
421 # This file is free software; the Free Software Foundation
422 # gives unlimited permission to copy and/or distribute it,
423 # with or without modifications, as long as this notice is preserved.
425 # AM_PROG_AR([ACT-IF-FAIL])
426 # -------------------------
427 # Try to determine the archiver interface, and trigger the ar-lib wrapper
428 # if it is needed. If the detection of archiver interface fails, run
429 # ACT-IF-FAIL (default is to abort configure with a proper error message).
430 AC_DEFUN([AM_PROG_AR],
431 [AC_BEFORE([$0], [LT_INIT])dnl
432 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
433 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
434 AC_REQUIRE_AUX_FILE([ar-lib])dnl
435 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
438 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
440 am_cv_ar_interface=ar
441 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
442 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
443 AC_TRY_EVAL([am_ar_try])
444 if test "$ac_status" -eq 0; then
445 am_cv_ar_interface=ar
447 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
448 AC_TRY_EVAL([am_ar_try])
449 if test "$ac_status" -eq 0; then
450 am_cv_ar_interface=lib
452 am_cv_ar_interface=unknown
455 rm -f conftest.lib libconftest.a
459 case $am_cv_ar_interface in
463 # Microsoft lib, so override with the ar-lib wrapper script.
464 # FIXME: It is wrong to rewrite AR.
465 # But if we don't then we get into trouble of one sort or another.
466 # A longer-term fix would be to have automake use am__AR in this case,
467 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
469 AR="$am_aux_dir/ar-lib $AR"
473 [AC_MSG_ERROR([could not determine $AR interface])])
479 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
481 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
483 # This file is free software; the Free Software Foundation
484 # gives unlimited permission to copy and/or distribute it,
485 # with or without modifications, as long as this notice is preserved.
487 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
488 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
489 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
491 # Of course, Automake must honor this variable whenever it calls a
492 # tool from the auxiliary directory. The problem is that $srcdir (and
493 # therefore $ac_aux_dir as well) can be either absolute or relative,
494 # depending on how configure is run. This is pretty annoying, since
495 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
496 # source directory, any form will work fine, but in subdirectories a
497 # relative path needs to be adjusted first.
499 # $ac_aux_dir/missing
500 # fails when called from a subdirectory if $ac_aux_dir is relative
501 # $top_srcdir/$ac_aux_dir/missing
502 # fails if $ac_aux_dir is absolute,
503 # fails when called from a subdirectory in a VPATH build with
504 # a relative $ac_aux_dir
506 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
507 # are both prefixed by $srcdir. In an in-source build this is usually
508 # harmless because $srcdir is '.', but things will broke when you
509 # start a VPATH build or use an absolute $srcdir.
511 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
512 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
513 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
514 # and then we would define $MISSING as
515 # MISSING="\${SHELL} $am_aux_dir/missing"
516 # This will work as long as MISSING is not called from configure, because
517 # unfortunately $(top_srcdir) has no meaning in configure.
518 # However there are other variables, like CC, which are often used in
519 # configure, and could therefore not use this "fixed" $ac_aux_dir.
521 # Another solution, used here, is to always expand $ac_aux_dir to an
522 # absolute PATH. The drawback is that using absolute paths prevent a
523 # configured tree to be moved without reconfiguration.
525 AC_DEFUN([AM_AUX_DIR_EXPAND],
526 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
527 # Expand $ac_aux_dir to an absolute path.
528 am_aux_dir=`cd "$ac_aux_dir" && pwd`
531 # AM_CONDITIONAL -*- Autoconf -*-
533 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
535 # This file is free software; the Free Software Foundation
536 # gives unlimited permission to copy and/or distribute it,
537 # with or without modifications, as long as this notice is preserved.
539 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
540 # -------------------------------------
541 # Define a conditional.
542 AC_DEFUN([AM_CONDITIONAL],
543 [AC_PREREQ([2.52])dnl
544 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
545 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
546 AC_SUBST([$1_TRUE])dnl
547 AC_SUBST([$1_FALSE])dnl
548 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
549 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
550 m4_define([_AM_COND_VALUE_$1], [$2])dnl
558 AC_CONFIG_COMMANDS_PRE(
559 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
560 AC_MSG_ERROR([[conditional "$1" was never defined.
561 Usually this means the macro was only invoked conditionally.]])
564 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
566 # This file is free software; the Free Software Foundation
567 # gives unlimited permission to copy and/or distribute it,
568 # with or without modifications, as long as this notice is preserved.
571 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
572 # written in clear, in which case automake, when reading aclocal.m4,
573 # will think it sees a *use*, and therefore will trigger all it's
574 # C support machinery. Also note that it means that autoscan, seeing
575 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
578 # _AM_DEPENDENCIES(NAME)
579 # ----------------------
580 # See how the compiler implements dependency checking.
581 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
582 # We try a few techniques and use that to set a single cache variable.
584 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
585 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
586 # dependency, and given that the user is not expected to run this macro,
587 # just rely on AC_PROG_CC.
588 AC_DEFUN([_AM_DEPENDENCIES],
589 [AC_REQUIRE([AM_SET_DEPDIR])dnl
590 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
591 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
592 AC_REQUIRE([AM_DEP_TRACK])dnl
594 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
595 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
596 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
597 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
598 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
599 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
600 [depcc="$$1" am_compiler_list=])
602 AC_CACHE_CHECK([dependency style of $depcc],
603 [am_cv_$1_dependencies_compiler_type],
604 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
605 # We make a subdir and do the tests there. Otherwise we can end up
606 # making bogus files that we don't know about and never remove. For
607 # instance it was reported that on HP-UX the gcc test will end up
608 # making a dummy file named 'D' -- because '-MD' means "put the output
612 # Copy depcomp to subdir because otherwise we won't find it if we're
613 # using a relative directory.
614 cp "$am_depcomp" conftest.dir
616 # We will build objects and dependencies in a subdirectory because
617 # it helps to detect inapplicable dependency modes. For instance
618 # both Tru64's cc and ICC support -MD to output dependencies as a
619 # side effect of compilation, but ICC will put the dependencies in
620 # the current directory while Tru64 will put them in the object
624 am_cv_$1_dependencies_compiler_type=none
625 if test "$am_compiler_list" = ""; then
626 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
630 [case " $depcc " in #(
631 *\ -arch\ *\ -arch\ *) am__universal=true ;;
634 [case " $depcc " in #(
635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
638 for depmode in $am_compiler_list; do
639 # Setup a source with many dependencies, because some compilers
640 # like to wrap large dependency lists on column 80 (with \), and
641 # we should not choose a depcomp mode which is confused by this.
643 # We need to recreate these files for each test, as the compiler may
644 # overwrite some of them when testing with obscure command lines.
645 # This happens at least with the AIX C compiler.
647 for i in 1 2 3 4 5 6; do
648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
649 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
650 # Solaris 10 /bin/sh.
651 echo '/* dummy */' > sub/conftst$i.h
653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
655 # We check with '-c' and '-o' for the sake of the "dashmstdout"
656 # mode. It turns out that the SunPro C++ compiler does not properly
657 # handle '-M -o', and we need to detect this. Also, some Intel
658 # versions had trouble with output in subdirs.
659 am__obj=sub/conftest.${OBJEXT-o}
660 am__minus_obj="-o $am__obj"
663 # This depmode causes a compiler race in universal mode.
664 test "$am__universal" = false || continue
667 # After this tag, mechanisms are not by side-effect, so they'll
668 # only be used when explicitly requested.
669 if test "x$enable_dependency_tracking" = xyes; then
675 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
676 # This compiler won't grok '-c -o', but also, the minuso test has
677 # not run yet. These depmodes are late enough in the game, and
678 # so weak that their functioning should not be impacted.
679 am__obj=conftest.${OBJEXT-o}
684 if depmode=$depmode \
685 source=sub/conftest.c object=$am__obj \
686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
688 >/dev/null 2>conftest.err &&
689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
693 # icc doesn't choke on unknown options, it will just issue warnings
694 # or remarks (even with -Werror). So we grep stderr for any message
695 # that says an option was ignored or not supported.
696 # When given -MP, icc 7.0 and 7.1 complain thusly:
697 # icc: Command line warning: ignoring option '-M'; no argument required
698 # The diagnosis changed in icc 8.0:
699 # icc: Command line remark: option '-MP' not supported
700 if (grep 'ignoring option' conftest.err ||
701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
702 am_cv_$1_dependencies_compiler_type=$depmode
711 am_cv_$1_dependencies_compiler_type=none
714 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
715 AM_CONDITIONAL([am__fastdep$1], [
716 test "x$enable_dependency_tracking" != xno \
717 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
723 # Choose a directory name for dependency files.
724 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
725 AC_DEFUN([AM_SET_DEPDIR],
726 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
727 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
733 AC_DEFUN([AM_DEP_TRACK],
734 [AC_ARG_ENABLE([dependency-tracking], [dnl
736 [--enable-dependency-tracking],
737 [do not reject slow dependency extractors])
739 [--disable-dependency-tracking],
740 [speeds up one-time build])])
741 if test "x$enable_dependency_tracking" != xno; then
742 am_depcomp="$ac_aux_dir/depcomp"
746 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
747 AC_SUBST([AMDEPBACKSLASH])dnl
748 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
749 AC_SUBST([am__nodep])dnl
750 _AM_SUBST_NOTMAKE([am__nodep])dnl
753 # Generate code to set up dependency tracking. -*- Autoconf -*-
755 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
757 # This file is free software; the Free Software Foundation
758 # gives unlimited permission to copy and/or distribute it,
759 # with or without modifications, as long as this notice is preserved.
762 # _AM_OUTPUT_DEPENDENCY_COMMANDS
763 # ------------------------------
764 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
766 # Older Autoconf quotes --file arguments for eval, but not when files
767 # are listed without --file. Let's play safe and only enable the eval
768 # if we detect the quoting.
769 case $CONFIG_FILES in
770 *\'*) eval set x "$CONFIG_FILES" ;;
771 *) set x $CONFIG_FILES ;;
776 # Strip MF so we end up with the name of the file.
777 mf=`echo "$mf" | sed -e 's/:.*$//'`
778 # Check whether this is an Automake generated Makefile or not.
779 # We used to match only the files named 'Makefile.in', but
780 # some people rename them; so instead we look at the file content.
781 # Grep'ing the first line is not enough: some people post-process
782 # each Makefile.in and add a new line on top of each file to say so.
783 # Grep'ing the whole file is not good either: AIX grep has a line
784 # limit of 2048, but all sed's we know have understand at least 4000.
785 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
786 dirpart=`AS_DIRNAME("$mf")`
790 # Extract the definition of DEPDIR, am__include, and am__quote
791 # from the Makefile without running 'make'.
792 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
793 test -z "$DEPDIR" && continue
794 am__include=`sed -n 's/^am__include = //p' < "$mf"`
795 test -z "$am__include" && continue
796 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
797 # Find all dependency output files, they are included files with
798 # $(DEPDIR) in their names. We invoke sed twice because it is the
799 # simplest approach to changing $(DEPDIR) to its actual value in the
801 for file in `sed -n "
802 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
803 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
804 # Make sure the directory exists.
805 test -f "$dirpart/$file" && continue
806 fdir=`AS_DIRNAME(["$file"])`
807 AS_MKDIR_P([$dirpart/$fdir])
808 # echo "creating $dirpart/$file"
809 echo '# dummy' > "$dirpart/$file"
813 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
816 # AM_OUTPUT_DEPENDENCY_COMMANDS
817 # -----------------------------
818 # This macro should only be invoked once -- use via AC_REQUIRE.
820 # This code is only required when automatic dependency tracking
821 # is enabled. FIXME. This creates each '.P' file that we will
822 # need in order to bootstrap the dependency handling code.
823 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
824 [AC_CONFIG_COMMANDS([depfiles],
825 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
826 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
829 # Do all the work for Automake. -*- Autoconf -*-
831 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
833 # This file is free software; the Free Software Foundation
834 # gives unlimited permission to copy and/or distribute it,
835 # with or without modifications, as long as this notice is preserved.
837 # This macro actually does too much. Some checks are only needed if
838 # your package does certain things. But this isn't really a big deal.
840 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
841 m4_define([AC_PROG_CC],
842 m4_defn([AC_PROG_CC])
846 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
847 # AM_INIT_AUTOMAKE([OPTIONS])
848 # -----------------------------------------------
849 # The call with PACKAGE and VERSION arguments is the old style
850 # call (pre autoconf-2.50), which is being phased out. PACKAGE
851 # and VERSION should now be passed to AC_INIT and removed from
852 # the call to AM_INIT_AUTOMAKE.
853 # We support both call styles for the transition. After
854 # the next Automake release, Autoconf can make the AC_INIT
855 # arguments mandatory, and then we can depend on a new Autoconf
856 # release and drop the old call support.
857 AC_DEFUN([AM_INIT_AUTOMAKE],
858 [AC_PREREQ([2.65])dnl
859 dnl Autoconf wants to disallow AM_ names. We explicitly allow
860 dnl the ones we care about.
861 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
862 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
863 AC_REQUIRE([AC_PROG_INSTALL])dnl
864 if test "`cd $srcdir && pwd`" != "`pwd`"; then
865 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
866 # is not polluted with repeated "-I."
867 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
868 # test to see if srcdir already configured
869 if test -f $srcdir/config.status; then
870 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
874 # test whether we have cygpath
875 if test -z "$CYGPATH_W"; then
876 if (cygpath --version) >/dev/null 2>/dev/null; then
877 CYGPATH_W='cygpath -w'
882 AC_SUBST([CYGPATH_W])
884 # Define the identity of the package.
885 dnl Distinguish between old-style and new-style calls.
887 [AC_DIAGNOSE([obsolete],
888 [$0: two- and three-arguments forms are deprecated.])
889 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
890 AC_SUBST([PACKAGE], [$1])dnl
891 AC_SUBST([VERSION], [$2])],
892 [_AM_SET_OPTIONS([$1])dnl
893 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
895 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
897 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
898 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
899 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
901 _AM_IF_OPTION([no-define],,
902 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
903 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
905 # Some tools Automake needs.
906 AC_REQUIRE([AM_SANITY_CHECK])dnl
907 AC_REQUIRE([AC_ARG_PROGRAM])dnl
908 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
909 AM_MISSING_PROG([AUTOCONF], [autoconf])
910 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
911 AM_MISSING_PROG([AUTOHEADER], [autoheader])
912 AM_MISSING_PROG([MAKEINFO], [makeinfo])
913 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
914 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
915 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
916 # For better backward compatibility. To be removed once Automake 1.9.x
917 # dies out for good. For more background, see:
918 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
919 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
920 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
921 # We need awk for the "check" target (and possibly the TAP driver). The
922 # system "awk" is bad on some platforms.
923 AC_REQUIRE([AC_PROG_AWK])dnl
924 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
925 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
926 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
927 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
928 [_AM_PROG_TAR([v7])])])
929 _AM_IF_OPTION([no-dependencies],,
930 [AC_PROVIDE_IFELSE([AC_PROG_CC],
931 [_AM_DEPENDENCIES([CC])],
932 [m4_define([AC_PROG_CC],
933 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
934 AC_PROVIDE_IFELSE([AC_PROG_CXX],
935 [_AM_DEPENDENCIES([CXX])],
936 [m4_define([AC_PROG_CXX],
937 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
938 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
939 [_AM_DEPENDENCIES([OBJC])],
940 [m4_define([AC_PROG_OBJC],
941 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
942 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
943 [_AM_DEPENDENCIES([OBJCXX])],
944 [m4_define([AC_PROG_OBJCXX],
945 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
947 AC_REQUIRE([AM_SILENT_RULES])dnl
948 dnl The testsuite driver may need to know about EXEEXT, so add the
949 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
950 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
951 AC_CONFIG_COMMANDS_PRE(dnl
952 [m4_provide_if([_AM_COMPILER_EXEEXT],
953 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
955 # POSIX will say in a future version that running "rm -f" with no argument
956 # is OK; and we want to be able to make that assumption in our Makefile
957 # recipes. So use an aggressive probe to check that the usage we want is
958 # actually supported "in the wild" to an acceptable degree.
959 # See automake bug#10828.
960 # To make any issue more visible, cause the running configure to be aborted
961 # by default if the 'rm' program in use doesn't match our expectations; the
962 # user can still override this though.
963 if rm -f && rm -fr && rm -rf; then : OK; else
967 Your 'rm' program seems unable to run without file operands specified
968 on the command line, even when the '-f' option is present. This is contrary
969 to the behaviour of most rm programs out there, and not conforming with
970 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
972 Please tell bug-automake@gnu.org about your system, including the value
973 of your $PATH and any error possibly output before this message. This
974 can help us improve future automake versions.
977 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
978 echo 'Configuration will proceed anyway, since you have set the' >&2
979 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
983 Aborting the configuration process, to ensure you take notice of the issue.
985 You can download and install GNU coreutils to get an 'rm' implementation
986 that behaves properly: <http://www.gnu.org/software/coreutils/>.
988 If you want to complete the configuration process using your problematic
989 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
990 to "yes", and re-run configure.
993 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
996 dnl The trailing newline in this macro's definition is deliberate, for
997 dnl backward compatibility and to allow trailing 'dnl'-style comments
998 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1001 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1002 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1003 dnl mangled by Autoconf and run in a shell conditional statement.
1004 m4_define([_AC_COMPILER_EXEEXT],
1005 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1007 # When config.status generates a header, we must update the stamp-h file.
1008 # This file resides in the same directory as the config header
1009 # that is generated. The stamp files are numbered to have different names.
1011 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1012 # loop where config.status creates the headers, so we can generate
1013 # our stamp files there.
1014 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1015 [# Compute $1's index in $config_headers.
1018 for _am_header in $config_headers :; do
1020 $_am_arg | $_am_arg:* )
1023 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1026 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1028 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1030 # This file is free software; the Free Software Foundation
1031 # gives unlimited permission to copy and/or distribute it,
1032 # with or without modifications, as long as this notice is preserved.
1034 # AM_PROG_INSTALL_SH
1035 # ------------------
1036 # Define $install_sh.
1037 AC_DEFUN([AM_PROG_INSTALL_SH],
1038 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1039 if test x"${install_sh+set}" != xset; then
1042 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1044 install_sh="\${SHELL} $am_aux_dir/install-sh"
1047 AC_SUBST([install_sh])])
1049 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
1051 # This file is free software; the Free Software Foundation
1052 # gives unlimited permission to copy and/or distribute it,
1053 # with or without modifications, as long as this notice is preserved.
1055 # Check whether the underlying file-system supports filenames
1056 # with a leading dot. For instance MS-DOS doesn't.
1057 AC_DEFUN([AM_SET_LEADING_DOT],
1058 [rm -rf .tst 2>/dev/null
1059 mkdir .tst 2>/dev/null
1060 if test -d .tst; then
1065 rmdir .tst 2>/dev/null
1066 AC_SUBST([am__leading_dot])])
1068 # Check to see how 'make' treats includes. -*- Autoconf -*-
1070 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1072 # This file is free software; the Free Software Foundation
1073 # gives unlimited permission to copy and/or distribute it,
1074 # with or without modifications, as long as this notice is preserved.
1078 # Check to see how make treats includes.
1079 AC_DEFUN([AM_MAKE_INCLUDE],
1080 [am_make=${MAKE-make}
1081 cat > confinc << 'END'
1083 @echo this is the am__doit target
1086 # If we don't find an include directive, just comment out the code.
1087 AC_MSG_CHECKING([for style of include used by $am_make])
1091 # First try GNU make style include.
1092 echo "include confinc" > confmf
1093 # Ignore all kinds of additional output from 'make'.
1094 case `$am_make -s -f confmf 2> /dev/null` in #(
1095 *the\ am__doit\ target*)
1101 # Now try BSD make style include.
1102 if test "$am__include" = "#"; then
1103 echo '.include "confinc"' > confmf
1104 case `$am_make -s -f confmf 2> /dev/null` in #(
1105 *the\ am__doit\ target*)
1106 am__include=.include
1112 AC_SUBST([am__include])
1113 AC_SUBST([am__quote])
1114 AC_MSG_RESULT([$_am_result])
1115 rm -f confinc confmf
1118 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1120 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
1122 # This file is free software; the Free Software Foundation
1123 # gives unlimited permission to copy and/or distribute it,
1124 # with or without modifications, as long as this notice is preserved.
1126 # AM_MISSING_PROG(NAME, PROGRAM)
1127 # ------------------------------
1128 AC_DEFUN([AM_MISSING_PROG],
1129 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1130 $1=${$1-"${am_missing_run}$2"}
1133 # AM_MISSING_HAS_RUN
1134 # ------------------
1135 # Define MISSING if not defined so far and test if it is modern enough.
1136 # If it is, set am_missing_run to use it, otherwise, to nothing.
1137 AC_DEFUN([AM_MISSING_HAS_RUN],
1138 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1139 AC_REQUIRE_AUX_FILE([missing])dnl
1140 if test x"${MISSING+set}" != xset; then
1143 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1145 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1148 # Use eval to expand $SHELL
1149 if eval "$MISSING --is-lightweight"; then
1150 am_missing_run="$MISSING "
1153 AC_MSG_WARN(['missing' script is too old or missing])
1157 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
1159 # This file is free software; the Free Software Foundation
1160 # gives unlimited permission to copy and/or distribute it,
1161 # with or without modifications, as long as this notice is preserved.
1165 # Check for 'mkdir -p'.
1166 AC_DEFUN([AM_PROG_MKDIR_P],
1167 [AC_PREREQ([2.60])dnl
1168 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1169 dnl FIXME we are no longer going to remove this! adjust warning
1170 dnl FIXME message accordingly.
1171 AC_DIAGNOSE([obsolete],
1172 [$0: this macro is deprecated, and will soon be removed.
1173 You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
1174 and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
1175 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1176 dnl while keeping a definition of mkdir_p for backward compatibility.
1177 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1178 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1179 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1180 dnl adjustment using top_builddir (which is defined more often than
1182 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1184 [[\\/$]]* | ?:[[\\/]]*) ;;
1185 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1189 # Helper functions for option handling. -*- Autoconf -*-
1191 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1193 # This file is free software; the Free Software Foundation
1194 # gives unlimited permission to copy and/or distribute it,
1195 # with or without modifications, as long as this notice is preserved.
1197 # _AM_MANGLE_OPTION(NAME)
1198 # -----------------------
1199 AC_DEFUN([_AM_MANGLE_OPTION],
1200 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1202 # _AM_SET_OPTION(NAME)
1203 # --------------------
1204 # Set option NAME. Presently that only means defining a flag for this option.
1205 AC_DEFUN([_AM_SET_OPTION],
1206 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1208 # _AM_SET_OPTIONS(OPTIONS)
1209 # ------------------------
1210 # OPTIONS is a space-separated list of Automake options.
1211 AC_DEFUN([_AM_SET_OPTIONS],
1212 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1214 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1215 # -------------------------------------------
1216 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1217 AC_DEFUN([_AM_IF_OPTION],
1218 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1220 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1222 # This file is free software; the Free Software Foundation
1223 # gives unlimited permission to copy and/or distribute it,
1224 # with or without modifications, as long as this notice is preserved.
1228 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1229 # to automatically call this.
1230 AC_DEFUN([_AM_PROG_CC_C_O],
1231 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1232 AC_REQUIRE_AUX_FILE([compile])dnl
1233 AC_LANG_PUSH([C])dnl
1235 [whether $CC understands -c and -o together],
1236 [am_cv_prog_cc_c_o],
1237 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1238 # Make sure it works both with $CC and with simple cc.
1239 # Following AC_PROG_CC_C_O, we do the test twice because some
1240 # compilers refuse to overwrite an existing .o file with -o,
1241 # though they will create one.
1242 am_cv_prog_cc_c_o=yes
1244 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1245 && test -f conftest2.$ac_objext; then
1248 am_cv_prog_cc_c_o=no
1252 rm -f core conftest*
1254 if test "$am_cv_prog_cc_c_o" != yes; then
1255 # Losing compiler, so override with the script.
1256 # FIXME: It is wrong to rewrite CC.
1257 # But if we don't then we get into trouble of one sort or another.
1258 # A longer-term fix would be to have automake use am__CC in this case,
1259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1260 CC="$am_aux_dir/compile $CC"
1264 # For backward compatibility.
1265 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1267 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1269 # This file is free software; the Free Software Foundation
1270 # gives unlimited permission to copy and/or distribute it,
1271 # with or without modifications, as long as this notice is preserved.
1273 # AM_RUN_LOG(COMMAND)
1274 # -------------------
1275 # Run COMMAND, save the exit status in ac_status, and log it.
1276 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1277 AC_DEFUN([AM_RUN_LOG],
1278 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1279 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1281 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1282 (exit $ac_status); }])
1284 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1286 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1288 # This file is free software; the Free Software Foundation
1289 # gives unlimited permission to copy and/or distribute it,
1290 # with or without modifications, as long as this notice is preserved.
1294 AC_DEFUN([AM_SANITY_CHECK],
1295 [AC_MSG_CHECKING([whether build environment is sane])
1296 # Reject unsafe characters in $srcdir or the absolute working directory
1297 # name. Accept space and tab only in the latter.
1301 *[[\\\"\#\$\&\'\`$am_lf]]*)
1302 AC_MSG_ERROR([unsafe absolute working directory name]);;
1305 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1306 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1309 # Do 'set' in a subshell so we don't clobber the current shell's
1310 # arguments. Must try -L first in case configure is actually a
1311 # symlink; some systems play weird games with the mod time of symlinks
1312 # (eg FreeBSD returns the mod time of the symlink's containing
1316 for am_try in 1 2; do
1317 echo "timestamp, slept: $am_has_slept" > conftest.file
1318 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1319 if test "$[*]" = "X"; then
1321 set X `ls -t "$srcdir/configure" conftest.file`
1323 if test "$[*]" != "X $srcdir/configure conftest.file" \
1324 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1326 # If neither matched, then we have a broken ls. This can happen
1327 # if, for instance, CONFIG_SHELL is bash and it inherits a
1328 # broken ls alias from the environment. This has actually
1329 # happened. Such a system could not be considered "sane".
1330 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1331 alias in your environment])
1333 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1340 test "$[2]" = conftest.file
1346 AC_MSG_ERROR([newly created file is older than distributed files!
1347 Check your system clock])
1349 AC_MSG_RESULT([yes])
1350 # If we didn't sleep, we still need to ensure time stamps of config.status and
1351 # generated files are strictly newer.
1353 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1357 AC_CONFIG_COMMANDS_PRE(
1358 [AC_MSG_CHECKING([that generated files are newer than configure])
1359 if test -n "$am_sleep_pid"; then
1360 # Hide warnings about reused PIDs.
1361 wait $am_sleep_pid 2>/dev/null
1363 AC_MSG_RESULT([done])])
1367 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1369 # This file is free software; the Free Software Foundation
1370 # gives unlimited permission to copy and/or distribute it,
1371 # with or without modifications, as long as this notice is preserved.
1373 # AM_SILENT_RULES([DEFAULT])
1374 # --------------------------
1375 # Enable less verbose build rules; with the default set to DEFAULT
1376 # ("yes" being less verbose, "no" or empty being verbose).
1377 AC_DEFUN([AM_SILENT_RULES],
1378 [AC_ARG_ENABLE([silent-rules], [dnl
1380 [--enable-silent-rules],
1381 [less verbose build output (undo: "make V=1")])
1383 [--disable-silent-rules],
1384 [verbose build output (undo: "make V=0")])dnl
1386 case $enable_silent_rules in @%:@ (((
1387 yes) AM_DEFAULT_VERBOSITY=0;;
1388 no) AM_DEFAULT_VERBOSITY=1;;
1389 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1392 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1393 dnl do not support nested variable expansions.
1394 dnl See automake bug#9928 and bug#10237.
1395 am_make=${MAKE-make}
1396 AC_CACHE_CHECK([whether $am_make supports nested variables],
1397 [am_cv_make_support_nested_variables],
1398 [if AS_ECHO([['TRUE=$(BAR$(V))
1404 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1405 am_cv_make_support_nested_variables=yes
1407 am_cv_make_support_nested_variables=no
1409 if test $am_cv_make_support_nested_variables = yes; then
1410 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1412 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1414 AM_V=$AM_DEFAULT_VERBOSITY
1415 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1418 AM_SUBST_NOTMAKE([AM_V])dnl
1419 AC_SUBST([AM_DEFAULT_V])dnl
1420 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1421 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1423 AC_SUBST([AM_BACKSLASH])dnl
1424 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1427 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1429 # This file is free software; the Free Software Foundation
1430 # gives unlimited permission to copy and/or distribute it,
1431 # with or without modifications, as long as this notice is preserved.
1433 # AM_PROG_INSTALL_STRIP
1434 # ---------------------
1435 # One issue with vendor 'install' (even GNU) is that you can't
1436 # specify the program used to strip binaries. This is especially
1437 # annoying in cross-compiling environments, where the build's strip
1438 # is unlikely to handle the host's binaries.
1439 # Fortunately install-sh will honor a STRIPPROG variable, so we
1440 # always use install-sh in "make install-strip", and initialize
1441 # STRIPPROG with the value of the STRIP variable (set by the user).
1442 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1443 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1444 # Installed binaries are usually stripped using 'strip' when the user
1445 # run "make install-strip". However 'strip' might not be the right
1446 # tool to use in cross-compilation environments, therefore Automake
1447 # will honor the 'STRIP' environment variable to overrule this program.
1448 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1449 if test "$cross_compiling" != no; then
1450 AC_CHECK_TOOL([STRIP], [strip], :)
1452 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1453 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1455 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1457 # This file is free software; the Free Software Foundation
1458 # gives unlimited permission to copy and/or distribute it,
1459 # with or without modifications, as long as this notice is preserved.
1461 # _AM_SUBST_NOTMAKE(VARIABLE)
1462 # ---------------------------
1463 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1464 # This macro is traced by Automake.
1465 AC_DEFUN([_AM_SUBST_NOTMAKE])
1467 # AM_SUBST_NOTMAKE(VARIABLE)
1468 # --------------------------
1469 # Public sister of _AM_SUBST_NOTMAKE.
1470 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1472 # Check how to create a tarball. -*- Autoconf -*-
1474 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1476 # This file is free software; the Free Software Foundation
1477 # gives unlimited permission to copy and/or distribute it,
1478 # with or without modifications, as long as this notice is preserved.
1480 # _AM_PROG_TAR(FORMAT)
1481 # --------------------
1482 # Check how to create a tarball in format FORMAT.
1483 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1485 # Substitute a variable $(am__tar) that is a command
1486 # writing to stdout a FORMAT-tarball containing the directory
1488 # tardir=directory && $(am__tar) > result.tar
1490 # Substitute a variable $(am__untar) that extract such
1491 # a tarball read from stdin.
1492 # $(am__untar) < result.tar
1494 AC_DEFUN([_AM_PROG_TAR],
1495 [# Always define AMTAR for backward compatibility. Yes, it's still used
1496 # in the wild :-( We should find a proper way to deprecate it ...
1497 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1499 # We'll loop over all known methods to create a tar archive until one works.
1500 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1503 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1507 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1508 # There is notably a 21 bits limit for the UID and the GID. In fact,
1509 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1511 am_max_uid=2097151 # 2^21 - 1
1512 am_max_gid=$am_max_uid
1513 # The $UID and $GID variables are not portable, so we need to resort
1514 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1515 # below are definitely unexpected, so allow the users to see them
1516 # (that is, avoid stderr redirection).
1517 am_uid=`id -u || echo unknown`
1518 am_gid=`id -g || echo unknown`
1519 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1520 if test $am_uid -le $am_max_uid; then
1521 AC_MSG_RESULT([yes])
1526 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1527 if test $am_gid -le $am_max_gid; then
1528 AC_MSG_RESULT([yes])
1537 [m4_fatal([Unknown tar format])])
1539 AC_MSG_CHECKING([how to create a $1 tar archive])
1541 # Go ahead even if we have the value already cached. We do so because we
1542 # need to set the values for the 'am__tar' and 'am__untar' variables.
1543 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1545 for _am_tool in $_am_tools; do
1548 for _am_tar in tar gnutar gtar; do
1549 AM_RUN_LOG([$_am_tar --version]) && break
1551 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1552 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1553 am__untar="$_am_tar -xf -"
1556 # Must skip GNU tar: if it does not support --format= it doesn't create
1557 # ustar tarball either.
1558 (tar --version) >/dev/null 2>&1 && continue
1559 am__tar='tar chf - "$$tardir"'
1560 am__tar_='tar chf - "$tardir"'
1561 am__untar='tar xf -'
1564 am__tar='pax -L -x $1 -w "$$tardir"'
1565 am__tar_='pax -L -x $1 -w "$tardir"'
1569 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1570 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1571 am__untar='cpio -i -H $1 -d'
1580 # If the value was cached, stop now. We just wanted to have am__tar
1581 # and am__untar set.
1582 test -n "${am_cv_prog_tar_$1}" && break
1584 # tar/untar a dummy directory, and stop if the command works.
1587 echo GrepMe > conftest.dir/file
1588 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1590 if test -s conftest.tar; then
1591 AM_RUN_LOG([$am__untar <conftest.tar])
1592 AM_RUN_LOG([cat conftest.dir/file])
1593 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1598 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1599 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1602 AC_SUBST([am__untar])
1605 m4_include([m4/gettext.m4])
1606 m4_include([m4/iconv.m4])
1607 m4_include([m4/lib-ld.m4])
1608 m4_include([m4/lib-link.m4])
1609 m4_include([m4/lib-prefix.m4])
1610 m4_include([m4/nls.m4])
1611 m4_include([m4/po.m4])
1612 m4_include([m4/progtest.m4])