1 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
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.64],,
18 [m4_warning([this file was generated for autoconf 2.64.
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 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
26 # This file is free software; the Free Software Foundation
27 # gives unlimited permission to copy and/or distribute it,
28 # with or without modifications, as long as this notice is preserved.
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 # (This private macro should not be called outside this file.)
37 AC_DEFUN([AM_AUTOMAKE_VERSION],
38 [am__api_version='1.11'
39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40 dnl require some minimum version. Point them to the right macro.
41 m4_if([$1], [1.11.6], [],
42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
45 # _AM_AUTOCONF_VERSION(VERSION)
46 # -----------------------------
47 # aclocal traces this macro to find the Autoconf version.
48 # This is a private macro too. Using m4_define simplifies
49 # the logic in aclocal, which can simply ignore this definition.
50 m4_define([_AM_AUTOCONF_VERSION], [])
52 # AM_SET_CURRENT_AUTOMAKE_VERSION
53 # -------------------------------
54 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57 [AM_AUTOMAKE_VERSION([1.11.6])dnl
58 m4_ifndef([AC_AUTOCONF_VERSION],
59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
62 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
64 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
66 # This file is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
68 # with or without modifications, as long as this notice is preserved.
72 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
74 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
76 # Of course, Automake must honor this variable whenever it calls a
77 # tool from the auxiliary directory. The problem is that $srcdir (and
78 # therefore $ac_aux_dir as well) can be either absolute or relative,
79 # depending on how configure is run. This is pretty annoying, since
80 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
81 # source directory, any form will work fine, but in subdirectories a
82 # relative path needs to be adjusted first.
85 # fails when called from a subdirectory if $ac_aux_dir is relative
86 # $top_srcdir/$ac_aux_dir/missing
87 # fails if $ac_aux_dir is absolute,
88 # fails when called from a subdirectory in a VPATH build with
89 # a relative $ac_aux_dir
91 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92 # are both prefixed by $srcdir. In an in-source build this is usually
93 # harmless because $srcdir is `.', but things will broke when you
94 # start a VPATH build or use an absolute $srcdir.
96 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
97 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
98 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
99 # and then we would define $MISSING as
100 # MISSING="\${SHELL} $am_aux_dir/missing"
101 # This will work as long as MISSING is not called from configure, because
102 # unfortunately $(top_srcdir) has no meaning in configure.
103 # However there are other variables, like CC, which are often used in
104 # configure, and could therefore not use this "fixed" $ac_aux_dir.
106 # Another solution, used here, is to always expand $ac_aux_dir to an
107 # absolute PATH. The drawback is that using absolute paths prevent a
108 # configured tree to be moved without reconfiguration.
110 AC_DEFUN([AM_AUX_DIR_EXPAND],
111 [dnl Rely on autoconf to set up CDPATH properly.
113 # expand $ac_aux_dir to an absolute path
114 am_aux_dir=`cd $ac_aux_dir && pwd`
117 # AM_COND_IF -*- Autoconf -*-
119 # Copyright (C) 2008, 2010 Free Software Foundation, Inc.
121 # This file is free software; the Free Software Foundation
122 # gives unlimited permission to copy and/or distribute it,
123 # with or without modifications, as long as this notice is preserved.
131 # These macros are only used for tracing.
132 m4_define([_AM_COND_IF])
133 m4_define([_AM_COND_ELSE])
134 m4_define([_AM_COND_ENDIF])
137 # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
138 # ---------------------------------------
139 # If the shell condition COND is true, execute IF-TRUE, otherwise execute
140 # IF-FALSE. Allow automake to learn about conditional instantiating macros
141 # (the AC_CONFIG_FOOS).
142 AC_DEFUN([AM_COND_IF],
143 [m4_ifndef([_AM_COND_VALUE_$1],
144 [m4_fatal([$0: no such condition "$1"])])dnl
146 if test -z "$$1_TRUE"; then :
149 [_AM_COND_ELSE([$1])dnl
153 _AM_COND_ENDIF([$1])dnl
157 # AM_CONDITIONAL -*- Autoconf -*-
159 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
160 # Free Software Foundation, Inc.
162 # This file is free software; the Free Software Foundation
163 # gives unlimited permission to copy and/or distribute it,
164 # with or without modifications, as long as this notice is preserved.
168 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
169 # -------------------------------------
170 # Define a conditional.
171 AC_DEFUN([AM_CONDITIONAL],
173 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
174 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
175 AC_SUBST([$1_TRUE])dnl
176 AC_SUBST([$1_FALSE])dnl
177 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
178 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
179 m4_define([_AM_COND_VALUE_$1], [$2])dnl
187 AC_CONFIG_COMMANDS_PRE(
188 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
189 AC_MSG_ERROR([[conditional "$1" was never defined.
190 Usually this means the macro was only invoked conditionally.]])
193 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
194 # 2010, 2011 Free Software Foundation, Inc.
196 # This file is free software; the Free Software Foundation
197 # gives unlimited permission to copy and/or distribute it,
198 # with or without modifications, as long as this notice is preserved.
202 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
203 # written in clear, in which case automake, when reading aclocal.m4,
204 # will think it sees a *use*, and therefore will trigger all it's
205 # C support machinery. Also note that it means that autoscan, seeing
206 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
209 # _AM_DEPENDENCIES(NAME)
210 # ----------------------
211 # See how the compiler implements dependency checking.
212 # NAME is "CC", "CXX", "GCJ", or "OBJC".
213 # We try a few techniques and use that to set a single cache variable.
215 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
216 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
217 # dependency, and given that the user is not expected to run this macro,
218 # just rely on AC_PROG_CC.
219 AC_DEFUN([_AM_DEPENDENCIES],
220 [AC_REQUIRE([AM_SET_DEPDIR])dnl
221 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
222 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
223 AC_REQUIRE([AM_DEP_TRACK])dnl
225 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
226 [$1], CXX, [depcc="$CXX" am_compiler_list=],
227 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
228 [$1], UPC, [depcc="$UPC" am_compiler_list=],
229 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
230 [depcc="$$1" am_compiler_list=])
232 AC_CACHE_CHECK([dependency style of $depcc],
233 [am_cv_$1_dependencies_compiler_type],
234 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
235 # We make a subdir and do the tests there. Otherwise we can end up
236 # making bogus files that we don't know about and never remove. For
237 # instance it was reported that on HP-UX the gcc test will end up
238 # making a dummy file named `D' -- because `-MD' means `put the output
242 # Copy depcomp to subdir because otherwise we won't find it if we're
243 # using a relative directory.
244 cp "$am_depcomp" conftest.dir
246 # We will build objects and dependencies in a subdirectory because
247 # it helps to detect inapplicable dependency modes. For instance
248 # both Tru64's cc and ICC support -MD to output dependencies as a
249 # side effect of compilation, but ICC will put the dependencies in
250 # the current directory while Tru64 will put them in the object
254 am_cv_$1_dependencies_compiler_type=none
255 if test "$am_compiler_list" = ""; then
256 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
260 [case " $depcc " in #(
261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
264 [case " $depcc " in #(
265 *\ -arch\ *\ -arch\ *) am__universal=true ;;
268 for depmode in $am_compiler_list; do
269 # Setup a source with many dependencies, because some compilers
270 # like to wrap large dependency lists on column 80 (with \), and
271 # we should not choose a depcomp mode which is confused by this.
273 # We need to recreate these files for each test, as the compiler may
274 # overwrite some of them when testing with obscure command lines.
275 # This happens at least with the AIX C compiler.
277 for i in 1 2 3 4 5 6; do
278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
280 # Solaris 8's {/usr,}/bin/sh.
281 touch sub/conftst$i.h
283 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
286 # mode. It turns out that the SunPro C++ compiler does not properly
287 # handle `-M -o', and we need to detect this. Also, some Intel
288 # versions had trouble with output in subdirs
289 am__obj=sub/conftest.${OBJEXT-o}
290 am__minus_obj="-o $am__obj"
293 # This depmode causes a compiler race in universal mode.
294 test "$am__universal" = false || continue
297 # after this tag, mechanisms are not by side-effect, so they'll
298 # only be used when explicitly requested
299 if test "x$enable_dependency_tracking" = xyes; then
305 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
306 # This compiler won't grok `-c -o', but also, the minuso test has
307 # not run yet. These depmodes are late enough in the game, and
308 # so weak that their functioning should not be impacted.
309 am__obj=conftest.${OBJEXT-o}
314 if depmode=$depmode \
315 source=sub/conftest.c object=$am__obj \
316 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
317 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
318 >/dev/null 2>conftest.err &&
319 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
320 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
321 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
322 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
323 # icc doesn't choke on unknown options, it will just issue warnings
324 # or remarks (even with -Werror). So we grep stderr for any message
325 # that says an option was ignored or not supported.
326 # When given -MP, icc 7.0 and 7.1 complain thusly:
327 # icc: Command line warning: ignoring option '-M'; no argument required
328 # The diagnosis changed in icc 8.0:
329 # icc: Command line remark: option '-MP' not supported
330 if (grep 'ignoring option' conftest.err ||
331 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
332 am_cv_$1_dependencies_compiler_type=$depmode
341 am_cv_$1_dependencies_compiler_type=none
344 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
345 AM_CONDITIONAL([am__fastdep$1], [
346 test "x$enable_dependency_tracking" != xno \
347 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
353 # Choose a directory name for dependency files.
354 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
355 AC_DEFUN([AM_SET_DEPDIR],
356 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
357 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
363 AC_DEFUN([AM_DEP_TRACK],
364 [AC_ARG_ENABLE(dependency-tracking,
365 [ --disable-dependency-tracking speeds up one-time build
366 --enable-dependency-tracking do not reject slow dependency extractors])
367 if test "x$enable_dependency_tracking" != xno; then
368 am_depcomp="$ac_aux_dir/depcomp"
372 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
373 AC_SUBST([AMDEPBACKSLASH])dnl
374 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
375 AC_SUBST([am__nodep])dnl
376 _AM_SUBST_NOTMAKE([am__nodep])dnl
379 # Generate code to set up dependency tracking. -*- Autoconf -*-
381 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
382 # Free Software Foundation, Inc.
384 # This file is free software; the Free Software Foundation
385 # gives unlimited permission to copy and/or distribute it,
386 # with or without modifications, as long as this notice is preserved.
390 # _AM_OUTPUT_DEPENDENCY_COMMANDS
391 # ------------------------------
392 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
394 # Autoconf 2.62 quotes --file arguments for eval, but not when files
395 # are listed without --file. Let's play safe and only enable the eval
396 # if we detect the quoting.
397 case $CONFIG_FILES in
398 *\'*) eval set x "$CONFIG_FILES" ;;
399 *) set x $CONFIG_FILES ;;
404 # Strip MF so we end up with the name of the file.
405 mf=`echo "$mf" | sed -e 's/:.*$//'`
406 # Check whether this is an Automake generated Makefile or not.
407 # We used to match only the files named `Makefile.in', but
408 # some people rename them; so instead we look at the file content.
409 # Grep'ing the first line is not enough: some people post-process
410 # each Makefile.in and add a new line on top of each file to say so.
411 # Grep'ing the whole file is not good either: AIX grep has a line
412 # limit of 2048, but all sed's we know have understand at least 4000.
413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
414 dirpart=`AS_DIRNAME("$mf")`
418 # Extract the definition of DEPDIR, am__include, and am__quote
419 # from the Makefile without running `make'.
420 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
421 test -z "$DEPDIR" && continue
422 am__include=`sed -n 's/^am__include = //p' < "$mf"`
423 test -z "am__include" && continue
424 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
425 # When using ansi2knr, U may be empty or an underscore; expand it
426 U=`sed -n 's/^U = //p' < "$mf"`
427 # Find all dependency output files, they are included files with
428 # $(DEPDIR) in their names. We invoke sed twice because it is the
429 # simplest approach to changing $(DEPDIR) to its actual value in the
431 for file in `sed -n "
432 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
433 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
434 # Make sure the directory exists.
435 test -f "$dirpart/$file" && continue
436 fdir=`AS_DIRNAME(["$file"])`
437 AS_MKDIR_P([$dirpart/$fdir])
438 # echo "creating $dirpart/$file"
439 echo '# dummy' > "$dirpart/$file"
443 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
446 # AM_OUTPUT_DEPENDENCY_COMMANDS
447 # -----------------------------
448 # This macro should only be invoked once -- use via AC_REQUIRE.
450 # This code is only required when automatic dependency tracking
451 # is enabled. FIXME. This creates each `.P' file that we will
452 # need in order to bootstrap the dependency handling code.
453 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
454 [AC_CONFIG_COMMANDS([depfiles],
455 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
456 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
459 # Do all the work for Automake. -*- Autoconf -*-
461 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
462 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
464 # This file is free software; the Free Software Foundation
465 # gives unlimited permission to copy and/or distribute it,
466 # with or without modifications, as long as this notice is preserved.
470 # This macro actually does too much. Some checks are only needed if
471 # your package does certain things. But this isn't really a big deal.
473 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
474 # AM_INIT_AUTOMAKE([OPTIONS])
475 # -----------------------------------------------
476 # The call with PACKAGE and VERSION arguments is the old style
477 # call (pre autoconf-2.50), which is being phased out. PACKAGE
478 # and VERSION should now be passed to AC_INIT and removed from
479 # the call to AM_INIT_AUTOMAKE.
480 # We support both call styles for the transition. After
481 # the next Automake release, Autoconf can make the AC_INIT
482 # arguments mandatory, and then we can depend on a new Autoconf
483 # release and drop the old call support.
484 AC_DEFUN([AM_INIT_AUTOMAKE],
485 [AC_PREREQ([2.62])dnl
486 dnl Autoconf wants to disallow AM_ names. We explicitly allow
487 dnl the ones we care about.
488 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
489 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
490 AC_REQUIRE([AC_PROG_INSTALL])dnl
491 if test "`cd $srcdir && pwd`" != "`pwd`"; then
492 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
493 # is not polluted with repeated "-I."
494 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
495 # test to see if srcdir already configured
496 if test -f $srcdir/config.status; then
497 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
501 # test whether we have cygpath
502 if test -z "$CYGPATH_W"; then
503 if (cygpath --version) >/dev/null 2>/dev/null; then
504 CYGPATH_W='cygpath -w'
509 AC_SUBST([CYGPATH_W])
511 # Define the identity of the package.
512 dnl Distinguish between old-style and new-style calls.
514 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
515 AC_SUBST([PACKAGE], [$1])dnl
516 AC_SUBST([VERSION], [$2])],
517 [_AM_SET_OPTIONS([$1])dnl
518 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
519 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
520 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
521 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
522 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
524 _AM_IF_OPTION([no-define],,
525 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
526 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
528 # Some tools Automake needs.
529 AC_REQUIRE([AM_SANITY_CHECK])dnl
530 AC_REQUIRE([AC_ARG_PROGRAM])dnl
531 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
532 AM_MISSING_PROG(AUTOCONF, autoconf)
533 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
534 AM_MISSING_PROG(AUTOHEADER, autoheader)
535 AM_MISSING_PROG(MAKEINFO, makeinfo)
536 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
537 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
538 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
539 # We need awk for the "check" target. The system "awk" is bad on
541 AC_REQUIRE([AC_PROG_AWK])dnl
542 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
543 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
544 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
545 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
546 [_AM_PROG_TAR([v7])])])
547 _AM_IF_OPTION([no-dependencies],,
548 [AC_PROVIDE_IFELSE([AC_PROG_CC],
549 [_AM_DEPENDENCIES(CC)],
550 [define([AC_PROG_CC],
551 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
552 AC_PROVIDE_IFELSE([AC_PROG_CXX],
553 [_AM_DEPENDENCIES(CXX)],
554 [define([AC_PROG_CXX],
555 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
556 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
557 [_AM_DEPENDENCIES(OBJC)],
558 [define([AC_PROG_OBJC],
559 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
561 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
562 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
563 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
564 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
565 AC_CONFIG_COMMANDS_PRE(dnl
566 [m4_provide_if([_AM_COMPILER_EXEEXT],
567 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
570 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
571 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
572 dnl mangled by Autoconf and run in a shell conditional statement.
573 m4_define([_AC_COMPILER_EXEEXT],
574 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
577 # When config.status generates a header, we must update the stamp-h file.
578 # This file resides in the same directory as the config header
579 # that is generated. The stamp files are numbered to have different names.
581 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
582 # loop where config.status creates the headers, so we can generate
583 # our stamp files there.
584 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
585 [# Compute $1's index in $config_headers.
588 for _am_header in $config_headers :; do
590 $_am_arg | $_am_arg:* )
593 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
596 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
598 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
601 # This file is free software; the Free Software Foundation
602 # gives unlimited permission to copy and/or distribute it,
603 # with or without modifications, as long as this notice is preserved.
609 # Define $install_sh.
610 AC_DEFUN([AM_PROG_INSTALL_SH],
611 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
612 if test x"${install_sh}" != xset; then
615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
617 install_sh="\${SHELL} $am_aux_dir/install-sh"
620 AC_SUBST(install_sh)])
622 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
625 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
626 # 2011 Free Software Foundation, Inc.
628 # This file is free software; the Free Software Foundation
629 # gives unlimited permission to copy and/or distribute it,
630 # with or without modifications, as long as this notice is preserved.
634 # AM_MAINTAINER_MODE([DEFAULT-MODE])
635 # ----------------------------------
636 # Control maintainer-specific portions of Makefiles.
637 # Default is to disable them, unless `enable' is passed literally.
638 # For symmetry, `disable' may be passed as well. Anyway, the user
639 # can override the default with the --enable/--disable switch.
640 AC_DEFUN([AM_MAINTAINER_MODE],
641 [m4_case(m4_default([$1], [disable]),
642 [enable], [m4_define([am_maintainer_other], [disable])],
643 [disable], [m4_define([am_maintainer_other], [enable])],
644 [m4_define([am_maintainer_other], [enable])
645 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
646 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
647 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
648 AC_ARG_ENABLE([maintainer-mode],
649 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
650 (and sometimes confusing) to the casual installer],
651 [USE_MAINTAINER_MODE=$enableval],
652 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
653 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
654 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
655 MAINT=$MAINTAINER_MODE_TRUE
660 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
662 # Check to see how 'make' treats includes. -*- Autoconf -*-
664 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
666 # This file is free software; the Free Software Foundation
667 # gives unlimited permission to copy and/or distribute it,
668 # with or without modifications, as long as this notice is preserved.
674 # Check to see how make treats includes.
675 AC_DEFUN([AM_MAKE_INCLUDE],
676 [am_make=${MAKE-make}
677 cat > confinc << 'END'
679 @echo this is the am__doit target
682 # If we don't find an include directive, just comment out the code.
683 AC_MSG_CHECKING([for style of include used by $am_make])
687 # First try GNU make style include.
688 echo "include confinc" > confmf
689 # Ignore all kinds of additional output from `make'.
690 case `$am_make -s -f confmf 2> /dev/null` in #(
691 *the\ am__doit\ target*)
697 # Now try BSD make style include.
698 if test "$am__include" = "#"; then
699 echo '.include "confinc"' > confmf
700 case `$am_make -s -f confmf 2> /dev/null` in #(
701 *the\ am__doit\ target*)
708 AC_SUBST([am__include])
709 AC_SUBST([am__quote])
710 AC_MSG_RESULT([$_am_result])
714 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
715 # Free Software Foundation, Inc.
717 # This file is free software; the Free Software Foundation
718 # gives unlimited permission to copy and/or distribute it,
719 # with or without modifications, as long as this notice is preserved.
725 # Like AC_PROG_CC_C_O, but changed for automake.
726 AC_DEFUN([AM_PROG_CC_C_O],
727 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
728 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
729 AC_REQUIRE_AUX_FILE([compile])dnl
730 # FIXME: we rely on the cache variable name because
731 # there is no other way.
733 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
734 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
735 if test "$am_t" != yes; then
736 # Losing compiler, so override with the script.
737 # FIXME: It is wrong to rewrite CC.
738 # But if we don't then we get into trouble of one sort or another.
739 # A longer-term fix would be to have automake use am__CC in this case,
740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
741 CC="$am_aux_dir/compile $CC"
743 dnl Make sure AC_PROG_CC is never called again, or it will override our
745 m4_define([AC_PROG_CC],
746 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
749 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
751 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
752 # Free Software Foundation, Inc.
754 # This file is free software; the Free Software Foundation
755 # gives unlimited permission to copy and/or distribute it,
756 # with or without modifications, as long as this notice is preserved.
760 # AM_MISSING_PROG(NAME, PROGRAM)
761 # ------------------------------
762 AC_DEFUN([AM_MISSING_PROG],
763 [AC_REQUIRE([AM_MISSING_HAS_RUN])
764 $1=${$1-"${am_missing_run}$2"}
770 # Define MISSING if not defined so far and test if it supports --run.
771 # If it does, set am_missing_run to use it, otherwise, to nothing.
772 AC_DEFUN([AM_MISSING_HAS_RUN],
773 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
774 AC_REQUIRE_AUX_FILE([missing])dnl
775 if test x"${MISSING+set}" != xset; then
778 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
780 MISSING="\${SHELL} $am_aux_dir/missing" ;;
783 # Use eval to expand $SHELL
784 if eval "$MISSING --run true"; then
785 am_missing_run="$MISSING --run "
788 AC_MSG_WARN([`missing' script is too old or missing])
792 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
795 # This file is free software; the Free Software Foundation
796 # gives unlimited permission to copy and/or distribute it,
797 # with or without modifications, as long as this notice is preserved.
803 # Check for `mkdir -p'.
804 AC_DEFUN([AM_PROG_MKDIR_P],
805 [AC_PREREQ([2.60])dnl
806 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
807 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
808 dnl while keeping a definition of mkdir_p for backward compatibility.
809 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
810 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
811 dnl Makefile.ins that do not define MKDIR_P, so we do our own
812 dnl adjustment using top_builddir (which is defined more often than
814 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
816 [[\\/$]]* | ?:[[\\/]]*) ;;
817 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
821 # Helper functions for option handling. -*- Autoconf -*-
823 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
826 # This file is free software; the Free Software Foundation
827 # gives unlimited permission to copy and/or distribute it,
828 # with or without modifications, as long as this notice is preserved.
832 # _AM_MANGLE_OPTION(NAME)
833 # -----------------------
834 AC_DEFUN([_AM_MANGLE_OPTION],
835 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
837 # _AM_SET_OPTION(NAME)
838 # --------------------
839 # Set option NAME. Presently that only means defining a flag for this option.
840 AC_DEFUN([_AM_SET_OPTION],
841 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
843 # _AM_SET_OPTIONS(OPTIONS)
844 # ------------------------
845 # OPTIONS is a space-separated list of Automake options.
846 AC_DEFUN([_AM_SET_OPTIONS],
847 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
849 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
850 # -------------------------------------------
851 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
852 AC_DEFUN([_AM_IF_OPTION],
853 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
855 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
857 # This file is free software; the Free Software Foundation
858 # gives unlimited permission to copy and/or distribute it,
859 # with or without modifications, as long as this notice is preserved.
863 # AM_RUN_LOG(COMMAND)
864 # -------------------
865 # Run COMMAND, save the exit status in ac_status, and log it.
866 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
867 AC_DEFUN([AM_RUN_LOG],
868 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
869 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
871 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
872 (exit $ac_status); }])
874 # Check to make sure that the build environment is sane. -*- Autoconf -*-
876 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
877 # Free Software Foundation, Inc.
879 # This file is free software; the Free Software Foundation
880 # gives unlimited permission to copy and/or distribute it,
881 # with or without modifications, as long as this notice is preserved.
887 AC_DEFUN([AM_SANITY_CHECK],
888 [AC_MSG_CHECKING([whether build environment is sane])
891 echo timestamp > conftest.file
892 # Reject unsafe characters in $srcdir or the absolute working directory
893 # name. Accept space and tab only in the latter.
897 *[[\\\"\#\$\&\'\`$am_lf]]*)
898 AC_MSG_ERROR([unsafe absolute working directory name]);;
901 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
902 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
905 # Do `set' in a subshell so we don't clobber the current shell's
906 # arguments. Must try -L first in case configure is actually a
907 # symlink; some systems play weird games with the mod time of symlinks
908 # (eg FreeBSD returns the mod time of the symlink's containing
911 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
912 if test "$[*]" = "X"; then
914 set X `ls -t "$srcdir/configure" conftest.file`
917 if test "$[*]" != "X $srcdir/configure conftest.file" \
918 && test "$[*]" != "X conftest.file $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
925 alias in your environment])
928 test "$[2]" = conftest.file
934 AC_MSG_ERROR([newly created file is older than distributed files!
935 Check your system clock])
939 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
941 # This file is free software; the Free Software Foundation
942 # gives unlimited permission to copy and/or distribute it,
943 # with or without modifications, as long as this notice is preserved.
947 # AM_PROG_INSTALL_STRIP
948 # ---------------------
949 # One issue with vendor `install' (even GNU) is that you can't
950 # specify the program used to strip binaries. This is especially
951 # annoying in cross-compiling environments, where the build's strip
952 # is unlikely to handle the host's binaries.
953 # Fortunately install-sh will honor a STRIPPROG variable, so we
954 # always use install-sh in `make install-strip', and initialize
955 # STRIPPROG with the value of the STRIP variable (set by the user).
956 AC_DEFUN([AM_PROG_INSTALL_STRIP],
957 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
958 # Installed binaries are usually stripped using `strip' when the user
959 # run `make install-strip'. However `strip' might not be the right
960 # tool to use in cross-compilation environments, therefore Automake
961 # will honor the `STRIP' environment variable to overrule this program.
962 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
963 if test "$cross_compiling" != no; then
964 AC_CHECK_TOOL([STRIP], [strip], :)
966 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
967 AC_SUBST([INSTALL_STRIP_PROGRAM])])
969 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
971 # This file is free software; the Free Software Foundation
972 # gives unlimited permission to copy and/or distribute it,
973 # with or without modifications, as long as this notice is preserved.
977 # _AM_SUBST_NOTMAKE(VARIABLE)
978 # ---------------------------
979 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
980 # This macro is traced by Automake.
981 AC_DEFUN([_AM_SUBST_NOTMAKE])
983 # AM_SUBST_NOTMAKE(VARIABLE)
984 # --------------------------
985 # Public sister of _AM_SUBST_NOTMAKE.
986 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
988 # Check how to create a tarball. -*- Autoconf -*-
990 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
992 # This file is free software; the Free Software Foundation
993 # gives unlimited permission to copy and/or distribute it,
994 # with or without modifications, as long as this notice is preserved.
998 # _AM_PROG_TAR(FORMAT)
999 # --------------------
1000 # Check how to create a tarball in format FORMAT.
1001 # FORMAT should be one of `v7', `ustar', or `pax'.
1003 # Substitute a variable $(am__tar) that is a command
1004 # writing to stdout a FORMAT-tarball containing the directory
1006 # tardir=directory && $(am__tar) > result.tar
1008 # Substitute a variable $(am__untar) that extract such
1009 # a tarball read from stdin.
1010 # $(am__untar) < result.tar
1011 AC_DEFUN([_AM_PROG_TAR],
1012 [# Always define AMTAR for backward compatibility. Yes, it's still used
1013 # in the wild :-( We should find a proper way to deprecate it ...
1014 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1016 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1017 [m4_case([$1], [ustar],, [pax],,
1018 [m4_fatal([Unknown tar format])])
1019 AC_MSG_CHECKING([how to create a $1 tar archive])
1020 # Loop over all known methods to create a tar archive until one works.
1021 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1022 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1023 # Do not fold the above two line into one, because Tru64 sh and
1024 # Solaris sh will not grok spaces in the rhs of `-'.
1025 for _am_tool in $_am_tools
1029 for _am_tar in tar gnutar gtar;
1031 AM_RUN_LOG([$_am_tar --version]) && break
1033 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1034 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1035 am__untar="$_am_tar -xf -"
1038 # Must skip GNU tar: if it does not support --format= it doesn't create
1039 # ustar tarball either.
1040 (tar --version) >/dev/null 2>&1 && continue
1041 am__tar='tar chf - "$$tardir"'
1042 am__tar_='tar chf - "$tardir"'
1043 am__untar='tar xf -'
1046 am__tar='pax -L -x $1 -w "$$tardir"'
1047 am__tar_='pax -L -x $1 -w "$tardir"'
1051 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1052 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1053 am__untar='cpio -i -H $1 -d'
1062 # If the value was cached, stop now. We just wanted to have am__tar
1063 # and am__untar set.
1064 test -n "${am_cv_prog_tar_$1}" && break
1066 # tar/untar a dummy directory, and stop if the command works
1069 echo GrepMe > conftest.dir/file
1070 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1072 if test -s conftest.tar; then
1073 AM_RUN_LOG([$am__untar <conftest.tar])
1074 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1079 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1080 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1082 AC_SUBST([am__untar])
1085 m4_include([../../config/depstand.m4])
1086 m4_include([../../config/lead-dot.m4])
1087 m4_include([../../config/multi.m4])
1088 m4_include([../../config/no-executables.m4])
1089 m4_include([../../config/override.m4])
1090 m4_include([../../libtool.m4])
1091 m4_include([../../ltoptions.m4])
1092 m4_include([../../ltsugar.m4])
1093 m4_include([../../ltversion.m4])
1094 m4_include([../../lt~obsolete.m4])
1095 m4_include([m4/ac_prog_antlr.m4])
1096 m4_include([m4/ac_prog_java.m4])
1097 m4_include([m4/ac_prog_java_works.m4])
1098 m4_include([m4/ac_prog_javac.m4])
1099 m4_include([m4/ac_prog_javac_works.m4])
1100 m4_include([m4/acattribute.m4])
1101 m4_include([m4/accross.m4])
1102 m4_include([m4/acinclude.m4])
1103 m4_include([m4/ax_create_stdint_h.m4])
1104 m4_include([m4/ax_func_which_gethostbyname_r.m4])
1105 m4_include([m4/gcc_attribute.m4])
1106 m4_include([m4/iconv.m4])
1107 m4_include([m4/lib-ld.m4])
1108 m4_include([m4/lib-link.m4])
1109 m4_include([m4/lib-prefix.m4])
1110 m4_include([m4/pkg.m4])