Blame ld/aclocal.m4

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