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.
1938889Sjdp
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"])
25218822Sdim
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])])
32218822Sdim
33218822Sdim# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
34218822Sdim
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.
40218822Sdim
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.
78218822Sdim
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`
8477298Sobrien])
8577298Sobrien
86218822Sdim# AM_CONDITIONAL                                            -*- Autoconf -*-
87218822Sdim
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.
94218822Sdim
95218822Sdim# serial 7
96218822Sdim
97218822Sdim# AM_CONDITIONAL(NAME, SHELL-CONDITION)
98218822Sdim# -------------------------------------
99218822Sdim# Define a conditional.
100218822SdimAC_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])
106218822Sdimif $2; then
107218822Sdim  $1_TRUE=
108218822Sdim  $1_FALSE='#'
109218822Sdimelse
110218822Sdim  $1_TRUE='#'
111218822Sdim  $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])])
118218822Sdim
119218822Sdim
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.
126218822Sdim
127218822Sdim# serial 8
128218822Sdim
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...
134218822Sdim
135218822Sdim
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
151218822Sdim
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=])
157218822Sdim
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
178218822Sdim
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
24377298Sobrien])
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])
24977298Sobrien
25077298Sobrien
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])
25977298Sobrien
26077298Sobrien
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])
274130561Sobrien
275218822Sdim# Generate code to set up dependency tracking.              -*- Autoconf -*-
276130561Sobrien
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.
283130561Sobrien
284218822Sdim#serial 3
28538889Sjdp
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
32838889Sjdp
32938889Sjdp
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])
402218822Sdim
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
412218822Sdim
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
416218822Sdim
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])
447218822Sdim
448218822Sdim
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.
452218822Sdim
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# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
484218822Sdim# Free Software Foundation, Inc.
48538889Sjdp#
486218822Sdim# This file is free software; the Free Software Foundation
487218822Sdim# gives unlimited permission to copy and/or distribute it,
488218822Sdim# with or without modifications, as long as this notice is preserved.
48938889Sjdp
490218822Sdim# serial 5
491218822Sdim
492218822Sdim# AM_PROG_LEX
493218822Sdim# -----------
494218822Sdim# Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
495218822Sdim# "missing" invocation, for better error output.
496218822SdimAC_DEFUN([AM_PROG_LEX],
497218822Sdim[AC_PREREQ(2.50)dnl
498218822SdimAC_REQUIRE([AM_MISSING_HAS_RUN])dnl
499218822SdimAC_REQUIRE([AC_PROG_LEX])dnl
500218822Sdimif test "$LEX" = :; then
501218822Sdim  LEX=${am_missing_run}flex
502218822Sdimfi])
503218822Sdim
504218822Sdim# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
505218822Sdim# From Jim Meyering
506218822Sdim
507218822Sdim# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
508218822Sdim# Free Software Foundation, Inc.
509218822Sdim#
510218822Sdim# This file is free software; the Free Software Foundation
511218822Sdim# gives unlimited permission to copy and/or distribute it,
512218822Sdim# with or without modifications, as long as this notice is preserved.
513218822Sdim
514218822Sdim# serial 4
515218822Sdim
516218822SdimAC_DEFUN([AM_MAINTAINER_MODE],
517218822Sdim[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
518218822Sdim  dnl maintainer-mode is disabled by default
519218822Sdim  AC_ARG_ENABLE(maintainer-mode,
520218822Sdim[  --enable-maintainer-mode  enable make rules and dependencies not useful
521218822Sdim			  (and sometimes confusing) to the casual installer],
522218822Sdim      USE_MAINTAINER_MODE=$enableval,
523218822Sdim      USE_MAINTAINER_MODE=no)
524218822Sdim  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
525218822Sdim  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
526218822Sdim  MAINT=$MAINTAINER_MODE_TRUE
527218822Sdim  AC_SUBST(MAINT)dnl
528218822Sdim]
529218822Sdim)
530218822Sdim
531218822SdimAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
532218822Sdim
533218822Sdim# Check to see how 'make' treats includes.	            -*- Autoconf -*-
534218822Sdim
535218822Sdim# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
536218822Sdim#
537218822Sdim# This file is free software; the Free Software Foundation
538218822Sdim# gives unlimited permission to copy and/or distribute it,
539218822Sdim# with or without modifications, as long as this notice is preserved.
540218822Sdim
541218822Sdim# serial 3
542218822Sdim
543218822Sdim# AM_MAKE_INCLUDE()
544218822Sdim# -----------------
545218822Sdim# Check to see how make treats includes.
546218822SdimAC_DEFUN([AM_MAKE_INCLUDE],
547218822Sdim[am_make=${MAKE-make}
548218822Sdimcat > confinc << 'END'
549218822Sdimam__doit:
550218822Sdim	@echo done
551218822Sdim.PHONY: am__doit
552218822SdimEND
553218822Sdim# If we don't find an include directive, just comment out the code.
554218822SdimAC_MSG_CHECKING([for style of include used by $am_make])
555218822Sdimam__include="#"
556218822Sdimam__quote=
557218822Sdim_am_result=none
558218822Sdim# First try GNU make style include.
559218822Sdimecho "include confinc" > confmf
560218822Sdim# We grep out `Entering directory' and `Leaving directory'
561218822Sdim# messages which can occur if `w' ends up in MAKEFLAGS.
562218822Sdim# In particular we don't look at `^make:' because GNU make might
563218822Sdim# be invoked under some other name (usually "gmake"), in which
564218822Sdim# case it prints its new name instead of `make'.
565218822Sdimif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
566218822Sdim   am__include=include
567218822Sdim   am__quote=
568218822Sdim   _am_result=GNU
569218822Sdimfi
570218822Sdim# Now try BSD make style include.
571218822Sdimif test "$am__include" = "#"; then
572218822Sdim   echo '.include "confinc"' > confmf
573218822Sdim   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
574218822Sdim      am__include=.include
575218822Sdim      am__quote="\""
576218822Sdim      _am_result=BSD
577218822Sdim   fi
578218822Sdimfi
579218822SdimAC_SUBST([am__include])
580218822SdimAC_SUBST([am__quote])
581218822SdimAC_MSG_RESULT([$_am_result])
582218822Sdimrm -f confinc confmf
583218822Sdim])
584218822Sdim
585218822Sdim# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
586218822Sdim
587218822Sdim# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
588218822Sdim# Free Software Foundation, Inc.
589218822Sdim#
590218822Sdim# This file is free software; the Free Software Foundation
591218822Sdim# gives unlimited permission to copy and/or distribute it,
592218822Sdim# with or without modifications, as long as this notice is preserved.
593218822Sdim
594218822Sdim# serial 4
595218822Sdim
596218822Sdim# AM_MISSING_PROG(NAME, PROGRAM)
597218822Sdim# ------------------------------
598218822SdimAC_DEFUN([AM_MISSING_PROG],
599218822Sdim[AC_REQUIRE([AM_MISSING_HAS_RUN])
600218822Sdim$1=${$1-"${am_missing_run}$2"}
601218822SdimAC_SUBST($1)])
602218822Sdim
603218822Sdim
604218822Sdim# AM_MISSING_HAS_RUN
605218822Sdim# ------------------
606218822Sdim# Define MISSING if not defined so far and test if it supports --run.
607218822Sdim# If it does, set am_missing_run to use it, otherwise, to nothing.
608218822SdimAC_DEFUN([AM_MISSING_HAS_RUN],
609218822Sdim[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
610218822Sdimtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
611218822Sdim# Use eval to expand $SHELL
612218822Sdimif eval "$MISSING --run true"; then
613218822Sdim  am_missing_run="$MISSING --run "
614218822Sdimelse
615218822Sdim  am_missing_run=
616218822Sdim  AC_MSG_WARN([`missing' script is too old or missing])
617218822Sdimfi
618218822Sdim])
619218822Sdim
620218822Sdim# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
621218822Sdim#
622218822Sdim# This file is free software; the Free Software Foundation
623218822Sdim# gives unlimited permission to copy and/or distribute it,
624218822Sdim# with or without modifications, as long as this notice is preserved.
625218822Sdim
626218822Sdim# AM_PROG_MKDIR_P
627218822Sdim# ---------------
628218822Sdim# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
629218822Sdim#
630218822Sdim# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
631218822Sdim# created by `make install' are always world readable, even if the
632218822Sdim# installer happens to have an overly restrictive umask (e.g. 077).
633218822Sdim# This was a mistake.  There are at least two reasons why we must not
634218822Sdim# use `-m 0755':
635218822Sdim#   - it causes special bits like SGID to be ignored,
636218822Sdim#   - it may be too restrictive (some setups expect 775 directories).
637218822Sdim#
638218822Sdim# Do not use -m 0755 and let people choose whatever they expect by
639218822Sdim# setting umask.
640218822Sdim#
641218822Sdim# We cannot accept any implementation of `mkdir' that recognizes `-p'.
642218822Sdim# Some implementations (such as Solaris 8's) are not thread-safe: if a
643218822Sdim# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
644218822Sdim# concurrently, both version can detect that a/ is missing, but only
645218822Sdim# one can create it and the other will error out.  Consequently we
646218822Sdim# restrict ourselves to GNU make (using the --version option ensures
647218822Sdim# this.)
648218822SdimAC_DEFUN([AM_PROG_MKDIR_P],
649218822Sdim[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
650218822Sdim  # We used to keeping the `.' as first argument, in order to
651218822Sdim  # allow $(mkdir_p) to be used without argument.  As in
652218822Sdim  #   $(mkdir_p) $(somedir)
653218822Sdim  # where $(somedir) is conditionally defined.  However this is wrong
654218822Sdim  # for two reasons:
655218822Sdim  #  1. if the package is installed by a user who cannot write `.'
656218822Sdim  #     make install will fail,
657218822Sdim  #  2. the above comment should most certainly read
658218822Sdim  #     $(mkdir_p) $(DESTDIR)$(somedir)
659218822Sdim  #     so it does not work when $(somedir) is undefined and
660218822Sdim  #     $(DESTDIR) is not.
661218822Sdim  #  To support the latter case, we have to write
662218822Sdim  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
663218822Sdim  #  so the `.' trick is pointless.
664218822Sdim  mkdir_p='mkdir -p --'
665218822Sdimelse
666218822Sdim  # On NextStep and OpenStep, the `mkdir' command does not
667218822Sdim  # recognize any option.  It will interpret all options as
668218822Sdim  # directories to create, and then abort because `.' already
669218822Sdim  # exists.
670218822Sdim  for d in ./-p ./--version;
671218822Sdim  do
672218822Sdim    test -d $d && rmdir $d
673218822Sdim  done
674218822Sdim  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
675218822Sdim  if test -f "$ac_aux_dir/mkinstalldirs"; then
676218822Sdim    mkdir_p='$(mkinstalldirs)'
677218822Sdim  else
678218822Sdim    mkdir_p='$(install_sh) -d'
679218822Sdim  fi
680218822Sdimfi
681218822SdimAC_SUBST([mkdir_p])])
682218822Sdim
683218822Sdim# Helper functions for option handling.                     -*- Autoconf -*-
684218822Sdim
685218822Sdim# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
686218822Sdim#
687218822Sdim# This file is free software; the Free Software Foundation
688218822Sdim# gives unlimited permission to copy and/or distribute it,
689218822Sdim# with or without modifications, as long as this notice is preserved.
690218822Sdim
691218822Sdim# serial 3
692218822Sdim
693218822Sdim# _AM_MANGLE_OPTION(NAME)
694218822Sdim# -----------------------
695218822SdimAC_DEFUN([_AM_MANGLE_OPTION],
696218822Sdim[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
697218822Sdim
698218822Sdim# _AM_SET_OPTION(NAME)
699218822Sdim# ------------------------------
700218822Sdim# Set option NAME.  Presently that only means defining a flag for this option.
701218822SdimAC_DEFUN([_AM_SET_OPTION],
702218822Sdim[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
703218822Sdim
704218822Sdim# _AM_SET_OPTIONS(OPTIONS)
705218822Sdim# ----------------------------------
706218822Sdim# OPTIONS is a space-separated list of Automake options.
707218822SdimAC_DEFUN([_AM_SET_OPTIONS],
708218822Sdim[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
709218822Sdim
710218822Sdim# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
711218822Sdim# -------------------------------------------
712218822Sdim# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
713218822SdimAC_DEFUN([_AM_IF_OPTION],
714218822Sdim[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
715218822Sdim
716218822Sdim# Check to make sure that the build environment is sane.    -*- Autoconf -*-
717218822Sdim
718218822Sdim# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
719218822Sdim# Free Software Foundation, Inc.
720218822Sdim#
721218822Sdim# This file is free software; the Free Software Foundation
722218822Sdim# gives unlimited permission to copy and/or distribute it,
723218822Sdim# with or without modifications, as long as this notice is preserved.
724218822Sdim
725218822Sdim# serial 4
726218822Sdim
727218822Sdim# AM_SANITY_CHECK
728218822Sdim# ---------------
72994536SobrienAC_DEFUN([AM_SANITY_CHECK],
73038889Sjdp[AC_MSG_CHECKING([whether build environment is sane])
73138889Sjdp# Just in case
73238889Sjdpsleep 1
733218822Sdimecho timestamp > conftest.file
73438889Sjdp# Do `set' in a subshell so we don't clobber the current shell's
73538889Sjdp# arguments.  Must try -L first in case configure is actually a
73638889Sjdp# symlink; some systems play weird games with the mod time of symlinks
73738889Sjdp# (eg FreeBSD returns the mod time of the symlink's containing
73838889Sjdp# directory).
73938889Sjdpif (
740218822Sdim   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
741218822Sdim   if test "$[*]" = "X"; then
74238889Sjdp      # -L didn't work.
743218822Sdim      set X `ls -t $srcdir/configure conftest.file`
74438889Sjdp   fi
745218822Sdim   rm -f conftest.file
746218822Sdim   if test "$[*]" != "X $srcdir/configure conftest.file" \
747218822Sdim      && test "$[*]" != "X conftest.file $srcdir/configure"; then
74838889Sjdp
74938889Sjdp      # If neither matched, then we have a broken ls.  This can happen
75038889Sjdp      # if, for instance, CONFIG_SHELL is bash and it inherits a
75138889Sjdp      # broken ls alias from the environment.  This has actually
75238889Sjdp      # happened.  Such a system could not be considered "sane".
75338889Sjdp      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
75438889Sjdpalias in your environment])
75538889Sjdp   fi
75638889Sjdp
757218822Sdim   test "$[2]" = conftest.file
75838889Sjdp   )
75938889Sjdpthen
76038889Sjdp   # Ok.
76138889Sjdp   :
76238889Sjdpelse
76338889Sjdp   AC_MSG_ERROR([newly created file is older than distributed files!
76438889SjdpCheck your system clock])
76538889Sjdpfi
76638889SjdpAC_MSG_RESULT(yes)])
76738889Sjdp
768218822Sdim# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
769218822Sdim#
770218822Sdim# This file is free software; the Free Software Foundation
771218822Sdim# gives unlimited permission to copy and/or distribute it,
772218822Sdim# with or without modifications, as long as this notice is preserved.
773218822Sdim
774218822Sdim# AM_PROG_INSTALL_STRIP
775218822Sdim# ---------------------
776218822Sdim# One issue with vendor `install' (even GNU) is that you can't
777218822Sdim# specify the program used to strip binaries.  This is especially
778218822Sdim# annoying in cross-compiling environments, where the build's strip
779218822Sdim# is unlikely to handle the host's binaries.
780218822Sdim# Fortunately install-sh will honor a STRIPPROG variable, so we
781218822Sdim# always use install-sh in `make install-strip', and initialize
782218822Sdim# STRIPPROG with the value of the STRIP variable (set by the user).
783218822SdimAC_DEFUN([AM_PROG_INSTALL_STRIP],
784218822Sdim[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
785218822Sdim# Installed binaries are usually stripped using `strip' when the user
786218822Sdim# run `make install-strip'.  However `strip' might not be the right
787218822Sdim# tool to use in cross-compilation environments, therefore Automake
788218822Sdim# will honor the `STRIP' environment variable to overrule this program.
789218822Sdimdnl Don't test for $cross_compiling = yes, because it might be `maybe'.
790218822Sdimif test "$cross_compiling" != no; then
791218822Sdim  AC_CHECK_TOOL([STRIP], [strip], :)
79238889Sjdpfi
793218822SdimINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
794218822SdimAC_SUBST([INSTALL_STRIP_PROGRAM])])
79538889Sjdp
796218822Sdim# Check how to create a tarball.                            -*- Autoconf -*-
79738889Sjdp
798218822Sdim# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
799218822Sdim#
800218822Sdim# This file is free software; the Free Software Foundation
801218822Sdim# gives unlimited permission to copy and/or distribute it,
802218822Sdim# with or without modifications, as long as this notice is preserved.
803218822Sdim
804218822Sdim# serial 2
805218822Sdim
806218822Sdim# _AM_PROG_TAR(FORMAT)
807218822Sdim# --------------------
808218822Sdim# Check how to create a tarball in format FORMAT.
809218822Sdim# FORMAT should be one of `v7', `ustar', or `pax'.
810218822Sdim#
811218822Sdim# Substitute a variable $(am__tar) that is a command
812218822Sdim# writing to stdout a FORMAT-tarball containing the directory
813218822Sdim# $tardir.
814218822Sdim#     tardir=directory && $(am__tar) > result.tar
815218822Sdim#
816218822Sdim# Substitute a variable $(am__untar) that extract such
817218822Sdim# a tarball read from stdin.
818218822Sdim#     $(am__untar) < result.tar
819218822SdimAC_DEFUN([_AM_PROG_TAR],
820218822Sdim[# Always define AMTAR for backward compatibility.
821218822SdimAM_MISSING_PROG([AMTAR], [tar])
822218822Sdimm4_if([$1], [v7],
823218822Sdim     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
824218822Sdim     [m4_case([$1], [ustar],, [pax],,
825218822Sdim              [m4_fatal([Unknown tar format])])
826218822SdimAC_MSG_CHECKING([how to create a $1 tar archive])
827218822Sdim# Loop over all known methods to create a tar archive until one works.
828218822Sdim_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
829218822Sdim_am_tools=${am_cv_prog_tar_$1-$_am_tools}
830218822Sdim# Do not fold the above two line into one, because Tru64 sh and
831218822Sdim# Solaris sh will not grok spaces in the rhs of `-'.
832218822Sdimfor _am_tool in $_am_tools
833218822Sdimdo
834218822Sdim  case $_am_tool in
835218822Sdim  gnutar)
836218822Sdim    for _am_tar in tar gnutar gtar;
837218822Sdim    do
838218822Sdim      AM_RUN_LOG([$_am_tar --version]) && break
839218822Sdim    done
840218822Sdim    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
841218822Sdim    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
842218822Sdim    am__untar="$_am_tar -xf -"
84338889Sjdp    ;;
844218822Sdim  plaintar)
845218822Sdim    # Must skip GNU tar: if it does not support --format= it doesn't create
846218822Sdim    # ustar tarball either.
847218822Sdim    (tar --version) >/dev/null 2>&1 && continue
848218822Sdim    am__tar='tar chf - "$$tardir"'
849218822Sdim    am__tar_='tar chf - "$tardir"'
850218822Sdim    am__untar='tar xf -'
851218822Sdim    ;;
852218822Sdim  pax)
853218822Sdim    am__tar='pax -L -x $1 -w "$$tardir"'
854218822Sdim    am__tar_='pax -L -x $1 -w "$tardir"'
855218822Sdim    am__untar='pax -r'
856218822Sdim    ;;
857218822Sdim  cpio)
858218822Sdim    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
859218822Sdim    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
860218822Sdim    am__untar='cpio -i -H $1 -d'
861218822Sdim    ;;
862218822Sdim  none)
863218822Sdim    am__tar=false
864218822Sdim    am__tar_=false
865218822Sdim    am__untar=false
866218822Sdim    ;;
86738889Sjdp  esac
86838889Sjdp
869218822Sdim  # If the value was cached, stop now.  We just wanted to have am__tar
870218822Sdim  # and am__untar set.
871218822Sdim  test -n "${am_cv_prog_tar_$1}" && break
87238889Sjdp
873218822Sdim  # tar/untar a dummy directory, and stop if the command works
874218822Sdim  rm -rf conftest.dir
875218822Sdim  mkdir conftest.dir
876218822Sdim  echo GrepMe > conftest.dir/file
877218822Sdim  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
878218822Sdim  rm -rf conftest.dir
879218822Sdim  if test -s conftest.tar; then
880218822Sdim    AM_RUN_LOG([$am__untar <conftest.tar])
881218822Sdim    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
882218822Sdim  fi
883218822Sdimdone
884218822Sdimrm -rf conftest.dir
88538889Sjdp
886218822SdimAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
887218822SdimAC_MSG_RESULT([$am_cv_prog_tar_$1])])
888218822SdimAC_SUBST([am__tar])
889218822SdimAC_SUBST([am__untar])
890218822Sdim]) # _AM_PROG_TAR
89138889Sjdp
892218822Sdimm4_include([../bfd/acinclude.m4])
893218822Sdimm4_include([../bfd/warning.m4])
894218822Sdimm4_include([../config/depstand.m4])
895218822Sdimm4_include([../config/gettext-sister.m4])
896218822Sdimm4_include([../config/iconv.m4])
897218822Sdimm4_include([../config/lead-dot.m4])
898218822Sdimm4_include([../config/lib-ld.m4])
899218822Sdimm4_include([../config/lib-link.m4])
900218822Sdimm4_include([../config/lib-prefix.m4])
901218822Sdimm4_include([../config/nls.m4])
902218822Sdimm4_include([../config/po.m4])
903218822Sdimm4_include([../config/progtest.m4])
904218822Sdimm4_include([../libtool.m4])
905218822Sdimm4_include([../ltoptions.m4])
906218822Sdimm4_include([../ltsugar.m4])
907218822Sdimm4_include([../ltversion.m4])
908