Blame aclocal.m4

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