Blame aclocal.m4

Packit 64f477
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
Packit 64f477
Packit 64f477
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
Packit 64f477
dnl This file is free software; the Free Software Foundation
Packit 64f477
dnl gives unlimited permission to copy and/or distribute it,
Packit 64f477
dnl with or without modifications, as long as this notice is preserved.
Packit 64f477
Packit 64f477
dnl This program is distributed in the hope that it will be useful,
Packit 64f477
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit 64f477
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit 64f477
dnl PARTICULAR PURPOSE.
Packit 64f477
Packit 64f477
dnl AC_C_RESTRICT
Packit 64f477
dnl Do nothing if the compiler accepts the restrict keyword.
Packit 64f477
dnl Otherwise define restrict to __restrict__ or __restrict if one of
Packit 64f477
dnl those work, otherwise define restrict to be empty.
Packit 64f477
AC_DEFUN([AC_C_RESTRICT],
Packit 64f477
    [AC_MSG_CHECKING([for restrict])
Packit 64f477
    ac_cv_c_restrict=no
Packit 64f477
    for ac_kw in restrict __restrict__ __restrict; do
Packit 64f477
	AC_TRY_COMPILE([],[char * $ac_kw p;],[ac_cv_c_restrict=$ac_kw; break])
Packit 64f477
    done
Packit 64f477
    AC_MSG_RESULT([$ac_cv_c_restrict])
Packit 64f477
    case $ac_cv_c_restrict in
Packit 64f477
	restrict) ;;
Packit 64f477
	no)	AC_DEFINE([restrict],,
Packit 64f477
		    [Define as `__restrict' if that's what the C compiler calls
Packit 64f477
		    it, or to nothing if it is not supported.]) ;;
Packit 64f477
	*)	AC_DEFINE_UNQUOTED([restrict],$ac_cv_c_restrict) ;;
Packit 64f477
    esac])
Packit 64f477
Packit 64f477
dnl AC_C_ALWAYS_INLINE
Packit 64f477
dnl Define inline to something appropriate, including the new always_inline
Packit 64f477
dnl attribute from gcc 3.1
Packit 64f477
AC_DEFUN([AC_C_ALWAYS_INLINE],
Packit 64f477
    [AC_C_INLINE
Packit 64f477
    if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then
Packit 64f477
	AC_MSG_CHECKING([for always_inline])
Packit 64f477
	SAVE_CFLAGS="$CFLAGS"
Packit 64f477
	CFLAGS="$CFLAGS -Wall -Werror"
Packit 64f477
	AC_TRY_COMPILE([],[__attribute__ ((__always_inline__)) void f (void);],
Packit 64f477
	    [ac_cv_always_inline=yes],[ac_cv_always_inline=no])
Packit 64f477
	CFLAGS="$SAVE_CFLAGS"
Packit 64f477
	AC_MSG_RESULT([$ac_cv_always_inline])
Packit 64f477
	if test x"$ac_cv_always_inline" = x"yes"; then
Packit 64f477
	    AC_DEFINE_UNQUOTED([inline],[__attribute__ ((__always_inline__))])
Packit 64f477
	fi
Packit 64f477
    fi])
Packit 64f477
Packit 64f477
dnl AC_C_ATTRIBUTE_ALIGNED
Packit 64f477
dnl define ATTRIBUTE_ALIGNED_MAX to the maximum alignment if this is supported
Packit 64f477
AC_DEFUN([AC_C_ATTRIBUTE_ALIGNED],
Packit 64f477
    [AC_CACHE_CHECK([__attribute__ ((aligned ())) support],
Packit 64f477
	[ac_cv_c_attribute_aligned],
Packit 64f477
	[ac_cv_c_attribute_aligned=0
Packit 64f477
	for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
Packit 64f477
	    AC_TRY_COMPILE([],
Packit 64f477
		[static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;],
Packit 64f477
		[ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try])
Packit 64f477
	done])
Packit 64f477
    if test x"$ac_cv_c_attribute_aligned" != x"0"; then
Packit 64f477
	AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX],
Packit 64f477
	    [$ac_cv_c_attribute_aligned],[maximum supported data alignment])
Packit 64f477
    fi])
Packit 64f477
Packit 64f477
dnl AC_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS])
Packit 64f477
dnl check if $CC supports a given set of cflags
Packit 64f477
AC_DEFUN([AC_TRY_CFLAGS],
Packit 64f477
    [AC_MSG_CHECKING([if $CC supports $1 flags])
Packit 64f477
    SAVE_CFLAGS="$CFLAGS"
Packit 64f477
    CFLAGS="$1"
Packit 64f477
    AC_TRY_COMPILE([],[],[ac_cv_try_cflags_ok=yes],[ac_cv_try_cflags_ok=no])
Packit 64f477
    CFLAGS="$SAVE_CFLAGS"
Packit 64f477
    AC_MSG_RESULT([$ac_cv_try_cflags_ok])
Packit 64f477
    if test x"$ac_cv_try_cflags_ok" = x"yes"; then
Packit 64f477
	ifelse([$2],[],[:],[$2])
Packit 64f477
    else
Packit 64f477
	ifelse([$3],[],[:],[$3])
Packit 64f477
    fi])
Packit 64f477
Packit 64f477
Packit 64f477
dnl AC_CHECK_GENERATE_INTTYPES_H (INCLUDE-DIRECTORY)
Packit 64f477
dnl generate a default inttypes.h if the header file does not exist already
Packit 64f477
AC_DEFUN([AC_CHECK_GENERATE_INTTYPES],
Packit 64f477
    [rm -f $1/inttypes.h
Packit 64f477
    AC_CHECK_HEADER([inttypes.h],[],
Packit 64f477
	[AC_CHECK_SIZEOF([char])
Packit 64f477
	AC_CHECK_SIZEOF([short])
Packit 64f477
	AC_CHECK_SIZEOF([int])
Packit 64f477
	if test x"$ac_cv_sizeof_char" != x"1" -o \
Packit 64f477
	    x"$ac_cv_sizeof_short" != x"2" -o \
Packit 64f477
	    x"$ac_cv_sizeof_int" != x"4"; then
Packit 64f477
	    AC_MSG_ERROR([can not build a default inttypes.h])
Packit 64f477
	fi
Packit 64f477
	cat >$1/inttypes.h << EOF
Packit 64f477
/* default inttypes.h for people who do not have it on their system */
Packit 64f477
Packit 64f477
#ifndef _INTTYPES_H
Packit 64f477
#define _INTTYPES_H
Packit 64f477
#if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__)
Packit 64f477
#define __int8_t_defined
Packit 64f477
typedef signed char int8_t;
Packit 64f477
typedef signed short int16_t;
Packit 64f477
typedef signed int int32_t;
Packit 64f477
#ifdef ARCH_X86
Packit 64f477
typedef signed long long int64_t;
Packit 64f477
#endif
Packit 64f477
#endif
Packit 64f477
#if (!defined _LINUX_TYPES_H)
Packit 64f477
typedef unsigned char uint8_t;
Packit 64f477
typedef unsigned short uint16_t;
Packit 64f477
typedef unsigned int uint32_t;
Packit 64f477
#ifdef ARCH_X86
Packit 64f477
typedef unsigned long long uint64_t;
Packit 64f477
#endif
Packit 64f477
#endif
Packit 64f477
#endif
Packit 64f477
EOF
Packit 64f477
	])])
Packit 64f477
Packit 64f477
# Do all the work for Automake.  This macro actually does too much --
Packit 64f477
# some checks are only needed if your package does certain things.
Packit 64f477
# But this isn't really a big deal.
Packit 64f477
Packit 64f477
# serial 1
Packit 64f477
Packit 64f477
dnl Usage:
Packit 64f477
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
Packit 64f477
Packit 64f477
AC_DEFUN([AM_INIT_AUTOMAKE],
Packit 64f477
[AC_REQUIRE([AC_PROG_INSTALL])
Packit 64f477
PACKAGE=[$1]
Packit 64f477
AC_SUBST(PACKAGE)
Packit 64f477
VERSION=[$2]
Packit 64f477
AC_SUBST(VERSION)
Packit 64f477
dnl test to see if srcdir already configured
Packit 64f477
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
Packit 64f477
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
Packit 64f477
fi
Packit 64f477
ifelse([$3],,
Packit 64f477
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
Packit 64f477
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
Packit 64f477
AC_REQUIRE([AM_SANITY_CHECK])
Packit 64f477
AC_REQUIRE([AC_ARG_PROGRAM])
Packit 64f477
dnl FIXME This is truly gross.
Packit 64f477
missing_dir=`cd $ac_aux_dir && pwd`
Packit 64f477
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
Packit 64f477
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
Packit 64f477
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
Packit 64f477
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
Packit 64f477
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
Packit 64f477
AC_REQUIRE([AC_PROG_MAKE_SET])])
Packit 64f477
Packit 64f477
#
Packit 64f477
# Check to make sure that the build environment is sane.
Packit 64f477
#
Packit 64f477
Packit 64f477
AC_DEFUN([AM_SANITY_CHECK],
Packit 64f477
[AC_MSG_CHECKING([whether build environment is sane])
Packit 64f477
# Just in case
Packit 64f477
sleep 1
Packit 64f477
echo timestamp > conftestfile
Packit 64f477
# Do `set' in a subshell so we don't clobber the current shell's
Packit 64f477
# arguments.  Must try -L first in case configure is actually a
Packit 64f477
# symlink; some systems play weird games with the mod time of symlinks
Packit 64f477
# (eg FreeBSD returns the mod time of the symlink's containing
Packit 64f477
# directory).
Packit 64f477
if (
Packit 64f477
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
Packit 64f477
   if test "[$]*" = "X"; then
Packit 64f477
      # -L didn't work.
Packit 64f477
      set X `ls -t $srcdir/configure conftestfile`
Packit 64f477
   fi
Packit 64f477
   if test "[$]*" != "X $srcdir/configure conftestfile" \
Packit 64f477
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
Packit 64f477
Packit 64f477
      # If neither matched, then we have a broken ls.  This can happen
Packit 64f477
      # if, for instance, CONFIG_SHELL is bash and it inherits a
Packit 64f477
      # broken ls alias from the environment.  This has actually
Packit 64f477
      # happened.  Such a system could not be considered "sane".
Packit 64f477
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
Packit 64f477
alias in your environment])
Packit 64f477
   fi
Packit 64f477
Packit 64f477
   test "[$]2" = conftestfile
Packit 64f477
   )
Packit 64f477
then
Packit 64f477
   # Ok.
Packit 64f477
   :
Packit 64f477
else
Packit 64f477
   AC_MSG_ERROR([newly created file is older than distributed files!
Packit 64f477
Check your system clock])
Packit 64f477
fi
Packit 64f477
rm -f conftest*
Packit 64f477
AC_MSG_RESULT(yes)])
Packit 64f477
Packit 64f477
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
Packit 64f477
dnl The program must properly implement --version.
Packit 64f477
AC_DEFUN([AM_MISSING_PROG],
Packit 64f477
[AC_MSG_CHECKING(for working $2)
Packit 64f477
# Run test in a subshell; some versions of sh will print an error if
Packit 64f477
# an executable is not found, even if stderr is redirected.
Packit 64f477
# Redirect stdin to placate older versions of autoconf.  Sigh.
Packit 64f477
if ($2 --version) < /dev/null > /dev/null 2>&1; then
Packit 64f477
   $1=$2
Packit 64f477
   AC_MSG_RESULT(found)
Packit 64f477
else
Packit 64f477
   $1="$3/missing $2"
Packit 64f477
   AC_MSG_RESULT(missing)
Packit 64f477
fi
Packit 64f477
AC_SUBST($1)])
Packit 64f477
Packit 64f477
# Like AC_CONFIG_HEADER, but automatically create stamp file.
Packit 64f477
Packit 64f477
AC_DEFUN([AM_CONFIG_HEADER],
Packit 64f477
[AC_PREREQ([2.12])
Packit 64f477
AC_CONFIG_HEADER([$1])
Packit 64f477
dnl When config.status generates a header, we must update the stamp-h file.
Packit 64f477
dnl This file resides in the same directory as the config header
Packit 64f477
dnl that is generated.  We must strip everything past the first ":",
Packit 64f477
dnl and everything past the last "/".
Packit 64f477
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
Packit 64f477
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
Packit 64f477
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
Packit 64f477
<
Packit 64f477
for am_file in <<$1>>; do
Packit 64f477
  case " <<$>>CONFIG_HEADERS " in
Packit 64f477
  *" <<$>>am_file "*<<)>>
Packit 64f477
    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  am_indx=`expr "<<$>>am_indx" + 1`
Packit 64f477
done<<>>dnl>>)
Packit 64f477
changequote([,]))])
Packit 64f477
Packit 64f477
# Add --enable-maintainer-mode option to configure.
Packit 64f477
# From Jim Meyering
Packit 64f477
Packit 64f477
# serial 1
Packit 64f477
Packit 64f477
AC_DEFUN([AM_MAINTAINER_MODE],
Packit 64f477
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
Packit 64f477
  dnl maintainer-mode is disabled by default
Packit 64f477
  AC_ARG_ENABLE(maintainer-mode,
Packit 64f477
[  --enable-maintainer-mode enable make rules and dependencies not useful
Packit 64f477
                          (and sometimes confusing) to the casual installer],
Packit 64f477
      USE_MAINTAINER_MODE=$enableval,
Packit 64f477
      USE_MAINTAINER_MODE=no)
Packit 64f477
  AC_MSG_RESULT($USE_MAINTAINER_MODE)
Packit 64f477
  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
Packit 64f477
  MAINT=$MAINTAINER_MODE_TRUE
Packit 64f477
  AC_SUBST(MAINT)dnl
Packit 64f477
]
Packit 64f477
)
Packit 64f477
Packit 64f477
# Define a conditional.
Packit 64f477
Packit 64f477
AC_DEFUN([AM_CONDITIONAL],
Packit 64f477
[AC_SUBST($1_TRUE)
Packit 64f477
AC_SUBST($1_FALSE)
Packit 64f477
if $2; then
Packit 64f477
  $1_TRUE=
Packit 64f477
  $1_FALSE='#'
Packit 64f477
else
Packit 64f477
  $1_TRUE='#'
Packit 64f477
  $1_FALSE=
Packit 64f477
fi])
Packit 64f477
Packit 64f477
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
Packit 64f477
Packit 64f477
# serial 46 AC_PROG_LIBTOOL
Packit 64f477
Packit 64f477
AC_DEFUN([AC_PROG_LIBTOOL],
Packit 64f477
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
Packit 64f477
Packit 64f477
# This can be used to rebuild libtool when needed
Packit 64f477
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Packit 64f477
Packit 64f477
# Always use our own libtool.
Packit 64f477
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Packit 64f477
AC_SUBST(LIBTOOL)dnl
Packit 64f477
Packit 64f477
# Prevent multiple expansion
Packit 64f477
define([AC_PROG_LIBTOOL], [])
Packit 64f477
])
Packit 64f477
Packit 64f477
AC_DEFUN([AC_LIBTOOL_SETUP],
Packit 64f477
[AC_PREREQ(2.13)dnl
Packit 64f477
AC_REQUIRE([AC_ENABLE_SHARED])dnl
Packit 64f477
AC_REQUIRE([AC_ENABLE_STATIC])dnl
Packit 64f477
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
Packit 64f477
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 64f477
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit 64f477
AC_REQUIRE([AC_PROG_CC])dnl
Packit 64f477
AC_REQUIRE([AC_PROG_LD])dnl
Packit 64f477
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
Packit 64f477
AC_REQUIRE([AC_PROG_NM])dnl
Packit 64f477
AC_REQUIRE([AC_PROG_LN_S])dnl
Packit 64f477
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
Packit 64f477
AC_REQUIRE([AC_OBJEXT])dnl
Packit 64f477
AC_REQUIRE([AC_EXEEXT])dnl
Packit 64f477
dnl
Packit 64f477
Packit 64f477
_LT_AC_PROG_ECHO_BACKSLASH
Packit 64f477
# Only perform the check for file, if the check method requires it
Packit 64f477
case $deplibs_check_method in
Packit 64f477
file_magic*)
Packit 64f477
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Packit 64f477
    AC_PATH_MAGIC
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
AC_CHECK_TOOL(RANLIB, ranlib, :)
Packit 64f477
AC_CHECK_TOOL(STRIP, strip, :)
Packit 64f477
Packit 64f477
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
Packit 64f477
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
Packit 64f477
enable_win32_dll=yes, enable_win32_dll=no)
Packit 64f477
Packit 64f477
AC_ARG_ENABLE(libtool-lock,
Packit 64f477
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
Packit 64f477
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Packit 64f477
Packit 64f477
# Some flags need to be propagated to the compiler or linker for good
Packit 64f477
# libtool support.
Packit 64f477
case $host in
Packit 64f477
*-*-irix6*)
Packit 64f477
  # Find out which ABI we are using.
Packit 64f477
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Packit 64f477
  if AC_TRY_EVAL(ac_compile); then
Packit 64f477
    case `/usr/bin/file conftest.$ac_objext` in
Packit 64f477
    *32-bit*)
Packit 64f477
      LD="${LD-ld} -32"
Packit 64f477
      ;;
Packit 64f477
    *N32*)
Packit 64f477
      LD="${LD-ld} -n32"
Packit 64f477
      ;;
Packit 64f477
    *64-bit*)
Packit 64f477
      LD="${LD-ld} -64"
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  fi
Packit 64f477
  rm -rf conftest*
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
*-*-sco3.2v5*)
Packit 64f477
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Packit 64f477
  SAVE_CFLAGS="$CFLAGS"
Packit 64f477
  CFLAGS="$CFLAGS -belf"
Packit 64f477
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
Packit 64f477
    [AC_LANG_SAVE
Packit 64f477
     AC_LANG_C
Packit 64f477
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
Packit 64f477
     AC_LANG_RESTORE])
Packit 64f477
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Packit 64f477
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Packit 64f477
    CFLAGS="$SAVE_CFLAGS"
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
Packit 64f477
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
Packit 64f477
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
Packit 64f477
  AC_CHECK_TOOL(AS, as, false)
Packit 64f477
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
Packit 64f477
Packit 64f477
  # recent cygwin and mingw systems supply a stub DllMain which the user
Packit 64f477
  # can override, but on older systems we have to supply one
Packit 64f477
  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
Packit 64f477
    [AC_TRY_LINK([],
Packit 64f477
      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
Packit 64f477
      DllMain (0, 0, 0);],
Packit 64f477
      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
Packit 64f477
Packit 64f477
  case $host/$CC in
Packit 64f477
  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
Packit 64f477
    # old mingw systems require "-dll" to link a DLL, while more recent ones
Packit 64f477
    # require "-mdll"
Packit 64f477
    SAVE_CFLAGS="$CFLAGS"
Packit 64f477
    CFLAGS="$CFLAGS -mdll"
Packit 64f477
    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
Packit 64f477
      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
Packit 64f477
    CFLAGS="$SAVE_CFLAGS" ;;
Packit 64f477
  *-*-cygwin* | *-*-pw32*)
Packit 64f477
    # cygwin systems need to pass --dll to the linker, and not link
Packit 64f477
    # crt.o which will require a WinMain@16 definition.
Packit 64f477
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
Packit 64f477
  esac
Packit 64f477
  ;;
Packit 64f477
  ])
Packit 64f477
esac
Packit 64f477
Packit 64f477
_LT_AC_LTCONFIG_HACK
Packit 64f477
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_LIBTOOL_HEADER_ASSERT
Packit 64f477
# ------------------------
Packit 64f477
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
Packit 64f477
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
Packit 64f477
    [lt_cv_func_assert_works],
Packit 64f477
    [case $host in
Packit 64f477
    *-*-solaris*)
Packit 64f477
      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
Packit 64f477
        case `$CC --version 2>/dev/null` in
Packit 64f477
        [[12]].*) lt_cv_func_assert_works=no ;;
Packit 64f477
        *)        lt_cv_func_assert_works=yes ;;
Packit 64f477
        esac
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
    esac])
Packit 64f477
Packit 64f477
if test "x$lt_cv_func_assert_works" = xyes; then
Packit 64f477
  AC_CHECK_HEADERS(assert.h)
Packit 64f477
fi
Packit 64f477
])# AC_LIBTOOL_HEADER_ASSERT
Packit 64f477
Packit 64f477
# _LT_AC_CHECK_DLFCN
Packit 64f477
# --------------------
Packit 64f477
AC_DEFUN([_LT_AC_CHECK_DLFCN],
Packit 64f477
[AC_CHECK_HEADERS(dlfcn.h)
Packit 64f477
])# _LT_AC_CHECK_DLFCN
Packit 64f477
Packit 64f477
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
Packit 64f477
# ---------------------------------
Packit 64f477
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
Packit 64f477
[AC_REQUIRE([AC_CANONICAL_HOST])
Packit 64f477
AC_REQUIRE([AC_PROG_NM])
Packit 64f477
AC_REQUIRE([AC_OBJEXT])
Packit 64f477
# Check for command to grab the raw symbol name followed by C symbol from nm.
Packit 64f477
AC_MSG_CHECKING([command to parse $NM output])
Packit 64f477
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
Packit 64f477
Packit 64f477
# These are sane defaults that work on at least a few old systems.
Packit 64f477
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
Packit 64f477
Packit 64f477
# Character class describing NM global symbol codes.
Packit 64f477
symcode='[[BCDEGRST]]'
Packit 64f477
Packit 64f477
# Regexp to match symbols that can be accessed directly from C.
Packit 64f477
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
Packit 64f477
Packit 64f477
# Transform the above into a raw symbol and a C symbol.
Packit 64f477
symxfrm='\1 \2\3 \3'
Packit 64f477
Packit 64f477
# Transform an extracted symbol line into a proper C declaration
Packit 64f477
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
Packit 64f477
Packit 64f477
# Transform an extracted symbol line into symbol name and symbol address
Packit 64f477
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
Packit 64f477
Packit 64f477
# Define system-specific variables.
Packit 64f477
case $host_os in
Packit 64f477
aix*)
Packit 64f477
  symcode='[[BCDT]]'
Packit 64f477
  ;;
Packit 64f477
cygwin* | mingw* | pw32*)
Packit 64f477
  symcode='[[ABCDGISTW]]'
Packit 64f477
  ;;
Packit 64f477
hpux*) # Its linker distinguishes data from code symbols
Packit 64f477
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
Packit 64f477
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
Packit 64f477
  ;;
Packit 64f477
irix* | nonstopux*)
Packit 64f477
  symcode='[[BCDEGRST]]'
Packit 64f477
  ;;
Packit 64f477
solaris* | sysv5*)
Packit 64f477
  symcode='[[BDT]]'
Packit 64f477
  ;;
Packit 64f477
sysv4)
Packit 64f477
  symcode='[[DFNSTU]]'
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
# Handle CRLF in mingw tool chain
Packit 64f477
opt_cr=
Packit 64f477
case $host_os in
Packit 64f477
mingw*)
Packit 64f477
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
# If we're using GNU nm, then use its standard symbol codes.
Packit 64f477
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
Packit 64f477
  symcode='[[ABCDGISTW]]'
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Try without a prefix undercore, then with it.
Packit 64f477
for ac_symprfx in "" "_"; do
Packit 64f477
Packit 64f477
  # Write the raw and C identifiers.
Packit 64f477
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
Packit 64f477
Packit 64f477
  # Check to see that the pipe works correctly.
Packit 64f477
  pipe_works=no
Packit 64f477
  rm -f conftest*
Packit 64f477
  cat > conftest.$ac_ext <
Packit 64f477
#ifdef __cplusplus
Packit 64f477
extern "C" {
Packit 64f477
#endif
Packit 64f477
char nm_test_var;
Packit 64f477
void nm_test_func(){}
Packit 64f477
#ifdef __cplusplus
Packit 64f477
}
Packit 64f477
#endif
Packit 64f477
int main(){nm_test_var='a';nm_test_func();return(0);}
Packit 64f477
EOF
Packit 64f477
Packit 64f477
  if AC_TRY_EVAL(ac_compile); then
Packit 64f477
    # Now try to grab the symbols.
Packit 64f477
    nlist=conftest.nm
Packit 64f477
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
Packit 64f477
      # Try sorting and uniquifying the output.
Packit 64f477
      if sort "$nlist" | uniq > "$nlist"T; then
Packit 64f477
	mv -f "$nlist"T "$nlist"
Packit 64f477
      else
Packit 64f477
	rm -f "$nlist"T
Packit 64f477
      fi
Packit 64f477
Packit 64f477
      # Make sure that we snagged all the symbols we need.
Packit 64f477
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
Packit 64f477
	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
Packit 64f477
	  cat <<EOF > conftest.$ac_ext
Packit 64f477
#ifdef __cplusplus
Packit 64f477
extern "C" {
Packit 64f477
#endif
Packit 64f477
Packit 64f477
EOF
Packit 64f477
	  # Now generate the symbol file.
Packit 64f477
	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
Packit 64f477
Packit 64f477
	  cat <<EOF >> conftest.$ac_ext
Packit 64f477
#if defined (__STDC__) && __STDC__
Packit 64f477
# define lt_ptr void *
Packit 64f477
#else
Packit 64f477
# define lt_ptr char *
Packit 64f477
# define const
Packit 64f477
#endif
Packit 64f477
Packit 64f477
/* The mapping between symbol names and symbols. */
Packit 64f477
const struct {
Packit 64f477
  const char *name;
Packit 64f477
  lt_ptr address;
Packit 64f477
}
Packit 64f477
lt_preloaded_symbols[[]] =
Packit 64f477
{
Packit 64f477
EOF
Packit 64f477
	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
Packit 64f477
	  cat <<\EOF >> conftest.$ac_ext
Packit 64f477
  {0, (lt_ptr) 0}
Packit 64f477
};
Packit 64f477
Packit 64f477
#ifdef __cplusplus
Packit 64f477
}
Packit 64f477
#endif
Packit 64f477
EOF
Packit 64f477
	  # Now try linking the two files.
Packit 64f477
	  mv conftest.$ac_objext conftstm.$ac_objext
Packit 64f477
	  save_LIBS="$LIBS"
Packit 64f477
	  save_CFLAGS="$CFLAGS"
Packit 64f477
	  LIBS="conftstm.$ac_objext"
Packit 64f477
	  CFLAGS="$CFLAGS$no_builtin_flag"
Packit 64f477
	  if AC_TRY_EVAL(ac_link) && test -s conftest; then
Packit 64f477
	    pipe_works=yes
Packit 64f477
	  fi
Packit 64f477
	  LIBS="$save_LIBS"
Packit 64f477
	  CFLAGS="$save_CFLAGS"
Packit 64f477
	else
Packit 64f477
	  echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
Packit 64f477
	fi
Packit 64f477
      else
Packit 64f477
	echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
Packit 64f477
      fi
Packit 64f477
    else
Packit 64f477
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
Packit 64f477
    fi
Packit 64f477
  else
Packit 64f477
    echo "$progname: failed program was:" >&AC_FD_CC
Packit 64f477
    cat conftest.$ac_ext >&5
Packit 64f477
  fi
Packit 64f477
  rm -f conftest* conftst*
Packit 64f477
Packit 64f477
  # Do not use the global_symbol_pipe unless it works.
Packit 64f477
  if test "$pipe_works" = yes; then
Packit 64f477
    break
Packit 64f477
  else
Packit 64f477
    lt_cv_sys_global_symbol_pipe=
Packit 64f477
  fi
Packit 64f477
done
Packit 64f477
])
Packit 64f477
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
Packit 64f477
if test -z "$lt_cv_sys_global_symbol_pipe"; then
Packit 64f477
  global_symbol_to_cdecl=
Packit 64f477
  global_symbol_to_c_name_address=
Packit 64f477
else
Packit 64f477
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
Packit 64f477
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
Packit 64f477
fi
Packit 64f477
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
Packit 64f477
then
Packit 64f477
  AC_MSG_RESULT(failed)
Packit 64f477
else
Packit 64f477
  AC_MSG_RESULT(ok)
Packit 64f477
fi
Packit 64f477
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
Packit 64f477
Packit 64f477
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
Packit 64f477
# ---------------------------------
Packit 64f477
AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
Packit 64f477
[# Find the correct PATH separator.  Usually this is `:', but
Packit 64f477
# DJGPP uses `;' like DOS.
Packit 64f477
if test "X${PATH_SEPARATOR+set}" != Xset; then
Packit 64f477
  UNAME=${UNAME-`uname 2>/dev/null`}
Packit 64f477
  case X$UNAME in
Packit 64f477
    *-DOS) lt_cv_sys_path_separator=';' ;;
Packit 64f477
    *)     lt_cv_sys_path_separator=':' ;;
Packit 64f477
  esac
Packit 64f477
  PATH_SEPARATOR=$lt_cv_sys_path_separator
Packit 64f477
fi
Packit 64f477
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
Packit 64f477
Packit 64f477
# _LT_AC_PROG_ECHO_BACKSLASH
Packit 64f477
# --------------------------
Packit 64f477
# Add some code to the start of the generated configure script which
Packit 64f477
# will find an echo command which doesn't interpret backslashes.
Packit 64f477
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
Packit 64f477
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
Packit 64f477
			      [AC_DIVERT_PUSH(NOTICE)])
Packit 64f477
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
Packit 64f477
Packit 64f477
# Check that we are running under the correct shell.
Packit 64f477
SHELL=${CONFIG_SHELL-/bin/sh}
Packit 64f477
Packit 64f477
case X$ECHO in
Packit 64f477
X*--fallback-echo)
Packit 64f477
  # Remove one level of quotation (which was required for Make).
Packit 64f477
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
echo=${ECHO-echo}
Packit 64f477
if test "X[$]1" = X--no-reexec; then
Packit 64f477
  # Discard the --no-reexec flag, and continue.
Packit 64f477
  shift
Packit 64f477
elif test "X[$]1" = X--fallback-echo; then
Packit 64f477
  # Avoid inline document here, it may be left over
Packit 64f477
  :
Packit 64f477
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
Packit 64f477
  # Yippee, $echo works!
Packit 64f477
  :
Packit 64f477
else
Packit 64f477
  # Restart under the correct shell.
Packit 64f477
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit 64f477
fi
Packit 64f477
Packit 64f477
if test "X[$]1" = X--fallback-echo; then
Packit 64f477
  # used as fallback echo
Packit 64f477
  shift
Packit 64f477
  cat <
Packit 64f477
$*
Packit 64f477
EOF
Packit 64f477
  exit 0
Packit 64f477
fi
Packit 64f477
Packit 64f477
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit 64f477
# if CDPATH is set.
Packit 64f477
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
Packit 64f477
Packit 64f477
if test -z "$ECHO"; then
Packit 64f477
if test "X${echo_test_string+set}" != Xset; then
Packit 64f477
# find a string as large as possible, as long as the shell can cope with it
Packit 64f477
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
Packit 64f477
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Packit 64f477
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
Packit 64f477
       echo_test_string="`eval $cmd`" &&
Packit 64f477
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
Packit 64f477
    then
Packit 64f477
      break
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
fi
Packit 64f477
Packit 64f477
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Packit 64f477
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Packit 64f477
   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
  :
Packit 64f477
else
Packit 64f477
  # The Solaris, AIX, and Digital Unix default echo programs unquote
Packit 64f477
  # backslashes.  This makes it impossible to quote backslashes using
Packit 64f477
  #   echo "$something" | sed 's/\\/\\\\/g'
Packit 64f477
  #
Packit 64f477
  # So, first we look for a working echo in the user's PATH.
Packit 64f477
Packit 64f477
  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 64f477
  for dir in $PATH /usr/ucb; do
Packit 64f477
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
Packit 64f477
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
Packit 64f477
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
Packit 64f477
       test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
      echo="$dir/echo"
Packit 64f477
      break
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$save_ifs"
Packit 64f477
Packit 64f477
  if test "X$echo" = Xecho; then
Packit 64f477
    # We didn't find a better echo, so look for alternatives.
Packit 64f477
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
Packit 64f477
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
Packit 64f477
       test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
      # This shell has a builtin print -r that does the trick.
Packit 64f477
      echo='print -r'
Packit 64f477
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
Packit 64f477
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
Packit 64f477
      # If we have ksh, try running configure again with it.
Packit 64f477
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
Packit 64f477
      export ORIGINAL_CONFIG_SHELL
Packit 64f477
      CONFIG_SHELL=/bin/ksh
Packit 64f477
      export CONFIG_SHELL
Packit 64f477
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit 64f477
    else
Packit 64f477
      # Try using printf.
Packit 64f477
      echo='printf %s\n'
Packit 64f477
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Packit 64f477
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Packit 64f477
	 test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
	# Cool, printf works
Packit 64f477
	:
Packit 64f477
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit 64f477
	   test "X$echo_testing_string" = 'X\t' &&
Packit 64f477
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit 64f477
	   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
Packit 64f477
	export CONFIG_SHELL
Packit 64f477
	SHELL="$CONFIG_SHELL"
Packit 64f477
	export SHELL
Packit 64f477
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
Packit 64f477
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit 64f477
	   test "X$echo_testing_string" = 'X\t' &&
Packit 64f477
	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit 64f477
	   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit 64f477
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
Packit 64f477
      else
Packit 64f477
	# maybe with a smaller string...
Packit 64f477
	prev=:
Packit 64f477
Packit 64f477
	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
Packit 64f477
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
Packit 64f477
	  then
Packit 64f477
	    break
Packit 64f477
	  fi
Packit 64f477
	  prev="$cmd"
Packit 64f477
	done
Packit 64f477
Packit 64f477
	if test "$prev" != 'sed 50q "[$]0"'; then
Packit 64f477
	  echo_test_string=`eval $prev`
Packit 64f477
	  export echo_test_string
Packit 64f477
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
Packit 64f477
	else
Packit 64f477
	  # Oops.  We lost completely, so just stick with echo.
Packit 64f477
	  echo=echo
Packit 64f477
	fi
Packit 64f477
      fi
Packit 64f477
    fi
Packit 64f477
  fi
Packit 64f477
fi
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Copy echo and quote the copy suitably for passing to libtool from
Packit 64f477
# the Makefile, instead of quoting the original, which is used later.
Packit 64f477
ECHO=$echo
Packit 64f477
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
Packit 64f477
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
Packit 64f477
fi
Packit 64f477
Packit 64f477
AC_SUBST(ECHO)
Packit 64f477
AC_DIVERT_POP
Packit 64f477
])# _LT_AC_PROG_ECHO_BACKSLASH
Packit 64f477
Packit 64f477
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
Packit 64f477
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
Packit 64f477
# ------------------------------------------------------------------
Packit 64f477
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
Packit 64f477
[if test "$cross_compiling" = yes; then :
Packit 64f477
  [$4]
Packit 64f477
else
Packit 64f477
  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
Packit 64f477
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Packit 64f477
  lt_status=$lt_dlunknown
Packit 64f477
  cat > conftest.$ac_ext <
Packit 64f477
[#line __oline__ "configure"
Packit 64f477
#include "confdefs.h"
Packit 64f477
Packit 64f477
#if HAVE_DLFCN_H
Packit 64f477
#include <dlfcn.h>
Packit 64f477
#endif
Packit 64f477
Packit 64f477
#include <stdio.h>
Packit 64f477
Packit 64f477
#ifdef RTLD_GLOBAL
Packit 64f477
#  define LT_DLGLOBAL		RTLD_GLOBAL
Packit 64f477
#else
Packit 64f477
#  ifdef DL_GLOBAL
Packit 64f477
#    define LT_DLGLOBAL		DL_GLOBAL
Packit 64f477
#  else
Packit 64f477
#    define LT_DLGLOBAL		0
Packit 64f477
#  endif
Packit 64f477
#endif
Packit 64f477
Packit 64f477
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Packit 64f477
   find out it does not work in some platform. */
Packit 64f477
#ifndef LT_DLLAZY_OR_NOW
Packit 64f477
#  ifdef RTLD_LAZY
Packit 64f477
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
Packit 64f477
#  else
Packit 64f477
#    ifdef DL_LAZY
Packit 64f477
#      define LT_DLLAZY_OR_NOW		DL_LAZY
Packit 64f477
#    else
Packit 64f477
#      ifdef RTLD_NOW
Packit 64f477
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
Packit 64f477
#      else
Packit 64f477
#        ifdef DL_NOW
Packit 64f477
#          define LT_DLLAZY_OR_NOW	DL_NOW
Packit 64f477
#        else
Packit 64f477
#          define LT_DLLAZY_OR_NOW	0
Packit 64f477
#        endif
Packit 64f477
#      endif
Packit 64f477
#    endif
Packit 64f477
#  endif
Packit 64f477
#endif
Packit 64f477
Packit 64f477
#ifdef __cplusplus
Packit 64f477
extern "C" void exit (int);
Packit 64f477
#endif
Packit 64f477
Packit 64f477
void fnord() { int i=42;}
Packit 64f477
int main ()
Packit 64f477
{
Packit 64f477
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Packit 64f477
  int status = $lt_dlunknown;
Packit 64f477
Packit 64f477
  if (self)
Packit 64f477
    {
Packit 64f477
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
Packit 64f477
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Packit 64f477
      /* dlclose (self); */
Packit 64f477
    }
Packit 64f477
Packit 64f477
    exit (status);
Packit 64f477
}]
Packit 64f477
EOF
Packit 64f477
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
Packit 64f477
    (./conftest; exit; ) 2>/dev/null
Packit 64f477
    lt_status=$?
Packit 64f477
    case x$lt_status in
Packit 64f477
      x$lt_dlno_uscore) $1 ;;
Packit 64f477
      x$lt_dlneed_uscore) $2 ;;
Packit 64f477
      x$lt_unknown|x*) $3 ;;
Packit 64f477
    esac
Packit 64f477
  else :
Packit 64f477
    # compilation failed
Packit 64f477
    $3
Packit 64f477
  fi
Packit 64f477
fi
Packit 64f477
rm -fr conftest*
Packit 64f477
])# _LT_AC_TRY_DLOPEN_SELF
Packit 64f477
Packit 64f477
# AC_LIBTOOL_DLOPEN_SELF
Packit 64f477
# -------------------
Packit 64f477
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
Packit 64f477
[if test "x$enable_dlopen" != xyes; then
Packit 64f477
  enable_dlopen=unknown
Packit 64f477
  enable_dlopen_self=unknown
Packit 64f477
  enable_dlopen_self_static=unknown
Packit 64f477
else
Packit 64f477
  lt_cv_dlopen=no
Packit 64f477
  lt_cv_dlopen_libs=
Packit 64f477
Packit 64f477
  case $host_os in
Packit 64f477
  beos*)
Packit 64f477
    lt_cv_dlopen="load_add_on"
Packit 64f477
    lt_cv_dlopen_libs=
Packit 64f477
    lt_cv_dlopen_self=yes
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  cygwin* | mingw* | pw32*)
Packit 64f477
    lt_cv_dlopen="LoadLibrary"
Packit 64f477
    lt_cv_dlopen_libs=
Packit 64f477
   ;;
Packit 64f477
Packit 64f477
  *)
Packit 64f477
    AC_CHECK_FUNC([shl_load],
Packit 64f477
          [lt_cv_dlopen="shl_load"],
Packit 64f477
      [AC_CHECK_LIB([dld], [shl_load],
Packit 64f477
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
Packit 64f477
	[AC_CHECK_FUNC([dlopen],
Packit 64f477
	      [lt_cv_dlopen="dlopen"],
Packit 64f477
	  [AC_CHECK_LIB([dl], [dlopen],
Packit 64f477
	        [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
Packit 64f477
	    [AC_CHECK_LIB([svld], [dlopen],
Packit 64f477
	          [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
Packit 64f477
	      [AC_CHECK_LIB([dld], [dld_link],
Packit 64f477
	            [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
Packit 64f477
	      ])
Packit 64f477
	    ])
Packit 64f477
	  ])
Packit 64f477
	])
Packit 64f477
      ])
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  if test "x$lt_cv_dlopen" != xno; then
Packit 64f477
    enable_dlopen=yes
Packit 64f477
  else
Packit 64f477
    enable_dlopen=no
Packit 64f477
  fi
Packit 64f477
Packit 64f477
  case $lt_cv_dlopen in
Packit 64f477
  dlopen)
Packit 64f477
    save_CPPFLAGS="$CPPFLAGS"
Packit 64f477
    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
Packit 64f477
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Packit 64f477
Packit 64f477
    save_LDFLAGS="$LDFLAGS"
Packit 64f477
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Packit 64f477
Packit 64f477
    save_LIBS="$LIBS"
Packit 64f477
    LIBS="$lt_cv_dlopen_libs $LIBS"
Packit 64f477
Packit 64f477
    AC_CACHE_CHECK([whether a program can dlopen itself],
Packit 64f477
	  lt_cv_dlopen_self, [dnl
Packit 64f477
	  _LT_AC_TRY_DLOPEN_SELF(
Packit 64f477
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
Packit 64f477
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
Packit 64f477
    ])
Packit 64f477
Packit 64f477
    if test "x$lt_cv_dlopen_self" = xyes; then
Packit 64f477
      LDFLAGS="$LDFLAGS $link_static_flag"
Packit 64f477
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
Packit 64f477
    	  lt_cv_dlopen_self_static, [dnl
Packit 64f477
	  _LT_AC_TRY_DLOPEN_SELF(
Packit 64f477
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
Packit 64f477
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
Packit 64f477
      ])
Packit 64f477
    fi
Packit 64f477
Packit 64f477
    CPPFLAGS="$save_CPPFLAGS"
Packit 64f477
    LDFLAGS="$save_LDFLAGS"
Packit 64f477
    LIBS="$save_LIBS"
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  case $lt_cv_dlopen_self in
Packit 64f477
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Packit 64f477
  *) enable_dlopen_self=unknown ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  case $lt_cv_dlopen_self_static in
Packit 64f477
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Packit 64f477
  *) enable_dlopen_self_static=unknown ;;
Packit 64f477
  esac
Packit 64f477
fi
Packit 64f477
])# AC_LIBTOOL_DLOPEN_SELF
Packit 64f477
Packit 64f477
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
Packit 64f477
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
Packit 64f477
# Sed substitution that helps us do robust quoting.  It backslashifies
Packit 64f477
# metacharacters that are still active within double-quoted strings.
Packit 64f477
Xsed='sed -e s/^X//'
Packit 64f477
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
Packit 64f477
Packit 64f477
# Same as above, but do not quote variable references.
Packit 64f477
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
Packit 64f477
Packit 64f477
# Sed substitution to delay expansion of an escaped shell variable in a
Packit 64f477
# double_quote_subst'ed string.
Packit 64f477
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Packit 64f477
Packit 64f477
# Constants:
Packit 64f477
rm="rm -f"
Packit 64f477
Packit 64f477
# Global variables:
Packit 64f477
default_ofile=libtool
Packit 64f477
can_build_shared=yes
Packit 64f477
Packit 64f477
# All known linkers require a `.a' archive for static linking (except M$VC,
Packit 64f477
# which needs '.lib').
Packit 64f477
libext=a
Packit 64f477
ltmain="$ac_aux_dir/ltmain.sh"
Packit 64f477
ofile="$default_ofile"
Packit 64f477
with_gnu_ld="$lt_cv_prog_gnu_ld"
Packit 64f477
need_locks="$enable_libtool_lock"
Packit 64f477
Packit 64f477
old_CC="$CC"
Packit 64f477
old_CFLAGS="$CFLAGS"
Packit 64f477
Packit 64f477
# Set sane defaults for various variables
Packit 64f477
test -z "$AR" && AR=ar
Packit 64f477
test -z "$AR_FLAGS" && AR_FLAGS=cru
Packit 64f477
test -z "$AS" && AS=as
Packit 64f477
test -z "$CC" && CC=cc
Packit 64f477
test -z "$DLLTOOL" && DLLTOOL=dlltool
Packit 64f477
test -z "$LD" && LD=ld
Packit 64f477
test -z "$LN_S" && LN_S="ln -s"
Packit 64f477
test -z "$MAGIC_CMD" && MAGIC_CMD=file
Packit 64f477
test -z "$NM" && NM=nm
Packit 64f477
test -z "$OBJDUMP" && OBJDUMP=objdump
Packit 64f477
test -z "$RANLIB" && RANLIB=:
Packit 64f477
test -z "$STRIP" && STRIP=:
Packit 64f477
test -z "$ac_objext" && ac_objext=o
Packit 64f477
Packit 64f477
if test x"$host" != x"$build"; then
Packit 64f477
  ac_tool_prefix=${host_alias}-
Packit 64f477
else
Packit 64f477
  ac_tool_prefix=
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
Packit 64f477
case $host_os in
Packit 64f477
linux-gnu*) ;;
Packit 64f477
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
Packit 64f477
esac
Packit 64f477
Packit 64f477
case $host_os in
Packit 64f477
aix3*)
Packit 64f477
  # AIX sometimes has problems with the GCC collect2 program.  For some
Packit 64f477
  # reason, if we set the COLLECT_NAMES environment variable, the problems
Packit 64f477
  # vanish in a puff of smoke.
Packit 64f477
  if test "X${COLLECT_NAMES+set}" != Xset; then
Packit 64f477
    COLLECT_NAMES=
Packit 64f477
    export COLLECT_NAMES
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
# Determine commands to create old-style static archives.
Packit 64f477
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
Packit 64f477
old_postinstall_cmds='chmod 644 $oldlib'
Packit 64f477
old_postuninstall_cmds=
Packit 64f477
Packit 64f477
if test -n "$RANLIB"; then
Packit 64f477
  case $host_os in
Packit 64f477
  openbsd*)
Packit 64f477
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Allow CC to be a program name with arguments.
Packit 64f477
set dummy $CC
Packit 64f477
compiler="[$]2"
Packit 64f477
Packit 64f477
AC_MSG_CHECKING([for objdir])
Packit 64f477
rm -f .libs 2>/dev/null
Packit 64f477
mkdir .libs 2>/dev/null
Packit 64f477
if test -d .libs; then
Packit 64f477
  objdir=.libs
Packit 64f477
else
Packit 64f477
  # MS-DOS does not allow filenames that begin with a dot.
Packit 64f477
  objdir=_libs
Packit 64f477
fi
Packit 64f477
rmdir .libs 2>/dev/null
Packit 64f477
AC_MSG_RESULT($objdir)
Packit 64f477
Packit 64f477
Packit 64f477
AC_ARG_WITH(pic,
Packit 64f477
[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
Packit 64f477
pic_mode="$withval", pic_mode=default)
Packit 64f477
test -z "$pic_mode" && pic_mode=default
Packit 64f477
Packit 64f477
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
Packit 64f477
# in isolation, and that seeing it set (from the cache) indicates that
Packit 64f477
# the associated values are set (in the cache) correctly too.
Packit 64f477
AC_MSG_CHECKING([for $compiler option to produce PIC])
Packit 64f477
AC_CACHE_VAL(lt_cv_prog_cc_pic,
Packit 64f477
[ lt_cv_prog_cc_pic=
Packit 64f477
  lt_cv_prog_cc_shlib=
Packit 64f477
  lt_cv_prog_cc_wl=
Packit 64f477
  lt_cv_prog_cc_static=
Packit 64f477
  lt_cv_prog_cc_no_builtin=
Packit 64f477
  lt_cv_prog_cc_can_build_shared=$can_build_shared
Packit 64f477
Packit 64f477
  if test "$GCC" = yes; then
Packit 64f477
    lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
    lt_cv_prog_cc_static='-static'
Packit 64f477
Packit 64f477
    case $host_os in
Packit 64f477
    aix*)
Packit 64f477
      # Below there is a dirty hack to force normal static linking with -ldl
Packit 64f477
      # The problem is because libdl dynamically linked with both libc and
Packit 64f477
      # libC (AIX C++ library), which obviously doesn't included in libraries
Packit 64f477
      # list by gcc. This cause undefined symbols with -static flags.
Packit 64f477
      # This hack allows C programs to be linked with "-static -ldl", but
Packit 64f477
      # not sure about C++ programs.
Packit 64f477
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
Packit 64f477
      ;;
Packit 64f477
    amigaos*)
Packit 64f477
      # FIXME: we need at least 68020 code to build shared libraries, but
Packit 64f477
      # adding the `-m68020' flag to GCC prevents building anything better,
Packit 64f477
      # like `-m68040'.
Packit 64f477
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
Packit 64f477
      ;;
Packit 64f477
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Packit 64f477
      # PIC is the default for these OSes.
Packit 64f477
      ;;
Packit 64f477
    darwin* | rhapsody*)
Packit 64f477
      # PIC is the default on this platform
Packit 64f477
      # Common symbols not allowed in MH_DYLIB files
Packit 64f477
      lt_cv_prog_cc_pic='-fno-common'
Packit 64f477
      ;;
Packit 64f477
    cygwin* | mingw* | pw32* | os2*)
Packit 64f477
      # This hack is so that the source file can tell whether it is being
Packit 64f477
      # built for inclusion in a dll (and should export symbols for example).
Packit 64f477
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
Packit 64f477
      ;;
Packit 64f477
    sysv4*MP*)
Packit 64f477
      if test -d /usr/nec; then
Packit 64f477
	 lt_cv_prog_cc_pic=-Kconform_pic
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
    *)
Packit 64f477
      lt_cv_prog_cc_pic='-fPIC'
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  else
Packit 64f477
    # PORTME Check for PIC flags for the system compiler.
Packit 64f477
    case $host_os in
Packit 64f477
    aix3* | aix4* | aix5*)
Packit 64f477
      lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      # All AIX code is PIC.
Packit 64f477
      if test "$host_cpu" = ia64; then
Packit 64f477
	# AIX 5 now supports IA64 processor
Packit 64f477
	lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      else
Packit 64f477
	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    hpux9* | hpux10* | hpux11*)
Packit 64f477
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
Packit 64f477
      lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
Packit 64f477
      lt_cv_prog_cc_pic='+Z'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    irix5* | irix6* | nonstopux*)
Packit 64f477
      lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      lt_cv_prog_cc_static='-non_shared'
Packit 64f477
      # PIC (with -KPIC) is the default.
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    cygwin* | mingw* | pw32* | os2*)
Packit 64f477
      # This hack is so that the source file can tell whether it is being
Packit 64f477
      # built for inclusion in a dll (and should export symbols for example).
Packit 64f477
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    newsos6)
Packit 64f477
      lt_cv_prog_cc_pic='-KPIC'
Packit 64f477
      lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    osf3* | osf4* | osf5*)
Packit 64f477
      # All OSF/1 code is PIC.
Packit 64f477
      lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      lt_cv_prog_cc_static='-non_shared'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    sco3.2v5*)
Packit 64f477
      lt_cv_prog_cc_pic='-Kpic'
Packit 64f477
      lt_cv_prog_cc_static='-dn'
Packit 64f477
      lt_cv_prog_cc_shlib='-belf'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    solaris*)
Packit 64f477
      lt_cv_prog_cc_pic='-KPIC'
Packit 64f477
      lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    sunos4*)
Packit 64f477
      lt_cv_prog_cc_pic='-PIC'
Packit 64f477
      lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      lt_cv_prog_cc_wl='-Qoption ld '
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Packit 64f477
      lt_cv_prog_cc_pic='-KPIC'
Packit 64f477
      lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      if test "x$host_vendor" = xsni; then
Packit 64f477
	lt_cv_prog_cc_wl='-LD'
Packit 64f477
      else
Packit 64f477
	lt_cv_prog_cc_wl='-Wl,'
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    uts4*)
Packit 64f477
      lt_cv_prog_cc_pic='-pic'
Packit 64f477
      lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    sysv4*MP*)
Packit 64f477
      if test -d /usr/nec ;then
Packit 64f477
	lt_cv_prog_cc_pic='-Kconform_pic'
Packit 64f477
	lt_cv_prog_cc_static='-Bstatic'
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
Packit 64f477
    *)
Packit 64f477
      lt_cv_prog_cc_can_build_shared=no
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  fi
Packit 64f477
])
Packit 64f477
if test -z "$lt_cv_prog_cc_pic"; then
Packit 64f477
  AC_MSG_RESULT([none])
Packit 64f477
else
Packit 64f477
  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
Packit 64f477
Packit 64f477
  # Check to make sure the pic_flag actually works.
Packit 64f477
  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
Packit 64f477
  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
Packit 64f477
    save_CFLAGS="$CFLAGS"
Packit 64f477
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
Packit 64f477
    AC_TRY_COMPILE([], [], [dnl
Packit 64f477
      case $host_os in
Packit 64f477
      hpux9* | hpux10* | hpux11*)
Packit 64f477
	# On HP-UX, both CC and GCC only warn that PIC is supported... then
Packit 64f477
	# they create non-PIC objects.  So, if there were any warnings, we
Packit 64f477
	# assume that PIC is not supported.
Packit 64f477
	if test -s conftest.err; then
Packit 64f477
	  lt_cv_prog_cc_pic_works=no
Packit 64f477
	else
Packit 64f477
	  lt_cv_prog_cc_pic_works=yes
Packit 64f477
	fi
Packit 64f477
	;;
Packit 64f477
      *)
Packit 64f477
	lt_cv_prog_cc_pic_works=yes
Packit 64f477
	;;
Packit 64f477
      esac
Packit 64f477
    ], [dnl
Packit 64f477
      lt_cv_prog_cc_pic_works=no
Packit 64f477
    ])
Packit 64f477
    CFLAGS="$save_CFLAGS"
Packit 64f477
  ])
Packit 64f477
Packit 64f477
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
Packit 64f477
    lt_cv_prog_cc_pic=
Packit 64f477
    lt_cv_prog_cc_can_build_shared=no
Packit 64f477
  else
Packit 64f477
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
Packit 64f477
  fi
Packit 64f477
Packit 64f477
  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Check for any special shared library compilation flags.
Packit 64f477
if test -n "$lt_cv_prog_cc_shlib"; then
Packit 64f477
  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
Packit 64f477
  if echo "$old_CC $old_CFLAGS " | egrep -e "[[ 	]]$lt_cv_prog_cc_shlib[[ 	]]" >/dev/null; then :
Packit 64f477
  else
Packit 64f477
   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
Packit 64f477
    lt_cv_prog_cc_can_build_shared=no
Packit 64f477
  fi
Packit 64f477
fi
Packit 64f477
Packit 64f477
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
Packit 64f477
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
Packit 64f477
  lt_cv_prog_cc_static_works=no
Packit 64f477
  save_LDFLAGS="$LDFLAGS"
Packit 64f477
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
Packit 64f477
  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
Packit 64f477
  LDFLAGS="$save_LDFLAGS"
Packit 64f477
])
Packit 64f477
Packit 64f477
# Belt *and* braces to stop my trousers falling down:
Packit 64f477
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
Packit 64f477
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
Packit 64f477
Packit 64f477
pic_flag="$lt_cv_prog_cc_pic"
Packit 64f477
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
Packit 64f477
wl="$lt_cv_prog_cc_wl"
Packit 64f477
link_static_flag="$lt_cv_prog_cc_static"
Packit 64f477
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
Packit 64f477
can_build_shared="$lt_cv_prog_cc_can_build_shared"
Packit 64f477
Packit 64f477
Packit 64f477
# Check to see if options -o and -c are simultaneously supported by compiler
Packit 64f477
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
Packit 64f477
AC_CACHE_VAL([lt_cv_compiler_c_o], [
Packit 64f477
$rm -r conftest 2>/dev/null
Packit 64f477
mkdir conftest
Packit 64f477
cd conftest
Packit 64f477
echo "int some_variable = 0;" > conftest.$ac_ext
Packit 64f477
mkdir out
Packit 64f477
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
Packit 64f477
# that will create temporary files in the current directory regardless of
Packit 64f477
# the output directory.  Thus, making CWD read-only will cause this test
Packit 64f477
# to fail, enabling locking or at least warning the user not to do parallel
Packit 64f477
# builds.
Packit 64f477
chmod -w .
Packit 64f477
save_CFLAGS="$CFLAGS"
Packit 64f477
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
Packit 64f477
compiler_c_o=no
Packit 64f477
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
Packit 64f477
  # The compiler can only warn and ignore the option if not recognized
Packit 64f477
  # So say no if there are warnings
Packit 64f477
  if test -s out/conftest.err; then
Packit 64f477
    lt_cv_compiler_c_o=no
Packit 64f477
  else
Packit 64f477
    lt_cv_compiler_c_o=yes
Packit 64f477
  fi
Packit 64f477
else
Packit 64f477
  # Append any errors to the config.log.
Packit 64f477
  cat out/conftest.err 1>&AC_FD_CC
Packit 64f477
  lt_cv_compiler_c_o=no
Packit 64f477
fi
Packit 64f477
CFLAGS="$save_CFLAGS"
Packit 64f477
chmod u+w .
Packit 64f477
$rm conftest* out/*
Packit 64f477
rmdir out
Packit 64f477
cd ..
Packit 64f477
rmdir conftest
Packit 64f477
$rm -r conftest 2>/dev/null
Packit 64f477
])
Packit 64f477
compiler_c_o=$lt_cv_compiler_c_o
Packit 64f477
AC_MSG_RESULT([$compiler_c_o])
Packit 64f477
Packit 64f477
if test x"$compiler_c_o" = x"yes"; then
Packit 64f477
  # Check to see if we can write to a .lo
Packit 64f477
  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
Packit 64f477
  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
Packit 64f477
  lt_cv_compiler_o_lo=no
Packit 64f477
  save_CFLAGS="$CFLAGS"
Packit 64f477
  CFLAGS="$CFLAGS -c -o conftest.lo"
Packit 64f477
  save_objext="$ac_objext"
Packit 64f477
  ac_objext=lo
Packit 64f477
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
Packit 64f477
    # The compiler can only warn and ignore the option if not recognized
Packit 64f477
    # So say no if there are warnings
Packit 64f477
    if test -s conftest.err; then
Packit 64f477
      lt_cv_compiler_o_lo=no
Packit 64f477
    else
Packit 64f477
      lt_cv_compiler_o_lo=yes
Packit 64f477
    fi
Packit 64f477
  ])
Packit 64f477
  ac_objext="$save_objext"
Packit 64f477
  CFLAGS="$save_CFLAGS"
Packit 64f477
  ])
Packit 64f477
  compiler_o_lo=$lt_cv_compiler_o_lo
Packit 64f477
  AC_MSG_RESULT([$compiler_o_lo])
Packit 64f477
else
Packit 64f477
  compiler_o_lo=no
Packit 64f477
fi
Packit 64f477
Packit 64f477
# Check to see if we can do hard links to lock some files if needed
Packit 64f477
hard_links="nottested"
Packit 64f477
if test "$compiler_c_o" = no && test "$need_locks" != no; then
Packit 64f477
  # do not overwrite the value of need_locks provided by the user
Packit 64f477
  AC_MSG_CHECKING([if we can lock with hard links])
Packit 64f477
  hard_links=yes
Packit 64f477
  $rm conftest*
Packit 64f477
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit 64f477
  touch conftest.a
Packit 64f477
  ln conftest.a conftest.b 2>&5 || hard_links=no
Packit 64f477
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit 64f477
  AC_MSG_RESULT([$hard_links])
Packit 64f477
  if test "$hard_links" = no; then
Packit 64f477
    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
Packit 64f477
    need_locks=warn
Packit 64f477
  fi
Packit 64f477
else
Packit 64f477
  need_locks=no
Packit 64f477
fi
Packit 64f477
Packit 64f477
if test "$GCC" = yes; then
Packit 64f477
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
Packit 64f477
  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
Packit 64f477
  echo "int some_variable = 0;" > conftest.$ac_ext
Packit 64f477
  save_CFLAGS="$CFLAGS"
Packit 64f477
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
Packit 64f477
  compiler_rtti_exceptions=no
Packit 64f477
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
Packit 64f477
    # The compiler can only warn and ignore the option if not recognized
Packit 64f477
    # So say no if there are warnings
Packit 64f477
    if test -s conftest.err; then
Packit 64f477
      compiler_rtti_exceptions=no
Packit 64f477
    else
Packit 64f477
      compiler_rtti_exceptions=yes
Packit 64f477
    fi
Packit 64f477
  ])
Packit 64f477
  CFLAGS="$save_CFLAGS"
Packit 64f477
  AC_MSG_RESULT([$compiler_rtti_exceptions])
Packit 64f477
Packit 64f477
  if test "$compiler_rtti_exceptions" = "yes"; then
Packit 64f477
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
Packit 64f477
  else
Packit 64f477
    no_builtin_flag=' -fno-builtin'
Packit 64f477
  fi
Packit 64f477
fi
Packit 64f477
Packit 64f477
# See if the linker supports building shared libraries.
Packit 64f477
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
Packit 64f477
Packit 64f477
allow_undefined_flag=
Packit 64f477
no_undefined_flag=
Packit 64f477
need_lib_prefix=unknown
Packit 64f477
need_version=unknown
Packit 64f477
# when you set need_version to no, make sure it does not cause -set_version
Packit 64f477
# flags to be left without arguments
Packit 64f477
archive_cmds=
Packit 64f477
archive_expsym_cmds=
Packit 64f477
old_archive_from_new_cmds=
Packit 64f477
old_archive_from_expsyms_cmds=
Packit 64f477
export_dynamic_flag_spec=
Packit 64f477
whole_archive_flag_spec=
Packit 64f477
thread_safe_flag_spec=
Packit 64f477
hardcode_into_libs=no
Packit 64f477
hardcode_libdir_flag_spec=
Packit 64f477
hardcode_libdir_separator=
Packit 64f477
hardcode_direct=no
Packit 64f477
hardcode_minus_L=no
Packit 64f477
hardcode_shlibpath_var=unsupported
Packit 64f477
runpath_var=
Packit 64f477
link_all_deplibs=unknown
Packit 64f477
always_export_symbols=no
Packit 64f477
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
Packit 64f477
# include_expsyms should be a list of space-separated symbols to be *always*
Packit 64f477
# included in the symbol list
Packit 64f477
include_expsyms=
Packit 64f477
# exclude_expsyms can be an egrep regular expression of symbols to exclude
Packit 64f477
# it will be wrapped by ` (' and `)$', so one must not match beginning or
Packit 64f477
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
Packit 64f477
# as well as any symbol that contains `d'.
Packit 64f477
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
Packit 64f477
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
Packit 64f477
# platforms (ab)use it in PIC code, but their linkers get confused if
Packit 64f477
# the symbol is explicitly referenced.  Since portable code cannot
Packit 64f477
# rely on this symbol name, it's probably fine to never include it in
Packit 64f477
# preloaded symbol tables.
Packit 64f477
extract_expsyms_cmds=
Packit 64f477
Packit 64f477
case $host_os in
Packit 64f477
cygwin* | mingw* | pw32*)
Packit 64f477
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
Packit 64f477
  # When not using gcc, we currently assume that we are using
Packit 64f477
  # Microsoft Visual C++.
Packit 64f477
  if test "$GCC" != yes; then
Packit 64f477
    with_gnu_ld=no
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
openbsd*)
Packit 64f477
  with_gnu_ld=no
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
Packit 64f477
ld_shlibs=yes
Packit 64f477
if test "$with_gnu_ld" = yes; then
Packit 64f477
  # If archive_cmds runs LD, not CC, wlarc should be empty
Packit 64f477
  wlarc='${wl}'
Packit 64f477
Packit 64f477
  # See if GNU ld supports shared libraries.
Packit 64f477
  case $host_os in
Packit 64f477
  aix3* | aix4* | aix5*)
Packit 64f477
    # On AIX, the GNU linker is very broken
Packit 64f477
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
Packit 64f477
    ld_shlibs=no
Packit 64f477
    cat <<EOF 1>&2
Packit 64f477
Packit 64f477
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Packit 64f477
*** to be unable to reliably create shared libraries on AIX.
Packit 64f477
*** Therefore, libtool is disabling shared libraries support.  If you
Packit 64f477
*** really care for shared libraries, you may want to modify your PATH
Packit 64f477
*** so that a non-GNU linker is found, and then restart.
Packit 64f477
Packit 64f477
EOF
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  amigaos*)
Packit 64f477
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
Packit 64f477
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
Packit 64f477
    # that the semantics of dynamic libraries on AmigaOS, at least up
Packit 64f477
    # to version 4, is to share data among multiple programs linked
Packit 64f477
    # with the same dynamic library.  Since this doesn't match the
Packit 64f477
    # behavior of shared libraries on other platforms, we can use
Packit 64f477
    # them.
Packit 64f477
    ld_shlibs=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  beos*)
Packit 64f477
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Packit 64f477
      allow_undefined_flag=unsupported
Packit 64f477
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Packit 64f477
      # support --undefined.  This deserves some investigation.  FIXME
Packit 64f477
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit 64f477
    else
Packit 64f477
      ld_shlibs=no
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  cygwin* | mingw* | pw32*)
Packit 64f477
    # hardcode_libdir_flag_spec is actually meaningless, as there is
Packit 64f477
    # no search path for DLLs.
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    allow_undefined_flag=unsupported
Packit 64f477
    always_export_symbols=yes
Packit 64f477
Packit 64f477
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
Packit 64f477
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
Packit 64f477
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
Packit 64f477
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
Packit 64f477
      else $CC -o impgen impgen.c ; fi)~
Packit 64f477
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
Packit 64f477
Packit 64f477
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
Packit 64f477
Packit 64f477
    # cygwin and mingw dlls have different entry points and sets of symbols
Packit 64f477
    # to exclude.
Packit 64f477
    # FIXME: what about values for MSVC?
Packit 64f477
    dll_entry=__cygwin_dll_entry@12
Packit 64f477
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
Packit 64f477
    case $host_os in
Packit 64f477
    mingw*)
Packit 64f477
      # mingw values
Packit 64f477
      dll_entry=_DllMainCRTStartup@12
Packit 64f477
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
Packit 64f477
    # mingw and cygwin differ, and it's simplest to just exclude the union
Packit 64f477
    # of the two symbol sets.
Packit 64f477
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
Packit 64f477
Packit 64f477
    # recent cygwin and mingw systems supply a stub DllMain which the user
Packit 64f477
    # can override, but on older systems we have to supply one (in ltdll.c)
Packit 64f477
    if test "x$lt_cv_need_dllmain" = "xyes"; then
Packit 64f477
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
Packit 64f477
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
Packit 64f477
	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
Packit 64f477
    else
Packit 64f477
      ltdll_obj=
Packit 64f477
      ltdll_cmds=
Packit 64f477
    fi
Packit 64f477
Packit 64f477
    # Extract the symbol export list from an `--export-all' def file,
Packit 64f477
    # then regenerate the def file from the symbol export list, so that
Packit 64f477
    # the compiled dll only exports the symbol export list.
Packit 64f477
    # Be careful not to strip the DATA tag left be newer dlltools.
Packit 64f477
    export_symbols_cmds="$ltdll_cmds"'
Packit 64f477
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
Packit 64f477
      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
Packit 64f477
Packit 64f477
    # If the export-symbols file already is a .def file (1st line
Packit 64f477
    # is EXPORTS), use it as is.
Packit 64f477
    # If DATA tags from a recent dlltool are present, honour them!
Packit 64f477
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
Packit 64f477
	cp $export_symbols $output_objdir/$soname-def;
Packit 64f477
      else
Packit 64f477
	echo EXPORTS > $output_objdir/$soname-def;
Packit 64f477
	_lt_hint=1;
Packit 64f477
	cat $export_symbols | while read symbol; do
Packit 64f477
	 set dummy \$symbol;
Packit 64f477
	 case \[$]# in
Packit 64f477
	   2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
Packit 64f477
	   *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
Packit 64f477
	 esac;
Packit 64f477
	 _lt_hint=`expr 1 + \$_lt_hint`;
Packit 64f477
	done;
Packit 64f477
      fi~
Packit 64f477
      '"$ltdll_cmds"'
Packit 64f477
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
Packit 64f477
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
Packit 64f477
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
Packit 64f477
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
Packit 64f477
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  netbsd*)
Packit 64f477
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Packit 64f477
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Packit 64f477
      wlarc=
Packit 64f477
    else
Packit 64f477
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit 64f477
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  solaris* | sysv5*)
Packit 64f477
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
Packit 64f477
      ld_shlibs=no
Packit 64f477
      cat <<EOF 1>&2
Packit 64f477
Packit 64f477
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
Packit 64f477
*** create shared libraries on Solaris systems.  Therefore, libtool
Packit 64f477
*** is disabling shared libraries support.  We urge you to upgrade GNU
Packit 64f477
*** binutils to release 2.9.1 or newer.  Another option is to modify
Packit 64f477
*** your PATH or compiler configuration so that the native linker is
Packit 64f477
*** used, and then restart.
Packit 64f477
Packit 64f477
EOF
Packit 64f477
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Packit 64f477
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit 64f477
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Packit 64f477
    else
Packit 64f477
      ld_shlibs=no
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sunos4*)
Packit 64f477
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    wlarc=
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  *)
Packit 64f477
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
Packit 64f477
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit 64f477
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Packit 64f477
    else
Packit 64f477
      ld_shlibs=no
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  if test "$ld_shlibs" = yes; then
Packit 64f477
    runpath_var=LD_RUN_PATH
Packit 64f477
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
Packit 64f477
    export_dynamic_flag_spec='${wl}--export-dynamic'
Packit 64f477
    case $host_os in
Packit 64f477
    cygwin* | mingw* | pw32*)
Packit 64f477
      # dlltool doesn't understand --whole-archive et. al.
Packit 64f477
      whole_archive_flag_spec=
Packit 64f477
      ;;
Packit 64f477
    *)
Packit 64f477
      # ancient GNU ld didn't support --whole-archive et. al.
Packit 64f477
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
Packit 64f477
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Packit 64f477
      else
Packit 64f477
	whole_archive_flag_spec=
Packit 64f477
      fi
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  fi
Packit 64f477
else
Packit 64f477
  # PORTME fill in a description of your system's linker (not GNU ld)
Packit 64f477
  case $host_os in
Packit 64f477
  aix3*)
Packit 64f477
    allow_undefined_flag=unsupported
Packit 64f477
    always_export_symbols=yes
Packit 64f477
    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
Packit 64f477
    # Note: this linker hardcodes the directories in LIBPATH if there
Packit 64f477
    # are no directories specified by -L.
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
    if test "$GCC" = yes && test -z "$link_static_flag"; then
Packit 64f477
      # Neither direct hardcoding nor static linking is supported with a
Packit 64f477
      # broken collect2.
Packit 64f477
      hardcode_direct=unsupported
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  aix4* | aix5*)
Packit 64f477
    if test "$host_cpu" = ia64; then
Packit 64f477
      # On IA64, the linker does run time linking by default, so we don't
Packit 64f477
      # have to do anything special.
Packit 64f477
      aix_use_runtimelinking=no
Packit 64f477
      exp_sym_flag='-Bexport'
Packit 64f477
      no_entry_flag=""
Packit 64f477
    else
Packit 64f477
      aix_use_runtimelinking=no
Packit 64f477
Packit 64f477
      # Test if we are trying to use run time linking or normal
Packit 64f477
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Packit 64f477
      # need to do runtime linking.
Packit 64f477
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
Packit 64f477
	for ld_flag in $LDFLAGS; do
Packit 64f477
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
Packit 64f477
	    aix_use_runtimelinking=yes
Packit 64f477
	    break
Packit 64f477
	  fi
Packit 64f477
	done
Packit 64f477
      esac
Packit 64f477
Packit 64f477
      exp_sym_flag='-bexport'
Packit 64f477
      no_entry_flag='-bnoentry'
Packit 64f477
    fi
Packit 64f477
Packit 64f477
    # When large executables or shared objects are built, AIX ld can
Packit 64f477
    # have problems creating the table of contents.  If linking a library
Packit 64f477
    # or program results in "error TOC overflow" add -mminimal-toc to
Packit 64f477
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
Packit 64f477
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Packit 64f477
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    archive_cmds=''
Packit 64f477
    hardcode_libdir_separator=':'
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
Packit 64f477
	collect2name=`${CC} -print-prog-name=collect2`
Packit 64f477
	if test -f "$collect2name" && \
Packit 64f477
	  strings "$collect2name" | grep resolve_lib_name >/dev/null
Packit 64f477
	then
Packit 64f477
	  # We have reworked collect2
Packit 64f477
	  hardcode_direct=yes
Packit 64f477
	else
Packit 64f477
	  # We have old collect2
Packit 64f477
	  hardcode_direct=unsupported
Packit 64f477
	  # It fails to find uninstalled libraries when the uninstalled
Packit 64f477
	  # path is not listed in the libpath.  Setting hardcode_minus_L
Packit 64f477
	  # to unsupported forces relinking
Packit 64f477
	  hardcode_minus_L=yes
Packit 64f477
	  hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
	  hardcode_libdir_separator=
Packit 64f477
	fi
Packit 64f477
      esac
Packit 64f477
Packit 64f477
      shared_flag='-shared'
Packit 64f477
    else
Packit 64f477
      # not using gcc
Packit 64f477
      if test "$host_cpu" = ia64; then
Packit 64f477
	shared_flag='${wl}-G'
Packit 64f477
      else
Packit 64f477
	if test "$aix_use_runtimelinking" = yes; then
Packit 64f477
	  shared_flag='${wl}-G'
Packit 64f477
	else
Packit 64f477
	  shared_flag='${wl}-bM:SRE'
Packit 64f477
	fi
Packit 64f477
      fi
Packit 64f477
    fi
Packit 64f477
Packit 64f477
    # It seems that -bexpall can do strange things, so it is better to
Packit 64f477
    # generate a list of symbols to export.
Packit 64f477
    always_export_symbols=yes
Packit 64f477
    if test "$aix_use_runtimelinking" = yes; then
Packit 64f477
      # Warning - without using the other runtime loading flags (-brtl),
Packit 64f477
      # -berok will link without error, but may produce a broken library.
Packit 64f477
      allow_undefined_flag='-berok'
Packit 64f477
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
Packit 64f477
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Packit 64f477
    else
Packit 64f477
      if test "$host_cpu" = ia64; then
Packit 64f477
	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
Packit 64f477
	allow_undefined_flag="-z nodefs"
Packit 64f477
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
Packit 64f477
      else
Packit 64f477
	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
Packit 64f477
	# Warning - without using the other run time loading flags,
Packit 64f477
	# -berok will link without error, but may produce a broken library.
Packit 64f477
	allow_undefined_flag='${wl}-berok'
Packit 64f477
	# This is a bit strange, but is similar to how AIX traditionally builds
Packit 64f477
	# it's shared libraries.
Packit 64f477
	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
Packit 64f477
      fi
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  amigaos*)
Packit 64f477
    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
    # see comment about different semantics on the GNU ld section
Packit 64f477
    ld_shlibs=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  cygwin* | mingw* | pw32*)
Packit 64f477
    # When not using gcc, we currently assume that we are using
Packit 64f477
    # Microsoft Visual C++.
Packit 64f477
    # hardcode_libdir_flag_spec is actually meaningless, as there is
Packit 64f477
    # no search path for DLLs.
Packit 64f477
    hardcode_libdir_flag_spec=' '
Packit 64f477
    allow_undefined_flag=unsupported
Packit 64f477
    # Tell ltmain to make .lib files, not .a files.
Packit 64f477
    libext=lib
Packit 64f477
    # FIXME: Setting linknames here is a bad hack.
Packit 64f477
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
Packit 64f477
    # The linker will automatically build a .lib file if we build a DLL.
Packit 64f477
    old_archive_from_new_cmds='true'
Packit 64f477
    # FIXME: Should let the user specify the lib program.
Packit 64f477
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
Packit 64f477
    fix_srcfile_path='`cygpath -w "$srcfile"`'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  darwin* | rhapsody*)
Packit 64f477
    case "$host_os" in
Packit 64f477
    rhapsody* | darwin1.[[012]])
Packit 64f477
      allow_undefined_flag='-undefined suppress'
Packit 64f477
      ;;
Packit 64f477
    *) # Darwin 1.3 on
Packit 64f477
      allow_undefined_flag='-flat_namespace -undefined suppress'
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
    # FIXME: Relying on posixy $() will cause problems for
Packit 64f477
    #        cross-compilation, but unfortunately the echo tests do not
Packit 64f477
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
Packit 64f477
    #	     `"' quotes if we put them in here... so don't!
Packit 64f477
    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
Packit 64f477
    # We need to add '_' to the symbols in $export_symbols first
Packit 64f477
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    whole_archive_flag_spec='-all_load $convenience'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  freebsd1*)
Packit 64f477
    ld_shlibs=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
Packit 64f477
  # support.  Future versions do this automatically, but an explicit c++rt0.o
Packit 64f477
  # does not break anything, and helps significantly (at the cost of a little
Packit 64f477
  # extra space).
Packit 64f477
  freebsd2.2*)
Packit 64f477
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
Packit 64f477
    hardcode_libdir_flag_spec='-R$libdir'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Packit 64f477
  freebsd2*)
Packit 64f477
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Packit 64f477
  freebsd*)
Packit 64f477
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Packit 64f477
    hardcode_libdir_flag_spec='-R$libdir'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  hpux9* | hpux10* | hpux11*)
Packit 64f477
    case $host_os in
Packit 64f477
    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
Packit 64f477
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
Packit 64f477
    esac
Packit 64f477
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Packit 64f477
    hardcode_libdir_separator=:
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_minus_L=yes # Not in the search PATH, but as the default
Packit 64f477
			 # location of the library.
Packit 64f477
    export_dynamic_flag_spec='${wl}-E'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  irix5* | irix6* | nonstopux*)
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Packit 64f477
    else
Packit 64f477
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Packit 64f477
    fi
Packit 64f477
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Packit 64f477
    hardcode_libdir_separator=:
Packit 64f477
    link_all_deplibs=yes
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  netbsd*)
Packit 64f477
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Packit 64f477
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
Packit 64f477
    else
Packit 64f477
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
Packit 64f477
    fi
Packit 64f477
    hardcode_libdir_flag_spec='-R$libdir'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  newsos6)
Packit 64f477
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Packit 64f477
    hardcode_libdir_separator=:
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  openbsd*)
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit 64f477
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Packit 64f477
      export_dynamic_flag_spec='${wl}-E'
Packit 64f477
    else
Packit 64f477
      case "$host_os" in
Packit 64f477
      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
Packit 64f477
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
	hardcode_libdir_flag_spec='-R$libdir'
Packit 64f477
        ;;
Packit 64f477
      *)
Packit 64f477
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
Packit 64f477
        ;;
Packit 64f477
      esac
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  os2*)
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
    allow_undefined_flag=unsupported
Packit 64f477
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Packit 64f477
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  osf3*)
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Packit 64f477
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Packit 64f477
    else
Packit 64f477
      allow_undefined_flag=' -expect_unresolved \*'
Packit 64f477
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Packit 64f477
    fi
Packit 64f477
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Packit 64f477
    hardcode_libdir_separator=:
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  osf4* | osf5*)	# as osf3* with the addition of -msym flag
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Packit 64f477
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Packit 64f477
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Packit 64f477
    else
Packit 64f477
      allow_undefined_flag=' -expect_unresolved \*'
Packit 64f477
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Packit 64f477
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Packit 64f477
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
Packit 64f477
Packit 64f477
      #Both c and cxx compiler support -rpath directly
Packit 64f477
      hardcode_libdir_flag_spec='-rpath $libdir'
Packit 64f477
    fi
Packit 64f477
    hardcode_libdir_separator=:
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sco3.2v5*)
Packit 64f477
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    runpath_var=LD_RUN_PATH
Packit 64f477
    hardcode_runpath_var=yes
Packit 64f477
    export_dynamic_flag_spec='${wl}-Bexport'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  solaris*)
Packit 64f477
    # gcc --version < 3.0 without binutils cannot create self contained
Packit 64f477
    # shared libraries reliably, requiring libgcc.a to resolve some of
Packit 64f477
    # the object symbols generated in some cases.  Libraries that use
Packit 64f477
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
Packit 64f477
    # a copy of libgcc.a into every shared library to guarantee resolving
Packit 64f477
    # such symbols causes other problems:  According to Tim Van Holder
Packit 64f477
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
Packit 64f477
    # (to the application) exception stack for one thing.
Packit 64f477
    no_undefined_flag=' -z defs'
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      case `$CC --version 2>/dev/null` in
Packit 64f477
      [[12]].*)
Packit 64f477
	cat <<EOF 1>&2
Packit 64f477
Packit 64f477
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
Packit 64f477
*** create self contained shared libraries on Solaris systems, without
Packit 64f477
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
Packit 64f477
*** -no-undefined support, which will at least allow you to build shared
Packit 64f477
*** libraries.  However, you may find that when you link such libraries
Packit 64f477
*** into an application without using GCC, you have to manually add
Packit 64f477
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
Packit 64f477
*** upgrade to a newer version of GCC.  Another option is to rebuild your
Packit 64f477
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
Packit 64f477
Packit 64f477
EOF
Packit 64f477
        no_undefined_flag=
Packit 64f477
	;;
Packit 64f477
      esac
Packit 64f477
    fi
Packit 64f477
    # $CC -shared without GNU ld will not create a library from C++
Packit 64f477
    # object files and a static libstdc++, better avoid it by now
Packit 64f477
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Packit 64f477
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Packit 64f477
    hardcode_libdir_flag_spec='-R$libdir'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    case $host_os in
Packit 64f477
    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
Packit 64f477
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
Packit 64f477
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
Packit 64f477
    esac
Packit 64f477
    link_all_deplibs=yes
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sunos4*)
Packit 64f477
    if test "x$host_vendor" = xsequent; then
Packit 64f477
      # Use $CC to link under sequent, because it throws in some extra .o
Packit 64f477
      # files that make .init and .fini sections work.
Packit 64f477
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Packit 64f477
    else
Packit 64f477
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    fi
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_minus_L=yes
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv4)
Packit 64f477
    if test "x$host_vendor" = xsno; then
Packit 64f477
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
      hardcode_direct=yes # is this really true???
Packit 64f477
    else
Packit 64f477
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
Packit 64f477
    fi
Packit 64f477
    runpath_var='LD_RUN_PATH'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv4.3*)
Packit 64f477
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    export_dynamic_flag_spec='-Bexport'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv5*)
Packit 64f477
    no_undefined_flag=' -z text'
Packit 64f477
    # $CC -shared without GNU ld will not create a library from C++
Packit 64f477
    # object files and a static libstdc++, better avoid it by now
Packit 64f477
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Packit 64f477
		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Packit 64f477
    hardcode_libdir_flag_spec=
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    runpath_var='LD_RUN_PATH'
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  uts4*)
Packit 64f477
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  dgux*)
Packit 64f477
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_libdir_flag_spec='-L$libdir'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv4*MP*)
Packit 64f477
    if test -d /usr/nec; then
Packit 64f477
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
      hardcode_shlibpath_var=no
Packit 64f477
      runpath_var=LD_RUN_PATH
Packit 64f477
      hardcode_runpath_var=yes
Packit 64f477
      ld_shlibs=yes
Packit 64f477
    fi
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv4.2uw2*)
Packit 64f477
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
Packit 64f477
    hardcode_direct=yes
Packit 64f477
    hardcode_minus_L=no
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    hardcode_runpath_var=yes
Packit 64f477
    runpath_var=LD_RUN_PATH
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  sysv5uw7* | unixware7*)
Packit 64f477
    no_undefined_flag='${wl}-z ${wl}text'
Packit 64f477
    if test "$GCC" = yes; then
Packit 64f477
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit 64f477
    else
Packit 64f477
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Packit 64f477
    fi
Packit 64f477
    runpath_var='LD_RUN_PATH'
Packit 64f477
    hardcode_shlibpath_var=no
Packit 64f477
    ;;
Packit 64f477
Packit 64f477
  *)
Packit 64f477
    ld_shlibs=no
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
fi
Packit 64f477
AC_MSG_RESULT([$ld_shlibs])
Packit 64f477
test "$ld_shlibs" = no && can_build_shared=no
Packit 64f477
Packit 64f477
# Check hardcoding attributes.
Packit 64f477
AC_MSG_CHECKING([how to hardcode library paths into programs])
Packit 64f477
hardcode_action=
Packit 64f477
if test -n "$hardcode_libdir_flag_spec" || \
Packit 64f477
   test -n "$runpath_var"; then
Packit 64f477
Packit 64f477
  # We can hardcode non-existant directories.
Packit 64f477
  if test "$hardcode_direct" != no &&
Packit 64f477
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
Packit 64f477
     # have to relink, otherwise we might link with an installed library
Packit 64f477
     # when we should be linking with a yet-to-be-installed one
Packit 64f477
     ## test "$hardcode_shlibpath_var" != no &&
Packit 64f477
     test "$hardcode_minus_L" != no; then
Packit 64f477
    # Linking always hardcodes the temporary library directory.
Packit 64f477
    hardcode_action=relink
Packit 64f477
  else
Packit 64f477
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
Packit 64f477
    hardcode_action=immediate
Packit 64f477
  fi
Packit 64f477
else
Packit 64f477
  # We cannot hardcode anything, or else we can only hardcode existing
Packit 64f477
  # directories.
Packit 64f477
  hardcode_action=unsupported
Packit 64f477
fi
Packit 64f477
AC_MSG_RESULT([$hardcode_action])
Packit 64f477
Packit 64f477
striplib=
Packit 64f477
old_striplib=
Packit 64f477
AC_MSG_CHECKING([whether stripping libraries is possible])
Packit 64f477
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Packit 64f477
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Packit 64f477
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Packit 64f477
  AC_MSG_RESULT([yes])
Packit 64f477
else
Packit 64f477
  AC_MSG_RESULT([no])
Packit 64f477
fi
Packit 64f477
Packit 64f477
reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit 64f477
test -z "$deplibs_check_method" && deplibs_check_method=unknown
Packit 64f477
Packit 64f477
# PORTME Fill in your ld.so characteristics
Packit 64f477
AC_MSG_CHECKING([dynamic linker characteristics])
Packit 64f477
library_names_spec=
Packit 64f477
libname_spec='lib$name'
Packit 64f477
soname_spec=
Packit 64f477
postinstall_cmds=
Packit 64f477
postuninstall_cmds=
Packit 64f477
finish_cmds=
Packit 64f477
finish_eval=
Packit 64f477
shlibpath_var=
Packit 64f477
shlibpath_overrides_runpath=unknown
Packit 64f477
version_type=none
Packit 64f477
dynamic_linker="$host_os ld.so"
Packit 64f477
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Packit 64f477
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit 64f477
Packit 64f477
case $host_os in
Packit 64f477
aix3*)
Packit 64f477
  version_type=linux
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
Packit 64f477
  shlibpath_var=LIBPATH
Packit 64f477
Packit 64f477
  # AIX has no versioning support, so we append a major version to the name.
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
aix4* | aix5*)
Packit 64f477
  version_type=linux
Packit 64f477
  if test "$host_cpu" = ia64; then
Packit 64f477
    # AIX 5 supports IA64
Packit 64f477
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
Packit 64f477
    shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  else
Packit 64f477
    # With GCC up to 2.95.x, collect2 would create an import file
Packit 64f477
    # for dependence libraries.  The import file would start with
Packit 64f477
    # the line `#! .'.  This would cause the generated library to
Packit 64f477
    # depend on `.', always an invalid library.  This was fixed in
Packit 64f477
    # development snapshots of GCC prior to 3.0.
Packit 64f477
    case $host_os in
Packit 64f477
      aix4 | aix4.[[01]] | aix4.[[01]].*)
Packit 64f477
	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Packit 64f477
	     echo ' yes '
Packit 64f477
	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Packit 64f477
	  :
Packit 64f477
	else
Packit 64f477
	  can_build_shared=no
Packit 64f477
	fi
Packit 64f477
	;;
Packit 64f477
    esac
Packit 64f477
    # AIX (on Power*) has no versioning support, so currently we can
Packit 64f477
    # not hardcode correct soname into executable. Probably we can
Packit 64f477
    # add versioning support to collect2, so additional links can
Packit 64f477
    # be useful in future.
Packit 64f477
    if test "$aix_use_runtimelinking" = yes; then
Packit 64f477
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Packit 64f477
      # instead of lib<name>.a to let people know that these are not
Packit 64f477
      # typical AIX shared libraries.
Packit 64f477
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
    else
Packit 64f477
      # We preserve .a as extension for shared libraries through AIX4.2
Packit 64f477
      # and later when we are not doing run time linking.
Packit 64f477
      library_names_spec='${libname}${release}.a $libname.a'
Packit 64f477
      soname_spec='${libname}${release}.so$major'
Packit 64f477
    fi
Packit 64f477
    shlibpath_var=LIBPATH
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
amigaos*)
Packit 64f477
  library_names_spec='$libname.ixlibrary $libname.a'
Packit 64f477
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
Packit 64f477
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
beos*)
Packit 64f477
  library_names_spec='${libname}.so'
Packit 64f477
  dynamic_linker="$host_os ld.so"
Packit 64f477
  shlibpath_var=LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
bsdi4*)
Packit 64f477
  version_type=linux
Packit 64f477
  need_version=no
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Packit 64f477
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Packit 64f477
  export_dynamic_flag_spec=-rdynamic
Packit 64f477
  # the default ld.so.conf also contains /usr/contrib/lib and
Packit 64f477
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Packit 64f477
  # libtool to hard-code these into programs
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
cygwin* | mingw* | pw32*)
Packit 64f477
  version_type=windows
Packit 64f477
  need_version=no
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  case $GCC,$host_os in
Packit 64f477
  yes,cygwin*)
Packit 64f477
    library_names_spec='$libname.dll.a'
Packit 64f477
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
Packit 64f477
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
Packit 64f477
      dldir=$destdir/`dirname \$dlpath`~
Packit 64f477
      test -d \$dldir || mkdir -p \$dldir~
Packit 64f477
      $install_prog .libs/$dlname \$dldir/$dlname'
Packit 64f477
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit 64f477
      dlpath=$dir/\$dldll~
Packit 64f477
       $rm \$dlpath'
Packit 64f477
    ;;
Packit 64f477
  yes,mingw*)
Packit 64f477
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
Packit 64f477
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
Packit 64f477
    ;;
Packit 64f477
  yes,pw32*)
Packit 64f477
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  dynamic_linker='Win32 ld.exe'
Packit 64f477
  # FIXME: first we should search . and the directory the executable is in
Packit 64f477
  shlibpath_var=PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
darwin* | rhapsody*)
Packit 64f477
  dynamic_linker="$host_os dyld"
Packit 64f477
  version_type=darwin
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  # FIXME: Relying on posixy $() will cause problems for
Packit 64f477
  #        cross-compilation, but unfortunately the echo tests do not
Packit 64f477
  #        yet detect zsh echo's removal of \ escapes.
Packit 64f477
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
Packit 64f477
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
Packit 64f477
  shlibpath_overrides_runpath=yes
Packit 64f477
  shlibpath_var=DYLD_LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
freebsd1*)
Packit 64f477
  dynamic_linker=no
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
freebsd*)
Packit 64f477
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
Packit 64f477
  version_type=freebsd-$objformat
Packit 64f477
  case $version_type in
Packit 64f477
    freebsd-elf*)
Packit 64f477
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
Packit 64f477
      need_version=no
Packit 64f477
      need_lib_prefix=no
Packit 64f477
      ;;
Packit 64f477
    freebsd-*)
Packit 64f477
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
Packit 64f477
      need_version=yes
Packit 64f477
      ;;
Packit 64f477
  esac
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  case $host_os in
Packit 64f477
  freebsd2*)
Packit 64f477
    shlibpath_overrides_runpath=yes
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    shlibpath_overrides_runpath=no
Packit 64f477
    hardcode_into_libs=yes
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
gnu*)
Packit 64f477
  version_type=linux
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  hardcode_into_libs=yes
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
hpux9* | hpux10* | hpux11*)
Packit 64f477
  # Give a soname corresponding to the major version so that dld.sl refuses to
Packit 64f477
  # link against other versions.
Packit 64f477
  dynamic_linker="$host_os dld.sl"
Packit 64f477
  version_type=sunos
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  shlibpath_var=SHLIB_PATH
Packit 64f477
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Packit 64f477
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
Packit 64f477
  soname_spec='${libname}${release}.sl$major'
Packit 64f477
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
Packit 64f477
  postinstall_cmds='chmod 555 $lib'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
irix5* | irix6* | nonstopux*)
Packit 64f477
  case $host_os in
Packit 64f477
    nonstopux*) version_type=nonstopux ;;
Packit 64f477
    *)          version_type=irix ;;
Packit 64f477
  esac
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
Packit 64f477
  case $host_os in
Packit 64f477
  irix5* | nonstopux*)
Packit 64f477
    libsuff= shlibsuff=
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    case $LD in # libtool.m4 will add one of these switches to LD
Packit 64f477
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
Packit 64f477
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
Packit 64f477
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
Packit 64f477
    *) libsuff= shlibsuff= libmagic=never-match;;
Packit 64f477
    esac
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Packit 64f477
  shlibpath_overrides_runpath=no
Packit 64f477
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Packit 64f477
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
# No shared lib support for Linux oldld, aout, or coff.
Packit 64f477
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
Packit 64f477
  dynamic_linker=no
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
# This must be Linux ELF.
Packit 64f477
linux-gnu*)
Packit 64f477
  version_type=linux
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  shlibpath_overrides_runpath=no
Packit 64f477
  # This implies no fast_install, which is unacceptable.
Packit 64f477
  # Some rework will be needed to allow for fast_install
Packit 64f477
  # before this can be enabled.
Packit 64f477
  hardcode_into_libs=yes
Packit 64f477
Packit 64f477
  # We used to test for /lib/ld.so.1 and disable shared libraries on
Packit 64f477
  # powerpc, because MkLinux only supported shared libraries with the
Packit 64f477
  # GNU dynamic linker.  Since this was broken with cross compilers,
Packit 64f477
  # most powerpc-linux boxes support dynamic linking these days and
Packit 64f477
  # people can always --disable-shared, the test was removed, and we
Packit 64f477
  # assume the GNU/Linux dynamic linker is in use.
Packit 64f477
  dynamic_linker='GNU/Linux ld.so'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
netbsd*)
Packit 64f477
  version_type=sunos
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Packit 64f477
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
Packit 64f477
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit 64f477
    dynamic_linker='NetBSD (a.out) ld.so'
Packit 64f477
  else
Packit 64f477
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
Packit 64f477
    soname_spec='${libname}${release}.so$major'
Packit 64f477
    dynamic_linker='NetBSD ld.elf_so'
Packit 64f477
  fi
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  shlibpath_overrides_runpath=yes
Packit 64f477
  hardcode_into_libs=yes
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
newsos6)
Packit 64f477
  version_type=linux
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  shlibpath_overrides_runpath=yes
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
openbsd*)
Packit 64f477
  version_type=sunos
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit 64f477
    case "$host_os" in
Packit 64f477
    openbsd2.[[89]] | openbsd2.[[89]].*)
Packit 64f477
      shlibpath_overrides_runpath=no
Packit 64f477
      ;;
Packit 64f477
    *)
Packit 64f477
      shlibpath_overrides_runpath=yes
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  else
Packit 64f477
    shlibpath_overrides_runpath=yes
Packit 64f477
  fi
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
Packit 64f477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
os2*)
Packit 64f477
  libname_spec='$name'
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  library_names_spec='$libname.dll $libname.a'
Packit 64f477
  dynamic_linker='OS/2 ld.exe'
Packit 64f477
  shlibpath_var=LIBPATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
osf3* | osf4* | osf5*)
Packit 64f477
  version_type=osf
Packit 64f477
  need_version=no
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  soname_spec='${libname}${release}.so'
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Packit 64f477
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sco3.2v5*)
Packit 64f477
  version_type=osf
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
solaris*)
Packit 64f477
  version_type=linux
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  shlibpath_overrides_runpath=yes
Packit 64f477
  hardcode_into_libs=yes
Packit 64f477
  # ldd complains unless libraries are executable
Packit 64f477
  postinstall_cmds='chmod +x $lib'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sunos4*)
Packit 64f477
  version_type=sunos
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
Packit 64f477
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  shlibpath_overrides_runpath=yes
Packit 64f477
  if test "$with_gnu_ld" = yes; then
Packit 64f477
    need_lib_prefix=no
Packit 64f477
  fi
Packit 64f477
  need_version=yes
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Packit 64f477
  version_type=linux
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  case $host_vendor in
Packit 64f477
    sni)
Packit 64f477
      shlibpath_overrides_runpath=no
Packit 64f477
      ;;
Packit 64f477
    motorola)
Packit 64f477
      need_lib_prefix=no
Packit 64f477
      need_version=no
Packit 64f477
      shlibpath_overrides_runpath=no
Packit 64f477
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Packit 64f477
      ;;
Packit 64f477
  esac
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
uts4*)
Packit 64f477
  version_type=linux
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
dgux*)
Packit 64f477
  version_type=linux
Packit 64f477
  need_lib_prefix=no
Packit 64f477
  need_version=no
Packit 64f477
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
Packit 64f477
  soname_spec='${libname}${release}.so$major'
Packit 64f477
  shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sysv4*MP*)
Packit 64f477
  if test -d /usr/nec ;then
Packit 64f477
    version_type=linux
Packit 64f477
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
Packit 64f477
    soname_spec='$libname.so.$major'
Packit 64f477
    shlibpath_var=LD_LIBRARY_PATH
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
*)
Packit 64f477
  dynamic_linker=no
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
AC_MSG_RESULT([$dynamic_linker])
Packit 64f477
test "$dynamic_linker" = no && can_build_shared=no
Packit 64f477
Packit 64f477
# Report the final consequences.
Packit 64f477
AC_MSG_CHECKING([if libtool supports shared libraries])
Packit 64f477
AC_MSG_RESULT([$can_build_shared])
Packit 64f477
Packit 64f477
AC_MSG_CHECKING([whether to build shared libraries])
Packit 64f477
test "$can_build_shared" = "no" && enable_shared=no
Packit 64f477
Packit 64f477
# On AIX, shared libraries and static libraries use the same namespace, and
Packit 64f477
# are all built from PIC.
Packit 64f477
case "$host_os" in
Packit 64f477
aix3*)
Packit 64f477
  test "$enable_shared" = yes && enable_static=no
Packit 64f477
  if test -n "$RANLIB"; then
Packit 64f477
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
Packit 64f477
    postinstall_cmds='$RANLIB $lib'
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
aix4*)
Packit 64f477
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Packit 64f477
    test "$enable_shared" = yes && enable_static=no
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
AC_MSG_RESULT([$enable_shared])
Packit 64f477
Packit 64f477
AC_MSG_CHECKING([whether to build static libraries])
Packit 64f477
# Make sure either enable_shared or enable_static is yes.
Packit 64f477
test "$enable_shared" = yes || enable_static=yes
Packit 64f477
AC_MSG_RESULT([$enable_static])
Packit 64f477
Packit 64f477
if test "$hardcode_action" = relink; then
Packit 64f477
  # Fast installation is not supported
Packit 64f477
  enable_fast_install=no
Packit 64f477
elif test "$shlibpath_overrides_runpath" = yes ||
Packit 64f477
     test "$enable_shared" = no; then
Packit 64f477
  # Fast installation is not necessary
Packit 64f477
  enable_fast_install=needless
Packit 64f477
fi
Packit 64f477
Packit 64f477
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Packit 64f477
if test "$GCC" = yes; then
Packit 64f477
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Packit 64f477
fi
Packit 64f477
Packit 64f477
AC_LIBTOOL_DLOPEN_SELF
Packit 64f477
Packit 64f477
if test "$enable_shared" = yes && test "$GCC" = yes; then
Packit 64f477
  case $archive_cmds in
Packit 64f477
  *'~'*)
Packit 64f477
    # FIXME: we may have to deal with multi-command sequences.
Packit 64f477
    ;;
Packit 64f477
  '$CC '*)
Packit 64f477
    # Test whether the compiler implicitly links with -lc since on some
Packit 64f477
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
Packit 64f477
    # to ld, don't add -lc before -lgcc.
Packit 64f477
    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
Packit 64f477
    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
Packit 64f477
    [$rm conftest*
Packit 64f477
    echo 'static int dummy;' > conftest.$ac_ext
Packit 64f477
Packit 64f477
    if AC_TRY_EVAL(ac_compile); then
Packit 64f477
      soname=conftest
Packit 64f477
      lib=conftest
Packit 64f477
      libobjs=conftest.$ac_objext
Packit 64f477
      deplibs=
Packit 64f477
      wl=$lt_cv_prog_cc_wl
Packit 64f477
      compiler_flags=-v
Packit 64f477
      linker_flags=-v
Packit 64f477
      verstring=
Packit 64f477
      output_objdir=.
Packit 64f477
      libname=conftest
Packit 64f477
      save_allow_undefined_flag=$allow_undefined_flag
Packit 64f477
      allow_undefined_flag=
Packit 64f477
      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
Packit 64f477
      then
Packit 64f477
	lt_cv_archive_cmds_need_lc=no
Packit 64f477
      else
Packit 64f477
	lt_cv_archive_cmds_need_lc=yes
Packit 64f477
      fi
Packit 64f477
      allow_undefined_flag=$save_allow_undefined_flag
Packit 64f477
    else
Packit 64f477
      cat conftest.err 1>&5
Packit 64f477
    fi])
Packit 64f477
    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
fi
Packit 64f477
need_lc=${lt_cv_archive_cmds_need_lc-yes}
Packit 64f477
Packit 64f477
# The second clause should only fire when bootstrapping the
Packit 64f477
# libtool distribution, otherwise you forgot to ship ltmain.sh
Packit 64f477
# with your package, and you will get complaints that there are
Packit 64f477
# no rules to generate ltmain.sh.
Packit 64f477
if test -f "$ltmain"; then
Packit 64f477
  :
Packit 64f477
else
Packit 64f477
  # If there is no Makefile yet, we rely on a make rule to execute
Packit 64f477
  # `config.status --recheck' to rerun these tests and create the
Packit 64f477
  # libtool script then.
Packit 64f477
  test -f Makefile && make "$ltmain"
Packit 64f477
fi
Packit 64f477
Packit 64f477
if test -f "$ltmain"; then
Packit 64f477
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
Packit 64f477
  $rm -f "${ofile}T"
Packit 64f477
Packit 64f477
  echo creating $ofile
Packit 64f477
Packit 64f477
  # Now quote all the things that may contain metacharacters while being
Packit 64f477
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
Packit 64f477
  # variables and quote the copies for generation of the libtool script.
Packit 64f477
  for var in echo old_CC old_CFLAGS \
Packit 64f477
    AR AR_FLAGS CC LD LN_S NM SHELL \
Packit 64f477
    reload_flag reload_cmds wl \
Packit 64f477
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
Packit 64f477
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
Packit 64f477
    library_names_spec soname_spec \
Packit 64f477
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
Packit 64f477
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
Packit 64f477
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
Packit 64f477
    old_striplib striplib file_magic_cmd export_symbols_cmds \
Packit 64f477
    deplibs_check_method allow_undefined_flag no_undefined_flag \
Packit 64f477
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
Packit 64f477
    global_symbol_to_c_name_address \
Packit 64f477
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
Packit 64f477
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
Packit 64f477
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
Packit 64f477
Packit 64f477
    case $var in
Packit 64f477
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
Packit 64f477
    old_postinstall_cmds | old_postuninstall_cmds | \
Packit 64f477
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
Packit 64f477
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
Packit 64f477
    postinstall_cmds | postuninstall_cmds | \
Packit 64f477
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
Packit 64f477
      # Double-quote double-evaled strings.
Packit 64f477
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
Packit 64f477
      ;;
Packit 64f477
    *)
Packit 64f477
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  done
Packit 64f477
Packit 64f477
  cat <<__EOF__ > "${ofile}T"
Packit 64f477
#! $SHELL
Packit 64f477
Packit 64f477
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
Packit 64f477
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
Packit 64f477
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Packit 64f477
#
Packit 64f477
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
Packit 64f477
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
Packit 64f477
#
Packit 64f477
# This program is free software; you can redistribute it and/or modify
Packit 64f477
# it under the terms of the GNU General Public License as published by
Packit 64f477
# the Free Software Foundation; either version 2 of the License, or
Packit 64f477
# (at your option) any later version.
Packit 64f477
#
Packit 64f477
# This program is distributed in the hope that it will be useful, but
Packit 64f477
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 64f477
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 64f477
# General Public License for more details.
Packit 64f477
#
Packit 64f477
# You should have received a copy of the GNU General Public License
Packit 64f477
# along with this program; if not, write to the Free Software
Packit 64f477
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit 64f477
#
Packit 64f477
# As a special exception to the GNU General Public License, if you
Packit 64f477
# distribute this file as part of a program that contains a
Packit 64f477
# configuration script generated by Autoconf, you may include it under
Packit 64f477
# the same distribution terms that you use for the rest of that program.
Packit 64f477
Packit 64f477
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Packit 64f477
Xsed="sed -e s/^X//"
Packit 64f477
Packit 64f477
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit 64f477
# if CDPATH is set.
Packit 64f477
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
Packit 64f477
Packit 64f477
# ### BEGIN LIBTOOL CONFIG
Packit 64f477
Packit 64f477
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
Packit 64f477
Packit 64f477
# Shell to use when invoking shell scripts.
Packit 64f477
SHELL=$lt_SHELL
Packit 64f477
Packit 64f477
# Whether or not to build shared libraries.
Packit 64f477
build_libtool_libs=$enable_shared
Packit 64f477
Packit 64f477
# Whether or not to build static libraries.
Packit 64f477
build_old_libs=$enable_static
Packit 64f477
Packit 64f477
# Whether or not to add -lc for building shared libraries.
Packit 64f477
build_libtool_need_lc=$need_lc
Packit 64f477
Packit 64f477
# Whether or not to optimize for fast installation.
Packit 64f477
fast_install=$enable_fast_install
Packit 64f477
Packit 64f477
# The host system.
Packit 64f477
host_alias=$host_alias
Packit 64f477
host=$host
Packit 64f477
Packit 64f477
# An echo program that does not interpret backslashes.
Packit 64f477
echo=$lt_echo
Packit 64f477
Packit 64f477
# The archiver.
Packit 64f477
AR=$lt_AR
Packit 64f477
AR_FLAGS=$lt_AR_FLAGS
Packit 64f477
Packit 64f477
# The default C compiler.
Packit 64f477
CC=$lt_CC
Packit 64f477
Packit 64f477
# Is the compiler the GNU C compiler?
Packit 64f477
with_gcc=$GCC
Packit 64f477
Packit 64f477
# The linker used to build libraries.
Packit 64f477
LD=$lt_LD
Packit 64f477
Packit 64f477
# Whether we need hard or soft links.
Packit 64f477
LN_S=$lt_LN_S
Packit 64f477
Packit 64f477
# A BSD-compatible nm program.
Packit 64f477
NM=$lt_NM
Packit 64f477
Packit 64f477
# A symbol stripping program
Packit 64f477
STRIP=$STRIP
Packit 64f477
Packit 64f477
# Used to examine libraries when file_magic_cmd begins "file"
Packit 64f477
MAGIC_CMD=$MAGIC_CMD
Packit 64f477
Packit 64f477
# Used on cygwin: DLL creation program.
Packit 64f477
DLLTOOL="$DLLTOOL"
Packit 64f477
Packit 64f477
# Used on cygwin: object dumper.
Packit 64f477
OBJDUMP="$OBJDUMP"
Packit 64f477
Packit 64f477
# Used on cygwin: assembler.
Packit 64f477
AS="$AS"
Packit 64f477
Packit 64f477
# The name of the directory that contains temporary libtool files.
Packit 64f477
objdir=$objdir
Packit 64f477
Packit 64f477
# How to create reloadable object files.
Packit 64f477
reload_flag=$lt_reload_flag
Packit 64f477
reload_cmds=$lt_reload_cmds
Packit 64f477
Packit 64f477
# How to pass a linker flag through the compiler.
Packit 64f477
wl=$lt_wl
Packit 64f477
Packit 64f477
# Object file suffix (normally "o").
Packit 64f477
objext="$ac_objext"
Packit 64f477
Packit 64f477
# Old archive suffix (normally "a").
Packit 64f477
libext="$libext"
Packit 64f477
Packit 64f477
# Executable file suffix (normally "").
Packit 64f477
exeext="$exeext"
Packit 64f477
Packit 64f477
# Additional compiler flags for building library objects.
Packit 64f477
pic_flag=$lt_pic_flag
Packit 64f477
pic_mode=$pic_mode
Packit 64f477
Packit 64f477
# Does compiler simultaneously support -c and -o options?
Packit 64f477
compiler_c_o=$lt_compiler_c_o
Packit 64f477
Packit 64f477
# Can we write directly to a .lo ?
Packit 64f477
compiler_o_lo=$lt_compiler_o_lo
Packit 64f477
Packit 64f477
# Must we lock files when doing compilation ?
Packit 64f477
need_locks=$lt_need_locks
Packit 64f477
Packit 64f477
# Do we need the lib prefix for modules?
Packit 64f477
need_lib_prefix=$need_lib_prefix
Packit 64f477
Packit 64f477
# Do we need a version for libraries?
Packit 64f477
need_version=$need_version
Packit 64f477
Packit 64f477
# Whether dlopen is supported.
Packit 64f477
dlopen_support=$enable_dlopen
Packit 64f477
Packit 64f477
# Whether dlopen of programs is supported.
Packit 64f477
dlopen_self=$enable_dlopen_self
Packit 64f477
Packit 64f477
# Whether dlopen of statically linked programs is supported.
Packit 64f477
dlopen_self_static=$enable_dlopen_self_static
Packit 64f477
Packit 64f477
# Compiler flag to prevent dynamic linking.
Packit 64f477
link_static_flag=$lt_link_static_flag
Packit 64f477
Packit 64f477
# Compiler flag to turn off builtin functions.
Packit 64f477
no_builtin_flag=$lt_no_builtin_flag
Packit 64f477
Packit 64f477
# Compiler flag to allow reflexive dlopens.
Packit 64f477
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
Packit 64f477
Packit 64f477
# Compiler flag to generate shared objects directly from archives.
Packit 64f477
whole_archive_flag_spec=$lt_whole_archive_flag_spec
Packit 64f477
Packit 64f477
# Compiler flag to generate thread-safe objects.
Packit 64f477
thread_safe_flag_spec=$lt_thread_safe_flag_spec
Packit 64f477
Packit 64f477
# Library versioning type.
Packit 64f477
version_type=$version_type
Packit 64f477
Packit 64f477
# Format of library name prefix.
Packit 64f477
libname_spec=$lt_libname_spec
Packit 64f477
Packit 64f477
# List of archive names.  First name is the real one, the rest are links.
Packit 64f477
# The last name is the one that the linker finds with -lNAME.
Packit 64f477
library_names_spec=$lt_library_names_spec
Packit 64f477
Packit 64f477
# The coded name of the library, if different from the real name.
Packit 64f477
soname_spec=$lt_soname_spec
Packit 64f477
Packit 64f477
# Commands used to build and install an old-style archive.
Packit 64f477
RANLIB=$lt_RANLIB
Packit 64f477
old_archive_cmds=$lt_old_archive_cmds
Packit 64f477
old_postinstall_cmds=$lt_old_postinstall_cmds
Packit 64f477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
Packit 64f477
Packit 64f477
# Create an old-style archive from a shared archive.
Packit 64f477
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
Packit 64f477
Packit 64f477
# Create a temporary old-style archive to link instead of a shared archive.
Packit 64f477
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
Packit 64f477
Packit 64f477
# Commands used to build and install a shared archive.
Packit 64f477
archive_cmds=$lt_archive_cmds
Packit 64f477
archive_expsym_cmds=$lt_archive_expsym_cmds
Packit 64f477
postinstall_cmds=$lt_postinstall_cmds
Packit 64f477
postuninstall_cmds=$lt_postuninstall_cmds
Packit 64f477
Packit 64f477
# Commands to strip libraries.
Packit 64f477
old_striplib=$lt_old_striplib
Packit 64f477
striplib=$lt_striplib
Packit 64f477
Packit 64f477
# Method to check whether dependent libraries are shared objects.
Packit 64f477
deplibs_check_method=$lt_deplibs_check_method
Packit 64f477
Packit 64f477
# Command to use when deplibs_check_method == file_magic.
Packit 64f477
file_magic_cmd=$lt_file_magic_cmd
Packit 64f477
Packit 64f477
# Flag that allows shared libraries with undefined symbols to be built.
Packit 64f477
allow_undefined_flag=$lt_allow_undefined_flag
Packit 64f477
Packit 64f477
# Flag that forces no undefined symbols.
Packit 64f477
no_undefined_flag=$lt_no_undefined_flag
Packit 64f477
Packit 64f477
# Commands used to finish a libtool library installation in a directory.
Packit 64f477
finish_cmds=$lt_finish_cmds
Packit 64f477
Packit 64f477
# Same as above, but a single script fragment to be evaled but not shown.
Packit 64f477
finish_eval=$lt_finish_eval
Packit 64f477
Packit 64f477
# Take the output of nm and produce a listing of raw symbols and C names.
Packit 64f477
global_symbol_pipe=$lt_global_symbol_pipe
Packit 64f477
Packit 64f477
# Transform the output of nm in a proper C declaration
Packit 64f477
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
Packit 64f477
Packit 64f477
# Transform the output of nm in a C name address pair
Packit 64f477
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
Packit 64f477
Packit 64f477
# This is the shared library runtime path variable.
Packit 64f477
runpath_var=$runpath_var
Packit 64f477
Packit 64f477
# This is the shared library path variable.
Packit 64f477
shlibpath_var=$shlibpath_var
Packit 64f477
Packit 64f477
# Is shlibpath searched before the hard-coded library search path?
Packit 64f477
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
Packit 64f477
Packit 64f477
# How to hardcode a shared library path into an executable.
Packit 64f477
hardcode_action=$hardcode_action
Packit 64f477
Packit 64f477
# Whether we should hardcode library paths into libraries.
Packit 64f477
hardcode_into_libs=$hardcode_into_libs
Packit 64f477
Packit 64f477
# Flag to hardcode \$libdir into a binary during linking.
Packit 64f477
# This must work even if \$libdir does not exist.
Packit 64f477
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
Packit 64f477
Packit 64f477
# Whether we need a single -rpath flag with a separated argument.
Packit 64f477
hardcode_libdir_separator=$lt_hardcode_libdir_separator
Packit 64f477
Packit 64f477
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
Packit 64f477
# resulting binary.
Packit 64f477
hardcode_direct=$hardcode_direct
Packit 64f477
Packit 64f477
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
Packit 64f477
# resulting binary.
Packit 64f477
hardcode_minus_L=$hardcode_minus_L
Packit 64f477
Packit 64f477
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
Packit 64f477
# the resulting binary.
Packit 64f477
hardcode_shlibpath_var=$hardcode_shlibpath_var
Packit 64f477
Packit 64f477
# Variables whose values should be saved in libtool wrapper scripts and
Packit 64f477
# restored at relink time.
Packit 64f477
variables_saved_for_relink="$variables_saved_for_relink"
Packit 64f477
Packit 64f477
# Whether libtool must link a program against all its dependency libraries.
Packit 64f477
link_all_deplibs=$link_all_deplibs
Packit 64f477
Packit 64f477
# Compile-time system search path for libraries
Packit 64f477
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
Packit 64f477
Packit 64f477
# Run-time system search path for libraries
Packit 64f477
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
Packit 64f477
Packit 64f477
# Fix the shell variable \$srcfile for the compiler.
Packit 64f477
fix_srcfile_path="$fix_srcfile_path"
Packit 64f477
Packit 64f477
# Set to yes if exported symbols are required.
Packit 64f477
always_export_symbols=$always_export_symbols
Packit 64f477
Packit 64f477
# The commands to list exported symbols.
Packit 64f477
export_symbols_cmds=$lt_export_symbols_cmds
Packit 64f477
Packit 64f477
# The commands to extract the exported symbol list from a shared archive.
Packit 64f477
extract_expsyms_cmds=$lt_extract_expsyms_cmds
Packit 64f477
Packit 64f477
# Symbols that should not be listed in the preloaded symbols.
Packit 64f477
exclude_expsyms=$lt_exclude_expsyms
Packit 64f477
Packit 64f477
# Symbols that must always be exported.
Packit 64f477
include_expsyms=$lt_include_expsyms
Packit 64f477
Packit 64f477
# ### END LIBTOOL CONFIG
Packit 64f477
Packit 64f477
__EOF__
Packit 64f477
Packit 64f477
  case $host_os in
Packit 64f477
  aix3*)
Packit 64f477
    cat <<\EOF >> "${ofile}T"
Packit 64f477
Packit 64f477
# AIX sometimes has problems with the GCC collect2 program.  For some
Packit 64f477
# reason, if we set the COLLECT_NAMES environment variable, the problems
Packit 64f477
# vanish in a puff of smoke.
Packit 64f477
if test "X${COLLECT_NAMES+set}" != Xset; then
Packit 64f477
  COLLECT_NAMES=
Packit 64f477
  export COLLECT_NAMES
Packit 64f477
fi
Packit 64f477
EOF
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  case $host_os in
Packit 64f477
  cygwin* | mingw* | pw32* | os2*)
Packit 64f477
    cat <<'EOF' >> "${ofile}T"
Packit 64f477
      # This is a source program that is used to create dlls on Windows
Packit 64f477
      # Don't remove nor modify the starting and closing comments
Packit 64f477
# /* ltdll.c starts here */
Packit 64f477
# #define WIN32_LEAN_AND_MEAN
Packit 64f477
# #include <windows.h>
Packit 64f477
# #undef WIN32_LEAN_AND_MEAN
Packit 64f477
# #include <stdio.h>
Packit 64f477
#
Packit 64f477
# #ifndef __CYGWIN__
Packit 64f477
# #  ifdef __CYGWIN32__
Packit 64f477
# #    define __CYGWIN__ __CYGWIN32__
Packit 64f477
# #  endif
Packit 64f477
# #endif
Packit 64f477
#
Packit 64f477
# #ifdef __cplusplus
Packit 64f477
# extern "C" {
Packit 64f477
# #endif
Packit 64f477
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
Packit 64f477
# #ifdef __cplusplus
Packit 64f477
# }
Packit 64f477
# #endif
Packit 64f477
#
Packit 64f477
# #ifdef __CYGWIN__
Packit 64f477
# #include <cygwin/cygwin_dll.h>
Packit 64f477
# DECLARE_CYGWIN_DLL( DllMain );
Packit 64f477
# #endif
Packit 64f477
# HINSTANCE __hDllInstance_base;
Packit 64f477
#
Packit 64f477
# BOOL APIENTRY
Packit 64f477
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
Packit 64f477
# {
Packit 64f477
#   __hDllInstance_base = hInst;
Packit 64f477
#   return TRUE;
Packit 64f477
# }
Packit 64f477
# /* ltdll.c ends here */
Packit 64f477
	# This is a source program that is used to create import libraries
Packit 64f477
	# on Windows for dlls which lack them. Don't remove nor modify the
Packit 64f477
	# starting and closing comments
Packit 64f477
# /* impgen.c starts here */
Packit 64f477
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
Packit 64f477
#
Packit 64f477
#  This file is part of GNU libtool.
Packit 64f477
#
Packit 64f477
#  This program is free software; you can redistribute it and/or modify
Packit 64f477
#  it under the terms of the GNU General Public License as published by
Packit 64f477
#  the Free Software Foundation; either version 2 of the License, or
Packit 64f477
#  (at your option) any later version.
Packit 64f477
#
Packit 64f477
#  This program is distributed in the hope that it will be useful,
Packit 64f477
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 64f477
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 64f477
#  GNU General Public License for more details.
Packit 64f477
#
Packit 64f477
#  You should have received a copy of the GNU General Public License
Packit 64f477
#  along with this program; if not, write to the Free Software
Packit 64f477
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Packit 64f477
#  */
Packit 64f477
#
Packit 64f477
# #include <stdio.h>		/* for printf() */
Packit 64f477
# #include <unistd.h>		/* for open(), lseek(), read() */
Packit 64f477
# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
Packit 64f477
# #include <string.h>		/* for strdup() */
Packit 64f477
#
Packit 64f477
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
Packit 64f477
# #ifndef O_BINARY
Packit 64f477
# #define O_BINARY 0
Packit 64f477
# #endif
Packit 64f477
#
Packit 64f477
# static unsigned int
Packit 64f477
# pe_get16 (fd, offset)
Packit 64f477
#      int fd;
Packit 64f477
#      int offset;
Packit 64f477
# {
Packit 64f477
#   unsigned char b[2];
Packit 64f477
#   lseek (fd, offset, SEEK_SET);
Packit 64f477
#   read (fd, b, 2);
Packit 64f477
#   return b[0] + (b[1]<<8);
Packit 64f477
# }
Packit 64f477
#
Packit 64f477
# static unsigned int
Packit 64f477
# pe_get32 (fd, offset)
Packit 64f477
#     int fd;
Packit 64f477
#     int offset;
Packit 64f477
# {
Packit 64f477
#   unsigned char b[4];
Packit 64f477
#   lseek (fd, offset, SEEK_SET);
Packit 64f477
#   read (fd, b, 4);
Packit 64f477
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
Packit 64f477
# }
Packit 64f477
#
Packit 64f477
# static unsigned int
Packit 64f477
# pe_as32 (ptr)
Packit 64f477
#      void *ptr;
Packit 64f477
# {
Packit 64f477
#   unsigned char *b = ptr;
Packit 64f477
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
Packit 64f477
# }
Packit 64f477
#
Packit 64f477
# int
Packit 64f477
# main (argc, argv)
Packit 64f477
#     int argc;
Packit 64f477
#     char *argv[];
Packit 64f477
# {
Packit 64f477
#     int dll;
Packit 64f477
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
Packit 64f477
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
Packit 64f477
#     unsigned long name_rvas, nexp;
Packit 64f477
#     unsigned char *expdata, *erva;
Packit 64f477
#     char *filename, *dll_name;
Packit 64f477
#
Packit 64f477
#     filename = argv[1];
Packit 64f477
#
Packit 64f477
#     dll = open(filename, O_RDONLY|O_BINARY);
Packit 64f477
#     if (dll < 1)
Packit 64f477
# 	return 1;
Packit 64f477
#
Packit 64f477
#     dll_name = filename;
Packit 64f477
#
Packit 64f477
#     for (i=0; filename[i]; i++)
Packit 64f477
# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
Packit 64f477
# 	    dll_name = filename + i +1;
Packit 64f477
#
Packit 64f477
#     pe_header_offset = pe_get32 (dll, 0x3c);
Packit 64f477
#     opthdr_ofs = pe_header_offset + 4 + 20;
Packit 64f477
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
Packit 64f477
#
Packit 64f477
#     if (num_entries < 1) /* no exports */
Packit 64f477
# 	return 1;
Packit 64f477
#
Packit 64f477
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
Packit 64f477
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
Packit 64f477
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
Packit 64f477
#     secptr = (pe_header_offset + 4 + 20 +
Packit 64f477
# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
Packit 64f477
#
Packit 64f477
#     expptr = 0;
Packit 64f477
#     for (i = 0; i < nsections; i++)
Packit 64f477
#     {
Packit 64f477
# 	char sname[8];
Packit 64f477
# 	unsigned long secptr1 = secptr + 40 * i;
Packit 64f477
# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
Packit 64f477
# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
Packit 64f477
# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
Packit 64f477
# 	lseek(dll, secptr1, SEEK_SET);
Packit 64f477
# 	read(dll, sname, 8);
Packit 64f477
# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
Packit 64f477
# 	{
Packit 64f477
# 	    expptr = fptr + (export_rva - vaddr);
Packit 64f477
# 	    if (export_rva + export_size > vaddr + vsize)
Packit 64f477
# 		export_size = vsize - (export_rva - vaddr);
Packit 64f477
# 	    break;
Packit 64f477
# 	}
Packit 64f477
#     }
Packit 64f477
#
Packit 64f477
#     expdata = (unsigned char*)malloc(export_size);
Packit 64f477
#     lseek (dll, expptr, SEEK_SET);
Packit 64f477
#     read (dll, expdata, export_size);
Packit 64f477
#     erva = expdata - export_rva;
Packit 64f477
#
Packit 64f477
#     nexp = pe_as32 (expdata+24);
Packit 64f477
#     name_rvas = pe_as32 (expdata+32);
Packit 64f477
#
Packit 64f477
#     printf ("EXPORTS\n");
Packit 64f477
#     for (i = 0; i
Packit 64f477
#     {
Packit 64f477
# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
Packit 64f477
# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
Packit 64f477
#     }
Packit 64f477
#
Packit 64f477
#     return 0;
Packit 64f477
# }
Packit 64f477
# /* impgen.c ends here */
Packit 64f477
Packit 64f477
EOF
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
Packit 64f477
  # We use sed instead of cat because bash on DJGPP gets confused if
Packit 64f477
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
Packit 64f477
  # text mode, it properly converts lines to CR/LF.  This bash problem
Packit 64f477
  # is reportedly fixed, but why not run on old versions too?
Packit 64f477
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
Packit 64f477
Packit 64f477
  mv -f "${ofile}T" "$ofile" || \
Packit 64f477
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
Packit 64f477
  chmod +x "$ofile"
Packit 64f477
fi
Packit 64f477
Packit 64f477
])# _LT_AC_LTCONFIG_HACK
Packit 64f477
Packit 64f477
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
Packit 64f477
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
Packit 64f477
Packit 64f477
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
Packit 64f477
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
Packit 64f477
Packit 64f477
# AC_ENABLE_SHARED - implement the --enable-shared flag
Packit 64f477
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
Packit 64f477
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
Packit 64f477
#   `yes'.
Packit 64f477
AC_DEFUN([AC_ENABLE_SHARED],
Packit 64f477
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
Packit 64f477
AC_ARG_ENABLE(shared,
Packit 64f477
changequote(<<, >>)dnl
Packit 64f477
<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
Packit 64f477
changequote([, ])dnl
Packit 64f477
[p=${PACKAGE-default}
Packit 64f477
case $enableval in
Packit 64f477
yes) enable_shared=yes ;;
Packit 64f477
no) enable_shared=no ;;
Packit 64f477
*)
Packit 64f477
  enable_shared=no
Packit 64f477
  # Look at the argument we got.  We use all the common list separators.
Packit 64f477
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
Packit 64f477
  for pkg in $enableval; do
Packit 64f477
    if test "X$pkg" = "X$p"; then
Packit 64f477
      enable_shared=yes
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
  ;;
Packit 64f477
esac],
Packit 64f477
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
Packit 64f477
AC_DEFUN([AC_DISABLE_SHARED],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
AC_ENABLE_SHARED(no)])
Packit 64f477
Packit 64f477
# AC_ENABLE_STATIC - implement the --enable-static flag
Packit 64f477
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
Packit 64f477
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
Packit 64f477
#   `yes'.
Packit 64f477
AC_DEFUN([AC_ENABLE_STATIC],
Packit 64f477
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
Packit 64f477
AC_ARG_ENABLE(static,
Packit 64f477
changequote(<<, >>)dnl
Packit 64f477
<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
Packit 64f477
changequote([, ])dnl
Packit 64f477
[p=${PACKAGE-default}
Packit 64f477
case $enableval in
Packit 64f477
yes) enable_static=yes ;;
Packit 64f477
no) enable_static=no ;;
Packit 64f477
*)
Packit 64f477
  enable_static=no
Packit 64f477
  # Look at the argument we got.  We use all the common list separators.
Packit 64f477
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
Packit 64f477
  for pkg in $enableval; do
Packit 64f477
    if test "X$pkg" = "X$p"; then
Packit 64f477
      enable_static=yes
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
  ;;
Packit 64f477
esac],
Packit 64f477
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_DISABLE_STATIC - set the default static flag to --disable-static
Packit 64f477
AC_DEFUN([AC_DISABLE_STATIC],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
AC_ENABLE_STATIC(no)])
Packit 64f477
Packit 64f477
Packit 64f477
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
Packit 64f477
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
Packit 64f477
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
Packit 64f477
#   `yes'.
Packit 64f477
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
Packit 64f477
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
Packit 64f477
AC_ARG_ENABLE(fast-install,
Packit 64f477
changequote(<<, >>)dnl
Packit 64f477
<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
Packit 64f477
changequote([, ])dnl
Packit 64f477
[p=${PACKAGE-default}
Packit 64f477
case $enableval in
Packit 64f477
yes) enable_fast_install=yes ;;
Packit 64f477
no) enable_fast_install=no ;;
Packit 64f477
*)
Packit 64f477
  enable_fast_install=no
Packit 64f477
  # Look at the argument we got.  We use all the common list separators.
Packit 64f477
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
Packit 64f477
  for pkg in $enableval; do
Packit 64f477
    if test "X$pkg" = "X$p"; then
Packit 64f477
      enable_fast_install=yes
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
  ;;
Packit 64f477
esac],
Packit 64f477
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
Packit 64f477
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
AC_ENABLE_FAST_INSTALL(no)])
Packit 64f477
Packit 64f477
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
Packit 64f477
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
Packit 64f477
#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
Packit 64f477
#   `both'.
Packit 64f477
AC_DEFUN([AC_LIBTOOL_PICMODE],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
pic_mode=ifelse($#,1,$1,default)])
Packit 64f477
Packit 64f477
Packit 64f477
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
Packit 64f477
AC_DEFUN([AC_PATH_TOOL_PREFIX],
Packit 64f477
[AC_MSG_CHECKING([for $1])
Packit 64f477
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
Packit 64f477
[case $MAGIC_CMD in
Packit 64f477
  /*)
Packit 64f477
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Packit 64f477
  ;;
Packit 64f477
  ?:/*)
Packit 64f477
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
Packit 64f477
  ;;
Packit 64f477
  *)
Packit 64f477
  ac_save_MAGIC_CMD="$MAGIC_CMD"
Packit 64f477
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
Packit 64f477
dnl $ac_dummy forces splitting on constant user-supplied paths.
Packit 64f477
dnl POSIX.2 word splitting is done only on the output of word expansions,
Packit 64f477
dnl not every word.  This closes a longstanding sh security hole.
Packit 64f477
  ac_dummy="ifelse([$2], , $PATH, [$2])"
Packit 64f477
  for ac_dir in $ac_dummy; do
Packit 64f477
    test -z "$ac_dir" && ac_dir=.
Packit 64f477
    if test -f $ac_dir/$1; then
Packit 64f477
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
Packit 64f477
      if test -n "$file_magic_test_file"; then
Packit 64f477
	case $deplibs_check_method in
Packit 64f477
	"file_magic "*)
Packit 64f477
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
Packit 64f477
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit 64f477
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Packit 64f477
	    egrep "$file_magic_regex" > /dev/null; then
Packit 64f477
	    :
Packit 64f477
	  else
Packit 64f477
	    cat <<EOF 1>&2
Packit 64f477
Packit 64f477
*** Warning: the command libtool uses to detect shared libraries,
Packit 64f477
*** $file_magic_cmd, produces output that libtool cannot recognize.
Packit 64f477
*** The result is that libtool may fail to recognize shared libraries
Packit 64f477
*** as such.  This will affect the creation of libtool libraries that
Packit 64f477
*** depend on shared libraries, but programs linked with such libtool
Packit 64f477
*** libraries will work regardless of this problem.  Nevertheless, you
Packit 64f477
*** may want to report the problem to your system manager and/or to
Packit 64f477
*** bug-libtool@gnu.org
Packit 64f477
Packit 64f477
EOF
Packit 64f477
	  fi ;;
Packit 64f477
	esac
Packit 64f477
      fi
Packit 64f477
      break
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
  MAGIC_CMD="$ac_save_MAGIC_CMD"
Packit 64f477
  ;;
Packit 64f477
esac])
Packit 64f477
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit 64f477
if test -n "$MAGIC_CMD"; then
Packit 64f477
  AC_MSG_RESULT($MAGIC_CMD)
Packit 64f477
else
Packit 64f477
  AC_MSG_RESULT(no)
Packit 64f477
fi
Packit 64f477
])
Packit 64f477
Packit 64f477
Packit 64f477
# AC_PATH_MAGIC - find a file program which can recognise a shared library
Packit 64f477
AC_DEFUN([AC_PATH_MAGIC],
Packit 64f477
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
Packit 64f477
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
Packit 64f477
if test -z "$lt_cv_path_MAGIC_CMD"; then
Packit 64f477
  if test -n "$ac_tool_prefix"; then
Packit 64f477
    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
Packit 64f477
  else
Packit 64f477
    MAGIC_CMD=:
Packit 64f477
  fi
Packit 64f477
fi
Packit 64f477
])
Packit 64f477
Packit 64f477
Packit 64f477
# AC_PROG_LD - find the path to the GNU or non-GNU linker
Packit 64f477
AC_DEFUN([AC_PROG_LD],
Packit 64f477
[AC_ARG_WITH(gnu-ld,
Packit 64f477
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
Packit 64f477
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
Packit 64f477
AC_REQUIRE([AC_PROG_CC])dnl
Packit 64f477
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 64f477
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit 64f477
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
Packit 64f477
ac_prog=ld
Packit 64f477
if test "$GCC" = yes; then
Packit 64f477
  # Check if gcc -print-prog-name=ld gives a path.
Packit 64f477
  AC_MSG_CHECKING([for ld used by GCC])
Packit 64f477
  case $host in
Packit 64f477
  *-*-mingw*)
Packit 64f477
    # gcc leaves a trailing carriage return which upsets mingw
Packit 64f477
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Packit 64f477
  *)
Packit 64f477
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Packit 64f477
  esac
Packit 64f477
  case $ac_prog in
Packit 64f477
    # Accept absolute paths.
Packit 64f477
    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
Packit 64f477
      re_direlt='/[[^/]][[^/]]*/\.\./'
Packit 64f477
      # Canonicalize the path of ld
Packit 64f477
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
Packit 64f477
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Packit 64f477
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Packit 64f477
      done
Packit 64f477
      test -z "$LD" && LD="$ac_prog"
Packit 64f477
      ;;
Packit 64f477
  "")
Packit 64f477
    # If it fails, then pretend we aren't using GCC.
Packit 64f477
    ac_prog=ld
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    # If it is relative, then search for the first ld in PATH.
Packit 64f477
    with_gnu_ld=unknown
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
elif test "$with_gnu_ld" = yes; then
Packit 64f477
  AC_MSG_CHECKING([for GNU ld])
Packit 64f477
else
Packit 64f477
  AC_MSG_CHECKING([for non-GNU ld])
Packit 64f477
fi
Packit 64f477
AC_CACHE_VAL(lt_cv_path_LD,
Packit 64f477
[if test -z "$LD"; then
Packit 64f477
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 64f477
  for ac_dir in $PATH; do
Packit 64f477
    test -z "$ac_dir" && ac_dir=.
Packit 64f477
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Packit 64f477
      lt_cv_path_LD="$ac_dir/$ac_prog"
Packit 64f477
      # Check to see if the program is GNU ld.  I'd rather use --version,
Packit 64f477
      # but apparently some GNU ld's only accept -v.
Packit 64f477
      # Break only if it was the GNU/non-GNU ld that we prefer.
Packit 64f477
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
Packit 64f477
	test "$with_gnu_ld" != no && break
Packit 64f477
      else
Packit 64f477
	test "$with_gnu_ld" != yes && break
Packit 64f477
      fi
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
else
Packit 64f477
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
Packit 64f477
fi])
Packit 64f477
LD="$lt_cv_path_LD"
Packit 64f477
if test -n "$LD"; then
Packit 64f477
  AC_MSG_RESULT($LD)
Packit 64f477
else
Packit 64f477
  AC_MSG_RESULT(no)
Packit 64f477
fi
Packit 64f477
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
Packit 64f477
AC_PROG_LD_GNU
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_PROG_LD_GNU -
Packit 64f477
AC_DEFUN([AC_PROG_LD_GNU],
Packit 64f477
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
Packit 64f477
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
Packit 64f477
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
Packit 64f477
  lt_cv_prog_gnu_ld=yes
Packit 64f477
else
Packit 64f477
  lt_cv_prog_gnu_ld=no
Packit 64f477
fi])
Packit 64f477
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
Packit 64f477
#   -- PORTME Some linkers may need a different reload flag.
Packit 64f477
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
Packit 64f477
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
Packit 64f477
[lt_cv_ld_reload_flag='-r'])
Packit 64f477
reload_flag=$lt_cv_ld_reload_flag
Packit 64f477
test -n "$reload_flag" && reload_flag=" $reload_flag"
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
Packit 64f477
#  -- PORTME fill in with the dynamic library characteristics
Packit 64f477
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
Packit 64f477
[AC_CACHE_CHECK([how to recognise dependant libraries],
Packit 64f477
lt_cv_deplibs_check_method,
Packit 64f477
[lt_cv_file_magic_cmd='$MAGIC_CMD'
Packit 64f477
lt_cv_file_magic_test_file=
Packit 64f477
lt_cv_deplibs_check_method='unknown'
Packit 64f477
# Need to set the preceding variable on all platforms that support
Packit 64f477
# interlibrary dependencies.
Packit 64f477
# 'none' -- dependencies not supported.
Packit 64f477
# `unknown' -- same as none, but documents that we really don't know.
Packit 64f477
# 'pass_all' -- all dependencies passed with no checks.
Packit 64f477
# 'test_compile' -- check by making test program.
Packit 64f477
# 'file_magic [[regex]]' -- check by looking for files in library path
Packit 64f477
# which responds to the $file_magic_cmd with a given egrep regex.
Packit 64f477
# If you have `file' or equivalent on your system and you're not sure
Packit 64f477
# whether `pass_all' will *always* work, you probably want this one.
Packit 64f477
Packit 64f477
case $host_os in
Packit 64f477
aix4* | aix5*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
beos*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
bsdi4*)
Packit 64f477
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
Packit 64f477
  lt_cv_file_magic_cmd='/usr/bin/file -L'
Packit 64f477
  lt_cv_file_magic_test_file=/shlib/libc.so
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
cygwin* | mingw* | pw32*)
Packit 64f477
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Packit 64f477
  lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
darwin* | rhapsody*)
Packit 64f477
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
Packit 64f477
  lt_cv_file_magic_cmd='/usr/bin/file -L'
Packit 64f477
  case "$host_os" in
Packit 64f477
  rhapsody* | darwin1.[[012]])
Packit 64f477
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
Packit 64f477
    ;;
Packit 64f477
  *) # Darwin 1.3 on
Packit 64f477
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
freebsd*)
Packit 64f477
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Packit 64f477
    case $host_cpu in
Packit 64f477
    i*86 )
Packit 64f477
      # Not sure whether the presence of OpenBSD here was a mistake.
Packit 64f477
      # Let's accept both of them until this is cleared up.
Packit 64f477
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
Packit 64f477
      lt_cv_file_magic_cmd=/usr/bin/file
Packit 64f477
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Packit 64f477
      ;;
Packit 64f477
    esac
Packit 64f477
  else
Packit 64f477
    lt_cv_deplibs_check_method=pass_all
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
gnu*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
hpux10.20*|hpux11*)
Packit 64f477
  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
Packit 64f477
  lt_cv_file_magic_cmd=/usr/bin/file
Packit 64f477
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
irix5* | irix6* | nonstopux*)
Packit 64f477
  case $host_os in
Packit 64f477
  irix5* | nonstopux*)
Packit 64f477
    # this will be overridden with pass_all, but let us keep it just in case
Packit 64f477
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
Packit 64f477
    ;;
Packit 64f477
  *)
Packit 64f477
    case $LD in
Packit 64f477
    *-32|*"-32 ") libmagic=32-bit;;
Packit 64f477
    *-n32|*"-n32 ") libmagic=N32;;
Packit 64f477
    *-64|*"-64 ") libmagic=64-bit;;
Packit 64f477
    *) libmagic=never-match;;
Packit 64f477
    esac
Packit 64f477
    # this will be overridden with pass_all, but let us keep it just in case
Packit 64f477
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
# This must be Linux ELF.
Packit 64f477
linux-gnu*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
netbsd*)
Packit 64f477
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Packit 64f477
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
Packit 64f477
  else
Packit 64f477
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
newos6*)
Packit 64f477
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
Packit 64f477
  lt_cv_file_magic_cmd=/usr/bin/file
Packit 64f477
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
openbsd*)
Packit 64f477
  lt_cv_file_magic_cmd=/usr/bin/file
Packit 64f477
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Packit 64f477
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit 64f477
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
Packit 64f477
  else
Packit 64f477
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
Packit 64f477
  fi
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
osf3* | osf4* | osf5*)
Packit 64f477
  # this will be overridden with pass_all, but let us keep it just in case
Packit 64f477
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
Packit 64f477
  lt_cv_file_magic_test_file=/shlib/libc.so
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sco3.2v5*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
solaris*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  lt_cv_file_magic_test_file=/lib/libc.so
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sysv5uw[[78]]* | sysv4*uw2*)
Packit 64f477
  lt_cv_deplibs_check_method=pass_all
Packit 64f477
  ;;
Packit 64f477
Packit 64f477
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Packit 64f477
  case $host_vendor in
Packit 64f477
  motorola)
Packit 64f477
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
Packit 64f477
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Packit 64f477
    ;;
Packit 64f477
  ncr)
Packit 64f477
    lt_cv_deplibs_check_method=pass_all
Packit 64f477
    ;;
Packit 64f477
  sequent)
Packit 64f477
    lt_cv_file_magic_cmd='/bin/file'
Packit 64f477
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
Packit 64f477
    ;;
Packit 64f477
  sni)
Packit 64f477
    lt_cv_file_magic_cmd='/bin/file'
Packit 64f477
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
Packit 64f477
    lt_cv_file_magic_test_file=/lib/libc.so
Packit 64f477
    ;;
Packit 64f477
  esac
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
])
Packit 64f477
file_magic_cmd=$lt_cv_file_magic_cmd
Packit 64f477
deplibs_check_method=$lt_cv_deplibs_check_method
Packit 64f477
])
Packit 64f477
Packit 64f477
Packit 64f477
# AC_PROG_NM - find the path to a BSD-compatible name lister
Packit 64f477
AC_DEFUN([AC_PROG_NM],
Packit 64f477
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
Packit 64f477
AC_MSG_CHECKING([for BSD-compatible nm])
Packit 64f477
AC_CACHE_VAL(lt_cv_path_NM,
Packit 64f477
[if test -n "$NM"; then
Packit 64f477
  # Let the user override the test.
Packit 64f477
  lt_cv_path_NM="$NM"
Packit 64f477
else
Packit 64f477
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit 64f477
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
Packit 64f477
    test -z "$ac_dir" && ac_dir=.
Packit 64f477
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
Packit 64f477
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
Packit 64f477
      # Check to see if the nm accepts a BSD-compat flag.
Packit 64f477
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
Packit 64f477
      #   nm: unknown option "B" ignored
Packit 64f477
      # Tru64's nm complains that /dev/null is an invalid object file
Packit 64f477
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
Packit 64f477
	lt_cv_path_NM="$tmp_nm -B"
Packit 64f477
	break
Packit 64f477
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
Packit 64f477
	lt_cv_path_NM="$tmp_nm -p"
Packit 64f477
	break
Packit 64f477
      else
Packit 64f477
	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Packit 64f477
	continue # so that we can try to find one that supports BSD flags
Packit 64f477
      fi
Packit 64f477
    fi
Packit 64f477
  done
Packit 64f477
  IFS="$ac_save_ifs"
Packit 64f477
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Packit 64f477
fi])
Packit 64f477
NM="$lt_cv_path_NM"
Packit 64f477
AC_MSG_RESULT([$NM])
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_CHECK_LIBM - check for math library
Packit 64f477
AC_DEFUN([AC_CHECK_LIBM],
Packit 64f477
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit 64f477
LIBM=
Packit 64f477
case $host in
Packit 64f477
*-*-beos* | *-*-cygwin* | *-*-pw32*)
Packit 64f477
  # These system don't have libm
Packit 64f477
  ;;
Packit 64f477
*-ncr-sysv4.3*)
Packit 64f477
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
Packit 64f477
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
Packit 64f477
  ;;
Packit 64f477
*)
Packit 64f477
  AC_CHECK_LIB(m, main, LIBM="-lm")
Packit 64f477
  ;;
Packit 64f477
esac
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
Packit 64f477
# the libltdl convenience library and LTDLINCL to the include flags for
Packit 64f477
# the libltdl header and adds --enable-ltdl-convenience to the
Packit 64f477
# configure arguments.  Note that LIBLTDL and LTDLINCL are not
Packit 64f477
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
Packit 64f477
# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
Packit 64f477
# with '${top_builddir}/' and LTDLINCL will be prefixed with
Packit 64f477
# '${top_srcdir}/' (note the single quotes!).  If your package is not
Packit 64f477
# flat and you're not using automake, define top_builddir and
Packit 64f477
# top_srcdir appropriately in the Makefiles.
Packit 64f477
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
  case $enable_ltdl_convenience in
Packit 64f477
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
Packit 64f477
  "") enable_ltdl_convenience=yes
Packit 64f477
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
Packit 64f477
  esac
Packit 64f477
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
Packit 64f477
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
Packit 64f477
  # For backwards non-gettext consistent compatibility...
Packit 64f477
  INCLTDL="$LTDLINCL"
Packit 64f477
])
Packit 64f477
Packit 64f477
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
Packit 64f477
# the libltdl installable library and LTDLINCL to the include flags for
Packit 64f477
# the libltdl header and adds --enable-ltdl-install to the configure
Packit 64f477
# arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
Packit 64f477
# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
Packit 64f477
# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
Packit 64f477
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
Packit 64f477
# with '${top_srcdir}/' (note the single quotes!).  If your package is
Packit 64f477
# not flat and you're not using automake, define top_builddir and
Packit 64f477
# top_srcdir appropriately in the Makefiles.
Packit 64f477
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
Packit 64f477
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
Packit 64f477
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit 64f477
  AC_CHECK_LIB(ltdl, main,
Packit 64f477
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
Packit 64f477
  [if test x"$enable_ltdl_install" = xno; then
Packit 64f477
     AC_MSG_WARN([libltdl not installed, but installation disabled])
Packit 64f477
   else
Packit 64f477
     enable_ltdl_install=yes
Packit 64f477
   fi
Packit 64f477
  ])
Packit 64f477
  if test x"$enable_ltdl_install" = x"yes"; then
Packit 64f477
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
Packit 64f477
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
Packit 64f477
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
Packit 64f477
  else
Packit 64f477
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
Packit 64f477
    LIBLTDL="-lltdl"
Packit 64f477
    LTDLINCL=
Packit 64f477
  fi
Packit 64f477
  # For backwards non-gettext consistent compatibility...
Packit 64f477
  INCLTDL="$LTDLINCL"
Packit 64f477
])
Packit 64f477
Packit 64f477
# old names
Packit 64f477
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
Packit 64f477
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
Packit 64f477
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
Packit 64f477
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
Packit 64f477
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
Packit 64f477
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
Packit 64f477
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
Packit 64f477
Packit 64f477
# This is just to silence aclocal about the macro not being used
Packit 64f477
ifelse([AC_DISABLE_FAST_INSTALL])
Packit 64f477