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.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically `autoreconf'.])])
23 dnl -*- mode: autoconf -*-
24 dnl Copyright 2009 Johan Dahlin
26 dnl This file is free software; the author(s) gives unlimited
27 dnl permission to copy and/or distribute it, with or without
28 dnl modifications, as long as this notice is preserved.
33 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
35 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
36 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
37 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
39 dnl enable/disable introspection
40 m4_if([$2], [require],
42 enable_introspection=yes
44 AC_ARG_ENABLE(introspection,
45 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
46 [Enable introspection for this build]),,
47 [enable_introspection=auto])
50 AC_MSG_CHECKING([for gobject-introspection])
52 dnl presence/version checking
53 AS_CASE([$enable_introspection],
55 found_introspection="no (disabled, use --enable-introspection to enable)"
58 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
59 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
60 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
61 found_introspection=yes,
62 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
65 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
66 dnl Canonicalize enable_introspection
67 enable_introspection=$found_introspection
70 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
73 AC_MSG_RESULT([$found_introspection])
75 INTROSPECTION_SCANNER=
76 INTROSPECTION_COMPILER=
77 INTROSPECTION_GENERATE=
79 INTROSPECTION_TYPELIBDIR=
80 if test "x$found_introspection" = "xyes"; then
81 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
82 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
83 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
84 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
85 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
86 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
87 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
88 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
90 AC_SUBST(INTROSPECTION_SCANNER)
91 AC_SUBST(INTROSPECTION_COMPILER)
92 AC_SUBST(INTROSPECTION_GENERATE)
93 AC_SUBST(INTROSPECTION_GIRDIR)
94 AC_SUBST(INTROSPECTION_TYPELIBDIR)
95 AC_SUBST(INTROSPECTION_CFLAGS)
96 AC_SUBST(INTROSPECTION_LIBS)
97 AC_SUBST(INTROSPECTION_MAKEFILE)
99 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
104 dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
106 AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
108 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
112 dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
115 AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
117 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
120 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
121 # serial 1 (pkg-config-0.24)
123 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
125 # This program is free software; you can redistribute it and/or modify
126 # it under the terms of the GNU General Public License as published by
127 # the Free Software Foundation; either version 2 of the License, or
128 # (at your option) any later version.
130 # This program is distributed in the hope that it will be useful, but
131 # WITHOUT ANY WARRANTY; without even the implied warranty of
132 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
133 # General Public License for more details.
135 # You should have received a copy of the GNU General Public License
136 # along with this program; if not, write to the Free Software
137 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
139 # As a special exception to the GNU General Public License, if you
140 # distribute this file as part of a program that contains a
141 # configuration script generated by Autoconf, you may include it under
142 # the same distribution terms that you use for the rest of that program.
144 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
145 # ----------------------------------
146 AC_DEFUN([PKG_PROG_PKG_CONFIG],
147 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
148 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
149 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
150 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
151 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
152 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
154 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
155 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
157 if test -n "$PKG_CONFIG"; then
158 _pkg_min_version=m4_default([$1], [0.9.0])
159 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
160 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
167 ])# PKG_PROG_PKG_CONFIG
169 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
171 # Check to see whether a particular set of modules exists. Similar
172 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
174 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
175 # only at the first occurence in configure.ac, so if the first place
176 # it's called might be skipped (such as if it is within an "if", you
177 # have to call PKG_CHECK_EXISTS manually
178 # --------------------------------------------------------------
179 AC_DEFUN([PKG_CHECK_EXISTS],
180 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
181 if test -n "$PKG_CONFIG" && \
182 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
183 m4_default([$2], [:])
184 m4_ifvaln([$3], [else
188 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
189 # ---------------------------------------------
190 m4_define([_PKG_CONFIG],
191 [if test -n "$$1"; then
193 elif test -n "$PKG_CONFIG"; then
194 PKG_CHECK_EXISTS([$3],
195 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
196 test "x$?" != "x0" && pkg_failed=yes ],
203 # _PKG_SHORT_ERRORS_SUPPORTED
204 # -----------------------------
205 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
206 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
208 _pkg_short_errors_supported=yes
210 _pkg_short_errors_supported=no
212 ])# _PKG_SHORT_ERRORS_SUPPORTED
215 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
216 # [ACTION-IF-NOT-FOUND])
219 # Note that if there is a possibility the first call to
220 # PKG_CHECK_MODULES might not happen, you should be sure to include an
221 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
224 # --------------------------------------------------------------
225 AC_DEFUN([PKG_CHECK_MODULES],
226 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
227 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
228 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
231 AC_MSG_CHECKING([for $1])
233 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
234 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
236 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
237 and $1[]_LIBS to avoid the need to call pkg-config.
238 See the pkg-config man page for more details.])
240 if test $pkg_failed = yes; then
242 _PKG_SHORT_ERRORS_SUPPORTED
243 if test $_pkg_short_errors_supported = yes; then
244 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
246 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
248 # Put the nasty error message in config.log where it belongs
249 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
251 m4_default([$4], [AC_MSG_ERROR(
252 [Package requirements ($2) were not met:
256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
257 installed software in a non-standard prefix.
261 elif test $pkg_failed = untried; then
263 m4_default([$4], [AC_MSG_FAILURE(
264 [The pkg-config script could not be found or is too old. Make sure it
265 is in your PATH or set the PKG_CONFIG environment variable to the full
270 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
273 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
274 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
278 ])# PKG_CHECK_MODULES
280 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
283 # This file is free software; the Free Software Foundation
284 # gives unlimited permission to copy and/or distribute it,
285 # with or without modifications, as long as this notice is preserved.
289 # AM_AUTOMAKE_VERSION(VERSION)
290 # ----------------------------
291 # Automake X.Y traces this macro to ensure aclocal.m4 has been
292 # generated from the m4 files accompanying Automake X.Y.
293 # (This private macro should not be called outside this file.)
294 AC_DEFUN([AM_AUTOMAKE_VERSION],
295 [am__api_version='1.11'
296 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
297 dnl require some minimum version. Point them to the right macro.
298 m4_if([$1], [1.11.6], [],
299 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
302 # _AM_AUTOCONF_VERSION(VERSION)
303 # -----------------------------
304 # aclocal traces this macro to find the Autoconf version.
305 # This is a private macro too. Using m4_define simplifies
306 # the logic in aclocal, which can simply ignore this definition.
307 m4_define([_AM_AUTOCONF_VERSION], [])
309 # AM_SET_CURRENT_AUTOMAKE_VERSION
310 # -------------------------------
311 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
312 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
313 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
314 [AM_AUTOMAKE_VERSION([1.11.6])dnl
315 m4_ifndef([AC_AUTOCONF_VERSION],
316 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
317 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
319 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
321 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
323 # This file is free software; the Free Software Foundation
324 # gives unlimited permission to copy and/or distribute it,
325 # with or without modifications, as long as this notice is preserved.
329 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
330 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
331 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
333 # Of course, Automake must honor this variable whenever it calls a
334 # tool from the auxiliary directory. The problem is that $srcdir (and
335 # therefore $ac_aux_dir as well) can be either absolute or relative,
336 # depending on how configure is run. This is pretty annoying, since
337 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
338 # source directory, any form will work fine, but in subdirectories a
339 # relative path needs to be adjusted first.
341 # $ac_aux_dir/missing
342 # fails when called from a subdirectory if $ac_aux_dir is relative
343 # $top_srcdir/$ac_aux_dir/missing
344 # fails if $ac_aux_dir is absolute,
345 # fails when called from a subdirectory in a VPATH build with
346 # a relative $ac_aux_dir
348 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
349 # are both prefixed by $srcdir. In an in-source build this is usually
350 # harmless because $srcdir is `.', but things will broke when you
351 # start a VPATH build or use an absolute $srcdir.
353 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
354 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
355 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
356 # and then we would define $MISSING as
357 # MISSING="\${SHELL} $am_aux_dir/missing"
358 # This will work as long as MISSING is not called from configure, because
359 # unfortunately $(top_srcdir) has no meaning in configure.
360 # However there are other variables, like CC, which are often used in
361 # configure, and could therefore not use this "fixed" $ac_aux_dir.
363 # Another solution, used here, is to always expand $ac_aux_dir to an
364 # absolute PATH. The drawback is that using absolute paths prevent a
365 # configured tree to be moved without reconfiguration.
367 AC_DEFUN([AM_AUX_DIR_EXPAND],
368 [dnl Rely on autoconf to set up CDPATH properly.
370 # expand $ac_aux_dir to an absolute path
371 am_aux_dir=`cd $ac_aux_dir && pwd`
374 # AM_CONDITIONAL -*- Autoconf -*-
376 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
377 # Free Software Foundation, Inc.
379 # This file is free software; the Free Software Foundation
380 # gives unlimited permission to copy and/or distribute it,
381 # with or without modifications, as long as this notice is preserved.
385 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
386 # -------------------------------------
387 # Define a conditional.
388 AC_DEFUN([AM_CONDITIONAL],
390 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
391 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
392 AC_SUBST([$1_TRUE])dnl
393 AC_SUBST([$1_FALSE])dnl
394 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
395 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
396 m4_define([_AM_COND_VALUE_$1], [$2])dnl
404 AC_CONFIG_COMMANDS_PRE(
405 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
406 AC_MSG_ERROR([[conditional "$1" was never defined.
407 Usually this means the macro was only invoked conditionally.]])
410 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
411 # 2010, 2011 Free Software Foundation, Inc.
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
419 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
420 # written in clear, in which case automake, when reading aclocal.m4,
421 # will think it sees a *use*, and therefore will trigger all it's
422 # C support machinery. Also note that it means that autoscan, seeing
423 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
426 # _AM_DEPENDENCIES(NAME)
427 # ----------------------
428 # See how the compiler implements dependency checking.
429 # NAME is "CC", "CXX", "GCJ", or "OBJC".
430 # We try a few techniques and use that to set a single cache variable.
432 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
433 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
434 # dependency, and given that the user is not expected to run this macro,
435 # just rely on AC_PROG_CC.
436 AC_DEFUN([_AM_DEPENDENCIES],
437 [AC_REQUIRE([AM_SET_DEPDIR])dnl
438 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
439 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
440 AC_REQUIRE([AM_DEP_TRACK])dnl
442 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
443 [$1], CXX, [depcc="$CXX" am_compiler_list=],
444 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
445 [$1], UPC, [depcc="$UPC" am_compiler_list=],
446 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
447 [depcc="$$1" am_compiler_list=])
449 AC_CACHE_CHECK([dependency style of $depcc],
450 [am_cv_$1_dependencies_compiler_type],
451 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
452 # We make a subdir and do the tests there. Otherwise we can end up
453 # making bogus files that we don't know about and never remove. For
454 # instance it was reported that on HP-UX the gcc test will end up
455 # making a dummy file named `D' -- because `-MD' means `put the output
459 # Copy depcomp to subdir because otherwise we won't find it if we're
460 # using a relative directory.
461 cp "$am_depcomp" conftest.dir
463 # We will build objects and dependencies in a subdirectory because
464 # it helps to detect inapplicable dependency modes. For instance
465 # both Tru64's cc and ICC support -MD to output dependencies as a
466 # side effect of compilation, but ICC will put the dependencies in
467 # the current directory while Tru64 will put them in the object
471 am_cv_$1_dependencies_compiler_type=none
472 if test "$am_compiler_list" = ""; then
473 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
477 [case " $depcc " in #(
478 *\ -arch\ *\ -arch\ *) am__universal=true ;;
481 [case " $depcc " in #(
482 *\ -arch\ *\ -arch\ *) am__universal=true ;;
485 for depmode in $am_compiler_list; do
486 # Setup a source with many dependencies, because some compilers
487 # like to wrap large dependency lists on column 80 (with \), and
488 # we should not choose a depcomp mode which is confused by this.
490 # We need to recreate these files for each test, as the compiler may
491 # overwrite some of them when testing with obscure command lines.
492 # This happens at least with the AIX C compiler.
494 for i in 1 2 3 4 5 6; do
495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
497 # Solaris 8's {/usr,}/bin/sh.
498 touch sub/conftst$i.h
500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
502 # We check with `-c' and `-o' for the sake of the "dashmstdout"
503 # mode. It turns out that the SunPro C++ compiler does not properly
504 # handle `-M -o', and we need to detect this. Also, some Intel
505 # versions had trouble with output in subdirs
506 am__obj=sub/conftest.${OBJEXT-o}
507 am__minus_obj="-o $am__obj"
510 # This depmode causes a compiler race in universal mode.
511 test "$am__universal" = false || continue
514 # after this tag, mechanisms are not by side-effect, so they'll
515 # only be used when explicitly requested
516 if test "x$enable_dependency_tracking" = xyes; then
522 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
523 # This compiler won't grok `-c -o', but also, the minuso test has
524 # not run yet. These depmodes are late enough in the game, and
525 # so weak that their functioning should not be impacted.
526 am__obj=conftest.${OBJEXT-o}
531 if depmode=$depmode \
532 source=sub/conftest.c object=$am__obj \
533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
535 >/dev/null 2>conftest.err &&
536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
540 # icc doesn't choke on unknown options, it will just issue warnings
541 # or remarks (even with -Werror). So we grep stderr for any message
542 # that says an option was ignored or not supported.
543 # When given -MP, icc 7.0 and 7.1 complain thusly:
544 # icc: Command line warning: ignoring option '-M'; no argument required
545 # The diagnosis changed in icc 8.0:
546 # icc: Command line remark: option '-MP' not supported
547 if (grep 'ignoring option' conftest.err ||
548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
549 am_cv_$1_dependencies_compiler_type=$depmode
558 am_cv_$1_dependencies_compiler_type=none
561 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
562 AM_CONDITIONAL([am__fastdep$1], [
563 test "x$enable_dependency_tracking" != xno \
564 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
570 # Choose a directory name for dependency files.
571 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
572 AC_DEFUN([AM_SET_DEPDIR],
573 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
574 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
580 AC_DEFUN([AM_DEP_TRACK],
581 [AC_ARG_ENABLE(dependency-tracking,
582 [ --disable-dependency-tracking speeds up one-time build
583 --enable-dependency-tracking do not reject slow dependency extractors])
584 if test "x$enable_dependency_tracking" != xno; then
585 am_depcomp="$ac_aux_dir/depcomp"
589 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
590 AC_SUBST([AMDEPBACKSLASH])dnl
591 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
592 AC_SUBST([am__nodep])dnl
593 _AM_SUBST_NOTMAKE([am__nodep])dnl
596 # Generate code to set up dependency tracking. -*- Autoconf -*-
598 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
599 # Free Software Foundation, Inc.
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.
607 # _AM_OUTPUT_DEPENDENCY_COMMANDS
608 # ------------------------------
609 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
611 # Autoconf 2.62 quotes --file arguments for eval, but not when files
612 # are listed without --file. Let's play safe and only enable the eval
613 # if we detect the quoting.
614 case $CONFIG_FILES in
615 *\'*) eval set x "$CONFIG_FILES" ;;
616 *) set x $CONFIG_FILES ;;
621 # Strip MF so we end up with the name of the file.
622 mf=`echo "$mf" | sed -e 's/:.*$//'`
623 # Check whether this is an Automake generated Makefile or not.
624 # We used to match only the files named `Makefile.in', but
625 # some people rename them; so instead we look at the file content.
626 # Grep'ing the first line is not enough: some people post-process
627 # each Makefile.in and add a new line on top of each file to say so.
628 # Grep'ing the whole file is not good either: AIX grep has a line
629 # limit of 2048, but all sed's we know have understand at least 4000.
630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
631 dirpart=`AS_DIRNAME("$mf")`
635 # Extract the definition of DEPDIR, am__include, and am__quote
636 # from the Makefile without running `make'.
637 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
638 test -z "$DEPDIR" && continue
639 am__include=`sed -n 's/^am__include = //p' < "$mf"`
640 test -z "am__include" && continue
641 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
642 # When using ansi2knr, U may be empty or an underscore; expand it
643 U=`sed -n 's/^U = //p' < "$mf"`
644 # Find all dependency output files, they are included files with
645 # $(DEPDIR) in their names. We invoke sed twice because it is the
646 # simplest approach to changing $(DEPDIR) to its actual value in the
648 for file in `sed -n "
649 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
650 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
651 # Make sure the directory exists.
652 test -f "$dirpart/$file" && continue
653 fdir=`AS_DIRNAME(["$file"])`
654 AS_MKDIR_P([$dirpart/$fdir])
655 # echo "creating $dirpart/$file"
656 echo '# dummy' > "$dirpart/$file"
660 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
663 # AM_OUTPUT_DEPENDENCY_COMMANDS
664 # -----------------------------
665 # This macro should only be invoked once -- use via AC_REQUIRE.
667 # This code is only required when automatic dependency tracking
668 # is enabled. FIXME. This creates each `.P' file that we will
669 # need in order to bootstrap the dependency handling code.
670 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
671 [AC_CONFIG_COMMANDS([depfiles],
672 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
673 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
676 # Do all the work for Automake. -*- Autoconf -*-
678 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
679 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
681 # This file is free software; the Free Software Foundation
682 # gives unlimited permission to copy and/or distribute it,
683 # with or without modifications, as long as this notice is preserved.
687 # This macro actually does too much. Some checks are only needed if
688 # your package does certain things. But this isn't really a big deal.
690 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
691 # AM_INIT_AUTOMAKE([OPTIONS])
692 # -----------------------------------------------
693 # The call with PACKAGE and VERSION arguments is the old style
694 # call (pre autoconf-2.50), which is being phased out. PACKAGE
695 # and VERSION should now be passed to AC_INIT and removed from
696 # the call to AM_INIT_AUTOMAKE.
697 # We support both call styles for the transition. After
698 # the next Automake release, Autoconf can make the AC_INIT
699 # arguments mandatory, and then we can depend on a new Autoconf
700 # release and drop the old call support.
701 AC_DEFUN([AM_INIT_AUTOMAKE],
702 [AC_PREREQ([2.62])dnl
703 dnl Autoconf wants to disallow AM_ names. We explicitly allow
704 dnl the ones we care about.
705 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
706 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
707 AC_REQUIRE([AC_PROG_INSTALL])dnl
708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
710 # is not polluted with repeated "-I."
711 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
712 # test to see if srcdir already configured
713 if test -f $srcdir/config.status; then
714 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
718 # test whether we have cygpath
719 if test -z "$CYGPATH_W"; then
720 if (cygpath --version) >/dev/null 2>/dev/null; then
721 CYGPATH_W='cygpath -w'
726 AC_SUBST([CYGPATH_W])
728 # Define the identity of the package.
729 dnl Distinguish between old-style and new-style calls.
731 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
732 AC_SUBST([PACKAGE], [$1])dnl
733 AC_SUBST([VERSION], [$2])],
734 [_AM_SET_OPTIONS([$1])dnl
735 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
736 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
737 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
738 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
739 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
741 _AM_IF_OPTION([no-define],,
742 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
743 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
745 # Some tools Automake needs.
746 AC_REQUIRE([AM_SANITY_CHECK])dnl
747 AC_REQUIRE([AC_ARG_PROGRAM])dnl
748 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
749 AM_MISSING_PROG(AUTOCONF, autoconf)
750 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
751 AM_MISSING_PROG(AUTOHEADER, autoheader)
752 AM_MISSING_PROG(MAKEINFO, makeinfo)
753 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
754 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
755 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
756 # We need awk for the "check" target. The system "awk" is bad on
758 AC_REQUIRE([AC_PROG_AWK])dnl
759 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
760 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
761 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
762 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
763 [_AM_PROG_TAR([v7])])])
764 _AM_IF_OPTION([no-dependencies],,
765 [AC_PROVIDE_IFELSE([AC_PROG_CC],
766 [_AM_DEPENDENCIES(CC)],
767 [define([AC_PROG_CC],
768 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
769 AC_PROVIDE_IFELSE([AC_PROG_CXX],
770 [_AM_DEPENDENCIES(CXX)],
771 [define([AC_PROG_CXX],
772 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
773 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
774 [_AM_DEPENDENCIES(OBJC)],
775 [define([AC_PROG_OBJC],
776 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
778 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
779 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
780 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
781 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
782 AC_CONFIG_COMMANDS_PRE(dnl
783 [m4_provide_if([_AM_COMPILER_EXEEXT],
784 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
787 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
788 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
789 dnl mangled by Autoconf and run in a shell conditional statement.
790 m4_define([_AC_COMPILER_EXEEXT],
791 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
794 # When config.status generates a header, we must update the stamp-h file.
795 # This file resides in the same directory as the config header
796 # that is generated. The stamp files are numbered to have different names.
798 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
799 # loop where config.status creates the headers, so we can generate
800 # our stamp files there.
801 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
802 [# Compute $1's index in $config_headers.
805 for _am_header in $config_headers :; do
807 $_am_arg | $_am_arg:* )
810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
813 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
815 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
818 # This file is free software; the Free Software Foundation
819 # gives unlimited permission to copy and/or distribute it,
820 # with or without modifications, as long as this notice is preserved.
826 # Define $install_sh.
827 AC_DEFUN([AM_PROG_INSTALL_SH],
828 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
829 if test x"${install_sh}" != xset; then
832 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
834 install_sh="\${SHELL} $am_aux_dir/install-sh"
837 AC_SUBST(install_sh)])
839 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
841 # This file is free software; the Free Software Foundation
842 # gives unlimited permission to copy and/or distribute it,
843 # with or without modifications, as long as this notice is preserved.
847 # Check whether the underlying file-system supports filenames
848 # with a leading dot. For instance MS-DOS doesn't.
849 AC_DEFUN([AM_SET_LEADING_DOT],
850 [rm -rf .tst 2>/dev/null
851 mkdir .tst 2>/dev/null
852 if test -d .tst; then
857 rmdir .tst 2>/dev/null
858 AC_SUBST([am__leading_dot])])
860 # Check to see how 'make' treats includes. -*- Autoconf -*-
862 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
864 # This file is free software; the Free Software Foundation
865 # gives unlimited permission to copy and/or distribute it,
866 # with or without modifications, as long as this notice is preserved.
872 # Check to see how make treats includes.
873 AC_DEFUN([AM_MAKE_INCLUDE],
874 [am_make=${MAKE-make}
875 cat > confinc << 'END'
877 @echo this is the am__doit target
880 # If we don't find an include directive, just comment out the code.
881 AC_MSG_CHECKING([for style of include used by $am_make])
885 # First try GNU make style include.
886 echo "include confinc" > confmf
887 # Ignore all kinds of additional output from `make'.
888 case `$am_make -s -f confmf 2> /dev/null` in #(
889 *the\ am__doit\ target*)
895 # Now try BSD make style include.
896 if test "$am__include" = "#"; then
897 echo '.include "confinc"' > confmf
898 case `$am_make -s -f confmf 2> /dev/null` in #(
899 *the\ am__doit\ target*)
906 AC_SUBST([am__include])
907 AC_SUBST([am__quote])
908 AC_MSG_RESULT([$_am_result])
912 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
913 # Free Software Foundation, Inc.
915 # This file is free software; the Free Software Foundation
916 # gives unlimited permission to copy and/or distribute it,
917 # with or without modifications, as long as this notice is preserved.
923 # Like AC_PROG_CC_C_O, but changed for automake.
924 AC_DEFUN([AM_PROG_CC_C_O],
925 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
926 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
927 AC_REQUIRE_AUX_FILE([compile])dnl
928 # FIXME: we rely on the cache variable name because
929 # there is no other way.
931 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
932 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
933 if test "$am_t" != yes; then
934 # Losing compiler, so override with the script.
935 # FIXME: It is wrong to rewrite CC.
936 # But if we don't then we get into trouble of one sort or another.
937 # A longer-term fix would be to have automake use am__CC in this case,
938 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
939 CC="$am_aux_dir/compile $CC"
941 dnl Make sure AC_PROG_CC is never called again, or it will override our
943 m4_define([AC_PROG_CC],
944 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
947 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
949 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
950 # Free Software Foundation, Inc.
952 # This file is free software; the Free Software Foundation
953 # gives unlimited permission to copy and/or distribute it,
954 # with or without modifications, as long as this notice is preserved.
958 # AM_MISSING_PROG(NAME, PROGRAM)
959 # ------------------------------
960 AC_DEFUN([AM_MISSING_PROG],
961 [AC_REQUIRE([AM_MISSING_HAS_RUN])
962 $1=${$1-"${am_missing_run}$2"}
968 # Define MISSING if not defined so far and test if it supports --run.
969 # If it does, set am_missing_run to use it, otherwise, to nothing.
970 AC_DEFUN([AM_MISSING_HAS_RUN],
971 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
972 AC_REQUIRE_AUX_FILE([missing])dnl
973 if test x"${MISSING+set}" != xset; then
976 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
978 MISSING="\${SHELL} $am_aux_dir/missing" ;;
981 # Use eval to expand $SHELL
982 if eval "$MISSING --run true"; then
983 am_missing_run="$MISSING --run "
986 AC_MSG_WARN([`missing' script is too old or missing])
990 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
993 # This file is free software; the Free Software Foundation
994 # gives unlimited permission to copy and/or distribute it,
995 # with or without modifications, as long as this notice is preserved.
1001 # Check for `mkdir -p'.
1002 AC_DEFUN([AM_PROG_MKDIR_P],
1003 [AC_PREREQ([2.60])dnl
1004 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1005 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1006 dnl while keeping a definition of mkdir_p for backward compatibility.
1007 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1008 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1009 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1010 dnl adjustment using top_builddir (which is defined more often than
1012 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1014 [[\\/$]]* | ?:[[\\/]]*) ;;
1015 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1019 # Helper functions for option handling. -*- Autoconf -*-
1021 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1024 # This file is free software; the Free Software Foundation
1025 # gives unlimited permission to copy and/or distribute it,
1026 # with or without modifications, as long as this notice is preserved.
1030 # _AM_MANGLE_OPTION(NAME)
1031 # -----------------------
1032 AC_DEFUN([_AM_MANGLE_OPTION],
1033 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1035 # _AM_SET_OPTION(NAME)
1036 # --------------------
1037 # Set option NAME. Presently that only means defining a flag for this option.
1038 AC_DEFUN([_AM_SET_OPTION],
1039 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1041 # _AM_SET_OPTIONS(OPTIONS)
1042 # ------------------------
1043 # OPTIONS is a space-separated list of Automake options.
1044 AC_DEFUN([_AM_SET_OPTIONS],
1045 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1047 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1048 # -------------------------------------------
1049 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1050 AC_DEFUN([_AM_IF_OPTION],
1051 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1053 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1055 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1056 # Free Software Foundation, Inc.
1058 # This file is free software; the Free Software Foundation
1059 # gives unlimited permission to copy and/or distribute it,
1060 # with or without modifications, as long as this notice is preserved.
1066 AC_DEFUN([AM_SANITY_CHECK],
1067 [AC_MSG_CHECKING([whether build environment is sane])
1070 echo timestamp > conftest.file
1071 # Reject unsafe characters in $srcdir or the absolute working directory
1072 # name. Accept space and tab only in the latter.
1076 *[[\\\"\#\$\&\'\`$am_lf]]*)
1077 AC_MSG_ERROR([unsafe absolute working directory name]);;
1080 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1081 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1084 # Do `set' in a subshell so we don't clobber the current shell's
1085 # arguments. Must try -L first in case configure is actually a
1086 # symlink; some systems play weird games with the mod time of symlinks
1087 # (eg FreeBSD returns the mod time of the symlink's containing
1090 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1091 if test "$[*]" = "X"; then
1093 set X `ls -t "$srcdir/configure" conftest.file`
1096 if test "$[*]" != "X $srcdir/configure conftest.file" \
1097 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1099 # If neither matched, then we have a broken ls. This can happen
1100 # if, for instance, CONFIG_SHELL is bash and it inherits a
1101 # broken ls alias from the environment. This has actually
1102 # happened. Such a system could not be considered "sane".
1103 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1104 alias in your environment])
1107 test "$[2]" = conftest.file
1113 AC_MSG_ERROR([newly created file is older than distributed files!
1114 Check your system clock])
1116 AC_MSG_RESULT(yes)])
1118 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1120 # This file is free software; the Free Software Foundation
1121 # gives unlimited permission to copy and/or distribute it,
1122 # with or without modifications, as long as this notice is preserved.
1126 # AM_SILENT_RULES([DEFAULT])
1127 # --------------------------
1128 # Enable less verbose build rules; with the default set to DEFAULT
1129 # (`yes' being less verbose, `no' or empty being verbose).
1130 AC_DEFUN([AM_SILENT_RULES],
1131 [AC_ARG_ENABLE([silent-rules],
1132 [ --enable-silent-rules less verbose build output (undo: `make V=1')
1133 --disable-silent-rules verbose build output (undo: `make V=0')])
1134 case $enable_silent_rules in
1135 yes) AM_DEFAULT_VERBOSITY=0;;
1136 no) AM_DEFAULT_VERBOSITY=1;;
1137 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1140 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1141 dnl do not support nested variable expansions.
1142 dnl See automake bug#9928 and bug#10237.
1143 am_make=${MAKE-make}
1144 AC_CACHE_CHECK([whether $am_make supports nested variables],
1145 [am_cv_make_support_nested_variables],
1146 [if AS_ECHO([['TRUE=$(BAR$(V))
1152 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1153 am_cv_make_support_nested_variables=yes
1155 am_cv_make_support_nested_variables=no
1157 if test $am_cv_make_support_nested_variables = yes; then
1158 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1160 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1162 AM_V=$AM_DEFAULT_VERBOSITY
1163 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1166 AM_SUBST_NOTMAKE([AM_V])dnl
1167 AC_SUBST([AM_DEFAULT_V])dnl
1168 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1169 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1171 AC_SUBST([AM_BACKSLASH])dnl
1172 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1175 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1177 # This file is free software; the Free Software Foundation
1178 # gives unlimited permission to copy and/or distribute it,
1179 # with or without modifications, as long as this notice is preserved.
1183 # AM_PROG_INSTALL_STRIP
1184 # ---------------------
1185 # One issue with vendor `install' (even GNU) is that you can't
1186 # specify the program used to strip binaries. This is especially
1187 # annoying in cross-compiling environments, where the build's strip
1188 # is unlikely to handle the host's binaries.
1189 # Fortunately install-sh will honor a STRIPPROG variable, so we
1190 # always use install-sh in `make install-strip', and initialize
1191 # STRIPPROG with the value of the STRIP variable (set by the user).
1192 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1193 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1194 # Installed binaries are usually stripped using `strip' when the user
1195 # run `make install-strip'. However `strip' might not be the right
1196 # tool to use in cross-compilation environments, therefore Automake
1197 # will honor the `STRIP' environment variable to overrule this program.
1198 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1199 if test "$cross_compiling" != no; then
1200 AC_CHECK_TOOL([STRIP], [strip], :)
1202 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1203 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1205 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1207 # This file is free software; the Free Software Foundation
1208 # gives unlimited permission to copy and/or distribute it,
1209 # with or without modifications, as long as this notice is preserved.
1213 # _AM_SUBST_NOTMAKE(VARIABLE)
1214 # ---------------------------
1215 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1216 # This macro is traced by Automake.
1217 AC_DEFUN([_AM_SUBST_NOTMAKE])
1219 # AM_SUBST_NOTMAKE(VARIABLE)
1220 # --------------------------
1221 # Public sister of _AM_SUBST_NOTMAKE.
1222 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1224 # Check how to create a tarball. -*- Autoconf -*-
1226 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1228 # This file is free software; the Free Software Foundation
1229 # gives unlimited permission to copy and/or distribute it,
1230 # with or without modifications, as long as this notice is preserved.
1234 # _AM_PROG_TAR(FORMAT)
1235 # --------------------
1236 # Check how to create a tarball in format FORMAT.
1237 # FORMAT should be one of `v7', `ustar', or `pax'.
1239 # Substitute a variable $(am__tar) that is a command
1240 # writing to stdout a FORMAT-tarball containing the directory
1242 # tardir=directory && $(am__tar) > result.tar
1244 # Substitute a variable $(am__untar) that extract such
1245 # a tarball read from stdin.
1246 # $(am__untar) < result.tar
1247 AC_DEFUN([_AM_PROG_TAR],
1248 [# Always define AMTAR for backward compatibility. Yes, it's still used
1249 # in the wild :-( We should find a proper way to deprecate it ...
1250 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1252 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1253 [m4_case([$1], [ustar],, [pax],,
1254 [m4_fatal([Unknown tar format])])
1255 AC_MSG_CHECKING([how to create a $1 tar archive])
1256 # Loop over all known methods to create a tar archive until one works.
1257 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1258 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1259 # Do not fold the above two line into one, because Tru64 sh and
1260 # Solaris sh will not grok spaces in the rhs of `-'.
1261 for _am_tool in $_am_tools
1265 for _am_tar in tar gnutar gtar;
1267 AM_RUN_LOG([$_am_tar --version]) && break
1269 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1270 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1271 am__untar="$_am_tar -xf -"
1274 # Must skip GNU tar: if it does not support --format= it doesn't create
1275 # ustar tarball either.
1276 (tar --version) >/dev/null 2>&1 && continue
1277 am__tar='tar chf - "$$tardir"'
1278 am__tar_='tar chf - "$tardir"'
1279 am__untar='tar xf -'
1282 am__tar='pax -L -x $1 -w "$$tardir"'
1283 am__tar_='pax -L -x $1 -w "$tardir"'
1287 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1288 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1289 am__untar='cpio -i -H $1 -d'
1298 # If the value was cached, stop now. We just wanted to have am__tar
1299 # and am__untar set.
1300 test -n "${am_cv_prog_tar_$1}" && break
1302 # tar/untar a dummy directory, and stop if the command works
1305 echo GrepMe > conftest.dir/file
1306 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1308 if test -s conftest.tar; then
1309 AM_RUN_LOG([$am__untar <conftest.tar])
1310 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1315 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1316 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1318 AC_SUBST([am__untar])
1321 # Autoconf support for the Vala compiler
1323 # Copyright (C) 2008, 2009 Free Software Foundation, Inc.
1325 # This file is free software; the Free Software Foundation
1326 # gives unlimited permission to copy and/or distribute it,
1327 # with or without modifications, as long as this notice is preserved.
1331 # Check whether the Vala compiler exists in `PATH'. If it is found, the
1332 # variable VALAC is set. Optionally a minimum release number of the
1333 # compiler can be requested.
1335 # AM_PROG_VALAC([MINIMUM-VERSION])
1336 # --------------------------------
1337 AC_DEFUN([AM_PROG_VALAC],
1338 [AC_PATH_PROG([VALAC], [valac], [])
1339 AS_IF([test -z "$VALAC"],
1340 [AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
1341 [AS_IF([test -n "$1"],
1342 [AC_MSG_CHECKING([$VALAC is at least version $1])
1343 am__vala_version=`$VALAC --version | sed 's/Vala *//'`
1344 AS_VERSION_COMPARE([$1], ["$am__vala_version"],
1345 [AC_MSG_RESULT([yes])],
1346 [AC_MSG_RESULT([yes])],
1347 [AC_MSG_RESULT([no])
1348 AC_MSG_ERROR([Vala $1 not found.])])])])
1351 m4_include([m4/libtool.m4])
1352 m4_include([m4/ltoptions.m4])
1353 m4_include([m4/ltsugar.m4])
1354 m4_include([m4/ltversion.m4])
1355 m4_include([m4/lt~obsolete.m4])