Blame aclocal.m4

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