1218822Sdim# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
238889Sjdp
3218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4218822Sdim# 2005  Free Software Foundation, Inc.
5218822Sdim# This file is free software; the Free Software Foundation
6218822Sdim# gives unlimited permission to copy and/or distribute it,
7218822Sdim# with or without modifications, as long as this notice is preserved.
838889Sjdp
9218822Sdim# This program is distributed in the hope that it will be useful,
10218822Sdim# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11218822Sdim# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12218822Sdim# PARTICULAR PURPOSE.
1338889Sjdp
14218822Sdim# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
15218822Sdim#
16218822Sdim# This file is free software; the Free Software Foundation
17218822Sdim# gives unlimited permission to copy and/or distribute it,
18218822Sdim# with or without modifications, as long as this notice is preserved.
19130561Sobrien
20218822Sdim# AM_AUTOMAKE_VERSION(VERSION)
21218822Sdim# ----------------------------
22218822Sdim# Automake X.Y traces this macro to ensure aclocal.m4 has been
23218822Sdim# generated from the m4 files accompanying Automake X.Y.
24218822SdimAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
2533965Sjdp
26218822Sdim# AM_SET_CURRENT_AUTOMAKE_VERSION
27218822Sdim# -------------------------------
28218822Sdim# Call AM_AUTOMAKE_VERSION so it can be traced.
29218822Sdim# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30218822SdimAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31218822Sdim	 [AM_AUTOMAKE_VERSION([1.9.6])])
3233965Sjdp
33218822Sdim# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
3438889Sjdp
35218822Sdim# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
36218822Sdim#
37218822Sdim# This file is free software; the Free Software Foundation
38218822Sdim# gives unlimited permission to copy and/or distribute it,
39218822Sdim# with or without modifications, as long as this notice is preserved.
4060484Sobrien
41218822Sdim# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
42218822Sdim# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
43218822Sdim# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
44218822Sdim#
45218822Sdim# Of course, Automake must honor this variable whenever it calls a
46218822Sdim# tool from the auxiliary directory.  The problem is that $srcdir (and
47218822Sdim# therefore $ac_aux_dir as well) can be either absolute or relative,
48218822Sdim# depending on how configure is run.  This is pretty annoying, since
49218822Sdim# it makes $ac_aux_dir quite unusable in subdirectories: in the top
50218822Sdim# source directory, any form will work fine, but in subdirectories a
51218822Sdim# relative path needs to be adjusted first.
52218822Sdim#
53218822Sdim# $ac_aux_dir/missing
54218822Sdim#    fails when called from a subdirectory if $ac_aux_dir is relative
55218822Sdim# $top_srcdir/$ac_aux_dir/missing
56218822Sdim#    fails if $ac_aux_dir is absolute,
57218822Sdim#    fails when called from a subdirectory in a VPATH build with
58218822Sdim#          a relative $ac_aux_dir
59218822Sdim#
60218822Sdim# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
61218822Sdim# are both prefixed by $srcdir.  In an in-source build this is usually
62218822Sdim# harmless because $srcdir is `.', but things will broke when you
63218822Sdim# start a VPATH build or use an absolute $srcdir.
64218822Sdim#
65218822Sdim# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
66218822Sdim# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
67218822Sdim#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
68218822Sdim# and then we would define $MISSING as
69218822Sdim#   MISSING="\${SHELL} $am_aux_dir/missing"
70218822Sdim# This will work as long as MISSING is not called from configure, because
71218822Sdim# unfortunately $(top_srcdir) has no meaning in configure.
72218822Sdim# However there are other variables, like CC, which are often used in
73218822Sdim# configure, and could therefore not use this "fixed" $ac_aux_dir.
74218822Sdim#
75218822Sdim# Another solution, used here, is to always expand $ac_aux_dir to an
76218822Sdim# absolute PATH.  The drawback is that using absolute paths prevent a
77218822Sdim# configured tree to be moved without reconfiguration.
7860484Sobrien
79218822SdimAC_DEFUN([AM_AUX_DIR_EXPAND],
80218822Sdim[dnl Rely on autoconf to set up CDPATH properly.
81218822SdimAC_PREREQ([2.50])dnl
82218822Sdim# expand $ac_aux_dir to an absolute path
83218822Sdimam_aux_dir=`cd $ac_aux_dir && pwd`
8460484Sobrien])
8560484Sobrien
86218822Sdim# AM_CONDITIONAL                                            -*- Autoconf -*-
8760484Sobrien
88218822Sdim# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
89218822Sdim# Free Software Foundation, Inc.
90218822Sdim#
91218822Sdim# This file is free software; the Free Software Foundation
92218822Sdim# gives unlimited permission to copy and/or distribute it,
93218822Sdim# with or without modifications, as long as this notice is preserved.
9460484Sobrien
95218822Sdim# serial 7
96104834Sobrien
97218822Sdim# AM_CONDITIONAL(NAME, SHELL-CONDITION)
98218822Sdim# -------------------------------------
99104834Sobrien# Define a conditional.
100104834SobrienAC_DEFUN([AM_CONDITIONAL],
101218822Sdim[AC_PREREQ(2.52)dnl
102218822Sdim ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
103218822Sdim	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
104218822SdimAC_SUBST([$1_TRUE])
105218822SdimAC_SUBST([$1_FALSE])
106104834Sobrienif $2; then
107104834Sobrien  $1_TRUE=
108104834Sobrien  $1_FALSE='#'
109104834Sobrienelse
110104834Sobrien  $1_TRUE='#'
111104834Sobrien  $1_FALSE=
112218822Sdimfi
113218822SdimAC_CONFIG_COMMANDS_PRE(
114218822Sdim[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
115218822Sdim  AC_MSG_ERROR([[conditional "$1" was never defined.
116218822SdimUsually this means the macro was only invoked conditionally.]])
117218822Sdimfi])])
118104834Sobrien
119130561Sobrien
120218822Sdim# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
121218822Sdim# Free Software Foundation, Inc.
122218822Sdim#
123218822Sdim# This file is free software; the Free Software Foundation
124218822Sdim# gives unlimited permission to copy and/or distribute it,
125218822Sdim# with or without modifications, as long as this notice is preserved.
126130561Sobrien
127218822Sdim# serial 8
128130561Sobrien
129218822Sdim# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130218822Sdim# written in clear, in which case automake, when reading aclocal.m4,
131218822Sdim# will think it sees a *use*, and therefore will trigger all it's
132218822Sdim# C support machinery.  Also note that it means that autoscan, seeing
133218822Sdim# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
134130561Sobrien
135130561Sobrien
136218822Sdim# _AM_DEPENDENCIES(NAME)
137218822Sdim# ----------------------
138218822Sdim# See how the compiler implements dependency checking.
139218822Sdim# NAME is "CC", "CXX", "GCJ", or "OBJC".
140218822Sdim# We try a few techniques and use that to set a single cache variable.
141218822Sdim#
142218822Sdim# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
143218822Sdim# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
144218822Sdim# dependency, and given that the user is not expected to run this macro,
145218822Sdim# just rely on AC_PROG_CC.
146218822SdimAC_DEFUN([_AM_DEPENDENCIES],
147218822Sdim[AC_REQUIRE([AM_SET_DEPDIR])dnl
148218822SdimAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
149218822SdimAC_REQUIRE([AM_MAKE_INCLUDE])dnl
150218822SdimAC_REQUIRE([AM_DEP_TRACK])dnl
15138889Sjdp
152218822Sdimifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
153218822Sdim       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
154218822Sdim       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
155218822Sdim       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
156218822Sdim                   [depcc="$$1"   am_compiler_list=])
15738889Sjdp
158218822SdimAC_CACHE_CHECK([dependency style of $depcc],
159218822Sdim               [am_cv_$1_dependencies_compiler_type],
160218822Sdim[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
161218822Sdim  # We make a subdir and do the tests there.  Otherwise we can end up
162218822Sdim  # making bogus files that we don't know about and never remove.  For
163218822Sdim  # instance it was reported that on HP-UX the gcc test will end up
164218822Sdim  # making a dummy file named `D' -- because `-MD' means `put the output
165218822Sdim  # in D'.
166218822Sdim  mkdir conftest.dir
167218822Sdim  # Copy depcomp to subdir because otherwise we won't find it if we're
168218822Sdim  # using a relative directory.
169218822Sdim  cp "$am_depcomp" conftest.dir
170218822Sdim  cd conftest.dir
171218822Sdim  # We will build objects and dependencies in a subdirectory because
172218822Sdim  # it helps to detect inapplicable dependency modes.  For instance
173218822Sdim  # both Tru64's cc and ICC support -MD to output dependencies as a
174218822Sdim  # side effect of compilation, but ICC will put the dependencies in
175218822Sdim  # the current directory while Tru64 will put them in the object
176218822Sdim  # directory.
177218822Sdim  mkdir sub
17838889Sjdp
179218822Sdim  am_cv_$1_dependencies_compiler_type=none
180218822Sdim  if test "$am_compiler_list" = ""; then
181218822Sdim     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
182218822Sdim  fi
183218822Sdim  for depmode in $am_compiler_list; do
184218822Sdim    # Setup a source with many dependencies, because some compilers
185218822Sdim    # like to wrap large dependency lists on column 80 (with \), and
186218822Sdim    # we should not choose a depcomp mode which is confused by this.
187218822Sdim    #
188218822Sdim    # We need to recreate these files for each test, as the compiler may
189218822Sdim    # overwrite some of them when testing with obscure command lines.
190218822Sdim    # This happens at least with the AIX C compiler.
191218822Sdim    : > sub/conftest.c
192218822Sdim    for i in 1 2 3 4 5 6; do
193218822Sdim      echo '#include "conftst'$i'.h"' >> sub/conftest.c
194218822Sdim      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
195218822Sdim      # Solaris 8's {/usr,}/bin/sh.
196218822Sdim      touch sub/conftst$i.h
197218822Sdim    done
198218822Sdim    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
199218822Sdim
200218822Sdim    case $depmode in
201218822Sdim    nosideeffect)
202218822Sdim      # after this tag, mechanisms are not by side-effect, so they'll
203218822Sdim      # only be used when explicitly requested
204218822Sdim      if test "x$enable_dependency_tracking" = xyes; then
205218822Sdim	continue
206218822Sdim      else
207218822Sdim	break
208218822Sdim      fi
209218822Sdim      ;;
210218822Sdim    none) break ;;
211218822Sdim    esac
212218822Sdim    # We check with `-c' and `-o' for the sake of the "dashmstdout"
213218822Sdim    # mode.  It turns out that the SunPro C++ compiler does not properly
214218822Sdim    # handle `-M -o', and we need to detect this.
215218822Sdim    if depmode=$depmode \
216218822Sdim       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
217218822Sdim       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
218218822Sdim       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
219218822Sdim         >/dev/null 2>conftest.err &&
220218822Sdim       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
221218822Sdim       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
222218822Sdim       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
223218822Sdim      # icc doesn't choke on unknown options, it will just issue warnings
224218822Sdim      # or remarks (even with -Werror).  So we grep stderr for any message
225218822Sdim      # that says an option was ignored or not supported.
226218822Sdim      # When given -MP, icc 7.0 and 7.1 complain thusly:
227218822Sdim      #   icc: Command line warning: ignoring option '-M'; no argument required
228218822Sdim      # The diagnosis changed in icc 8.0:
229218822Sdim      #   icc: Command line remark: option '-MP' not supported
230218822Sdim      if (grep 'ignoring option' conftest.err ||
231218822Sdim          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
232218822Sdim        am_cv_$1_dependencies_compiler_type=$depmode
233218822Sdim        break
234218822Sdim      fi
235218822Sdim    fi
236218822Sdim  done
237218822Sdim
238218822Sdim  cd ..
239218822Sdim  rm -rf conftest.dir
240218822Sdimelse
241218822Sdim  am_cv_$1_dependencies_compiler_type=none
242218822Sdimfi
243218822Sdim])
244218822SdimAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
245218822SdimAM_CONDITIONAL([am__fastdep$1], [
246218822Sdim  test "x$enable_dependency_tracking" != xno \
247218822Sdim  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
248218822Sdim])
249218822Sdim
250218822Sdim
251218822Sdim# AM_SET_DEPDIR
252218822Sdim# -------------
253218822Sdim# Choose a directory name for dependency files.
254218822Sdim# This macro is AC_REQUIREd in _AM_DEPENDENCIES
255218822SdimAC_DEFUN([AM_SET_DEPDIR],
256218822Sdim[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
257218822SdimAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
258218822Sdim])
259218822Sdim
260218822Sdim
261218822Sdim# AM_DEP_TRACK
262218822Sdim# ------------
263218822SdimAC_DEFUN([AM_DEP_TRACK],
264218822Sdim[AC_ARG_ENABLE(dependency-tracking,
265218822Sdim[  --disable-dependency-tracking  speeds up one-time build
266218822Sdim  --enable-dependency-tracking   do not reject slow dependency extractors])
267218822Sdimif test "x$enable_dependency_tracking" != xno; then
268218822Sdim  am_depcomp="$ac_aux_dir/depcomp"
269218822Sdim  AMDEPBACKSLASH='\'
270218822Sdimfi
271218822SdimAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272218822SdimAC_SUBST([AMDEPBACKSLASH])
273218822Sdim])
274218822Sdim
275218822Sdim# Generate code to set up dependency tracking.              -*- Autoconf -*-
276218822Sdim
277218822Sdim# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
278218822Sdim# Free Software Foundation, Inc.
279218822Sdim#
280218822Sdim# This file is free software; the Free Software Foundation
281218822Sdim# gives unlimited permission to copy and/or distribute it,
282218822Sdim# with or without modifications, as long as this notice is preserved.
283218822Sdim
284218822Sdim#serial 3
285218822Sdim
286218822Sdim# _AM_OUTPUT_DEPENDENCY_COMMANDS
287218822Sdim# ------------------------------
288218822SdimAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289218822Sdim[for mf in $CONFIG_FILES; do
290218822Sdim  # Strip MF so we end up with the name of the file.
291218822Sdim  mf=`echo "$mf" | sed -e 's/:.*$//'`
292218822Sdim  # Check whether this is an Automake generated Makefile or not.
293218822Sdim  # We used to match only the files named `Makefile.in', but
294218822Sdim  # some people rename them; so instead we look at the file content.
295218822Sdim  # Grep'ing the first line is not enough: some people post-process
296218822Sdim  # each Makefile.in and add a new line on top of each file to say so.
297218822Sdim  # So let's grep whole file.
298218822Sdim  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299218822Sdim    dirpart=`AS_DIRNAME("$mf")`
300218822Sdim  else
301218822Sdim    continue
302218822Sdim  fi
303218822Sdim  # Extract the definition of DEPDIR, am__include, and am__quote
304218822Sdim  # from the Makefile without running `make'.
305218822Sdim  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306218822Sdim  test -z "$DEPDIR" && continue
307218822Sdim  am__include=`sed -n 's/^am__include = //p' < "$mf"`
308218822Sdim  test -z "am__include" && continue
309218822Sdim  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310218822Sdim  # When using ansi2knr, U may be empty or an underscore; expand it
311218822Sdim  U=`sed -n 's/^U = //p' < "$mf"`
312218822Sdim  # Find all dependency output files, they are included files with
313218822Sdim  # $(DEPDIR) in their names.  We invoke sed twice because it is the
314218822Sdim  # simplest approach to changing $(DEPDIR) to its actual value in the
315218822Sdim  # expansion.
316218822Sdim  for file in `sed -n "
317218822Sdim    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318218822Sdim       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319218822Sdim    # Make sure the directory exists.
320218822Sdim    test -f "$dirpart/$file" && continue
321218822Sdim    fdir=`AS_DIRNAME(["$file"])`
322218822Sdim    AS_MKDIR_P([$dirpart/$fdir])
323218822Sdim    # echo "creating $dirpart/$file"
324218822Sdim    echo '# dummy' > "$dirpart/$file"
325218822Sdim  done
326218822Sdimdone
327218822Sdim])# _AM_OUTPUT_DEPENDENCY_COMMANDS
328218822Sdim
329218822Sdim
330218822Sdim# AM_OUTPUT_DEPENDENCY_COMMANDS
331218822Sdim# -----------------------------
332218822Sdim# This macro should only be invoked once -- use via AC_REQUIRE.
333218822Sdim#
334218822Sdim# This code is only required when automatic dependency tracking
335218822Sdim# is enabled.  FIXME.  This creates each `.P' file that we will
336218822Sdim# need in order to bootstrap the dependency handling code.
337218822SdimAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
338218822Sdim[AC_CONFIG_COMMANDS([depfiles],
339218822Sdim     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
340218822Sdim     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
341218822Sdim])
342218822Sdim
343218822Sdim# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
344218822Sdim# Free Software Foundation, Inc.
345218822Sdim#
346218822Sdim# This file is free software; the Free Software Foundation
347218822Sdim# gives unlimited permission to copy and/or distribute it,
348218822Sdim# with or without modifications, as long as this notice is preserved.
349218822Sdim
350218822Sdim# serial 8
351218822Sdim
352218822Sdim# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
353218822SdimAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
354218822Sdim
355218822Sdim# Do all the work for Automake.                             -*- Autoconf -*-
356218822Sdim
357218822Sdim# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
358218822Sdim# Free Software Foundation, Inc.
359218822Sdim#
360218822Sdim# This file is free software; the Free Software Foundation
361218822Sdim# gives unlimited permission to copy and/or distribute it,
362218822Sdim# with or without modifications, as long as this notice is preserved.
363218822Sdim
364218822Sdim# serial 12
365218822Sdim
366218822Sdim# This macro actually does too much.  Some checks are only needed if
367218822Sdim# your package does certain things.  But this isn't really a big deal.
368218822Sdim
369218822Sdim# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
370218822Sdim# AM_INIT_AUTOMAKE([OPTIONS])
371218822Sdim# -----------------------------------------------
372218822Sdim# The call with PACKAGE and VERSION arguments is the old style
373218822Sdim# call (pre autoconf-2.50), which is being phased out.  PACKAGE
374218822Sdim# and VERSION should now be passed to AC_INIT and removed from
375218822Sdim# the call to AM_INIT_AUTOMAKE.
376218822Sdim# We support both call styles for the transition.  After
377218822Sdim# the next Automake release, Autoconf can make the AC_INIT
378218822Sdim# arguments mandatory, and then we can depend on a new Autoconf
379218822Sdim# release and drop the old call support.
38094536SobrienAC_DEFUN([AM_INIT_AUTOMAKE],
381218822Sdim[AC_PREREQ([2.58])dnl
382218822Sdimdnl Autoconf wants to disallow AM_ names.  We explicitly allow
383218822Sdimdnl the ones we care about.
384218822Sdimm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
385218822SdimAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
386218822SdimAC_REQUIRE([AC_PROG_INSTALL])dnl
387218822Sdim# test to see if srcdir already configured
388218822Sdimif test "`cd $srcdir && pwd`" != "`pwd`" &&
389218822Sdim   test -f $srcdir/config.status; then
39038889Sjdp  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
39138889Sjdpfi
39238889Sjdp
393218822Sdim# test whether we have cygpath
394218822Sdimif test -z "$CYGPATH_W"; then
395218822Sdim  if (cygpath --version) >/dev/null 2>/dev/null; then
396218822Sdim    CYGPATH_W='cygpath -w'
397218822Sdim  else
398218822Sdim    CYGPATH_W=echo
399218822Sdim  fi
400218822Sdimfi
401218822SdimAC_SUBST([CYGPATH_W])
402130561Sobrien
403218822Sdim# Define the identity of the package.
404218822Sdimdnl Distinguish between old-style and new-style calls.
405218822Sdimm4_ifval([$2],
406218822Sdim[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
407218822Sdim AC_SUBST([PACKAGE], [$1])dnl
408218822Sdim AC_SUBST([VERSION], [$2])],
409218822Sdim[_AM_SET_OPTIONS([$1])dnl
410218822Sdim AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
411218822Sdim AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
412130561Sobrien
413218822Sdim_AM_IF_OPTION([no-define],,
414218822Sdim[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
415218822Sdim AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
416130561Sobrien
417218822Sdim# Some tools Automake needs.
418218822SdimAC_REQUIRE([AM_SANITY_CHECK])dnl
419218822SdimAC_REQUIRE([AC_ARG_PROGRAM])dnl
420218822SdimAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
421218822SdimAM_MISSING_PROG(AUTOCONF, autoconf)
422218822SdimAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
423218822SdimAM_MISSING_PROG(AUTOHEADER, autoheader)
424218822SdimAM_MISSING_PROG(MAKEINFO, makeinfo)
425218822SdimAM_PROG_INSTALL_SH
426218822SdimAM_PROG_INSTALL_STRIP
427218822SdimAC_REQUIRE([AM_PROG_MKDIR_P])dnl
428218822Sdim# We need awk for the "check" target.  The system "awk" is bad on
429218822Sdim# some platforms.
430218822SdimAC_REQUIRE([AC_PROG_AWK])dnl
431218822SdimAC_REQUIRE([AC_PROG_MAKE_SET])dnl
432218822SdimAC_REQUIRE([AM_SET_LEADING_DOT])dnl
433218822Sdim_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
434218822Sdim              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
435218822Sdim	      		     [_AM_PROG_TAR([v7])])])
436218822Sdim_AM_IF_OPTION([no-dependencies],,
437218822Sdim[AC_PROVIDE_IFELSE([AC_PROG_CC],
438218822Sdim                  [_AM_DEPENDENCIES(CC)],
439218822Sdim                  [define([AC_PROG_CC],
440218822Sdim                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
441218822SdimAC_PROVIDE_IFELSE([AC_PROG_CXX],
442218822Sdim                  [_AM_DEPENDENCIES(CXX)],
443218822Sdim                  [define([AC_PROG_CXX],
444218822Sdim                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
445218822Sdim])
446218822Sdim])
447130561Sobrien
448130561Sobrien
449218822Sdim# When config.status generates a header, we must update the stamp-h file.
450218822Sdim# This file resides in the same directory as the config header
451218822Sdim# that is generated.  The stamp files are numbered to have different names.
452130561Sobrien
453218822Sdim# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
454218822Sdim# loop where config.status creates the headers, so we can generate
455218822Sdim# our stamp files there.
456218822SdimAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
457218822Sdim[# Compute $1's index in $config_headers.
458218822Sdim_am_stamp_count=1
459218822Sdimfor _am_header in $config_headers :; do
460218822Sdim  case $_am_header in
461218822Sdim    $1 | $1:* )
462218822Sdim      break ;;
463218822Sdim    * )
464218822Sdim      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
465218822Sdim  esac
466218822Sdimdone
467218822Sdimecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
468218822Sdim
469218822Sdim# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
47038889Sjdp#
471218822Sdim# This file is free software; the Free Software Foundation
472218822Sdim# gives unlimited permission to copy and/or distribute it,
473218822Sdim# with or without modifications, as long as this notice is preserved.
474218822Sdim
475218822Sdim# AM_PROG_INSTALL_SH
476218822Sdim# ------------------
477218822Sdim# Define $install_sh.
478218822SdimAC_DEFUN([AM_PROG_INSTALL_SH],
479218822Sdim[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
480218822Sdiminstall_sh=${install_sh-"$am_aux_dir/install-sh"}
481218822SdimAC_SUBST(install_sh)])
482218822Sdim
483218822Sdim# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
484218822Sdim# From Jim Meyering
485218822Sdim
486218822Sdim# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
487218822Sdim# Free Software Foundation, Inc.
48838889Sjdp#
489218822Sdim# This file is free software; the Free Software Foundation
490218822Sdim# gives unlimited permission to copy and/or distribute it,
491218822Sdim# with or without modifications, as long as this notice is preserved.
49238889Sjdp
493218822Sdim# serial 4
494218822Sdim
495218822SdimAC_DEFUN([AM_MAINTAINER_MODE],
496218822Sdim[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
497218822Sdim  dnl maintainer-mode is disabled by default
498218822Sdim  AC_ARG_ENABLE(maintainer-mode,
499218822Sdim[  --enable-maintainer-mode  enable make rules and dependencies not useful
500218822Sdim			  (and sometimes confusing) to the casual installer],
501218822Sdim      USE_MAINTAINER_MODE=$enableval,
502218822Sdim      USE_MAINTAINER_MODE=no)
503218822Sdim  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
504218822Sdim  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
505218822Sdim  MAINT=$MAINTAINER_MODE_TRUE
506218822Sdim  AC_SUBST(MAINT)dnl
507218822Sdim]
508218822Sdim)
509218822Sdim
510218822SdimAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
511218822Sdim
512218822Sdim# Check to see how 'make' treats includes.	            -*- Autoconf -*-
513218822Sdim
514218822Sdim# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
515218822Sdim#
516218822Sdim# This file is free software; the Free Software Foundation
517218822Sdim# gives unlimited permission to copy and/or distribute it,
518218822Sdim# with or without modifications, as long as this notice is preserved.
519218822Sdim
520218822Sdim# serial 3
521218822Sdim
522218822Sdim# AM_MAKE_INCLUDE()
523218822Sdim# -----------------
524218822Sdim# Check to see how make treats includes.
525218822SdimAC_DEFUN([AM_MAKE_INCLUDE],
526218822Sdim[am_make=${MAKE-make}
527218822Sdimcat > confinc << 'END'
528218822Sdimam__doit:
529218822Sdim	@echo done
530218822Sdim.PHONY: am__doit
531218822SdimEND
532218822Sdim# If we don't find an include directive, just comment out the code.
533218822SdimAC_MSG_CHECKING([for style of include used by $am_make])
534218822Sdimam__include="#"
535218822Sdimam__quote=
536218822Sdim_am_result=none
537218822Sdim# First try GNU make style include.
538218822Sdimecho "include confinc" > confmf
539218822Sdim# We grep out `Entering directory' and `Leaving directory'
540218822Sdim# messages which can occur if `w' ends up in MAKEFLAGS.
541218822Sdim# In particular we don't look at `^make:' because GNU make might
542218822Sdim# be invoked under some other name (usually "gmake"), in which
543218822Sdim# case it prints its new name instead of `make'.
544218822Sdimif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
545218822Sdim   am__include=include
546218822Sdim   am__quote=
547218822Sdim   _am_result=GNU
548218822Sdimfi
549218822Sdim# Now try BSD make style include.
550218822Sdimif test "$am__include" = "#"; then
551218822Sdim   echo '.include "confinc"' > confmf
552218822Sdim   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
553218822Sdim      am__include=.include
554218822Sdim      am__quote="\""
555218822Sdim      _am_result=BSD
556218822Sdim   fi
557218822Sdimfi
558218822SdimAC_SUBST([am__include])
559218822SdimAC_SUBST([am__quote])
560218822SdimAC_MSG_RESULT([$_am_result])
561218822Sdimrm -f confinc confmf
562218822Sdim])
563218822Sdim
564218822Sdim# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
565218822Sdim
566218822Sdim# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
567218822Sdim# Free Software Foundation, Inc.
568218822Sdim#
569218822Sdim# This file is free software; the Free Software Foundation
570218822Sdim# gives unlimited permission to copy and/or distribute it,
571218822Sdim# with or without modifications, as long as this notice is preserved.
572218822Sdim
573218822Sdim# serial 4
574218822Sdim
575218822Sdim# AM_MISSING_PROG(NAME, PROGRAM)
576218822Sdim# ------------------------------
577218822SdimAC_DEFUN([AM_MISSING_PROG],
578218822Sdim[AC_REQUIRE([AM_MISSING_HAS_RUN])
579218822Sdim$1=${$1-"${am_missing_run}$2"}
580218822SdimAC_SUBST($1)])
581218822Sdim
582218822Sdim
583218822Sdim# AM_MISSING_HAS_RUN
584218822Sdim# ------------------
585218822Sdim# Define MISSING if not defined so far and test if it supports --run.
586218822Sdim# If it does, set am_missing_run to use it, otherwise, to nothing.
587218822SdimAC_DEFUN([AM_MISSING_HAS_RUN],
588218822Sdim[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
589218822Sdimtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
590218822Sdim# Use eval to expand $SHELL
591218822Sdimif eval "$MISSING --run true"; then
592218822Sdim  am_missing_run="$MISSING --run "
593218822Sdimelse
594218822Sdim  am_missing_run=
595218822Sdim  AC_MSG_WARN([`missing' script is too old or missing])
596218822Sdimfi
597218822Sdim])
598218822Sdim
599218822Sdim# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
600218822Sdim#
601218822Sdim# This file is free software; the Free Software Foundation
602218822Sdim# gives unlimited permission to copy and/or distribute it,
603218822Sdim# with or without modifications, as long as this notice is preserved.
604218822Sdim
605218822Sdim# AM_PROG_MKDIR_P
606218822Sdim# ---------------
607218822Sdim# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
608218822Sdim#
609218822Sdim# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
610218822Sdim# created by `make install' are always world readable, even if the
611218822Sdim# installer happens to have an overly restrictive umask (e.g. 077).
612218822Sdim# This was a mistake.  There are at least two reasons why we must not
613218822Sdim# use `-m 0755':
614218822Sdim#   - it causes special bits like SGID to be ignored,
615218822Sdim#   - it may be too restrictive (some setups expect 775 directories).
616218822Sdim#
617218822Sdim# Do not use -m 0755 and let people choose whatever they expect by
618218822Sdim# setting umask.
619218822Sdim#
620218822Sdim# We cannot accept any implementation of `mkdir' that recognizes `-p'.
621218822Sdim# Some implementations (such as Solaris 8's) are not thread-safe: if a
622218822Sdim# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
623218822Sdim# concurrently, both version can detect that a/ is missing, but only
624218822Sdim# one can create it and the other will error out.  Consequently we
625218822Sdim# restrict ourselves to GNU make (using the --version option ensures
626218822Sdim# this.)
627218822SdimAC_DEFUN([AM_PROG_MKDIR_P],
628218822Sdim[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
629218822Sdim  # We used to keeping the `.' as first argument, in order to
630218822Sdim  # allow $(mkdir_p) to be used without argument.  As in
631218822Sdim  #   $(mkdir_p) $(somedir)
632218822Sdim  # where $(somedir) is conditionally defined.  However this is wrong
633218822Sdim  # for two reasons:
634218822Sdim  #  1. if the package is installed by a user who cannot write `.'
635218822Sdim  #     make install will fail,
636218822Sdim  #  2. the above comment should most certainly read
637218822Sdim  #     $(mkdir_p) $(DESTDIR)$(somedir)
638218822Sdim  #     so it does not work when $(somedir) is undefined and
639218822Sdim  #     $(DESTDIR) is not.
640218822Sdim  #  To support the latter case, we have to write
641218822Sdim  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
642218822Sdim  #  so the `.' trick is pointless.
643218822Sdim  mkdir_p='mkdir -p --'
644218822Sdimelse
645218822Sdim  # On NextStep and OpenStep, the `mkdir' command does not
646218822Sdim  # recognize any option.  It will interpret all options as
647218822Sdim  # directories to create, and then abort because `.' already
648218822Sdim  # exists.
649218822Sdim  for d in ./-p ./--version;
650218822Sdim  do
651218822Sdim    test -d $d && rmdir $d
652218822Sdim  done
653218822Sdim  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
654218822Sdim  if test -f "$ac_aux_dir/mkinstalldirs"; then
655218822Sdim    mkdir_p='$(mkinstalldirs)'
656218822Sdim  else
657218822Sdim    mkdir_p='$(install_sh) -d'
658218822Sdim  fi
659218822Sdimfi
660218822SdimAC_SUBST([mkdir_p])])
661218822Sdim
662218822Sdim# Helper functions for option handling.                     -*- Autoconf -*-
663218822Sdim
664218822Sdim# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
665218822Sdim#
666218822Sdim# This file is free software; the Free Software Foundation
667218822Sdim# gives unlimited permission to copy and/or distribute it,
668218822Sdim# with or without modifications, as long as this notice is preserved.
669218822Sdim
670218822Sdim# serial 3
671218822Sdim
672218822Sdim# _AM_MANGLE_OPTION(NAME)
673218822Sdim# -----------------------
674218822SdimAC_DEFUN([_AM_MANGLE_OPTION],
675218822Sdim[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
676218822Sdim
677218822Sdim# _AM_SET_OPTION(NAME)
678218822Sdim# ------------------------------
679218822Sdim# Set option NAME.  Presently that only means defining a flag for this option.
680218822SdimAC_DEFUN([_AM_SET_OPTION],
681218822Sdim[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
682218822Sdim
683218822Sdim# _AM_SET_OPTIONS(OPTIONS)
684218822Sdim# ----------------------------------
685218822Sdim# OPTIONS is a space-separated list of Automake options.
686218822SdimAC_DEFUN([_AM_SET_OPTIONS],
687218822Sdim[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
688218822Sdim
689218822Sdim# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
690218822Sdim# -------------------------------------------
691218822Sdim# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
692218822SdimAC_DEFUN([_AM_IF_OPTION],
693218822Sdim[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
694218822Sdim
695218822Sdim# Check to make sure that the build environment is sane.    -*- Autoconf -*-
696218822Sdim
697218822Sdim# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
698218822Sdim# Free Software Foundation, Inc.
699218822Sdim#
700218822Sdim# This file is free software; the Free Software Foundation
701218822Sdim# gives unlimited permission to copy and/or distribute it,
702218822Sdim# with or without modifications, as long as this notice is preserved.
703218822Sdim
704218822Sdim# serial 4
705218822Sdim
706218822Sdim# AM_SANITY_CHECK
707218822Sdim# ---------------
70894536SobrienAC_DEFUN([AM_SANITY_CHECK],
70938889Sjdp[AC_MSG_CHECKING([whether build environment is sane])
71038889Sjdp# Just in case
71138889Sjdpsleep 1
712218822Sdimecho timestamp > conftest.file
71338889Sjdp# Do `set' in a subshell so we don't clobber the current shell's
71438889Sjdp# arguments.  Must try -L first in case configure is actually a
71538889Sjdp# symlink; some systems play weird games with the mod time of symlinks
71638889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing
71738889Sjdp# directory).
71838889Sjdpif (
719218822Sdim   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
720218822Sdim   if test "$[*]" = "X"; then
72138889Sjdp      # -L didn't work.
722218822Sdim      set X `ls -t $srcdir/configure conftest.file`
72338889Sjdp   fi
724218822Sdim   rm -f conftest.file
725218822Sdim   if test "$[*]" != "X $srcdir/configure conftest.file" \
726218822Sdim      && test "$[*]" != "X conftest.file $srcdir/configure"; then
72738889Sjdp
72838889Sjdp      # If neither matched, then we have a broken ls.  This can happen
72938889Sjdp      # if, for instance, CONFIG_SHELL is bash and it inherits a
73038889Sjdp      # broken ls alias from the environment.  This has actually
73138889Sjdp      # happened.  Such a system could not be considered "sane".
73238889Sjdp      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
73338889Sjdpalias in your environment])
73438889Sjdp   fi
73538889Sjdp
736218822Sdim   test "$[2]" = conftest.file
73738889Sjdp   )
73838889Sjdpthen
73938889Sjdp   # Ok.
74038889Sjdp   :
74138889Sjdpelse
74238889Sjdp   AC_MSG_ERROR([newly created file is older than distributed files!
74338889SjdpCheck your system clock])
74438889Sjdpfi
74538889SjdpAC_MSG_RESULT(yes)])
74638889Sjdp
747218822Sdim# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
748218822Sdim#
749218822Sdim# This file is free software; the Free Software Foundation
750218822Sdim# gives unlimited permission to copy and/or distribute it,
751218822Sdim# with or without modifications, as long as this notice is preserved.
752218822Sdim
753218822Sdim# AM_PROG_INSTALL_STRIP
754218822Sdim# ---------------------
755218822Sdim# One issue with vendor `install' (even GNU) is that you can't
756218822Sdim# specify the program used to strip binaries.  This is especially
757218822Sdim# annoying in cross-compiling environments, where the build's strip
758218822Sdim# is unlikely to handle the host's binaries.
759218822Sdim# Fortunately install-sh will honor a STRIPPROG variable, so we
760218822Sdim# always use install-sh in `make install-strip', and initialize
761218822Sdim# STRIPPROG with the value of the STRIP variable (set by the user).
762218822SdimAC_DEFUN([AM_PROG_INSTALL_STRIP],
763218822Sdim[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
764218822Sdim# Installed binaries are usually stripped using `strip' when the user
765218822Sdim# run `make install-strip'.  However `strip' might not be the right
766218822Sdim# tool to use in cross-compilation environments, therefore Automake
767218822Sdim# will honor the `STRIP' environment variable to overrule this program.
768218822Sdimdnl Don't test for $cross_compiling = yes, because it might be `maybe'.
769218822Sdimif test "$cross_compiling" != no; then
770218822Sdim  AC_CHECK_TOOL([STRIP], [strip], :)
77138889Sjdpfi
772218822SdimINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
773218822SdimAC_SUBST([INSTALL_STRIP_PROGRAM])])
77438889Sjdp
775218822Sdim# Check how to create a tarball.                            -*- Autoconf -*-
77638889Sjdp
777218822Sdim# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
778218822Sdim#
779218822Sdim# This file is free software; the Free Software Foundation
780218822Sdim# gives unlimited permission to copy and/or distribute it,
781218822Sdim# with or without modifications, as long as this notice is preserved.
782218822Sdim
783218822Sdim# serial 2
784218822Sdim
785218822Sdim# _AM_PROG_TAR(FORMAT)
786218822Sdim# --------------------
787218822Sdim# Check how to create a tarball in format FORMAT.
788218822Sdim# FORMAT should be one of `v7', `ustar', or `pax'.
789218822Sdim#
790218822Sdim# Substitute a variable $(am__tar) that is a command
791218822Sdim# writing to stdout a FORMAT-tarball containing the directory
792218822Sdim# $tardir.
793218822Sdim#     tardir=directory && $(am__tar) > result.tar
794218822Sdim#
795218822Sdim# Substitute a variable $(am__untar) that extract such
796218822Sdim# a tarball read from stdin.
797218822Sdim#     $(am__untar) < result.tar
798218822SdimAC_DEFUN([_AM_PROG_TAR],
799218822Sdim[# Always define AMTAR for backward compatibility.
800218822SdimAM_MISSING_PROG([AMTAR], [tar])
801218822Sdimm4_if([$1], [v7],
802218822Sdim     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
803218822Sdim     [m4_case([$1], [ustar],, [pax],,
804218822Sdim              [m4_fatal([Unknown tar format])])
805218822SdimAC_MSG_CHECKING([how to create a $1 tar archive])
806218822Sdim# Loop over all known methods to create a tar archive until one works.
807218822Sdim_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
808218822Sdim_am_tools=${am_cv_prog_tar_$1-$_am_tools}
809218822Sdim# Do not fold the above two line into one, because Tru64 sh and
810218822Sdim# Solaris sh will not grok spaces in the rhs of `-'.
811218822Sdimfor _am_tool in $_am_tools
812218822Sdimdo
813218822Sdim  case $_am_tool in
814218822Sdim  gnutar)
815218822Sdim    for _am_tar in tar gnutar gtar;
816218822Sdim    do
817218822Sdim      AM_RUN_LOG([$_am_tar --version]) && break
818218822Sdim    done
819218822Sdim    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
820218822Sdim    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
821218822Sdim    am__untar="$_am_tar -xf -"
82238889Sjdp    ;;
823218822Sdim  plaintar)
824218822Sdim    # Must skip GNU tar: if it does not support --format= it doesn't create
825218822Sdim    # ustar tarball either.
826218822Sdim    (tar --version) >/dev/null 2>&1 && continue
827218822Sdim    am__tar='tar chf - "$$tardir"'
828218822Sdim    am__tar_='tar chf - "$tardir"'
829218822Sdim    am__untar='tar xf -'
830218822Sdim    ;;
831218822Sdim  pax)
832218822Sdim    am__tar='pax -L -x $1 -w "$$tardir"'
833218822Sdim    am__tar_='pax -L -x $1 -w "$tardir"'
834218822Sdim    am__untar='pax -r'
835218822Sdim    ;;
836218822Sdim  cpio)
837218822Sdim    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
838218822Sdim    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
839218822Sdim    am__untar='cpio -i -H $1 -d'
840218822Sdim    ;;
841218822Sdim  none)
842218822Sdim    am__tar=false
843218822Sdim    am__tar_=false
844218822Sdim    am__untar=false
845218822Sdim    ;;
84638889Sjdp  esac
84738889Sjdp
848218822Sdim  # If the value was cached, stop now.  We just wanted to have am__tar
849218822Sdim  # and am__untar set.
850218822Sdim  test -n "${am_cv_prog_tar_$1}" && break
85138889Sjdp
852218822Sdim  # tar/untar a dummy directory, and stop if the command works
853218822Sdim  rm -rf conftest.dir
854218822Sdim  mkdir conftest.dir
855218822Sdim  echo GrepMe > conftest.dir/file
856218822Sdim  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
857218822Sdim  rm -rf conftest.dir
858218822Sdim  if test -s conftest.tar; then
859218822Sdim    AM_RUN_LOG([$am__untar <conftest.tar])
860218822Sdim    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
861218822Sdim  fi
862218822Sdimdone
863218822Sdimrm -rf conftest.dir
86438889Sjdp
865218822SdimAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
866218822SdimAC_MSG_RESULT([$am_cv_prog_tar_$1])])
867218822SdimAC_SUBST([am__tar])
868218822SdimAC_SUBST([am__untar])
869218822Sdim]) # _AM_PROG_TAR
87038889Sjdp
871218822Sdimm4_include([../config/acx.m4])
872218822Sdimm4_include([../config/depstand.m4])
873218822Sdimm4_include([../config/gettext-sister.m4])
874218822Sdimm4_include([../config/lead-dot.m4])
875218822Sdimm4_include([../config/nls.m4])
876218822Sdimm4_include([../config/po.m4])
877218822Sdimm4_include([../config/progtest.m4])
878218822Sdimm4_include([../config/stdint.m4])
879218822Sdimm4_include([../libtool.m4])
880218822Sdimm4_include([../ltoptions.m4])
881218822Sdimm4_include([../ltsugar.m4])
882218822Sdimm4_include([../ltversion.m4])
883218822Sdimm4_include([bfd.m4])
884218822Sdimm4_include([warning.m4])
885218822Sdimm4_include([acinclude.m4])
886