Blame aclocal.m4

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