Blame aclocal.m4

Packit b040ce
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
Packit b040ce
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# This program is distributed in the hope that it will be useful,
Packit b040ce
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit b040ce
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit b040ce
# PARTICULAR PURPOSE.
Packit b040ce
Packit b040ce
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
Packit b040ce
m4_ifndef([AC_AUTOCONF_VERSION],
Packit b040ce
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit b040ce
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit b040ce
[m4_warning([this file was generated for autoconf 2.69.
Packit b040ce
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit b040ce
If you have problems, you may need to regenerate the build system entirely.
Packit b040ce
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit b040ce
Packit b040ce
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_AUTOMAKE_VERSION(VERSION)
Packit b040ce
# ----------------------------
Packit b040ce
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit b040ce
# generated from the m4 files accompanying Automake X.Y.
Packit b040ce
# (This private macro should not be called outside this file.)
Packit b040ce
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit b040ce
[am__api_version='1.13'
Packit b040ce
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit b040ce
dnl require some minimum version.  Point them to the right macro.
Packit b040ce
m4_if([$1], [1.13.4], [],
Packit b040ce
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
# _AM_AUTOCONF_VERSION(VERSION)
Packit b040ce
# -----------------------------
Packit b040ce
# aclocal traces this macro to find the Autoconf version.
Packit b040ce
# This is a private macro too.  Using m4_define simplifies
Packit b040ce
# the logic in aclocal, which can simply ignore this definition.
Packit b040ce
m4_define([_AM_AUTOCONF_VERSION], [])
Packit b040ce
Packit b040ce
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit b040ce
# -------------------------------
Packit b040ce
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit b040ce
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit b040ce
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit b040ce
[AM_AUTOMAKE_VERSION([1.13.4])dnl
Packit b040ce
m4_ifndef([AC_AUTOCONF_VERSION],
Packit b040ce
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit b040ce
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit b040ce
Packit b040ce
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_PROG_AR([ACT-IF-FAIL])
Packit b040ce
# -------------------------
Packit b040ce
# Try to determine the archiver interface, and trigger the ar-lib wrapper
Packit b040ce
# if it is needed.  If the detection of archiver interface fails, run
Packit b040ce
# ACT-IF-FAIL (default is to abort configure with a proper error message).
Packit b040ce
AC_DEFUN([AM_PROG_AR],
Packit b040ce
[AC_BEFORE([$0], [LT_INIT])dnl
Packit b040ce
AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
Packit b040ce
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit b040ce
AC_REQUIRE_AUX_FILE([ar-lib])dnl
Packit b040ce
AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
Packit b040ce
: ${AR=ar}
Packit b040ce
Packit b040ce
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
Packit b040ce
  [am_cv_ar_interface=ar
Packit b040ce
   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
Packit b040ce
     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
Packit b040ce
      AC_TRY_EVAL([am_ar_try])
Packit b040ce
      if test "$ac_status" -eq 0; then
Packit b040ce
        am_cv_ar_interface=ar
Packit b040ce
      else
Packit b040ce
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
Packit b040ce
        AC_TRY_EVAL([am_ar_try])
Packit b040ce
        if test "$ac_status" -eq 0; then
Packit b040ce
          am_cv_ar_interface=lib
Packit b040ce
        else
Packit b040ce
          am_cv_ar_interface=unknown
Packit b040ce
        fi
Packit b040ce
      fi
Packit b040ce
      rm -f conftest.lib libconftest.a
Packit b040ce
     ])
Packit b040ce
   ])
Packit b040ce
Packit b040ce
case $am_cv_ar_interface in
Packit b040ce
ar)
Packit b040ce
  ;;
Packit b040ce
lib)
Packit b040ce
  # Microsoft lib, so override with the ar-lib wrapper script.
Packit b040ce
  # FIXME: It is wrong to rewrite AR.
Packit b040ce
  # But if we don't then we get into trouble of one sort or another.
Packit b040ce
  # A longer-term fix would be to have automake use am__AR in this case,
Packit b040ce
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
Packit b040ce
  # similar.
Packit b040ce
  AR="$am_aux_dir/ar-lib $AR"
Packit b040ce
  ;;
Packit b040ce
unknown)
Packit b040ce
  m4_default([$1],
Packit b040ce
             [AC_MSG_ERROR([could not determine $AR interface])])
Packit b040ce
  ;;
Packit b040ce
esac
Packit b040ce
AC_SUBST([AR])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit b040ce
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit b040ce
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit b040ce
#
Packit b040ce
# Of course, Automake must honor this variable whenever it calls a
Packit b040ce
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit b040ce
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit b040ce
# depending on how configure is run.  This is pretty annoying, since
Packit b040ce
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit b040ce
# source directory, any form will work fine, but in subdirectories a
Packit b040ce
# relative path needs to be adjusted first.
Packit b040ce
#
Packit b040ce
# $ac_aux_dir/missing
Packit b040ce
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit b040ce
# $top_srcdir/$ac_aux_dir/missing
Packit b040ce
#    fails if $ac_aux_dir is absolute,
Packit b040ce
#    fails when called from a subdirectory in a VPATH build with
Packit b040ce
#          a relative $ac_aux_dir
Packit b040ce
#
Packit b040ce
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit b040ce
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit b040ce
# harmless because $srcdir is '.', but things will broke when you
Packit b040ce
# start a VPATH build or use an absolute $srcdir.
Packit b040ce
#
Packit b040ce
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit b040ce
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit b040ce
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit b040ce
# and then we would define $MISSING as
Packit b040ce
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit b040ce
# This will work as long as MISSING is not called from configure, because
Packit b040ce
# unfortunately $(top_srcdir) has no meaning in configure.
Packit b040ce
# However there are other variables, like CC, which are often used in
Packit b040ce
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit b040ce
#
Packit b040ce
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit b040ce
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit b040ce
# configured tree to be moved without reconfiguration.
Packit b040ce
Packit b040ce
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit b040ce
[dnl Rely on autoconf to set up CDPATH properly.
Packit b040ce
AC_PREREQ([2.50])dnl
Packit b040ce
# expand $ac_aux_dir to an absolute path
Packit b040ce
am_aux_dir=`cd $ac_aux_dir && pwd`
Packit b040ce
])
Packit b040ce
Packit b040ce
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit b040ce
# -------------------------------------
Packit b040ce
# Define a conditional.
Packit b040ce
AC_DEFUN([AM_CONDITIONAL],
Packit b040ce
[AC_PREREQ([2.52])dnl
Packit b040ce
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit b040ce
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit b040ce
AC_SUBST([$1_TRUE])dnl
Packit b040ce
AC_SUBST([$1_FALSE])dnl
Packit b040ce
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit b040ce
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit b040ce
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit b040ce
if $2; then
Packit b040ce
  $1_TRUE=
Packit b040ce
  $1_FALSE='#'
Packit b040ce
else
Packit b040ce
  $1_TRUE='#'
Packit b040ce
  $1_FALSE=
Packit b040ce
fi
Packit b040ce
AC_CONFIG_COMMANDS_PRE(
Packit b040ce
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit b040ce
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit b040ce
Usually this means the macro was only invoked conditionally.]])
Packit b040ce
fi])])
Packit b040ce
Packit b040ce
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
Packit b040ce
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit b040ce
# written in clear, in which case automake, when reading aclocal.m4,
Packit b040ce
# will think it sees a *use*, and therefore will trigger all it's
Packit b040ce
# C support machinery.  Also note that it means that autoscan, seeing
Packit b040ce
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit b040ce
Packit b040ce
Packit b040ce
# _AM_DEPENDENCIES(NAME)
Packit b040ce
# ----------------------
Packit b040ce
# See how the compiler implements dependency checking.
Packit b040ce
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit b040ce
# We try a few techniques and use that to set a single cache variable.
Packit b040ce
#
Packit b040ce
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit b040ce
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit b040ce
# dependency, and given that the user is not expected to run this macro,
Packit b040ce
# just rely on AC_PROG_CC.
Packit b040ce
AC_DEFUN([_AM_DEPENDENCIES],
Packit b040ce
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit b040ce
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit b040ce
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit b040ce
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit b040ce
Packit b040ce
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit b040ce
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit b040ce
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit b040ce
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit b040ce
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit b040ce
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit b040ce
                    [depcc="$$1"   am_compiler_list=])
Packit b040ce
Packit b040ce
AC_CACHE_CHECK([dependency style of $depcc],
Packit b040ce
               [am_cv_$1_dependencies_compiler_type],
Packit b040ce
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit b040ce
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit b040ce
  # making bogus files that we don't know about and never remove.  For
Packit b040ce
  # instance it was reported that on HP-UX the gcc test will end up
Packit b040ce
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit b040ce
  # in D".
Packit b040ce
  rm -rf conftest.dir
Packit b040ce
  mkdir conftest.dir
Packit b040ce
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit b040ce
  # using a relative directory.
Packit b040ce
  cp "$am_depcomp" conftest.dir
Packit b040ce
  cd conftest.dir
Packit b040ce
  # We will build objects and dependencies in a subdirectory because
Packit b040ce
  # it helps to detect inapplicable dependency modes.  For instance
Packit b040ce
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit b040ce
  # side effect of compilation, but ICC will put the dependencies in
Packit b040ce
  # the current directory while Tru64 will put them in the object
Packit b040ce
  # directory.
Packit b040ce
  mkdir sub
Packit b040ce
Packit b040ce
  am_cv_$1_dependencies_compiler_type=none
Packit b040ce
  if test "$am_compiler_list" = ""; then
Packit b040ce
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit b040ce
  fi
Packit b040ce
  am__universal=false
Packit b040ce
  m4_case([$1], [CC],
Packit b040ce
    [case " $depcc " in #(
Packit b040ce
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit b040ce
     esac],
Packit b040ce
    [CXX],
Packit b040ce
    [case " $depcc " in #(
Packit b040ce
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit b040ce
     esac])
Packit b040ce
Packit b040ce
  for depmode in $am_compiler_list; do
Packit b040ce
    # Setup a source with many dependencies, because some compilers
Packit b040ce
    # like to wrap large dependency lists on column 80 (with \), and
Packit b040ce
    # we should not choose a depcomp mode which is confused by this.
Packit b040ce
    #
Packit b040ce
    # We need to recreate these files for each test, as the compiler may
Packit b040ce
    # overwrite some of them when testing with obscure command lines.
Packit b040ce
    # This happens at least with the AIX C compiler.
Packit b040ce
    : > sub/conftest.c
Packit b040ce
    for i in 1 2 3 4 5 6; do
Packit b040ce
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit b040ce
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit b040ce
      # Solaris 10 /bin/sh.
Packit b040ce
      echo '/* dummy */' > sub/conftst$i.h
Packit b040ce
    done
Packit b040ce
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit b040ce
Packit b040ce
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit b040ce
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit b040ce
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit b040ce
    # versions had trouble with output in subdirs.
Packit b040ce
    am__obj=sub/conftest.${OBJEXT-o}
Packit b040ce
    am__minus_obj="-o $am__obj"
Packit b040ce
    case $depmode in
Packit b040ce
    gcc)
Packit b040ce
      # This depmode causes a compiler race in universal mode.
Packit b040ce
      test "$am__universal" = false || continue
Packit b040ce
      ;;
Packit b040ce
    nosideeffect)
Packit b040ce
      # After this tag, mechanisms are not by side-effect, so they'll
Packit b040ce
      # only be used when explicitly requested.
Packit b040ce
      if test "x$enable_dependency_tracking" = xyes; then
Packit b040ce
	continue
Packit b040ce
      else
Packit b040ce
	break
Packit b040ce
      fi
Packit b040ce
      ;;
Packit b040ce
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit b040ce
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit b040ce
      # not run yet.  These depmodes are late enough in the game, and
Packit b040ce
      # so weak that their functioning should not be impacted.
Packit b040ce
      am__obj=conftest.${OBJEXT-o}
Packit b040ce
      am__minus_obj=
Packit b040ce
      ;;
Packit b040ce
    none) break ;;
Packit b040ce
    esac
Packit b040ce
    if depmode=$depmode \
Packit b040ce
       source=sub/conftest.c object=$am__obj \
Packit b040ce
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit b040ce
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit b040ce
         >/dev/null 2>conftest.err &&
Packit b040ce
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit b040ce
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit b040ce
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit b040ce
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit b040ce
      # icc doesn't choke on unknown options, it will just issue warnings
Packit b040ce
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit b040ce
      # that says an option was ignored or not supported.
Packit b040ce
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit b040ce
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit b040ce
      # The diagnosis changed in icc 8.0:
Packit b040ce
      #   icc: Command line remark: option '-MP' not supported
Packit b040ce
      if (grep 'ignoring option' conftest.err ||
Packit b040ce
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit b040ce
        am_cv_$1_dependencies_compiler_type=$depmode
Packit b040ce
        break
Packit b040ce
      fi
Packit b040ce
    fi
Packit b040ce
  done
Packit b040ce
Packit b040ce
  cd ..
Packit b040ce
  rm -rf conftest.dir
Packit b040ce
else
Packit b040ce
  am_cv_$1_dependencies_compiler_type=none
Packit b040ce
fi
Packit b040ce
])
Packit b040ce
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit b040ce
AM_CONDITIONAL([am__fastdep$1], [
Packit b040ce
  test "x$enable_dependency_tracking" != xno \
Packit b040ce
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit b040ce
])
Packit b040ce
Packit b040ce
Packit b040ce
# AM_SET_DEPDIR
Packit b040ce
# -------------
Packit b040ce
# Choose a directory name for dependency files.
Packit b040ce
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit b040ce
AC_DEFUN([AM_SET_DEPDIR],
Packit b040ce
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit b040ce
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
Packit b040ce
# AM_DEP_TRACK
Packit b040ce
# ------------
Packit b040ce
AC_DEFUN([AM_DEP_TRACK],
Packit b040ce
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit b040ce
AS_HELP_STRING(
Packit b040ce
  [--enable-dependency-tracking],
Packit b040ce
  [do not reject slow dependency extractors])
Packit b040ce
AS_HELP_STRING(
Packit b040ce
  [--disable-dependency-tracking],
Packit b040ce
  [speeds up one-time build])])
Packit b040ce
if test "x$enable_dependency_tracking" != xno; then
Packit b040ce
  am_depcomp="$ac_aux_dir/depcomp"
Packit b040ce
  AMDEPBACKSLASH='\'
Packit b040ce
  am__nodep='_no'
Packit b040ce
fi
Packit b040ce
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit b040ce
AC_SUBST([AMDEPBACKSLASH])dnl
Packit b040ce
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit b040ce
AC_SUBST([am__nodep])dnl
Packit b040ce
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
Packit b040ce
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit b040ce
# ------------------------------
Packit b040ce
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit b040ce
[{
Packit b040ce
  # Older Autoconf quotes --file arguments for eval, but not when files
Packit b040ce
  # are listed without --file.  Let's play safe and only enable the eval
Packit b040ce
  # if we detect the quoting.
Packit b040ce
  case $CONFIG_FILES in
Packit b040ce
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit b040ce
  *)   set x $CONFIG_FILES ;;
Packit b040ce
  esac
Packit b040ce
  shift
Packit b040ce
  for mf
Packit b040ce
  do
Packit b040ce
    # Strip MF so we end up with the name of the file.
Packit b040ce
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit b040ce
    # Check whether this is an Automake generated Makefile or not.
Packit b040ce
    # We used to match only the files named 'Makefile.in', but
Packit b040ce
    # some people rename them; so instead we look at the file content.
Packit b040ce
    # Grep'ing the first line is not enough: some people post-process
Packit b040ce
    # each Makefile.in and add a new line on top of each file to say so.
Packit b040ce
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit b040ce
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit b040ce
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit b040ce
      dirpart=`AS_DIRNAME("$mf")`
Packit b040ce
    else
Packit b040ce
      continue
Packit b040ce
    fi
Packit b040ce
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit b040ce
    # from the Makefile without running 'make'.
Packit b040ce
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit b040ce
    test -z "$DEPDIR" && continue
Packit b040ce
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit b040ce
    test -z "$am__include" && continue
Packit b040ce
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit b040ce
    # Find all dependency output files, they are included files with
Packit b040ce
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit b040ce
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit b040ce
    # expansion.
Packit b040ce
    for file in `sed -n "
Packit b040ce
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit b040ce
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit b040ce
      # Make sure the directory exists.
Packit b040ce
      test -f "$dirpart/$file" && continue
Packit b040ce
      fdir=`AS_DIRNAME(["$file"])`
Packit b040ce
      AS_MKDIR_P([$dirpart/$fdir])
Packit b040ce
      # echo "creating $dirpart/$file"
Packit b040ce
      echo '# dummy' > "$dirpart/$file"
Packit b040ce
    done
Packit b040ce
  done
Packit b040ce
}
Packit b040ce
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit b040ce
Packit b040ce
Packit b040ce
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit b040ce
# -----------------------------
Packit b040ce
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit b040ce
#
Packit b040ce
# This code is only required when automatic dependency tracking
Packit b040ce
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit b040ce
# need in order to bootstrap the dependency handling code.
Packit b040ce
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit b040ce
[AC_CONFIG_COMMANDS([depfiles],
Packit b040ce
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit b040ce
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit b040ce
])
Packit b040ce
Packit b040ce
# Do all the work for Automake.                             -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# This macro actually does too much.  Some checks are only needed if
Packit b040ce
# your package does certain things.  But this isn't really a big deal.
Packit b040ce
Packit b040ce
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit b040ce
# AM_INIT_AUTOMAKE([OPTIONS])
Packit b040ce
# -----------------------------------------------
Packit b040ce
# The call with PACKAGE and VERSION arguments is the old style
Packit b040ce
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit b040ce
# and VERSION should now be passed to AC_INIT and removed from
Packit b040ce
# the call to AM_INIT_AUTOMAKE.
Packit b040ce
# We support both call styles for the transition.  After
Packit b040ce
# the next Automake release, Autoconf can make the AC_INIT
Packit b040ce
# arguments mandatory, and then we can depend on a new Autoconf
Packit b040ce
# release and drop the old call support.
Packit b040ce
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit b040ce
[AC_PREREQ([2.65])dnl
Packit b040ce
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit b040ce
dnl the ones we care about.
Packit b040ce
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit b040ce
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit b040ce
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit b040ce
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit b040ce
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit b040ce
  # is not polluted with repeated "-I."
Packit b040ce
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit b040ce
  # test to see if srcdir already configured
Packit b040ce
  if test -f $srcdir/config.status; then
Packit b040ce
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit b040ce
  fi
Packit b040ce
fi
Packit b040ce
Packit b040ce
# test whether we have cygpath
Packit b040ce
if test -z "$CYGPATH_W"; then
Packit b040ce
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit b040ce
    CYGPATH_W='cygpath -w'
Packit b040ce
  else
Packit b040ce
    CYGPATH_W=echo
Packit b040ce
  fi
Packit b040ce
fi
Packit b040ce
AC_SUBST([CYGPATH_W])
Packit b040ce
Packit b040ce
# Define the identity of the package.
Packit b040ce
dnl Distinguish between old-style and new-style calls.
Packit b040ce
m4_ifval([$2],
Packit b040ce
[AC_DIAGNOSE([obsolete],
Packit b040ce
             [$0: two- and three-arguments forms are deprecated.])
Packit b040ce
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit b040ce
 AC_SUBST([PACKAGE], [$1])dnl
Packit b040ce
 AC_SUBST([VERSION], [$2])],
Packit b040ce
[_AM_SET_OPTIONS([$1])dnl
Packit b040ce
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit b040ce
m4_if(
Packit b040ce
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit b040ce
  [ok:ok],,
Packit b040ce
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit b040ce
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit b040ce
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit b040ce
Packit b040ce
_AM_IF_OPTION([no-define],,
Packit b040ce
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit b040ce
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit b040ce
Packit b040ce
# Some tools Automake needs.
Packit b040ce
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit b040ce
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit b040ce
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit b040ce
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit b040ce
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit b040ce
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit b040ce
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit b040ce
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit b040ce
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit b040ce
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit b040ce
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit b040ce
# dies out for good.  For more background, see:
Packit b040ce
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit b040ce
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit b040ce
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit b040ce
# We need awk for the "check" target.  The system "awk" is bad on
Packit b040ce
# some platforms.
Packit b040ce
AC_REQUIRE([AC_PROG_AWK])dnl
Packit b040ce
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit b040ce
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit b040ce
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit b040ce
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit b040ce
			     [_AM_PROG_TAR([v7])])])
Packit b040ce
_AM_IF_OPTION([no-dependencies],,
Packit b040ce
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit b040ce
		  [_AM_DEPENDENCIES([CC])],
Packit b040ce
		  [m4_define([AC_PROG_CC],
Packit b040ce
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit b040ce
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit b040ce
		  [_AM_DEPENDENCIES([CXX])],
Packit b040ce
		  [m4_define([AC_PROG_CXX],
Packit b040ce
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit b040ce
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit b040ce
		  [_AM_DEPENDENCIES([OBJC])],
Packit b040ce
		  [m4_define([AC_PROG_OBJC],
Packit b040ce
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit b040ce
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit b040ce
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit b040ce
		  [m4_define([AC_PROG_OBJCXX],
Packit b040ce
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
Packit b040ce
])
Packit b040ce
AC_REQUIRE([AM_SILENT_RULES])dnl
Packit b040ce
dnl The testsuite driver may need to know about EXEEXT, so add the
Packit b040ce
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
Packit b040ce
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit b040ce
AC_CONFIG_COMMANDS_PRE(dnl
Packit b040ce
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit b040ce
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit b040ce
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit b040ce
dnl mangled by Autoconf and run in a shell conditional statement.
Packit b040ce
m4_define([_AC_COMPILER_EXEEXT],
Packit b040ce
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit b040ce
Packit b040ce
Packit b040ce
# When config.status generates a header, we must update the stamp-h file.
Packit b040ce
# This file resides in the same directory as the config header
Packit b040ce
# that is generated.  The stamp files are numbered to have different names.
Packit b040ce
Packit b040ce
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit b040ce
# loop where config.status creates the headers, so we can generate
Packit b040ce
# our stamp files there.
Packit b040ce
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit b040ce
[# Compute $1's index in $config_headers.
Packit b040ce
_am_arg=$1
Packit b040ce
_am_stamp_count=1
Packit b040ce
for _am_header in $config_headers :; do
Packit b040ce
  case $_am_header in
Packit b040ce
    $_am_arg | $_am_arg:* )
Packit b040ce
      break ;;
Packit b040ce
    * )
Packit b040ce
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit b040ce
  esac
Packit b040ce
done
Packit b040ce
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit b040ce
Packit b040ce
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_PROG_INSTALL_SH
Packit b040ce
# ------------------
Packit b040ce
# Define $install_sh.
Packit b040ce
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit b040ce
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit b040ce
if test x"${install_sh}" != xset; then
Packit b040ce
  case $am_aux_dir in
Packit b040ce
  *\ * | *\	*)
Packit b040ce
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit b040ce
  *)
Packit b040ce
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit b040ce
  esac
Packit b040ce
fi
Packit b040ce
AC_SUBST([install_sh])])
Packit b040ce
Packit b040ce
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# Check whether the underlying file-system supports filenames
Packit b040ce
# with a leading dot.  For instance MS-DOS doesn't.
Packit b040ce
AC_DEFUN([AM_SET_LEADING_DOT],
Packit b040ce
[rm -rf .tst 2>/dev/null
Packit b040ce
mkdir .tst 2>/dev/null
Packit b040ce
if test -d .tst; then
Packit b040ce
  am__leading_dot=.
Packit b040ce
else
Packit b040ce
  am__leading_dot=_
Packit b040ce
fi
Packit b040ce
rmdir .tst 2>/dev/null
Packit b040ce
AC_SUBST([am__leading_dot])])
Packit b040ce
Packit b040ce
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_MAKE_INCLUDE()
Packit b040ce
# -----------------
Packit b040ce
# Check to see how make treats includes.
Packit b040ce
AC_DEFUN([AM_MAKE_INCLUDE],
Packit b040ce
[am_make=${MAKE-make}
Packit b040ce
cat > confinc << 'END'
Packit b040ce
am__doit:
Packit b040ce
	@echo this is the am__doit target
Packit b040ce
.PHONY: am__doit
Packit b040ce
END
Packit b040ce
# If we don't find an include directive, just comment out the code.
Packit b040ce
AC_MSG_CHECKING([for style of include used by $am_make])
Packit b040ce
am__include="#"
Packit b040ce
am__quote=
Packit b040ce
_am_result=none
Packit b040ce
# First try GNU make style include.
Packit b040ce
echo "include confinc" > confmf
Packit b040ce
# Ignore all kinds of additional output from 'make'.
Packit b040ce
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit b040ce
*the\ am__doit\ target*)
Packit b040ce
  am__include=include
Packit b040ce
  am__quote=
Packit b040ce
  _am_result=GNU
Packit b040ce
  ;;
Packit b040ce
esac
Packit b040ce
# Now try BSD make style include.
Packit b040ce
if test "$am__include" = "#"; then
Packit b040ce
   echo '.include "confinc"' > confmf
Packit b040ce
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit b040ce
   *the\ am__doit\ target*)
Packit b040ce
     am__include=.include
Packit b040ce
     am__quote="\""
Packit b040ce
     _am_result=BSD
Packit b040ce
     ;;
Packit b040ce
   esac
Packit b040ce
fi
Packit b040ce
AC_SUBST([am__include])
Packit b040ce
AC_SUBST([am__quote])
Packit b040ce
AC_MSG_RESULT([$_am_result])
Packit b040ce
rm -f confinc confmf
Packit b040ce
])
Packit b040ce
Packit b040ce
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_MISSING_PROG(NAME, PROGRAM)
Packit b040ce
# ------------------------------
Packit b040ce
AC_DEFUN([AM_MISSING_PROG],
Packit b040ce
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit b040ce
$1=${$1-"${am_missing_run}$2"}
Packit b040ce
AC_SUBST($1)])
Packit b040ce
Packit b040ce
# AM_MISSING_HAS_RUN
Packit b040ce
# ------------------
Packit b040ce
# Define MISSING if not defined so far and test if it is modern enough.
Packit b040ce
# If it is, set am_missing_run to use it, otherwise, to nothing.
Packit b040ce
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit b040ce
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit b040ce
AC_REQUIRE_AUX_FILE([missing])dnl
Packit b040ce
if test x"${MISSING+set}" != xset; then
Packit b040ce
  case $am_aux_dir in
Packit b040ce
  *\ * | *\	*)
Packit b040ce
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit b040ce
  *)
Packit b040ce
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit b040ce
  esac
Packit b040ce
fi
Packit b040ce
# Use eval to expand $SHELL
Packit b040ce
if eval "$MISSING --is-lightweight"; then
Packit b040ce
  am_missing_run="$MISSING "
Packit b040ce
else
Packit b040ce
  am_missing_run=
Packit b040ce
  AC_MSG_WARN(['missing' script is too old or missing])
Packit b040ce
fi
Packit b040ce
])
Packit b040ce
Packit b040ce
# Helper functions for option handling.                     -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# _AM_MANGLE_OPTION(NAME)
Packit b040ce
# -----------------------
Packit b040ce
AC_DEFUN([_AM_MANGLE_OPTION],
Packit b040ce
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit b040ce
Packit b040ce
# _AM_SET_OPTION(NAME)
Packit b040ce
# --------------------
Packit b040ce
# Set option NAME.  Presently that only means defining a flag for this option.
Packit b040ce
AC_DEFUN([_AM_SET_OPTION],
Packit b040ce
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit b040ce
Packit b040ce
# _AM_SET_OPTIONS(OPTIONS)
Packit b040ce
# ------------------------
Packit b040ce
# OPTIONS is a space-separated list of Automake options.
Packit b040ce
AC_DEFUN([_AM_SET_OPTIONS],
Packit b040ce
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit b040ce
Packit b040ce
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit b040ce
# -------------------------------------------
Packit b040ce
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit b040ce
AC_DEFUN([_AM_IF_OPTION],
Packit b040ce
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit b040ce
Packit b040ce
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
Packit b040ce
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit b040ce
# ---------------------------------------------------------------------------
Packit b040ce
# Adds support for distributing Python modules and packages.  To
Packit b040ce
# install modules, copy them to $(pythondir), using the python_PYTHON
Packit b040ce
# automake variable.  To install a package with the same name as the
Packit b040ce
# automake package, install to $(pkgpythondir), or use the
Packit b040ce
# pkgpython_PYTHON automake variable.
Packit b040ce
#
Packit b040ce
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
Packit b040ce
# locations to install python extension modules (shared libraries).
Packit b040ce
# Another macro is required to find the appropriate flags to compile
Packit b040ce
# extension modules.
Packit b040ce
#
Packit b040ce
# If your package is configured with a different prefix to python,
Packit b040ce
# users will have to add the install directory to the PYTHONPATH
Packit b040ce
# environment variable, or create a .pth file (see the python
Packit b040ce
# documentation for details).
Packit b040ce
#
Packit b040ce
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
Packit b040ce
# cause an error if the version of python installed on the system
Packit b040ce
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
Packit b040ce
# numbers and dots only.
Packit b040ce
AC_DEFUN([AM_PATH_PYTHON],
Packit b040ce
 [
Packit b040ce
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
Packit b040ce
  dnl supported. (2.0 was released on October 16, 2000).
Packit b040ce
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
Packit b040ce
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
Packit b040ce
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
Packit b040ce
Packit b040ce
  AC_ARG_VAR([PYTHON], [the Python interpreter])
Packit b040ce
Packit b040ce
  m4_if([$1],[],[
Packit b040ce
    dnl No version check is needed.
Packit b040ce
    # Find any Python interpreter.
Packit b040ce
    if test -z "$PYTHON"; then
Packit b040ce
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
Packit b040ce
    fi
Packit b040ce
    am_display_PYTHON=python
Packit b040ce
  ], [
Packit b040ce
    dnl A version check is needed.
Packit b040ce
    if test -n "$PYTHON"; then
Packit b040ce
      # If the user set $PYTHON, use it and don't search something else.
Packit b040ce
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
Packit b040ce
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
Packit b040ce
			      [AC_MSG_RESULT([yes])],
Packit b040ce
			      [AC_MSG_RESULT([no])
Packit b040ce
			       AC_MSG_ERROR([Python interpreter is too old])])
Packit b040ce
      am_display_PYTHON=$PYTHON
Packit b040ce
    else
Packit b040ce
      # Otherwise, try each interpreter until we find one that satisfies
Packit b040ce
      # VERSION.
Packit b040ce
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
Packit b040ce
	[am_cv_pathless_PYTHON],[
Packit b040ce
	for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
Packit b040ce
	  test "$am_cv_pathless_PYTHON" = none && break
Packit b040ce
	  AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
Packit b040ce
	done])
Packit b040ce
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
Packit b040ce
      if test "$am_cv_pathless_PYTHON" = none; then
Packit b040ce
	PYTHON=:
Packit b040ce
      else
Packit b040ce
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
Packit b040ce
      fi
Packit b040ce
      am_display_PYTHON=$am_cv_pathless_PYTHON
Packit b040ce
    fi
Packit b040ce
  ])
Packit b040ce
Packit b040ce
  if test "$PYTHON" = :; then
Packit b040ce
  dnl Run any user-specified action, or abort.
Packit b040ce
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
Packit b040ce
  else
Packit b040ce
Packit b040ce
  dnl Query Python for its version number.  Getting [:3] seems to be
Packit b040ce
  dnl the best way to do this; it's what "site.py" does in the standard
Packit b040ce
  dnl library.
Packit b040ce
Packit b040ce
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
Packit b040ce
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
Packit b040ce
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
Packit b040ce
Packit b040ce
  dnl Use the values of $prefix and $exec_prefix for the corresponding
Packit b040ce
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
Packit b040ce
  dnl distinct variables so they can be overridden if need be.  However,
Packit b040ce
  dnl general consensus is that you shouldn't need this ability.
Packit b040ce
Packit b040ce
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
Packit b040ce
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
Packit b040ce
Packit b040ce
  dnl At times (like when building shared libraries) you may want
Packit b040ce
  dnl to know which OS platform Python thinks this is.
Packit b040ce
Packit b040ce
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
Packit b040ce
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
Packit b040ce
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
Packit b040ce
Packit b040ce
  # Just factor out some code duplication.
Packit b040ce
  am_python_setup_sysconfig="\
Packit b040ce
import sys
Packit b040ce
# Prefer sysconfig over distutils.sysconfig, for better compatibility
Packit b040ce
# with python 3.x.  See automake bug#10227.
Packit b040ce
try:
Packit b040ce
    import sysconfig
Packit b040ce
except ImportError:
Packit b040ce
    can_use_sysconfig = 0
Packit b040ce
else:
Packit b040ce
    can_use_sysconfig = 1
Packit b040ce
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
Packit b040ce
# <https://github.com/pypa/virtualenv/issues/118>
Packit b040ce
try:
Packit b040ce
    from platform import python_implementation
Packit b040ce
    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
Packit b040ce
        can_use_sysconfig = 0
Packit b040ce
except ImportError:
Packit b040ce
    pass"
Packit b040ce
Packit b040ce
  dnl Set up 4 directories:
Packit b040ce
Packit b040ce
  dnl pythondir -- where to install python scripts.  This is the
Packit b040ce
  dnl   site-packages directory, not the python standard library
Packit b040ce
  dnl   directory like in previous automake betas.  This behavior
Packit b040ce
  dnl   is more consistent with lispdir.m4 for example.
Packit b040ce
  dnl Query distutils for this directory.
Packit b040ce
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
Packit b040ce
    [am_cv_python_pythondir],
Packit b040ce
    [if test "x$prefix" = xNONE
Packit b040ce
     then
Packit b040ce
       am_py_prefix=$ac_default_prefix
Packit b040ce
     else
Packit b040ce
       am_py_prefix=$prefix
Packit b040ce
     fi
Packit b040ce
     am_cv_python_pythondir=`$PYTHON -c "
Packit b040ce
$am_python_setup_sysconfig
Packit b040ce
if can_use_sysconfig:
Packit b040ce
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
Packit b040ce
else:
Packit b040ce
    from distutils import sysconfig
Packit b040ce
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
Packit b040ce
sys.stdout.write(sitedir)"`
Packit b040ce
     case $am_cv_python_pythondir in
Packit b040ce
     $am_py_prefix*)
Packit b040ce
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
Packit b040ce
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
Packit b040ce
       ;;
Packit b040ce
     *)
Packit b040ce
       case $am_py_prefix in
Packit b040ce
         /usr|/System*) ;;
Packit b040ce
         *)
Packit b040ce
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit b040ce
	  ;;
Packit b040ce
       esac
Packit b040ce
       ;;
Packit b040ce
     esac
Packit b040ce
    ])
Packit b040ce
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
Packit b040ce
Packit b040ce
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
Packit b040ce
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
Packit b040ce
  dnl   more consistent with the rest of automake.
Packit b040ce
Packit b040ce
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
Packit b040ce
Packit b040ce
  dnl pyexecdir -- directory for installing python extension modules
Packit b040ce
  dnl   (shared libraries)
Packit b040ce
  dnl Query distutils for this directory.
Packit b040ce
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
Packit b040ce
    [am_cv_python_pyexecdir],
Packit b040ce
    [if test "x$exec_prefix" = xNONE
Packit b040ce
     then
Packit b040ce
       am_py_exec_prefix=$am_py_prefix
Packit b040ce
     else
Packit b040ce
       am_py_exec_prefix=$exec_prefix
Packit b040ce
     fi
Packit b040ce
     am_cv_python_pyexecdir=`$PYTHON -c "
Packit b040ce
$am_python_setup_sysconfig
Packit b040ce
if can_use_sysconfig:
Packit b040ce
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
Packit b040ce
else:
Packit b040ce
    from distutils import sysconfig
Packit b040ce
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
Packit b040ce
sys.stdout.write(sitedir)"`
Packit b040ce
     case $am_cv_python_pyexecdir in
Packit b040ce
     $am_py_exec_prefix*)
Packit b040ce
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
Packit b040ce
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
Packit b040ce
       ;;
Packit b040ce
     *)
Packit b040ce
       case $am_py_exec_prefix in
Packit b040ce
         /usr|/System*) ;;
Packit b040ce
         *)
Packit b040ce
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
Packit b040ce
	   ;;
Packit b040ce
       esac
Packit b040ce
       ;;
Packit b040ce
     esac
Packit b040ce
    ])
Packit b040ce
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
Packit b040ce
Packit b040ce
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
Packit b040ce
Packit b040ce
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
Packit b040ce
Packit b040ce
  dnl Run any user-specified action.
Packit b040ce
  $2
Packit b040ce
  fi
Packit b040ce
Packit b040ce
])
Packit b040ce
Packit b040ce
Packit b040ce
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
Packit b040ce
# ---------------------------------------------------------------------------
Packit b040ce
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
Packit b040ce
# Run ACTION-IF-FALSE otherwise.
Packit b040ce
# This test uses sys.hexversion instead of the string equivalent (first
Packit b040ce
# word of sys.version), in order to cope with versions such as 2.2c1.
Packit b040ce
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
Packit b040ce
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
Packit b040ce
 [prog="import sys
Packit b040ce
# split strings by '.' and convert to numeric.  Append some zeros
Packit b040ce
# because we need at least 4 digits for the hex conversion.
Packit b040ce
# map returns an iterator in Python 3.0 and a list in 2.x
Packit b040ce
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
Packit b040ce
minverhex = 0
Packit b040ce
# xrange is not present in Python 3.0 and range returns an iterator
Packit b040ce
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
Packit b040ce
sys.exit(sys.hexversion < minverhex)"
Packit b040ce
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
Packit b040ce
Packit b040ce
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_SANITY_CHECK
Packit b040ce
# ---------------
Packit b040ce
AC_DEFUN([AM_SANITY_CHECK],
Packit b040ce
[AC_MSG_CHECKING([whether build environment is sane])
Packit b040ce
# Reject unsafe characters in $srcdir or the absolute working directory
Packit b040ce
# name.  Accept space and tab only in the latter.
Packit b040ce
am_lf='
Packit b040ce
'
Packit b040ce
case `pwd` in
Packit b040ce
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit b040ce
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit b040ce
esac
Packit b040ce
case $srcdir in
Packit b040ce
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit b040ce
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit b040ce
esac
Packit b040ce
Packit b040ce
# Do 'set' in a subshell so we don't clobber the current shell's
Packit b040ce
# arguments.  Must try -L first in case configure is actually a
Packit b040ce
# symlink; some systems play weird games with the mod time of symlinks
Packit b040ce
# (eg FreeBSD returns the mod time of the symlink's containing
Packit b040ce
# directory).
Packit b040ce
if (
Packit b040ce
   am_has_slept=no
Packit b040ce
   for am_try in 1 2; do
Packit b040ce
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit b040ce
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit b040ce
     if test "$[*]" = "X"; then
Packit b040ce
	# -L didn't work.
Packit b040ce
	set X `ls -t "$srcdir/configure" conftest.file`
Packit b040ce
     fi
Packit b040ce
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit b040ce
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit b040ce
Packit b040ce
	# If neither matched, then we have a broken ls.  This can happen
Packit b040ce
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit b040ce
	# broken ls alias from the environment.  This has actually
Packit b040ce
	# happened.  Such a system could not be considered "sane".
Packit b040ce
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit b040ce
  alias in your environment])
Packit b040ce
     fi
Packit b040ce
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit b040ce
       break
Packit b040ce
     fi
Packit b040ce
     # Just in case.
Packit b040ce
     sleep 1
Packit b040ce
     am_has_slept=yes
Packit b040ce
   done
Packit b040ce
   test "$[2]" = conftest.file
Packit b040ce
   )
Packit b040ce
then
Packit b040ce
   # Ok.
Packit b040ce
   :
Packit b040ce
else
Packit b040ce
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit b040ce
Check your system clock])
Packit b040ce
fi
Packit b040ce
AC_MSG_RESULT([yes])
Packit b040ce
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit b040ce
# generated files are strictly newer.
Packit b040ce
am_sleep_pid=
Packit b040ce
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit b040ce
  ( sleep 1 ) &
Packit b040ce
  am_sleep_pid=$!
Packit b040ce
fi
Packit b040ce
AC_CONFIG_COMMANDS_PRE(
Packit b040ce
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit b040ce
   if test -n "$am_sleep_pid"; then
Packit b040ce
     # Hide warnings about reused PIDs.
Packit b040ce
     wait $am_sleep_pid 2>/dev/null
Packit b040ce
   fi
Packit b040ce
   AC_MSG_RESULT([done])])
Packit b040ce
rm -f conftest.file
Packit b040ce
])
Packit b040ce
Packit b040ce
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_SILENT_RULES([DEFAULT])
Packit b040ce
# --------------------------
Packit b040ce
# Enable less verbose build rules; with the default set to DEFAULT
Packit b040ce
# ("yes" being less verbose, "no" or empty being verbose).
Packit b040ce
AC_DEFUN([AM_SILENT_RULES],
Packit b040ce
[AC_ARG_ENABLE([silent-rules], [dnl
Packit b040ce
AS_HELP_STRING(
Packit b040ce
  [--enable-silent-rules],
Packit b040ce
  [less verbose build output (undo: "make V=1")])
Packit b040ce
AS_HELP_STRING(
Packit b040ce
  [--disable-silent-rules],
Packit b040ce
  [verbose build output (undo: "make V=0")])dnl
Packit b040ce
])
Packit b040ce
case $enable_silent_rules in @%:@ (((
Packit b040ce
  yes) AM_DEFAULT_VERBOSITY=0;;
Packit b040ce
   no) AM_DEFAULT_VERBOSITY=1;;
Packit b040ce
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit b040ce
esac
Packit b040ce
dnl
Packit b040ce
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Packit b040ce
dnl do not support nested variable expansions.
Packit b040ce
dnl See automake bug#9928 and bug#10237.
Packit b040ce
am_make=${MAKE-make}
Packit b040ce
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit b040ce
   [am_cv_make_support_nested_variables],
Packit b040ce
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit b040ce
BAR0=false
Packit b040ce
BAR1=true
Packit b040ce
V=1
Packit b040ce
am__doit:
Packit b040ce
	@$(TRUE)
Packit b040ce
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit b040ce
  am_cv_make_support_nested_variables=yes
Packit b040ce
else
Packit b040ce
  am_cv_make_support_nested_variables=no
Packit b040ce
fi])
Packit b040ce
if test $am_cv_make_support_nested_variables = yes; then
Packit b040ce
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
Packit b040ce
  AM_V='$(V)'
Packit b040ce
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit b040ce
else
Packit b040ce
  AM_V=$AM_DEFAULT_VERBOSITY
Packit b040ce
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit b040ce
fi
Packit b040ce
AC_SUBST([AM_V])dnl
Packit b040ce
AM_SUBST_NOTMAKE([AM_V])dnl
Packit b040ce
AC_SUBST([AM_DEFAULT_V])dnl
Packit b040ce
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit b040ce
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit b040ce
AM_BACKSLASH='\'
Packit b040ce
AC_SUBST([AM_BACKSLASH])dnl
Packit b040ce
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit b040ce
])
Packit b040ce
Packit b040ce
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# AM_PROG_INSTALL_STRIP
Packit b040ce
# ---------------------
Packit b040ce
# One issue with vendor 'install' (even GNU) is that you can't
Packit b040ce
# specify the program used to strip binaries.  This is especially
Packit b040ce
# annoying in cross-compiling environments, where the build's strip
Packit b040ce
# is unlikely to handle the host's binaries.
Packit b040ce
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit b040ce
# always use install-sh in "make install-strip", and initialize
Packit b040ce
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit b040ce
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit b040ce
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit b040ce
# Installed binaries are usually stripped using 'strip' when the user
Packit b040ce
# run "make install-strip".  However 'strip' might not be the right
Packit b040ce
# tool to use in cross-compilation environments, therefore Automake
Packit b040ce
# will honor the 'STRIP' environment variable to overrule this program.
Packit b040ce
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit b040ce
if test "$cross_compiling" != no; then
Packit b040ce
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit b040ce
fi
Packit b040ce
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit b040ce
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit b040ce
Packit b040ce
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit b040ce
# ---------------------------
Packit b040ce
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit b040ce
# This macro is traced by Automake.
Packit b040ce
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit b040ce
Packit b040ce
# AM_SUBST_NOTMAKE(VARIABLE)
Packit b040ce
# --------------------------
Packit b040ce
# Public sister of _AM_SUBST_NOTMAKE.
Packit b040ce
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit b040ce
Packit b040ce
# Check how to create a tarball.                            -*- Autoconf -*-
Packit b040ce
Packit b040ce
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
Packit b040ce
#
Packit b040ce
# This file is free software; the Free Software Foundation
Packit b040ce
# gives unlimited permission to copy and/or distribute it,
Packit b040ce
# with or without modifications, as long as this notice is preserved.
Packit b040ce
Packit b040ce
# _AM_PROG_TAR(FORMAT)
Packit b040ce
# --------------------
Packit b040ce
# Check how to create a tarball in format FORMAT.
Packit b040ce
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit b040ce
#
Packit b040ce
# Substitute a variable $(am__tar) that is a command
Packit b040ce
# writing to stdout a FORMAT-tarball containing the directory
Packit b040ce
# $tardir.
Packit b040ce
#     tardir=directory && $(am__tar) > result.tar
Packit b040ce
#
Packit b040ce
# Substitute a variable $(am__untar) that extract such
Packit b040ce
# a tarball read from stdin.
Packit b040ce
#     $(am__untar) < result.tar
Packit b040ce
#
Packit b040ce
AC_DEFUN([_AM_PROG_TAR],
Packit b040ce
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit b040ce
# in the wild :-(  We should find a proper way to deprecate it ...
Packit b040ce
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit b040ce
Packit b040ce
# We'll loop over all known methods to create a tar archive until one works.
Packit b040ce
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit b040ce
Packit b040ce
m4_if([$1], [v7],
Packit b040ce
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit b040ce
Packit b040ce
  [m4_case([$1],
Packit b040ce
    [ustar],
Packit b040ce
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
Packit b040ce
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
Packit b040ce
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
Packit b040ce
      # and bug#13588).
Packit b040ce
      am_max_uid=2097151 # 2^21 - 1
Packit b040ce
      am_max_gid=$am_max_uid
Packit b040ce
      # The $UID and $GID variables are not portable, so we need to resort
Packit b040ce
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
Packit b040ce
      # below are definitely unexpected, so allow the users to see them
Packit b040ce
      # (that is, avoid stderr redirection).
Packit b040ce
      am_uid=`id -u || echo unknown`
Packit b040ce
      am_gid=`id -g || echo unknown`
Packit b040ce
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
Packit b040ce
      if test $am_uid -le $am_max_uid; then
Packit b040ce
         AC_MSG_RESULT([yes])
Packit b040ce
      else
Packit b040ce
         AC_MSG_RESULT([no])
Packit b040ce
         _am_tools=none
Packit b040ce
      fi
Packit b040ce
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
Packit b040ce
      if test $am_gid -le $am_max_gid; then
Packit b040ce
         AC_MSG_RESULT([yes])
Packit b040ce
      else
Packit b040ce
        AC_MSG_RESULT([no])
Packit b040ce
        _am_tools=none
Packit b040ce
      fi],
Packit b040ce
Packit b040ce
  [pax],
Packit b040ce
    [],
Packit b040ce
Packit b040ce
  [m4_fatal([Unknown tar format])])
Packit b040ce
Packit b040ce
  AC_MSG_CHECKING([how to create a $1 tar archive])
Packit b040ce
Packit b040ce
  # Go ahead even if we have the value already cached.  We do so because we
Packit b040ce
  # need to set the values for the 'am__tar' and 'am__untar' variables.
Packit b040ce
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit b040ce
Packit b040ce
  for _am_tool in $_am_tools; do
Packit b040ce
    case $_am_tool in
Packit b040ce
    gnutar)
Packit b040ce
      for _am_tar in tar gnutar gtar; do
Packit b040ce
        AM_RUN_LOG([$_am_tar --version]) && break
Packit b040ce
      done
Packit b040ce
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit b040ce
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit b040ce
      am__untar="$_am_tar -xf -"
Packit b040ce
      ;;
Packit b040ce
    plaintar)
Packit b040ce
      # Must skip GNU tar: if it does not support --format= it doesn't create
Packit b040ce
      # ustar tarball either.
Packit b040ce
      (tar --version) >/dev/null 2>&1 && continue
Packit b040ce
      am__tar='tar chf - "$$tardir"'
Packit b040ce
      am__tar_='tar chf - "$tardir"'
Packit b040ce
      am__untar='tar xf -'
Packit b040ce
      ;;
Packit b040ce
    pax)
Packit b040ce
      am__tar='pax -L -x $1 -w "$$tardir"'
Packit b040ce
      am__tar_='pax -L -x $1 -w "$tardir"'
Packit b040ce
      am__untar='pax -r'
Packit b040ce
      ;;
Packit b040ce
    cpio)
Packit b040ce
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit b040ce
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit b040ce
      am__untar='cpio -i -H $1 -d'
Packit b040ce
      ;;
Packit b040ce
    none)
Packit b040ce
      am__tar=false
Packit b040ce
      am__tar_=false
Packit b040ce
      am__untar=false
Packit b040ce
      ;;
Packit b040ce
    esac
Packit b040ce
Packit b040ce
    # If the value was cached, stop now.  We just wanted to have am__tar
Packit b040ce
    # and am__untar set.
Packit b040ce
    test -n "${am_cv_prog_tar_$1}" && break
Packit b040ce
Packit b040ce
    # tar/untar a dummy directory, and stop if the command works.
Packit b040ce
    rm -rf conftest.dir
Packit b040ce
    mkdir conftest.dir
Packit b040ce
    echo GrepMe > conftest.dir/file
Packit b040ce
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit b040ce
    rm -rf conftest.dir
Packit b040ce
    if test -s conftest.tar; then
Packit b040ce
      AM_RUN_LOG([$am__untar 
Packit b040ce
      AM_RUN_LOG([cat conftest.dir/file])
Packit b040ce
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit b040ce
    fi
Packit b040ce
  done
Packit b040ce
  rm -rf conftest.dir
Packit b040ce
Packit b040ce
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit b040ce
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit b040ce
Packit b040ce
AC_SUBST([am__tar])
Packit b040ce
AC_SUBST([am__untar])
Packit b040ce
]) # _AM_PROG_TAR
Packit b040ce
Packit b040ce
m4_include([m4/libtool.m4])
Packit b040ce
m4_include([m4/ltoptions.m4])
Packit b040ce
m4_include([m4/ltsugar.m4])
Packit b040ce
m4_include([m4/ltversion.m4])
Packit b040ce
m4_include([m4/lt~obsolete.m4])
Packit b040ce
m4_include([m4/pkg.m4])
Packit b040ce
m4_include([acinclude.m4])