1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
3 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23 # serial 9 -*- Autoconf -*-
24 # Enable extensions on systems that normally disable them.
26 # Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc.
27 # This file is free software; the Free Software Foundation
28 # gives unlimited permission to copy and/or distribute it,
29 # with or without modifications, as long as this notice is preserved.
31 # This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS
32 # Autoconf. Perhaps we can remove this once we can assume Autoconf
33 # 2.62 or later everywhere, but since CVS Autoconf mutates rapidly
34 # enough in this area it's likely we'll need to redefine
35 # AC_USE_SYSTEM_EXTENSIONS for quite some time.
37 # If autoconf reports a warning
38 # warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
39 # or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
41 # 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked
42 # but always AC_REQUIREd,
43 # 2) to ensure that for each occurrence of
44 # AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
46 # AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
47 # the corresponding gnulib module description has 'extensions' among
48 # its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS
49 # invocation occurs in gl_EARLY, not in gl_INIT.
51 # AC_USE_SYSTEM_EXTENSIONS
52 # ------------------------
53 # Enable extensions on systems that normally disable them,
54 # typically due to standards-conformance issues.
55 # Remember that #undef in AH_VERBATIM gets replaced with #define by
56 # AC_DEFINE. The goal here is to define all known feature-enabling
57 # macros, then, if reports of conflicts are made, disable macros that
58 # cause problems on some platforms (such as __EXTENSIONS__).
59 AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS],
60 [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
61 AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
63 AC_REQUIRE([AC_CANONICAL_HOST])
65 AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
66 if test "$MINIX" = yes; then
67 AC_DEFINE([_POSIX_SOURCE], [1],
68 [Define to 1 if you need to in order for `stat' and other
70 AC_DEFINE([_POSIX_1_SOURCE], [2],
71 [Define to 2 if the system does not provide POSIX.1 features
72 except with this defined.])
73 AC_DEFINE([_MINIX], [1],
74 [Define to 1 if on MINIX.])
77 dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500,
78 dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already
82 AC_DEFINE([_XOPEN_SOURCE], [500],
83 [Define to 500 only on HP-UX.])
87 AH_VERBATIM([__EXTENSIONS__],
88 [/* Enable extensions on AIX 3, Interix. */
92 /* Enable GNU extensions on systems that have them. */
96 /* Enable threading extensions on Solaris. */
97 #ifndef _POSIX_PTHREAD_SEMANTICS
98 # undef _POSIX_PTHREAD_SEMANTICS
100 /* Enable extensions on HP NonStop. */
101 #ifndef _TANDEM_SOURCE
102 # undef _TANDEM_SOURCE
104 /* Enable general extensions on Solaris. */
105 #ifndef __EXTENSIONS__
106 # undef __EXTENSIONS__
109 AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
110 [ac_cv_safe_to_define___extensions__],
113 # define __EXTENSIONS__ 1
114 ]AC_INCLUDES_DEFAULT])],
115 [ac_cv_safe_to_define___extensions__=yes],
116 [ac_cv_safe_to_define___extensions__=no])])
117 test $ac_cv_safe_to_define___extensions__ = yes &&
118 AC_DEFINE([__EXTENSIONS__])
119 AC_DEFINE([_ALL_SOURCE])
120 AC_DEFINE([_GNU_SOURCE])
121 AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
122 AC_DEFINE([_TANDEM_SOURCE])
123 ])# AC_USE_SYSTEM_EXTENSIONS
125 # gl_USE_SYSTEM_EXTENSIONS
126 # ------------------------
127 # Enable extensions on systems that normally disable them,
128 # typically due to standards-conformance issues.
129 AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
131 dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
132 dnl gnulib does not need it. But if it gets required by third-party macros
133 dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a
134 dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
135 dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE,
136 dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck.
137 AC_REQUIRE([AC_GNU_SOURCE])
139 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
142 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
144 # This file is free software; the Free Software Foundation
145 # gives unlimited permission to copy and/or distribute it,
146 # with or without modifications, as long as this notice is preserved.
148 # AM_AUTOMAKE_VERSION(VERSION)
149 # ----------------------------
150 # Automake X.Y traces this macro to ensure aclocal.m4 has been
151 # generated from the m4 files accompanying Automake X.Y.
152 # (This private macro should not be called outside this file.)
153 AC_DEFUN([AM_AUTOMAKE_VERSION],
154 [am__api_version='1.15'
155 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
156 dnl require some minimum version. Point them to the right macro.
157 m4_if([$1], [1.15], [],
158 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
161 # _AM_AUTOCONF_VERSION(VERSION)
162 # -----------------------------
163 # aclocal traces this macro to find the Autoconf version.
164 # This is a private macro too. Using m4_define simplifies
165 # the logic in aclocal, which can simply ignore this definition.
166 m4_define([_AM_AUTOCONF_VERSION], [])
168 # AM_SET_CURRENT_AUTOMAKE_VERSION
169 # -------------------------------
170 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
171 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
172 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
173 [AM_AUTOMAKE_VERSION([1.15])dnl
174 m4_ifndef([AC_AUTOCONF_VERSION],
175 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
176 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
178 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
180 # This file is free software; the Free Software Foundation
181 # gives unlimited permission to copy and/or distribute it,
182 # with or without modifications, as long as this notice is preserved.
184 # AM_PROG_AR([ACT-IF-FAIL])
185 # -------------------------
186 # Try to determine the archiver interface, and trigger the ar-lib wrapper
187 # if it is needed. If the detection of archiver interface fails, run
188 # ACT-IF-FAIL (default is to abort configure with a proper error message).
189 AC_DEFUN([AM_PROG_AR],
190 [AC_BEFORE([$0], [LT_INIT])dnl
191 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
192 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
193 AC_REQUIRE_AUX_FILE([ar-lib])dnl
194 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
197 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
199 am_cv_ar_interface=ar
200 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
201 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
202 AC_TRY_EVAL([am_ar_try])
203 if test "$ac_status" -eq 0; then
204 am_cv_ar_interface=ar
206 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
207 AC_TRY_EVAL([am_ar_try])
208 if test "$ac_status" -eq 0; then
209 am_cv_ar_interface=lib
211 am_cv_ar_interface=unknown
214 rm -f conftest.lib libconftest.a
218 case $am_cv_ar_interface in
222 # Microsoft lib, so override with the ar-lib wrapper script.
223 # FIXME: It is wrong to rewrite AR.
224 # But if we don't then we get into trouble of one sort or another.
225 # A longer-term fix would be to have automake use am__AR in this case,
226 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
228 AR="$am_aux_dir/ar-lib $AR"
232 [AC_MSG_ERROR([could not determine $AR interface])])
238 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
240 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
242 # This file is free software; the Free Software Foundation
243 # gives unlimited permission to copy and/or distribute it,
244 # with or without modifications, as long as this notice is preserved.
246 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
247 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
248 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
250 # Of course, Automake must honor this variable whenever it calls a
251 # tool from the auxiliary directory. The problem is that $srcdir (and
252 # therefore $ac_aux_dir as well) can be either absolute or relative,
253 # depending on how configure is run. This is pretty annoying, since
254 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
255 # source directory, any form will work fine, but in subdirectories a
256 # relative path needs to be adjusted first.
258 # $ac_aux_dir/missing
259 # fails when called from a subdirectory if $ac_aux_dir is relative
260 # $top_srcdir/$ac_aux_dir/missing
261 # fails if $ac_aux_dir is absolute,
262 # fails when called from a subdirectory in a VPATH build with
263 # a relative $ac_aux_dir
265 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
266 # are both prefixed by $srcdir. In an in-source build this is usually
267 # harmless because $srcdir is '.', but things will broke when you
268 # start a VPATH build or use an absolute $srcdir.
270 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
271 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
272 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
273 # and then we would define $MISSING as
274 # MISSING="\${SHELL} $am_aux_dir/missing"
275 # This will work as long as MISSING is not called from configure, because
276 # unfortunately $(top_srcdir) has no meaning in configure.
277 # However there are other variables, like CC, which are often used in
278 # configure, and could therefore not use this "fixed" $ac_aux_dir.
280 # Another solution, used here, is to always expand $ac_aux_dir to an
281 # absolute PATH. The drawback is that using absolute paths prevent a
282 # configured tree to be moved without reconfiguration.
284 AC_DEFUN([AM_AUX_DIR_EXPAND],
285 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
286 # Expand $ac_aux_dir to an absolute path.
287 am_aux_dir=`cd "$ac_aux_dir" && pwd`
290 # AM_CONDITIONAL -*- Autoconf -*-
292 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
294 # This file is free software; the Free Software Foundation
295 # gives unlimited permission to copy and/or distribute it,
296 # with or without modifications, as long as this notice is preserved.
298 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
299 # -------------------------------------
300 # Define a conditional.
301 AC_DEFUN([AM_CONDITIONAL],
302 [AC_PREREQ([2.52])dnl
303 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
304 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
305 AC_SUBST([$1_TRUE])dnl
306 AC_SUBST([$1_FALSE])dnl
307 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
308 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
309 m4_define([_AM_COND_VALUE_$1], [$2])dnl
317 AC_CONFIG_COMMANDS_PRE(
318 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
319 AC_MSG_ERROR([[conditional "$1" was never defined.
320 Usually this means the macro was only invoked conditionally.]])
323 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
325 # This file is free software; the Free Software Foundation
326 # gives unlimited permission to copy and/or distribute it,
327 # with or without modifications, as long as this notice is preserved.
330 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
331 # written in clear, in which case automake, when reading aclocal.m4,
332 # will think it sees a *use*, and therefore will trigger all it's
333 # C support machinery. Also note that it means that autoscan, seeing
334 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
337 # _AM_DEPENDENCIES(NAME)
338 # ----------------------
339 # See how the compiler implements dependency checking.
340 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
341 # We try a few techniques and use that to set a single cache variable.
343 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
344 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
345 # dependency, and given that the user is not expected to run this macro,
346 # just rely on AC_PROG_CC.
347 AC_DEFUN([_AM_DEPENDENCIES],
348 [AC_REQUIRE([AM_SET_DEPDIR])dnl
349 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
350 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
351 AC_REQUIRE([AM_DEP_TRACK])dnl
353 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
354 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
355 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
356 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
357 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
358 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
359 [depcc="$$1" am_compiler_list=])
361 AC_CACHE_CHECK([dependency style of $depcc],
362 [am_cv_$1_dependencies_compiler_type],
363 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
364 # We make a subdir and do the tests there. Otherwise we can end up
365 # making bogus files that we don't know about and never remove. For
366 # instance it was reported that on HP-UX the gcc test will end up
367 # making a dummy file named 'D' -- because '-MD' means "put the output
371 # Copy depcomp to subdir because otherwise we won't find it if we're
372 # using a relative directory.
373 cp "$am_depcomp" conftest.dir
375 # We will build objects and dependencies in a subdirectory because
376 # it helps to detect inapplicable dependency modes. For instance
377 # both Tru64's cc and ICC support -MD to output dependencies as a
378 # side effect of compilation, but ICC will put the dependencies in
379 # the current directory while Tru64 will put them in the object
383 am_cv_$1_dependencies_compiler_type=none
384 if test "$am_compiler_list" = ""; then
385 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
389 [case " $depcc " in #(
390 *\ -arch\ *\ -arch\ *) am__universal=true ;;
393 [case " $depcc " in #(
394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
397 for depmode in $am_compiler_list; do
398 # Setup a source with many dependencies, because some compilers
399 # like to wrap large dependency lists on column 80 (with \), and
400 # we should not choose a depcomp mode which is confused by this.
402 # We need to recreate these files for each test, as the compiler may
403 # overwrite some of them when testing with obscure command lines.
404 # This happens at least with the AIX C compiler.
406 for i in 1 2 3 4 5 6; do
407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
409 # Solaris 10 /bin/sh.
410 echo '/* dummy */' > sub/conftst$i.h
412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
415 # mode. It turns out that the SunPro C++ compiler does not properly
416 # handle '-M -o', and we need to detect this. Also, some Intel
417 # versions had trouble with output in subdirs.
418 am__obj=sub/conftest.${OBJEXT-o}
419 am__minus_obj="-o $am__obj"
422 # This depmode causes a compiler race in universal mode.
423 test "$am__universal" = false || continue
426 # After this tag, mechanisms are not by side-effect, so they'll
427 # only be used when explicitly requested.
428 if test "x$enable_dependency_tracking" = xyes; then
434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
435 # This compiler won't grok '-c -o', but also, the minuso test has
436 # not run yet. These depmodes are late enough in the game, and
437 # so weak that their functioning should not be impacted.
438 am__obj=conftest.${OBJEXT-o}
443 if depmode=$depmode \
444 source=sub/conftest.c object=$am__obj \
445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
447 >/dev/null 2>conftest.err &&
448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
452 # icc doesn't choke on unknown options, it will just issue warnings
453 # or remarks (even with -Werror). So we grep stderr for any message
454 # that says an option was ignored or not supported.
455 # When given -MP, icc 7.0 and 7.1 complain thusly:
456 # icc: Command line warning: ignoring option '-M'; no argument required
457 # The diagnosis changed in icc 8.0:
458 # icc: Command line remark: option '-MP' not supported
459 if (grep 'ignoring option' conftest.err ||
460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
461 am_cv_$1_dependencies_compiler_type=$depmode
470 am_cv_$1_dependencies_compiler_type=none
473 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
474 AM_CONDITIONAL([am__fastdep$1], [
475 test "x$enable_dependency_tracking" != xno \
476 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
482 # Choose a directory name for dependency files.
483 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
484 AC_DEFUN([AM_SET_DEPDIR],
485 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
486 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
492 AC_DEFUN([AM_DEP_TRACK],
493 [AC_ARG_ENABLE([dependency-tracking], [dnl
495 [--enable-dependency-tracking],
496 [do not reject slow dependency extractors])
498 [--disable-dependency-tracking],
499 [speeds up one-time build])])
500 if test "x$enable_dependency_tracking" != xno; then
501 am_depcomp="$ac_aux_dir/depcomp"
505 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
506 AC_SUBST([AMDEPBACKSLASH])dnl
507 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
508 AC_SUBST([am__nodep])dnl
509 _AM_SUBST_NOTMAKE([am__nodep])dnl
512 # Generate code to set up dependency tracking. -*- Autoconf -*-
514 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
516 # This file is free software; the Free Software Foundation
517 # gives unlimited permission to copy and/or distribute it,
518 # with or without modifications, as long as this notice is preserved.
521 # _AM_OUTPUT_DEPENDENCY_COMMANDS
522 # ------------------------------
523 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
525 # Older Autoconf quotes --file arguments for eval, but not when files
526 # are listed without --file. Let's play safe and only enable the eval
527 # if we detect the quoting.
528 case $CONFIG_FILES in
529 *\'*) eval set x "$CONFIG_FILES" ;;
530 *) set x $CONFIG_FILES ;;
535 # Strip MF so we end up with the name of the file.
536 mf=`echo "$mf" | sed -e 's/:.*$//'`
537 # Check whether this is an Automake generated Makefile or not.
538 # We used to match only the files named 'Makefile.in', but
539 # some people rename them; so instead we look at the file content.
540 # Grep'ing the first line is not enough: some people post-process
541 # each Makefile.in and add a new line on top of each file to say so.
542 # Grep'ing the whole file is not good either: AIX grep has a line
543 # limit of 2048, but all sed's we know have understand at least 4000.
544 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
545 dirpart=`AS_DIRNAME("$mf")`
549 # Extract the definition of DEPDIR, am__include, and am__quote
550 # from the Makefile without running 'make'.
551 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
552 test -z "$DEPDIR" && continue
553 am__include=`sed -n 's/^am__include = //p' < "$mf"`
554 test -z "$am__include" && continue
555 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
556 # Find all dependency output files, they are included files with
557 # $(DEPDIR) in their names. We invoke sed twice because it is the
558 # simplest approach to changing $(DEPDIR) to its actual value in the
560 for file in `sed -n "
561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
563 # Make sure the directory exists.
564 test -f "$dirpart/$file" && continue
565 fdir=`AS_DIRNAME(["$file"])`
566 AS_MKDIR_P([$dirpart/$fdir])
567 # echo "creating $dirpart/$file"
568 echo '# dummy' > "$dirpart/$file"
572 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
575 # AM_OUTPUT_DEPENDENCY_COMMANDS
576 # -----------------------------
577 # This macro should only be invoked once -- use via AC_REQUIRE.
579 # This code is only required when automatic dependency tracking
580 # is enabled. FIXME. This creates each '.P' file that we will
581 # need in order to bootstrap the dependency handling code.
582 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
583 [AC_CONFIG_COMMANDS([depfiles],
584 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
585 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
588 # Do all the work for Automake. -*- Autoconf -*-
590 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
592 # This file is free software; the Free Software Foundation
593 # gives unlimited permission to copy and/or distribute it,
594 # with or without modifications, as long as this notice is preserved.
596 # This macro actually does too much. Some checks are only needed if
597 # your package does certain things. But this isn't really a big deal.
599 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
600 m4_define([AC_PROG_CC],
601 m4_defn([AC_PROG_CC])
605 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
606 # AM_INIT_AUTOMAKE([OPTIONS])
607 # -----------------------------------------------
608 # The call with PACKAGE and VERSION arguments is the old style
609 # call (pre autoconf-2.50), which is being phased out. PACKAGE
610 # and VERSION should now be passed to AC_INIT and removed from
611 # the call to AM_INIT_AUTOMAKE.
612 # We support both call styles for the transition. After
613 # the next Automake release, Autoconf can make the AC_INIT
614 # arguments mandatory, and then we can depend on a new Autoconf
615 # release and drop the old call support.
616 AC_DEFUN([AM_INIT_AUTOMAKE],
617 [AC_PREREQ([2.65])dnl
618 dnl Autoconf wants to disallow AM_ names. We explicitly allow
619 dnl the ones we care about.
620 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
621 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
622 AC_REQUIRE([AC_PROG_INSTALL])dnl
623 if test "`cd $srcdir && pwd`" != "`pwd`"; then
624 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
625 # is not polluted with repeated "-I."
626 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
627 # test to see if srcdir already configured
628 if test -f $srcdir/config.status; then
629 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
633 # test whether we have cygpath
634 if test -z "$CYGPATH_W"; then
635 if (cygpath --version) >/dev/null 2>/dev/null; then
636 CYGPATH_W='cygpath -w'
641 AC_SUBST([CYGPATH_W])
643 # Define the identity of the package.
644 dnl Distinguish between old-style and new-style calls.
646 [AC_DIAGNOSE([obsolete],
647 [$0: two- and three-arguments forms are deprecated.])
648 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
649 AC_SUBST([PACKAGE], [$1])dnl
650 AC_SUBST([VERSION], [$2])],
651 [_AM_SET_OPTIONS([$1])dnl
652 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
654 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
656 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
657 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
658 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
660 _AM_IF_OPTION([no-define],,
661 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
662 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
664 # Some tools Automake needs.
665 AC_REQUIRE([AM_SANITY_CHECK])dnl
666 AC_REQUIRE([AC_ARG_PROGRAM])dnl
667 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
668 AM_MISSING_PROG([AUTOCONF], [autoconf])
669 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
670 AM_MISSING_PROG([AUTOHEADER], [autoheader])
671 AM_MISSING_PROG([MAKEINFO], [makeinfo])
672 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
673 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
674 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
675 # For better backward compatibility. To be removed once Automake 1.9.x
676 # dies out for good. For more background, see:
677 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
678 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
679 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
680 # We need awk for the "check" target (and possibly the TAP driver). The
681 # system "awk" is bad on some platforms.
682 AC_REQUIRE([AC_PROG_AWK])dnl
683 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
684 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
685 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
686 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
687 [_AM_PROG_TAR([v7])])])
688 _AM_IF_OPTION([no-dependencies],,
689 [AC_PROVIDE_IFELSE([AC_PROG_CC],
690 [_AM_DEPENDENCIES([CC])],
691 [m4_define([AC_PROG_CC],
692 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
693 AC_PROVIDE_IFELSE([AC_PROG_CXX],
694 [_AM_DEPENDENCIES([CXX])],
695 [m4_define([AC_PROG_CXX],
696 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
697 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
698 [_AM_DEPENDENCIES([OBJC])],
699 [m4_define([AC_PROG_OBJC],
700 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
701 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
702 [_AM_DEPENDENCIES([OBJCXX])],
703 [m4_define([AC_PROG_OBJCXX],
704 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
706 AC_REQUIRE([AM_SILENT_RULES])dnl
707 dnl The testsuite driver may need to know about EXEEXT, so add the
708 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
709 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
710 AC_CONFIG_COMMANDS_PRE(dnl
711 [m4_provide_if([_AM_COMPILER_EXEEXT],
712 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
714 # POSIX will say in a future version that running "rm -f" with no argument
715 # is OK; and we want to be able to make that assumption in our Makefile
716 # recipes. So use an aggressive probe to check that the usage we want is
717 # actually supported "in the wild" to an acceptable degree.
718 # See automake bug#10828.
719 # To make any issue more visible, cause the running configure to be aborted
720 # by default if the 'rm' program in use doesn't match our expectations; the
721 # user can still override this though.
722 if rm -f && rm -fr && rm -rf; then : OK; else
726 Your 'rm' program seems unable to run without file operands specified
727 on the command line, even when the '-f' option is present. This is contrary
728 to the behaviour of most rm programs out there, and not conforming with
729 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
731 Please tell bug-automake@gnu.org about your system, including the value
732 of your $PATH and any error possibly output before this message. This
733 can help us improve future automake versions.
736 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
737 echo 'Configuration will proceed anyway, since you have set the' >&2
738 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
742 Aborting the configuration process, to ensure you take notice of the issue.
744 You can download and install GNU coreutils to get an 'rm' implementation
745 that behaves properly: <http://www.gnu.org/software/coreutils/>.
747 If you want to complete the configuration process using your problematic
748 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
749 to "yes", and re-run configure.
752 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
755 dnl The trailing newline in this macro's definition is deliberate, for
756 dnl backward compatibility and to allow trailing 'dnl'-style comments
757 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
760 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
761 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
762 dnl mangled by Autoconf and run in a shell conditional statement.
763 m4_define([_AC_COMPILER_EXEEXT],
764 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
766 # When config.status generates a header, we must update the stamp-h file.
767 # This file resides in the same directory as the config header
768 # that is generated. The stamp files are numbered to have different names.
770 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
771 # loop where config.status creates the headers, so we can generate
772 # our stamp files there.
773 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
774 [# Compute $1's index in $config_headers.
777 for _am_header in $config_headers :; do
779 $_am_arg | $_am_arg:* )
782 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
785 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
787 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
789 # This file is free software; the Free Software Foundation
790 # gives unlimited permission to copy and/or distribute it,
791 # with or without modifications, as long as this notice is preserved.
795 # Define $install_sh.
796 AC_DEFUN([AM_PROG_INSTALL_SH],
797 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
798 if test x"${install_sh+set}" != xset; then
801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
803 install_sh="\${SHELL} $am_aux_dir/install-sh"
806 AC_SUBST([install_sh])])
808 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
810 # This file is free software; the Free Software Foundation
811 # gives unlimited permission to copy and/or distribute it,
812 # with or without modifications, as long as this notice is preserved.
814 # Check whether the underlying file-system supports filenames
815 # with a leading dot. For instance MS-DOS doesn't.
816 AC_DEFUN([AM_SET_LEADING_DOT],
817 [rm -rf .tst 2>/dev/null
818 mkdir .tst 2>/dev/null
819 if test -d .tst; then
824 rmdir .tst 2>/dev/null
825 AC_SUBST([am__leading_dot])])
827 # Check to see how 'make' treats includes. -*- Autoconf -*-
829 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
831 # This file is free software; the Free Software Foundation
832 # gives unlimited permission to copy and/or distribute it,
833 # with or without modifications, as long as this notice is preserved.
837 # Check to see how make treats includes.
838 AC_DEFUN([AM_MAKE_INCLUDE],
839 [am_make=${MAKE-make}
840 cat > confinc << 'END'
842 @echo this is the am__doit target
845 # If we don't find an include directive, just comment out the code.
846 AC_MSG_CHECKING([for style of include used by $am_make])
850 # First try GNU make style include.
851 echo "include confinc" > confmf
852 # Ignore all kinds of additional output from 'make'.
853 case `$am_make -s -f confmf 2> /dev/null` in #(
854 *the\ am__doit\ target*)
860 # Now try BSD make style include.
861 if test "$am__include" = "#"; then
862 echo '.include "confinc"' > confmf
863 case `$am_make -s -f confmf 2> /dev/null` in #(
864 *the\ am__doit\ target*)
871 AC_SUBST([am__include])
872 AC_SUBST([am__quote])
873 AC_MSG_RESULT([$_am_result])
877 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
879 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
881 # This file is free software; the Free Software Foundation
882 # gives unlimited permission to copy and/or distribute it,
883 # with or without modifications, as long as this notice is preserved.
885 # AM_MISSING_PROG(NAME, PROGRAM)
886 # ------------------------------
887 AC_DEFUN([AM_MISSING_PROG],
888 [AC_REQUIRE([AM_MISSING_HAS_RUN])
889 $1=${$1-"${am_missing_run}$2"}
894 # Define MISSING if not defined so far and test if it is modern enough.
895 # If it is, set am_missing_run to use it, otherwise, to nothing.
896 AC_DEFUN([AM_MISSING_HAS_RUN],
897 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
898 AC_REQUIRE_AUX_FILE([missing])dnl
899 if test x"${MISSING+set}" != xset; then
902 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
904 MISSING="\${SHELL} $am_aux_dir/missing" ;;
907 # Use eval to expand $SHELL
908 if eval "$MISSING --is-lightweight"; then
909 am_missing_run="$MISSING "
912 AC_MSG_WARN(['missing' script is too old or missing])
916 # Helper functions for option handling. -*- Autoconf -*-
918 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
920 # This file is free software; the Free Software Foundation
921 # gives unlimited permission to copy and/or distribute it,
922 # with or without modifications, as long as this notice is preserved.
924 # _AM_MANGLE_OPTION(NAME)
925 # -----------------------
926 AC_DEFUN([_AM_MANGLE_OPTION],
927 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
929 # _AM_SET_OPTION(NAME)
930 # --------------------
931 # Set option NAME. Presently that only means defining a flag for this option.
932 AC_DEFUN([_AM_SET_OPTION],
933 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
935 # _AM_SET_OPTIONS(OPTIONS)
936 # ------------------------
937 # OPTIONS is a space-separated list of Automake options.
938 AC_DEFUN([_AM_SET_OPTIONS],
939 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
941 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
942 # -------------------------------------------
943 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
944 AC_DEFUN([_AM_IF_OPTION],
945 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
947 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
949 # This file is free software; the Free Software Foundation
950 # gives unlimited permission to copy and/or distribute it,
951 # with or without modifications, as long as this notice is preserved.
955 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
956 # to automatically call this.
957 AC_DEFUN([_AM_PROG_CC_C_O],
958 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
959 AC_REQUIRE_AUX_FILE([compile])dnl
962 [whether $CC understands -c and -o together],
964 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
965 # Make sure it works both with $CC and with simple cc.
966 # Following AC_PROG_CC_C_O, we do the test twice because some
967 # compilers refuse to overwrite an existing .o file with -o,
968 # though they will create one.
969 am_cv_prog_cc_c_o=yes
971 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
972 && test -f conftest2.$ac_objext; then
981 if test "$am_cv_prog_cc_c_o" != yes; then
982 # Losing compiler, so override with the script.
983 # FIXME: It is wrong to rewrite CC.
984 # But if we don't then we get into trouble of one sort or another.
985 # A longer-term fix would be to have automake use am__CC in this case,
986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
987 CC="$am_aux_dir/compile $CC"
991 # For backward compatibility.
992 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
994 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
996 # This file is free software; the Free Software Foundation
997 # gives unlimited permission to copy and/or distribute it,
998 # with or without modifications, as long as this notice is preserved.
1000 # AM_RUN_LOG(COMMAND)
1001 # -------------------
1002 # Run COMMAND, save the exit status in ac_status, and log it.
1003 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1004 AC_DEFUN([AM_RUN_LOG],
1005 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1006 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1008 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1009 (exit $ac_status); }])
1011 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1013 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1015 # This file is free software; the Free Software Foundation
1016 # gives unlimited permission to copy and/or distribute it,
1017 # with or without modifications, as long as this notice is preserved.
1021 AC_DEFUN([AM_SANITY_CHECK],
1022 [AC_MSG_CHECKING([whether build environment is sane])
1023 # Reject unsafe characters in $srcdir or the absolute working directory
1024 # name. Accept space and tab only in the latter.
1028 *[[\\\"\#\$\&\'\`$am_lf]]*)
1029 AC_MSG_ERROR([unsafe absolute working directory name]);;
1032 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1033 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1036 # Do 'set' in a subshell so we don't clobber the current shell's
1037 # arguments. Must try -L first in case configure is actually a
1038 # symlink; some systems play weird games with the mod time of symlinks
1039 # (eg FreeBSD returns the mod time of the symlink's containing
1043 for am_try in 1 2; do
1044 echo "timestamp, slept: $am_has_slept" > conftest.file
1045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1046 if test "$[*]" = "X"; then
1048 set X `ls -t "$srcdir/configure" conftest.file`
1050 if test "$[*]" != "X $srcdir/configure conftest.file" \
1051 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1053 # If neither matched, then we have a broken ls. This can happen
1054 # if, for instance, CONFIG_SHELL is bash and it inherits a
1055 # broken ls alias from the environment. This has actually
1056 # happened. Such a system could not be considered "sane".
1057 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1058 alias in your environment])
1060 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1067 test "$[2]" = conftest.file
1073 AC_MSG_ERROR([newly created file is older than distributed files!
1074 Check your system clock])
1076 AC_MSG_RESULT([yes])
1077 # If we didn't sleep, we still need to ensure time stamps of config.status and
1078 # generated files are strictly newer.
1080 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1084 AC_CONFIG_COMMANDS_PRE(
1085 [AC_MSG_CHECKING([that generated files are newer than configure])
1086 if test -n "$am_sleep_pid"; then
1087 # Hide warnings about reused PIDs.
1088 wait $am_sleep_pid 2>/dev/null
1090 AC_MSG_RESULT([done])])
1094 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1096 # This file is free software; the Free Software Foundation
1097 # gives unlimited permission to copy and/or distribute it,
1098 # with or without modifications, as long as this notice is preserved.
1100 # AM_SILENT_RULES([DEFAULT])
1101 # --------------------------
1102 # Enable less verbose build rules; with the default set to DEFAULT
1103 # ("yes" being less verbose, "no" or empty being verbose).
1104 AC_DEFUN([AM_SILENT_RULES],
1105 [AC_ARG_ENABLE([silent-rules], [dnl
1107 [--enable-silent-rules],
1108 [less verbose build output (undo: "make V=1")])
1110 [--disable-silent-rules],
1111 [verbose build output (undo: "make V=0")])dnl
1113 case $enable_silent_rules in @%:@ (((
1114 yes) AM_DEFAULT_VERBOSITY=0;;
1115 no) AM_DEFAULT_VERBOSITY=1;;
1116 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1119 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1120 dnl do not support nested variable expansions.
1121 dnl See automake bug#9928 and bug#10237.
1122 am_make=${MAKE-make}
1123 AC_CACHE_CHECK([whether $am_make supports nested variables],
1124 [am_cv_make_support_nested_variables],
1125 [if AS_ECHO([['TRUE=$(BAR$(V))
1131 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1132 am_cv_make_support_nested_variables=yes
1134 am_cv_make_support_nested_variables=no
1136 if test $am_cv_make_support_nested_variables = yes; then
1137 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1139 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1141 AM_V=$AM_DEFAULT_VERBOSITY
1142 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1145 AM_SUBST_NOTMAKE([AM_V])dnl
1146 AC_SUBST([AM_DEFAULT_V])dnl
1147 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1148 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1150 AC_SUBST([AM_BACKSLASH])dnl
1151 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1154 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1156 # This file is free software; the Free Software Foundation
1157 # gives unlimited permission to copy and/or distribute it,
1158 # with or without modifications, as long as this notice is preserved.
1160 # AM_PROG_INSTALL_STRIP
1161 # ---------------------
1162 # One issue with vendor 'install' (even GNU) is that you can't
1163 # specify the program used to strip binaries. This is especially
1164 # annoying in cross-compiling environments, where the build's strip
1165 # is unlikely to handle the host's binaries.
1166 # Fortunately install-sh will honor a STRIPPROG variable, so we
1167 # always use install-sh in "make install-strip", and initialize
1168 # STRIPPROG with the value of the STRIP variable (set by the user).
1169 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1170 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1171 # Installed binaries are usually stripped using 'strip' when the user
1172 # run "make install-strip". However 'strip' might not be the right
1173 # tool to use in cross-compilation environments, therefore Automake
1174 # will honor the 'STRIP' environment variable to overrule this program.
1175 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1176 if test "$cross_compiling" != no; then
1177 AC_CHECK_TOOL([STRIP], [strip], :)
1179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1180 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1182 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1184 # This file is free software; the Free Software Foundation
1185 # gives unlimited permission to copy and/or distribute it,
1186 # with or without modifications, as long as this notice is preserved.
1188 # _AM_SUBST_NOTMAKE(VARIABLE)
1189 # ---------------------------
1190 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1191 # This macro is traced by Automake.
1192 AC_DEFUN([_AM_SUBST_NOTMAKE])
1194 # AM_SUBST_NOTMAKE(VARIABLE)
1195 # --------------------------
1196 # Public sister of _AM_SUBST_NOTMAKE.
1197 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1199 # Check how to create a tarball. -*- Autoconf -*-
1201 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1203 # This file is free software; the Free Software Foundation
1204 # gives unlimited permission to copy and/or distribute it,
1205 # with or without modifications, as long as this notice is preserved.
1207 # _AM_PROG_TAR(FORMAT)
1208 # --------------------
1209 # Check how to create a tarball in format FORMAT.
1210 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1212 # Substitute a variable $(am__tar) that is a command
1213 # writing to stdout a FORMAT-tarball containing the directory
1215 # tardir=directory && $(am__tar) > result.tar
1217 # Substitute a variable $(am__untar) that extract such
1218 # a tarball read from stdin.
1219 # $(am__untar) < result.tar
1221 AC_DEFUN([_AM_PROG_TAR],
1222 [# Always define AMTAR for backward compatibility. Yes, it's still used
1223 # in the wild :-( We should find a proper way to deprecate it ...
1224 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1226 # We'll loop over all known methods to create a tar archive until one works.
1227 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1230 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1234 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1235 # There is notably a 21 bits limit for the UID and the GID. In fact,
1236 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1238 am_max_uid=2097151 # 2^21 - 1
1239 am_max_gid=$am_max_uid
1240 # The $UID and $GID variables are not portable, so we need to resort
1241 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1242 # below are definitely unexpected, so allow the users to see them
1243 # (that is, avoid stderr redirection).
1244 am_uid=`id -u || echo unknown`
1245 am_gid=`id -g || echo unknown`
1246 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1247 if test $am_uid -le $am_max_uid; then
1248 AC_MSG_RESULT([yes])
1253 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1254 if test $am_gid -le $am_max_gid; then
1255 AC_MSG_RESULT([yes])
1264 [m4_fatal([Unknown tar format])])
1266 AC_MSG_CHECKING([how to create a $1 tar archive])
1268 # Go ahead even if we have the value already cached. We do so because we
1269 # need to set the values for the 'am__tar' and 'am__untar' variables.
1270 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1272 for _am_tool in $_am_tools; do
1275 for _am_tar in tar gnutar gtar; do
1276 AM_RUN_LOG([$_am_tar --version]) && break
1278 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1279 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1280 am__untar="$_am_tar -xf -"
1283 # Must skip GNU tar: if it does not support --format= it doesn't create
1284 # ustar tarball either.
1285 (tar --version) >/dev/null 2>&1 && continue
1286 am__tar='tar chf - "$$tardir"'
1287 am__tar_='tar chf - "$tardir"'
1288 am__untar='tar xf -'
1291 am__tar='pax -L -x $1 -w "$$tardir"'
1292 am__tar_='pax -L -x $1 -w "$tardir"'
1296 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1297 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1298 am__untar='cpio -i -H $1 -d'
1307 # If the value was cached, stop now. We just wanted to have am__tar
1308 # and am__untar set.
1309 test -n "${am_cv_prog_tar_$1}" && break
1311 # tar/untar a dummy directory, and stop if the command works.
1314 echo GrepMe > conftest.dir/file
1315 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1317 if test -s conftest.tar; then
1318 AM_RUN_LOG([$am__untar <conftest.tar])
1319 AM_RUN_LOG([cat conftest.dir/file])
1320 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1325 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1326 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1329 AC_SUBST([am__untar])
1332 m4_include([sntp/libopts/m4/libopts.m4])
1333 m4_include([sntp/libopts/m4/stdnoreturn.m4])
1334 m4_include([sntp/m4/ax_c99_struct_init.m4])
1335 m4_include([sntp/m4/define_dir.m4])
1336 m4_include([sntp/m4/hms_search_lib.m4])
1337 m4_include([sntp/m4/libtool.m4])
1338 m4_include([sntp/m4/ltoptions.m4])
1339 m4_include([sntp/m4/ltsugar.m4])
1340 m4_include([sntp/m4/ltversion.m4])
1341 m4_include([sntp/m4/lt~obsolete.m4])
1342 m4_include([sntp/m4/ntp_cacheversion.m4])
1343 m4_include([sntp/m4/ntp_compiler.m4])
1344 m4_include([sntp/m4/ntp_crosscompile.m4])
1345 m4_include([sntp/m4/ntp_crypto_rand.m4])
1346 m4_include([sntp/m4/ntp_debug.m4])
1347 m4_include([sntp/m4/ntp_dir_sep.m4])
1348 m4_include([sntp/m4/ntp_facilitynames.m4])
1349 m4_include([sntp/m4/ntp_googletest.m4])
1350 m4_include([sntp/m4/ntp_ipv6.m4])
1351 m4_include([sntp/m4/ntp_lib_m.m4])
1352 m4_include([sntp/m4/ntp_libevent.m4])
1353 m4_include([sntp/m4/ntp_libntp.m4])
1354 m4_include([sntp/m4/ntp_lineeditlibs.m4])
1355 m4_include([sntp/m4/ntp_locinfo.m4])
1356 m4_include([sntp/m4/ntp_openssl.m4])
1357 m4_include([sntp/m4/ntp_pkg_config.m4])
1358 m4_include([sntp/m4/ntp_problemtests.m4])
1359 m4_include([sntp/m4/ntp_prog_cc.m4])
1360 m4_include([sntp/m4/ntp_rlimit.m4])
1361 m4_include([sntp/m4/ntp_sntp.m4])
1362 m4_include([sntp/m4/ntp_unitytest.m4])
1363 m4_include([sntp/m4/ntp_ver_suffix.m4])
1364 m4_include([sntp/m4/ntp_vpathhack.m4])
1365 m4_include([sntp/m4/openldap-thread-check.m4])
1366 m4_include([sntp/m4/openldap.m4])
1367 m4_include([sntp/m4/os_cflags.m4])
1368 m4_include([sntp/m4/snprintf.m4])