Blame aclocal.m4

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