Blame SOURCES/libsodium-1.0.18/aclocal.m4

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