Blame aclocal.m4

Packit c32a2d
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit c32a2d
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# This program is distributed in the hope that it will be useful,
Packit c32a2d
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit c32a2d
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit c32a2d
# PARTICULAR PURPOSE.
Packit c32a2d
Packit c32a2d
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
Packit c32a2d
m4_ifndef([AC_AUTOCONF_VERSION],
Packit c32a2d
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit c32a2d
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
Packit c32a2d
[m4_warning([this file was generated for autoconf 2.69.
Packit c32a2d
You have another version of autoconf.  It may work, but is not guaranteed to.
Packit c32a2d
If you have problems, you may need to regenerate the build system entirely.
Packit c32a2d
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
Packit c32a2d
Packit c32a2d
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
Packit c32a2d
#
Packit c32a2d
#   Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
Packit c32a2d
#   Written by Thomas Tanner, 1999
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation gives
Packit c32a2d
# unlimited permission to copy and/or distribute it, with or without
Packit c32a2d
# modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# serial 20 LTDL_INIT
Packit c32a2d
Packit c32a2d
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
Packit c32a2d
# ------------------------------------------
Packit c32a2d
# DIRECTORY contains the libltdl sources.  It is okay to call this
Packit c32a2d
# function multiple times, as long as the same DIRECTORY is always given.
Packit c32a2d
AC_DEFUN([LT_CONFIG_LTDL_DIR],
Packit c32a2d
[AC_BEFORE([$0], [LTDL_INIT])
Packit c32a2d
_$0($*)
Packit c32a2d
])# LT_CONFIG_LTDL_DIR
Packit c32a2d
Packit c32a2d
# We break this out into a separate macro, so that we can call it safely
Packit c32a2d
# internally without being caught accidentally by the sed scan in libtoolize.
Packit c32a2d
m4_defun([_LT_CONFIG_LTDL_DIR],
Packit c32a2d
[dnl remove trailing slashes
Packit c32a2d
m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
Packit c32a2d
m4_case(_LTDL_DIR,
Packit c32a2d
	[], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
Packit c32a2d
	     m4_if(_ARG_DIR, [.],
Packit c32a2d
	             [],
Packit c32a2d
		 [m4_define([_LTDL_DIR], _ARG_DIR)
Packit c32a2d
	          _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
Packit c32a2d
    [m4_if(_ARG_DIR, _LTDL_DIR,
Packit c32a2d
	    [],
Packit c32a2d
	[m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
Packit c32a2d
m4_popdef([_ARG_DIR])
Packit c32a2d
])# _LT_CONFIG_LTDL_DIR
Packit c32a2d
Packit c32a2d
# Initialise:
Packit c32a2d
m4_define([_LTDL_DIR], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_BUILD_PREFIX
Packit c32a2d
# ----------------
Packit c32a2d
# If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
Packit c32a2d
# to '$(top_builddir)/'.
Packit c32a2d
m4_define([_LT_BUILD_PREFIX],
Packit c32a2d
[m4_ifdef([AC_AUTOCONF_VERSION],
Packit c32a2d
   [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
Packit c32a2d
	  [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
Packit c32a2d
			  [$(top_build_prefix)],
Packit c32a2d
			  [$(top_builddir)/])],
Packit c32a2d
	  [$(top_build_prefix)])],
Packit c32a2d
   [$(top_builddir)/])[]dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LTDL_CONVENIENCE
Packit c32a2d
# ----------------
Packit c32a2d
# sets LIBLTDL to the link flags for the libltdl convenience library and
Packit c32a2d
# LTDLINCL to the include flags for the libltdl header and adds
Packit c32a2d
# --enable-ltdl-convenience to the configure arguments.  Note that
Packit c32a2d
# AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
Packit c32a2d
# '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
Packit c32a2d
# and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
Packit c32a2d
# quotes!).  If your package is not flat and you're not using automake,
Packit c32a2d
# define top_build_prefix, top_builddir, and top_srcdir appropriately
Packit c32a2d
# in your Makefiles.
Packit c32a2d
AC_DEFUN([LTDL_CONVENIENCE],
Packit c32a2d
[AC_BEFORE([$0], [LTDL_INIT])dnl
Packit c32a2d
dnl Although the argument is deprecated and no longer documented,
Packit c32a2d
dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
Packit c32a2d
dnl here make sure it is the same as any other declaration of libltdl's
Packit c32a2d
dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
Packit c32a2d
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
Packit c32a2d
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
Packit c32a2d
_$0()
Packit c32a2d
])# LTDL_CONVENIENCE
Packit c32a2d
Packit c32a2d
# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
Packit c32a2d
# now we have LT_CONFIG_LTDL_DIR:
Packit c32a2d
AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
Packit c32a2d
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
Packit c32a2d
_LTDL_CONVENIENCE])
Packit c32a2d
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LTDL_CONVENIENCE
Packit c32a2d
# -----------------
Packit c32a2d
# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
Packit c32a2d
m4_defun([_LTDL_CONVENIENCE],
Packit c32a2d
[case $enable_ltdl_convenience in
Packit c32a2d
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
Packit c32a2d
  "") enable_ltdl_convenience=yes
Packit c32a2d
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
Packit c32a2d
esac
Packit c32a2d
LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
Packit c32a2d
LTDLDEPS=$LIBLTDL
Packit c32a2d
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
Packit c32a2d
Packit c32a2d
AC_SUBST([LIBLTDL])
Packit c32a2d
AC_SUBST([LTDLDEPS])
Packit c32a2d
AC_SUBST([LTDLINCL])
Packit c32a2d
Packit c32a2d
# For backwards non-gettext consistent compatibility...
Packit c32a2d
INCLTDL=$LTDLINCL
Packit c32a2d
AC_SUBST([INCLTDL])
Packit c32a2d
])# _LTDL_CONVENIENCE
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LTDL_INSTALLABLE
Packit c32a2d
# ----------------
Packit c32a2d
# sets LIBLTDL to the link flags for the libltdl installable library
Packit c32a2d
# and LTDLINCL to the include flags for the libltdl header and adds
Packit c32a2d
# --enable-ltdl-install to the configure arguments.  Note that
Packit c32a2d
# AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
Packit c32a2d
# is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
Packit c32a2d
# available, otherwise with '$(top_builddir)/', and LTDLINCL will be
Packit c32a2d
# prefixed with '$(top_srcdir)/' (note the single quotes!).  If your
Packit c32a2d
# package is not flat and you're not using automake, define top_build_prefix,
Packit c32a2d
# top_builddir, and top_srcdir appropriately in your Makefiles.
Packit c32a2d
# In the future, this macro may have to be called after LT_INIT.
Packit c32a2d
AC_DEFUN([LTDL_INSTALLABLE],
Packit c32a2d
[AC_BEFORE([$0], [LTDL_INIT])dnl
Packit c32a2d
dnl Although the argument is deprecated and no longer documented,
Packit c32a2d
dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
Packit c32a2d
dnl here make sure it is the same as any other declaration of libltdl's
Packit c32a2d
dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
Packit c32a2d
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
Packit c32a2d
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
Packit c32a2d
_$0()
Packit c32a2d
])# LTDL_INSTALLABLE
Packit c32a2d
Packit c32a2d
# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
Packit c32a2d
# now we have LT_CONFIG_LTDL_DIR:
Packit c32a2d
AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
Packit c32a2d
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
Packit c32a2d
_LTDL_INSTALLABLE])
Packit c32a2d
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LTDL_INSTALLABLE
Packit c32a2d
# -----------------
Packit c32a2d
# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
Packit c32a2d
m4_defun([_LTDL_INSTALLABLE],
Packit c32a2d
[if test -f "$prefix/lib/libltdl.la"; then
Packit c32a2d
  lt_save_LDFLAGS=$LDFLAGS
Packit c32a2d
  LDFLAGS="-L$prefix/lib $LDFLAGS"
Packit c32a2d
  AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
Packit c32a2d
  LDFLAGS=$lt_save_LDFLAGS
Packit c32a2d
  if test yes = "${lt_lib_ltdl-no}"; then
Packit c32a2d
    if test yes != "$enable_ltdl_install"; then
Packit c32a2d
      # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
Packit c32a2d
      AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
Packit c32a2d
      enable_ltdl_install=no
Packit c32a2d
    fi
Packit c32a2d
  elif test no = "$enable_ltdl_install"; then
Packit c32a2d
    AC_MSG_WARN([libltdl not installed, but installation disabled])
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# If configure.ac declared an installable ltdl, and the user didn't override
Packit c32a2d
# with --disable-ltdl-install, we will install the shipped libltdl.
Packit c32a2d
case $enable_ltdl_install in
Packit c32a2d
  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
Packit c32a2d
      LIBLTDL=-lltdl
Packit c32a2d
      LTDLDEPS=
Packit c32a2d
      LTDLINCL=
Packit c32a2d
      ;;
Packit c32a2d
  *)  enable_ltdl_install=yes
Packit c32a2d
      ac_configure_args="$ac_configure_args --enable-ltdl-install"
Packit c32a2d
      LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
Packit c32a2d
      LTDLDEPS=$LIBLTDL
Packit c32a2d
      LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
Packit c32a2d
      ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
AC_SUBST([LIBLTDL])
Packit c32a2d
AC_SUBST([LTDLDEPS])
Packit c32a2d
AC_SUBST([LTDLINCL])
Packit c32a2d
Packit c32a2d
# For backwards non-gettext consistent compatibility...
Packit c32a2d
INCLTDL=$LTDLINCL
Packit c32a2d
AC_SUBST([INCLTDL])
Packit c32a2d
])# LTDL_INSTALLABLE
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LTDL_MODE_DISPATCH
Packit c32a2d
# -------------------
Packit c32a2d
m4_define([_LTDL_MODE_DISPATCH],
Packit c32a2d
[dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
Packit c32a2d
m4_if(_LTDL_DIR, [],
Packit c32a2d
	[],
Packit c32a2d
    dnl if _LTDL_MODE was not set already, the default value is 'subproject':
Packit c32a2d
    [m4_case(m4_default(_LTDL_MODE, [subproject]),
Packit c32a2d
	  [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
Packit c32a2d
			  _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
Packit c32a2d
	  [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
Packit c32a2d
	  [recursive], [],
Packit c32a2d
	[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
Packit c32a2d
dnl Be careful not to expand twice:
Packit c32a2d
m4_define([$0], [])
Packit c32a2d
])# _LTDL_MODE_DISPATCH
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_LIBOBJ(MODULE_NAME)
Packit c32a2d
# -----------------------
Packit c32a2d
# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
Packit c32a2d
# of into LIBOBJS.
Packit c32a2d
AC_DEFUN([_LT_LIBOBJ], [
Packit c32a2d
  m4_pattern_allow([^_LT_LIBOBJS$])
Packit c32a2d
  _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
Packit c32a2d
])# _LT_LIBOBJS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LTDL_INIT([OPTIONS])
Packit c32a2d
# --------------------
Packit c32a2d
# Clients of libltdl can use this macro to allow the installer to
Packit c32a2d
# choose between a shipped copy of the ltdl sources or a preinstalled
Packit c32a2d
# version of the library.  If the shipped ltdl sources are not in a
Packit c32a2d
# subdirectory named libltdl, the directory name must be given by
Packit c32a2d
# LT_CONFIG_LTDL_DIR.
Packit c32a2d
AC_DEFUN([LTDL_INIT],
Packit c32a2d
[dnl Parse OPTIONS
Packit c32a2d
_LT_SET_OPTIONS([$0], [$1])
Packit c32a2d
Packit c32a2d
dnl We need to keep our own list of libobjs separate from our parent project,
Packit c32a2d
dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
Packit c32a2d
dnl we look for our own LIBOBJs.
Packit c32a2d
m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
Packit c32a2d
m4_pushdef([AC_LIBSOURCES])
Packit c32a2d
Packit c32a2d
dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
Packit c32a2d
m4_if(_LTDL_MODE, [],
Packit c32a2d
        [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
Packit c32a2d
        m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
Packit c32a2d
                [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
Packit c32a2d
Packit c32a2d
AC_ARG_WITH([included_ltdl],
Packit c32a2d
    [AS_HELP_STRING([--with-included-ltdl],
Packit c32a2d
                    [use the GNU ltdl sources included here])])
Packit c32a2d
Packit c32a2d
if test yes != "$with_included_ltdl"; then
Packit c32a2d
  # We are not being forced to use the included libltdl sources, so
Packit c32a2d
  # decide whether there is a useful installed version we can use.
Packit c32a2d
  AC_CHECK_HEADER([ltdl.h],
Packit c32a2d
      [AC_CHECK_DECL([lt_dlinterface_register],
Packit c32a2d
	   [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
Packit c32a2d
	       [with_included_ltdl=no],
Packit c32a2d
	       [with_included_ltdl=yes])],
Packit c32a2d
	   [with_included_ltdl=yes],
Packit c32a2d
	   [AC_INCLUDES_DEFAULT
Packit c32a2d
	    #include <ltdl.h>])],
Packit c32a2d
      [with_included_ltdl=yes],
Packit c32a2d
      [AC_INCLUDES_DEFAULT]
Packit c32a2d
  )
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
Packit c32a2d
dnl was called yet, then for old times' sake, we assume libltdl is in an
Packit c32a2d
dnl eponymous directory:
Packit c32a2d
AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
Packit c32a2d
Packit c32a2d
AC_ARG_WITH([ltdl_include],
Packit c32a2d
    [AS_HELP_STRING([--with-ltdl-include=DIR],
Packit c32a2d
                    [use the ltdl headers installed in DIR])])
Packit c32a2d
Packit c32a2d
if test -n "$with_ltdl_include"; then
Packit c32a2d
  if test -f "$with_ltdl_include/ltdl.h"; then :
Packit c32a2d
  else
Packit c32a2d
    AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
Packit c32a2d
  fi
Packit c32a2d
else
Packit c32a2d
  with_ltdl_include=no
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
AC_ARG_WITH([ltdl_lib],
Packit c32a2d
    [AS_HELP_STRING([--with-ltdl-lib=DIR],
Packit c32a2d
                    [use the libltdl.la installed in DIR])])
Packit c32a2d
Packit c32a2d
if test -n "$with_ltdl_lib"; then
Packit c32a2d
  if test -f "$with_ltdl_lib/libltdl.la"; then :
Packit c32a2d
  else
Packit c32a2d
    AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
Packit c32a2d
  fi
Packit c32a2d
else
Packit c32a2d
  with_ltdl_lib=no
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
Packit c32a2d
  ,yes,no,no,)
Packit c32a2d
	m4_case(m4_default(_LTDL_TYPE, [convenience]),
Packit c32a2d
	    [convenience], [_LTDL_CONVENIENCE],
Packit c32a2d
	    [installable], [_LTDL_INSTALLABLE],
Packit c32a2d
	  [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
Packit c32a2d
	;;
Packit c32a2d
  ,no,no,no,)
Packit c32a2d
	# If the included ltdl is not to be used, then use the
Packit c32a2d
	# preinstalled libltdl we found.
Packit c32a2d
	AC_DEFINE([HAVE_LTDL], [1],
Packit c32a2d
	  [Define this if a modern libltdl is already installed])
Packit c32a2d
	LIBLTDL=-lltdl
Packit c32a2d
	LTDLDEPS=
Packit c32a2d
	LTDLINCL=
Packit c32a2d
	;;
Packit c32a2d
  ,no*,no,*)
Packit c32a2d
	AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
Packit c32a2d
	;;
Packit c32a2d
  *)	with_included_ltdl=no
Packit c32a2d
	LIBLTDL="-L$with_ltdl_lib -lltdl"
Packit c32a2d
	LTDLDEPS=
Packit c32a2d
	LTDLINCL=-I$with_ltdl_include
Packit c32a2d
	;;
Packit c32a2d
esac
Packit c32a2d
INCLTDL=$LTDLINCL
Packit c32a2d
Packit c32a2d
# Report our decision...
Packit c32a2d
AC_MSG_CHECKING([where to find libltdl headers])
Packit c32a2d
AC_MSG_RESULT([$LTDLINCL])
Packit c32a2d
AC_MSG_CHECKING([where to find libltdl library])
Packit c32a2d
AC_MSG_RESULT([$LIBLTDL])
Packit c32a2d
Packit c32a2d
_LTDL_SETUP
Packit c32a2d
Packit c32a2d
dnl restore autoconf definition.
Packit c32a2d
m4_popdef([AC_LIBOBJ])
Packit c32a2d
m4_popdef([AC_LIBSOURCES])
Packit c32a2d
Packit c32a2d
AC_CONFIG_COMMANDS_PRE([
Packit c32a2d
    _ltdl_libobjs=
Packit c32a2d
    _ltdl_ltlibobjs=
Packit c32a2d
    if test -n "$_LT_LIBOBJS"; then
Packit c32a2d
      # Remove the extension.
Packit c32a2d
      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
Packit c32a2d
      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
Packit c32a2d
        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
Packit c32a2d
        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
Packit c32a2d
      done
Packit c32a2d
    fi
Packit c32a2d
    AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
Packit c32a2d
    AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Only expand once:
Packit c32a2d
m4_define([LTDL_INIT])
Packit c32a2d
])# LTDL_INIT
Packit c32a2d
Packit c32a2d
# Old names:
Packit c32a2d
AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
Packit c32a2d
AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
Packit c32a2d
AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LIB_LTDL], [])
Packit c32a2d
dnl AC_DEFUN([AC_WITH_LTDL], [])
Packit c32a2d
dnl AC_DEFUN([LT_WITH_LTDL], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LTDL_SETUP
Packit c32a2d
# -----------
Packit c32a2d
# Perform all the checks necessary for compilation of the ltdl objects
Packit c32a2d
#  -- including compiler checks and header checks.  This is a public
Packit c32a2d
# interface  mainly for the benefit of libltdl's own configure.ac, most
Packit c32a2d
# other users should call LTDL_INIT instead.
Packit c32a2d
AC_DEFUN([_LTDL_SETUP],
Packit c32a2d
[AC_REQUIRE([AC_PROG_CC])dnl
Packit c32a2d
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
Packit c32a2d
AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
Packit c32a2d
AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
Packit c32a2d
AC_REQUIRE([LT_LIB_DLLOAD])dnl
Packit c32a2d
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
Packit c32a2d
AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
Packit c32a2d
AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
Packit c32a2d
AC_REQUIRE([LT_FUNC_ARGZ])dnl
Packit c32a2d
Packit c32a2d
m4_require([_LT_CHECK_OBJDIR])dnl
Packit c32a2d
m4_require([_LT_HEADER_DLFCN])dnl
Packit c32a2d
m4_require([_LT_CHECK_DLPREOPEN])dnl
Packit c32a2d
m4_require([_LT_DECL_SED])dnl
Packit c32a2d
Packit c32a2d
dnl Don't require this, or it will be expanded earlier than the code
Packit c32a2d
dnl that sets the variables it relies on:
Packit c32a2d
_LT_ENABLE_INSTALL
Packit c32a2d
Packit c32a2d
dnl _LTDL_MODE specific code must be called at least once:
Packit c32a2d
_LTDL_MODE_DISPATCH
Packit c32a2d
Packit c32a2d
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
Packit c32a2d
# the user used.  This is so that ltdl.h can pick up the parent projects
Packit c32a2d
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
Packit c32a2d
# definitions required by ltdl.c.
Packit c32a2d
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
Packit c32a2d
AC_CONFIG_COMMANDS_PRE([dnl
Packit c32a2d
m4_pattern_allow([^LT_CONFIG_H$])dnl
Packit c32a2d
m4_ifset([AH_HEADER],
Packit c32a2d
    [LT_CONFIG_H=AH_HEADER],
Packit c32a2d
    [m4_ifset([AC_LIST_HEADERS],
Packit c32a2d
	    [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[      ]]*||;s|[[ :]].*$||'`],
Packit c32a2d
	[])])])
Packit c32a2d
AC_SUBST([LT_CONFIG_H])
Packit c32a2d
Packit c32a2d
AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
Packit c32a2d
	[], [], [AC_INCLUDES_DEFAULT])
Packit c32a2d
Packit c32a2d
AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
Packit c32a2d
AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
Packit c32a2d
Packit c32a2d
m4_pattern_allow([LT_LIBEXT])dnl
Packit c32a2d
AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
Packit c32a2d
Packit c32a2d
name=
Packit c32a2d
eval "lt_libprefix=\"$libname_spec\""
Packit c32a2d
m4_pattern_allow([LT_LIBPREFIX])dnl
Packit c32a2d
AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
Packit c32a2d
Packit c32a2d
name=ltdl
Packit c32a2d
eval "LTDLOPEN=\"$libname_spec\""
Packit c32a2d
AC_SUBST([LTDLOPEN])
Packit c32a2d
])# _LTDL_SETUP
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_ENABLE_INSTALL
Packit c32a2d
# ------------------
Packit c32a2d
m4_define([_LT_ENABLE_INSTALL],
Packit c32a2d
[AC_ARG_ENABLE([ltdl-install],
Packit c32a2d
    [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
Packit c32a2d
Packit c32a2d
case ,$enable_ltdl_install,$enable_ltdl_convenience in
Packit c32a2d
  *yes*) ;;
Packit c32a2d
  *) enable_ltdl_convenience=yes ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
m4_ifdef([AM_CONDITIONAL],
Packit c32a2d
[AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
Packit c32a2d
 AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
Packit c32a2d
])# _LT_ENABLE_INSTALL
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_DLOPEN_DEPLIBS
Packit c32a2d
# ---------------------
Packit c32a2d
AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
Packit c32a2d
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit c32a2d
AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
Packit c32a2d
  [lt_cv_sys_dlopen_deplibs],
Packit c32a2d
  [# PORTME does your system automatically load deplibs for dlopen?
Packit c32a2d
  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
Packit c32a2d
  # For now, we just catch OSes we know something about -- in the
Packit c32a2d
  # future, we'll try test this programmatically.
Packit c32a2d
  lt_cv_sys_dlopen_deplibs=unknown
Packit c32a2d
  case $host_os in
Packit c32a2d
  aix3*|aix4.1.*|aix4.2.*)
Packit c32a2d
    # Unknown whether this is true for these versions of AIX, but
Packit c32a2d
    # we want this 'case' here to explicitly catch those versions.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=unknown
Packit c32a2d
    ;;
Packit c32a2d
  aix[[4-9]]*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  amigaos*)
Packit c32a2d
    case $host_cpu in
Packit c32a2d
    powerpc)
Packit c32a2d
      lt_cv_sys_dlopen_deplibs=no
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
    ;;
Packit c32a2d
  bitrig*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  darwin*)
Packit c32a2d
    # Assuming the user has installed a libdl from somewhere, this is true
Packit c32a2d
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  freebsd* | dragonfly*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
Packit c32a2d
    # GNU and its variants, using gnu ld.so (Glibc)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  hpux10*|hpux11*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  interix*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  irix[[12345]]*|irix6.[[01]]*)
Packit c32a2d
    # Catch all versions of IRIX before 6.2, and indicate that we don't
Packit c32a2d
    # know how it worked for any of those versions.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=unknown
Packit c32a2d
    ;;
Packit c32a2d
  irix*)
Packit c32a2d
    # The case above catches anything before 6.2, and it's known that
Packit c32a2d
    # at 6.2 and later dlopen does load deplibs.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  netbsd*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  openbsd*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  osf[[1234]]*)
Packit c32a2d
    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
Packit c32a2d
    # it did *not* use an RPATH in a shared library to find objects the
Packit c32a2d
    # library depends on, so we explicitly say 'no'.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=no
Packit c32a2d
    ;;
Packit c32a2d
  osf5.0|osf5.0a|osf5.1)
Packit c32a2d
    # dlopen *does* load deplibs and with the right loader patch applied
Packit c32a2d
    # it even uses RPATH in a shared library to search for shared objects
Packit c32a2d
    # that the library depends on, but there's no easy way to know if that
Packit c32a2d
    # patch is installed.  Since this is the case, all we can really
Packit c32a2d
    # say is unknown -- it depends on the patch being installed.  If
Packit c32a2d
    # it is, this changes to 'yes'.  Without it, it would be 'no'.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=unknown
Packit c32a2d
    ;;
Packit c32a2d
  osf*)
Packit c32a2d
    # the two cases above should catch all versions of osf <= 5.1.  Read
Packit c32a2d
    # the comments above for what we know about them.
Packit c32a2d
    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
Packit c32a2d
    # is used to find them so we can finally say 'yes'.
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  qnx*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  solaris*)
Packit c32a2d
    lt_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit c32a2d
    libltdl_cv_sys_dlopen_deplibs=yes
Packit c32a2d
    ;;
Packit c32a2d
  esac
Packit c32a2d
  ])
Packit c32a2d
if test yes != "$lt_cv_sys_dlopen_deplibs"; then
Packit c32a2d
 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
Packit c32a2d
    [Define if the OS needs help to load dependent libraries for dlopen().])
Packit c32a2d
fi
Packit c32a2d
])# LT_SYS_DLOPEN_DEPLIBS
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_MODULE_EXT
Packit c32a2d
# -----------------
Packit c32a2d
AC_DEFUN([LT_SYS_MODULE_EXT],
Packit c32a2d
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
Packit c32a2d
AC_CACHE_CHECK([what extension is used for runtime loadable modules],
Packit c32a2d
  [libltdl_cv_shlibext],
Packit c32a2d
[
Packit c32a2d
module=yes
Packit c32a2d
eval libltdl_cv_shlibext=$shrext_cmds
Packit c32a2d
module=no
Packit c32a2d
eval libltdl_cv_shrext=$shrext_cmds
Packit c32a2d
  ])
Packit c32a2d
if test -n "$libltdl_cv_shlibext"; then
Packit c32a2d
  m4_pattern_allow([LT_MODULE_EXT])dnl
Packit c32a2d
  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
Packit c32a2d
    [Define to the extension used for runtime loadable modules, say, ".so".])
Packit c32a2d
fi
Packit c32a2d
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
Packit c32a2d
  m4_pattern_allow([LT_SHARED_EXT])dnl
Packit c32a2d
  AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
Packit c32a2d
    [Define to the shared library suffix, say, ".dylib".])
Packit c32a2d
fi
Packit c32a2d
if test -n "$shared_archive_member_spec"; then
Packit c32a2d
  m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
Packit c32a2d
  AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
Packit c32a2d
    [Define to the shared archive member specification, say "(shr.o)".])
Packit c32a2d
fi
Packit c32a2d
])# LT_SYS_MODULE_EXT
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_MODULE_PATH
Packit c32a2d
# ------------------
Packit c32a2d
AC_DEFUN([LT_SYS_MODULE_PATH],
Packit c32a2d
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
Packit c32a2d
AC_CACHE_CHECK([what variable specifies run-time module search path],
Packit c32a2d
  [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
Packit c32a2d
if test -n "$lt_cv_module_path_var"; then
Packit c32a2d
  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
Packit c32a2d
  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
Packit c32a2d
    [Define to the name of the environment variable that determines the run-time module search path.])
Packit c32a2d
fi
Packit c32a2d
])# LT_SYS_MODULE_PATH
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_DLSEARCH_PATH
Packit c32a2d
# --------------------
Packit c32a2d
AC_DEFUN([LT_SYS_DLSEARCH_PATH],
Packit c32a2d
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
Packit c32a2d
AC_CACHE_CHECK([for the default library search path],
Packit c32a2d
  [lt_cv_sys_dlsearch_path],
Packit c32a2d
  [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
Packit c32a2d
if test -n "$lt_cv_sys_dlsearch_path"; then
Packit c32a2d
  sys_dlsearch_path=
Packit c32a2d
  for dir in $lt_cv_sys_dlsearch_path; do
Packit c32a2d
    if test -z "$sys_dlsearch_path"; then
Packit c32a2d
      sys_dlsearch_path=$dir
Packit c32a2d
    else
Packit c32a2d
      sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  m4_pattern_allow([LT_DLSEARCH_PATH])dnl
Packit c32a2d
  AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
Packit c32a2d
    [Define to the system default library search path.])
Packit c32a2d
fi
Packit c32a2d
])# LT_SYS_DLSEARCH_PATH
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _LT_CHECK_DLPREOPEN
Packit c32a2d
# -------------------
Packit c32a2d
m4_defun([_LT_CHECK_DLPREOPEN],
Packit c32a2d
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit c32a2d
AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
Packit c32a2d
  [libltdl_cv_preloaded_symbols],
Packit c32a2d
  [if test -n "$lt_cv_sys_global_symbol_pipe"; then
Packit c32a2d
    libltdl_cv_preloaded_symbols=yes
Packit c32a2d
  else
Packit c32a2d
    libltdl_cv_preloaded_symbols=no
Packit c32a2d
  fi
Packit c32a2d
  ])
Packit c32a2d
if test yes = "$libltdl_cv_preloaded_symbols"; then
Packit c32a2d
  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
Packit c32a2d
    [Define if libtool can extract symbol lists from object files.])
Packit c32a2d
fi
Packit c32a2d
])# _LT_CHECK_DLPREOPEN
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_LIB_DLLOAD
Packit c32a2d
# -------------
Packit c32a2d
AC_DEFUN([LT_LIB_DLLOAD],
Packit c32a2d
[m4_pattern_allow([^LT_DLLOADERS$])
Packit c32a2d
LT_DLLOADERS=
Packit c32a2d
AC_SUBST([LT_DLLOADERS])
Packit c32a2d
Packit c32a2d
AC_LANG_PUSH([C])
Packit c32a2d
lt_dlload_save_LIBS=$LIBS
Packit c32a2d
Packit c32a2d
LIBADD_DLOPEN=
Packit c32a2d
AC_SEARCH_LIBS([dlopen], [dl],
Packit c32a2d
	[AC_DEFINE([HAVE_LIBDL], [1],
Packit c32a2d
		   [Define if you have the libdl library or equivalent.])
Packit c32a2d
	if test "$ac_cv_search_dlopen" != "none required"; then
Packit c32a2d
	  LIBADD_DLOPEN=-ldl
Packit c32a2d
	fi
Packit c32a2d
	libltdl_cv_lib_dl_dlopen=yes
Packit c32a2d
	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
Packit c32a2d
    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
Packit c32a2d
#  include <dlfcn.h>
Packit c32a2d
#endif
Packit c32a2d
    ]], [[dlopen(0, 0);]])],
Packit c32a2d
	    [AC_DEFINE([HAVE_LIBDL], [1],
Packit c32a2d
		       [Define if you have the libdl library or equivalent.])
Packit c32a2d
	    libltdl_cv_func_dlopen=yes
Packit c32a2d
	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
Packit c32a2d
	[AC_CHECK_LIB([svld], [dlopen],
Packit c32a2d
		[AC_DEFINE([HAVE_LIBDL], [1],
Packit c32a2d
			 [Define if you have the libdl library or equivalent.])
Packit c32a2d
	        LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
Packit c32a2d
		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
Packit c32a2d
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
Packit c32a2d
then
Packit c32a2d
  lt_save_LIBS=$LIBS
Packit c32a2d
  LIBS="$LIBS $LIBADD_DLOPEN"
Packit c32a2d
  AC_CHECK_FUNCS([dlerror])
Packit c32a2d
  LIBS=$lt_save_LIBS
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([LIBADD_DLOPEN])
Packit c32a2d
Packit c32a2d
LIBADD_SHL_LOAD=
Packit c32a2d
AC_CHECK_FUNC([shl_load],
Packit c32a2d
	[AC_DEFINE([HAVE_SHL_LOAD], [1],
Packit c32a2d
		   [Define if you have the shl_load function.])
Packit c32a2d
	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
Packit c32a2d
    [AC_CHECK_LIB([dld], [shl_load],
Packit c32a2d
	    [AC_DEFINE([HAVE_SHL_LOAD], [1],
Packit c32a2d
		       [Define if you have the shl_load function.])
Packit c32a2d
	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
Packit c32a2d
	    LIBADD_SHL_LOAD=-ldld])])
Packit c32a2d
AC_SUBST([LIBADD_SHL_LOAD])
Packit c32a2d
Packit c32a2d
case $host_os in
Packit c32a2d
darwin[[1567]].*)
Packit c32a2d
# We only want this for pre-Mac OS X 10.4.
Packit c32a2d
  AC_CHECK_FUNC([_dyld_func_lookup],
Packit c32a2d
	[AC_DEFINE([HAVE_DYLD], [1],
Packit c32a2d
		   [Define if you have the _dyld_func_lookup function.])
Packit c32a2d
	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
Packit c32a2d
  ;;
Packit c32a2d
beos*)
Packit c32a2d
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
Packit c32a2d
  ;;
Packit c32a2d
cygwin* | mingw* | pw32*)
Packit c32a2d
  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
Packit c32a2d
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
AC_CHECK_LIB([dld], [dld_link],
Packit c32a2d
	[AC_DEFINE([HAVE_DLD], [1],
Packit c32a2d
		   [Define if you have the GNU dld library.])
Packit c32a2d
		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
Packit c32a2d
AC_SUBST([LIBADD_DLD_LINK])
Packit c32a2d
Packit c32a2d
m4_pattern_allow([^LT_DLPREOPEN$])
Packit c32a2d
LT_DLPREOPEN=
Packit c32a2d
if test -n "$LT_DLLOADERS"
Packit c32a2d
then
Packit c32a2d
  for lt_loader in $LT_DLLOADERS; do
Packit c32a2d
    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
Packit c32a2d
  done
Packit c32a2d
  AC_DEFINE([HAVE_LIBDLLOADER], [1],
Packit c32a2d
            [Define if libdlloader will be built on this platform])
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([LT_DLPREOPEN])
Packit c32a2d
Packit c32a2d
dnl This isn't used anymore, but set it for backwards compatibility
Packit c32a2d
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
Packit c32a2d
AC_SUBST([LIBADD_DL])
Packit c32a2d
Packit c32a2d
LIBS=$lt_dlload_save_LIBS
Packit c32a2d
AC_LANG_POP
Packit c32a2d
])# LT_LIB_DLLOAD
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_DLLIB], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_SYS_SYMBOL_USCORE
Packit c32a2d
# --------------------
Packit c32a2d
# does the compiler prefix global symbols with an underscore?
Packit c32a2d
AC_DEFUN([LT_SYS_SYMBOL_USCORE],
Packit c32a2d
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
Packit c32a2d
AC_CACHE_CHECK([for _ prefix in compiled symbols],
Packit c32a2d
  [lt_cv_sys_symbol_underscore],
Packit c32a2d
  [lt_cv_sys_symbol_underscore=no
Packit c32a2d
  cat > conftest.$ac_ext <<_LT_EOF
Packit c32a2d
void nm_test_func(){}
Packit c32a2d
int main(){nm_test_func;return 0;}
Packit c32a2d
_LT_EOF
Packit c32a2d
  if AC_TRY_EVAL(ac_compile); then
Packit c32a2d
    # Now try to grab the symbols.
Packit c32a2d
    ac_nlist=conftest.nm
Packit c32a2d
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
Packit c32a2d
      # See whether the symbols have a leading underscore.
Packit c32a2d
      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
Packit c32a2d
        lt_cv_sys_symbol_underscore=yes
Packit c32a2d
      else
Packit c32a2d
        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
Packit c32a2d
	  :
Packit c32a2d
        else
Packit c32a2d
	  echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
Packit c32a2d
        fi
Packit c32a2d
      fi
Packit c32a2d
    else
Packit c32a2d
      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
Packit c32a2d
    fi
Packit c32a2d
  else
Packit c32a2d
    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
Packit c32a2d
    cat conftest.c >&AS_MESSAGE_LOG_FD
Packit c32a2d
  fi
Packit c32a2d
  rm -rf conftest*
Packit c32a2d
  ])
Packit c32a2d
  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
Packit c32a2d
  AC_SUBST([sys_symbol_underscore])
Packit c32a2d
])# LT_SYS_SYMBOL_USCORE
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# LT_FUNC_DLSYM_USCORE
Packit c32a2d
# --------------------
Packit c32a2d
AC_DEFUN([LT_FUNC_DLSYM_USCORE],
Packit c32a2d
[AC_REQUIRE([_LT_COMPILER_PIC])dnl	for lt_prog_compiler_wl
Packit c32a2d
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl	for lt_cv_sys_symbol_underscore
Packit c32a2d
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl	for libltdl_cv_shlibext
Packit c32a2d
if test yes = "$lt_cv_sys_symbol_underscore"; then
Packit c32a2d
  if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
Packit c32a2d
    AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
Packit c32a2d
      [libltdl_cv_need_uscore],
Packit c32a2d
      [libltdl_cv_need_uscore=unknown
Packit c32a2d
      dlsym_uscore_save_LIBS=$LIBS
Packit c32a2d
      LIBS="$LIBS $LIBADD_DLOPEN"
Packit c32a2d
      libname=conftmod # stay within 8.3 filename limits!
Packit c32a2d
      cat >$libname.$ac_ext <<_LT_EOF
Packit c32a2d
[#line $LINENO "configure"
Packit c32a2d
#include "confdefs.h"
Packit c32a2d
/* When -fvisibility=hidden is used, assume the code has been annotated
Packit c32a2d
   correspondingly for the symbols needed.  */
Packit c32a2d
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Packit c32a2d
int fnord () __attribute__((visibility("default")));
Packit c32a2d
#endif
Packit c32a2d
int fnord () { return 42; }]
Packit c32a2d
_LT_EOF
Packit c32a2d
Packit c32a2d
      # ltfn_module_cmds module_cmds
Packit c32a2d
      # Execute tilde-delimited MODULE_CMDS with environment primed for
Packit c32a2d
      # $module_cmds or $archive_cmds type content.
Packit c32a2d
      ltfn_module_cmds ()
Packit c32a2d
      {( # subshell avoids polluting parent global environment
Packit c32a2d
          module_cmds_save_ifs=$IFS; IFS='~'
Packit c32a2d
          for cmd in @S|@1; do
Packit c32a2d
            IFS=$module_cmds_save_ifs
Packit c32a2d
            libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
Packit c32a2d
            rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
Packit c32a2d
            major=; versuffix=; verstring=; deplibs=
Packit c32a2d
            ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
Packit c32a2d
            eval $cmd
Packit c32a2d
          done
Packit c32a2d
          IFS=$module_cmds_save_ifs
Packit c32a2d
      )}
Packit c32a2d
Packit c32a2d
      # Compile a loadable module using libtool macro expansion results.
Packit c32a2d
      $CC $pic_flag -c $libname.$ac_ext
Packit c32a2d
      ltfn_module_cmds "${module_cmds:-$archive_cmds}"
Packit c32a2d
Packit c32a2d
      # Try to fetch fnord with dlsym().
Packit c32a2d
      libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
Packit c32a2d
      cat >conftest.$ac_ext <<_LT_EOF
Packit c32a2d
[#line $LINENO "configure"
Packit c32a2d
#include "confdefs.h"
Packit c32a2d
#if HAVE_DLFCN_H
Packit c32a2d
#include <dlfcn.h>
Packit c32a2d
#endif
Packit c32a2d
#include <stdio.h>
Packit c32a2d
#ifndef RTLD_GLOBAL
Packit c32a2d
#  ifdef DL_GLOBAL
Packit c32a2d
#    define RTLD_GLOBAL DL_GLOBAL
Packit c32a2d
#  else
Packit c32a2d
#    define RTLD_GLOBAL 0
Packit c32a2d
#  endif
Packit c32a2d
#endif
Packit c32a2d
#ifndef RTLD_NOW
Packit c32a2d
#  ifdef DL_NOW
Packit c32a2d
#    define RTLD_NOW DL_NOW
Packit c32a2d
#  else
Packit c32a2d
#    define RTLD_NOW 0
Packit c32a2d
#  endif
Packit c32a2d
#endif
Packit c32a2d
int main () {
Packit c32a2d
  void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
Packit c32a2d
  int status = $libltdl_dlunknown;
Packit c32a2d
  if (handle) {
Packit c32a2d
    if (dlsym (handle, "fnord"))
Packit c32a2d
      status = $libltdl_dlnouscore;
Packit c32a2d
    else {
Packit c32a2d
      if (dlsym (handle, "_fnord"))
Packit c32a2d
        status = $libltdl_dluscore;
Packit c32a2d
      else
Packit c32a2d
	puts (dlerror ());
Packit c32a2d
    }
Packit c32a2d
    dlclose (handle);
Packit c32a2d
  } else
Packit c32a2d
    puts (dlerror ());
Packit c32a2d
  return status;
Packit c32a2d
}]
Packit c32a2d
_LT_EOF
Packit c32a2d
      if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
Packit c32a2d
        (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
Packit c32a2d
        libltdl_status=$?
Packit c32a2d
        case x$libltdl_status in
Packit c32a2d
          x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
Packit c32a2d
	  x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
Packit c32a2d
	  x*) libltdl_cv_need_uscore=unknown ;;
Packit c32a2d
        esac
Packit c32a2d
      fi
Packit c32a2d
      rm -rf conftest* $libname*
Packit c32a2d
      LIBS=$dlsym_uscore_save_LIBS
Packit c32a2d
    ])
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
if test yes = "$libltdl_cv_need_uscore"; then
Packit c32a2d
  AC_DEFINE([NEED_USCORE], [1],
Packit c32a2d
    [Define if dlsym() requires a leading underscore in symbol names.])
Packit c32a2d
fi
Packit c32a2d
])# LT_FUNC_DLSYM_USCORE
Packit c32a2d
Packit c32a2d
# Old name:
Packit c32a2d
AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
Packit c32a2d
dnl aclocal-1.4 backwards compatibility:
Packit c32a2d
dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
Packit c32a2d
Packit c32a2d
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
Packit c32a2d
# serial 1 (pkg-config-0.24)
Packit c32a2d
# 
Packit c32a2d
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
Packit c32a2d
#
Packit c32a2d
# This program is free software; you can redistribute it and/or modify
Packit c32a2d
# it under the terms of the GNU General Public License as published by
Packit c32a2d
# the Free Software Foundation; either version 2 of the License, or
Packit c32a2d
# (at your option) any later version.
Packit c32a2d
#
Packit c32a2d
# This program is distributed in the hope that it will be useful, but
Packit c32a2d
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit c32a2d
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit c32a2d
# General Public License for more details.
Packit c32a2d
#
Packit c32a2d
# You should have received a copy of the GNU General Public License
Packit c32a2d
# along with this program; if not, write to the Free Software
Packit c32a2d
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit c32a2d
#
Packit c32a2d
# As a special exception to the GNU General Public License, if you
Packit c32a2d
# distribute this file as part of a program that contains a
Packit c32a2d
# configuration script generated by Autoconf, you may include it under
Packit c32a2d
# the same distribution terms that you use for the rest of that program.
Packit c32a2d
Packit c32a2d
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
Packit c32a2d
# ----------------------------------
Packit c32a2d
AC_DEFUN([PKG_PROG_PKG_CONFIG],
Packit c32a2d
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
Packit c32a2d
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
Packit c32a2d
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
Packit c32a2d
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
Packit c32a2d
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
Packit c32a2d
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
Packit c32a2d
Packit c32a2d
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Packit c32a2d
	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
Packit c32a2d
fi
Packit c32a2d
if test -n "$PKG_CONFIG"; then
Packit c32a2d
	_pkg_min_version=m4_default([$1], [0.9.0])
Packit c32a2d
	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
Packit c32a2d
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Packit c32a2d
		AC_MSG_RESULT([yes])
Packit c32a2d
	else
Packit c32a2d
		AC_MSG_RESULT([no])
Packit c32a2d
		PKG_CONFIG=""
Packit c32a2d
	fi
Packit c32a2d
fi[]dnl
Packit c32a2d
])# PKG_PROG_PKG_CONFIG
Packit c32a2d
Packit c32a2d
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit c32a2d
#
Packit c32a2d
# Check to see whether a particular set of modules exists.  Similar
Packit c32a2d
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
Packit c32a2d
#
Packit c32a2d
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit c32a2d
# only at the first occurence in configure.ac, so if the first place
Packit c32a2d
# it's called might be skipped (such as if it is within an "if", you
Packit c32a2d
# have to call PKG_CHECK_EXISTS manually
Packit c32a2d
# --------------------------------------------------------------
Packit c32a2d
AC_DEFUN([PKG_CHECK_EXISTS],
Packit c32a2d
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit c32a2d
if test -n "$PKG_CONFIG" && \
Packit c32a2d
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
Packit c32a2d
  m4_default([$2], [:])
Packit c32a2d
m4_ifvaln([$3], [else
Packit c32a2d
  $3])dnl
Packit c32a2d
fi])
Packit c32a2d
Packit c32a2d
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
Packit c32a2d
# ---------------------------------------------
Packit c32a2d
m4_define([_PKG_CONFIG],
Packit c32a2d
[if test -n "$$1"; then
Packit c32a2d
    pkg_cv_[]$1="$$1"
Packit c32a2d
 elif test -n "$PKG_CONFIG"; then
Packit c32a2d
    PKG_CHECK_EXISTS([$3],
Packit c32a2d
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
Packit c32a2d
		      test "x$?" != "x0" && pkg_failed=yes ],
Packit c32a2d
		     [pkg_failed=yes])
Packit c32a2d
 else
Packit c32a2d
    pkg_failed=untried
Packit c32a2d
fi[]dnl
Packit c32a2d
])# _PKG_CONFIG
Packit c32a2d
Packit c32a2d
# _PKG_SHORT_ERRORS_SUPPORTED
Packit c32a2d
# -----------------------------
Packit c32a2d
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
Packit c32a2d
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
Packit c32a2d
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
Packit c32a2d
        _pkg_short_errors_supported=yes
Packit c32a2d
else
Packit c32a2d
        _pkg_short_errors_supported=no
Packit c32a2d
fi[]dnl
Packit c32a2d
])# _PKG_SHORT_ERRORS_SUPPORTED
Packit c32a2d
Packit c32a2d
Packit c32a2d
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
Packit c32a2d
# [ACTION-IF-NOT-FOUND])
Packit c32a2d
#
Packit c32a2d
#
Packit c32a2d
# Note that if there is a possibility the first call to
Packit c32a2d
# PKG_CHECK_MODULES might not happen, you should be sure to include an
Packit c32a2d
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
Packit c32a2d
#
Packit c32a2d
#
Packit c32a2d
# --------------------------------------------------------------
Packit c32a2d
AC_DEFUN([PKG_CHECK_MODULES],
Packit c32a2d
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit c32a2d
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
Packit c32a2d
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
Packit c32a2d
Packit c32a2d
pkg_failed=no
Packit c32a2d
AC_MSG_CHECKING([for $1])
Packit c32a2d
Packit c32a2d
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
Packit c32a2d
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
Packit c32a2d
Packit c32a2d
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
Packit c32a2d
and $1[]_LIBS to avoid the need to call pkg-config.
Packit c32a2d
See the pkg-config man page for more details.])
Packit c32a2d
Packit c32a2d
if test $pkg_failed = yes; then
Packit c32a2d
   	AC_MSG_RESULT([no])
Packit c32a2d
        _PKG_SHORT_ERRORS_SUPPORTED
Packit c32a2d
        if test $_pkg_short_errors_supported = yes; then
Packit c32a2d
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
Packit c32a2d
        else 
Packit c32a2d
	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
Packit c32a2d
        fi
Packit c32a2d
	# Put the nasty error message in config.log where it belongs
Packit c32a2d
	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Packit c32a2d
Packit c32a2d
	m4_default([$4], [AC_MSG_ERROR(
Packit c32a2d
[Package requirements ($2) were not met:
Packit c32a2d
Packit c32a2d
$$1_PKG_ERRORS
Packit c32a2d
Packit c32a2d
Consider adjusting the PKG_CONFIG_PATH environment variable if you
Packit c32a2d
installed software in a non-standard prefix.
Packit c32a2d
Packit c32a2d
_PKG_TEXT])[]dnl
Packit c32a2d
        ])
Packit c32a2d
elif test $pkg_failed = untried; then
Packit c32a2d
     	AC_MSG_RESULT([no])
Packit c32a2d
	m4_default([$4], [AC_MSG_FAILURE(
Packit c32a2d
[The pkg-config script could not be found or is too old.  Make sure it
Packit c32a2d
is in your PATH or set the PKG_CONFIG environment variable to the full
Packit c32a2d
path to pkg-config.
Packit c32a2d
Packit c32a2d
_PKG_TEXT
Packit c32a2d
Packit c32a2d
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
Packit c32a2d
        ])
Packit c32a2d
else
Packit c32a2d
	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
Packit c32a2d
	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
Packit c32a2d
        AC_MSG_RESULT([yes])
Packit c32a2d
	$3
Packit c32a2d
fi[]dnl
Packit c32a2d
])# PKG_CHECK_MODULES
Packit c32a2d
Packit c32a2d
Packit c32a2d
# PKG_INSTALLDIR(DIRECTORY)
Packit c32a2d
# -------------------------
Packit c32a2d
# Substitutes the variable pkgconfigdir as the location where a module
Packit c32a2d
# should install pkg-config .pc files. By default the directory is
Packit c32a2d
# $libdir/pkgconfig, but the default can be changed by passing
Packit c32a2d
# DIRECTORY. The user can override through the --with-pkgconfigdir
Packit c32a2d
# parameter.
Packit c32a2d
AC_DEFUN([PKG_INSTALLDIR],
Packit c32a2d
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
Packit c32a2d
m4_pushdef([pkg_description],
Packit c32a2d
    [pkg-config installation directory @<:@]pkg_default[@:>@])
Packit c32a2d
AC_ARG_WITH([pkgconfigdir],
Packit c32a2d
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
Packit c32a2d
    [with_pkgconfigdir=]pkg_default)
Packit c32a2d
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
Packit c32a2d
m4_popdef([pkg_default])
Packit c32a2d
m4_popdef([pkg_description])
Packit c32a2d
]) dnl PKG_INSTALLDIR
Packit c32a2d
Packit c32a2d
Packit c32a2d
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
Packit c32a2d
# -------------------------
Packit c32a2d
# Substitutes the variable noarch_pkgconfigdir as the location where a
Packit c32a2d
# module should install arch-independent pkg-config .pc files. By
Packit c32a2d
# default the directory is $datadir/pkgconfig, but the default can be
Packit c32a2d
# changed by passing DIRECTORY. The user can override through the
Packit c32a2d
# --with-noarch-pkgconfigdir parameter.
Packit c32a2d
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
Packit c32a2d
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
Packit c32a2d
m4_pushdef([pkg_description],
Packit c32a2d
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
Packit c32a2d
AC_ARG_WITH([noarch-pkgconfigdir],
Packit c32a2d
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
Packit c32a2d
    [with_noarch_pkgconfigdir=]pkg_default)
Packit c32a2d
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
Packit c32a2d
m4_popdef([pkg_default])
Packit c32a2d
m4_popdef([pkg_description])
Packit c32a2d
]) dnl PKG_NOARCH_INSTALLDIR
Packit c32a2d
Packit c32a2d
Packit c32a2d
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
Packit c32a2d
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
Packit c32a2d
# -------------------------------------------
Packit c32a2d
# Retrieves the value of the pkg-config variable for the given module.
Packit c32a2d
AC_DEFUN([PKG_CHECK_VAR],
Packit c32a2d
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
Packit c32a2d
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
Packit c32a2d
Packit c32a2d
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
Packit c32a2d
AS_VAR_COPY([$1], [pkg_cv_][$1])
Packit c32a2d
Packit c32a2d
AS_VAR_IF([$1], [""], [$5], [$4])dnl
Packit c32a2d
])# PKG_CHECK_VAR
Packit c32a2d
Packit c32a2d
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_AUTOMAKE_VERSION(VERSION)
Packit c32a2d
# ----------------------------
Packit c32a2d
# Automake X.Y traces this macro to ensure aclocal.m4 has been
Packit c32a2d
# generated from the m4 files accompanying Automake X.Y.
Packit c32a2d
# (This private macro should not be called outside this file.)
Packit c32a2d
AC_DEFUN([AM_AUTOMAKE_VERSION],
Packit c32a2d
[am__api_version='1.15'
Packit c32a2d
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
Packit c32a2d
dnl require some minimum version.  Point them to the right macro.
Packit c32a2d
m4_if([$1], [1.15.1], [],
Packit c32a2d
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# _AM_AUTOCONF_VERSION(VERSION)
Packit c32a2d
# -----------------------------
Packit c32a2d
# aclocal traces this macro to find the Autoconf version.
Packit c32a2d
# This is a private macro too.  Using m4_define simplifies
Packit c32a2d
# the logic in aclocal, which can simply ignore this definition.
Packit c32a2d
m4_define([_AM_AUTOCONF_VERSION], [])
Packit c32a2d
Packit c32a2d
# AM_SET_CURRENT_AUTOMAKE_VERSION
Packit c32a2d
# -------------------------------
Packit c32a2d
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
Packit c32a2d
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
Packit c32a2d
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
Packit c32a2d
[AM_AUTOMAKE_VERSION([1.15.1])dnl
Packit c32a2d
m4_ifndef([AC_AUTOCONF_VERSION],
Packit c32a2d
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
Packit c32a2d
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
Packit c32a2d
Packit c32a2d
# Figure out how to run the assembler.                      -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_PROG_AS
Packit c32a2d
# ----------
Packit c32a2d
AC_DEFUN([AM_PROG_AS],
Packit c32a2d
[# By default we simply use the C compiler to build assembly code.
Packit c32a2d
AC_REQUIRE([AC_PROG_CC])
Packit c32a2d
test "${CCAS+set}" = set || CCAS=$CC
Packit c32a2d
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
Packit c32a2d
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
Packit c32a2d
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
Packit c32a2d
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
Packit c32a2d
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
Packit c32a2d
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
Packit c32a2d
#
Packit c32a2d
# Of course, Automake must honor this variable whenever it calls a
Packit c32a2d
# tool from the auxiliary directory.  The problem is that $srcdir (and
Packit c32a2d
# therefore $ac_aux_dir as well) can be either absolute or relative,
Packit c32a2d
# depending on how configure is run.  This is pretty annoying, since
Packit c32a2d
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
Packit c32a2d
# source directory, any form will work fine, but in subdirectories a
Packit c32a2d
# relative path needs to be adjusted first.
Packit c32a2d
#
Packit c32a2d
# $ac_aux_dir/missing
Packit c32a2d
#    fails when called from a subdirectory if $ac_aux_dir is relative
Packit c32a2d
# $top_srcdir/$ac_aux_dir/missing
Packit c32a2d
#    fails if $ac_aux_dir is absolute,
Packit c32a2d
#    fails when called from a subdirectory in a VPATH build with
Packit c32a2d
#          a relative $ac_aux_dir
Packit c32a2d
#
Packit c32a2d
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
Packit c32a2d
# are both prefixed by $srcdir.  In an in-source build this is usually
Packit c32a2d
# harmless because $srcdir is '.', but things will broke when you
Packit c32a2d
# start a VPATH build or use an absolute $srcdir.
Packit c32a2d
#
Packit c32a2d
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
Packit c32a2d
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
Packit c32a2d
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
Packit c32a2d
# and then we would define $MISSING as
Packit c32a2d
#   MISSING="\${SHELL} $am_aux_dir/missing"
Packit c32a2d
# This will work as long as MISSING is not called from configure, because
Packit c32a2d
# unfortunately $(top_srcdir) has no meaning in configure.
Packit c32a2d
# However there are other variables, like CC, which are often used in
Packit c32a2d
# configure, and could therefore not use this "fixed" $ac_aux_dir.
Packit c32a2d
#
Packit c32a2d
# Another solution, used here, is to always expand $ac_aux_dir to an
Packit c32a2d
# absolute PATH.  The drawback is that using absolute paths prevent a
Packit c32a2d
# configured tree to be moved without reconfiguration.
Packit c32a2d
Packit c32a2d
AC_DEFUN([AM_AUX_DIR_EXPAND],
Packit c32a2d
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
Packit c32a2d
# Expand $ac_aux_dir to an absolute path.
Packit c32a2d
am_aux_dir=`cd "$ac_aux_dir" && pwd`
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# AM_CONDITIONAL                                            -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
Packit c32a2d
# -------------------------------------
Packit c32a2d
# Define a conditional.
Packit c32a2d
AC_DEFUN([AM_CONDITIONAL],
Packit c32a2d
[AC_PREREQ([2.52])dnl
Packit c32a2d
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
Packit c32a2d
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
Packit c32a2d
AC_SUBST([$1_TRUE])dnl
Packit c32a2d
AC_SUBST([$1_FALSE])dnl
Packit c32a2d
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
Packit c32a2d
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
Packit c32a2d
m4_define([_AM_COND_VALUE_$1], [$2])dnl
Packit c32a2d
if $2; then
Packit c32a2d
  $1_TRUE=
Packit c32a2d
  $1_FALSE='#'
Packit c32a2d
else
Packit c32a2d
  $1_TRUE='#'
Packit c32a2d
  $1_FALSE=
Packit c32a2d
fi
Packit c32a2d
AC_CONFIG_COMMANDS_PRE(
Packit c32a2d
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
Packit c32a2d
  AC_MSG_ERROR([[conditional "$1" was never defined.
Packit c32a2d
Usually this means the macro was only invoked conditionally.]])
Packit c32a2d
fi])])
Packit c32a2d
Packit c32a2d
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
Packit c32a2d
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
Packit c32a2d
# written in clear, in which case automake, when reading aclocal.m4,
Packit c32a2d
# will think it sees a *use*, and therefore will trigger all it's
Packit c32a2d
# C support machinery.  Also note that it means that autoscan, seeing
Packit c32a2d
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _AM_DEPENDENCIES(NAME)
Packit c32a2d
# ----------------------
Packit c32a2d
# See how the compiler implements dependency checking.
Packit c32a2d
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
Packit c32a2d
# We try a few techniques and use that to set a single cache variable.
Packit c32a2d
#
Packit c32a2d
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
Packit c32a2d
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
Packit c32a2d
# dependency, and given that the user is not expected to run this macro,
Packit c32a2d
# just rely on AC_PROG_CC.
Packit c32a2d
AC_DEFUN([_AM_DEPENDENCIES],
Packit c32a2d
[AC_REQUIRE([AM_SET_DEPDIR])dnl
Packit c32a2d
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
Packit c32a2d
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
Packit c32a2d
AC_REQUIRE([AM_DEP_TRACK])dnl
Packit c32a2d
Packit c32a2d
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
Packit c32a2d
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
Packit c32a2d
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
Packit c32a2d
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
Packit c32a2d
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
Packit c32a2d
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
Packit c32a2d
                    [depcc="$$1"   am_compiler_list=])
Packit c32a2d
Packit c32a2d
AC_CACHE_CHECK([dependency style of $depcc],
Packit c32a2d
               [am_cv_$1_dependencies_compiler_type],
Packit c32a2d
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
Packit c32a2d
  # We make a subdir and do the tests there.  Otherwise we can end up
Packit c32a2d
  # making bogus files that we don't know about and never remove.  For
Packit c32a2d
  # instance it was reported that on HP-UX the gcc test will end up
Packit c32a2d
  # making a dummy file named 'D' -- because '-MD' means "put the output
Packit c32a2d
  # in D".
Packit c32a2d
  rm -rf conftest.dir
Packit c32a2d
  mkdir conftest.dir
Packit c32a2d
  # Copy depcomp to subdir because otherwise we won't find it if we're
Packit c32a2d
  # using a relative directory.
Packit c32a2d
  cp "$am_depcomp" conftest.dir
Packit c32a2d
  cd conftest.dir
Packit c32a2d
  # We will build objects and dependencies in a subdirectory because
Packit c32a2d
  # it helps to detect inapplicable dependency modes.  For instance
Packit c32a2d
  # both Tru64's cc and ICC support -MD to output dependencies as a
Packit c32a2d
  # side effect of compilation, but ICC will put the dependencies in
Packit c32a2d
  # the current directory while Tru64 will put them in the object
Packit c32a2d
  # directory.
Packit c32a2d
  mkdir sub
Packit c32a2d
Packit c32a2d
  am_cv_$1_dependencies_compiler_type=none
Packit c32a2d
  if test "$am_compiler_list" = ""; then
Packit c32a2d
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
Packit c32a2d
  fi
Packit c32a2d
  am__universal=false
Packit c32a2d
  m4_case([$1], [CC],
Packit c32a2d
    [case " $depcc " in #(
Packit c32a2d
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit c32a2d
     esac],
Packit c32a2d
    [CXX],
Packit c32a2d
    [case " $depcc " in #(
Packit c32a2d
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
Packit c32a2d
     esac])
Packit c32a2d
Packit c32a2d
  for depmode in $am_compiler_list; do
Packit c32a2d
    # Setup a source with many dependencies, because some compilers
Packit c32a2d
    # like to wrap large dependency lists on column 80 (with \), and
Packit c32a2d
    # we should not choose a depcomp mode which is confused by this.
Packit c32a2d
    #
Packit c32a2d
    # We need to recreate these files for each test, as the compiler may
Packit c32a2d
    # overwrite some of them when testing with obscure command lines.
Packit c32a2d
    # This happens at least with the AIX C compiler.
Packit c32a2d
    : > sub/conftest.c
Packit c32a2d
    for i in 1 2 3 4 5 6; do
Packit c32a2d
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
Packit c32a2d
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
Packit c32a2d
      # Solaris 10 /bin/sh.
Packit c32a2d
      echo '/* dummy */' > sub/conftst$i.h
Packit c32a2d
    done
Packit c32a2d
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Packit c32a2d
Packit c32a2d
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
Packit c32a2d
    # mode.  It turns out that the SunPro C++ compiler does not properly
Packit c32a2d
    # handle '-M -o', and we need to detect this.  Also, some Intel
Packit c32a2d
    # versions had trouble with output in subdirs.
Packit c32a2d
    am__obj=sub/conftest.${OBJEXT-o}
Packit c32a2d
    am__minus_obj="-o $am__obj"
Packit c32a2d
    case $depmode in
Packit c32a2d
    gcc)
Packit c32a2d
      # This depmode causes a compiler race in universal mode.
Packit c32a2d
      test "$am__universal" = false || continue
Packit c32a2d
      ;;
Packit c32a2d
    nosideeffect)
Packit c32a2d
      # After this tag, mechanisms are not by side-effect, so they'll
Packit c32a2d
      # only be used when explicitly requested.
Packit c32a2d
      if test "x$enable_dependency_tracking" = xyes; then
Packit c32a2d
	continue
Packit c32a2d
      else
Packit c32a2d
	break
Packit c32a2d
      fi
Packit c32a2d
      ;;
Packit c32a2d
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Packit c32a2d
      # This compiler won't grok '-c -o', but also, the minuso test has
Packit c32a2d
      # not run yet.  These depmodes are late enough in the game, and
Packit c32a2d
      # so weak that their functioning should not be impacted.
Packit c32a2d
      am__obj=conftest.${OBJEXT-o}
Packit c32a2d
      am__minus_obj=
Packit c32a2d
      ;;
Packit c32a2d
    none) break ;;
Packit c32a2d
    esac
Packit c32a2d
    if depmode=$depmode \
Packit c32a2d
       source=sub/conftest.c object=$am__obj \
Packit c32a2d
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Packit c32a2d
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Packit c32a2d
         >/dev/null 2>conftest.err &&
Packit c32a2d
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Packit c32a2d
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Packit c32a2d
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Packit c32a2d
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Packit c32a2d
      # icc doesn't choke on unknown options, it will just issue warnings
Packit c32a2d
      # or remarks (even with -Werror).  So we grep stderr for any message
Packit c32a2d
      # that says an option was ignored or not supported.
Packit c32a2d
      # When given -MP, icc 7.0 and 7.1 complain thusly:
Packit c32a2d
      #   icc: Command line warning: ignoring option '-M'; no argument required
Packit c32a2d
      # The diagnosis changed in icc 8.0:
Packit c32a2d
      #   icc: Command line remark: option '-MP' not supported
Packit c32a2d
      if (grep 'ignoring option' conftest.err ||
Packit c32a2d
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Packit c32a2d
        am_cv_$1_dependencies_compiler_type=$depmode
Packit c32a2d
        break
Packit c32a2d
      fi
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
Packit c32a2d
  cd ..
Packit c32a2d
  rm -rf conftest.dir
Packit c32a2d
else
Packit c32a2d
  am_cv_$1_dependencies_compiler_type=none
Packit c32a2d
fi
Packit c32a2d
])
Packit c32a2d
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
Packit c32a2d
AM_CONDITIONAL([am__fastdep$1], [
Packit c32a2d
  test "x$enable_dependency_tracking" != xno \
Packit c32a2d
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# AM_SET_DEPDIR
Packit c32a2d
# -------------
Packit c32a2d
# Choose a directory name for dependency files.
Packit c32a2d
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
Packit c32a2d
AC_DEFUN([AM_SET_DEPDIR],
Packit c32a2d
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit c32a2d
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
Packit c32a2d
# AM_DEP_TRACK
Packit c32a2d
# ------------
Packit c32a2d
AC_DEFUN([AM_DEP_TRACK],
Packit c32a2d
[AC_ARG_ENABLE([dependency-tracking], [dnl
Packit c32a2d
AS_HELP_STRING(
Packit c32a2d
  [--enable-dependency-tracking],
Packit c32a2d
  [do not reject slow dependency extractors])
Packit c32a2d
AS_HELP_STRING(
Packit c32a2d
  [--disable-dependency-tracking],
Packit c32a2d
  [speeds up one-time build])])
Packit c32a2d
if test "x$enable_dependency_tracking" != xno; then
Packit c32a2d
  am_depcomp="$ac_aux_dir/depcomp"
Packit c32a2d
  AMDEPBACKSLASH='\'
Packit c32a2d
  am__nodep='_no'
Packit c32a2d
fi
Packit c32a2d
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
Packit c32a2d
AC_SUBST([AMDEPBACKSLASH])dnl
Packit c32a2d
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
Packit c32a2d
AC_SUBST([am__nodep])dnl
Packit c32a2d
_AM_SUBST_NOTMAKE([am__nodep])dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Generate code to set up dependency tracking.              -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
Packit c32a2d
# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit c32a2d
# ------------------------------
Packit c32a2d
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit c32a2d
[{
Packit c32a2d
  # Older Autoconf quotes --file arguments for eval, but not when files
Packit c32a2d
  # are listed without --file.  Let's play safe and only enable the eval
Packit c32a2d
  # if we detect the quoting.
Packit c32a2d
  case $CONFIG_FILES in
Packit c32a2d
  *\'*) eval set x "$CONFIG_FILES" ;;
Packit c32a2d
  *)   set x $CONFIG_FILES ;;
Packit c32a2d
  esac
Packit c32a2d
  shift
Packit c32a2d
  for mf
Packit c32a2d
  do
Packit c32a2d
    # Strip MF so we end up with the name of the file.
Packit c32a2d
    mf=`echo "$mf" | sed -e 's/:.*$//'`
Packit c32a2d
    # Check whether this is an Automake generated Makefile or not.
Packit c32a2d
    # We used to match only the files named 'Makefile.in', but
Packit c32a2d
    # some people rename them; so instead we look at the file content.
Packit c32a2d
    # Grep'ing the first line is not enough: some people post-process
Packit c32a2d
    # each Makefile.in and add a new line on top of each file to say so.
Packit c32a2d
    # Grep'ing the whole file is not good either: AIX grep has a line
Packit c32a2d
    # limit of 2048, but all sed's we know have understand at least 4000.
Packit c32a2d
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Packit c32a2d
      dirpart=`AS_DIRNAME("$mf")`
Packit c32a2d
    else
Packit c32a2d
      continue
Packit c32a2d
    fi
Packit c32a2d
    # Extract the definition of DEPDIR, am__include, and am__quote
Packit c32a2d
    # from the Makefile without running 'make'.
Packit c32a2d
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Packit c32a2d
    test -z "$DEPDIR" && continue
Packit c32a2d
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
Packit c32a2d
    test -z "$am__include" && continue
Packit c32a2d
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Packit c32a2d
    # Find all dependency output files, they are included files with
Packit c32a2d
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
Packit c32a2d
    # simplest approach to changing $(DEPDIR) to its actual value in the
Packit c32a2d
    # expansion.
Packit c32a2d
    for file in `sed -n "
Packit c32a2d
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Packit c32a2d
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Packit c32a2d
      # Make sure the directory exists.
Packit c32a2d
      test -f "$dirpart/$file" && continue
Packit c32a2d
      fdir=`AS_DIRNAME(["$file"])`
Packit c32a2d
      AS_MKDIR_P([$dirpart/$fdir])
Packit c32a2d
      # echo "creating $dirpart/$file"
Packit c32a2d
      echo '# dummy' > "$dirpart/$file"
Packit c32a2d
    done
Packit c32a2d
  done
Packit c32a2d
}
Packit c32a2d
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
Packit c32a2d
Packit c32a2d
Packit c32a2d
# AM_OUTPUT_DEPENDENCY_COMMANDS
Packit c32a2d
# -----------------------------
Packit c32a2d
# This macro should only be invoked once -- use via AC_REQUIRE.
Packit c32a2d
#
Packit c32a2d
# This code is only required when automatic dependency tracking
Packit c32a2d
# is enabled.  FIXME.  This creates each '.P' file that we will
Packit c32a2d
# need in order to bootstrap the dependency handling code.
Packit c32a2d
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit c32a2d
[AC_CONFIG_COMMANDS([depfiles],
Packit c32a2d
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
Packit c32a2d
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Do all the work for Automake.                             -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# This macro actually does too much.  Some checks are only needed if
Packit c32a2d
# your package does certain things.  But this isn't really a big deal.
Packit c32a2d
Packit c32a2d
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
Packit c32a2d
m4_define([AC_PROG_CC],
Packit c32a2d
m4_defn([AC_PROG_CC])
Packit c32a2d
[_AM_PROG_CC_C_O
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
Packit c32a2d
# AM_INIT_AUTOMAKE([OPTIONS])
Packit c32a2d
# -----------------------------------------------
Packit c32a2d
# The call with PACKAGE and VERSION arguments is the old style
Packit c32a2d
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
Packit c32a2d
# and VERSION should now be passed to AC_INIT and removed from
Packit c32a2d
# the call to AM_INIT_AUTOMAKE.
Packit c32a2d
# We support both call styles for the transition.  After
Packit c32a2d
# the next Automake release, Autoconf can make the AC_INIT
Packit c32a2d
# arguments mandatory, and then we can depend on a new Autoconf
Packit c32a2d
# release and drop the old call support.
Packit c32a2d
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit c32a2d
[AC_PREREQ([2.65])dnl
Packit c32a2d
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
Packit c32a2d
dnl the ones we care about.
Packit c32a2d
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
Packit c32a2d
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_INSTALL])dnl
Packit c32a2d
if test "`cd $srcdir && pwd`" != "`pwd`"; then
Packit c32a2d
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
Packit c32a2d
  # is not polluted with repeated "-I."
Packit c32a2d
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
Packit c32a2d
  # test to see if srcdir already configured
Packit c32a2d
  if test -f $srcdir/config.status; then
Packit c32a2d
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
Packit c32a2d
# test whether we have cygpath
Packit c32a2d
if test -z "$CYGPATH_W"; then
Packit c32a2d
  if (cygpath --version) >/dev/null 2>/dev/null; then
Packit c32a2d
    CYGPATH_W='cygpath -w'
Packit c32a2d
  else
Packit c32a2d
    CYGPATH_W=echo
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([CYGPATH_W])
Packit c32a2d
Packit c32a2d
# Define the identity of the package.
Packit c32a2d
dnl Distinguish between old-style and new-style calls.
Packit c32a2d
m4_ifval([$2],
Packit c32a2d
[AC_DIAGNOSE([obsolete],
Packit c32a2d
             [$0: two- and three-arguments forms are deprecated.])
Packit c32a2d
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
Packit c32a2d
 AC_SUBST([PACKAGE], [$1])dnl
Packit c32a2d
 AC_SUBST([VERSION], [$2])],
Packit c32a2d
[_AM_SET_OPTIONS([$1])dnl
Packit c32a2d
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
Packit c32a2d
m4_if(
Packit c32a2d
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
Packit c32a2d
  [ok:ok],,
Packit c32a2d
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
Packit c32a2d
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
Packit c32a2d
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
Packit c32a2d
Packit c32a2d
_AM_IF_OPTION([no-define],,
Packit c32a2d
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
Packit c32a2d
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
Packit c32a2d
Packit c32a2d
# Some tools Automake needs.
Packit c32a2d
AC_REQUIRE([AM_SANITY_CHECK])dnl
Packit c32a2d
AC_REQUIRE([AC_ARG_PROGRAM])dnl
Packit c32a2d
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
Packit c32a2d
AM_MISSING_PROG([AUTOCONF], [autoconf])
Packit c32a2d
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
Packit c32a2d
AM_MISSING_PROG([AUTOHEADER], [autoheader])
Packit c32a2d
AM_MISSING_PROG([MAKEINFO], [makeinfo])
Packit c32a2d
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit c32a2d
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
Packit c32a2d
# For better backward compatibility.  To be removed once Automake 1.9.x
Packit c32a2d
# dies out for good.  For more background, see:
Packit c32a2d
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
Packit c32a2d
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Packit c32a2d
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
Packit c32a2d
# We need awk for the "check" target (and possibly the TAP driver).  The
Packit c32a2d
# system "awk" is bad on some platforms.
Packit c32a2d
AC_REQUIRE([AC_PROG_AWK])dnl
Packit c32a2d
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
Packit c32a2d
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
Packit c32a2d
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
Packit c32a2d
	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
Packit c32a2d
			     [_AM_PROG_TAR([v7])])])
Packit c32a2d
_AM_IF_OPTION([no-dependencies],,
Packit c32a2d
[AC_PROVIDE_IFELSE([AC_PROG_CC],
Packit c32a2d
		  [_AM_DEPENDENCIES([CC])],
Packit c32a2d
		  [m4_define([AC_PROG_CC],
Packit c32a2d
			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit c32a2d
		  [_AM_DEPENDENCIES([CXX])],
Packit c32a2d
		  [m4_define([AC_PROG_CXX],
Packit c32a2d
			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
Packit c32a2d
		  [_AM_DEPENDENCIES([OBJC])],
Packit c32a2d
		  [m4_define([AC_PROG_OBJC],
Packit c32a2d
			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
Packit c32a2d
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
Packit c32a2d
		  [_AM_DEPENDENCIES([OBJCXX])],
Packit c32a2d
		  [m4_define([AC_PROG_OBJCXX],
Packit c32a2d
			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
Packit c32a2d
])
Packit c32a2d
AC_REQUIRE([AM_SILENT_RULES])dnl
Packit c32a2d
dnl The testsuite driver may need to know about EXEEXT, so add the
Packit c32a2d
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
Packit c32a2d
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
Packit c32a2d
AC_CONFIG_COMMANDS_PRE(dnl
Packit c32a2d
[m4_provide_if([_AM_COMPILER_EXEEXT],
Packit c32a2d
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
Packit c32a2d
Packit c32a2d
# POSIX will say in a future version that running "rm -f" with no argument
Packit c32a2d
# is OK; and we want to be able to make that assumption in our Makefile
Packit c32a2d
# recipes.  So use an aggressive probe to check that the usage we want is
Packit c32a2d
# actually supported "in the wild" to an acceptable degree.
Packit c32a2d
# See automake bug#10828.
Packit c32a2d
# To make any issue more visible, cause the running configure to be aborted
Packit c32a2d
# by default if the 'rm' program in use doesn't match our expectations; the
Packit c32a2d
# user can still override this though.
Packit c32a2d
if rm -f && rm -fr && rm -rf; then : OK; else
Packit c32a2d
  cat >&2 <<'END'
Packit c32a2d
Oops!
Packit c32a2d
Packit c32a2d
Your 'rm' program seems unable to run without file operands specified
Packit c32a2d
on the command line, even when the '-f' option is present.  This is contrary
Packit c32a2d
to the behaviour of most rm programs out there, and not conforming with
Packit c32a2d
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
Packit c32a2d
Packit c32a2d
Please tell bug-automake@gnu.org about your system, including the value
Packit c32a2d
of your $PATH and any error possibly output before this message.  This
Packit c32a2d
can help us improve future automake versions.
Packit c32a2d
Packit c32a2d
END
Packit c32a2d
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
Packit c32a2d
    echo 'Configuration will proceed anyway, since you have set the' >&2
Packit c32a2d
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
Packit c32a2d
    echo >&2
Packit c32a2d
  else
Packit c32a2d
    cat >&2 <<'END'
Packit c32a2d
Aborting the configuration process, to ensure you take notice of the issue.
Packit c32a2d
Packit c32a2d
You can download and install GNU coreutils to get an 'rm' implementation
Packit c32a2d
that behaves properly: <http://www.gnu.org/software/coreutils/>.
Packit c32a2d
Packit c32a2d
If you want to complete the configuration process using your problematic
Packit c32a2d
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
Packit c32a2d
to "yes", and re-run configure.
Packit c32a2d
Packit c32a2d
END
Packit c32a2d
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
Packit c32a2d
  fi
Packit c32a2d
fi
Packit c32a2d
dnl The trailing newline in this macro's definition is deliberate, for
Packit c32a2d
dnl backward compatibility and to allow trailing 'dnl'-style comments
Packit c32a2d
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
Packit c32a2d
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
Packit c32a2d
dnl mangled by Autoconf and run in a shell conditional statement.
Packit c32a2d
m4_define([_AC_COMPILER_EXEEXT],
Packit c32a2d
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
Packit c32a2d
Packit c32a2d
# When config.status generates a header, we must update the stamp-h file.
Packit c32a2d
# This file resides in the same directory as the config header
Packit c32a2d
# that is generated.  The stamp files are numbered to have different names.
Packit c32a2d
Packit c32a2d
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
Packit c32a2d
# loop where config.status creates the headers, so we can generate
Packit c32a2d
# our stamp files there.
Packit c32a2d
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
Packit c32a2d
[# Compute $1's index in $config_headers.
Packit c32a2d
_am_arg=$1
Packit c32a2d
_am_stamp_count=1
Packit c32a2d
for _am_header in $config_headers :; do
Packit c32a2d
  case $_am_header in
Packit c32a2d
    $_am_arg | $_am_arg:* )
Packit c32a2d
      break ;;
Packit c32a2d
    * )
Packit c32a2d
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Packit c32a2d
  esac
Packit c32a2d
done
Packit c32a2d
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_PROG_INSTALL_SH
Packit c32a2d
# ------------------
Packit c32a2d
# Define $install_sh.
Packit c32a2d
AC_DEFUN([AM_PROG_INSTALL_SH],
Packit c32a2d
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit c32a2d
if test x"${install_sh+set}" != xset; then
Packit c32a2d
  case $am_aux_dir in
Packit c32a2d
  *\ * | *\	*)
Packit c32a2d
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
Packit c32a2d
  *)
Packit c32a2d
    install_sh="\${SHELL} $am_aux_dir/install-sh"
Packit c32a2d
  esac
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([install_sh])])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2003-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# Check whether the underlying file-system supports filenames
Packit c32a2d
# with a leading dot.  For instance MS-DOS doesn't.
Packit c32a2d
AC_DEFUN([AM_SET_LEADING_DOT],
Packit c32a2d
[rm -rf .tst 2>/dev/null
Packit c32a2d
mkdir .tst 2>/dev/null
Packit c32a2d
if test -d .tst; then
Packit c32a2d
  am__leading_dot=.
Packit c32a2d
else
Packit c32a2d
  am__leading_dot=_
Packit c32a2d
fi
Packit c32a2d
rmdir .tst 2>/dev/null
Packit c32a2d
AC_SUBST([am__leading_dot])])
Packit c32a2d
Packit c32a2d
# Check to see how 'make' treats includes.	            -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_MAKE_INCLUDE()
Packit c32a2d
# -----------------
Packit c32a2d
# Check to see how make treats includes.
Packit c32a2d
AC_DEFUN([AM_MAKE_INCLUDE],
Packit c32a2d
[am_make=${MAKE-make}
Packit c32a2d
cat > confinc << 'END'
Packit c32a2d
am__doit:
Packit c32a2d
	@echo this is the am__doit target
Packit c32a2d
.PHONY: am__doit
Packit c32a2d
END
Packit c32a2d
# If we don't find an include directive, just comment out the code.
Packit c32a2d
AC_MSG_CHECKING([for style of include used by $am_make])
Packit c32a2d
am__include="#"
Packit c32a2d
am__quote=
Packit c32a2d
_am_result=none
Packit c32a2d
# First try GNU make style include.
Packit c32a2d
echo "include confinc" > confmf
Packit c32a2d
# Ignore all kinds of additional output from 'make'.
Packit c32a2d
case `$am_make -s -f confmf 2> /dev/null` in #(
Packit c32a2d
*the\ am__doit\ target*)
Packit c32a2d
  am__include=include
Packit c32a2d
  am__quote=
Packit c32a2d
  _am_result=GNU
Packit c32a2d
  ;;
Packit c32a2d
esac
Packit c32a2d
# Now try BSD make style include.
Packit c32a2d
if test "$am__include" = "#"; then
Packit c32a2d
   echo '.include "confinc"' > confmf
Packit c32a2d
   case `$am_make -s -f confmf 2> /dev/null` in #(
Packit c32a2d
   *the\ am__doit\ target*)
Packit c32a2d
     am__include=.include
Packit c32a2d
     am__quote="\""
Packit c32a2d
     _am_result=BSD
Packit c32a2d
     ;;
Packit c32a2d
   esac
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([am__include])
Packit c32a2d
AC_SUBST([am__quote])
Packit c32a2d
AC_MSG_RESULT([$_am_result])
Packit c32a2d
rm -f confinc confmf
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_MISSING_PROG(NAME, PROGRAM)
Packit c32a2d
# ------------------------------
Packit c32a2d
AC_DEFUN([AM_MISSING_PROG],
Packit c32a2d
[AC_REQUIRE([AM_MISSING_HAS_RUN])
Packit c32a2d
$1=${$1-"${am_missing_run}$2"}
Packit c32a2d
AC_SUBST($1)])
Packit c32a2d
Packit c32a2d
# AM_MISSING_HAS_RUN
Packit c32a2d
# ------------------
Packit c32a2d
# Define MISSING if not defined so far and test if it is modern enough.
Packit c32a2d
# If it is, set am_missing_run to use it, otherwise, to nothing.
Packit c32a2d
AC_DEFUN([AM_MISSING_HAS_RUN],
Packit c32a2d
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit c32a2d
AC_REQUIRE_AUX_FILE([missing])dnl
Packit c32a2d
if test x"${MISSING+set}" != xset; then
Packit c32a2d
  case $am_aux_dir in
Packit c32a2d
  *\ * | *\	*)
Packit c32a2d
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
Packit c32a2d
  *)
Packit c32a2d
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
Packit c32a2d
  esac
Packit c32a2d
fi
Packit c32a2d
# Use eval to expand $SHELL
Packit c32a2d
if eval "$MISSING --is-lightweight"; then
Packit c32a2d
  am_missing_run="$MISSING "
Packit c32a2d
else
Packit c32a2d
  am_missing_run=
Packit c32a2d
  AC_MSG_WARN(['missing' script is too old or missing])
Packit c32a2d
fi
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Helper functions for option handling.                     -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# _AM_MANGLE_OPTION(NAME)
Packit c32a2d
# -----------------------
Packit c32a2d
AC_DEFUN([_AM_MANGLE_OPTION],
Packit c32a2d
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
Packit c32a2d
Packit c32a2d
# _AM_SET_OPTION(NAME)
Packit c32a2d
# --------------------
Packit c32a2d
# Set option NAME.  Presently that only means defining a flag for this option.
Packit c32a2d
AC_DEFUN([_AM_SET_OPTION],
Packit c32a2d
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
Packit c32a2d
Packit c32a2d
# _AM_SET_OPTIONS(OPTIONS)
Packit c32a2d
# ------------------------
Packit c32a2d
# OPTIONS is a space-separated list of Automake options.
Packit c32a2d
AC_DEFUN([_AM_SET_OPTIONS],
Packit c32a2d
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
Packit c32a2d
Packit c32a2d
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
Packit c32a2d
# -------------------------------------------
Packit c32a2d
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
Packit c32a2d
AC_DEFUN([_AM_IF_OPTION],
Packit c32a2d
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
Packit c32a2d
Packit c32a2d
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# _AM_PROG_CC_C_O
Packit c32a2d
# ---------------
Packit c32a2d
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
Packit c32a2d
# to automatically call this.
Packit c32a2d
AC_DEFUN([_AM_PROG_CC_C_O],
Packit c32a2d
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
Packit c32a2d
AC_REQUIRE_AUX_FILE([compile])dnl
Packit c32a2d
AC_LANG_PUSH([C])dnl
Packit c32a2d
AC_CACHE_CHECK(
Packit c32a2d
  [whether $CC understands -c and -o together],
Packit c32a2d
  [am_cv_prog_cc_c_o],
Packit c32a2d
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
Packit c32a2d
  # Make sure it works both with $CC and with simple cc.
Packit c32a2d
  # Following AC_PROG_CC_C_O, we do the test twice because some
Packit c32a2d
  # compilers refuse to overwrite an existing .o file with -o,
Packit c32a2d
  # though they will create one.
Packit c32a2d
  am_cv_prog_cc_c_o=yes
Packit c32a2d
  for am_i in 1 2; do
Packit c32a2d
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
Packit c32a2d
         && test -f conftest2.$ac_objext; then
Packit c32a2d
      : OK
Packit c32a2d
    else
Packit c32a2d
      am_cv_prog_cc_c_o=no
Packit c32a2d
      break
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  rm -f core conftest*
Packit c32a2d
  unset am_i])
Packit c32a2d
if test "$am_cv_prog_cc_c_o" != yes; then
Packit c32a2d
   # Losing compiler, so override with the script.
Packit c32a2d
   # FIXME: It is wrong to rewrite CC.
Packit c32a2d
   # But if we don't then we get into trouble of one sort or another.
Packit c32a2d
   # A longer-term fix would be to have automake use am__CC in this case,
Packit c32a2d
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
Packit c32a2d
   CC="$am_aux_dir/compile $CC"
Packit c32a2d
fi
Packit c32a2d
AC_LANG_POP([C])])
Packit c32a2d
Packit c32a2d
# For backward compatibility.
Packit c32a2d
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_RUN_LOG(COMMAND)
Packit c32a2d
# -------------------
Packit c32a2d
# Run COMMAND, save the exit status in ac_status, and log it.
Packit c32a2d
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
Packit c32a2d
AC_DEFUN([AM_RUN_LOG],
Packit c32a2d
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
Packit c32a2d
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
Packit c32a2d
   ac_status=$?
Packit c32a2d
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit c32a2d
   (exit $ac_status); }])
Packit c32a2d
Packit c32a2d
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_SANITY_CHECK
Packit c32a2d
# ---------------
Packit c32a2d
AC_DEFUN([AM_SANITY_CHECK],
Packit c32a2d
[AC_MSG_CHECKING([whether build environment is sane])
Packit c32a2d
# Reject unsafe characters in $srcdir or the absolute working directory
Packit c32a2d
# name.  Accept space and tab only in the latter.
Packit c32a2d
am_lf='
Packit c32a2d
'
Packit c32a2d
case `pwd` in
Packit c32a2d
  *[[\\\"\#\$\&\'\`$am_lf]]*)
Packit c32a2d
    AC_MSG_ERROR([unsafe absolute working directory name]);;
Packit c32a2d
esac
Packit c32a2d
case $srcdir in
Packit c32a2d
  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
Packit c32a2d
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
Packit c32a2d
esac
Packit c32a2d
Packit c32a2d
# Do 'set' in a subshell so we don't clobber the current shell's
Packit c32a2d
# arguments.  Must try -L first in case configure is actually a
Packit c32a2d
# symlink; some systems play weird games with the mod time of symlinks
Packit c32a2d
# (eg FreeBSD returns the mod time of the symlink's containing
Packit c32a2d
# directory).
Packit c32a2d
if (
Packit c32a2d
   am_has_slept=no
Packit c32a2d
   for am_try in 1 2; do
Packit c32a2d
     echo "timestamp, slept: $am_has_slept" > conftest.file
Packit c32a2d
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Packit c32a2d
     if test "$[*]" = "X"; then
Packit c32a2d
	# -L didn't work.
Packit c32a2d
	set X `ls -t "$srcdir/configure" conftest.file`
Packit c32a2d
     fi
Packit c32a2d
     if test "$[*]" != "X $srcdir/configure conftest.file" \
Packit c32a2d
	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
Packit c32a2d
Packit c32a2d
	# If neither matched, then we have a broken ls.  This can happen
Packit c32a2d
	# if, for instance, CONFIG_SHELL is bash and it inherits a
Packit c32a2d
	# broken ls alias from the environment.  This has actually
Packit c32a2d
	# happened.  Such a system could not be considered "sane".
Packit c32a2d
	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit c32a2d
  alias in your environment])
Packit c32a2d
     fi
Packit c32a2d
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
Packit c32a2d
       break
Packit c32a2d
     fi
Packit c32a2d
     # Just in case.
Packit c32a2d
     sleep 1
Packit c32a2d
     am_has_slept=yes
Packit c32a2d
   done
Packit c32a2d
   test "$[2]" = conftest.file
Packit c32a2d
   )
Packit c32a2d
then
Packit c32a2d
   # Ok.
Packit c32a2d
   :
Packit c32a2d
else
Packit c32a2d
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit c32a2d
Check your system clock])
Packit c32a2d
fi
Packit c32a2d
AC_MSG_RESULT([yes])
Packit c32a2d
# If we didn't sleep, we still need to ensure time stamps of config.status and
Packit c32a2d
# generated files are strictly newer.
Packit c32a2d
am_sleep_pid=
Packit c32a2d
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
Packit c32a2d
  ( sleep 1 ) &
Packit c32a2d
  am_sleep_pid=$!
Packit c32a2d
fi
Packit c32a2d
AC_CONFIG_COMMANDS_PRE(
Packit c32a2d
  [AC_MSG_CHECKING([that generated files are newer than configure])
Packit c32a2d
   if test -n "$am_sleep_pid"; then
Packit c32a2d
     # Hide warnings about reused PIDs.
Packit c32a2d
     wait $am_sleep_pid 2>/dev/null
Packit c32a2d
   fi
Packit c32a2d
   AC_MSG_RESULT([done])])
Packit c32a2d
rm -f conftest.file
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_SILENT_RULES([DEFAULT])
Packit c32a2d
# --------------------------
Packit c32a2d
# Enable less verbose build rules; with the default set to DEFAULT
Packit c32a2d
# ("yes" being less verbose, "no" or empty being verbose).
Packit c32a2d
AC_DEFUN([AM_SILENT_RULES],
Packit c32a2d
[AC_ARG_ENABLE([silent-rules], [dnl
Packit c32a2d
AS_HELP_STRING(
Packit c32a2d
  [--enable-silent-rules],
Packit c32a2d
  [less verbose build output (undo: "make V=1")])
Packit c32a2d
AS_HELP_STRING(
Packit c32a2d
  [--disable-silent-rules],
Packit c32a2d
  [verbose build output (undo: "make V=0")])dnl
Packit c32a2d
])
Packit c32a2d
case $enable_silent_rules in @%:@ (((
Packit c32a2d
  yes) AM_DEFAULT_VERBOSITY=0;;
Packit c32a2d
   no) AM_DEFAULT_VERBOSITY=1;;
Packit c32a2d
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
Packit c32a2d
esac
Packit c32a2d
dnl
Packit c32a2d
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
Packit c32a2d
dnl do not support nested variable expansions.
Packit c32a2d
dnl See automake bug#9928 and bug#10237.
Packit c32a2d
am_make=${MAKE-make}
Packit c32a2d
AC_CACHE_CHECK([whether $am_make supports nested variables],
Packit c32a2d
   [am_cv_make_support_nested_variables],
Packit c32a2d
   [if AS_ECHO([['TRUE=$(BAR$(V))
Packit c32a2d
BAR0=false
Packit c32a2d
BAR1=true
Packit c32a2d
V=1
Packit c32a2d
am__doit:
Packit c32a2d
	@$(TRUE)
Packit c32a2d
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
Packit c32a2d
  am_cv_make_support_nested_variables=yes
Packit c32a2d
else
Packit c32a2d
  am_cv_make_support_nested_variables=no
Packit c32a2d
fi])
Packit c32a2d
if test $am_cv_make_support_nested_variables = yes; then
Packit c32a2d
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
Packit c32a2d
  AM_V='$(V)'
Packit c32a2d
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
Packit c32a2d
else
Packit c32a2d
  AM_V=$AM_DEFAULT_VERBOSITY
Packit c32a2d
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
Packit c32a2d
fi
Packit c32a2d
AC_SUBST([AM_V])dnl
Packit c32a2d
AM_SUBST_NOTMAKE([AM_V])dnl
Packit c32a2d
AC_SUBST([AM_DEFAULT_V])dnl
Packit c32a2d
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
Packit c32a2d
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
Packit c32a2d
AM_BACKSLASH='\'
Packit c32a2d
AC_SUBST([AM_BACKSLASH])dnl
Packit c32a2d
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
Packit c32a2d
])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# AM_PROG_INSTALL_STRIP
Packit c32a2d
# ---------------------
Packit c32a2d
# One issue with vendor 'install' (even GNU) is that you can't
Packit c32a2d
# specify the program used to strip binaries.  This is especially
Packit c32a2d
# annoying in cross-compiling environments, where the build's strip
Packit c32a2d
# is unlikely to handle the host's binaries.
Packit c32a2d
# Fortunately install-sh will honor a STRIPPROG variable, so we
Packit c32a2d
# always use install-sh in "make install-strip", and initialize
Packit c32a2d
# STRIPPROG with the value of the STRIP variable (set by the user).
Packit c32a2d
AC_DEFUN([AM_PROG_INSTALL_STRIP],
Packit c32a2d
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
Packit c32a2d
# Installed binaries are usually stripped using 'strip' when the user
Packit c32a2d
# run "make install-strip".  However 'strip' might not be the right
Packit c32a2d
# tool to use in cross-compilation environments, therefore Automake
Packit c32a2d
# will honor the 'STRIP' environment variable to overrule this program.
Packit c32a2d
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
Packit c32a2d
if test "$cross_compiling" != no; then
Packit c32a2d
  AC_CHECK_TOOL([STRIP], [strip], :)
Packit c32a2d
fi
Packit c32a2d
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Packit c32a2d
AC_SUBST([INSTALL_STRIP_PROGRAM])])
Packit c32a2d
Packit c32a2d
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# _AM_SUBST_NOTMAKE(VARIABLE)
Packit c32a2d
# ---------------------------
Packit c32a2d
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
Packit c32a2d
# This macro is traced by Automake.
Packit c32a2d
AC_DEFUN([_AM_SUBST_NOTMAKE])
Packit c32a2d
Packit c32a2d
# AM_SUBST_NOTMAKE(VARIABLE)
Packit c32a2d
# --------------------------
Packit c32a2d
# Public sister of _AM_SUBST_NOTMAKE.
Packit c32a2d
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
Packit c32a2d
Packit c32a2d
# Check how to create a tarball.                            -*- Autoconf -*-
Packit c32a2d
Packit c32a2d
# Copyright (C) 2004-2017 Free Software Foundation, Inc.
Packit c32a2d
#
Packit c32a2d
# This file is free software; the Free Software Foundation
Packit c32a2d
# gives unlimited permission to copy and/or distribute it,
Packit c32a2d
# with or without modifications, as long as this notice is preserved.
Packit c32a2d
Packit c32a2d
# _AM_PROG_TAR(FORMAT)
Packit c32a2d
# --------------------
Packit c32a2d
# Check how to create a tarball in format FORMAT.
Packit c32a2d
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
Packit c32a2d
#
Packit c32a2d
# Substitute a variable $(am__tar) that is a command
Packit c32a2d
# writing to stdout a FORMAT-tarball containing the directory
Packit c32a2d
# $tardir.
Packit c32a2d
#     tardir=directory && $(am__tar) > result.tar
Packit c32a2d
#
Packit c32a2d
# Substitute a variable $(am__untar) that extract such
Packit c32a2d
# a tarball read from stdin.
Packit c32a2d
#     $(am__untar) < result.tar
Packit c32a2d
#
Packit c32a2d
AC_DEFUN([_AM_PROG_TAR],
Packit c32a2d
[# Always define AMTAR for backward compatibility.  Yes, it's still used
Packit c32a2d
# in the wild :-(  We should find a proper way to deprecate it ...
Packit c32a2d
AC_SUBST([AMTAR], ['$${TAR-tar}'])
Packit c32a2d
Packit c32a2d
# We'll loop over all known methods to create a tar archive until one works.
Packit c32a2d
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
Packit c32a2d
Packit c32a2d
m4_if([$1], [v7],
Packit c32a2d
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
Packit c32a2d
Packit c32a2d
  [m4_case([$1],
Packit c32a2d
    [ustar],
Packit c32a2d
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
Packit c32a2d
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
Packit c32a2d
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
Packit c32a2d
      # and bug#13588).
Packit c32a2d
      am_max_uid=2097151 # 2^21 - 1
Packit c32a2d
      am_max_gid=$am_max_uid
Packit c32a2d
      # The $UID and $GID variables are not portable, so we need to resort
Packit c32a2d
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
Packit c32a2d
      # below are definitely unexpected, so allow the users to see them
Packit c32a2d
      # (that is, avoid stderr redirection).
Packit c32a2d
      am_uid=`id -u || echo unknown`
Packit c32a2d
      am_gid=`id -g || echo unknown`
Packit c32a2d
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
Packit c32a2d
      if test $am_uid -le $am_max_uid; then
Packit c32a2d
         AC_MSG_RESULT([yes])
Packit c32a2d
      else
Packit c32a2d
         AC_MSG_RESULT([no])
Packit c32a2d
         _am_tools=none
Packit c32a2d
      fi
Packit c32a2d
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
Packit c32a2d
      if test $am_gid -le $am_max_gid; then
Packit c32a2d
         AC_MSG_RESULT([yes])
Packit c32a2d
      else
Packit c32a2d
        AC_MSG_RESULT([no])
Packit c32a2d
        _am_tools=none
Packit c32a2d
      fi],
Packit c32a2d
Packit c32a2d
  [pax],
Packit c32a2d
    [],
Packit c32a2d
Packit c32a2d
  [m4_fatal([Unknown tar format])])
Packit c32a2d
Packit c32a2d
  AC_MSG_CHECKING([how to create a $1 tar archive])
Packit c32a2d
Packit c32a2d
  # Go ahead even if we have the value already cached.  We do so because we
Packit c32a2d
  # need to set the values for the 'am__tar' and 'am__untar' variables.
Packit c32a2d
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
Packit c32a2d
Packit c32a2d
  for _am_tool in $_am_tools; do
Packit c32a2d
    case $_am_tool in
Packit c32a2d
    gnutar)
Packit c32a2d
      for _am_tar in tar gnutar gtar; do
Packit c32a2d
        AM_RUN_LOG([$_am_tar --version]) && break
Packit c32a2d
      done
Packit c32a2d
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
Packit c32a2d
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
Packit c32a2d
      am__untar="$_am_tar -xf -"
Packit c32a2d
      ;;
Packit c32a2d
    plaintar)
Packit c32a2d
      # Must skip GNU tar: if it does not support --format= it doesn't create
Packit c32a2d
      # ustar tarball either.
Packit c32a2d
      (tar --version) >/dev/null 2>&1 && continue
Packit c32a2d
      am__tar='tar chf - "$$tardir"'
Packit c32a2d
      am__tar_='tar chf - "$tardir"'
Packit c32a2d
      am__untar='tar xf -'
Packit c32a2d
      ;;
Packit c32a2d
    pax)
Packit c32a2d
      am__tar='pax -L -x $1 -w "$$tardir"'
Packit c32a2d
      am__tar_='pax -L -x $1 -w "$tardir"'
Packit c32a2d
      am__untar='pax -r'
Packit c32a2d
      ;;
Packit c32a2d
    cpio)
Packit c32a2d
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
Packit c32a2d
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
Packit c32a2d
      am__untar='cpio -i -H $1 -d'
Packit c32a2d
      ;;
Packit c32a2d
    none)
Packit c32a2d
      am__tar=false
Packit c32a2d
      am__tar_=false
Packit c32a2d
      am__untar=false
Packit c32a2d
      ;;
Packit c32a2d
    esac
Packit c32a2d
Packit c32a2d
    # If the value was cached, stop now.  We just wanted to have am__tar
Packit c32a2d
    # and am__untar set.
Packit c32a2d
    test -n "${am_cv_prog_tar_$1}" && break
Packit c32a2d
Packit c32a2d
    # tar/untar a dummy directory, and stop if the command works.
Packit c32a2d
    rm -rf conftest.dir
Packit c32a2d
    mkdir conftest.dir
Packit c32a2d
    echo GrepMe > conftest.dir/file
Packit c32a2d
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
Packit c32a2d
    rm -rf conftest.dir
Packit c32a2d
    if test -s conftest.tar; then
Packit c32a2d
      AM_RUN_LOG([$am__untar 
Packit c32a2d
      AM_RUN_LOG([cat conftest.dir/file])
Packit c32a2d
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
Packit c32a2d
    fi
Packit c32a2d
  done
Packit c32a2d
  rm -rf conftest.dir
Packit c32a2d
Packit c32a2d
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
Packit c32a2d
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
Packit c32a2d
Packit c32a2d
AC_SUBST([am__tar])
Packit c32a2d
AC_SUBST([am__untar])
Packit c32a2d
]) # _AM_PROG_TAR
Packit c32a2d
Packit c32a2d
m4_include([m4/addrconfig.m4])
Packit c32a2d
m4_include([m4/libtool.m4])
Packit c32a2d
m4_include([m4/ltoptions.m4])
Packit c32a2d
m4_include([m4/ltsugar.m4])
Packit c32a2d
m4_include([m4/ltversion.m4])
Packit c32a2d
m4_include([m4/lt~obsolete.m4])