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