Imported Upstream version 0.2.12
[platform/upstream/libdatrie.git] / aclocal.m4
1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
4
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf.  It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23 # ===========================================================================
24 #    https://www.gnu.org/software/autoconf-archive/ax_compare_version.html
25 # ===========================================================================
26 #
27 # SYNOPSIS
28 #
29 #   AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
30 #
31 # DESCRIPTION
32 #
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.
38 #
39 #   The six basic comparisons are available, as well as checking equality
40 #   limited to a certain number of minor-version levels.
41 #
42 #   The operator OP determines what type of comparison to do, and can be one
43 #   of:
44 #
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)
51 #
52 #   Additionally, the eq and ne operator can have a number after it to limit
53 #   the test to that number of minor versions.
54 #
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
59 #
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'
63 #   as well.
64 #
65 #   Examples:
66 #
67 #     AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8])
68 #     AX_COMPARE_VERSION([3.15],[lt],[3.15.8])
69 #
70 #   would both be true.
71 #
72 #     AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8])
73 #     AX_COMPARE_VERSION([3.15],[gt],[3.15.8])
74 #
75 #   would both be false.
76 #
77 #     AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8])
78 #
79 #   would be true because it is only comparing two minor versions.
80 #
81 #     AX_COMPARE_VERSION([3.15.7],[eq0],[3.15])
82 #
83 #   would be true because it is only comparing the lesser number of minor
84 #   versions of the two values.
85 #
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.
89 #
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.
94 #
95 # LICENSE
96 #
97 #   Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu>
98 #
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
102 #   warranty.
103
104 #serial 12
105
106 dnl #########################################################################
107 AC_DEFUN([AX_COMPARE_VERSION], [
108   AC_REQUIRE([AC_PROG_AWK])
109
110   # Used to indicate true or false condition
111   ax_compare_version=false
112
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' \
123                      -e 's/[[^0-9]]//g'`
124
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' \
130                      -e 's/[[^0-9]]//g'`
131
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),
136   [lt],[
137     ax_compare_version=`echo "x$A
138 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"`
139   ],
140   [gt],[
141     ax_compare_version=`echo "x$A
142 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"`
143   ],
144   [le],[
145     ax_compare_version=`echo "x$A
146 x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"`
147   ],
148   [ge],[
149     ax_compare_version=`echo "x$A
150 x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
151   ],[
152     dnl Split the operator from the subversion count if present.
153     m4_bmatch(m4_substr($2,2),
154     [0],[
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)}'`
159
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/"`
163     ],
164     [[0-9]+],[
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/"`
168     ],
169     [.+],[
170       AC_WARNING(
171         [illegal OP numeric parameter: $2])
172     ],[])
173
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"
178
179     # Check for equality or inequality as necessary.
180     m4_case(m4_tolower(m4_substr($2,0,2)),
181     [eq],[
182       test "x$A" = "x$B" && ax_compare_version=true
183     ],
184     [ne],[
185       test "x$A" != "x$B" && ax_compare_version=true
186     ],[
187       AC_WARNING([illegal OP parameter: $2])
188     ])
189   ])
190
191   AS_VAR_POPDEF([A])dnl
192   AS_VAR_POPDEF([B])dnl
193
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
198   fi
199 ]) dnl AX_COMPARE_VERSION
200
201 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
202 #
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.
206
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
218 ])
219
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], [])
226
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]))])
236
237 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
238
239 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
240 #
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.
244
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/../..'.
248 #
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.
256 #
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
263 #
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.
268 #
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.
278 #
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.
282
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`
287 ])
288
289 # AM_CONDITIONAL                                            -*- Autoconf -*-
290
291 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
292 #
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.
296
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
309 if $2; then
310   $1_TRUE=
311   $1_FALSE='#'
312 else
313   $1_TRUE='#'
314   $1_FALSE=
315 fi
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.]])
320 fi])])
321
322 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
323 #
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.
327
328
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...
334
335
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.
341 #
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
351
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=])
359
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
367   # in D".
368   rm -rf conftest.dir
369   mkdir conftest.dir
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
373   cd 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
379   # directory.
380   mkdir sub
381
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`
385   fi
386   am__universal=false
387   m4_case([$1], [CC],
388     [case " $depcc " in #(
389      *\ -arch\ *\ -arch\ *) am__universal=true ;;
390      esac],
391     [CXX],
392     [case " $depcc " in #(
393      *\ -arch\ *\ -arch\ *) am__universal=true ;;
394      esac])
395
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.
400     #
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.
404     : > sub/conftest.c
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
410     done
411     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
412
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"
419     case $depmode in
420     gcc)
421       # This depmode causes a compiler race in universal mode.
422       test "$am__universal" = false || continue
423       ;;
424     nosideeffect)
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
428         continue
429       else
430         break
431       fi
432       ;;
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}
438       am__minus_obj=
439       ;;
440     none) break ;;
441     esac
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
461         break
462       fi
463     fi
464   done
465
466   cd ..
467   rm -rf conftest.dir
468 else
469   am_cv_$1_dependencies_compiler_type=none
470 fi
471 ])
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])
476 ])
477
478
479 # AM_SET_DEPDIR
480 # -------------
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
486 ])
487
488
489 # AM_DEP_TRACK
490 # ------------
491 AC_DEFUN([AM_DEP_TRACK],
492 [AC_ARG_ENABLE([dependency-tracking], [dnl
493 AS_HELP_STRING(
494   [--enable-dependency-tracking],
495   [do not reject slow dependency extractors])
496 AS_HELP_STRING(
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"
501   AMDEPBACKSLASH='\'
502   am__nodep='_no'
503 fi
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
509 ])
510
511 # Generate code to set up dependency tracking.              -*- Autoconf -*-
512
513 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
514 #
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.
518
519
520 # _AM_OUTPUT_DEPENDENCY_COMMANDS
521 # ------------------------------
522 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
523 [{
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 ;;
530   esac
531   shift
532   for mf
533   do
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")`
545     else
546       continue
547     fi
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
558     # expansion.
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"
568     done
569   done
570 }
571 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
572
573
574 # AM_OUTPUT_DEPENDENCY_COMMANDS
575 # -----------------------------
576 # This macro should only be invoked once -- use via AC_REQUIRE.
577 #
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"])
585 ])
586
587 # Do all the work for Automake.                             -*- Autoconf -*-
588
589 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
590 #
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.
594
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.
597
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])
601 [_AM_PROG_CC_C_O
602 ])
603
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])
629   fi
630 fi
631
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'
636   else
637     CYGPATH_W=echo
638   fi
639 fi
640 AC_SUBST([CYGPATH_W])
641
642 # Define the identity of the package.
643 dnl Distinguish between old-style and new-style calls.
644 m4_ifval([$2],
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.
652 m4_if(
653   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
654   [ok: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
658
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
662
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
704 ])
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
712
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
722   cat >&2 <<'END'
723 Oops!
724
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>
729
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.
733
734 END
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
738     echo >&2
739   else
740     cat >&2 <<'END'
741 Aborting the configuration process, to ensure you take notice of the issue.
742
743 You can download and install GNU coreutils to get an 'rm' implementation
744 that behaves properly: <http://www.gnu.org/software/coreutils/>.
745
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.
749
750 END
751     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
752   fi
753 fi
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.
757 ])
758
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])])
764
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.
768
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.
774 _am_arg=$1
775 _am_stamp_count=1
776 for _am_header in $config_headers :; do
777   case $_am_header in
778     $_am_arg | $_am_arg:* )
779       break ;;
780     * )
781       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
782   esac
783 done
784 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
785
786 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
787 #
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.
791
792 # AM_PROG_INSTALL_SH
793 # ------------------
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
798   case $am_aux_dir in
799   *\ * | *\     *)
800     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
801   *)
802     install_sh="\${SHELL} $am_aux_dir/install-sh"
803   esac
804 fi
805 AC_SUBST([install_sh])])
806
807 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
808 #
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.
812
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
819   am__leading_dot=.
820 else
821   am__leading_dot=_
822 fi
823 rmdir .tst 2>/dev/null
824 AC_SUBST([am__leading_dot])])
825
826 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
827
828 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
829 #
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.
833
834 # AM_MAKE_INCLUDE()
835 # -----------------
836 # Check to see how make treats includes.
837 AC_DEFUN([AM_MAKE_INCLUDE],
838 [am_make=${MAKE-make}
839 cat > confinc << 'END'
840 am__doit:
841         @echo this is the am__doit target
842 .PHONY: am__doit
843 END
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])
846 am__include="#"
847 am__quote=
848 _am_result=none
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*)
854   am__include=include
855   am__quote=
856   _am_result=GNU
857   ;;
858 esac
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*)
864      am__include=.include
865      am__quote="\""
866      _am_result=BSD
867      ;;
868    esac
869 fi
870 AC_SUBST([am__include])
871 AC_SUBST([am__quote])
872 AC_MSG_RESULT([$_am_result])
873 rm -f confinc confmf
874 ])
875
876 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
877
878 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
879 #
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.
883
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"}
889 AC_SUBST($1)])
890
891 # AM_MISSING_HAS_RUN
892 # ------------------
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
899   case $am_aux_dir in
900   *\ * | *\     *)
901     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
902   *)
903     MISSING="\${SHELL} $am_aux_dir/missing" ;;
904   esac
905 fi
906 # Use eval to expand $SHELL
907 if eval "$MISSING --is-lightweight"; then
908   am_missing_run="$MISSING "
909 else
910   am_missing_run=
911   AC_MSG_WARN(['missing' script is too old or missing])
912 fi
913 ])
914
915 # Helper functions for option handling.                     -*- Autoconf -*-
916
917 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
918 #
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.
922
923 # _AM_MANGLE_OPTION(NAME)
924 # -----------------------
925 AC_DEFUN([_AM_MANGLE_OPTION],
926 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
927
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])])
933
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)])])
939
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])])
945
946 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
947 #
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.
951
952 # _AM_PROG_CC_C_O
953 # ---------------
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
959 AC_LANG_PUSH([C])dnl
960 AC_CACHE_CHECK(
961   [whether $CC understands -c and -o together],
962   [am_cv_prog_cc_c_o],
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
969   for am_i in 1 2; do
970     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
971          && test -f conftest2.$ac_objext; then
972       : OK
973     else
974       am_cv_prog_cc_c_o=no
975       break
976     fi
977   done
978   rm -f core conftest*
979   unset am_i])
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"
987 fi
988 AC_LANG_POP([C])])
989
990 # For backward compatibility.
991 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
992
993 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
994 #
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.
998
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
1006    ac_status=$?
1007    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1008    (exit $ac_status); }])
1009
1010 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
1011
1012 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1013 #
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.
1017
1018 # AM_SANITY_CHECK
1019 # ---------------
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.
1024 am_lf='
1025 '
1026 case `pwd` in
1027   *[[\\\"\#\$\&\'\`$am_lf]]*)
1028     AC_MSG_ERROR([unsafe absolute working directory name]);;
1029 esac
1030 case $srcdir in
1031   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1032     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1033 esac
1034
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
1039 # directory).
1040 if (
1041    am_has_slept=no
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
1046         # -L didn't work.
1047         set X `ls -t "$srcdir/configure" conftest.file`
1048      fi
1049      if test "$[*]" != "X $srcdir/configure conftest.file" \
1050         && test "$[*]" != "X conftest.file $srcdir/configure"; then
1051
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])
1058      fi
1059      if test "$[2]" = conftest.file || test $am_try -eq 2; then
1060        break
1061      fi
1062      # Just in case.
1063      sleep 1
1064      am_has_slept=yes
1065    done
1066    test "$[2]" = conftest.file
1067    )
1068 then
1069    # Ok.
1070    :
1071 else
1072    AC_MSG_ERROR([newly created file is older than distributed files!
1073 Check your system clock])
1074 fi
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.
1078 am_sleep_pid=
1079 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1080   ( sleep 1 ) &
1081   am_sleep_pid=$!
1082 fi
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
1088    fi
1089    AC_MSG_RESULT([done])])
1090 rm -f conftest.file
1091 ])
1092
1093 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
1094 #
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.
1098
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
1105 AS_HELP_STRING(
1106   [--enable-silent-rules],
1107   [less verbose build output (undo: "make V=1")])
1108 AS_HELP_STRING(
1109   [--disable-silent-rules],
1110   [verbose build output (undo: "make V=0")])dnl
1111 ])
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]);;
1116 esac
1117 dnl
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))
1125 BAR0=false
1126 BAR1=true
1127 V=1
1128 am__doit:
1129         @$(TRUE)
1130 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1131   am_cv_make_support_nested_variables=yes
1132 else
1133   am_cv_make_support_nested_variables=no
1134 fi])
1135 if test $am_cv_make_support_nested_variables = yes; then
1136   dnl Using '$V' instead of '$(V)' breaks IRIX make.
1137   AM_V='$(V)'
1138   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1139 else
1140   AM_V=$AM_DEFAULT_VERBOSITY
1141   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1142 fi
1143 AC_SUBST([AM_V])dnl
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
1148 AM_BACKSLASH='\'
1149 AC_SUBST([AM_BACKSLASH])dnl
1150 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1151 ])
1152
1153 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1154 #
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.
1158
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], :)
1177 fi
1178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1179 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1180
1181 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
1182 #
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.
1186
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])
1192
1193 # AM_SUBST_NOTMAKE(VARIABLE)
1194 # --------------------------
1195 # Public sister of _AM_SUBST_NOTMAKE.
1196 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1197
1198 # Check how to create a tarball.                            -*- Autoconf -*-
1199
1200 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
1201 #
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.
1205
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'.
1210 #
1211 # Substitute a variable $(am__tar) that is a command
1212 # writing to stdout a FORMAT-tarball containing the directory
1213 # $tardir.
1214 #     tardir=directory && $(am__tar) > result.tar
1215 #
1216 # Substitute a variable $(am__untar) that extract such
1217 # a tarball read from stdin.
1218 #     $(am__untar) < result.tar
1219 #
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}'])
1224
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'
1227
1228 m4_if([$1], [v7],
1229   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1230
1231   [m4_case([$1],
1232     [ustar],
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
1236       # and bug#13588).
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])
1248       else
1249          AC_MSG_RESULT([no])
1250          _am_tools=none
1251       fi
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])
1255       else
1256         AC_MSG_RESULT([no])
1257         _am_tools=none
1258       fi],
1259
1260   [pax],
1261     [],
1262
1263   [m4_fatal([Unknown tar format])])
1264
1265   AC_MSG_CHECKING([how to create a $1 tar archive])
1266
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}
1270
1271   for _am_tool in $_am_tools; do
1272     case $_am_tool in
1273     gnutar)
1274       for _am_tar in tar gnutar gtar; do
1275         AM_RUN_LOG([$_am_tar --version]) && break
1276       done
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 -"
1280       ;;
1281     plaintar)
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 -'
1288       ;;
1289     pax)
1290       am__tar='pax -L -x $1 -w "$$tardir"'
1291       am__tar_='pax -L -x $1 -w "$tardir"'
1292       am__untar='pax -r'
1293       ;;
1294     cpio)
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'
1298       ;;
1299     none)
1300       am__tar=false
1301       am__tar_=false
1302       am__untar=false
1303       ;;
1304     esac
1305
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
1309
1310     # tar/untar a dummy directory, and stop if the command works.
1311     rm -rf conftest.dir
1312     mkdir conftest.dir
1313     echo GrepMe > conftest.dir/file
1314     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1315     rm -rf conftest.dir
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
1320     fi
1321   done
1322   rm -rf conftest.dir
1323
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])])
1326
1327 AC_SUBST([am__tar])
1328 AC_SUBST([am__untar])
1329 ]) # _AM_PROG_TAR
1330
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])