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 # nls.m4 serial 5 (gettext-0.18)
24 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
26 dnl This file is free software; the Free Software Foundation
27 dnl gives unlimited permission to copy and/or distribute it,
28 dnl with or without modifications, as long as this notice is preserved.
30 dnl This file can can be used in projects which are not available under
31 dnl the GNU General Public License or the GNU Library General Public
32 dnl License but which still want to provide support for the GNU gettext
34 dnl Please note that the actual code of the GNU gettext library is covered
35 dnl by the GNU Library General Public License, and the rest of the GNU
36 dnl gettext package package is covered by the GNU General Public License.
37 dnl They are *not* in the public domain.
40 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
41 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
47 AC_MSG_CHECKING([whether NLS is requested])
48 dnl Default is enabled NLS
50 [ --disable-nls do not use Native Language Support],
51 USE_NLS=$enableval, USE_NLS=yes)
52 AC_MSG_RESULT([$USE_NLS])
56 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
59 # This file is free software; the Free Software Foundation
60 # gives unlimited permission to copy and/or distribute it,
61 # with or without modifications, as long as this notice is preserved.
65 # AM_AUTOMAKE_VERSION(VERSION)
66 # ----------------------------
67 # Automake X.Y traces this macro to ensure aclocal.m4 has been
68 # generated from the m4 files accompanying Automake X.Y.
69 # (This private macro should not be called outside this file.)
70 AC_DEFUN([AM_AUTOMAKE_VERSION],
71 [am__api_version='1.11'
72 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
73 dnl require some minimum version. Point them to the right macro.
74 m4_if([$1], [1.11.3], [],
75 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
78 # _AM_AUTOCONF_VERSION(VERSION)
79 # -----------------------------
80 # aclocal traces this macro to find the Autoconf version.
81 # This is a private macro too. Using m4_define simplifies
82 # the logic in aclocal, which can simply ignore this definition.
83 m4_define([_AM_AUTOCONF_VERSION], [])
85 # AM_SET_CURRENT_AUTOMAKE_VERSION
86 # -------------------------------
87 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
88 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
89 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
90 [AM_AUTOMAKE_VERSION([1.11.3])dnl
91 m4_ifndef([AC_AUTOCONF_VERSION],
92 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
93 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
95 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
97 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
99 # This file is free software; the Free Software Foundation
100 # gives unlimited permission to copy and/or distribute it,
101 # with or without modifications, as long as this notice is preserved.
105 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
106 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
107 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
109 # Of course, Automake must honor this variable whenever it calls a
110 # tool from the auxiliary directory. The problem is that $srcdir (and
111 # therefore $ac_aux_dir as well) can be either absolute or relative,
112 # depending on how configure is run. This is pretty annoying, since
113 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
114 # source directory, any form will work fine, but in subdirectories a
115 # relative path needs to be adjusted first.
117 # $ac_aux_dir/missing
118 # fails when called from a subdirectory if $ac_aux_dir is relative
119 # $top_srcdir/$ac_aux_dir/missing
120 # fails if $ac_aux_dir is absolute,
121 # fails when called from a subdirectory in a VPATH build with
122 # a relative $ac_aux_dir
124 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
125 # are both prefixed by $srcdir. In an in-source build this is usually
126 # harmless because $srcdir is `.', but things will broke when you
127 # start a VPATH build or use an absolute $srcdir.
129 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
130 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
131 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
132 # and then we would define $MISSING as
133 # MISSING="\${SHELL} $am_aux_dir/missing"
134 # This will work as long as MISSING is not called from configure, because
135 # unfortunately $(top_srcdir) has no meaning in configure.
136 # However there are other variables, like CC, which are often used in
137 # configure, and could therefore not use this "fixed" $ac_aux_dir.
139 # Another solution, used here, is to always expand $ac_aux_dir to an
140 # absolute PATH. The drawback is that using absolute paths prevent a
141 # configured tree to be moved without reconfiguration.
143 AC_DEFUN([AM_AUX_DIR_EXPAND],
144 [dnl Rely on autoconf to set up CDPATH properly.
146 # expand $ac_aux_dir to an absolute path
147 am_aux_dir=`cd $ac_aux_dir && pwd`
150 # AM_CONDITIONAL -*- Autoconf -*-
152 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
153 # Free Software Foundation, Inc.
155 # This file is free software; the Free Software Foundation
156 # gives unlimited permission to copy and/or distribute it,
157 # with or without modifications, as long as this notice is preserved.
161 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
162 # -------------------------------------
163 # Define a conditional.
164 AC_DEFUN([AM_CONDITIONAL],
166 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
167 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
168 AC_SUBST([$1_TRUE])dnl
169 AC_SUBST([$1_FALSE])dnl
170 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
171 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
172 m4_define([_AM_COND_VALUE_$1], [$2])dnl
180 AC_CONFIG_COMMANDS_PRE(
181 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
182 AC_MSG_ERROR([[conditional "$1" was never defined.
183 Usually this means the macro was only invoked conditionally.]])
186 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
187 # 2010, 2011 Free Software Foundation, Inc.
189 # This file is free software; the Free Software Foundation
190 # gives unlimited permission to copy and/or distribute it,
191 # with or without modifications, as long as this notice is preserved.
195 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
196 # written in clear, in which case automake, when reading aclocal.m4,
197 # will think it sees a *use*, and therefore will trigger all it's
198 # C support machinery. Also note that it means that autoscan, seeing
199 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
202 # _AM_DEPENDENCIES(NAME)
203 # ----------------------
204 # See how the compiler implements dependency checking.
205 # NAME is "CC", "CXX", "GCJ", or "OBJC".
206 # We try a few techniques and use that to set a single cache variable.
208 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
209 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
210 # dependency, and given that the user is not expected to run this macro,
211 # just rely on AC_PROG_CC.
212 AC_DEFUN([_AM_DEPENDENCIES],
213 [AC_REQUIRE([AM_SET_DEPDIR])dnl
214 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
215 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
216 AC_REQUIRE([AM_DEP_TRACK])dnl
218 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
219 [$1], CXX, [depcc="$CXX" am_compiler_list=],
220 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
221 [$1], UPC, [depcc="$UPC" am_compiler_list=],
222 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
223 [depcc="$$1" am_compiler_list=])
225 AC_CACHE_CHECK([dependency style of $depcc],
226 [am_cv_$1_dependencies_compiler_type],
227 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
228 # We make a subdir and do the tests there. Otherwise we can end up
229 # making bogus files that we don't know about and never remove. For
230 # instance it was reported that on HP-UX the gcc test will end up
231 # making a dummy file named `D' -- because `-MD' means `put the output
235 # Copy depcomp to subdir because otherwise we won't find it if we're
236 # using a relative directory.
237 cp "$am_depcomp" conftest.dir
239 # We will build objects and dependencies in a subdirectory because
240 # it helps to detect inapplicable dependency modes. For instance
241 # both Tru64's cc and ICC support -MD to output dependencies as a
242 # side effect of compilation, but ICC will put the dependencies in
243 # the current directory while Tru64 will put them in the object
247 am_cv_$1_dependencies_compiler_type=none
248 if test "$am_compiler_list" = ""; then
249 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
253 [case " $depcc " in #(
254 *\ -arch\ *\ -arch\ *) am__universal=true ;;
257 [case " $depcc " in #(
258 *\ -arch\ *\ -arch\ *) am__universal=true ;;
261 for depmode in $am_compiler_list; do
262 # Setup a source with many dependencies, because some compilers
263 # like to wrap large dependency lists on column 80 (with \), and
264 # we should not choose a depcomp mode which is confused by this.
266 # We need to recreate these files for each test, as the compiler may
267 # overwrite some of them when testing with obscure command lines.
268 # This happens at least with the AIX C compiler.
270 for i in 1 2 3 4 5 6; do
271 echo '#include "conftst'$i'.h"' >> sub/conftest.c
272 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
273 # Solaris 8's {/usr,}/bin/sh.
274 touch sub/conftst$i.h
276 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
278 # We check with `-c' and `-o' for the sake of the "dashmstdout"
279 # mode. It turns out that the SunPro C++ compiler does not properly
280 # handle `-M -o', and we need to detect this. Also, some Intel
281 # versions had trouble with output in subdirs
282 am__obj=sub/conftest.${OBJEXT-o}
283 am__minus_obj="-o $am__obj"
286 # This depmode causes a compiler race in universal mode.
287 test "$am__universal" = false || continue
290 # after this tag, mechanisms are not by side-effect, so they'll
291 # only be used when explicitly requested
292 if test "x$enable_dependency_tracking" = xyes; then
298 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
299 # This compiler won't grok `-c -o', but also, the minuso test has
300 # not run yet. These depmodes are late enough in the game, and
301 # so weak that their functioning should not be impacted.
302 am__obj=conftest.${OBJEXT-o}
307 if depmode=$depmode \
308 source=sub/conftest.c object=$am__obj \
309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
310 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
311 >/dev/null 2>conftest.err &&
312 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
314 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
316 # icc doesn't choke on unknown options, it will just issue warnings
317 # or remarks (even with -Werror). So we grep stderr for any message
318 # that says an option was ignored or not supported.
319 # When given -MP, icc 7.0 and 7.1 complain thusly:
320 # icc: Command line warning: ignoring option '-M'; no argument required
321 # The diagnosis changed in icc 8.0:
322 # icc: Command line remark: option '-MP' not supported
323 if (grep 'ignoring option' conftest.err ||
324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
325 am_cv_$1_dependencies_compiler_type=$depmode
334 am_cv_$1_dependencies_compiler_type=none
337 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
338 AM_CONDITIONAL([am__fastdep$1], [
339 test "x$enable_dependency_tracking" != xno \
340 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
346 # Choose a directory name for dependency files.
347 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
348 AC_DEFUN([AM_SET_DEPDIR],
349 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
350 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
356 AC_DEFUN([AM_DEP_TRACK],
357 [AC_ARG_ENABLE(dependency-tracking,
358 [ --disable-dependency-tracking speeds up one-time build
359 --enable-dependency-tracking do not reject slow dependency extractors])
360 if test "x$enable_dependency_tracking" != xno; then
361 am_depcomp="$ac_aux_dir/depcomp"
365 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
366 AC_SUBST([AMDEPBACKSLASH])dnl
367 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
368 AC_SUBST([am__nodep])dnl
369 _AM_SUBST_NOTMAKE([am__nodep])dnl
372 # Generate code to set up dependency tracking. -*- Autoconf -*-
374 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
375 # Free Software Foundation, Inc.
377 # This file is free software; the Free Software Foundation
378 # gives unlimited permission to copy and/or distribute it,
379 # with or without modifications, as long as this notice is preserved.
383 # _AM_OUTPUT_DEPENDENCY_COMMANDS
384 # ------------------------------
385 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
387 # Autoconf 2.62 quotes --file arguments for eval, but not when files
388 # are listed without --file. Let's play safe and only enable the eval
389 # if we detect the quoting.
390 case $CONFIG_FILES in
391 *\'*) eval set x "$CONFIG_FILES" ;;
392 *) set x $CONFIG_FILES ;;
397 # Strip MF so we end up with the name of the file.
398 mf=`echo "$mf" | sed -e 's/:.*$//'`
399 # Check whether this is an Automake generated Makefile or not.
400 # We used to match only the files named `Makefile.in', but
401 # some people rename them; so instead we look at the file content.
402 # Grep'ing the first line is not enough: some people post-process
403 # each Makefile.in and add a new line on top of each file to say so.
404 # Grep'ing the whole file is not good either: AIX grep has a line
405 # limit of 2048, but all sed's we know have understand at least 4000.
406 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
407 dirpart=`AS_DIRNAME("$mf")`
411 # Extract the definition of DEPDIR, am__include, and am__quote
412 # from the Makefile without running `make'.
413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
414 test -z "$DEPDIR" && continue
415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
416 test -z "am__include" && continue
417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
418 # When using ansi2knr, U may be empty or an underscore; expand it
419 U=`sed -n 's/^U = //p' < "$mf"`
420 # Find all dependency output files, they are included files with
421 # $(DEPDIR) in their names. We invoke sed twice because it is the
422 # simplest approach to changing $(DEPDIR) to its actual value in the
424 for file in `sed -n "
425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
427 # Make sure the directory exists.
428 test -f "$dirpart/$file" && continue
429 fdir=`AS_DIRNAME(["$file"])`
430 AS_MKDIR_P([$dirpart/$fdir])
431 # echo "creating $dirpart/$file"
432 echo '# dummy' > "$dirpart/$file"
436 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
439 # AM_OUTPUT_DEPENDENCY_COMMANDS
440 # -----------------------------
441 # This macro should only be invoked once -- use via AC_REQUIRE.
443 # This code is only required when automatic dependency tracking
444 # is enabled. FIXME. This creates each `.P' file that we will
445 # need in order to bootstrap the dependency handling code.
446 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
447 [AC_CONFIG_COMMANDS([depfiles],
448 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
449 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
452 # Do all the work for Automake. -*- Autoconf -*-
454 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
455 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
457 # This file is free software; the Free Software Foundation
458 # gives unlimited permission to copy and/or distribute it,
459 # with or without modifications, as long as this notice is preserved.
463 # This macro actually does too much. Some checks are only needed if
464 # your package does certain things. But this isn't really a big deal.
466 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
467 # AM_INIT_AUTOMAKE([OPTIONS])
468 # -----------------------------------------------
469 # The call with PACKAGE and VERSION arguments is the old style
470 # call (pre autoconf-2.50), which is being phased out. PACKAGE
471 # and VERSION should now be passed to AC_INIT and removed from
472 # the call to AM_INIT_AUTOMAKE.
473 # We support both call styles for the transition. After
474 # the next Automake release, Autoconf can make the AC_INIT
475 # arguments mandatory, and then we can depend on a new Autoconf
476 # release and drop the old call support.
477 AC_DEFUN([AM_INIT_AUTOMAKE],
478 [AC_PREREQ([2.62])dnl
479 dnl Autoconf wants to disallow AM_ names. We explicitly allow
480 dnl the ones we care about.
481 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
482 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
483 AC_REQUIRE([AC_PROG_INSTALL])dnl
484 if test "`cd $srcdir && pwd`" != "`pwd`"; then
485 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
486 # is not polluted with repeated "-I."
487 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
488 # test to see if srcdir already configured
489 if test -f $srcdir/config.status; then
490 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
494 # test whether we have cygpath
495 if test -z "$CYGPATH_W"; then
496 if (cygpath --version) >/dev/null 2>/dev/null; then
497 CYGPATH_W='cygpath -w'
502 AC_SUBST([CYGPATH_W])
504 # Define the identity of the package.
505 dnl Distinguish between old-style and new-style calls.
507 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
508 AC_SUBST([PACKAGE], [$1])dnl
509 AC_SUBST([VERSION], [$2])],
510 [_AM_SET_OPTIONS([$1])dnl
511 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
512 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
513 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
514 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
515 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
517 _AM_IF_OPTION([no-define],,
518 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
519 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
521 # Some tools Automake needs.
522 AC_REQUIRE([AM_SANITY_CHECK])dnl
523 AC_REQUIRE([AC_ARG_PROGRAM])dnl
524 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
525 AM_MISSING_PROG(AUTOCONF, autoconf)
526 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
527 AM_MISSING_PROG(AUTOHEADER, autoheader)
528 AM_MISSING_PROG(MAKEINFO, makeinfo)
529 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
530 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
531 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
532 # We need awk for the "check" target. The system "awk" is bad on
534 AC_REQUIRE([AC_PROG_AWK])dnl
535 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
536 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
537 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
538 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
539 [_AM_PROG_TAR([v7])])])
540 _AM_IF_OPTION([no-dependencies],,
541 [AC_PROVIDE_IFELSE([AC_PROG_CC],
542 [_AM_DEPENDENCIES(CC)],
543 [define([AC_PROG_CC],
544 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
545 AC_PROVIDE_IFELSE([AC_PROG_CXX],
546 [_AM_DEPENDENCIES(CXX)],
547 [define([AC_PROG_CXX],
548 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
549 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
550 [_AM_DEPENDENCIES(OBJC)],
551 [define([AC_PROG_OBJC],
552 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
554 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
555 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
556 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
557 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
558 AC_CONFIG_COMMANDS_PRE(dnl
559 [m4_provide_if([_AM_COMPILER_EXEEXT],
560 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
563 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
564 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
565 dnl mangled by Autoconf and run in a shell conditional statement.
566 m4_define([_AC_COMPILER_EXEEXT],
567 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
570 # When config.status generates a header, we must update the stamp-h file.
571 # This file resides in the same directory as the config header
572 # that is generated. The stamp files are numbered to have different names.
574 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
575 # loop where config.status creates the headers, so we can generate
576 # our stamp files there.
577 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
578 [# Compute $1's index in $config_headers.
581 for _am_header in $config_headers :; do
583 $_am_arg | $_am_arg:* )
586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
589 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
591 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
594 # This file is free software; the Free Software Foundation
595 # gives unlimited permission to copy and/or distribute it,
596 # with or without modifications, as long as this notice is preserved.
602 # Define $install_sh.
603 AC_DEFUN([AM_PROG_INSTALL_SH],
604 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
605 if test x"${install_sh}" != xset; then
608 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
610 install_sh="\${SHELL} $am_aux_dir/install-sh"
613 AC_SUBST(install_sh)])
615 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
617 # This file is free software; the Free Software Foundation
618 # gives unlimited permission to copy and/or distribute it,
619 # with or without modifications, as long as this notice is preserved.
623 # Check whether the underlying file-system supports filenames
624 # with a leading dot. For instance MS-DOS doesn't.
625 AC_DEFUN([AM_SET_LEADING_DOT],
626 [rm -rf .tst 2>/dev/null
627 mkdir .tst 2>/dev/null
628 if test -d .tst; then
633 rmdir .tst 2>/dev/null
634 AC_SUBST([am__leading_dot])])
636 # Check to see how 'make' treats includes. -*- Autoconf -*-
638 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
640 # This file is free software; the Free Software Foundation
641 # gives unlimited permission to copy and/or distribute it,
642 # with or without modifications, as long as this notice is preserved.
648 # Check to see how make treats includes.
649 AC_DEFUN([AM_MAKE_INCLUDE],
650 [am_make=${MAKE-make}
651 cat > confinc << 'END'
653 @echo this is the am__doit target
656 # If we don't find an include directive, just comment out the code.
657 AC_MSG_CHECKING([for style of include used by $am_make])
661 # First try GNU make style include.
662 echo "include confinc" > confmf
663 # Ignore all kinds of additional output from `make'.
664 case `$am_make -s -f confmf 2> /dev/null` in #(
665 *the\ am__doit\ target*)
671 # Now try BSD make style include.
672 if test "$am__include" = "#"; then
673 echo '.include "confinc"' > confmf
674 case `$am_make -s -f confmf 2> /dev/null` in #(
675 *the\ am__doit\ target*)
682 AC_SUBST([am__include])
683 AC_SUBST([am__quote])
684 AC_MSG_RESULT([$_am_result])
688 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
690 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
691 # Free Software Foundation, Inc.
693 # This file is free software; the Free Software Foundation
694 # gives unlimited permission to copy and/or distribute it,
695 # with or without modifications, as long as this notice is preserved.
699 # AM_MISSING_PROG(NAME, PROGRAM)
700 # ------------------------------
701 AC_DEFUN([AM_MISSING_PROG],
702 [AC_REQUIRE([AM_MISSING_HAS_RUN])
703 $1=${$1-"${am_missing_run}$2"}
709 # Define MISSING if not defined so far and test if it supports --run.
710 # If it does, set am_missing_run to use it, otherwise, to nothing.
711 AC_DEFUN([AM_MISSING_HAS_RUN],
712 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
713 AC_REQUIRE_AUX_FILE([missing])dnl
714 if test x"${MISSING+set}" != xset; then
717 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
719 MISSING="\${SHELL} $am_aux_dir/missing" ;;
722 # Use eval to expand $SHELL
723 if eval "$MISSING --run true"; then
724 am_missing_run="$MISSING --run "
727 AC_MSG_WARN([`missing' script is too old or missing])
731 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
734 # This file is free software; the Free Software Foundation
735 # gives unlimited permission to copy and/or distribute it,
736 # with or without modifications, as long as this notice is preserved.
742 # Check for `mkdir -p'.
743 AC_DEFUN([AM_PROG_MKDIR_P],
744 [AC_PREREQ([2.60])dnl
745 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
746 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
747 dnl while keeping a definition of mkdir_p for backward compatibility.
748 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
749 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
750 dnl Makefile.ins that do not define MKDIR_P, so we do our own
751 dnl adjustment using top_builddir (which is defined more often than
753 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
755 [[\\/$]]* | ?:[[\\/]]*) ;;
756 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
760 # Helper functions for option handling. -*- Autoconf -*-
762 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
765 # This file is free software; the Free Software Foundation
766 # gives unlimited permission to copy and/or distribute it,
767 # with or without modifications, as long as this notice is preserved.
771 # _AM_MANGLE_OPTION(NAME)
772 # -----------------------
773 AC_DEFUN([_AM_MANGLE_OPTION],
774 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
776 # _AM_SET_OPTION(NAME)
777 # --------------------
778 # Set option NAME. Presently that only means defining a flag for this option.
779 AC_DEFUN([_AM_SET_OPTION],
780 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
782 # _AM_SET_OPTIONS(OPTIONS)
783 # ------------------------
784 # OPTIONS is a space-separated list of Automake options.
785 AC_DEFUN([_AM_SET_OPTIONS],
786 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
788 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
789 # -------------------------------------------
790 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
791 AC_DEFUN([_AM_IF_OPTION],
792 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
794 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
796 # This file is free software; the Free Software Foundation
797 # gives unlimited permission to copy and/or distribute it,
798 # with or without modifications, as long as this notice is preserved.
802 # AM_RUN_LOG(COMMAND)
803 # -------------------
804 # Run COMMAND, save the exit status in ac_status, and log it.
805 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
806 AC_DEFUN([AM_RUN_LOG],
807 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
808 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
810 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
811 (exit $ac_status); }])
813 # Check to make sure that the build environment is sane. -*- Autoconf -*-
815 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
816 # Free Software Foundation, Inc.
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 AC_DEFUN([AM_SANITY_CHECK],
827 [AC_MSG_CHECKING([whether build environment is sane])
830 echo timestamp > conftest.file
831 # Reject unsafe characters in $srcdir or the absolute working directory
832 # name. Accept space and tab only in the latter.
836 *[[\\\"\#\$\&\'\`$am_lf]]*)
837 AC_MSG_ERROR([unsafe absolute working directory name]);;
840 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
841 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
844 # Do `set' in a subshell so we don't clobber the current shell's
845 # arguments. Must try -L first in case configure is actually a
846 # symlink; some systems play weird games with the mod time of symlinks
847 # (eg FreeBSD returns the mod time of the symlink's containing
850 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
851 if test "$[*]" = "X"; then
853 set X `ls -t "$srcdir/configure" conftest.file`
856 if test "$[*]" != "X $srcdir/configure conftest.file" \
857 && test "$[*]" != "X conftest.file $srcdir/configure"; then
859 # If neither matched, then we have a broken ls. This can happen
860 # if, for instance, CONFIG_SHELL is bash and it inherits a
861 # broken ls alias from the environment. This has actually
862 # happened. Such a system could not be considered "sane".
863 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
864 alias in your environment])
867 test "$[2]" = conftest.file
873 AC_MSG_ERROR([newly created file is older than distributed files!
874 Check your system clock])
878 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
880 # This file is free software; the Free Software Foundation
881 # gives unlimited permission to copy and/or distribute it,
882 # with or without modifications, as long as this notice is preserved.
886 # AM_SILENT_RULES([DEFAULT])
887 # --------------------------
888 # Enable less verbose build rules; with the default set to DEFAULT
889 # (`yes' being less verbose, `no' or empty being verbose).
890 AC_DEFUN([AM_SILENT_RULES],
891 [AC_ARG_ENABLE([silent-rules],
892 [ --enable-silent-rules less verbose build output (undo: `make V=1')
893 --disable-silent-rules verbose build output (undo: `make V=0')])
894 case $enable_silent_rules in
895 yes) AM_DEFAULT_VERBOSITY=0;;
896 no) AM_DEFAULT_VERBOSITY=1;;
897 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
900 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
901 dnl do not support nested variable expansions.
902 dnl See automake bug#9928 and bug#10237.
904 AC_CACHE_CHECK([whether $am_make supports nested variables],
905 [am_cv_make_support_nested_variables],
906 [if AS_ECHO([['TRUE=$(BAR$(V))
912 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
913 am_cv_make_support_nested_variables=yes
915 am_cv_make_support_nested_variables=no
917 if test $am_cv_make_support_nested_variables = yes; then
918 dnl Using `$V' instead of `$(V)' breaks IRIX make.
920 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
922 AM_V=$AM_DEFAULT_VERBOSITY
923 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
926 AM_SUBST_NOTMAKE([AM_V])dnl
927 AC_SUBST([AM_DEFAULT_V])dnl
928 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
929 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
931 AC_SUBST([AM_BACKSLASH])dnl
932 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
935 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
937 # This file is free software; the Free Software Foundation
938 # gives unlimited permission to copy and/or distribute it,
939 # with or without modifications, as long as this notice is preserved.
943 # AM_PROG_INSTALL_STRIP
944 # ---------------------
945 # One issue with vendor `install' (even GNU) is that you can't
946 # specify the program used to strip binaries. This is especially
947 # annoying in cross-compiling environments, where the build's strip
948 # is unlikely to handle the host's binaries.
949 # Fortunately install-sh will honor a STRIPPROG variable, so we
950 # always use install-sh in `make install-strip', and initialize
951 # STRIPPROG with the value of the STRIP variable (set by the user).
952 AC_DEFUN([AM_PROG_INSTALL_STRIP],
953 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
954 # Installed binaries are usually stripped using `strip' when the user
955 # run `make install-strip'. However `strip' might not be the right
956 # tool to use in cross-compilation environments, therefore Automake
957 # will honor the `STRIP' environment variable to overrule this program.
958 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
959 if test "$cross_compiling" != no; then
960 AC_CHECK_TOOL([STRIP], [strip], :)
962 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
963 AC_SUBST([INSTALL_STRIP_PROGRAM])])
965 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
967 # This file is free software; the Free Software Foundation
968 # gives unlimited permission to copy and/or distribute it,
969 # with or without modifications, as long as this notice is preserved.
973 # _AM_SUBST_NOTMAKE(VARIABLE)
974 # ---------------------------
975 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
976 # This macro is traced by Automake.
977 AC_DEFUN([_AM_SUBST_NOTMAKE])
979 # AM_SUBST_NOTMAKE(VARIABLE)
980 # --------------------------
981 # Public sister of _AM_SUBST_NOTMAKE.
982 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
984 # Check how to create a tarball. -*- Autoconf -*-
986 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
988 # This file is free software; the Free Software Foundation
989 # gives unlimited permission to copy and/or distribute it,
990 # with or without modifications, as long as this notice is preserved.
994 # _AM_PROG_TAR(FORMAT)
995 # --------------------
996 # Check how to create a tarball in format FORMAT.
997 # FORMAT should be one of `v7', `ustar', or `pax'.
999 # Substitute a variable $(am__tar) that is a command
1000 # writing to stdout a FORMAT-tarball containing the directory
1002 # tardir=directory && $(am__tar) > result.tar
1004 # Substitute a variable $(am__untar) that extract such
1005 # a tarball read from stdin.
1006 # $(am__untar) < result.tar
1007 AC_DEFUN([_AM_PROG_TAR],
1008 [# Always define AMTAR for backward compatibility. Yes, it's still used
1009 # in the wild :-( We should find a proper way to deprecate it ...
1010 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1012 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1013 [m4_case([$1], [ustar],, [pax],,
1014 [m4_fatal([Unknown tar format])])
1015 AC_MSG_CHECKING([how to create a $1 tar archive])
1016 # Loop over all known methods to create a tar archive until one works.
1017 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1018 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1019 # Do not fold the above two line into one, because Tru64 sh and
1020 # Solaris sh will not grok spaces in the rhs of `-'.
1021 for _am_tool in $_am_tools
1025 for _am_tar in tar gnutar gtar;
1027 AM_RUN_LOG([$_am_tar --version]) && break
1029 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1030 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1031 am__untar="$_am_tar -xf -"
1034 # Must skip GNU tar: if it does not support --format= it doesn't create
1035 # ustar tarball either.
1036 (tar --version) >/dev/null 2>&1 && continue
1037 am__tar='tar chf - "$$tardir"'
1038 am__tar_='tar chf - "$tardir"'
1039 am__untar='tar xf -'
1042 am__tar='pax -L -x $1 -w "$$tardir"'
1043 am__tar_='pax -L -x $1 -w "$tardir"'
1047 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1048 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1049 am__untar='cpio -i -H $1 -d'
1058 # If the value was cached, stop now. We just wanted to have am__tar
1059 # and am__untar set.
1060 test -n "${am_cv_prog_tar_$1}" && break
1062 # tar/untar a dummy directory, and stop if the command works
1065 echo GrepMe > conftest.dir/file
1066 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1068 if test -s conftest.tar; then
1069 AM_RUN_LOG([$am__untar <conftest.tar])
1070 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1075 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1076 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1078 AC_SUBST([am__untar])
1081 m4_include([m4/acx-pthread.m4])
1082 m4_include([m4/check-ssl.m4])
1083 m4_include([m4/glib-gettext.m4])
1084 m4_include([m4/intltool.m4])
1085 m4_include([m4/libtool.m4])
1086 m4_include([m4/ltoptions.m4])
1087 m4_include([m4/ltsugar.m4])
1088 m4_include([m4/ltversion.m4])
1089 m4_include([m4/lt~obsolete.m4])
1090 m4_include([m4/pkg.m4])
1091 m4_include([m4/zlib.m4])