]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/libevent/aclocal.m4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / libevent / aclocal.m4
1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2014 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 # serial 9  -*- Autoconf -*-
24 # Enable extensions on systems that normally disable them.
25
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.
30
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.
36
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
40 # the fix is
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])
45 #      or
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.
50
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
62
63   AC_REQUIRE([AC_CANONICAL_HOST])
64
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
69        things to work.])
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.])
75   fi
76
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
79   dnl provided.
80   case "$host_os" in
81     hpux*)
82       AC_DEFINE([_XOPEN_SOURCE], [500],
83         [Define to 500 only on HP-UX.])
84       ;;
85   esac
86
87   AH_VERBATIM([__EXTENSIONS__],
88 [/* Enable extensions on AIX 3, Interix.  */
89 #ifndef _ALL_SOURCE
90 # undef _ALL_SOURCE
91 #endif
92 /* Enable GNU extensions on systems that have them.  */
93 #ifndef _GNU_SOURCE
94 # undef _GNU_SOURCE
95 #endif
96 /* Enable threading extensions on Solaris.  */
97 #ifndef _POSIX_PTHREAD_SEMANTICS
98 # undef _POSIX_PTHREAD_SEMANTICS
99 #endif
100 /* Enable extensions on HP NonStop.  */
101 #ifndef _TANDEM_SOURCE
102 # undef _TANDEM_SOURCE
103 #endif
104 /* Enable general extensions on Solaris.  */
105 #ifndef __EXTENSIONS__
106 # undef __EXTENSIONS__
107 #endif
108 ])
109   AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
110     [ac_cv_safe_to_define___extensions__],
111     [AC_COMPILE_IFELSE(
112        [AC_LANG_PROGRAM([[
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
124
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],
130 [
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])
138
139   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
140 ])
141
142 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
143 #
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.
147
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
159 ])
160
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], [])
167
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]))])
177
178 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
179
180 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
181 #
182 # This file is free software; the Free Software Foundation
183 # gives unlimited permission to copy and/or distribute it,
184 # with or without modifications, as long as this notice is preserved.
185
186 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
187 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
188 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
189 #
190 # Of course, Automake must honor this variable whenever it calls a
191 # tool from the auxiliary directory.  The problem is that $srcdir (and
192 # therefore $ac_aux_dir as well) can be either absolute or relative,
193 # depending on how configure is run.  This is pretty annoying, since
194 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
195 # source directory, any form will work fine, but in subdirectories a
196 # relative path needs to be adjusted first.
197 #
198 # $ac_aux_dir/missing
199 #    fails when called from a subdirectory if $ac_aux_dir is relative
200 # $top_srcdir/$ac_aux_dir/missing
201 #    fails if $ac_aux_dir is absolute,
202 #    fails when called from a subdirectory in a VPATH build with
203 #          a relative $ac_aux_dir
204 #
205 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
206 # are both prefixed by $srcdir.  In an in-source build this is usually
207 # harmless because $srcdir is '.', but things will broke when you
208 # start a VPATH build or use an absolute $srcdir.
209 #
210 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
211 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
212 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
213 # and then we would define $MISSING as
214 #   MISSING="\${SHELL} $am_aux_dir/missing"
215 # This will work as long as MISSING is not called from configure, because
216 # unfortunately $(top_srcdir) has no meaning in configure.
217 # However there are other variables, like CC, which are often used in
218 # configure, and could therefore not use this "fixed" $ac_aux_dir.
219 #
220 # Another solution, used here, is to always expand $ac_aux_dir to an
221 # absolute PATH.  The drawback is that using absolute paths prevent a
222 # configured tree to be moved without reconfiguration.
223
224 AC_DEFUN([AM_AUX_DIR_EXPAND],
225 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
226 # Expand $ac_aux_dir to an absolute path.
227 am_aux_dir=`cd "$ac_aux_dir" && pwd`
228 ])
229
230 # AM_CONDITIONAL                                            -*- Autoconf -*-
231
232 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
233 #
234 # This file is free software; the Free Software Foundation
235 # gives unlimited permission to copy and/or distribute it,
236 # with or without modifications, as long as this notice is preserved.
237
238 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
239 # -------------------------------------
240 # Define a conditional.
241 AC_DEFUN([AM_CONDITIONAL],
242 [AC_PREREQ([2.52])dnl
243  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
244        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
245 AC_SUBST([$1_TRUE])dnl
246 AC_SUBST([$1_FALSE])dnl
247 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
248 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
249 m4_define([_AM_COND_VALUE_$1], [$2])dnl
250 if $2; then
251   $1_TRUE=
252   $1_FALSE='#'
253 else
254   $1_TRUE='#'
255   $1_FALSE=
256 fi
257 AC_CONFIG_COMMANDS_PRE(
258 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
259   AC_MSG_ERROR([[conditional "$1" was never defined.
260 Usually this means the macro was only invoked conditionally.]])
261 fi])])
262
263 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
264 #
265 # This file is free software; the Free Software Foundation
266 # gives unlimited permission to copy and/or distribute it,
267 # with or without modifications, as long as this notice is preserved.
268
269
270 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
271 # written in clear, in which case automake, when reading aclocal.m4,
272 # will think it sees a *use*, and therefore will trigger all it's
273 # C support machinery.  Also note that it means that autoscan, seeing
274 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
275
276
277 # _AM_DEPENDENCIES(NAME)
278 # ----------------------
279 # See how the compiler implements dependency checking.
280 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
281 # We try a few techniques and use that to set a single cache variable.
282 #
283 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
284 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
285 # dependency, and given that the user is not expected to run this macro,
286 # just rely on AC_PROG_CC.
287 AC_DEFUN([_AM_DEPENDENCIES],
288 [AC_REQUIRE([AM_SET_DEPDIR])dnl
289 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
290 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
291 AC_REQUIRE([AM_DEP_TRACK])dnl
292
293 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
294       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
295       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
296       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
297       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
298       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
299                     [depcc="$$1"   am_compiler_list=])
300
301 AC_CACHE_CHECK([dependency style of $depcc],
302                [am_cv_$1_dependencies_compiler_type],
303 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
304   # We make a subdir and do the tests there.  Otherwise we can end up
305   # making bogus files that we don't know about and never remove.  For
306   # instance it was reported that on HP-UX the gcc test will end up
307   # making a dummy file named 'D' -- because '-MD' means "put the output
308   # in D".
309   rm -rf conftest.dir
310   mkdir conftest.dir
311   # Copy depcomp to subdir because otherwise we won't find it if we're
312   # using a relative directory.
313   cp "$am_depcomp" conftest.dir
314   cd conftest.dir
315   # We will build objects and dependencies in a subdirectory because
316   # it helps to detect inapplicable dependency modes.  For instance
317   # both Tru64's cc and ICC support -MD to output dependencies as a
318   # side effect of compilation, but ICC will put the dependencies in
319   # the current directory while Tru64 will put them in the object
320   # directory.
321   mkdir sub
322
323   am_cv_$1_dependencies_compiler_type=none
324   if test "$am_compiler_list" = ""; then
325      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
326   fi
327   am__universal=false
328   m4_case([$1], [CC],
329     [case " $depcc " in #(
330      *\ -arch\ *\ -arch\ *) am__universal=true ;;
331      esac],
332     [CXX],
333     [case " $depcc " in #(
334      *\ -arch\ *\ -arch\ *) am__universal=true ;;
335      esac])
336
337   for depmode in $am_compiler_list; do
338     # Setup a source with many dependencies, because some compilers
339     # like to wrap large dependency lists on column 80 (with \), and
340     # we should not choose a depcomp mode which is confused by this.
341     #
342     # We need to recreate these files for each test, as the compiler may
343     # overwrite some of them when testing with obscure command lines.
344     # This happens at least with the AIX C compiler.
345     : > sub/conftest.c
346     for i in 1 2 3 4 5 6; do
347       echo '#include "conftst'$i'.h"' >> sub/conftest.c
348       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
349       # Solaris 10 /bin/sh.
350       echo '/* dummy */' > sub/conftst$i.h
351     done
352     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
353
354     # We check with '-c' and '-o' for the sake of the "dashmstdout"
355     # mode.  It turns out that the SunPro C++ compiler does not properly
356     # handle '-M -o', and we need to detect this.  Also, some Intel
357     # versions had trouble with output in subdirs.
358     am__obj=sub/conftest.${OBJEXT-o}
359     am__minus_obj="-o $am__obj"
360     case $depmode in
361     gcc)
362       # This depmode causes a compiler race in universal mode.
363       test "$am__universal" = false || continue
364       ;;
365     nosideeffect)
366       # After this tag, mechanisms are not by side-effect, so they'll
367       # only be used when explicitly requested.
368       if test "x$enable_dependency_tracking" = xyes; then
369         continue
370       else
371         break
372       fi
373       ;;
374     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
375       # This compiler won't grok '-c -o', but also, the minuso test has
376       # not run yet.  These depmodes are late enough in the game, and
377       # so weak that their functioning should not be impacted.
378       am__obj=conftest.${OBJEXT-o}
379       am__minus_obj=
380       ;;
381     none) break ;;
382     esac
383     if depmode=$depmode \
384        source=sub/conftest.c object=$am__obj \
385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
386        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
387          >/dev/null 2>conftest.err &&
388        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
389        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
390        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
391        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
392       # icc doesn't choke on unknown options, it will just issue warnings
393       # or remarks (even with -Werror).  So we grep stderr for any message
394       # that says an option was ignored or not supported.
395       # When given -MP, icc 7.0 and 7.1 complain thusly:
396       #   icc: Command line warning: ignoring option '-M'; no argument required
397       # The diagnosis changed in icc 8.0:
398       #   icc: Command line remark: option '-MP' not supported
399       if (grep 'ignoring option' conftest.err ||
400           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
401         am_cv_$1_dependencies_compiler_type=$depmode
402         break
403       fi
404     fi
405   done
406
407   cd ..
408   rm -rf conftest.dir
409 else
410   am_cv_$1_dependencies_compiler_type=none
411 fi
412 ])
413 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
414 AM_CONDITIONAL([am__fastdep$1], [
415   test "x$enable_dependency_tracking" != xno \
416   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
417 ])
418
419
420 # AM_SET_DEPDIR
421 # -------------
422 # Choose a directory name for dependency files.
423 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
424 AC_DEFUN([AM_SET_DEPDIR],
425 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
426 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
427 ])
428
429
430 # AM_DEP_TRACK
431 # ------------
432 AC_DEFUN([AM_DEP_TRACK],
433 [AC_ARG_ENABLE([dependency-tracking], [dnl
434 AS_HELP_STRING(
435   [--enable-dependency-tracking],
436   [do not reject slow dependency extractors])
437 AS_HELP_STRING(
438   [--disable-dependency-tracking],
439   [speeds up one-time build])])
440 if test "x$enable_dependency_tracking" != xno; then
441   am_depcomp="$ac_aux_dir/depcomp"
442   AMDEPBACKSLASH='\'
443   am__nodep='_no'
444 fi
445 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
446 AC_SUBST([AMDEPBACKSLASH])dnl
447 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
448 AC_SUBST([am__nodep])dnl
449 _AM_SUBST_NOTMAKE([am__nodep])dnl
450 ])
451
452 # Generate code to set up dependency tracking.              -*- Autoconf -*-
453
454 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
455 #
456 # This file is free software; the Free Software Foundation
457 # gives unlimited permission to copy and/or distribute it,
458 # with or without modifications, as long as this notice is preserved.
459
460
461 # _AM_OUTPUT_DEPENDENCY_COMMANDS
462 # ------------------------------
463 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
464 [{
465   # Older Autoconf quotes --file arguments for eval, but not when files
466   # are listed without --file.  Let's play safe and only enable the eval
467   # if we detect the quoting.
468   case $CONFIG_FILES in
469   *\'*) eval set x "$CONFIG_FILES" ;;
470   *)   set x $CONFIG_FILES ;;
471   esac
472   shift
473   for mf
474   do
475     # Strip MF so we end up with the name of the file.
476     mf=`echo "$mf" | sed -e 's/:.*$//'`
477     # Check whether this is an Automake generated Makefile or not.
478     # We used to match only the files named 'Makefile.in', but
479     # some people rename them; so instead we look at the file content.
480     # Grep'ing the first line is not enough: some people post-process
481     # each Makefile.in and add a new line on top of each file to say so.
482     # Grep'ing the whole file is not good either: AIX grep has a line
483     # limit of 2048, but all sed's we know have understand at least 4000.
484     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
485       dirpart=`AS_DIRNAME("$mf")`
486     else
487       continue
488     fi
489     # Extract the definition of DEPDIR, am__include, and am__quote
490     # from the Makefile without running 'make'.
491     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
492     test -z "$DEPDIR" && continue
493     am__include=`sed -n 's/^am__include = //p' < "$mf"`
494     test -z "$am__include" && continue
495     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
496     # Find all dependency output files, they are included files with
497     # $(DEPDIR) in their names.  We invoke sed twice because it is the
498     # simplest approach to changing $(DEPDIR) to its actual value in the
499     # expansion.
500     for file in `sed -n "
501       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
502          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
503       # Make sure the directory exists.
504       test -f "$dirpart/$file" && continue
505       fdir=`AS_DIRNAME(["$file"])`
506       AS_MKDIR_P([$dirpart/$fdir])
507       # echo "creating $dirpart/$file"
508       echo '# dummy' > "$dirpart/$file"
509     done
510   done
511 }
512 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
513
514
515 # AM_OUTPUT_DEPENDENCY_COMMANDS
516 # -----------------------------
517 # This macro should only be invoked once -- use via AC_REQUIRE.
518 #
519 # This code is only required when automatic dependency tracking
520 # is enabled.  FIXME.  This creates each '.P' file that we will
521 # need in order to bootstrap the dependency handling code.
522 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
523 [AC_CONFIG_COMMANDS([depfiles],
524      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
525      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
526 ])
527
528 # Do all the work for Automake.                             -*- Autoconf -*-
529
530 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
531 #
532 # This file is free software; the Free Software Foundation
533 # gives unlimited permission to copy and/or distribute it,
534 # with or without modifications, as long as this notice is preserved.
535
536 # This macro actually does too much.  Some checks are only needed if
537 # your package does certain things.  But this isn't really a big deal.
538
539 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
540 m4_define([AC_PROG_CC],
541 m4_defn([AC_PROG_CC])
542 [_AM_PROG_CC_C_O
543 ])
544
545 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
546 # AM_INIT_AUTOMAKE([OPTIONS])
547 # -----------------------------------------------
548 # The call with PACKAGE and VERSION arguments is the old style
549 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
550 # and VERSION should now be passed to AC_INIT and removed from
551 # the call to AM_INIT_AUTOMAKE.
552 # We support both call styles for the transition.  After
553 # the next Automake release, Autoconf can make the AC_INIT
554 # arguments mandatory, and then we can depend on a new Autoconf
555 # release and drop the old call support.
556 AC_DEFUN([AM_INIT_AUTOMAKE],
557 [AC_PREREQ([2.65])dnl
558 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
559 dnl the ones we care about.
560 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
561 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
562 AC_REQUIRE([AC_PROG_INSTALL])dnl
563 if test "`cd $srcdir && pwd`" != "`pwd`"; then
564   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
565   # is not polluted with repeated "-I."
566   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
567   # test to see if srcdir already configured
568   if test -f $srcdir/config.status; then
569     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
570   fi
571 fi
572
573 # test whether we have cygpath
574 if test -z "$CYGPATH_W"; then
575   if (cygpath --version) >/dev/null 2>/dev/null; then
576     CYGPATH_W='cygpath -w'
577   else
578     CYGPATH_W=echo
579   fi
580 fi
581 AC_SUBST([CYGPATH_W])
582
583 # Define the identity of the package.
584 dnl Distinguish between old-style and new-style calls.
585 m4_ifval([$2],
586 [AC_DIAGNOSE([obsolete],
587              [$0: two- and three-arguments forms are deprecated.])
588 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
589  AC_SUBST([PACKAGE], [$1])dnl
590  AC_SUBST([VERSION], [$2])],
591 [_AM_SET_OPTIONS([$1])dnl
592 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
593 m4_if(
594   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
595   [ok:ok],,
596   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
597  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
598  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
599
600 _AM_IF_OPTION([no-define],,
601 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
602  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
603
604 # Some tools Automake needs.
605 AC_REQUIRE([AM_SANITY_CHECK])dnl
606 AC_REQUIRE([AC_ARG_PROGRAM])dnl
607 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
608 AM_MISSING_PROG([AUTOCONF], [autoconf])
609 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
610 AM_MISSING_PROG([AUTOHEADER], [autoheader])
611 AM_MISSING_PROG([MAKEINFO], [makeinfo])
612 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
613 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
614 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
615 # For better backward compatibility.  To be removed once Automake 1.9.x
616 # dies out for good.  For more background, see:
617 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
618 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
619 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
620 # We need awk for the "check" target (and possibly the TAP driver).  The
621 # system "awk" is bad on some platforms.
622 AC_REQUIRE([AC_PROG_AWK])dnl
623 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
624 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
625 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
626               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
627                              [_AM_PROG_TAR([v7])])])
628 _AM_IF_OPTION([no-dependencies],,
629 [AC_PROVIDE_IFELSE([AC_PROG_CC],
630                   [_AM_DEPENDENCIES([CC])],
631                   [m4_define([AC_PROG_CC],
632                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
633 AC_PROVIDE_IFELSE([AC_PROG_CXX],
634                   [_AM_DEPENDENCIES([CXX])],
635                   [m4_define([AC_PROG_CXX],
636                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
637 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
638                   [_AM_DEPENDENCIES([OBJC])],
639                   [m4_define([AC_PROG_OBJC],
640                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
641 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
642                   [_AM_DEPENDENCIES([OBJCXX])],
643                   [m4_define([AC_PROG_OBJCXX],
644                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
645 ])
646 AC_REQUIRE([AM_SILENT_RULES])dnl
647 dnl The testsuite driver may need to know about EXEEXT, so add the
648 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
649 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
650 AC_CONFIG_COMMANDS_PRE(dnl
651 [m4_provide_if([_AM_COMPILER_EXEEXT],
652   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
653
654 # POSIX will say in a future version that running "rm -f" with no argument
655 # is OK; and we want to be able to make that assumption in our Makefile
656 # recipes.  So use an aggressive probe to check that the usage we want is
657 # actually supported "in the wild" to an acceptable degree.
658 # See automake bug#10828.
659 # To make any issue more visible, cause the running configure to be aborted
660 # by default if the 'rm' program in use doesn't match our expectations; the
661 # user can still override this though.
662 if rm -f && rm -fr && rm -rf; then : OK; else
663   cat >&2 <<'END'
664 Oops!
665
666 Your 'rm' program seems unable to run without file operands specified
667 on the command line, even when the '-f' option is present.  This is contrary
668 to the behaviour of most rm programs out there, and not conforming with
669 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
670
671 Please tell bug-automake@gnu.org about your system, including the value
672 of your $PATH and any error possibly output before this message.  This
673 can help us improve future automake versions.
674
675 END
676   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
677     echo 'Configuration will proceed anyway, since you have set the' >&2
678     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
679     echo >&2
680   else
681     cat >&2 <<'END'
682 Aborting the configuration process, to ensure you take notice of the issue.
683
684 You can download and install GNU coreutils to get an 'rm' implementation
685 that behaves properly: <http://www.gnu.org/software/coreutils/>.
686
687 If you want to complete the configuration process using your problematic
688 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
689 to "yes", and re-run configure.
690
691 END
692     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
693   fi
694 fi
695 dnl The trailing newline in this macro's definition is deliberate, for
696 dnl backward compatibility and to allow trailing 'dnl'-style comments
697 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
698 ])
699
700 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
701 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
702 dnl mangled by Autoconf and run in a shell conditional statement.
703 m4_define([_AC_COMPILER_EXEEXT],
704 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
705
706 # When config.status generates a header, we must update the stamp-h file.
707 # This file resides in the same directory as the config header
708 # that is generated.  The stamp files are numbered to have different names.
709
710 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
711 # loop where config.status creates the headers, so we can generate
712 # our stamp files there.
713 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
714 [# Compute $1's index in $config_headers.
715 _am_arg=$1
716 _am_stamp_count=1
717 for _am_header in $config_headers :; do
718   case $_am_header in
719     $_am_arg | $_am_arg:* )
720       break ;;
721     * )
722       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
723   esac
724 done
725 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
726
727 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
728 #
729 # This file is free software; the Free Software Foundation
730 # gives unlimited permission to copy and/or distribute it,
731 # with or without modifications, as long as this notice is preserved.
732
733 # AM_PROG_INSTALL_SH
734 # ------------------
735 # Define $install_sh.
736 AC_DEFUN([AM_PROG_INSTALL_SH],
737 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
738 if test x"${install_sh+set}" != xset; then
739   case $am_aux_dir in
740   *\ * | *\     *)
741     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
742   *)
743     install_sh="\${SHELL} $am_aux_dir/install-sh"
744   esac
745 fi
746 AC_SUBST([install_sh])])
747
748 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
749 #
750 # This file is free software; the Free Software Foundation
751 # gives unlimited permission to copy and/or distribute it,
752 # with or without modifications, as long as this notice is preserved.
753
754 # Check whether the underlying file-system supports filenames
755 # with a leading dot.  For instance MS-DOS doesn't.
756 AC_DEFUN([AM_SET_LEADING_DOT],
757 [rm -rf .tst 2>/dev/null
758 mkdir .tst 2>/dev/null
759 if test -d .tst; then
760   am__leading_dot=.
761 else
762   am__leading_dot=_
763 fi
764 rmdir .tst 2>/dev/null
765 AC_SUBST([am__leading_dot])])
766
767 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
768
769 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
770 #
771 # This file is free software; the Free Software Foundation
772 # gives unlimited permission to copy and/or distribute it,
773 # with or without modifications, as long as this notice is preserved.
774
775 # AM_MAKE_INCLUDE()
776 # -----------------
777 # Check to see how make treats includes.
778 AC_DEFUN([AM_MAKE_INCLUDE],
779 [am_make=${MAKE-make}
780 cat > confinc << 'END'
781 am__doit:
782         @echo this is the am__doit target
783 .PHONY: am__doit
784 END
785 # If we don't find an include directive, just comment out the code.
786 AC_MSG_CHECKING([for style of include used by $am_make])
787 am__include="#"
788 am__quote=
789 _am_result=none
790 # First try GNU make style include.
791 echo "include confinc" > confmf
792 # Ignore all kinds of additional output from 'make'.
793 case `$am_make -s -f confmf 2> /dev/null` in #(
794 *the\ am__doit\ target*)
795   am__include=include
796   am__quote=
797   _am_result=GNU
798   ;;
799 esac
800 # Now try BSD make style include.
801 if test "$am__include" = "#"; then
802    echo '.include "confinc"' > confmf
803    case `$am_make -s -f confmf 2> /dev/null` in #(
804    *the\ am__doit\ target*)
805      am__include=.include
806      am__quote="\""
807      _am_result=BSD
808      ;;
809    esac
810 fi
811 AC_SUBST([am__include])
812 AC_SUBST([am__quote])
813 AC_MSG_RESULT([$_am_result])
814 rm -f confinc confmf
815 ])
816
817 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
818
819 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
820 #
821 # This file is free software; the Free Software Foundation
822 # gives unlimited permission to copy and/or distribute it,
823 # with or without modifications, as long as this notice is preserved.
824
825 # AM_MISSING_PROG(NAME, PROGRAM)
826 # ------------------------------
827 AC_DEFUN([AM_MISSING_PROG],
828 [AC_REQUIRE([AM_MISSING_HAS_RUN])
829 $1=${$1-"${am_missing_run}$2"}
830 AC_SUBST($1)])
831
832 # AM_MISSING_HAS_RUN
833 # ------------------
834 # Define MISSING if not defined so far and test if it is modern enough.
835 # If it is, set am_missing_run to use it, otherwise, to nothing.
836 AC_DEFUN([AM_MISSING_HAS_RUN],
837 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
838 AC_REQUIRE_AUX_FILE([missing])dnl
839 if test x"${MISSING+set}" != xset; then
840   case $am_aux_dir in
841   *\ * | *\     *)
842     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
843   *)
844     MISSING="\${SHELL} $am_aux_dir/missing" ;;
845   esac
846 fi
847 # Use eval to expand $SHELL
848 if eval "$MISSING --is-lightweight"; then
849   am_missing_run="$MISSING "
850 else
851   am_missing_run=
852   AC_MSG_WARN(['missing' script is too old or missing])
853 fi
854 ])
855
856 # Helper functions for option handling.                     -*- Autoconf -*-
857
858 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
859 #
860 # This file is free software; the Free Software Foundation
861 # gives unlimited permission to copy and/or distribute it,
862 # with or without modifications, as long as this notice is preserved.
863
864 # _AM_MANGLE_OPTION(NAME)
865 # -----------------------
866 AC_DEFUN([_AM_MANGLE_OPTION],
867 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
868
869 # _AM_SET_OPTION(NAME)
870 # --------------------
871 # Set option NAME.  Presently that only means defining a flag for this option.
872 AC_DEFUN([_AM_SET_OPTION],
873 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
874
875 # _AM_SET_OPTIONS(OPTIONS)
876 # ------------------------
877 # OPTIONS is a space-separated list of Automake options.
878 AC_DEFUN([_AM_SET_OPTIONS],
879 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
880
881 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
882 # -------------------------------------------
883 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
884 AC_DEFUN([_AM_IF_OPTION],
885 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
886
887 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
888 #
889 # This file is free software; the Free Software Foundation
890 # gives unlimited permission to copy and/or distribute it,
891 # with or without modifications, as long as this notice is preserved.
892
893 # _AM_PROG_CC_C_O
894 # ---------------
895 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
896 # to automatically call this.
897 AC_DEFUN([_AM_PROG_CC_C_O],
898 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
899 AC_REQUIRE_AUX_FILE([compile])dnl
900 AC_LANG_PUSH([C])dnl
901 AC_CACHE_CHECK(
902   [whether $CC understands -c and -o together],
903   [am_cv_prog_cc_c_o],
904   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
905   # Make sure it works both with $CC and with simple cc.
906   # Following AC_PROG_CC_C_O, we do the test twice because some
907   # compilers refuse to overwrite an existing .o file with -o,
908   # though they will create one.
909   am_cv_prog_cc_c_o=yes
910   for am_i in 1 2; do
911     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
912          && test -f conftest2.$ac_objext; then
913       : OK
914     else
915       am_cv_prog_cc_c_o=no
916       break
917     fi
918   done
919   rm -f core conftest*
920   unset am_i])
921 if test "$am_cv_prog_cc_c_o" != yes; then
922    # Losing compiler, so override with the script.
923    # FIXME: It is wrong to rewrite CC.
924    # But if we don't then we get into trouble of one sort or another.
925    # A longer-term fix would be to have automake use am__CC in this case,
926    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
927    CC="$am_aux_dir/compile $CC"
928 fi
929 AC_LANG_POP([C])])
930
931 # For backward compatibility.
932 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
933
934 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
935 #
936 # This file is free software; the Free Software Foundation
937 # gives unlimited permission to copy and/or distribute it,
938 # with or without modifications, as long as this notice is preserved.
939
940 # AM_RUN_LOG(COMMAND)
941 # -------------------
942 # Run COMMAND, save the exit status in ac_status, and log it.
943 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
944 AC_DEFUN([AM_RUN_LOG],
945 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
946    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
947    ac_status=$?
948    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
949    (exit $ac_status); }])
950
951 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
952
953 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
954 #
955 # This file is free software; the Free Software Foundation
956 # gives unlimited permission to copy and/or distribute it,
957 # with or without modifications, as long as this notice is preserved.
958
959 # AM_SANITY_CHECK
960 # ---------------
961 AC_DEFUN([AM_SANITY_CHECK],
962 [AC_MSG_CHECKING([whether build environment is sane])
963 # Reject unsafe characters in $srcdir or the absolute working directory
964 # name.  Accept space and tab only in the latter.
965 am_lf='
966 '
967 case `pwd` in
968   *[[\\\"\#\$\&\'\`$am_lf]]*)
969     AC_MSG_ERROR([unsafe absolute working directory name]);;
970 esac
971 case $srcdir in
972   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
973     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
974 esac
975
976 # Do 'set' in a subshell so we don't clobber the current shell's
977 # arguments.  Must try -L first in case configure is actually a
978 # symlink; some systems play weird games with the mod time of symlinks
979 # (eg FreeBSD returns the mod time of the symlink's containing
980 # directory).
981 if (
982    am_has_slept=no
983    for am_try in 1 2; do
984      echo "timestamp, slept: $am_has_slept" > conftest.file
985      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
986      if test "$[*]" = "X"; then
987         # -L didn't work.
988         set X `ls -t "$srcdir/configure" conftest.file`
989      fi
990      if test "$[*]" != "X $srcdir/configure conftest.file" \
991         && test "$[*]" != "X conftest.file $srcdir/configure"; then
992
993         # If neither matched, then we have a broken ls.  This can happen
994         # if, for instance, CONFIG_SHELL is bash and it inherits a
995         # broken ls alias from the environment.  This has actually
996         # happened.  Such a system could not be considered "sane".
997         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
998   alias in your environment])
999      fi
1000      if test "$[2]" = conftest.file || test $am_try -eq 2; then
1001        break
1002      fi
1003      # Just in case.
1004      sleep 1
1005      am_has_slept=yes
1006    done
1007    test "$[2]" = conftest.file
1008    )
1009 then
1010    # Ok.
1011    :
1012 else
1013    AC_MSG_ERROR([newly created file is older than distributed files!
1014 Check your system clock])
1015 fi
1016 AC_MSG_RESULT([yes])
1017 # If we didn't sleep, we still need to ensure time stamps of config.status and
1018 # generated files are strictly newer.
1019 am_sleep_pid=
1020 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1021   ( sleep 1 ) &
1022   am_sleep_pid=$!
1023 fi
1024 AC_CONFIG_COMMANDS_PRE(
1025   [AC_MSG_CHECKING([that generated files are newer than configure])
1026    if test -n "$am_sleep_pid"; then
1027      # Hide warnings about reused PIDs.
1028      wait $am_sleep_pid 2>/dev/null
1029    fi
1030    AC_MSG_RESULT([done])])
1031 rm -f conftest.file
1032 ])
1033
1034 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1035 #
1036 # This file is free software; the Free Software Foundation
1037 # gives unlimited permission to copy and/or distribute it,
1038 # with or without modifications, as long as this notice is preserved.
1039
1040 # AM_SILENT_RULES([DEFAULT])
1041 # --------------------------
1042 # Enable less verbose build rules; with the default set to DEFAULT
1043 # ("yes" being less verbose, "no" or empty being verbose).
1044 AC_DEFUN([AM_SILENT_RULES],
1045 [AC_ARG_ENABLE([silent-rules], [dnl
1046 AS_HELP_STRING(
1047   [--enable-silent-rules],
1048   [less verbose build output (undo: "make V=1")])
1049 AS_HELP_STRING(
1050   [--disable-silent-rules],
1051   [verbose build output (undo: "make V=0")])dnl
1052 ])
1053 case $enable_silent_rules in @%:@ (((
1054   yes) AM_DEFAULT_VERBOSITY=0;;
1055    no) AM_DEFAULT_VERBOSITY=1;;
1056     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1057 esac
1058 dnl
1059 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1060 dnl do not support nested variable expansions.
1061 dnl See automake bug#9928 and bug#10237.
1062 am_make=${MAKE-make}
1063 AC_CACHE_CHECK([whether $am_make supports nested variables],
1064    [am_cv_make_support_nested_variables],
1065    [if AS_ECHO([['TRUE=$(BAR$(V))
1066 BAR0=false
1067 BAR1=true
1068 V=1
1069 am__doit:
1070         @$(TRUE)
1071 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1072   am_cv_make_support_nested_variables=yes
1073 else
1074   am_cv_make_support_nested_variables=no
1075 fi])
1076 if test $am_cv_make_support_nested_variables = yes; then
1077   dnl Using '$V' instead of '$(V)' breaks IRIX make.
1078   AM_V='$(V)'
1079   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1080 else
1081   AM_V=$AM_DEFAULT_VERBOSITY
1082   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1083 fi
1084 AC_SUBST([AM_V])dnl
1085 AM_SUBST_NOTMAKE([AM_V])dnl
1086 AC_SUBST([AM_DEFAULT_V])dnl
1087 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1088 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1089 AM_BACKSLASH='\'
1090 AC_SUBST([AM_BACKSLASH])dnl
1091 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1092 ])
1093
1094 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1095 #
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.
1099
1100 # AM_PROG_INSTALL_STRIP
1101 # ---------------------
1102 # One issue with vendor 'install' (even GNU) is that you can't
1103 # specify the program used to strip binaries.  This is especially
1104 # annoying in cross-compiling environments, where the build's strip
1105 # is unlikely to handle the host's binaries.
1106 # Fortunately install-sh will honor a STRIPPROG variable, so we
1107 # always use install-sh in "make install-strip", and initialize
1108 # STRIPPROG with the value of the STRIP variable (set by the user).
1109 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1110 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1111 # Installed binaries are usually stripped using 'strip' when the user
1112 # run "make install-strip".  However 'strip' might not be the right
1113 # tool to use in cross-compilation environments, therefore Automake
1114 # will honor the 'STRIP' environment variable to overrule this program.
1115 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1116 if test "$cross_compiling" != no; then
1117   AC_CHECK_TOOL([STRIP], [strip], :)
1118 fi
1119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1120 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1121
1122 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1123 #
1124 # This file is free software; the Free Software Foundation
1125 # gives unlimited permission to copy and/or distribute it,
1126 # with or without modifications, as long as this notice is preserved.
1127
1128 # _AM_SUBST_NOTMAKE(VARIABLE)
1129 # ---------------------------
1130 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1131 # This macro is traced by Automake.
1132 AC_DEFUN([_AM_SUBST_NOTMAKE])
1133
1134 # AM_SUBST_NOTMAKE(VARIABLE)
1135 # --------------------------
1136 # Public sister of _AM_SUBST_NOTMAKE.
1137 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1138
1139 # Check how to create a tarball.                            -*- Autoconf -*-
1140
1141 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1142 #
1143 # This file is free software; the Free Software Foundation
1144 # gives unlimited permission to copy and/or distribute it,
1145 # with or without modifications, as long as this notice is preserved.
1146
1147 # _AM_PROG_TAR(FORMAT)
1148 # --------------------
1149 # Check how to create a tarball in format FORMAT.
1150 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1151 #
1152 # Substitute a variable $(am__tar) that is a command
1153 # writing to stdout a FORMAT-tarball containing the directory
1154 # $tardir.
1155 #     tardir=directory && $(am__tar) > result.tar
1156 #
1157 # Substitute a variable $(am__untar) that extract such
1158 # a tarball read from stdin.
1159 #     $(am__untar) < result.tar
1160 #
1161 AC_DEFUN([_AM_PROG_TAR],
1162 [# Always define AMTAR for backward compatibility.  Yes, it's still used
1163 # in the wild :-(  We should find a proper way to deprecate it ...
1164 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1165
1166 # We'll loop over all known methods to create a tar archive until one works.
1167 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1168
1169 m4_if([$1], [v7],
1170   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1171
1172   [m4_case([$1],
1173     [ustar],
1174      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1175       # There is notably a 21 bits limit for the UID and the GID.  In fact,
1176       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1177       # and bug#13588).
1178       am_max_uid=2097151 # 2^21 - 1
1179       am_max_gid=$am_max_uid
1180       # The $UID and $GID variables are not portable, so we need to resort
1181       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
1182       # below are definitely unexpected, so allow the users to see them
1183       # (that is, avoid stderr redirection).
1184       am_uid=`id -u || echo unknown`
1185       am_gid=`id -g || echo unknown`
1186       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1187       if test $am_uid -le $am_max_uid; then
1188          AC_MSG_RESULT([yes])
1189       else
1190          AC_MSG_RESULT([no])
1191          _am_tools=none
1192       fi
1193       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1194       if test $am_gid -le $am_max_gid; then
1195          AC_MSG_RESULT([yes])
1196       else
1197         AC_MSG_RESULT([no])
1198         _am_tools=none
1199       fi],
1200
1201   [pax],
1202     [],
1203
1204   [m4_fatal([Unknown tar format])])
1205
1206   AC_MSG_CHECKING([how to create a $1 tar archive])
1207
1208   # Go ahead even if we have the value already cached.  We do so because we
1209   # need to set the values for the 'am__tar' and 'am__untar' variables.
1210   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1211
1212   for _am_tool in $_am_tools; do
1213     case $_am_tool in
1214     gnutar)
1215       for _am_tar in tar gnutar gtar; do
1216         AM_RUN_LOG([$_am_tar --version]) && break
1217       done
1218       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1219       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1220       am__untar="$_am_tar -xf -"
1221       ;;
1222     plaintar)
1223       # Must skip GNU tar: if it does not support --format= it doesn't create
1224       # ustar tarball either.
1225       (tar --version) >/dev/null 2>&1 && continue
1226       am__tar='tar chf - "$$tardir"'
1227       am__tar_='tar chf - "$tardir"'
1228       am__untar='tar xf -'
1229       ;;
1230     pax)
1231       am__tar='pax -L -x $1 -w "$$tardir"'
1232       am__tar_='pax -L -x $1 -w "$tardir"'
1233       am__untar='pax -r'
1234       ;;
1235     cpio)
1236       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1237       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1238       am__untar='cpio -i -H $1 -d'
1239       ;;
1240     none)
1241       am__tar=false
1242       am__tar_=false
1243       am__untar=false
1244       ;;
1245     esac
1246
1247     # If the value was cached, stop now.  We just wanted to have am__tar
1248     # and am__untar set.
1249     test -n "${am_cv_prog_tar_$1}" && break
1250
1251     # tar/untar a dummy directory, and stop if the command works.
1252     rm -rf conftest.dir
1253     mkdir conftest.dir
1254     echo GrepMe > conftest.dir/file
1255     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1256     rm -rf conftest.dir
1257     if test -s conftest.tar; then
1258       AM_RUN_LOG([$am__untar <conftest.tar])
1259       AM_RUN_LOG([cat conftest.dir/file])
1260       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1261     fi
1262   done
1263   rm -rf conftest.dir
1264
1265   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1266   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1267
1268 AC_SUBST([am__tar])
1269 AC_SUBST([am__untar])
1270 ]) # _AM_PROG_TAR
1271
1272 m4_include([m4/ac_backport_259_ssizet.m4])
1273 m4_include([m4/acx_pthread.m4])
1274 m4_include([m4/libevent_openssl.m4])
1275 m4_include([m4/libtool.m4])
1276 m4_include([m4/ltoptions.m4])
1277 m4_include([m4/ltsugar.m4])
1278 m4_include([m4/ltversion.m4])
1279 m4_include([m4/lt~obsolete.m4])
1280 m4_include([m4/ntp_pkg_config.m4])