Merge branch 'release/0.0'
[allocwithin] / aclocal.m4
1 # generated automatically by aclocal 1.12 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 # Inc.
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.
9
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
13 # PARTICULAR PURPOSE.
14
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'.])])
22
23 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # serial 8
30
31 # AM_AUTOMAKE_VERSION(VERSION)
32 # ----------------------------
33 # Automake X.Y traces this macro to ensure aclocal.m4 has been
34 # generated from the m4 files accompanying Automake X.Y.
35 # (This private macro should not be called outside this file.)
36 AC_DEFUN([AM_AUTOMAKE_VERSION],
37 [am__api_version='1.12'
38 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
39 dnl require some minimum version. Point them to the right macro.
40 m4_if([$1], [1.12], [],
41 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
42 ])
43
44 # _AM_AUTOCONF_VERSION(VERSION)
45 # -----------------------------
46 # aclocal traces this macro to find the Autoconf version.
47 # This is a private macro too. Using m4_define simplifies
48 # the logic in aclocal, which can simply ignore this definition.
49 m4_define([_AM_AUTOCONF_VERSION], [])
50
51 # AM_SET_CURRENT_AUTOMAKE_VERSION
52 # -------------------------------
53 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
54 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
55 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.12])dnl
57 m4_ifndef([AC_AUTOCONF_VERSION],
58 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
59 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
60
61 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
62
63 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
64 #
65 # This file is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
68
69 # serial 2
70
71 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
72 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
73 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
74 #
75 # Of course, Automake must honor this variable whenever it calls a
76 # tool from the auxiliary directory. The problem is that $srcdir (and
77 # therefore $ac_aux_dir as well) can be either absolute or relative,
78 # depending on how configure is run. This is pretty annoying, since
79 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
80 # source directory, any form will work fine, but in subdirectories a
81 # relative path needs to be adjusted first.
82 #
83 # $ac_aux_dir/missing
84 # fails when called from a subdirectory if $ac_aux_dir is relative
85 # $top_srcdir/$ac_aux_dir/missing
86 # fails if $ac_aux_dir is absolute,
87 # fails when called from a subdirectory in a VPATH build with
88 # a relative $ac_aux_dir
89 #
90 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
91 # are both prefixed by $srcdir. In an in-source build this is usually
92 # harmless because $srcdir is '.', but things will broke when you
93 # start a VPATH build or use an absolute $srcdir.
94 #
95 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
96 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
97 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
98 # and then we would define $MISSING as
99 # MISSING="\${SHELL} $am_aux_dir/missing"
100 # This will work as long as MISSING is not called from configure, because
101 # unfortunately $(top_srcdir) has no meaning in configure.
102 # However there are other variables, like CC, which are often used in
103 # configure, and could therefore not use this "fixed" $ac_aux_dir.
104 #
105 # Another solution, used here, is to always expand $ac_aux_dir to an
106 # absolute PATH. The drawback is that using absolute paths prevent a
107 # configured tree to be moved without reconfiguration.
108
109 AC_DEFUN([AM_AUX_DIR_EXPAND],
110 [dnl Rely on autoconf to set up CDPATH properly.
111 AC_PREREQ([2.50])dnl
112 # expand $ac_aux_dir to an absolute path
113 am_aux_dir=`cd $ac_aux_dir && pwd`
114 ])
115
116 # AM_CONDITIONAL -*- Autoconf -*-
117
118 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
119 #
120 # This file is free software; the Free Software Foundation
121 # gives unlimited permission to copy and/or distribute it,
122 # with or without modifications, as long as this notice is preserved.
123
124 # serial 10
125
126 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
127 # -------------------------------------
128 # Define a conditional.
129 AC_DEFUN([AM_CONDITIONAL],
130 [AC_PREREQ([2.52])dnl
131 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
132 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
133 AC_SUBST([$1_TRUE])dnl
134 AC_SUBST([$1_FALSE])dnl
135 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
136 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
137 m4_define([_AM_COND_VALUE_$1], [$2])dnl
138 if $2; then
139 $1_TRUE=
140 $1_FALSE='#'
141 else
142 $1_TRUE='#'
143 $1_FALSE=
144 fi
145 AC_CONFIG_COMMANDS_PRE(
146 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
147 AC_MSG_ERROR([[conditional "$1" was never defined.
148 Usually this means the macro was only invoked conditionally.]])
149 fi])])
150
151 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
152 #
153 # This file is free software; the Free Software Foundation
154 # gives unlimited permission to copy and/or distribute it,
155 # with or without modifications, as long as this notice is preserved.
156
157 # serial 16
158
159 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
160 # written in clear, in which case automake, when reading aclocal.m4,
161 # will think it sees a *use*, and therefore will trigger all it's
162 # C support machinery. Also note that it means that autoscan, seeing
163 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
164
165
166 # _AM_DEPENDENCIES(NAME)
167 # ----------------------
168 # See how the compiler implements dependency checking.
169 # NAME is "CC", "CXX", "GCJ", or "OBJC".
170 # We try a few techniques and use that to set a single cache variable.
171 #
172 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
173 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
174 # dependency, and given that the user is not expected to run this macro,
175 # just rely on AC_PROG_CC.
176 AC_DEFUN([_AM_DEPENDENCIES],
177 [AC_REQUIRE([AM_SET_DEPDIR])dnl
178 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
179 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
180 AC_REQUIRE([AM_DEP_TRACK])dnl
181
182 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
183 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
184 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
185 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
186 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
187 [depcc="$$1" am_compiler_list=])
188
189 AC_CACHE_CHECK([dependency style of $depcc],
190 [am_cv_$1_dependencies_compiler_type],
191 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
192 # We make a subdir and do the tests there. Otherwise we can end up
193 # making bogus files that we don't know about and never remove. For
194 # instance it was reported that on HP-UX the gcc test will end up
195 # making a dummy file named 'D' -- because '-MD' means "put the output
196 # in D".
197 rm -rf conftest.dir
198 mkdir conftest.dir
199 # Copy depcomp to subdir because otherwise we won't find it if we're
200 # using a relative directory.
201 cp "$am_depcomp" conftest.dir
202 cd conftest.dir
203 # We will build objects and dependencies in a subdirectory because
204 # it helps to detect inapplicable dependency modes. For instance
205 # both Tru64's cc and ICC support -MD to output dependencies as a
206 # side effect of compilation, but ICC will put the dependencies in
207 # the current directory while Tru64 will put them in the object
208 # directory.
209 mkdir sub
210
211 am_cv_$1_dependencies_compiler_type=none
212 if test "$am_compiler_list" = ""; then
213 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
214 fi
215 am__universal=false
216 m4_case([$1], [CC],
217 [case " $depcc " in #(
218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
219 esac],
220 [CXX],
221 [case " $depcc " in #(
222 *\ -arch\ *\ -arch\ *) am__universal=true ;;
223 esac])
224
225 for depmode in $am_compiler_list; do
226 # Setup a source with many dependencies, because some compilers
227 # like to wrap large dependency lists on column 80 (with \), and
228 # we should not choose a depcomp mode which is confused by this.
229 #
230 # We need to recreate these files for each test, as the compiler may
231 # overwrite some of them when testing with obscure command lines.
232 # This happens at least with the AIX C compiler.
233 : > sub/conftest.c
234 for i in 1 2 3 4 5 6; do
235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
236 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
237 # Solaris 10 /bin/sh.
238 echo '/* dummy */' > sub/conftst$i.h
239 done
240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
241
242 # We check with '-c' and '-o' for the sake of the "dashmstdout"
243 # mode. It turns out that the SunPro C++ compiler does not properly
244 # handle '-M -o', and we need to detect this. Also, some Intel
245 # versions had trouble with output in subdirs.
246 am__obj=sub/conftest.${OBJEXT-o}
247 am__minus_obj="-o $am__obj"
248 case $depmode in
249 gcc)
250 # This depmode causes a compiler race in universal mode.
251 test "$am__universal" = false || continue
252 ;;
253 nosideeffect)
254 # After this tag, mechanisms are not by side-effect, so they'll
255 # only be used when explicitly requested.
256 if test "x$enable_dependency_tracking" = xyes; then
257 continue
258 else
259 break
260 fi
261 ;;
262 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
263 # This compiler won't grok '-c -o', but also, the minuso test has
264 # not run yet. These depmodes are late enough in the game, and
265 # so weak that their functioning should not be impacted.
266 am__obj=conftest.${OBJEXT-o}
267 am__minus_obj=
268 ;;
269 none) break ;;
270 esac
271 if depmode=$depmode \
272 source=sub/conftest.c object=$am__obj \
273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
275 >/dev/null 2>conftest.err &&
276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
280 # icc doesn't choke on unknown options, it will just issue warnings
281 # or remarks (even with -Werror). So we grep stderr for any message
282 # that says an option was ignored or not supported.
283 # When given -MP, icc 7.0 and 7.1 complain thusly:
284 # icc: Command line warning: ignoring option '-M'; no argument required
285 # The diagnosis changed in icc 8.0:
286 # icc: Command line remark: option '-MP' not supported
287 if (grep 'ignoring option' conftest.err ||
288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
289 am_cv_$1_dependencies_compiler_type=$depmode
290 break
291 fi
292 fi
293 done
294
295 cd ..
296 rm -rf conftest.dir
297 else
298 am_cv_$1_dependencies_compiler_type=none
299 fi
300 ])
301 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
302 AM_CONDITIONAL([am__fastdep$1], [
303 test "x$enable_dependency_tracking" != xno \
304 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
305 ])
306
307
308 # AM_SET_DEPDIR
309 # -------------
310 # Choose a directory name for dependency files.
311 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
312 AC_DEFUN([AM_SET_DEPDIR],
313 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
314 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
315 ])
316
317
318 # AM_DEP_TRACK
319 # ------------
320 AC_DEFUN([AM_DEP_TRACK],
321 [AC_ARG_ENABLE([dependency-tracking], [dnl
322 AS_HELP_STRING(
323 [--enable-dependency-tracking],
324 [do not reject slow dependency extractors])
325 AS_HELP_STRING(
326 [--disable-dependency-tracking],
327 [speeds up one-time build])])
328 if test "x$enable_dependency_tracking" != xno; then
329 am_depcomp="$ac_aux_dir/depcomp"
330 AMDEPBACKSLASH='\'
331 am__nodep='_no'
332 fi
333 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
334 AC_SUBST([AMDEPBACKSLASH])dnl
335 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
336 AC_SUBST([am__nodep])dnl
337 _AM_SUBST_NOTMAKE([am__nodep])dnl
338 ])
339
340 # Generate code to set up dependency tracking. -*- Autoconf -*-
341
342 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
343 #
344 # This file is free software; the Free Software Foundation
345 # gives unlimited permission to copy and/or distribute it,
346 # with or without modifications, as long as this notice is preserved.
347
348 # serial 6
349
350 # _AM_OUTPUT_DEPENDENCY_COMMANDS
351 # ------------------------------
352 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
353 [{
354 # Autoconf 2.62 quotes --file arguments for eval, but not when files
355 # are listed without --file. Let's play safe and only enable the eval
356 # if we detect the quoting.
357 case $CONFIG_FILES in
358 *\'*) eval set x "$CONFIG_FILES" ;;
359 *) set x $CONFIG_FILES ;;
360 esac
361 shift
362 for mf
363 do
364 # Strip MF so we end up with the name of the file.
365 mf=`echo "$mf" | sed -e 's/:.*$//'`
366 # Check whether this is an Automake generated Makefile or not.
367 # We used to match only the files named 'Makefile.in', but
368 # some people rename them; so instead we look at the file content.
369 # Grep'ing the first line is not enough: some people post-process
370 # each Makefile.in and add a new line on top of each file to say so.
371 # Grep'ing the whole file is not good either: AIX grep has a line
372 # limit of 2048, but all sed's we know have understand at least 4000.
373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
374 dirpart=`AS_DIRNAME("$mf")`
375 else
376 continue
377 fi
378 # Extract the definition of DEPDIR, am__include, and am__quote
379 # from the Makefile without running 'make'.
380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381 test -z "$DEPDIR" && continue
382 am__include=`sed -n 's/^am__include = //p' < "$mf"`
383 test -z "am__include" && continue
384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385 # Find all dependency output files, they are included files with
386 # $(DEPDIR) in their names. We invoke sed twice because it is the
387 # simplest approach to changing $(DEPDIR) to its actual value in the
388 # expansion.
389 for file in `sed -n "
390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
392 # Make sure the directory exists.
393 test -f "$dirpart/$file" && continue
394 fdir=`AS_DIRNAME(["$file"])`
395 AS_MKDIR_P([$dirpart/$fdir])
396 # echo "creating $dirpart/$file"
397 echo '# dummy' > "$dirpart/$file"
398 done
399 done
400 }
401 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
402
403
404 # AM_OUTPUT_DEPENDENCY_COMMANDS
405 # -----------------------------
406 # This macro should only be invoked once -- use via AC_REQUIRE.
407 #
408 # This code is only required when automatic dependency tracking
409 # is enabled. FIXME. This creates each '.P' file that we will
410 # need in order to bootstrap the dependency handling code.
411 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
412 [AC_CONFIG_COMMANDS([depfiles],
413 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
414 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
415 ])
416
417 # Do all the work for Automake. -*- Autoconf -*-
418
419 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
420 #
421 # This file is free software; the Free Software Foundation
422 # gives unlimited permission to copy and/or distribute it,
423 # with or without modifications, as long as this notice is preserved.
424
425 # serial 18
426
427 # This macro actually does too much. Some checks are only needed if
428 # your package does certain things. But this isn't really a big deal.
429
430 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
431 # AM_INIT_AUTOMAKE([OPTIONS])
432 # -----------------------------------------------
433 # The call with PACKAGE and VERSION arguments is the old style
434 # call (pre autoconf-2.50), which is being phased out. PACKAGE
435 # and VERSION should now be passed to AC_INIT and removed from
436 # the call to AM_INIT_AUTOMAKE.
437 # We support both call styles for the transition. After
438 # the next Automake release, Autoconf can make the AC_INIT
439 # arguments mandatory, and then we can depend on a new Autoconf
440 # release and drop the old call support.
441 AC_DEFUN([AM_INIT_AUTOMAKE],
442 [AC_PREREQ([2.62])dnl
443 dnl Autoconf wants to disallow AM_ names. We explicitly allow
444 dnl the ones we care about.
445 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
446 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
447 AC_REQUIRE([AC_PROG_INSTALL])dnl
448 if test "`cd $srcdir && pwd`" != "`pwd`"; then
449 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
450 # is not polluted with repeated "-I."
451 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
452 # test to see if srcdir already configured
453 if test -f $srcdir/config.status; then
454 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
455 fi
456 fi
457
458 # test whether we have cygpath
459 if test -z "$CYGPATH_W"; then
460 if (cygpath --version) >/dev/null 2>/dev/null; then
461 CYGPATH_W='cygpath -w'
462 else
463 CYGPATH_W=echo
464 fi
465 fi
466 AC_SUBST([CYGPATH_W])
467
468 # Define the identity of the package.
469 dnl Distinguish between old-style and new-style calls.
470 m4_ifval([$2],
471 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
472 AC_SUBST([PACKAGE], [$1])dnl
473 AC_SUBST([VERSION], [$2])],
474 [_AM_SET_OPTIONS([$1])dnl
475 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
476 m4_if(
477 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
478 [ok:ok],,
479 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
480 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
481 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
482
483 _AM_IF_OPTION([no-define],,
484 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
485 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
486
487 # Some tools Automake needs.
488 AC_REQUIRE([AM_SANITY_CHECK])dnl
489 AC_REQUIRE([AC_ARG_PROGRAM])dnl
490 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
491 AM_MISSING_PROG([AUTOCONF], [autoconf])
492 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
493 AM_MISSING_PROG([AUTOHEADER], [autoheader])
494 AM_MISSING_PROG([MAKEINFO], [makeinfo])
495 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
496 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
497 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
498 # We need awk for the "check" target. The system "awk" is bad on
499 # some platforms.
500 AC_REQUIRE([AC_PROG_AWK])dnl
501 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
502 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
503 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
504 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
505 [_AM_PROG_TAR([v7])])])
506 _AM_IF_OPTION([no-dependencies],,
507 [AC_PROVIDE_IFELSE([AC_PROG_CC],
508 [_AM_DEPENDENCIES([CC])],
509 [define([AC_PROG_CC],
510 defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_CXX],
512 [_AM_DEPENDENCIES([CXX])],
513 [define([AC_PROG_CXX],
514 defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
515 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
516 [_AM_DEPENDENCIES([OBJC])],
517 [define([AC_PROG_OBJC],
518 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
519 ])
520 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
521 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
522 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
523 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
524 AC_CONFIG_COMMANDS_PRE(dnl
525 [m4_provide_if([_AM_COMPILER_EXEEXT],
526 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
527 ])
528
529 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
530 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
531 dnl mangled by Autoconf and run in a shell conditional statement.
532 m4_define([_AC_COMPILER_EXEEXT],
533 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
534
535
536 # When config.status generates a header, we must update the stamp-h file.
537 # This file resides in the same directory as the config header
538 # that is generated. The stamp files are numbered to have different names.
539
540 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
541 # loop where config.status creates the headers, so we can generate
542 # our stamp files there.
543 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
544 [# Compute $1's index in $config_headers.
545 _am_arg=$1
546 _am_stamp_count=1
547 for _am_header in $config_headers :; do
548 case $_am_header in
549 $_am_arg | $_am_arg:* )
550 break ;;
551 * )
552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
553 esac
554 done
555 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
556
557 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
558 #
559 # This file is free software; the Free Software Foundation
560 # gives unlimited permission to copy and/or distribute it,
561 # with or without modifications, as long as this notice is preserved.
562
563 # serial 8
564
565 # AM_PROG_INSTALL_SH
566 # ------------------
567 # Define $install_sh.
568 AC_DEFUN([AM_PROG_INSTALL_SH],
569 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
570 if test x"${install_sh}" != xset; then
571 case $am_aux_dir in
572 *\ * | *\ *)
573 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
574 *)
575 install_sh="\${SHELL} $am_aux_dir/install-sh"
576 esac
577 fi
578 AC_SUBST([install_sh])])
579
580 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
581 #
582 # This file is free software; the Free Software Foundation
583 # gives unlimited permission to copy and/or distribute it,
584 # with or without modifications, as long as this notice is preserved.
585
586 # serial 2
587
588 # Check whether the underlying file-system supports filenames
589 # with a leading dot. For instance MS-DOS doesn't.
590 AC_DEFUN([AM_SET_LEADING_DOT],
591 [rm -rf .tst 2>/dev/null
592 mkdir .tst 2>/dev/null
593 if test -d .tst; then
594 am__leading_dot=.
595 else
596 am__leading_dot=_
597 fi
598 rmdir .tst 2>/dev/null
599 AC_SUBST([am__leading_dot])])
600
601 # Check to see how 'make' treats includes. -*- Autoconf -*-
602
603 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
604 #
605 # This file is free software; the Free Software Foundation
606 # gives unlimited permission to copy and/or distribute it,
607 # with or without modifications, as long as this notice is preserved.
608
609 # serial 5
610
611 # AM_MAKE_INCLUDE()
612 # -----------------
613 # Check to see how make treats includes.
614 AC_DEFUN([AM_MAKE_INCLUDE],
615 [am_make=${MAKE-make}
616 cat > confinc << 'END'
617 am__doit:
618 @echo this is the am__doit target
619 .PHONY: am__doit
620 END
621 # If we don't find an include directive, just comment out the code.
622 AC_MSG_CHECKING([for style of include used by $am_make])
623 am__include="#"
624 am__quote=
625 _am_result=none
626 # First try GNU make style include.
627 echo "include confinc" > confmf
628 # Ignore all kinds of additional output from 'make'.
629 case `$am_make -s -f confmf 2> /dev/null` in #(
630 *the\ am__doit\ target*)
631 am__include=include
632 am__quote=
633 _am_result=GNU
634 ;;
635 esac
636 # Now try BSD make style include.
637 if test "$am__include" = "#"; then
638 echo '.include "confinc"' > confmf
639 case `$am_make -s -f confmf 2> /dev/null` in #(
640 *the\ am__doit\ target*)
641 am__include=.include
642 am__quote="\""
643 _am_result=BSD
644 ;;
645 esac
646 fi
647 AC_SUBST([am__include])
648 AC_SUBST([am__quote])
649 AC_MSG_RESULT([$_am_result])
650 rm -f confinc confmf
651 ])
652
653 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
654 #
655 # This file is free software; the Free Software Foundation
656 # gives unlimited permission to copy and/or distribute it,
657 # with or without modifications, as long as this notice is preserved.
658
659 # serial 6
660
661 # AM_PROG_CC_C_O
662 # --------------
663 # Like AC_PROG_CC_C_O, but changed for automake.
664 AC_DEFUN([AM_PROG_CC_C_O],
665 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
666 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
667 AC_REQUIRE_AUX_FILE([compile])dnl
668 # FIXME: we rely on the cache variable name because
669 # there is no other way.
670 set dummy $CC
671 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
672 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
673 if test "$am_t" != yes; then
674 # Losing compiler, so override with the script.
675 # FIXME: It is wrong to rewrite CC.
676 # But if we don't then we get into trouble of one sort or another.
677 # A longer-term fix would be to have automake use am__CC in this case,
678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
679 CC="$am_aux_dir/compile $CC"
680 fi
681 dnl Make sure AC_PROG_CC is never called again, or it will override our
682 dnl setting of CC.
683 m4_define([AC_PROG_CC],
684 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
685 ])
686
687 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
688
689 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
690 #
691 # This file is free software; the Free Software Foundation
692 # gives unlimited permission to copy and/or distribute it,
693 # with or without modifications, as long as this notice is preserved.
694
695 # serial 7
696
697 # AM_MISSING_PROG(NAME, PROGRAM)
698 # ------------------------------
699 AC_DEFUN([AM_MISSING_PROG],
700 [AC_REQUIRE([AM_MISSING_HAS_RUN])
701 $1=${$1-"${am_missing_run}$2"}
702 AC_SUBST($1)])
703
704
705 # AM_MISSING_HAS_RUN
706 # ------------------
707 # Define MISSING if not defined so far and test if it supports --run.
708 # If it does, set am_missing_run to use it, otherwise, to nothing.
709 AC_DEFUN([AM_MISSING_HAS_RUN],
710 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
711 AC_REQUIRE_AUX_FILE([missing])dnl
712 if test x"${MISSING+set}" != xset; then
713 case $am_aux_dir in
714 *\ * | *\ *)
715 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
716 *)
717 MISSING="\${SHELL} $am_aux_dir/missing" ;;
718 esac
719 fi
720 # Use eval to expand $SHELL
721 if eval "$MISSING --run true"; then
722 am_missing_run="$MISSING --run "
723 else
724 am_missing_run=
725 AC_MSG_WARN(['missing' script is too old or missing])
726 fi
727 ])
728
729 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
730 #
731 # This file is free software; the Free Software Foundation
732 # gives unlimited permission to copy and/or distribute it,
733 # with or without modifications, as long as this notice is preserved.
734
735 # serial 2
736
737 # AM_PROG_MKDIR_P
738 # ---------------
739 # Check for 'mkdir -p'.
740 AC_DEFUN([AM_PROG_MKDIR_P],
741 [AC_PREREQ([2.60])dnl
742 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
743 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
744 dnl while keeping a definition of mkdir_p for backward compatibility.
745 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
746 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
747 dnl Makefile.ins that do not define MKDIR_P, so we do our own
748 dnl adjustment using top_builddir (which is defined more often than
749 dnl MKDIR_P).
750 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
751 case $mkdir_p in
752 [[\\/$]]* | ?:[[\\/]]*) ;;
753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
754 esac
755 ])
756
757 # Helper functions for option handling. -*- Autoconf -*-
758
759 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
760 #
761 # This file is free software; the Free Software Foundation
762 # gives unlimited permission to copy and/or distribute it,
763 # with or without modifications, as long as this notice is preserved.
764
765 # serial 6
766
767 # _AM_MANGLE_OPTION(NAME)
768 # -----------------------
769 AC_DEFUN([_AM_MANGLE_OPTION],
770 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
771
772 # _AM_SET_OPTION(NAME)
773 # --------------------
774 # Set option NAME. Presently that only means defining a flag for this option.
775 AC_DEFUN([_AM_SET_OPTION],
776 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
777
778 # _AM_SET_OPTIONS(OPTIONS)
779 # ------------------------
780 # OPTIONS is a space-separated list of Automake options.
781 AC_DEFUN([_AM_SET_OPTIONS],
782 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
783
784 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
785 # -------------------------------------------
786 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
787 AC_DEFUN([_AM_IF_OPTION],
788 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
789
790 # Check to make sure that the build environment is sane. -*- Autoconf -*-
791
792 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
793 #
794 # This file is free software; the Free Software Foundation
795 # gives unlimited permission to copy and/or distribute it,
796 # with or without modifications, as long as this notice is preserved.
797
798 # serial 9
799
800 # AM_SANITY_CHECK
801 # ---------------
802 AC_DEFUN([AM_SANITY_CHECK],
803 [AC_MSG_CHECKING([whether build environment is sane])
804 # Reject unsafe characters in $srcdir or the absolute working directory
805 # name. Accept space and tab only in the latter.
806 am_lf='
807 '
808 case `pwd` in
809 *[[\\\"\#\$\&\'\`$am_lf]]*)
810 AC_MSG_ERROR([unsafe absolute working directory name]);;
811 esac
812 case $srcdir in
813 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
814 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
815 esac
816
817 # Do 'set' in a subshell so we don't clobber the current shell's
818 # arguments. Must try -L first in case configure is actually a
819 # symlink; some systems play weird games with the mod time of symlinks
820 # (eg FreeBSD returns the mod time of the symlink's containing
821 # directory).
822 if (
823 am_has_slept=no
824 for am_try in 1 2; do
825 echo "timestamp, slept: $am_has_slept" > conftest.file
826 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
827 if test "$[*]" = "X"; then
828 # -L didn't work.
829 set X `ls -t "$srcdir/configure" conftest.file`
830 fi
831 if test "$[*]" != "X $srcdir/configure conftest.file" \
832 && test "$[*]" != "X conftest.file $srcdir/configure"; then
833
834 # If neither matched, then we have a broken ls. This can happen
835 # if, for instance, CONFIG_SHELL is bash and it inherits a
836 # broken ls alias from the environment. This has actually
837 # happened. Such a system could not be considered "sane".
838 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
839 alias in your environment])
840 fi
841 if test "$[2]" = conftest.file || test $am_try -eq 2; then
842 break
843 fi
844 # Just in case.
845 sleep 1
846 am_has_slept=yes
847 done
848 test "$[2]" = conftest.file
849 )
850 then
851 # Ok.
852 :
853 else
854 AC_MSG_ERROR([newly created file is older than distributed files!
855 Check your system clock])
856 fi
857 AC_MSG_RESULT([yes])
858 # If we didn't sleep, we still need to ensure time stamps of config.status and
859 # generated files are strictly newer.
860 am_sleep_pid=
861 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
862 ( sleep 1 ) &
863 am_sleep_pid=$!
864 fi
865 AC_CONFIG_COMMANDS_PRE(
866 [AC_MSG_CHECKING([that generated files are newer than configure])
867 if test -n "$am_sleep_pid"; then
868 # Hide warnings about reused PIDs.
869 wait $am_sleep_pid 2>/dev/null
870 fi
871 AC_MSG_RESULT([done])])
872 rm -f conftest.file
873 ])
874
875 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
876 #
877 # This file is free software; the Free Software Foundation
878 # gives unlimited permission to copy and/or distribute it,
879 # with or without modifications, as long as this notice is preserved.
880
881 # serial 2
882
883 # AM_PROG_INSTALL_STRIP
884 # ---------------------
885 # One issue with vendor 'install' (even GNU) is that you can't
886 # specify the program used to strip binaries. This is especially
887 # annoying in cross-compiling environments, where the build's strip
888 # is unlikely to handle the host's binaries.
889 # Fortunately install-sh will honor a STRIPPROG variable, so we
890 # always use install-sh in "make install-strip", and initialize
891 # STRIPPROG with the value of the STRIP variable (set by the user).
892 AC_DEFUN([AM_PROG_INSTALL_STRIP],
893 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
894 # Installed binaries are usually stripped using 'strip' when the user
895 # run "make install-strip". However 'strip' might not be the right
896 # tool to use in cross-compilation environments, therefore Automake
897 # will honor the 'STRIP' environment variable to overrule this program.
898 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
899 if test "$cross_compiling" != no; then
900 AC_CHECK_TOOL([STRIP], [strip], :)
901 fi
902 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
903 AC_SUBST([INSTALL_STRIP_PROGRAM])])
904
905 # Copyright (C) 2006-2012 Free Software Foundation, Inc.
906 #
907 # This file is free software; the Free Software Foundation
908 # gives unlimited permission to copy and/or distribute it,
909 # with or without modifications, as long as this notice is preserved.
910
911 # serial 3
912
913 # _AM_SUBST_NOTMAKE(VARIABLE)
914 # ---------------------------
915 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
916 # This macro is traced by Automake.
917 AC_DEFUN([_AM_SUBST_NOTMAKE])
918
919 # AM_SUBST_NOTMAKE(VARIABLE)
920 # --------------------------
921 # Public sister of _AM_SUBST_NOTMAKE.
922 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
923
924 # Check how to create a tarball. -*- Autoconf -*-
925
926 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
927 #
928 # This file is free software; the Free Software Foundation
929 # gives unlimited permission to copy and/or distribute it,
930 # with or without modifications, as long as this notice is preserved.
931
932 # serial 3
933
934 # _AM_PROG_TAR(FORMAT)
935 # --------------------
936 # Check how to create a tarball in format FORMAT.
937 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
938 #
939 # Substitute a variable $(am__tar) that is a command
940 # writing to stdout a FORMAT-tarball containing the directory
941 # $tardir.
942 # tardir=directory && $(am__tar) > result.tar
943 #
944 # Substitute a variable $(am__untar) that extract such
945 # a tarball read from stdin.
946 # $(am__untar) < result.tar
947 AC_DEFUN([_AM_PROG_TAR],
948 [# Always define AMTAR for backward compatibility. Yes, it's still used
949 # in the wild :-( We should find a proper way to deprecate it ...
950 AC_SUBST([AMTAR], ['$${TAR-tar}'])
951 m4_if([$1], [v7],
952 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
953 [m4_case([$1], [ustar],, [pax],,
954 [m4_fatal([Unknown tar format])])
955 AC_MSG_CHECKING([how to create a $1 tar archive])
956 # Loop over all known methods to create a tar archive until one works.
957 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
958 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
959 # Do not fold the above two line into one, because Tru64 sh and
960 # Solaris sh will not grok spaces in the rhs of '-'.
961 for _am_tool in $_am_tools
962 do
963 case $_am_tool in
964 gnutar)
965 for _am_tar in tar gnutar gtar;
966 do
967 AM_RUN_LOG([$_am_tar --version]) && break
968 done
969 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
970 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
971 am__untar="$_am_tar -xf -"
972 ;;
973 plaintar)
974 # Must skip GNU tar: if it does not support --format= it doesn't create
975 # ustar tarball either.
976 (tar --version) >/dev/null 2>&1 && continue
977 am__tar='tar chf - "$$tardir"'
978 am__tar_='tar chf - "$tardir"'
979 am__untar='tar xf -'
980 ;;
981 pax)
982 am__tar='pax -L -x $1 -w "$$tardir"'
983 am__tar_='pax -L -x $1 -w "$tardir"'
984 am__untar='pax -r'
985 ;;
986 cpio)
987 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
988 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
989 am__untar='cpio -i -H $1 -d'
990 ;;
991 none)
992 am__tar=false
993 am__tar_=false
994 am__untar=false
995 ;;
996 esac
997
998 # If the value was cached, stop now. We just wanted to have am__tar
999 # and am__untar set.
1000 test -n "${am_cv_prog_tar_$1}" && break
1001
1002 # tar/untar a dummy directory, and stop if the command works
1003 rm -rf conftest.dir
1004 mkdir conftest.dir
1005 echo GrepMe > conftest.dir/file
1006 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1007 rm -rf conftest.dir
1008 if test -s conftest.tar; then
1009 AM_RUN_LOG([$am__untar <conftest.tar])
1010 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1011 fi
1012 done
1013 rm -rf conftest.dir
1014
1015 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1016 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1017 AC_SUBST([am__tar])
1018 AC_SUBST([am__untar])
1019 ]) # _AM_PROG_TAR
1020
1021 m4_include([m4/libtool.m4])
1022 m4_include([m4/ltoptions.m4])
1023 m4_include([m4/ltsugar.m4])
1024 m4_include([m4/ltversion.m4])
1025 m4_include([m4/lt~obsolete.m4])