1 # generated automatically by aclocal 1.11.3 -*- 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.68],,
18 [m4_warning([this file was generated for autoconf 2.68.
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 dnl -*- mode: autoconf -*-
28 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
29 AC_DEFUN([GTK_DOC_CHECK],
31 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
32 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
33 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
35 dnl check for tools we added during development
36 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
37 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
38 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
40 dnl for overriding the documentation installation directory
41 AC_ARG_WITH([html-dir],
42 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
43 [with_html_dir='${datadir}/gtk-doc/html'])
44 HTML_DIR="$with_html_dir"
47 dnl enable/disable documentation building
48 AC_ARG_ENABLE([gtk-doc],
49 AS_HELP_STRING([--enable-gtk-doc],
50 [use gtk-doc to build documentation [[default=no]]]),,
53 if test x$enable_gtk_doc = xyes; then
55 [PKG_CHECK_EXISTS([gtk-doc],,
56 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
57 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
58 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
59 dnl don't check for glib if we build glib
60 if test "x$PACKAGE_NAME" != "xglib"; then
61 dnl don't fail if someone does not have glib
62 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
66 AC_MSG_CHECKING([whether to build gtk-doc documentation])
67 AC_MSG_RESULT($enable_gtk_doc)
69 dnl enable/disable output formats
70 AC_ARG_ENABLE([gtk-doc-html],
71 AS_HELP_STRING([--enable-gtk-doc-html],
72 [build documentation in html format [[default=yes]]]),,
73 [enable_gtk_doc_html=yes])
74 AC_ARG_ENABLE([gtk-doc-pdf],
75 AS_HELP_STRING([--enable-gtk-doc-pdf],
76 [build documentation in pdf format [[default=no]]]),,
77 [enable_gtk_doc_pdf=no])
79 if test -z "$GTKDOC_MKPDF"; then
84 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
85 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
86 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
87 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
88 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
91 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
92 # serial 1 (pkg-config-0.24)
94 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
96 # This program is free software; you can redistribute it and/or modify
97 # it under the terms of the GNU General Public License as published by
98 # the Free Software Foundation; either version 2 of the License, or
99 # (at your option) any later version.
101 # This program is distributed in the hope that it will be useful, but
102 # WITHOUT ANY WARRANTY; without even the implied warranty of
103 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
104 # General Public License for more details.
106 # You should have received a copy of the GNU General Public License
107 # along with this program; if not, write to the Free Software
108 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
110 # As a special exception to the GNU General Public License, if you
111 # distribute this file as part of a program that contains a
112 # configuration script generated by Autoconf, you may include it under
113 # the same distribution terms that you use for the rest of that program.
115 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
116 # ----------------------------------
117 AC_DEFUN([PKG_PROG_PKG_CONFIG],
118 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
119 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
120 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
121 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
122 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
123 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
125 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
126 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
128 if test -n "$PKG_CONFIG"; then
129 _pkg_min_version=m4_default([$1], [0.9.0])
130 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
131 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
138 ])# PKG_PROG_PKG_CONFIG
140 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
142 # Check to see whether a particular set of modules exists. Similar
143 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
145 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
146 # only at the first occurence in configure.ac, so if the first place
147 # it's called might be skipped (such as if it is within an "if", you
148 # have to call PKG_CHECK_EXISTS manually
149 # --------------------------------------------------------------
150 AC_DEFUN([PKG_CHECK_EXISTS],
151 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
152 if test -n "$PKG_CONFIG" && \
153 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
154 m4_default([$2], [:])
155 m4_ifvaln([$3], [else
159 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
160 # ---------------------------------------------
161 m4_define([_PKG_CONFIG],
162 [if test -n "$$1"; then
164 elif test -n "$PKG_CONFIG"; then
165 PKG_CHECK_EXISTS([$3],
166 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
167 test "x$?" != "x0" && pkg_failed=yes ],
174 # _PKG_SHORT_ERRORS_SUPPORTED
175 # -----------------------------
176 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
177 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
179 _pkg_short_errors_supported=yes
181 _pkg_short_errors_supported=no
183 ])# _PKG_SHORT_ERRORS_SUPPORTED
186 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
187 # [ACTION-IF-NOT-FOUND])
190 # Note that if there is a possibility the first call to
191 # PKG_CHECK_MODULES might not happen, you should be sure to include an
192 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
195 # --------------------------------------------------------------
196 AC_DEFUN([PKG_CHECK_MODULES],
197 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
198 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
199 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
202 AC_MSG_CHECKING([for $1])
204 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
205 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
207 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
208 and $1[]_LIBS to avoid the need to call pkg-config.
209 See the pkg-config man page for more details.])
211 if test $pkg_failed = yes; then
213 _PKG_SHORT_ERRORS_SUPPORTED
214 if test $_pkg_short_errors_supported = yes; then
215 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
217 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
219 # Put the nasty error message in config.log where it belongs
220 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
222 m4_default([$4], [AC_MSG_ERROR(
223 [Package requirements ($2) were not met:
227 Consider adjusting the PKG_CONFIG_PATH environment variable if you
228 installed software in a non-standard prefix.
232 elif test $pkg_failed = untried; then
234 m4_default([$4], [AC_MSG_FAILURE(
235 [The pkg-config script could not be found or is too old. Make sure it
236 is in your PATH or set the PKG_CONFIG environment variable to the full
241 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
244 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
245 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
249 ])# PKG_CHECK_MODULES
251 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
254 # This file is free software; the Free Software Foundation
255 # gives unlimited permission to copy and/or distribute it,
256 # with or without modifications, as long as this notice is preserved.
260 # AM_AUTOMAKE_VERSION(VERSION)
261 # ----------------------------
262 # Automake X.Y traces this macro to ensure aclocal.m4 has been
263 # generated from the m4 files accompanying Automake X.Y.
264 # (This private macro should not be called outside this file.)
265 AC_DEFUN([AM_AUTOMAKE_VERSION],
266 [am__api_version='1.11'
267 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
268 dnl require some minimum version. Point them to the right macro.
269 m4_if([$1], [1.11.3], [],
270 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
273 # _AM_AUTOCONF_VERSION(VERSION)
274 # -----------------------------
275 # aclocal traces this macro to find the Autoconf version.
276 # This is a private macro too. Using m4_define simplifies
277 # the logic in aclocal, which can simply ignore this definition.
278 m4_define([_AM_AUTOCONF_VERSION], [])
280 # AM_SET_CURRENT_AUTOMAKE_VERSION
281 # -------------------------------
282 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
283 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
284 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
285 [AM_AUTOMAKE_VERSION([1.11.3])dnl
286 m4_ifndef([AC_AUTOCONF_VERSION],
287 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
288 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
290 # Copyright (C) 2011 Free Software Foundation, Inc.
292 # This file is free software; the Free Software Foundation
293 # gives unlimited permission to copy and/or distribute it,
294 # with or without modifications, as long as this notice is preserved.
298 # AM_PROG_AR([ACT-IF-FAIL])
299 # -------------------------
300 # Try to determine the archiver interface, and trigger the ar-lib wrapper
301 # if it is needed. If the detection of archiver interface fails, run
302 # ACT-IF-FAIL (default is to abort configure with a proper error message).
303 AC_DEFUN([AM_PROG_AR],
304 [AC_BEFORE([$0], [LT_INIT])dnl
305 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
306 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
307 AC_REQUIRE_AUX_FILE([ar-lib])dnl
308 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
311 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
312 [am_cv_ar_interface=ar
313 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
314 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
315 AC_TRY_EVAL([am_ar_try])
316 if test "$ac_status" -eq 0; then
317 am_cv_ar_interface=ar
319 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
320 AC_TRY_EVAL([am_ar_try])
321 if test "$ac_status" -eq 0; then
322 am_cv_ar_interface=lib
324 am_cv_ar_interface=unknown
327 rm -f conftest.lib libconftest.a
331 case $am_cv_ar_interface in
335 # Microsoft lib, so override with the ar-lib wrapper script.
336 # FIXME: It is wrong to rewrite AR.
337 # But if we don't then we get into trouble of one sort or another.
338 # A longer-term fix would be to have automake use am__AR in this case,
339 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
341 AR="$am_aux_dir/ar-lib $AR"
345 [AC_MSG_ERROR([could not determine $AR interface])])
351 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
353 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
355 # This file is free software; the Free Software Foundation
356 # gives unlimited permission to copy and/or distribute it,
357 # with or without modifications, as long as this notice is preserved.
361 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
362 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
363 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
365 # Of course, Automake must honor this variable whenever it calls a
366 # tool from the auxiliary directory. The problem is that $srcdir (and
367 # therefore $ac_aux_dir as well) can be either absolute or relative,
368 # depending on how configure is run. This is pretty annoying, since
369 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
370 # source directory, any form will work fine, but in subdirectories a
371 # relative path needs to be adjusted first.
373 # $ac_aux_dir/missing
374 # fails when called from a subdirectory if $ac_aux_dir is relative
375 # $top_srcdir/$ac_aux_dir/missing
376 # fails if $ac_aux_dir is absolute,
377 # fails when called from a subdirectory in a VPATH build with
378 # a relative $ac_aux_dir
380 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
381 # are both prefixed by $srcdir. In an in-source build this is usually
382 # harmless because $srcdir is `.', but things will broke when you
383 # start a VPATH build or use an absolute $srcdir.
385 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
386 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
387 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
388 # and then we would define $MISSING as
389 # MISSING="\${SHELL} $am_aux_dir/missing"
390 # This will work as long as MISSING is not called from configure, because
391 # unfortunately $(top_srcdir) has no meaning in configure.
392 # However there are other variables, like CC, which are often used in
393 # configure, and could therefore not use this "fixed" $ac_aux_dir.
395 # Another solution, used here, is to always expand $ac_aux_dir to an
396 # absolute PATH. The drawback is that using absolute paths prevent a
397 # configured tree to be moved without reconfiguration.
399 AC_DEFUN([AM_AUX_DIR_EXPAND],
400 [dnl Rely on autoconf to set up CDPATH properly.
402 # expand $ac_aux_dir to an absolute path
403 am_aux_dir=`cd $ac_aux_dir && pwd`
406 # AM_CONDITIONAL -*- Autoconf -*-
408 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
409 # Free Software Foundation, Inc.
411 # This file is free software; the Free Software Foundation
412 # gives unlimited permission to copy and/or distribute it,
413 # with or without modifications, as long as this notice is preserved.
417 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
418 # -------------------------------------
419 # Define a conditional.
420 AC_DEFUN([AM_CONDITIONAL],
422 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
423 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
424 AC_SUBST([$1_TRUE])dnl
425 AC_SUBST([$1_FALSE])dnl
426 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
427 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
428 m4_define([_AM_COND_VALUE_$1], [$2])dnl
436 AC_CONFIG_COMMANDS_PRE(
437 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
438 AC_MSG_ERROR([[conditional "$1" was never defined.
439 Usually this means the macro was only invoked conditionally.]])
442 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
443 # 2010, 2011 Free Software Foundation, Inc.
445 # This file is free software; the Free Software Foundation
446 # gives unlimited permission to copy and/or distribute it,
447 # with or without modifications, as long as this notice is preserved.
451 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
452 # written in clear, in which case automake, when reading aclocal.m4,
453 # will think it sees a *use*, and therefore will trigger all it's
454 # C support machinery. Also note that it means that autoscan, seeing
455 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
458 # _AM_DEPENDENCIES(NAME)
459 # ----------------------
460 # See how the compiler implements dependency checking.
461 # NAME is "CC", "CXX", "GCJ", or "OBJC".
462 # We try a few techniques and use that to set a single cache variable.
464 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
465 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
466 # dependency, and given that the user is not expected to run this macro,
467 # just rely on AC_PROG_CC.
468 AC_DEFUN([_AM_DEPENDENCIES],
469 [AC_REQUIRE([AM_SET_DEPDIR])dnl
470 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
471 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
472 AC_REQUIRE([AM_DEP_TRACK])dnl
474 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
475 [$1], CXX, [depcc="$CXX" am_compiler_list=],
476 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
477 [$1], UPC, [depcc="$UPC" am_compiler_list=],
478 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
479 [depcc="$$1" am_compiler_list=])
481 AC_CACHE_CHECK([dependency style of $depcc],
482 [am_cv_$1_dependencies_compiler_type],
483 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
484 # We make a subdir and do the tests there. Otherwise we can end up
485 # making bogus files that we don't know about and never remove. For
486 # instance it was reported that on HP-UX the gcc test will end up
487 # making a dummy file named `D' -- because `-MD' means `put the output
491 # Copy depcomp to subdir because otherwise we won't find it if we're
492 # using a relative directory.
493 cp "$am_depcomp" conftest.dir
495 # We will build objects and dependencies in a subdirectory because
496 # it helps to detect inapplicable dependency modes. For instance
497 # both Tru64's cc and ICC support -MD to output dependencies as a
498 # side effect of compilation, but ICC will put the dependencies in
499 # the current directory while Tru64 will put them in the object
503 am_cv_$1_dependencies_compiler_type=none
504 if test "$am_compiler_list" = ""; then
505 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
509 [case " $depcc " in #(
510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
513 [case " $depcc " in #(
514 *\ -arch\ *\ -arch\ *) am__universal=true ;;
517 for depmode in $am_compiler_list; do
518 # Setup a source with many dependencies, because some compilers
519 # like to wrap large dependency lists on column 80 (with \), and
520 # we should not choose a depcomp mode which is confused by this.
522 # We need to recreate these files for each test, as the compiler may
523 # overwrite some of them when testing with obscure command lines.
524 # This happens at least with the AIX C compiler.
526 for i in 1 2 3 4 5 6; do
527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
529 # Solaris 8's {/usr,}/bin/sh.
530 touch sub/conftst$i.h
532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
534 # We check with `-c' and `-o' for the sake of the "dashmstdout"
535 # mode. It turns out that the SunPro C++ compiler does not properly
536 # handle `-M -o', and we need to detect this. Also, some Intel
537 # versions had trouble with output in subdirs
538 am__obj=sub/conftest.${OBJEXT-o}
539 am__minus_obj="-o $am__obj"
542 # This depmode causes a compiler race in universal mode.
543 test "$am__universal" = false || continue
546 # after this tag, mechanisms are not by side-effect, so they'll
547 # only be used when explicitly requested
548 if test "x$enable_dependency_tracking" = xyes; then
554 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
555 # This compiler won't grok `-c -o', but also, the minuso test has
556 # not run yet. These depmodes are late enough in the game, and
557 # so weak that their functioning should not be impacted.
558 am__obj=conftest.${OBJEXT-o}
563 if depmode=$depmode \
564 source=sub/conftest.c object=$am__obj \
565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
566 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
567 >/dev/null 2>conftest.err &&
568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
570 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
572 # icc doesn't choke on unknown options, it will just issue warnings
573 # or remarks (even with -Werror). So we grep stderr for any message
574 # that says an option was ignored or not supported.
575 # When given -MP, icc 7.0 and 7.1 complain thusly:
576 # icc: Command line warning: ignoring option '-M'; no argument required
577 # The diagnosis changed in icc 8.0:
578 # icc: Command line remark: option '-MP' not supported
579 if (grep 'ignoring option' conftest.err ||
580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
581 am_cv_$1_dependencies_compiler_type=$depmode
590 am_cv_$1_dependencies_compiler_type=none
593 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
594 AM_CONDITIONAL([am__fastdep$1], [
595 test "x$enable_dependency_tracking" != xno \
596 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
602 # Choose a directory name for dependency files.
603 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
604 AC_DEFUN([AM_SET_DEPDIR],
605 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
606 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
612 AC_DEFUN([AM_DEP_TRACK],
613 [AC_ARG_ENABLE(dependency-tracking,
614 [ --disable-dependency-tracking speeds up one-time build
615 --enable-dependency-tracking do not reject slow dependency extractors])
616 if test "x$enable_dependency_tracking" != xno; then
617 am_depcomp="$ac_aux_dir/depcomp"
621 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
622 AC_SUBST([AMDEPBACKSLASH])dnl
623 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
624 AC_SUBST([am__nodep])dnl
625 _AM_SUBST_NOTMAKE([am__nodep])dnl
628 # Generate code to set up dependency tracking. -*- Autoconf -*-
630 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
631 # Free Software Foundation, Inc.
633 # This file is free software; the Free Software Foundation
634 # gives unlimited permission to copy and/or distribute it,
635 # with or without modifications, as long as this notice is preserved.
639 # _AM_OUTPUT_DEPENDENCY_COMMANDS
640 # ------------------------------
641 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
643 # Autoconf 2.62 quotes --file arguments for eval, but not when files
644 # are listed without --file. Let's play safe and only enable the eval
645 # if we detect the quoting.
646 case $CONFIG_FILES in
647 *\'*) eval set x "$CONFIG_FILES" ;;
648 *) set x $CONFIG_FILES ;;
653 # Strip MF so we end up with the name of the file.
654 mf=`echo "$mf" | sed -e 's/:.*$//'`
655 # Check whether this is an Automake generated Makefile or not.
656 # We used to match only the files named `Makefile.in', but
657 # some people rename them; so instead we look at the file content.
658 # Grep'ing the first line is not enough: some people post-process
659 # each Makefile.in and add a new line on top of each file to say so.
660 # Grep'ing the whole file is not good either: AIX grep has a line
661 # limit of 2048, but all sed's we know have understand at least 4000.
662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
663 dirpart=`AS_DIRNAME("$mf")`
667 # Extract the definition of DEPDIR, am__include, and am__quote
668 # from the Makefile without running `make'.
669 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
670 test -z "$DEPDIR" && continue
671 am__include=`sed -n 's/^am__include = //p' < "$mf"`
672 test -z "am__include" && continue
673 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
674 # When using ansi2knr, U may be empty or an underscore; expand it
675 U=`sed -n 's/^U = //p' < "$mf"`
676 # Find all dependency output files, they are included files with
677 # $(DEPDIR) in their names. We invoke sed twice because it is the
678 # simplest approach to changing $(DEPDIR) to its actual value in the
680 for file in `sed -n "
681 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
682 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
683 # Make sure the directory exists.
684 test -f "$dirpart/$file" && continue
685 fdir=`AS_DIRNAME(["$file"])`
686 AS_MKDIR_P([$dirpart/$fdir])
687 # echo "creating $dirpart/$file"
688 echo '# dummy' > "$dirpart/$file"
692 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
695 # AM_OUTPUT_DEPENDENCY_COMMANDS
696 # -----------------------------
697 # This macro should only be invoked once -- use via AC_REQUIRE.
699 # This code is only required when automatic dependency tracking
700 # is enabled. FIXME. This creates each `.P' file that we will
701 # need in order to bootstrap the dependency handling code.
702 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
703 [AC_CONFIG_COMMANDS([depfiles],
704 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
705 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
708 # Do all the work for Automake. -*- Autoconf -*-
710 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
711 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
713 # This file is free software; the Free Software Foundation
714 # gives unlimited permission to copy and/or distribute it,
715 # with or without modifications, as long as this notice is preserved.
719 # This macro actually does too much. Some checks are only needed if
720 # your package does certain things. But this isn't really a big deal.
722 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
723 # AM_INIT_AUTOMAKE([OPTIONS])
724 # -----------------------------------------------
725 # The call with PACKAGE and VERSION arguments is the old style
726 # call (pre autoconf-2.50), which is being phased out. PACKAGE
727 # and VERSION should now be passed to AC_INIT and removed from
728 # the call to AM_INIT_AUTOMAKE.
729 # We support both call styles for the transition. After
730 # the next Automake release, Autoconf can make the AC_INIT
731 # arguments mandatory, and then we can depend on a new Autoconf
732 # release and drop the old call support.
733 AC_DEFUN([AM_INIT_AUTOMAKE],
734 [AC_PREREQ([2.62])dnl
735 dnl Autoconf wants to disallow AM_ names. We explicitly allow
736 dnl the ones we care about.
737 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
738 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
739 AC_REQUIRE([AC_PROG_INSTALL])dnl
740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
742 # is not polluted with repeated "-I."
743 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
744 # test to see if srcdir already configured
745 if test -f $srcdir/config.status; then
746 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
750 # test whether we have cygpath
751 if test -z "$CYGPATH_W"; then
752 if (cygpath --version) >/dev/null 2>/dev/null; then
753 CYGPATH_W='cygpath -w'
758 AC_SUBST([CYGPATH_W])
760 # Define the identity of the package.
761 dnl Distinguish between old-style and new-style calls.
763 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
764 AC_SUBST([PACKAGE], [$1])dnl
765 AC_SUBST([VERSION], [$2])],
766 [_AM_SET_OPTIONS([$1])dnl
767 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
768 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
769 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
770 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
771 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
773 _AM_IF_OPTION([no-define],,
774 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
775 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
777 # Some tools Automake needs.
778 AC_REQUIRE([AM_SANITY_CHECK])dnl
779 AC_REQUIRE([AC_ARG_PROGRAM])dnl
780 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
781 AM_MISSING_PROG(AUTOCONF, autoconf)
782 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
783 AM_MISSING_PROG(AUTOHEADER, autoheader)
784 AM_MISSING_PROG(MAKEINFO, makeinfo)
785 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
786 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
787 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
788 # We need awk for the "check" target. The system "awk" is bad on
790 AC_REQUIRE([AC_PROG_AWK])dnl
791 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
792 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
793 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
794 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
795 [_AM_PROG_TAR([v7])])])
796 _AM_IF_OPTION([no-dependencies],,
797 [AC_PROVIDE_IFELSE([AC_PROG_CC],
798 [_AM_DEPENDENCIES(CC)],
799 [define([AC_PROG_CC],
800 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
801 AC_PROVIDE_IFELSE([AC_PROG_CXX],
802 [_AM_DEPENDENCIES(CXX)],
803 [define([AC_PROG_CXX],
804 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
805 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
806 [_AM_DEPENDENCIES(OBJC)],
807 [define([AC_PROG_OBJC],
808 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
810 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
811 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
812 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
813 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
814 AC_CONFIG_COMMANDS_PRE(dnl
815 [m4_provide_if([_AM_COMPILER_EXEEXT],
816 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
819 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
820 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
821 dnl mangled by Autoconf and run in a shell conditional statement.
822 m4_define([_AC_COMPILER_EXEEXT],
823 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
826 # When config.status generates a header, we must update the stamp-h file.
827 # This file resides in the same directory as the config header
828 # that is generated. The stamp files are numbered to have different names.
830 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
831 # loop where config.status creates the headers, so we can generate
832 # our stamp files there.
833 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
834 [# Compute $1's index in $config_headers.
837 for _am_header in $config_headers :; do
839 $_am_arg | $_am_arg:* )
842 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
845 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
847 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
858 # Define $install_sh.
859 AC_DEFUN([AM_PROG_INSTALL_SH],
860 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
861 if test x"${install_sh}" != xset; then
864 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
866 install_sh="\${SHELL} $am_aux_dir/install-sh"
869 AC_SUBST(install_sh)])
871 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
873 # This file is free software; the Free Software Foundation
874 # gives unlimited permission to copy and/or distribute it,
875 # with or without modifications, as long as this notice is preserved.
879 # Check whether the underlying file-system supports filenames
880 # with a leading dot. For instance MS-DOS doesn't.
881 AC_DEFUN([AM_SET_LEADING_DOT],
882 [rm -rf .tst 2>/dev/null
883 mkdir .tst 2>/dev/null
884 if test -d .tst; then
889 rmdir .tst 2>/dev/null
890 AC_SUBST([am__leading_dot])])
892 # Check to see how 'make' treats includes. -*- Autoconf -*-
894 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
896 # This file is free software; the Free Software Foundation
897 # gives unlimited permission to copy and/or distribute it,
898 # with or without modifications, as long as this notice is preserved.
904 # Check to see how make treats includes.
905 AC_DEFUN([AM_MAKE_INCLUDE],
906 [am_make=${MAKE-make}
907 cat > confinc << 'END'
909 @echo this is the am__doit target
912 # If we don't find an include directive, just comment out the code.
913 AC_MSG_CHECKING([for style of include used by $am_make])
917 # First try GNU make style include.
918 echo "include confinc" > confmf
919 # Ignore all kinds of additional output from `make'.
920 case `$am_make -s -f confmf 2> /dev/null` in #(
921 *the\ am__doit\ target*)
927 # Now try BSD make style include.
928 if test "$am__include" = "#"; then
929 echo '.include "confinc"' > confmf
930 case `$am_make -s -f confmf 2> /dev/null` in #(
931 *the\ am__doit\ target*)
938 AC_SUBST([am__include])
939 AC_SUBST([am__quote])
940 AC_MSG_RESULT([$_am_result])
944 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
946 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
947 # Free Software Foundation, Inc.
949 # This file is free software; the Free Software Foundation
950 # gives unlimited permission to copy and/or distribute it,
951 # with or without modifications, as long as this notice is preserved.
955 # AM_MISSING_PROG(NAME, PROGRAM)
956 # ------------------------------
957 AC_DEFUN([AM_MISSING_PROG],
958 [AC_REQUIRE([AM_MISSING_HAS_RUN])
959 $1=${$1-"${am_missing_run}$2"}
965 # Define MISSING if not defined so far and test if it supports --run.
966 # If it does, set am_missing_run to use it, otherwise, to nothing.
967 AC_DEFUN([AM_MISSING_HAS_RUN],
968 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
969 AC_REQUIRE_AUX_FILE([missing])dnl
970 if test x"${MISSING+set}" != xset; then
973 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
975 MISSING="\${SHELL} $am_aux_dir/missing" ;;
978 # Use eval to expand $SHELL
979 if eval "$MISSING --run true"; then
980 am_missing_run="$MISSING --run "
983 AC_MSG_WARN([`missing' script is too old or missing])
987 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
990 # This file is free software; the Free Software Foundation
991 # gives unlimited permission to copy and/or distribute it,
992 # with or without modifications, as long as this notice is preserved.
998 # Check for `mkdir -p'.
999 AC_DEFUN([AM_PROG_MKDIR_P],
1000 [AC_PREREQ([2.60])dnl
1001 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1002 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1003 dnl while keeping a definition of mkdir_p for backward compatibility.
1004 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1005 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1006 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1007 dnl adjustment using top_builddir (which is defined more often than
1009 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1011 [[\\/$]]* | ?:[[\\/]]*) ;;
1012 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1016 # Helper functions for option handling. -*- Autoconf -*-
1018 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1021 # This file is free software; the Free Software Foundation
1022 # gives unlimited permission to copy and/or distribute it,
1023 # with or without modifications, as long as this notice is preserved.
1027 # _AM_MANGLE_OPTION(NAME)
1028 # -----------------------
1029 AC_DEFUN([_AM_MANGLE_OPTION],
1030 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1032 # _AM_SET_OPTION(NAME)
1033 # --------------------
1034 # Set option NAME. Presently that only means defining a flag for this option.
1035 AC_DEFUN([_AM_SET_OPTION],
1036 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1038 # _AM_SET_OPTIONS(OPTIONS)
1039 # ------------------------
1040 # OPTIONS is a space-separated list of Automake options.
1041 AC_DEFUN([_AM_SET_OPTIONS],
1042 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1044 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1045 # -------------------------------------------
1046 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1047 AC_DEFUN([_AM_IF_OPTION],
1048 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1050 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1052 # This file is free software; the Free Software Foundation
1053 # gives unlimited permission to copy and/or distribute it,
1054 # with or without modifications, as long as this notice is preserved.
1058 # AM_RUN_LOG(COMMAND)
1059 # -------------------
1060 # Run COMMAND, save the exit status in ac_status, and log it.
1061 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1062 AC_DEFUN([AM_RUN_LOG],
1063 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1064 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1066 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1067 (exit $ac_status); }])
1069 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1071 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1072 # Free Software Foundation, Inc.
1074 # This file is free software; the Free Software Foundation
1075 # gives unlimited permission to copy and/or distribute it,
1076 # with or without modifications, as long as this notice is preserved.
1082 AC_DEFUN([AM_SANITY_CHECK],
1083 [AC_MSG_CHECKING([whether build environment is sane])
1086 echo timestamp > conftest.file
1087 # Reject unsafe characters in $srcdir or the absolute working directory
1088 # name. Accept space and tab only in the latter.
1092 *[[\\\"\#\$\&\'\`$am_lf]]*)
1093 AC_MSG_ERROR([unsafe absolute working directory name]);;
1096 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1097 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1100 # Do `set' in a subshell so we don't clobber the current shell's
1101 # arguments. Must try -L first in case configure is actually a
1102 # symlink; some systems play weird games with the mod time of symlinks
1103 # (eg FreeBSD returns the mod time of the symlink's containing
1106 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1107 if test "$[*]" = "X"; then
1109 set X `ls -t "$srcdir/configure" conftest.file`
1112 if test "$[*]" != "X $srcdir/configure conftest.file" \
1113 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1115 # If neither matched, then we have a broken ls. This can happen
1116 # if, for instance, CONFIG_SHELL is bash and it inherits a
1117 # broken ls alias from the environment. This has actually
1118 # happened. Such a system could not be considered "sane".
1119 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1120 alias in your environment])
1123 test "$[2]" = conftest.file
1129 AC_MSG_ERROR([newly created file is older than distributed files!
1130 Check your system clock])
1132 AC_MSG_RESULT(yes)])
1134 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1136 # This file is free software; the Free Software Foundation
1137 # gives unlimited permission to copy and/or distribute it,
1138 # with or without modifications, as long as this notice is preserved.
1142 # AM_SILENT_RULES([DEFAULT])
1143 # --------------------------
1144 # Enable less verbose build rules; with the default set to DEFAULT
1145 # (`yes' being less verbose, `no' or empty being verbose).
1146 AC_DEFUN([AM_SILENT_RULES],
1147 [AC_ARG_ENABLE([silent-rules],
1148 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1149 --disable-silent-rules verbose build output (undo: `make V=0')])
1150 case $enable_silent_rules in
1151 yes) AM_DEFAULT_VERBOSITY=0;;
1152 no) AM_DEFAULT_VERBOSITY=1;;
1153 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1156 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1157 dnl do not support nested variable expansions.
1158 dnl See automake bug#9928 and bug#10237.
1159 am_make=${MAKE-make}
1160 AC_CACHE_CHECK([whether $am_make supports nested variables],
1161 [am_cv_make_support_nested_variables],
1162 [if AS_ECHO([['TRUE=$(BAR$(V))
1168 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1169 am_cv_make_support_nested_variables=yes
1171 am_cv_make_support_nested_variables=no
1173 if test $am_cv_make_support_nested_variables = yes; then
1174 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1178 AM_V=$AM_DEFAULT_VERBOSITY
1179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1182 AM_SUBST_NOTMAKE([AM_V])dnl
1183 AC_SUBST([AM_DEFAULT_V])dnl
1184 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1185 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1187 AC_SUBST([AM_BACKSLASH])dnl
1188 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1191 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1193 # This file is free software; the Free Software Foundation
1194 # gives unlimited permission to copy and/or distribute it,
1195 # with or without modifications, as long as this notice is preserved.
1199 # AM_PROG_INSTALL_STRIP
1200 # ---------------------
1201 # One issue with vendor `install' (even GNU) is that you can't
1202 # specify the program used to strip binaries. This is especially
1203 # annoying in cross-compiling environments, where the build's strip
1204 # is unlikely to handle the host's binaries.
1205 # Fortunately install-sh will honor a STRIPPROG variable, so we
1206 # always use install-sh in `make install-strip', and initialize
1207 # STRIPPROG with the value of the STRIP variable (set by the user).
1208 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1209 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1210 # Installed binaries are usually stripped using `strip' when the user
1211 # run `make install-strip'. However `strip' might not be the right
1212 # tool to use in cross-compilation environments, therefore Automake
1213 # will honor the `STRIP' environment variable to overrule this program.
1214 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1215 if test "$cross_compiling" != no; then
1216 AC_CHECK_TOOL([STRIP], [strip], :)
1218 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1219 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1221 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1223 # This file is free software; the Free Software Foundation
1224 # gives unlimited permission to copy and/or distribute it,
1225 # with or without modifications, as long as this notice is preserved.
1229 # _AM_SUBST_NOTMAKE(VARIABLE)
1230 # ---------------------------
1231 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1232 # This macro is traced by Automake.
1233 AC_DEFUN([_AM_SUBST_NOTMAKE])
1235 # AM_SUBST_NOTMAKE(VARIABLE)
1236 # --------------------------
1237 # Public sister of _AM_SUBST_NOTMAKE.
1238 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1240 # Check how to create a tarball. -*- Autoconf -*-
1242 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1244 # This file is free software; the Free Software Foundation
1245 # gives unlimited permission to copy and/or distribute it,
1246 # with or without modifications, as long as this notice is preserved.
1250 # _AM_PROG_TAR(FORMAT)
1251 # --------------------
1252 # Check how to create a tarball in format FORMAT.
1253 # FORMAT should be one of `v7', `ustar', or `pax'.
1255 # Substitute a variable $(am__tar) that is a command
1256 # writing to stdout a FORMAT-tarball containing the directory
1258 # tardir=directory && $(am__tar) > result.tar
1260 # Substitute a variable $(am__untar) that extract such
1261 # a tarball read from stdin.
1262 # $(am__untar) < result.tar
1263 AC_DEFUN([_AM_PROG_TAR],
1264 [# Always define AMTAR for backward compatibility. Yes, it's still used
1265 # in the wild :-( We should find a proper way to deprecate it ...
1266 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1268 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1269 [m4_case([$1], [ustar],, [pax],,
1270 [m4_fatal([Unknown tar format])])
1271 AC_MSG_CHECKING([how to create a $1 tar archive])
1272 # Loop over all known methods to create a tar archive until one works.
1273 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1274 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1275 # Do not fold the above two line into one, because Tru64 sh and
1276 # Solaris sh will not grok spaces in the rhs of `-'.
1277 for _am_tool in $_am_tools
1281 for _am_tar in tar gnutar gtar;
1283 AM_RUN_LOG([$_am_tar --version]) && break
1285 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1286 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1287 am__untar="$_am_tar -xf -"
1290 # Must skip GNU tar: if it does not support --format= it doesn't create
1291 # ustar tarball either.
1292 (tar --version) >/dev/null 2>&1 && continue
1293 am__tar='tar chf - "$$tardir"'
1294 am__tar_='tar chf - "$tardir"'
1295 am__untar='tar xf -'
1298 am__tar='pax -L -x $1 -w "$$tardir"'
1299 am__tar_='pax -L -x $1 -w "$tardir"'
1303 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1304 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1305 am__untar='cpio -i -H $1 -d'
1314 # If the value was cached, stop now. We just wanted to have am__tar
1315 # and am__untar set.
1316 test -n "${am_cv_prog_tar_$1}" && break
1318 # tar/untar a dummy directory, and stop if the command works
1321 echo GrepMe > conftest.dir/file
1322 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1324 if test -s conftest.tar; then
1325 AM_RUN_LOG([$am__untar <conftest.tar])
1326 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1331 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1332 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1334 AC_SUBST([am__untar])
1337 m4_include([m4/ax_check_gnu_make.m4])
1338 m4_include([m4/libtool.m4])
1339 m4_include([m4/ltoptions.m4])
1340 m4_include([m4/ltsugar.m4])
1341 m4_include([m4/ltversion.m4])
1342 m4_include([m4/lt~obsolete.m4])