Blame seq/sbiload/aclocal.m4

Packit Service b98cfc
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit Service b98cfc
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# This program is distributed in the hope that it will be useful,
Packit Service b98cfc
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit Service b98cfc
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit Service b98cfc
# PARTICULAR PURPOSE.
Packit Service b98cfc
Packit Service b98cfc
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service b98cfc
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service b98cfc
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit Service b98cfc
[m4_warning([this file was generated for autoconf 2.69.
Packit Service b98cfc
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit Service b98cfc
If you have problems, you may need to regenerate the build system entirely.
Packit Service b98cfc
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit Service b98cfc
Packit Service b98cfc
dnl Configure Paths for Alsa
Packit Service b98cfc
dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
Packit Service b98cfc
dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
Packit Service b98cfc
dnl Jaroslav Kysela <perex@perex.cz>
Packit Service b98cfc
dnl Last modification: $Id: alsa.m4,v 1.24 2004/09/15 18:48:07 tiwai Exp $
Packit Service b98cfc
dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
Packit Service b98cfc
dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
Packit Service b98cfc
dnl enables arguments --with-alsa-prefix=
Packit Service b98cfc
dnl                   --with-alsa-enc-prefix=
Packit Service b98cfc
dnl                   --disable-alsatest
Packit Service b98cfc
dnl
Packit Service b98cfc
dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
Packit Service b98cfc
dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
Packit Service b98cfc
dnl
Packit Service b98cfc
AC_DEFUN([AM_PATH_ALSA],
Packit Service b98cfc
[dnl Save the original CFLAGS, LDFLAGS, and LIBS
Packit Service b98cfc
alsa_save_CFLAGS="$CFLAGS"
Packit Service b98cfc
alsa_save_LDFLAGS="$LDFLAGS"
Packit Service b98cfc
alsa_save_LIBS="$LIBS"
Packit Service b98cfc
alsa_found=yes
Packit Service b98cfc
Packit Service b98cfc
dnl
Packit Service b98cfc
dnl Get the cflags and libraries for alsa
Packit Service b98cfc
dnl
Packit Service b98cfc
AC_ARG_WITH(alsa-prefix,
Packit Service b98cfc
[  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)],
Packit Service b98cfc
[alsa_prefix="$withval"], [alsa_prefix=""])
Packit Service b98cfc
Packit Service b98cfc
AC_ARG_WITH(alsa-inc-prefix,
Packit Service b98cfc
[  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)],
Packit Service b98cfc
[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
Packit Service b98cfc
Packit Service b98cfc
dnl FIXME: this is not yet implemented
Packit Service b98cfc
AC_ARG_ENABLE(alsatest,
Packit Service b98cfc
[  --disable-alsatest      Do not try to compile and run a test Alsa program],
Packit Service b98cfc
[enable_alsatest="$enableval"],
Packit Service b98cfc
[enable_alsatest=yes])
Packit Service b98cfc
Packit Service b98cfc
dnl Add any special include directories
Packit Service b98cfc
AC_MSG_CHECKING(for ALSA CFLAGS)
Packit Service b98cfc
if test "$alsa_inc_prefix" != "" ; then
Packit Service b98cfc
	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
Packit Service b98cfc
	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
Packit Service b98cfc
fi
Packit Service b98cfc
AC_MSG_RESULT($ALSA_CFLAGS)
Packit Service b98cfc
Packit Service b98cfc
dnl add any special lib dirs
Packit Service b98cfc
AC_MSG_CHECKING(for ALSA LDFLAGS)
Packit Service b98cfc
if test "$alsa_prefix" != "" ; then
Packit Service b98cfc
	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
Packit Service b98cfc
	LDFLAGS="$LDFLAGS $ALSA_LIBS"
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
dnl add the alsa library
Packit Service b98cfc
ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
Packit Service b98cfc
LIBS="$ALSA_LIBS $LIBS"
Packit Service b98cfc
AC_MSG_RESULT($ALSA_LIBS)
Packit Service b98cfc
Packit Service b98cfc
dnl Check for a working version of libasound that is of the right version.
Packit Service b98cfc
if test "x$enable_alsatest" = "xyes"; then
Packit Service b98cfc
min_alsa_version=ifelse([$1], ,0.1.1,$1)
Packit Service b98cfc
AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
Packit Service b98cfc
no_alsa=""
Packit Service b98cfc
    alsa_min_major_version=`echo $min_alsa_version | \
Packit Service b98cfc
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
Packit Service b98cfc
    alsa_min_minor_version=`echo $min_alsa_version | \
Packit Service b98cfc
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
Packit Service b98cfc
    alsa_min_micro_version=`echo $min_alsa_version | \
Packit Service b98cfc
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
Packit Service b98cfc
Packit Service b98cfc
AC_LANG_SAVE
Packit Service b98cfc
AC_LANG_C
Packit Service b98cfc
AC_TRY_COMPILE([
Packit Service b98cfc
#include <alsa/asoundlib.h>
Packit Service b98cfc
], [
Packit Service b98cfc
/* ensure backward compatibility */
Packit Service b98cfc
#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
Packit Service b98cfc
#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
Packit Service b98cfc
#endif
Packit Service b98cfc
#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
Packit Service b98cfc
#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
Packit Service b98cfc
#endif
Packit Service b98cfc
#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
Packit Service b98cfc
#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
Packit Service b98cfc
#endif
Packit Service b98cfc
Packit Service b98cfc
#  if(SND_LIB_MAJOR > $alsa_min_major_version)
Packit Service b98cfc
  exit(0);
Packit Service b98cfc
#  else
Packit Service b98cfc
#    if(SND_LIB_MAJOR < $alsa_min_major_version)
Packit Service b98cfc
#       error not present
Packit Service b98cfc
#    endif
Packit Service b98cfc
Packit Service b98cfc
#   if(SND_LIB_MINOR > $alsa_min_minor_version)
Packit Service b98cfc
  exit(0);
Packit Service b98cfc
#   else
Packit Service b98cfc
#     if(SND_LIB_MINOR < $alsa_min_minor_version)
Packit Service b98cfc
#          error not present
Packit Service b98cfc
#      endif
Packit Service b98cfc
Packit Service b98cfc
#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
Packit Service b98cfc
#        error not present
Packit Service b98cfc
#      endif
Packit Service b98cfc
#    endif
Packit Service b98cfc
#  endif
Packit Service b98cfc
exit(0);
Packit Service b98cfc
],
Packit Service b98cfc
  [AC_MSG_RESULT(found.)],
Packit Service b98cfc
  [AC_MSG_RESULT(not present.)
Packit Service b98cfc
   ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
Packit Service b98cfc
   alsa_found=no]
Packit Service b98cfc
)
Packit Service b98cfc
AC_LANG_RESTORE
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
Packit Service b98cfc
if test "x$enable_alsatest" = "xyes"; then
Packit Service b98cfc
AC_CHECK_LIB([asound], [snd_ctl_open],,
Packit Service b98cfc
	[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
Packit Service b98cfc
	 alsa_found=no]
Packit Service b98cfc
)
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
if test "x$alsa_found" = "xyes" ; then
Packit Service b98cfc
   ifelse([$2], , :, [$2])
Packit Service b98cfc
   LIBS=`echo $LIBS | sed 's/-lasound//g'`
Packit Service b98cfc
   LIBS=`echo $LIBS | sed 's/  //'`
Packit Service b98cfc
   LIBS="-lasound $LIBS"
Packit Service b98cfc
fi
Packit Service b98cfc
if test "x$alsa_found" = "xno" ; then
Packit Service b98cfc
   ifelse([$3], , :, [$3])
Packit Service b98cfc
   CFLAGS="$alsa_save_CFLAGS"
Packit Service b98cfc
   LDFLAGS="$alsa_save_LDFLAGS"
Packit Service b98cfc
   LIBS="$alsa_save_LIBS"
Packit Service b98cfc
   ALSA_CFLAGS=""
Packit Service b98cfc
   ALSA_LIBS=""
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
dnl That should be it.  Now just export out symbols:
Packit Service b98cfc
AC_SUBST(ALSA_CFLAGS)
Packit Service b98cfc
AC_SUBST(ALSA_LIBS)
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 8
Packit Service b98cfc
Packit Service b98cfc
# AM_AUTOMAKE_VERSION(VERSION)
Packit Service b98cfc
# ----------------------------
Packit Service b98cfc
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit Service b98cfc
# generated from the m4 files accompanying Automake X.Y.
Packit Service b98cfc
# (This private macro should not be called outside this file.)
Packit Service b98cfc
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit Service b98cfc
[am__api_version='1.12'
Packit Service b98cfc
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit Service b98cfc
dnl require some minimum version.  Point them to the right macro.
Packit Service b98cfc
m4_if([$1], [1.12.2], [],
Packit Service b98cfc
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# _AM_AUTOCONF_VERSION(VERSION)
Packit Service b98cfc
# -----------------------------
Packit Service b98cfc
# aclocal traces this macro to find the Autoconf version.
Packit Service b98cfc
# This is a private macro too.  Using m4_define simplifies
Packit Service b98cfc
# the logic in aclocal, which can simply ignore this definition.
Packit Service b98cfc
m4_define([_AM_AUTOCONF_VERSION], [])
Packit Service b98cfc
Packit Service b98cfc
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit Service b98cfc
# -------------------------------
Packit Service b98cfc
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit Service b98cfc
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit Service b98cfc
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit Service b98cfc
[AM_AUTOMAKE_VERSION([1.12.2])dnl
Packit Service b98cfc
m4_ifndef([AC_AUTOCONF_VERSION],
Packit Service b98cfc
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit Service b98cfc
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit Service b98cfc
Packit Service b98cfc
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 2
Packit Service b98cfc
Packit Service b98cfc
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit Service b98cfc
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit Service b98cfc
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit Service b98cfc
#
Packit Service b98cfc
# Of course, Automake must honor this variable whenever it calls a
Packit Service b98cfc
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit Service b98cfc
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit Service b98cfc
# depending on how configure is run.  This is pretty annoying, since
Packit Service b98cfc
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit Service b98cfc
# source directory, any form will work fine, but in subdirectories a
Packit Service b98cfc
# relative path needs to be adjusted first.
Packit Service b98cfc
#
Packit Service b98cfc
# $ac_aux_dir/missing
Packit Service b98cfc
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit Service b98cfc
# $top_srcdir/$ac_aux_dir/missing
Packit Service b98cfc
#    fails if $ac_aux_dir is absolute,
Packit Service b98cfc
#    fails when called from a subdirectory in a VPATH build with
Packit Service b98cfc
#          a relative $ac_aux_dir
Packit Service b98cfc
#
Packit Service b98cfc
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit Service b98cfc
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit Service b98cfc
# harmless because $srcdir is '.', but things will broke when you
Packit Service b98cfc
# start a VPATH build or use an absolute $srcdir.
Packit Service b98cfc
#
Packit Service b98cfc
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit Service b98cfc
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit Service b98cfc
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit Service b98cfc
# and then we would define $MISSING as
Packit Service b98cfc
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit Service b98cfc
# This will work as long as MISSING is not called from configure, because
Packit Service b98cfc
# unfortunately $(top_srcdir) has no meaning in configure.
Packit Service b98cfc
# However there are other variables, like CC, which are often used in
Packit Service b98cfc
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit Service b98cfc
#
Packit Service b98cfc
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit Service b98cfc
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit Service b98cfc
# configured tree to be moved without reconfiguration.
Packit Service b98cfc
Packit Service b98cfc
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit Service b98cfc
[dnl Rely on autoconf to set up CDPATH properly.
Packit Service b98cfc
AC_PREREQ([2.50])dnl
Packit Service b98cfc
# expand $ac_aux_dir to an absolute path
Packit Service b98cfc
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 10
Packit Service b98cfc
Packit Service b98cfc
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit Service b98cfc
# -------------------------------------
Packit Service b98cfc
# Define a conditional.
Packit Service b98cfc
AC_DEFUN([AM_CONDITIONAL],
Packit Service b98cfc
[AC_PREREQ([2.52])dnl
Packit Service b98cfc
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit Service b98cfc
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit Service b98cfc
AC_SUBST([$1_TRUE])dnl
Packit Service b98cfc
AC_SUBST([$1_FALSE])dnl
Packit Service b98cfc
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit Service b98cfc
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit Service b98cfc
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit Service b98cfc
if $2; then
Packit Service b98cfc
  $1_TRUE=
Packit Service b98cfc
  $1_FALSE='#'
Packit Service b98cfc
else
Packit Service b98cfc
  $1_TRUE='#'
Packit Service b98cfc
  $1_FALSE=
Packit Service b98cfc
fi
Packit Service b98cfc
AC_CONFIG_COMMANDS_PRE(
Packit Service b98cfc
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit Service b98cfc
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit Service b98cfc
Usually this means the macro was only invoked conditionally.]])
Packit Service b98cfc
fi])])
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 17
Packit Service b98cfc
Packit Service b98cfc
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit Service b98cfc
# written in clear, in which case automake, when reading aclocal.m4,
Packit Service b98cfc
# will think it sees a *use*, and therefore will trigger all it's
Packit Service b98cfc
# C support machinery.  Also note that it means that autoscan, seeing
Packit Service b98cfc
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# _AM_DEPENDENCIES(NAME)
Packit Service b98cfc
# ----------------------
Packit Service b98cfc
# See how the compiler implements dependency checking.
Packit Service b98cfc
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit Service b98cfc
# We try a few techniques and use that to set a single cache variable.
Packit Service b98cfc
#
Packit Service b98cfc
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit Service b98cfc
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit Service b98cfc
# dependency, and given that the user is not expected to run this macro,
Packit Service b98cfc
# just rely on AC_PROG_CC.
Packit Service b98cfc
AC_DEFUN([_AM_DEPENDENCIES],
Packit Service b98cfc
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit Service b98cfc
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit Service b98cfc
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit Service b98cfc
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit Service b98cfc
Packit Service b98cfc
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit Service b98cfc
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit Service b98cfc
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit Service b98cfc
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit Service b98cfc
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit Service b98cfc
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit Service b98cfc
                    [depcc="$$1"   am_compiler_list=])
Packit Service b98cfc
Packit Service b98cfc
AC_CACHE_CHECK([dependency style of $depcc],
Packit Service b98cfc
               [am_cv_$1_dependencies_compiler_type],
Packit Service b98cfc
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit Service b98cfc
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit Service b98cfc
  # making bogus files that we don't know about and never remove.  For
Packit Service b98cfc
  # instance it was reported that on HP-UX the gcc test will end up
Packit Service b98cfc
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit Service b98cfc
  # in D".
Packit Service b98cfc
  rm -rf conftest.dir
Packit Service b98cfc
  mkdir conftest.dir
Packit Service b98cfc
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit Service b98cfc
  # using a relative directory.
Packit Service b98cfc
  cp "$am_depcomp" conftest.dir
Packit Service b98cfc
  cd conftest.dir
Packit Service b98cfc
  # We will build objects and dependencies in a subdirectory because
Packit Service b98cfc
  # it helps to detect inapplicable dependency modes.  For instance
Packit Service b98cfc
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit Service b98cfc
  # side effect of compilation, but ICC will put the dependencies in
Packit Service b98cfc
  # the current directory while Tru64 will put them in the object
Packit Service b98cfc
  # directory.
Packit Service b98cfc
  mkdir sub
Packit Service b98cfc
Packit Service b98cfc
  am_cv_$1_dependencies_compiler_type=none
Packit Service b98cfc
  if test "$am_compiler_list" = ""; then
Packit Service b98cfc
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit Service b98cfc
  fi
Packit Service b98cfc
  am__universal=false
Packit Service b98cfc
  m4_case([$1], [CC],
Packit Service b98cfc
    [case " $depcc " in #(
Packit Service b98cfc
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit Service b98cfc
     esac],
Packit Service b98cfc
    [CXX],
Packit Service b98cfc
    [case " $depcc " in #(
Packit Service b98cfc
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit Service b98cfc
     esac])
Packit Service b98cfc
Packit Service b98cfc
  for depmode in $am_compiler_list; do
Packit Service b98cfc
    # Setup a source with many dependencies, because some compilers
Packit Service b98cfc
    # like to wrap large dependency lists on column 80 (with \), and
Packit Service b98cfc
    # we should not choose a depcomp mode which is confused by this.
Packit Service b98cfc
    #
Packit Service b98cfc
    # We need to recreate these files for each test, as the compiler may
Packit Service b98cfc
    # overwrite some of them when testing with obscure command lines.
Packit Service b98cfc
    # This happens at least with the AIX C compiler.
Packit Service b98cfc
    : > sub/conftest.c
Packit Service b98cfc
    for i in 1 2 3 4 5 6; do
Packit Service b98cfc
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit Service b98cfc
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit Service b98cfc
      # Solaris 10 /bin/sh.
Packit Service b98cfc
      echo '/* dummy */' > sub/conftst$i.h
Packit Service b98cfc
    done
Packit Service b98cfc
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit Service b98cfc
Packit Service b98cfc
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit Service b98cfc
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit Service b98cfc
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit Service b98cfc
    # versions had trouble with output in subdirs.
Packit Service b98cfc
    am__obj=sub/conftest.${OBJEXT-o}
Packit Service b98cfc
    am__minus_obj="-o $am__obj"
Packit Service b98cfc
    case $depmode in
Packit Service b98cfc
    gcc)
Packit Service b98cfc
      # This depmode causes a compiler race in universal mode.
Packit Service b98cfc
      test "$am__universal" = false || continue
Packit Service b98cfc
      ;;
Packit Service b98cfc
    nosideeffect)
Packit Service b98cfc
      # After this tag, mechanisms are not by side-effect, so they'll
Packit Service b98cfc
      # only be used when explicitly requested.
Packit Service b98cfc
      if test "x$enable_dependency_tracking" = xyes; then
Packit Service b98cfc
	continue
Packit Service b98cfc
      else
Packit Service b98cfc
	break
Packit Service b98cfc
      fi
Packit Service b98cfc
      ;;
Packit Service b98cfc
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit Service b98cfc
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit Service b98cfc
      # not run yet.  These depmodes are late enough in the game, and
Packit Service b98cfc
      # so weak that their functioning should not be impacted.
Packit Service b98cfc
      am__obj=conftest.${OBJEXT-o}
Packit Service b98cfc
      am__minus_obj=
Packit Service b98cfc
      ;;
Packit Service b98cfc
    none) break ;;
Packit Service b98cfc
    esac
Packit Service b98cfc
    if depmode=$depmode \
Packit Service b98cfc
       source=sub/conftest.c object=$am__obj \
Packit Service b98cfc
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit Service b98cfc
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit Service b98cfc
         >/dev/null 2>conftest.err &&
Packit Service b98cfc
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit Service b98cfc
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit Service b98cfc
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit Service b98cfc
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit Service b98cfc
      # icc doesn't choke on unknown options, it will just issue warnings
Packit Service b98cfc
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit Service b98cfc
      # that says an option was ignored or not supported.
Packit Service b98cfc
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit Service b98cfc
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit Service b98cfc
      # The diagnosis changed in icc 8.0:
Packit Service b98cfc
      #   icc: Command line remark: option '-MP' not supported
Packit Service b98cfc
      if (grep 'ignoring option' conftest.err ||
Packit Service b98cfc
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit Service b98cfc
        am_cv_$1_dependencies_compiler_type=$depmode
Packit Service b98cfc
        break
Packit Service b98cfc
      fi
Packit Service b98cfc
    fi
Packit Service b98cfc
  done
Packit Service b98cfc
Packit Service b98cfc
  cd ..
Packit Service b98cfc
  rm -rf conftest.dir
Packit Service b98cfc
else
Packit Service b98cfc
  am_cv_$1_dependencies_compiler_type=none
Packit Service b98cfc
fi
Packit Service b98cfc
])
Packit Service b98cfc
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit Service b98cfc
AM_CONDITIONAL([am__fastdep$1], [
Packit Service b98cfc
  test "x$enable_dependency_tracking" != xno \
Packit Service b98cfc
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# AM_SET_DEPDIR
Packit Service b98cfc
# -------------
Packit Service b98cfc
# Choose a directory name for dependency files.
Packit Service b98cfc
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit Service b98cfc
AC_DEFUN([AM_SET_DEPDIR],
Packit Service b98cfc
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit Service b98cfc
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# AM_DEP_TRACK
Packit Service b98cfc
# ------------
Packit Service b98cfc
AC_DEFUN([AM_DEP_TRACK],
Packit Service b98cfc
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit Service b98cfc
AS_HELP_STRING(
Packit Service b98cfc
  [--enable-dependency-tracking],
Packit Service b98cfc
  [do not reject slow dependency extractors])
Packit Service b98cfc
AS_HELP_STRING(
Packit Service b98cfc
  [--disable-dependency-tracking],
Packit Service b98cfc
  [speeds up one-time build])])
Packit Service b98cfc
if test "x$enable_dependency_tracking" != xno; then
Packit Service b98cfc
  am_depcomp="$ac_aux_dir/depcomp"
Packit Service b98cfc
  AMDEPBACKSLASH='\'
Packit Service b98cfc
  am__nodep='_no'
Packit Service b98cfc
fi
Packit Service b98cfc
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit Service b98cfc
AC_SUBST([AMDEPBACKSLASH])dnl
Packit Service b98cfc
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit Service b98cfc
AC_SUBST([am__nodep])dnl
Packit Service b98cfc
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 6
Packit Service b98cfc
Packit Service b98cfc
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service b98cfc
# ------------------------------
Packit Service b98cfc
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service b98cfc
[{
Packit Service b98cfc
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
Packit Service b98cfc
  # are listed without --file.  Let's play safe and only enable the eval
Packit Service b98cfc
  # if we detect the quoting.
Packit Service b98cfc
  case $CONFIG_FILES in
Packit Service b98cfc
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit Service b98cfc
  *)   set x $CONFIG_FILES ;;
Packit Service b98cfc
  esac
Packit Service b98cfc
  shift
Packit Service b98cfc
  for mf
Packit Service b98cfc
  do
Packit Service b98cfc
    # Strip MF so we end up with the name of the file.
Packit Service b98cfc
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit Service b98cfc
    # Check whether this is an Automake generated Makefile or not.
Packit Service b98cfc
    # We used to match only the files named 'Makefile.in', but
Packit Service b98cfc
    # some people rename them; so instead we look at the file content.
Packit Service b98cfc
    # Grep'ing the first line is not enough: some people post-process
Packit Service b98cfc
    # each Makefile.in and add a new line on top of each file to say so.
Packit Service b98cfc
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit Service b98cfc
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit Service b98cfc
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit Service b98cfc
      dirpart=`AS_DIRNAME("$mf")`
Packit Service b98cfc
    else
Packit Service b98cfc
      continue
Packit Service b98cfc
    fi
Packit Service b98cfc
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit Service b98cfc
    # from the Makefile without running 'make'.
Packit Service b98cfc
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit Service b98cfc
    test -z "$DEPDIR" && continue
Packit Service b98cfc
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit Service b98cfc
    test -z "am__include" && continue
Packit Service b98cfc
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit Service b98cfc
    # Find all dependency output files, they are included files with
Packit Service b98cfc
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit Service b98cfc
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit Service b98cfc
    # expansion.
Packit Service b98cfc
    for file in `sed -n "
Packit Service b98cfc
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit Service b98cfc
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit Service b98cfc
      # Make sure the directory exists.
Packit Service b98cfc
      test -f "$dirpart/$file" && continue
Packit Service b98cfc
      fdir=`AS_DIRNAME(["$file"])`
Packit Service b98cfc
      AS_MKDIR_P([$dirpart/$fdir])
Packit Service b98cfc
      # echo "creating $dirpart/$file"
Packit Service b98cfc
      echo '# dummy' > "$dirpart/$file"
Packit Service b98cfc
    done
Packit Service b98cfc
  done
Packit Service b98cfc
}
Packit Service b98cfc
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit Service b98cfc
# -----------------------------
Packit Service b98cfc
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit Service b98cfc
#
Packit Service b98cfc
# This code is only required when automatic dependency tracking
Packit Service b98cfc
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit Service b98cfc
# need in order to bootstrap the dependency handling code.
Packit Service b98cfc
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service b98cfc
[AC_CONFIG_COMMANDS([depfiles],
Packit Service b98cfc
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit Service b98cfc
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# Do all the work for Automake.                             -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 19
Packit Service b98cfc
Packit Service b98cfc
# This macro actually does too much.  Some checks are only needed if
Packit Service b98cfc
# your package does certain things.  But this isn't really a big deal.
Packit Service b98cfc
Packit Service b98cfc
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit Service b98cfc
# AM_INIT_AUTOMAKE([OPTIONS])
Packit Service b98cfc
# -----------------------------------------------
Packit Service b98cfc
# The call with PACKAGE and VERSION arguments is the old style
Packit Service b98cfc
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit Service b98cfc
# and VERSION should now be passed to AC_INIT and removed from
Packit Service b98cfc
# the call to AM_INIT_AUTOMAKE.
Packit Service b98cfc
# We support both call styles for the transition.  After
Packit Service b98cfc
# the next Automake release, Autoconf can make the AC_INIT
Packit Service b98cfc
# arguments mandatory, and then we can depend on a new Autoconf
Packit Service b98cfc
# release and drop the old call support.
Packit Service b98cfc
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit Service b98cfc
[AC_PREREQ([2.62])dnl
Packit Service b98cfc
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit Service b98cfc
dnl the ones we care about.
Packit Service b98cfc
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit Service b98cfc
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit Service b98cfc
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit Service b98cfc
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit Service b98cfc
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit Service b98cfc
  # is not polluted with repeated "-I."
Packit Service b98cfc
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit Service b98cfc
  # test to see if srcdir already configured
Packit Service b98cfc
  if test -f $srcdir/config.status; then
Packit Service b98cfc
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit Service b98cfc
  fi
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
# test whether we have cygpath
Packit Service b98cfc
if test -z "$CYGPATH_W"; then
Packit Service b98cfc
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit Service b98cfc
    CYGPATH_W='cygpath -w'
Packit Service b98cfc
  else
Packit Service b98cfc
    CYGPATH_W=echo
Packit Service b98cfc
  fi
Packit Service b98cfc
fi
Packit Service b98cfc
AC_SUBST([CYGPATH_W])
Packit Service b98cfc
Packit Service b98cfc
# Define the identity of the package.
Packit Service b98cfc
dnl Distinguish between old-style and new-style calls.
Packit Service b98cfc
m4_ifval([$2],
Packit Service b98cfc
[AC_DIAGNOSE([obsolete],
Packit Service b98cfc
[$0: two- and three-arguments forms are deprecated.  For more info, see:
Packit Service b98cfc
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
Packit Service b98cfc
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit Service b98cfc
 AC_SUBST([PACKAGE], [$1])dnl
Packit Service b98cfc
 AC_SUBST([VERSION], [$2])],
Packit Service b98cfc
[_AM_SET_OPTIONS([$1])dnl
Packit Service b98cfc
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit Service b98cfc
m4_if(
Packit Service b98cfc
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit Service b98cfc
  [ok:ok],,
Packit Service b98cfc
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit Service b98cfc
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit Service b98cfc
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit Service b98cfc
Packit Service b98cfc
_AM_IF_OPTION([no-define],,
Packit Service b98cfc
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit Service b98cfc
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit Service b98cfc
Packit Service b98cfc
# Some tools Automake needs.
Packit Service b98cfc
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit Service b98cfc
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit Service b98cfc
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit Service b98cfc
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit Service b98cfc
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit Service b98cfc
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit Service b98cfc
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit Service b98cfc
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service b98cfc
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit Service b98cfc
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit Service b98cfc
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit Service b98cfc
# dies out for good.  For more background, see:
Packit Service b98cfc
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit Service b98cfc
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit Service b98cfc
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit Service b98cfc
# We need awk for the "check" target.  The system "awk" is bad on
Packit Service b98cfc
# some platforms.
Packit Service b98cfc
AC_REQUIRE([AC_PROG_AWK])dnl
Packit Service b98cfc
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit Service b98cfc
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit Service b98cfc
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit Service b98cfc
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit Service b98cfc
			     [_AM_PROG_TAR([v7])])])
Packit Service b98cfc
_AM_IF_OPTION([no-dependencies],,
Packit Service b98cfc
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit Service b98cfc
		  [_AM_DEPENDENCIES([CC])],
Packit Service b98cfc
		  [m4_define([AC_PROG_CC],
Packit Service b98cfc
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit Service b98cfc
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit Service b98cfc
		  [_AM_DEPENDENCIES([CXX])],
Packit Service b98cfc
		  [m4_define([AC_PROG_CXX],
Packit Service b98cfc
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit Service b98cfc
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit Service b98cfc
		  [_AM_DEPENDENCIES([OBJC])],
Packit Service b98cfc
		  [m4_define([AC_PROG_OBJC],
Packit Service b98cfc
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit Service b98cfc
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
Packit Service b98cfc
dnl but we still cater to Autoconf 2.62.
Packit Service b98cfc
m4_ifdef([AC_PROG_OBJCXX],
Packit Service b98cfc
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit Service b98cfc
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit Service b98cfc
		  [m4_define([AC_PROG_OBJCXX],
Packit Service b98cfc
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
Packit Service b98cfc
])
Packit Service b98cfc
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
Packit Service b98cfc
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
Packit Service b98cfc
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
Packit Service b98cfc
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit Service b98cfc
AC_CONFIG_COMMANDS_PRE(dnl
Packit Service b98cfc
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit Service b98cfc
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit Service b98cfc
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit Service b98cfc
dnl mangled by Autoconf and run in a shell conditional statement.
Packit Service b98cfc
m4_define([_AC_COMPILER_EXEEXT],
Packit Service b98cfc
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# When config.status generates a header, we must update the stamp-h file.
Packit Service b98cfc
# This file resides in the same directory as the config header
Packit Service b98cfc
# that is generated.  The stamp files are numbered to have different names.
Packit Service b98cfc
Packit Service b98cfc
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit Service b98cfc
# loop where config.status creates the headers, so we can generate
Packit Service b98cfc
# our stamp files there.
Packit Service b98cfc
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit Service b98cfc
[# Compute $1's index in $config_headers.
Packit Service b98cfc
_am_arg=$1
Packit Service b98cfc
_am_stamp_count=1
Packit Service b98cfc
for _am_header in $config_headers :; do
Packit Service b98cfc
  case $_am_header in
Packit Service b98cfc
    $_am_arg | $_am_arg:* )
Packit Service b98cfc
      break ;;
Packit Service b98cfc
    * )
Packit Service b98cfc
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit Service b98cfc
  esac
Packit Service b98cfc
done
Packit Service b98cfc
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 8
Packit Service b98cfc
Packit Service b98cfc
# AM_PROG_INSTALL_SH
Packit Service b98cfc
# ------------------
Packit Service b98cfc
# Define $install_sh.
Packit Service b98cfc
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit Service b98cfc
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service b98cfc
if test x"${install_sh}" != xset; then
Packit Service b98cfc
  case $am_aux_dir in
Packit Service b98cfc
  *\ * | *\	*)
Packit Service b98cfc
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit Service b98cfc
  *)
Packit Service b98cfc
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit Service b98cfc
  esac
Packit Service b98cfc
fi
Packit Service b98cfc
AC_SUBST([install_sh])])
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 2
Packit Service b98cfc
Packit Service b98cfc
# Check whether the underlying file-system supports filenames
Packit Service b98cfc
# with a leading dot.  For instance MS-DOS doesn't.
Packit Service b98cfc
AC_DEFUN([AM_SET_LEADING_DOT],
Packit Service b98cfc
[rm -rf .tst 2>/dev/null
Packit Service b98cfc
mkdir .tst 2>/dev/null
Packit Service b98cfc
if test -d .tst; then
Packit Service b98cfc
  am__leading_dot=.
Packit Service b98cfc
else
Packit Service b98cfc
  am__leading_dot=_
Packit Service b98cfc
fi
Packit Service b98cfc
rmdir .tst 2>/dev/null
Packit Service b98cfc
AC_SUBST([am__leading_dot])])
Packit Service b98cfc
Packit Service b98cfc
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 5
Packit Service b98cfc
Packit Service b98cfc
# AM_MAKE_INCLUDE()
Packit Service b98cfc
# -----------------
Packit Service b98cfc
# Check to see how make treats includes.
Packit Service b98cfc
AC_DEFUN([AM_MAKE_INCLUDE],
Packit Service b98cfc
[am_make=${MAKE-make}
Packit Service b98cfc
cat > confinc << 'END'
Packit Service b98cfc
am__doit:
Packit Service b98cfc
	@echo this is the am__doit target
Packit Service b98cfc
.PHONY: am__doit
Packit Service b98cfc
END
Packit Service b98cfc
# If we don't find an include directive, just comment out the code.
Packit Service b98cfc
AC_MSG_CHECKING([for style of include used by $am_make])
Packit Service b98cfc
am__include="#"
Packit Service b98cfc
am__quote=
Packit Service b98cfc
_am_result=none
Packit Service b98cfc
# First try GNU make style include.
Packit Service b98cfc
echo "include confinc" > confmf
Packit Service b98cfc
# Ignore all kinds of additional output from 'make'.
Packit Service b98cfc
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit Service b98cfc
*the\ am__doit\ target*)
Packit Service b98cfc
  am__include=include
Packit Service b98cfc
  am__quote=
Packit Service b98cfc
  _am_result=GNU
Packit Service b98cfc
  ;;
Packit Service b98cfc
esac
Packit Service b98cfc
# Now try BSD make style include.
Packit Service b98cfc
if test "$am__include" = "#"; then
Packit Service b98cfc
   echo '.include "confinc"' > confmf
Packit Service b98cfc
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit Service b98cfc
   *the\ am__doit\ target*)
Packit Service b98cfc
     am__include=.include
Packit Service b98cfc
     am__quote="\""
Packit Service b98cfc
     _am_result=BSD
Packit Service b98cfc
     ;;
Packit Service b98cfc
   esac
Packit Service b98cfc
fi
Packit Service b98cfc
AC_SUBST([am__include])
Packit Service b98cfc
AC_SUBST([am__quote])
Packit Service b98cfc
AC_MSG_RESULT([$_am_result])
Packit Service b98cfc
rm -f confinc confmf
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 7
Packit Service b98cfc
Packit Service b98cfc
# AM_MISSING_PROG(NAME, PROGRAM)
Packit Service b98cfc
# ------------------------------
Packit Service b98cfc
AC_DEFUN([AM_MISSING_PROG],
Packit Service b98cfc
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit Service b98cfc
$1=${$1-"${am_missing_run}$2"}
Packit Service b98cfc
AC_SUBST($1)])
Packit Service b98cfc
Packit Service b98cfc
Packit Service b98cfc
# AM_MISSING_HAS_RUN
Packit Service b98cfc
# ------------------
Packit Service b98cfc
# Define MISSING if not defined so far and test if it supports --run.
Packit Service b98cfc
# If it does, set am_missing_run to use it, otherwise, to nothing.
Packit Service b98cfc
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit Service b98cfc
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit Service b98cfc
AC_REQUIRE_AUX_FILE([missing])dnl
Packit Service b98cfc
if test x"${MISSING+set}" != xset; then
Packit Service b98cfc
  case $am_aux_dir in
Packit Service b98cfc
  *\ * | *\	*)
Packit Service b98cfc
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit Service b98cfc
  *)
Packit Service b98cfc
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit Service b98cfc
  esac
Packit Service b98cfc
fi
Packit Service b98cfc
# Use eval to expand $SHELL
Packit Service b98cfc
if eval "$MISSING --run true"; then
Packit Service b98cfc
  am_missing_run="$MISSING --run "
Packit Service b98cfc
else
Packit Service b98cfc
  am_missing_run=
Packit Service b98cfc
  AC_MSG_WARN(['missing' script is too old or missing])
Packit Service b98cfc
fi
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# Helper functions for option handling.                     -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 6
Packit Service b98cfc
Packit Service b98cfc
# _AM_MANGLE_OPTION(NAME)
Packit Service b98cfc
# -----------------------
Packit Service b98cfc
AC_DEFUN([_AM_MANGLE_OPTION],
Packit Service b98cfc
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit Service b98cfc
Packit Service b98cfc
# _AM_SET_OPTION(NAME)
Packit Service b98cfc
# --------------------
Packit Service b98cfc
# Set option NAME.  Presently that only means defining a flag for this option.
Packit Service b98cfc
AC_DEFUN([_AM_SET_OPTION],
Packit Service b98cfc
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit Service b98cfc
Packit Service b98cfc
# _AM_SET_OPTIONS(OPTIONS)
Packit Service b98cfc
# ------------------------
Packit Service b98cfc
# OPTIONS is a space-separated list of Automake options.
Packit Service b98cfc
AC_DEFUN([_AM_SET_OPTIONS],
Packit Service b98cfc
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit Service b98cfc
Packit Service b98cfc
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit Service b98cfc
# -------------------------------------------
Packit Service b98cfc
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit Service b98cfc
AC_DEFUN([_AM_IF_OPTION],
Packit Service b98cfc
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit Service b98cfc
Packit Service b98cfc
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 9
Packit Service b98cfc
Packit Service b98cfc
# AM_SANITY_CHECK
Packit Service b98cfc
# ---------------
Packit Service b98cfc
AC_DEFUN([AM_SANITY_CHECK],
Packit Service b98cfc
[AC_MSG_CHECKING([whether build environment is sane])
Packit Service b98cfc
# Reject unsafe characters in $srcdir or the absolute working directory
Packit Service b98cfc
# name.  Accept space and tab only in the latter.
Packit Service b98cfc
am_lf='
Packit Service b98cfc
'
Packit Service b98cfc
case `pwd` in
Packit Service b98cfc
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit Service b98cfc
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit Service b98cfc
esac
Packit Service b98cfc
case $srcdir in
Packit Service b98cfc
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit Service b98cfc
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit Service b98cfc
esac
Packit Service b98cfc
Packit Service b98cfc
# Do 'set' in a subshell so we don't clobber the current shell's
Packit Service b98cfc
# arguments.  Must try -L first in case configure is actually a
Packit Service b98cfc
# symlink; some systems play weird games with the mod time of symlinks
Packit Service b98cfc
# (eg FreeBSD returns the mod time of the symlink's containing
Packit Service b98cfc
# directory).
Packit Service b98cfc
if (
Packit Service b98cfc
   am_has_slept=no
Packit Service b98cfc
   for am_try in 1 2; do
Packit Service b98cfc
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit Service b98cfc
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit Service b98cfc
     if test "$[*]" = "X"; then
Packit Service b98cfc
	# -L didn't work.
Packit Service b98cfc
	set X `ls -t "$srcdir/configure" conftest.file`
Packit Service b98cfc
     fi
Packit Service b98cfc
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit Service b98cfc
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit Service b98cfc
Packit Service b98cfc
	# If neither matched, then we have a broken ls.  This can happen
Packit Service b98cfc
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit Service b98cfc
	# broken ls alias from the environment.  This has actually
Packit Service b98cfc
	# happened.  Such a system could not be considered "sane".
Packit Service b98cfc
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit Service b98cfc
  alias in your environment])
Packit Service b98cfc
     fi
Packit Service b98cfc
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit Service b98cfc
       break
Packit Service b98cfc
     fi
Packit Service b98cfc
     # Just in case.
Packit Service b98cfc
     sleep 1
Packit Service b98cfc
     am_has_slept=yes
Packit Service b98cfc
   done
Packit Service b98cfc
   test "$[2]" = conftest.file
Packit Service b98cfc
   )
Packit Service b98cfc
then
Packit Service b98cfc
   # Ok.
Packit Service b98cfc
   :
Packit Service b98cfc
else
Packit Service b98cfc
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit Service b98cfc
Check your system clock])
Packit Service b98cfc
fi
Packit Service b98cfc
AC_MSG_RESULT([yes])
Packit Service b98cfc
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit Service b98cfc
# generated files are strictly newer.
Packit Service b98cfc
am_sleep_pid=
Packit Service b98cfc
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit Service b98cfc
  ( sleep 1 ) &
Packit Service b98cfc
  am_sleep_pid=$!
Packit Service b98cfc
fi
Packit Service b98cfc
AC_CONFIG_COMMANDS_PRE(
Packit Service b98cfc
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit Service b98cfc
   if test -n "$am_sleep_pid"; then
Packit Service b98cfc
     # Hide warnings about reused PIDs.
Packit Service b98cfc
     wait $am_sleep_pid 2>/dev/null
Packit Service b98cfc
   fi
Packit Service b98cfc
   AC_MSG_RESULT([done])])
Packit Service b98cfc
rm -f conftest.file
Packit Service b98cfc
])
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 2
Packit Service b98cfc
Packit Service b98cfc
# AM_PROG_INSTALL_STRIP
Packit Service b98cfc
# ---------------------
Packit Service b98cfc
# One issue with vendor 'install' (even GNU) is that you can't
Packit Service b98cfc
# specify the program used to strip binaries.  This is especially
Packit Service b98cfc
# annoying in cross-compiling environments, where the build's strip
Packit Service b98cfc
# is unlikely to handle the host's binaries.
Packit Service b98cfc
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit Service b98cfc
# always use install-sh in "make install-strip", and initialize
Packit Service b98cfc
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit Service b98cfc
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit Service b98cfc
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit Service b98cfc
# Installed binaries are usually stripped using 'strip' when the user
Packit Service b98cfc
# run "make install-strip".  However 'strip' might not be the right
Packit Service b98cfc
# tool to use in cross-compilation environments, therefore Automake
Packit Service b98cfc
# will honor the 'STRIP' environment variable to overrule this program.
Packit Service b98cfc
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit Service b98cfc
if test "$cross_compiling" != no; then
Packit Service b98cfc
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit Service b98cfc
fi
Packit Service b98cfc
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit Service b98cfc
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 3
Packit Service b98cfc
Packit Service b98cfc
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit Service b98cfc
# ---------------------------
Packit Service b98cfc
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit Service b98cfc
# This macro is traced by Automake.
Packit Service b98cfc
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit Service b98cfc
Packit Service b98cfc
# AM_SUBST_NOTMAKE(VARIABLE)
Packit Service b98cfc
# --------------------------
Packit Service b98cfc
# Public sister of _AM_SUBST_NOTMAKE.
Packit Service b98cfc
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit Service b98cfc
Packit Service b98cfc
# Check how to create a tarball.                            -*- Autoconf -*-
Packit Service b98cfc
Packit Service b98cfc
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
Packit Service b98cfc
#
Packit Service b98cfc
# This file is free software; the Free Software Foundation
Packit Service b98cfc
# gives unlimited permission to copy and/or distribute it,
Packit Service b98cfc
# with or without modifications, as long as this notice is preserved.
Packit Service b98cfc
Packit Service b98cfc
# serial 3
Packit Service b98cfc
Packit Service b98cfc
# _AM_PROG_TAR(FORMAT)
Packit Service b98cfc
# --------------------
Packit Service b98cfc
# Check how to create a tarball in format FORMAT.
Packit Service b98cfc
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit Service b98cfc
#
Packit Service b98cfc
# Substitute a variable $(am__tar) that is a command
Packit Service b98cfc
# writing to stdout a FORMAT-tarball containing the directory
Packit Service b98cfc
# $tardir.
Packit Service b98cfc
#     tardir=directory && $(am__tar) > result.tar
Packit Service b98cfc
#
Packit Service b98cfc
# Substitute a variable $(am__untar) that extract such
Packit Service b98cfc
# a tarball read from stdin.
Packit Service b98cfc
#     $(am__untar) < result.tar
Packit Service b98cfc
AC_DEFUN([_AM_PROG_TAR],
Packit Service b98cfc
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit Service b98cfc
# in the wild :-(  We should find a proper way to deprecate it ...
Packit Service b98cfc
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit Service b98cfc
m4_if([$1], [v7],
Packit Service b98cfc
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit Service b98cfc
     [m4_case([$1], [ustar],, [pax],,
Packit Service b98cfc
              [m4_fatal([Unknown tar format])])
Packit Service b98cfc
AC_MSG_CHECKING([how to create a $1 tar archive])
Packit Service b98cfc
# Loop over all known methods to create a tar archive until one works.
Packit Service b98cfc
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit Service b98cfc
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit Service b98cfc
# Do not fold the above two line into one, because Tru64 sh and
Packit Service b98cfc
# Solaris sh will not grok spaces in the rhs of '-'.
Packit Service b98cfc
for _am_tool in $_am_tools
Packit Service b98cfc
do
Packit Service b98cfc
  case $_am_tool in
Packit Service b98cfc
  gnutar)
Packit Service b98cfc
    for _am_tar in tar gnutar gtar;
Packit Service b98cfc
    do
Packit Service b98cfc
      AM_RUN_LOG([$_am_tar --version]) && break
Packit Service b98cfc
    done
Packit Service b98cfc
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit Service b98cfc
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit Service b98cfc
    am__untar="$_am_tar -xf -"
Packit Service b98cfc
    ;;
Packit Service b98cfc
  plaintar)
Packit Service b98cfc
    # Must skip GNU tar: if it does not support --format= it doesn't create
Packit Service b98cfc
    # ustar tarball either.
Packit Service b98cfc
    (tar --version) >/dev/null 2>&1 && continue
Packit Service b98cfc
    am__tar='tar chf - "$$tardir"'
Packit Service b98cfc
    am__tar_='tar chf - "$tardir"'
Packit Service b98cfc
    am__untar='tar xf -'
Packit Service b98cfc
    ;;
Packit Service b98cfc
  pax)
Packit Service b98cfc
    am__tar='pax -L -x $1 -w "$$tardir"'
Packit Service b98cfc
    am__tar_='pax -L -x $1 -w "$tardir"'
Packit Service b98cfc
    am__untar='pax -r'
Packit Service b98cfc
    ;;
Packit Service b98cfc
  cpio)
Packit Service b98cfc
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit Service b98cfc
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit Service b98cfc
    am__untar='cpio -i -H $1 -d'
Packit Service b98cfc
    ;;
Packit Service b98cfc
  none)
Packit Service b98cfc
    am__tar=false
Packit Service b98cfc
    am__tar_=false
Packit Service b98cfc
    am__untar=false
Packit Service b98cfc
    ;;
Packit Service b98cfc
  esac
Packit Service b98cfc
Packit Service b98cfc
  # If the value was cached, stop now.  We just wanted to have am__tar
Packit Service b98cfc
  # and am__untar set.
Packit Service b98cfc
  test -n "${am_cv_prog_tar_$1}" && break
Packit Service b98cfc
Packit Service b98cfc
  # tar/untar a dummy directory, and stop if the command works
Packit Service b98cfc
  rm -rf conftest.dir
Packit Service b98cfc
  mkdir conftest.dir
Packit Service b98cfc
  echo GrepMe > conftest.dir/file
Packit Service b98cfc
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit Service b98cfc
  rm -rf conftest.dir
Packit Service b98cfc
  if test -s conftest.tar; then
Packit Service b98cfc
    AM_RUN_LOG([$am__untar 
Packit Service b98cfc
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit Service b98cfc
  fi
Packit Service b98cfc
done
Packit Service b98cfc
rm -rf conftest.dir
Packit Service b98cfc
Packit Service b98cfc
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit Service b98cfc
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit Service b98cfc
AC_SUBST([am__tar])
Packit Service b98cfc
AC_SUBST([am__untar])
Packit Service b98cfc
]) # _AM_PROG_TAR
Packit Service b98cfc