1 # generated automatically by aclocal 1.12.2 -*- Autoconf -*-
3 # Copyright (C) 1996-2012 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_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
30 # AM_AUTOMAKE_VERSION(VERSION)
31 # ----------------------------
32 # Automake X.Y traces this macro to ensure aclocal.m4 has been
33 # generated from the m4 files accompanying Automake X.Y.
34 # (This private macro should not be called outside this file.)
35 AC_DEFUN([AM_AUTOMAKE_VERSION],
36 [am__api_version='1.12'
37 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
38 dnl require some minimum version. Point them to the right macro.
39 m4_if([$1], [1.12.2], [],
40 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
43 # _AM_AUTOCONF_VERSION(VERSION)
44 # -----------------------------
45 # aclocal traces this macro to find the Autoconf version.
46 # This is a private macro too. Using m4_define simplifies
47 # the logic in aclocal, which can simply ignore this definition.
48 m4_define([_AM_AUTOCONF_VERSION], [])
50 # AM_SET_CURRENT_AUTOMAKE_VERSION
51 # -------------------------------
52 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
53 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
54 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
55 [AM_AUTOMAKE_VERSION([1.12.2])dnl
56 m4_ifndef([AC_AUTOCONF_VERSION],
57 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
58 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
64 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
70 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
71 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
72 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
74 # Of course, Automake must honor this variable whenever it calls a
75 # tool from the auxiliary directory. The problem is that $srcdir (and
76 # therefore $ac_aux_dir as well) can be either absolute or relative,
77 # depending on how configure is run. This is pretty annoying, since
78 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
79 # source directory, any form will work fine, but in subdirectories a
80 # relative path needs to be adjusted first.
83 # fails when called from a subdirectory if $ac_aux_dir is relative
84 # $top_srcdir/$ac_aux_dir/missing
85 # fails if $ac_aux_dir is absolute,
86 # fails when called from a subdirectory in a VPATH build with
87 # a relative $ac_aux_dir
89 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
90 # are both prefixed by $srcdir. In an in-source build this is usually
91 # harmless because $srcdir is '.', but things will broke when you
92 # start a VPATH build or use an absolute $srcdir.
94 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
95 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
96 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
97 # and then we would define $MISSING as
98 # MISSING="\${SHELL} $am_aux_dir/missing"
99 # This will work as long as MISSING is not called from configure, because
100 # unfortunately $(top_srcdir) has no meaning in configure.
101 # However there are other variables, like CC, which are often used in
102 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 # Another solution, used here, is to always expand $ac_aux_dir to an
105 # absolute PATH. The drawback is that using absolute paths prevent a
106 # configured tree to be moved without reconfiguration.
108 AC_DEFUN([AM_AUX_DIR_EXPAND],
109 [dnl Rely on autoconf to set up CDPATH properly.
111 # expand $ac_aux_dir to an absolute path
112 am_aux_dir=`cd $ac_aux_dir && pwd`
115 # AM_CONDITIONAL -*- Autoconf -*-
117 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
119 # This file is free software; the Free Software Foundation
120 # gives unlimited permission to copy and/or distribute it,
121 # with or without modifications, as long as this notice is preserved.
125 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
126 # -------------------------------------
127 # Define a conditional.
128 AC_DEFUN([AM_CONDITIONAL],
129 [AC_PREREQ([2.52])dnl
130 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
131 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
132 AC_SUBST([$1_TRUE])dnl
133 AC_SUBST([$1_FALSE])dnl
134 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
135 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
136 m4_define([_AM_COND_VALUE_$1], [$2])dnl
144 AC_CONFIG_COMMANDS_PRE(
145 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
146 AC_MSG_ERROR([[conditional "$1" was never defined.
147 Usually this means the macro was only invoked conditionally.]])
150 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
152 # This file is free software; the Free Software Foundation
153 # gives unlimited permission to copy and/or distribute it,
154 # with or without modifications, as long as this notice is preserved.
158 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
159 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
161 # Do all the work for Automake. -*- Autoconf -*-
163 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
165 # This file is free software; the Free Software Foundation
166 # gives unlimited permission to copy and/or distribute it,
167 # with or without modifications, as long as this notice is preserved.
171 # This macro actually does too much. Some checks are only needed if
172 # your package does certain things. But this isn't really a big deal.
174 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
175 # AM_INIT_AUTOMAKE([OPTIONS])
176 # -----------------------------------------------
177 # The call with PACKAGE and VERSION arguments is the old style
178 # call (pre autoconf-2.50), which is being phased out. PACKAGE
179 # and VERSION should now be passed to AC_INIT and removed from
180 # the call to AM_INIT_AUTOMAKE.
181 # We support both call styles for the transition. After
182 # the next Automake release, Autoconf can make the AC_INIT
183 # arguments mandatory, and then we can depend on a new Autoconf
184 # release and drop the old call support.
185 AC_DEFUN([AM_INIT_AUTOMAKE],
186 [AC_PREREQ([2.62])dnl
187 dnl Autoconf wants to disallow AM_ names. We explicitly allow
188 dnl the ones we care about.
189 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
190 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
191 AC_REQUIRE([AC_PROG_INSTALL])dnl
192 if test "`cd $srcdir && pwd`" != "`pwd`"; then
193 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
194 # is not polluted with repeated "-I."
195 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
196 # test to see if srcdir already configured
197 if test -f $srcdir/config.status; then
198 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
202 # test whether we have cygpath
203 if test -z "$CYGPATH_W"; then
204 if (cygpath --version) >/dev/null 2>/dev/null; then
205 CYGPATH_W='cygpath -w'
210 AC_SUBST([CYGPATH_W])
212 # Define the identity of the package.
213 dnl Distinguish between old-style and new-style calls.
215 [AC_DIAGNOSE([obsolete],
216 [$0: two- and three-arguments forms are deprecated. For more info, see:
217 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
218 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
219 AC_SUBST([PACKAGE], [$1])dnl
220 AC_SUBST([VERSION], [$2])],
221 [_AM_SET_OPTIONS([$1])dnl
222 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
224 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
226 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
227 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
228 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
230 _AM_IF_OPTION([no-define],,
231 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
232 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
234 # Some tools Automake needs.
235 AC_REQUIRE([AM_SANITY_CHECK])dnl
236 AC_REQUIRE([AC_ARG_PROGRAM])dnl
237 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
238 AM_MISSING_PROG([AUTOCONF], [autoconf])
239 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
240 AM_MISSING_PROG([AUTOHEADER], [autoheader])
241 AM_MISSING_PROG([MAKEINFO], [makeinfo])
242 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
243 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
244 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
245 # For better backward compatibility. To be removed once Automake 1.9.x
246 # dies out for good. For more background, see:
247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
248 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
249 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
250 # We need awk for the "check" target. The system "awk" is bad on
252 AC_REQUIRE([AC_PROG_AWK])dnl
253 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
254 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
255 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
256 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
257 [_AM_PROG_TAR([v7])])])
258 _AM_IF_OPTION([no-dependencies],,
259 [AC_PROVIDE_IFELSE([AC_PROG_CC],
260 [_AM_DEPENDENCIES([CC])],
261 [m4_define([AC_PROG_CC],
262 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
263 AC_PROVIDE_IFELSE([AC_PROG_CXX],
264 [_AM_DEPENDENCIES([CXX])],
265 [m4_define([AC_PROG_CXX],
266 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
267 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
268 [_AM_DEPENDENCIES([OBJC])],
269 [m4_define([AC_PROG_OBJC],
270 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
271 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
272 dnl but we still cater to Autoconf 2.62.
273 m4_ifdef([AC_PROG_OBJCXX],
274 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
275 [_AM_DEPENDENCIES([OBJCXX])],
276 [m4_define([AC_PROG_OBJCXX],
277 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
279 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
280 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
281 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
282 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
283 AC_CONFIG_COMMANDS_PRE(dnl
284 [m4_provide_if([_AM_COMPILER_EXEEXT],
285 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
288 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
289 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
290 dnl mangled by Autoconf and run in a shell conditional statement.
291 m4_define([_AC_COMPILER_EXEEXT],
292 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
295 # When config.status generates a header, we must update the stamp-h file.
296 # This file resides in the same directory as the config header
297 # that is generated. The stamp files are numbered to have different names.
299 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
300 # loop where config.status creates the headers, so we can generate
301 # our stamp files there.
302 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
303 [# Compute $1's index in $config_headers.
306 for _am_header in $config_headers :; do
308 $_am_arg | $_am_arg:* )
311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
314 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
316 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
318 # This file is free software; the Free Software Foundation
319 # gives unlimited permission to copy and/or distribute it,
320 # with or without modifications, as long as this notice is preserved.
326 # Define $install_sh.
327 AC_DEFUN([AM_PROG_INSTALL_SH],
328 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
329 if test x"${install_sh}" != xset; then
332 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
334 install_sh="\${SHELL} $am_aux_dir/install-sh"
337 AC_SUBST([install_sh])])
339 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
341 # This file is free software; the Free Software Foundation
342 # gives unlimited permission to copy and/or distribute it,
343 # with or without modifications, as long as this notice is preserved.
347 # Check whether the underlying file-system supports filenames
348 # with a leading dot. For instance MS-DOS doesn't.
349 AC_DEFUN([AM_SET_LEADING_DOT],
350 [rm -rf .tst 2>/dev/null
351 mkdir .tst 2>/dev/null
352 if test -d .tst; then
357 rmdir .tst 2>/dev/null
358 AC_SUBST([am__leading_dot])])
360 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
363 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
365 # This file is free software; the Free Software Foundation
366 # gives unlimited permission to copy and/or distribute it,
367 # with or without modifications, as long as this notice is preserved.
371 # AM_MAINTAINER_MODE([DEFAULT-MODE])
372 # ----------------------------------
373 # Control maintainer-specific portions of Makefiles.
374 # Default is to disable them, unless 'enable' is passed literally.
375 # For symmetry, 'disable' may be passed as well. Anyway, the user
376 # can override the default with the --enable/--disable switch.
377 AC_DEFUN([AM_MAINTAINER_MODE],
378 [m4_case(m4_default([$1], [disable]),
379 [enable], [m4_define([am_maintainer_other], [disable])],
380 [disable], [m4_define([am_maintainer_other], [enable])],
381 [m4_define([am_maintainer_other], [enable])
382 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
383 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
384 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
385 AC_ARG_ENABLE([maintainer-mode],
386 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
387 am_maintainer_other[ make rules and dependencies not useful
388 (and sometimes confusing) to the casual installer])],
389 [USE_MAINTAINER_MODE=$enableval],
390 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
391 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
392 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
393 MAINT=$MAINTAINER_MODE_TRUE
398 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
400 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
402 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
404 # This file is free software; the Free Software Foundation
405 # gives unlimited permission to copy and/or distribute it,
406 # with or without modifications, as long as this notice is preserved.
410 # AM_MISSING_PROG(NAME, PROGRAM)
411 # ------------------------------
412 AC_DEFUN([AM_MISSING_PROG],
413 [AC_REQUIRE([AM_MISSING_HAS_RUN])
414 $1=${$1-"${am_missing_run}$2"}
420 # Define MISSING if not defined so far and test if it supports --run.
421 # If it does, set am_missing_run to use it, otherwise, to nothing.
422 AC_DEFUN([AM_MISSING_HAS_RUN],
423 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
424 AC_REQUIRE_AUX_FILE([missing])dnl
425 if test x"${MISSING+set}" != xset; then
428 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
430 MISSING="\${SHELL} $am_aux_dir/missing" ;;
433 # Use eval to expand $SHELL
434 if eval "$MISSING --run true"; then
435 am_missing_run="$MISSING --run "
438 AC_MSG_WARN(['missing' script is too old or missing])
442 # Helper functions for option handling. -*- Autoconf -*-
444 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
446 # This file is free software; the Free Software Foundation
447 # gives unlimited permission to copy and/or distribute it,
448 # with or without modifications, as long as this notice is preserved.
452 # _AM_MANGLE_OPTION(NAME)
453 # -----------------------
454 AC_DEFUN([_AM_MANGLE_OPTION],
455 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
457 # _AM_SET_OPTION(NAME)
458 # --------------------
459 # Set option NAME. Presently that only means defining a flag for this option.
460 AC_DEFUN([_AM_SET_OPTION],
461 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
463 # _AM_SET_OPTIONS(OPTIONS)
464 # ------------------------
465 # OPTIONS is a space-separated list of Automake options.
466 AC_DEFUN([_AM_SET_OPTIONS],
467 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
469 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
470 # -------------------------------------------
471 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
472 AC_DEFUN([_AM_IF_OPTION],
473 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
475 # Check to make sure that the build environment is sane. -*- Autoconf -*-
477 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
479 # This file is free software; the Free Software Foundation
480 # gives unlimited permission to copy and/or distribute it,
481 # with or without modifications, as long as this notice is preserved.
487 AC_DEFUN([AM_SANITY_CHECK],
488 [AC_MSG_CHECKING([whether build environment is sane])
489 # Reject unsafe characters in $srcdir or the absolute working directory
490 # name. Accept space and tab only in the latter.
494 *[[\\\"\#\$\&\'\`$am_lf]]*)
495 AC_MSG_ERROR([unsafe absolute working directory name]);;
498 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
499 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
502 # Do 'set' in a subshell so we don't clobber the current shell's
503 # arguments. Must try -L first in case configure is actually a
504 # symlink; some systems play weird games with the mod time of symlinks
505 # (eg FreeBSD returns the mod time of the symlink's containing
509 for am_try in 1 2; do
510 echo "timestamp, slept: $am_has_slept" > conftest.file
511 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
512 if test "$[*]" = "X"; then
514 set X `ls -t "$srcdir/configure" conftest.file`
516 if test "$[*]" != "X $srcdir/configure conftest.file" \
517 && test "$[*]" != "X conftest.file $srcdir/configure"; then
519 # If neither matched, then we have a broken ls. This can happen
520 # if, for instance, CONFIG_SHELL is bash and it inherits a
521 # broken ls alias from the environment. This has actually
522 # happened. Such a system could not be considered "sane".
523 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
524 alias in your environment])
526 if test "$[2]" = conftest.file || test $am_try -eq 2; then
533 test "$[2]" = conftest.file
539 AC_MSG_ERROR([newly created file is older than distributed files!
540 Check your system clock])
543 # If we didn't sleep, we still need to ensure time stamps of config.status and
544 # generated files are strictly newer.
546 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
550 AC_CONFIG_COMMANDS_PRE(
551 [AC_MSG_CHECKING([that generated files are newer than configure])
552 if test -n "$am_sleep_pid"; then
553 # Hide warnings about reused PIDs.
554 wait $am_sleep_pid 2>/dev/null
556 AC_MSG_RESULT([done])])
560 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
562 # This file is free software; the Free Software Foundation
563 # gives unlimited permission to copy and/or distribute it,
564 # with or without modifications, as long as this notice is preserved.
568 # AM_SILENT_RULES([DEFAULT])
569 # --------------------------
570 # Enable less verbose build rules; with the default set to DEFAULT
571 # ("yes" being less verbose, "no" or empty being verbose).
572 AC_DEFUN([AM_SILENT_RULES],
573 [AC_ARG_ENABLE([silent-rules], [dnl
575 [--enable-silent-rules],
576 [less verbose build output (undo: "make V=1")])
578 [--disable-silent-rules],
579 [verbose build output (undo: "make V=0")])dnl
581 case $enable_silent_rules in @%:@ (((
582 yes) AM_DEFAULT_VERBOSITY=0;;
583 no) AM_DEFAULT_VERBOSITY=1;;
584 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
587 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
588 dnl do not support nested variable expansions.
589 dnl See automake bug#9928 and bug#10237.
591 AC_CACHE_CHECK([whether $am_make supports nested variables],
592 [am_cv_make_support_nested_variables],
593 [if AS_ECHO([['TRUE=$(BAR$(V))
599 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
600 am_cv_make_support_nested_variables=yes
602 am_cv_make_support_nested_variables=no
604 if test $am_cv_make_support_nested_variables = yes; then
605 dnl Using '$V' instead of '$(V)' breaks IRIX make.
607 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
609 AM_V=$AM_DEFAULT_VERBOSITY
610 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
613 AM_SUBST_NOTMAKE([AM_V])dnl
614 AC_SUBST([AM_DEFAULT_V])dnl
615 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
616 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
618 AC_SUBST([AM_BACKSLASH])dnl
619 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
622 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
624 # This file is free software; the Free Software Foundation
625 # gives unlimited permission to copy and/or distribute it,
626 # with or without modifications, as long as this notice is preserved.
630 # AM_PROG_INSTALL_STRIP
631 # ---------------------
632 # One issue with vendor 'install' (even GNU) is that you can't
633 # specify the program used to strip binaries. This is especially
634 # annoying in cross-compiling environments, where the build's strip
635 # is unlikely to handle the host's binaries.
636 # Fortunately install-sh will honor a STRIPPROG variable, so we
637 # always use install-sh in "make install-strip", and initialize
638 # STRIPPROG with the value of the STRIP variable (set by the user).
639 AC_DEFUN([AM_PROG_INSTALL_STRIP],
640 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
641 # Installed binaries are usually stripped using 'strip' when the user
642 # run "make install-strip". However 'strip' might not be the right
643 # tool to use in cross-compilation environments, therefore Automake
644 # will honor the 'STRIP' environment variable to overrule this program.
645 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
646 if test "$cross_compiling" != no; then
647 AC_CHECK_TOOL([STRIP], [strip], :)
649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
650 AC_SUBST([INSTALL_STRIP_PROGRAM])])
652 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
654 # This file is free software; the Free Software Foundation
655 # gives unlimited permission to copy and/or distribute it,
656 # with or without modifications, as long as this notice is preserved.
660 # _AM_SUBST_NOTMAKE(VARIABLE)
661 # ---------------------------
662 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
663 # This macro is traced by Automake.
664 AC_DEFUN([_AM_SUBST_NOTMAKE])
666 # AM_SUBST_NOTMAKE(VARIABLE)
667 # --------------------------
668 # Public sister of _AM_SUBST_NOTMAKE.
669 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
671 # Check how to create a tarball. -*- Autoconf -*-
673 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
675 # This file is free software; the Free Software Foundation
676 # gives unlimited permission to copy and/or distribute it,
677 # with or without modifications, as long as this notice is preserved.
681 # _AM_PROG_TAR(FORMAT)
682 # --------------------
683 # Check how to create a tarball in format FORMAT.
684 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
686 # Substitute a variable $(am__tar) that is a command
687 # writing to stdout a FORMAT-tarball containing the directory
689 # tardir=directory && $(am__tar) > result.tar
691 # Substitute a variable $(am__untar) that extract such
692 # a tarball read from stdin.
693 # $(am__untar) < result.tar
694 AC_DEFUN([_AM_PROG_TAR],
695 [# Always define AMTAR for backward compatibility. Yes, it's still used
696 # in the wild :-( We should find a proper way to deprecate it ...
697 AC_SUBST([AMTAR], ['$${TAR-tar}'])
699 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
700 [m4_case([$1], [ustar],, [pax],,
701 [m4_fatal([Unknown tar format])])
702 AC_MSG_CHECKING([how to create a $1 tar archive])
703 # Loop over all known methods to create a tar archive until one works.
704 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
705 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
706 # Do not fold the above two line into one, because Tru64 sh and
707 # Solaris sh will not grok spaces in the rhs of '-'.
708 for _am_tool in $_am_tools
712 for _am_tar in tar gnutar gtar;
714 AM_RUN_LOG([$_am_tar --version]) && break
716 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
717 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
718 am__untar="$_am_tar -xf -"
721 # Must skip GNU tar: if it does not support --format= it doesn't create
722 # ustar tarball either.
723 (tar --version) >/dev/null 2>&1 && continue
724 am__tar='tar chf - "$$tardir"'
725 am__tar_='tar chf - "$tardir"'
729 am__tar='pax -L -x $1 -w "$$tardir"'
730 am__tar_='pax -L -x $1 -w "$tardir"'
734 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
735 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
736 am__untar='cpio -i -H $1 -d'
745 # If the value was cached, stop now. We just wanted to have am__tar
747 test -n "${am_cv_prog_tar_$1}" && break
749 # tar/untar a dummy directory, and stop if the command works
752 echo GrepMe > conftest.dir/file
753 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
755 if test -s conftest.tar; then
756 AM_RUN_LOG([$am__untar <conftest.tar])
757 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
762 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
763 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
765 AC_SUBST([am__untar])