1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2017 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 # ===========================================================================
24 # https://www.gnu.org/software/autoconf-archive/ax_compare_version.html
25 # ===========================================================================
29 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
33 # This macro compares two version strings. Due to the various number of
34 # minor-version numbers that can exist, and the fact that string
35 # comparisons are not compatible with numeric comparisons, this is not
36 # necessarily trivial to do in a autoconf script. This macro makes doing
37 # these comparisons easy.
39 # The six basic comparisons are available, as well as checking equality
40 # limited to a certain number of minor-version levels.
42 # The operator OP determines what type of comparison to do, and can be one
45 # eq - equal (test A == B)
46 # ne - not equal (test A != B)
47 # le - less than or equal (test A <= B)
48 # ge - greater than or equal (test A >= B)
49 # lt - less than (test A < B)
50 # gt - greater than (test A > B)
52 # Additionally, the eq and ne operator can have a number after it to limit
53 # the test to that number of minor versions.
55 # eq0 - equal up to the length of the shorter version
56 # ne0 - not equal up to the length of the shorter version
57 # eqN - equal up to N sub-version levels
58 # neN - not equal up to N sub-version levels
60 # When the condition is true, shell commands ACTION-IF-TRUE are run,
61 # otherwise shell commands ACTION-IF-FALSE are run. The environment
62 # variable 'ax_compare_version' is always set to either 'true' or 'false'
67 # AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
68 # AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
72 # AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
73 # AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
75 # would both be false.
77 # AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
79 # would be true because it is only comparing two minor versions.
81 # AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
83 # would be true because it is only comparing the lesser number of minor
84 # versions of the two values.
86 # Note: The characters that separate the version numbers do not matter. An
87 # empty string is the same as version 0. OP is evaluated by autoconf, not
88 # configure, so must be a string, not a variable.
90 # The author would like to acknowledge Guido Draheim whose advice about
91 # the m4_case and m4_ifvaln functions make this macro only include the
92 # portions necessary to perform the specific comparison specified by the
93 # OP argument in the final configure script.
97 # Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
99 # Copying and distribution of this file, with or without modification, are
100 # permitted in any medium without royalty provided the copyright notice
101 # and this notice are preserved. This file is offered as-is, without any
106 dnl #########################################################################
107 AC_DEFUN([AX_COMPARE_VERSION], [
108 AC_REQUIRE([AC_PROG_AWK])
110 # Used to indicate true or false condition
111 ax_compare_version=false
113 # Convert the two version strings to be compared into a format that
114 # allows a simple string comparison. The end result is that a version
115 # string of the form 1.12.5-r617 will be converted to the form
116 # 0001001200050617. In other words, each number is zero padded to four
117 # digits, and non digits are removed.
118 AS_VAR_PUSHDEF([A],[ax_compare_version_A])
119 A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
120 -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
121 -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
122 -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
125 AS_VAR_PUSHDEF([B],[ax_compare_version_B])
126 B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
127 -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
128 -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
129 -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
132 dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary
133 dnl # then the first line is used to determine if the condition is true.
134 dnl # The sed right after the echo is to remove any indented white space.
135 m4_case(m4_tolower($2),
137 ax_compare_version=`echo "x$A
138 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"`
141 ax_compare_version=`echo "x$A
142 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"`
145 ax_compare_version=`echo "x$A
146 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"`
149 ax_compare_version=`echo "x$A
150 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
152 dnl Split the operator from the subversion count if present.
153 m4_bmatch(m4_substr($2,2),
155 # A count of zero means use the length of the shorter version.
156 # Determine the number of characters in A and B.
157 ax_compare_version_len_A=`echo "$A" | $AWK '{print(length)}'`
158 ax_compare_version_len_B=`echo "$B" | $AWK '{print(length)}'`
160 # Set A to no more than B's length and B to no more than A's length.
161 A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"`
162 B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"`
165 # A count greater than zero means use only that many subversions
166 A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
167 B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
171 [illegal OP numeric parameter: $2])
174 # Pad zeros at end of numbers to make same length.
175 ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`"
176 B="$B`echo $A | sed 's/./0/g'`"
177 A="$ax_compare_version_tmp_A"
179 # Check for equality or inequality as necessary.
180 m4_case(m4_tolower(m4_substr($2,0,2)),
182 test "x$A" = "x$B" && ax_compare_version=true
185 test "x$A" != "x$B" && ax_compare_version=true
187 AC_WARNING([illegal OP parameter: $2])
191 AS_VAR_POPDEF([A])dnl
192 AS_VAR_POPDEF([B])dnl
194 dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE.
195 if test "$ax_compare_version" = "true" ; then
196 m4_ifvaln([$4],[$4],[:])dnl
197 m4_ifvaln([$5],[else $5])dnl
199 ]) dnl AX_COMPARE_VERSION
201 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
203 # This file is free software; the Free Software Foundation
204 # gives unlimited permission to copy and/or distribute it,
205 # with or without modifications, as long as this notice is preserved.
207 # AM_AUTOMAKE_VERSION(VERSION)
208 # ----------------------------
209 # Automake X.Y traces this macro to ensure aclocal.m4 has been
210 # generated from the m4 files accompanying Automake X.Y.
211 # (This private macro should not be called outside this file.)
212 AC_DEFUN([AM_AUTOMAKE_VERSION],
213 [am__api_version='1.15'
214 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
215 dnl require some minimum version. Point them to the right macro.
216 m4_if([$1], [1.15.1], [],
217 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
220 # _AM_AUTOCONF_VERSION(VERSION)
221 # -----------------------------
222 # aclocal traces this macro to find the Autoconf version.
223 # This is a private macro too. Using m4_define simplifies
224 # the logic in aclocal, which can simply ignore this definition.
225 m4_define([_AM_AUTOCONF_VERSION], [])
227 # AM_SET_CURRENT_AUTOMAKE_VERSION
228 # -------------------------------
229 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
230 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
231 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
232 [AM_AUTOMAKE_VERSION([1.15.1])dnl
233 m4_ifndef([AC_AUTOCONF_VERSION],
234 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
235 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
237 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
239 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
241 # This file is free software; the Free Software Foundation
242 # gives unlimited permission to copy and/or distribute it,
243 # with or without modifications, as long as this notice is preserved.
245 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
246 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
247 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
249 # Of course, Automake must honor this variable whenever it calls a
250 # tool from the auxiliary directory. The problem is that $srcdir (and
251 # therefore $ac_aux_dir as well) can be either absolute or relative,
252 # depending on how configure is run. This is pretty annoying, since
253 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
254 # source directory, any form will work fine, but in subdirectories a
255 # relative path needs to be adjusted first.
257 # $ac_aux_dir/missing
258 # fails when called from a subdirectory if $ac_aux_dir is relative
259 # $top_srcdir/$ac_aux_dir/missing
260 # fails if $ac_aux_dir is absolute,
261 # fails when called from a subdirectory in a VPATH build with
262 # a relative $ac_aux_dir
264 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
265 # are both prefixed by $srcdir. In an in-source build this is usually
266 # harmless because $srcdir is '.', but things will broke when you
267 # start a VPATH build or use an absolute $srcdir.
269 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
270 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
271 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
272 # and then we would define $MISSING as
273 # MISSING="\${SHELL} $am_aux_dir/missing"
274 # This will work as long as MISSING is not called from configure, because
275 # unfortunately $(top_srcdir) has no meaning in configure.
276 # However there are other variables, like CC, which are often used in
277 # configure, and could therefore not use this "fixed" $ac_aux_dir.
279 # Another solution, used here, is to always expand $ac_aux_dir to an
280 # absolute PATH. The drawback is that using absolute paths prevent a
281 # configured tree to be moved without reconfiguration.
283 AC_DEFUN([AM_AUX_DIR_EXPAND],
284 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
285 # Expand $ac_aux_dir to an absolute path.
286 am_aux_dir=`cd "$ac_aux_dir" && pwd`
289 # AM_CONDITIONAL -*- Autoconf -*-
291 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
293 # This file is free software; the Free Software Foundation
294 # gives unlimited permission to copy and/or distribute it,
295 # with or without modifications, as long as this notice is preserved.
297 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
298 # -------------------------------------
299 # Define a conditional.
300 AC_DEFUN([AM_CONDITIONAL],
301 [AC_PREREQ([2.52])dnl
302 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
303 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
304 AC_SUBST([$1_TRUE])dnl
305 AC_SUBST([$1_FALSE])dnl
306 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
307 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
308 m4_define([_AM_COND_VALUE_$1], [$2])dnl
316 AC_CONFIG_COMMANDS_PRE(
317 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
318 AC_MSG_ERROR([[conditional "$1" was never defined.
319 Usually this means the macro was only invoked conditionally.]])
322 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
324 # This file is free software; the Free Software Foundation
325 # gives unlimited permission to copy and/or distribute it,
326 # with or without modifications, as long as this notice is preserved.
329 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
330 # written in clear, in which case automake, when reading aclocal.m4,
331 # will think it sees a *use*, and therefore will trigger all it's
332 # C support machinery. Also note that it means that autoscan, seeing
333 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
336 # _AM_DEPENDENCIES(NAME)
337 # ----------------------
338 # See how the compiler implements dependency checking.
339 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
340 # We try a few techniques and use that to set a single cache variable.
342 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
343 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
344 # dependency, and given that the user is not expected to run this macro,
345 # just rely on AC_PROG_CC.
346 AC_DEFUN([_AM_DEPENDENCIES],
347 [AC_REQUIRE([AM_SET_DEPDIR])dnl
348 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
349 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
350 AC_REQUIRE([AM_DEP_TRACK])dnl
352 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
353 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
354 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
355 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
356 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
357 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
358 [depcc="$$1" am_compiler_list=])
360 AC_CACHE_CHECK([dependency style of $depcc],
361 [am_cv_$1_dependencies_compiler_type],
362 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
363 # We make a subdir and do the tests there. Otherwise we can end up
364 # making bogus files that we don't know about and never remove. For
365 # instance it was reported that on HP-UX the gcc test will end up
366 # making a dummy file named 'D' -- because '-MD' means "put the output
370 # Copy depcomp to subdir because otherwise we won't find it if we're
371 # using a relative directory.
372 cp "$am_depcomp" conftest.dir
374 # We will build objects and dependencies in a subdirectory because
375 # it helps to detect inapplicable dependency modes. For instance
376 # both Tru64's cc and ICC support -MD to output dependencies as a
377 # side effect of compilation, but ICC will put the dependencies in
378 # the current directory while Tru64 will put them in the object
382 am_cv_$1_dependencies_compiler_type=none
383 if test "$am_compiler_list" = ""; then
384 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
388 [case " $depcc " in #(
389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
392 [case " $depcc " in #(
393 *\ -arch\ *\ -arch\ *) am__universal=true ;;
396 for depmode in $am_compiler_list; do
397 # Setup a source with many dependencies, because some compilers
398 # like to wrap large dependency lists on column 80 (with \), and
399 # we should not choose a depcomp mode which is confused by this.
401 # We need to recreate these files for each test, as the compiler may
402 # overwrite some of them when testing with obscure command lines.
403 # This happens at least with the AIX C compiler.
405 for i in 1 2 3 4 5 6; do
406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
407 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
408 # Solaris 10 /bin/sh.
409 echo '/* dummy */' > sub/conftst$i.h
411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
413 # We check with '-c' and '-o' for the sake of the "dashmstdout"
414 # mode. It turns out that the SunPro C++ compiler does not properly
415 # handle '-M -o', and we need to detect this. Also, some Intel
416 # versions had trouble with output in subdirs.
417 am__obj=sub/conftest.${OBJEXT-o}
418 am__minus_obj="-o $am__obj"
421 # This depmode causes a compiler race in universal mode.
422 test "$am__universal" = false || continue
425 # After this tag, mechanisms are not by side-effect, so they'll
426 # only be used when explicitly requested.
427 if test "x$enable_dependency_tracking" = xyes; then
433 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
434 # This compiler won't grok '-c -o', but also, the minuso test has
435 # not run yet. These depmodes are late enough in the game, and
436 # so weak that their functioning should not be impacted.
437 am__obj=conftest.${OBJEXT-o}
442 if depmode=$depmode \
443 source=sub/conftest.c object=$am__obj \
444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
445 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
446 >/dev/null 2>conftest.err &&
447 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
449 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
451 # icc doesn't choke on unknown options, it will just issue warnings
452 # or remarks (even with -Werror). So we grep stderr for any message
453 # that says an option was ignored or not supported.
454 # When given -MP, icc 7.0 and 7.1 complain thusly:
455 # icc: Command line warning: ignoring option '-M'; no argument required
456 # The diagnosis changed in icc 8.0:
457 # icc: Command line remark: option '-MP' not supported
458 if (grep 'ignoring option' conftest.err ||
459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
460 am_cv_$1_dependencies_compiler_type=$depmode
469 am_cv_$1_dependencies_compiler_type=none
472 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
473 AM_CONDITIONAL([am__fastdep$1], [
474 test "x$enable_dependency_tracking" != xno \
475 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
481 # Choose a directory name for dependency files.
482 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
483 AC_DEFUN([AM_SET_DEPDIR],
484 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
485 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
491 AC_DEFUN([AM_DEP_TRACK],
492 [AC_ARG_ENABLE([dependency-tracking], [dnl
494 [--enable-dependency-tracking],
495 [do not reject slow dependency extractors])
497 [--disable-dependency-tracking],
498 [speeds up one-time build])])
499 if test "x$enable_dependency_tracking" != xno; then
500 am_depcomp="$ac_aux_dir/depcomp"
504 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
505 AC_SUBST([AMDEPBACKSLASH])dnl
506 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
507 AC_SUBST([am__nodep])dnl
508 _AM_SUBST_NOTMAKE([am__nodep])dnl
511 # Generate code to set up dependency tracking. -*- Autoconf -*-
513 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
515 # This file is free software; the Free Software Foundation
516 # gives unlimited permission to copy and/or distribute it,
517 # with or without modifications, as long as this notice is preserved.
520 # _AM_OUTPUT_DEPENDENCY_COMMANDS
521 # ------------------------------
522 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
524 # Older Autoconf quotes --file arguments for eval, but not when files
525 # are listed without --file. Let's play safe and only enable the eval
526 # if we detect the quoting.
527 case $CONFIG_FILES in
528 *\'*) eval set x "$CONFIG_FILES" ;;
529 *) set x $CONFIG_FILES ;;
534 # Strip MF so we end up with the name of the file.
535 mf=`echo "$mf" | sed -e 's/:.*$//'`
536 # Check whether this is an Automake generated Makefile or not.
537 # We used to match only the files named 'Makefile.in', but
538 # some people rename them; so instead we look at the file content.
539 # Grep'ing the first line is not enough: some people post-process
540 # each Makefile.in and add a new line on top of each file to say so.
541 # Grep'ing the whole file is not good either: AIX grep has a line
542 # limit of 2048, but all sed's we know have understand at least 4000.
543 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
544 dirpart=`AS_DIRNAME("$mf")`
548 # Extract the definition of DEPDIR, am__include, and am__quote
549 # from the Makefile without running 'make'.
550 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
551 test -z "$DEPDIR" && continue
552 am__include=`sed -n 's/^am__include = //p' < "$mf"`
553 test -z "$am__include" && continue
554 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
555 # Find all dependency output files, they are included files with
556 # $(DEPDIR) in their names. We invoke sed twice because it is the
557 # simplest approach to changing $(DEPDIR) to its actual value in the
559 for file in `sed -n "
560 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
561 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
562 # Make sure the directory exists.
563 test -f "$dirpart/$file" && continue
564 fdir=`AS_DIRNAME(["$file"])`
565 AS_MKDIR_P([$dirpart/$fdir])
566 # echo "creating $dirpart/$file"
567 echo '# dummy' > "$dirpart/$file"
571 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
574 # AM_OUTPUT_DEPENDENCY_COMMANDS
575 # -----------------------------
576 # This macro should only be invoked once -- use via AC_REQUIRE.
578 # This code is only required when automatic dependency tracking
579 # is enabled. FIXME. This creates each '.P' file that we will
580 # need in order to bootstrap the dependency handling code.
581 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
582 [AC_CONFIG_COMMANDS([depfiles],
583 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
584 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
587 # Do all the work for Automake. -*- Autoconf -*-
589 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
591 # This file is free software; the Free Software Foundation
592 # gives unlimited permission to copy and/or distribute it,
593 # with or without modifications, as long as this notice is preserved.
595 # This macro actually does too much. Some checks are only needed if
596 # your package does certain things. But this isn't really a big deal.
598 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
599 m4_define([AC_PROG_CC],
600 m4_defn([AC_PROG_CC])
604 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
605 # AM_INIT_AUTOMAKE([OPTIONS])
606 # -----------------------------------------------
607 # The call with PACKAGE and VERSION arguments is the old style
608 # call (pre autoconf-2.50), which is being phased out. PACKAGE
609 # and VERSION should now be passed to AC_INIT and removed from
610 # the call to AM_INIT_AUTOMAKE.
611 # We support both call styles for the transition. After
612 # the next Automake release, Autoconf can make the AC_INIT
613 # arguments mandatory, and then we can depend on a new Autoconf
614 # release and drop the old call support.
615 AC_DEFUN([AM_INIT_AUTOMAKE],
616 [AC_PREREQ([2.65])dnl
617 dnl Autoconf wants to disallow AM_ names. We explicitly allow
618 dnl the ones we care about.
619 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
620 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
621 AC_REQUIRE([AC_PROG_INSTALL])dnl
622 if test "`cd $srcdir && pwd`" != "`pwd`"; then
623 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
624 # is not polluted with repeated "-I."
625 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
626 # test to see if srcdir already configured
627 if test -f $srcdir/config.status; then
628 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
632 # test whether we have cygpath
633 if test -z "$CYGPATH_W"; then
634 if (cygpath --version) >/dev/null 2>/dev/null; then
635 CYGPATH_W='cygpath -w'
640 AC_SUBST([CYGPATH_W])
642 # Define the identity of the package.
643 dnl Distinguish between old-style and new-style calls.
645 [AC_DIAGNOSE([obsolete],
646 [$0: two- and three-arguments forms are deprecated.])
647 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
648 AC_SUBST([PACKAGE], [$1])dnl
649 AC_SUBST([VERSION], [$2])],
650 [_AM_SET_OPTIONS([$1])dnl
651 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
653 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
655 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
656 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
657 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
659 _AM_IF_OPTION([no-define],,
660 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
661 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
663 # Some tools Automake needs.
664 AC_REQUIRE([AM_SANITY_CHECK])dnl
665 AC_REQUIRE([AC_ARG_PROGRAM])dnl
666 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
667 AM_MISSING_PROG([AUTOCONF], [autoconf])
668 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
669 AM_MISSING_PROG([AUTOHEADER], [autoheader])
670 AM_MISSING_PROG([MAKEINFO], [makeinfo])
671 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
672 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
673 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
674 # For better backward compatibility. To be removed once Automake 1.9.x
675 # dies out for good. For more background, see:
676 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
677 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
678 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
679 # We need awk for the "check" target (and possibly the TAP driver). The
680 # system "awk" is bad on some platforms.
681 AC_REQUIRE([AC_PROG_AWK])dnl
682 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
683 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
684 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
685 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
686 [_AM_PROG_TAR([v7])])])
687 _AM_IF_OPTION([no-dependencies],,
688 [AC_PROVIDE_IFELSE([AC_PROG_CC],
689 [_AM_DEPENDENCIES([CC])],
690 [m4_define([AC_PROG_CC],
691 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
692 AC_PROVIDE_IFELSE([AC_PROG_CXX],
693 [_AM_DEPENDENCIES([CXX])],
694 [m4_define([AC_PROG_CXX],
695 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
696 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
697 [_AM_DEPENDENCIES([OBJC])],
698 [m4_define([AC_PROG_OBJC],
699 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
700 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
701 [_AM_DEPENDENCIES([OBJCXX])],
702 [m4_define([AC_PROG_OBJCXX],
703 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
705 AC_REQUIRE([AM_SILENT_RULES])dnl
706 dnl The testsuite driver may need to know about EXEEXT, so add the
707 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
708 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
709 AC_CONFIG_COMMANDS_PRE(dnl
710 [m4_provide_if([_AM_COMPILER_EXEEXT],
711 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
713 # POSIX will say in a future version that running "rm -f" with no argument
714 # is OK; and we want to be able to make that assumption in our Makefile
715 # recipes. So use an aggressive probe to check that the usage we want is
716 # actually supported "in the wild" to an acceptable degree.
717 # See automake bug#10828.
718 # To make any issue more visible, cause the running configure to be aborted
719 # by default if the 'rm' program in use doesn't match our expectations; the
720 # user can still override this though.
721 if rm -f && rm -fr && rm -rf; then : OK; else
725 Your 'rm' program seems unable to run without file operands specified
726 on the command line, even when the '-f' option is present. This is contrary
727 to the behaviour of most rm programs out there, and not conforming with
728 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
730 Please tell bug-automake@gnu.org about your system, including the value
731 of your $PATH and any error possibly output before this message. This
732 can help us improve future automake versions.
735 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
736 echo 'Configuration will proceed anyway, since you have set the' >&2
737 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
741 Aborting the configuration process, to ensure you take notice of the issue.
743 You can download and install GNU coreutils to get an 'rm' implementation
744 that behaves properly: <http://www.gnu.org/software/coreutils/>.
746 If you want to complete the configuration process using your problematic
747 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
748 to "yes", and re-run configure.
751 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
754 dnl The trailing newline in this macro's definition is deliberate, for
755 dnl backward compatibility and to allow trailing 'dnl'-style comments
756 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
759 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
760 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
761 dnl mangled by Autoconf and run in a shell conditional statement.
762 m4_define([_AC_COMPILER_EXEEXT],
763 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
765 # When config.status generates a header, we must update the stamp-h file.
766 # This file resides in the same directory as the config header
767 # that is generated. The stamp files are numbered to have different names.
769 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
770 # loop where config.status creates the headers, so we can generate
771 # our stamp files there.
772 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
773 [# Compute $1's index in $config_headers.
776 for _am_header in $config_headers :; do
778 $_am_arg | $_am_arg:* )
781 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
784 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
786 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
794 # Define $install_sh.
795 AC_DEFUN([AM_PROG_INSTALL_SH],
796 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
797 if test x"${install_sh+set}" != xset; then
800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
802 install_sh="\${SHELL} $am_aux_dir/install-sh"
805 AC_SUBST([install_sh])])
807 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
809 # This file is free software; the Free Software Foundation
810 # gives unlimited permission to copy and/or distribute it,
811 # with or without modifications, as long as this notice is preserved.
813 # Check whether the underlying file-system supports filenames
814 # with a leading dot. For instance MS-DOS doesn't.
815 AC_DEFUN([AM_SET_LEADING_DOT],
816 [rm -rf .tst 2>/dev/null
817 mkdir .tst 2>/dev/null
818 if test -d .tst; then
823 rmdir .tst 2>/dev/null
824 AC_SUBST([am__leading_dot])])
826 # Check to see how 'make' treats includes. -*- Autoconf -*-
828 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
830 # This file is free software; the Free Software Foundation
831 # gives unlimited permission to copy and/or distribute it,
832 # with or without modifications, as long as this notice is preserved.
836 # Check to see how make treats includes.
837 AC_DEFUN([AM_MAKE_INCLUDE],
838 [am_make=${MAKE-make}
839 cat > confinc << 'END'
841 @echo this is the am__doit target
844 # If we don't find an include directive, just comment out the code.
845 AC_MSG_CHECKING([for style of include used by $am_make])
849 # First try GNU make style include.
850 echo "include confinc" > confmf
851 # Ignore all kinds of additional output from 'make'.
852 case `$am_make -s -f confmf 2> /dev/null` in #(
853 *the\ am__doit\ target*)
859 # Now try BSD make style include.
860 if test "$am__include" = "#"; then
861 echo '.include "confinc"' > confmf
862 case `$am_make -s -f confmf 2> /dev/null` in #(
863 *the\ am__doit\ target*)
870 AC_SUBST([am__include])
871 AC_SUBST([am__quote])
872 AC_MSG_RESULT([$_am_result])
876 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
878 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
880 # This file is free software; the Free Software Foundation
881 # gives unlimited permission to copy and/or distribute it,
882 # with or without modifications, as long as this notice is preserved.
884 # AM_MISSING_PROG(NAME, PROGRAM)
885 # ------------------------------
886 AC_DEFUN([AM_MISSING_PROG],
887 [AC_REQUIRE([AM_MISSING_HAS_RUN])
888 $1=${$1-"${am_missing_run}$2"}
893 # Define MISSING if not defined so far and test if it is modern enough.
894 # If it is, set am_missing_run to use it, otherwise, to nothing.
895 AC_DEFUN([AM_MISSING_HAS_RUN],
896 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
897 AC_REQUIRE_AUX_FILE([missing])dnl
898 if test x"${MISSING+set}" != xset; then
901 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
903 MISSING="\${SHELL} $am_aux_dir/missing" ;;
906 # Use eval to expand $SHELL
907 if eval "$MISSING --is-lightweight"; then
908 am_missing_run="$MISSING "
911 AC_MSG_WARN(['missing' script is too old or missing])
915 # Helper functions for option handling. -*- Autoconf -*-
917 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
919 # This file is free software; the Free Software Foundation
920 # gives unlimited permission to copy and/or distribute it,
921 # with or without modifications, as long as this notice is preserved.
923 # _AM_MANGLE_OPTION(NAME)
924 # -----------------------
925 AC_DEFUN([_AM_MANGLE_OPTION],
926 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
928 # _AM_SET_OPTION(NAME)
929 # --------------------
930 # Set option NAME. Presently that only means defining a flag for this option.
931 AC_DEFUN([_AM_SET_OPTION],
932 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
934 # _AM_SET_OPTIONS(OPTIONS)
935 # ------------------------
936 # OPTIONS is a space-separated list of Automake options.
937 AC_DEFUN([_AM_SET_OPTIONS],
938 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
940 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
941 # -------------------------------------------
942 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
943 AC_DEFUN([_AM_IF_OPTION],
944 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
946 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
948 # This file is free software; the Free Software Foundation
949 # gives unlimited permission to copy and/or distribute it,
950 # with or without modifications, as long as this notice is preserved.
954 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
955 # to automatically call this.
956 AC_DEFUN([_AM_PROG_CC_C_O],
957 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
958 AC_REQUIRE_AUX_FILE([compile])dnl
961 [whether $CC understands -c and -o together],
963 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
964 # Make sure it works both with $CC and with simple cc.
965 # Following AC_PROG_CC_C_O, we do the test twice because some
966 # compilers refuse to overwrite an existing .o file with -o,
967 # though they will create one.
968 am_cv_prog_cc_c_o=yes
970 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
971 && test -f conftest2.$ac_objext; then
980 if test "$am_cv_prog_cc_c_o" != yes; then
981 # Losing compiler, so override with the script.
982 # FIXME: It is wrong to rewrite CC.
983 # But if we don't then we get into trouble of one sort or another.
984 # A longer-term fix would be to have automake use am__CC in this case,
985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
986 CC="$am_aux_dir/compile $CC"
990 # For backward compatibility.
991 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
993 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
995 # This file is free software; the Free Software Foundation
996 # gives unlimited permission to copy and/or distribute it,
997 # with or without modifications, as long as this notice is preserved.
999 # AM_RUN_LOG(COMMAND)
1000 # -------------------
1001 # Run COMMAND, save the exit status in ac_status, and log it.
1002 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1003 AC_DEFUN([AM_RUN_LOG],
1004 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1005 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1007 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1008 (exit $ac_status); }])
1010 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1012 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1014 # This file is free software; the Free Software Foundation
1015 # gives unlimited permission to copy and/or distribute it,
1016 # with or without modifications, as long as this notice is preserved.
1020 AC_DEFUN([AM_SANITY_CHECK],
1021 [AC_MSG_CHECKING([whether build environment is sane])
1022 # Reject unsafe characters in $srcdir or the absolute working directory
1023 # name. Accept space and tab only in the latter.
1027 *[[\\\"\#\$\&\'\`$am_lf]]*)
1028 AC_MSG_ERROR([unsafe absolute working directory name]);;
1031 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1032 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1035 # Do 'set' in a subshell so we don't clobber the current shell's
1036 # arguments. Must try -L first in case configure is actually a
1037 # symlink; some systems play weird games with the mod time of symlinks
1038 # (eg FreeBSD returns the mod time of the symlink's containing
1042 for am_try in 1 2; do
1043 echo "timestamp, slept: $am_has_slept" > conftest.file
1044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1045 if test "$[*]" = "X"; then
1047 set X `ls -t "$srcdir/configure" conftest.file`
1049 if test "$[*]" != "X $srcdir/configure conftest.file" \
1050 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1052 # If neither matched, then we have a broken ls. This can happen
1053 # if, for instance, CONFIG_SHELL is bash and it inherits a
1054 # broken ls alias from the environment. This has actually
1055 # happened. Such a system could not be considered "sane".
1056 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1057 alias in your environment])
1059 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1066 test "$[2]" = conftest.file
1072 AC_MSG_ERROR([newly created file is older than distributed files!
1073 Check your system clock])
1075 AC_MSG_RESULT([yes])
1076 # If we didn't sleep, we still need to ensure time stamps of config.status and
1077 # generated files are strictly newer.
1079 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1083 AC_CONFIG_COMMANDS_PRE(
1084 [AC_MSG_CHECKING([that generated files are newer than configure])
1085 if test -n "$am_sleep_pid"; then
1086 # Hide warnings about reused PIDs.
1087 wait $am_sleep_pid 2>/dev/null
1089 AC_MSG_RESULT([done])])
1093 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
1095 # This file is free software; the Free Software Foundation
1096 # gives unlimited permission to copy and/or distribute it,
1097 # with or without modifications, as long as this notice is preserved.
1099 # AM_SILENT_RULES([DEFAULT])
1100 # --------------------------
1101 # Enable less verbose build rules; with the default set to DEFAULT
1102 # ("yes" being less verbose, "no" or empty being verbose).
1103 AC_DEFUN([AM_SILENT_RULES],
1104 [AC_ARG_ENABLE([silent-rules], [dnl
1106 [--enable-silent-rules],
1107 [less verbose build output (undo: "make V=1")])
1109 [--disable-silent-rules],
1110 [verbose build output (undo: "make V=0")])dnl
1112 case $enable_silent_rules in @%:@ (((
1113 yes) AM_DEFAULT_VERBOSITY=0;;
1114 no) AM_DEFAULT_VERBOSITY=1;;
1115 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1118 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1119 dnl do not support nested variable expansions.
1120 dnl See automake bug#9928 and bug#10237.
1121 am_make=${MAKE-make}
1122 AC_CACHE_CHECK([whether $am_make supports nested variables],
1123 [am_cv_make_support_nested_variables],
1124 [if AS_ECHO([['TRUE=$(BAR$(V))
1130 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1131 am_cv_make_support_nested_variables=yes
1133 am_cv_make_support_nested_variables=no
1135 if test $am_cv_make_support_nested_variables = yes; then
1136 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1140 AM_V=$AM_DEFAULT_VERBOSITY
1141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1144 AM_SUBST_NOTMAKE([AM_V])dnl
1145 AC_SUBST([AM_DEFAULT_V])dnl
1146 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1147 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1149 AC_SUBST([AM_BACKSLASH])dnl
1150 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1153 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1155 # This file is free software; the Free Software Foundation
1156 # gives unlimited permission to copy and/or distribute it,
1157 # with or without modifications, as long as this notice is preserved.
1159 # AM_PROG_INSTALL_STRIP
1160 # ---------------------
1161 # One issue with vendor 'install' (even GNU) is that you can't
1162 # specify the program used to strip binaries. This is especially
1163 # annoying in cross-compiling environments, where the build's strip
1164 # is unlikely to handle the host's binaries.
1165 # Fortunately install-sh will honor a STRIPPROG variable, so we
1166 # always use install-sh in "make install-strip", and initialize
1167 # STRIPPROG with the value of the STRIP variable (set by the user).
1168 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1169 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1170 # Installed binaries are usually stripped using 'strip' when the user
1171 # run "make install-strip". However 'strip' might not be the right
1172 # tool to use in cross-compilation environments, therefore Automake
1173 # will honor the 'STRIP' environment variable to overrule this program.
1174 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1175 if test "$cross_compiling" != no; then
1176 AC_CHECK_TOOL([STRIP], [strip], :)
1178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1179 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1181 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
1183 # This file is free software; the Free Software Foundation
1184 # gives unlimited permission to copy and/or distribute it,
1185 # with or without modifications, as long as this notice is preserved.
1187 # _AM_SUBST_NOTMAKE(VARIABLE)
1188 # ---------------------------
1189 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1190 # This macro is traced by Automake.
1191 AC_DEFUN([_AM_SUBST_NOTMAKE])
1193 # AM_SUBST_NOTMAKE(VARIABLE)
1194 # --------------------------
1195 # Public sister of _AM_SUBST_NOTMAKE.
1196 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1198 # Check how to create a tarball. -*- Autoconf -*-
1200 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
1202 # This file is free software; the Free Software Foundation
1203 # gives unlimited permission to copy and/or distribute it,
1204 # with or without modifications, as long as this notice is preserved.
1206 # _AM_PROG_TAR(FORMAT)
1207 # --------------------
1208 # Check how to create a tarball in format FORMAT.
1209 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1211 # Substitute a variable $(am__tar) that is a command
1212 # writing to stdout a FORMAT-tarball containing the directory
1214 # tardir=directory && $(am__tar) > result.tar
1216 # Substitute a variable $(am__untar) that extract such
1217 # a tarball read from stdin.
1218 # $(am__untar) < result.tar
1220 AC_DEFUN([_AM_PROG_TAR],
1221 [# Always define AMTAR for backward compatibility. Yes, it's still used
1222 # in the wild :-( We should find a proper way to deprecate it ...
1223 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1225 # We'll loop over all known methods to create a tar archive until one works.
1226 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1229 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1233 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1234 # There is notably a 21 bits limit for the UID and the GID. In fact,
1235 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1237 am_max_uid=2097151 # 2^21 - 1
1238 am_max_gid=$am_max_uid
1239 # The $UID and $GID variables are not portable, so we need to resort
1240 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1241 # below are definitely unexpected, so allow the users to see them
1242 # (that is, avoid stderr redirection).
1243 am_uid=`id -u || echo unknown`
1244 am_gid=`id -g || echo unknown`
1245 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1246 if test $am_uid -le $am_max_uid; then
1247 AC_MSG_RESULT([yes])
1252 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1253 if test $am_gid -le $am_max_gid; then
1254 AC_MSG_RESULT([yes])
1263 [m4_fatal([Unknown tar format])])
1265 AC_MSG_CHECKING([how to create a $1 tar archive])
1267 # Go ahead even if we have the value already cached. We do so because we
1268 # need to set the values for the 'am__tar' and 'am__untar' variables.
1269 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1271 for _am_tool in $_am_tools; do
1274 for _am_tar in tar gnutar gtar; do
1275 AM_RUN_LOG([$_am_tar --version]) && break
1277 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1278 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1279 am__untar="$_am_tar -xf -"
1282 # Must skip GNU tar: if it does not support --format= it doesn't create
1283 # ustar tarball either.
1284 (tar --version) >/dev/null 2>&1 && continue
1285 am__tar='tar chf - "$$tardir"'
1286 am__tar_='tar chf - "$tardir"'
1287 am__untar='tar xf -'
1290 am__tar='pax -L -x $1 -w "$$tardir"'
1291 am__tar_='pax -L -x $1 -w "$tardir"'
1295 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1296 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1297 am__untar='cpio -i -H $1 -d'
1306 # If the value was cached, stop now. We just wanted to have am__tar
1307 # and am__untar set.
1308 test -n "${am_cv_prog_tar_$1}" && break
1310 # tar/untar a dummy directory, and stop if the command works.
1313 echo GrepMe > conftest.dir/file
1314 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1316 if test -s conftest.tar; then
1317 AM_RUN_LOG([$am__untar <conftest.tar])
1318 AM_RUN_LOG([cat conftest.dir/file])
1319 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1324 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1325 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1328 AC_SUBST([am__untar])
1331 m4_include([m4/libtool.m4])
1332 m4_include([m4/ltoptions.m4])
1333 m4_include([m4/ltsugar.m4])
1334 m4_include([m4/ltversion.m4])
1335 m4_include([m4/lt~obsolete.m4])