Ignore:
Timestamp:
11/13/06 20:15:00 (17 years ago)
Author:
r2d
Message:
  • added "live" bitrate
  • added pns and gapless info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xmms-musepack/branches/r2d/aclocal.m4

    r34 r127  
    1 # generated automatically by aclocal 1.9.4 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     1# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
     2
     3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    44# Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
     
    1212# PARTICULAR PURPOSE.
    1313
     14# Do all the work for Automake.                            -*- Autoconf -*-
     15
     16# This macro actually does too much some checks are only needed if
     17# your package does certain things.  But this isn't really a big deal.
     18
     19# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
     20# Free Software Foundation, Inc.
     21
     22# This program is free software; you can redistribute it and/or modify
     23# it under the terms of the GNU General Public License as published by
     24# the Free Software Foundation; either version 2, or (at your option)
     25# any later version.
     26
     27# This program is distributed in the hope that it will be useful,
     28# but WITHOUT ANY WARRANTY; without even the implied warranty of
     29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     30# GNU General Public License for more details.
     31
     32# You should have received a copy of the GNU General Public License
     33# along with this program; if not, write to the Free Software
     34# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     35# 02111-1307, USA.
     36
     37# serial 10
     38
     39AC_PREREQ([2.54])
     40
     41# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
     42# the ones we care about.
     43m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
     44
     45# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     46# AM_INIT_AUTOMAKE([OPTIONS])
     47# -----------------------------------------------
     48# The call with PACKAGE and VERSION arguments is the old style
     49# call (pre autoconf-2.50), which is being phased out.  PACKAGE
     50# and VERSION should now be passed to AC_INIT and removed from
     51# the call to AM_INIT_AUTOMAKE.
     52# We support both call styles for the transition.  After
     53# the next Automake release, Autoconf can make the AC_INIT
     54# arguments mandatory, and then we can depend on a new Autoconf
     55# release and drop the old call support.
     56AC_DEFUN([AM_INIT_AUTOMAKE],
     57[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
     58 AC_REQUIRE([AC_PROG_INSTALL])dnl
     59# test to see if srcdir already configured
     60if test "`cd $srcdir && pwd`" != "`pwd`" &&
     61   test -f $srcdir/config.status; then
     62  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     63fi
     64
     65# test whether we have cygpath
     66if test -z "$CYGPATH_W"; then
     67  if (cygpath --version) >/dev/null 2>/dev/null; then
     68    CYGPATH_W='cygpath -w'
     69  else
     70    CYGPATH_W=echo
     71  fi
     72fi
     73AC_SUBST([CYGPATH_W])
     74
     75# Define the identity of the package.
     76dnl Distinguish between old-style and new-style calls.
     77m4_ifval([$2],
     78[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
     79 AC_SUBST([PACKAGE], [$1])dnl
     80 AC_SUBST([VERSION], [$2])],
     81[_AM_SET_OPTIONS([$1])dnl
     82 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
     83 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
     84
     85_AM_IF_OPTION([no-define],,
     86[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     87 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
     88
     89# Some tools Automake needs.
     90AC_REQUIRE([AM_SANITY_CHECK])dnl
     91AC_REQUIRE([AC_ARG_PROGRAM])dnl
     92AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
     93AM_MISSING_PROG(AUTOCONF, autoconf)
     94AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
     95AM_MISSING_PROG(AUTOHEADER, autoheader)
     96AM_MISSING_PROG(MAKEINFO, makeinfo)
     97AM_MISSING_PROG(AMTAR, tar)
     98AM_PROG_INSTALL_SH
     99AM_PROG_INSTALL_STRIP
     100# We need awk for the "check" target.  The system "awk" is bad on
     101# some platforms.
     102AC_REQUIRE([AC_PROG_AWK])dnl
     103AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     104AC_REQUIRE([AM_SET_LEADING_DOT])dnl
     105
     106_AM_IF_OPTION([no-dependencies],,
     107[AC_PROVIDE_IFELSE([AC_PROG_CC],
     108                  [_AM_DEPENDENCIES(CC)],
     109                  [define([AC_PROG_CC],
     110                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
     111AC_PROVIDE_IFELSE([AC_PROG_CXX],
     112                  [_AM_DEPENDENCIES(CXX)],
     113                  [define([AC_PROG_CXX],
     114                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
     115])
     116])
     117
     118
     119# When config.status generates a header, we must update the stamp-h file.
     120# This file resides in the same directory as the config header
     121# that is generated.  The stamp files are numbered to have different names.
     122
     123# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
     124# loop where config.status creates the headers, so we can generate
     125# our stamp files there.
     126AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
     127[# Compute $1's index in $config_headers.
     128_am_stamp_count=1
     129for _am_header in $config_headers :; do
     130  case $_am_header in
     131    $1 | $1:* )
     132      break ;;
     133    * )
     134      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     135  esac
     136done
     137echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
     138
     139# Copyright 2002  Free Software Foundation, Inc.
     140
     141# This program is free software; you can redistribute it and/or modify
     142# it under the terms of the GNU General Public License as published by
     143# the Free Software Foundation; either version 2, or (at your option)
     144# any later version.
     145
     146# This program is distributed in the hope that it will be useful,
     147# but WITHOUT ANY WARRANTY; without even the implied warranty of
     148# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     149# GNU General Public License for more details.
     150
     151# You should have received a copy of the GNU General Public License
     152# along with this program; if not, write to the Free Software
     153# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     154
     155# AM_AUTOMAKE_VERSION(VERSION)
     156# ----------------------------
     157# Automake X.Y traces this macro to ensure aclocal.m4 has been
     158# generated from the m4 files accompanying Automake X.Y.
     159AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
     160
     161# AM_SET_CURRENT_AUTOMAKE_VERSION
     162# -------------------------------
     163# Call AM_AUTOMAKE_VERSION so it can be traced.
     164# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
     165AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     166         [AM_AUTOMAKE_VERSION([1.7.9])])
     167
     168# Helper functions for option handling.                    -*- Autoconf -*-
     169
     170# Copyright 2001, 2002  Free Software Foundation, Inc.
     171
     172# This program is free software; you can redistribute it and/or modify
     173# it under the terms of the GNU General Public License as published by
     174# the Free Software Foundation; either version 2, or (at your option)
     175# any later version.
     176
     177# This program is distributed in the hope that it will be useful,
     178# but WITHOUT ANY WARRANTY; without even the implied warranty of
     179# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     180# GNU General Public License for more details.
     181
     182# You should have received a copy of the GNU General Public License
     183# along with this program; if not, write to the Free Software
     184# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     185# 02111-1307, USA.
     186
     187# serial 2
     188
     189# _AM_MANGLE_OPTION(NAME)
     190# -----------------------
     191AC_DEFUN([_AM_MANGLE_OPTION],
     192[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
     193
     194# _AM_SET_OPTION(NAME)
     195# ------------------------------
     196# Set option NAME.  Presently that only means defining a flag for this option.
     197AC_DEFUN([_AM_SET_OPTION],
     198[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
     199
     200# _AM_SET_OPTIONS(OPTIONS)
     201# ----------------------------------
     202# OPTIONS is a space-separated list of Automake options.
     203AC_DEFUN([_AM_SET_OPTIONS],
     204[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
     205
     206# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
     207# -------------------------------------------
     208# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
     209AC_DEFUN([_AM_IF_OPTION],
     210[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
     211
     212#
     213# Check to make sure that the build environment is sane.
     214#
     215
     216# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
     217
     218# This program is free software; you can redistribute it and/or modify
     219# it under the terms of the GNU General Public License as published by
     220# the Free Software Foundation; either version 2, or (at your option)
     221# any later version.
     222
     223# This program is distributed in the hope that it will be useful,
     224# but WITHOUT ANY WARRANTY; without even the implied warranty of
     225# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     226# GNU General Public License for more details.
     227
     228# You should have received a copy of the GNU General Public License
     229# along with this program; if not, write to the Free Software
     230# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     231# 02111-1307, USA.
     232
     233# serial 3
     234
     235# AM_SANITY_CHECK
     236# ---------------
     237AC_DEFUN([AM_SANITY_CHECK],
     238[AC_MSG_CHECKING([whether build environment is sane])
     239# Just in case
     240sleep 1
     241echo timestamp > conftest.file
     242# Do `set' in a subshell so we don't clobber the current shell's
     243# arguments.  Must try -L first in case configure is actually a
     244# symlink; some systems play weird games with the mod time of symlinks
     245# (eg FreeBSD returns the mod time of the symlink's containing
     246# directory).
     247if (
     248   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     249   if test "$[*]" = "X"; then
     250      # -L didn't work.
     251      set X `ls -t $srcdir/configure conftest.file`
     252   fi
     253   rm -f conftest.file
     254   if test "$[*]" != "X $srcdir/configure conftest.file" \
     255      && test "$[*]" != "X conftest.file $srcdir/configure"; then
     256
     257      # If neither matched, then we have a broken ls.  This can happen
     258      # if, for instance, CONFIG_SHELL is bash and it inherits a
     259      # broken ls alias from the environment.  This has actually
     260      # happened.  Such a system could not be considered "sane".
     261      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     262alias in your environment])
     263   fi
     264
     265   test "$[2]" = conftest.file
     266   )
     267then
     268   # Ok.
     269   :
     270else
     271   AC_MSG_ERROR([newly created file is older than distributed files!
     272Check your system clock])
     273fi
     274AC_MSG_RESULT(yes)])
     275
     276#  -*- Autoconf -*-
     277
     278
     279# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
     280
     281# This program is free software; you can redistribute it and/or modify
     282# it under the terms of the GNU General Public License as published by
     283# the Free Software Foundation; either version 2, or (at your option)
     284# any later version.
     285
     286# This program is distributed in the hope that it will be useful,
     287# but WITHOUT ANY WARRANTY; without even the implied warranty of
     288# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     289# GNU General Public License for more details.
     290
     291# You should have received a copy of the GNU General Public License
     292# along with this program; if not, write to the Free Software
     293# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     294# 02111-1307, USA.
     295
     296# serial 3
     297
     298# AM_MISSING_PROG(NAME, PROGRAM)
     299# ------------------------------
     300AC_DEFUN([AM_MISSING_PROG],
     301[AC_REQUIRE([AM_MISSING_HAS_RUN])
     302$1=${$1-"${am_missing_run}$2"}
     303AC_SUBST($1)])
     304
     305
     306# AM_MISSING_HAS_RUN
     307# ------------------
     308# Define MISSING if not defined so far and test if it supports --run.
     309# If it does, set am_missing_run to use it, otherwise, to nothing.
     310AC_DEFUN([AM_MISSING_HAS_RUN],
     311[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     312test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     313# Use eval to expand $SHELL
     314if eval "$MISSING --run true"; then
     315  am_missing_run="$MISSING --run "
     316else
     317  am_missing_run=
     318  AC_MSG_WARN([`missing' script is too old or missing])
     319fi
     320])
     321
     322# AM_AUX_DIR_EXPAND
     323
     324# Copyright 2001 Free Software Foundation, Inc.
     325
     326# This program is free software; you can redistribute it and/or modify
     327# it under the terms of the GNU General Public License as published by
     328# the Free Software Foundation; either version 2, or (at your option)
     329# any later version.
     330
     331# This program is distributed in the hope that it will be useful,
     332# but WITHOUT ANY WARRANTY; without even the implied warranty of
     333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     334# GNU General Public License for more details.
     335
     336# You should have received a copy of the GNU General Public License
     337# along with this program; if not, write to the Free Software
     338# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     339# 02111-1307, USA.
     340
     341# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     342# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
     343# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     344#
     345# Of course, Automake must honor this variable whenever it calls a
     346# tool from the auxiliary directory.  The problem is that $srcdir (and
     347# therefore $ac_aux_dir as well) can be either absolute or relative,
     348# depending on how configure is run.  This is pretty annoying, since
     349# it makes $ac_aux_dir quite unusable in subdirectories: in the top
     350# source directory, any form will work fine, but in subdirectories a
     351# relative path needs to be adjusted first.
     352#
     353# $ac_aux_dir/missing
     354#    fails when called from a subdirectory if $ac_aux_dir is relative
     355# $top_srcdir/$ac_aux_dir/missing
     356#    fails if $ac_aux_dir is absolute,
     357#    fails when called from a subdirectory in a VPATH build with
     358#          a relative $ac_aux_dir
     359#
     360# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
     361# are both prefixed by $srcdir.  In an in-source build this is usually
     362# harmless because $srcdir is `.', but things will broke when you
     363# start a VPATH build or use an absolute $srcdir.
     364#
     365# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
     366# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
     367#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
     368# and then we would define $MISSING as
     369#   MISSING="\${SHELL} $am_aux_dir/missing"
     370# This will work as long as MISSING is not called from configure, because
     371# unfortunately $(top_srcdir) has no meaning in configure.
     372# However there are other variables, like CC, which are often used in
     373# configure, and could therefore not use this "fixed" $ac_aux_dir.
     374#
     375# Another solution, used here, is to always expand $ac_aux_dir to an
     376# absolute PATH.  The drawback is that using absolute paths prevent a
     377# configured tree to be moved without reconfiguration.
     378
     379# Rely on autoconf to set up CDPATH properly.
     380AC_PREREQ([2.50])
     381
     382AC_DEFUN([AM_AUX_DIR_EXPAND], [
     383# expand $ac_aux_dir to an absolute path
     384am_aux_dir=`cd $ac_aux_dir && pwd`
     385])
     386
     387# AM_PROG_INSTALL_SH
     388# ------------------
     389# Define $install_sh.
     390
     391# Copyright 2001 Free Software Foundation, Inc.
     392
     393# This program is free software; you can redistribute it and/or modify
     394# it under the terms of the GNU General Public License as published by
     395# the Free Software Foundation; either version 2, or (at your option)
     396# any later version.
     397
     398# This program is distributed in the hope that it will be useful,
     399# but WITHOUT ANY WARRANTY; without even the implied warranty of
     400# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     401# GNU General Public License for more details.
     402
     403# You should have received a copy of the GNU General Public License
     404# along with this program; if not, write to the Free Software
     405# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     406# 02111-1307, USA.
     407
     408AC_DEFUN([AM_PROG_INSTALL_SH],
     409[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     410install_sh=${install_sh-"$am_aux_dir/install-sh"}
     411AC_SUBST(install_sh)])
     412
     413# AM_PROG_INSTALL_STRIP
     414
     415# Copyright 2001 Free Software Foundation, Inc.
     416
     417# This program is free software; you can redistribute it and/or modify
     418# it under the terms of the GNU General Public License as published by
     419# the Free Software Foundation; either version 2, or (at your option)
     420# any later version.
     421
     422# This program is distributed in the hope that it will be useful,
     423# but WITHOUT ANY WARRANTY; without even the implied warranty of
     424# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     425# GNU General Public License for more details.
     426
     427# You should have received a copy of the GNU General Public License
     428# along with this program; if not, write to the Free Software
     429# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     430# 02111-1307, USA.
     431
     432# One issue with vendor `install' (even GNU) is that you can't
     433# specify the program used to strip binaries.  This is especially
     434# annoying in cross-compiling environments, where the build's strip
     435# is unlikely to handle the host's binaries.
     436# Fortunately install-sh will honor a STRIPPROG variable, so we
     437# always use install-sh in `make install-strip', and initialize
     438# STRIPPROG with the value of the STRIP variable (set by the user).
     439AC_DEFUN([AM_PROG_INSTALL_STRIP],
     440[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
     441# Installed binaries are usually stripped using `strip' when the user
     442# run `make install-strip'.  However `strip' might not be the right
     443# tool to use in cross-compilation environments, therefore Automake
     444# will honor the `STRIP' environment variable to overrule this program.
     445dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
     446if test "$cross_compiling" != no; then
     447  AC_CHECK_TOOL([STRIP], [strip], :)
     448fi
     449INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     450AC_SUBST([INSTALL_STRIP_PROGRAM])])
     451
     452#                                                          -*- Autoconf -*-
     453# Copyright (C) 2003  Free Software Foundation, Inc.
     454
     455# This program is free software; you can redistribute it and/or modify
     456# it under the terms of the GNU General Public License as published by
     457# the Free Software Foundation; either version 2, or (at your option)
     458# any later version.
     459
     460# This program is distributed in the hope that it will be useful,
     461# but WITHOUT ANY WARRANTY; without even the implied warranty of
     462# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     463# GNU General Public License for more details.
     464
     465# You should have received a copy of the GNU General Public License
     466# along with this program; if not, write to the Free Software
     467# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     468# 02111-1307, USA.
     469
     470# serial 1
     471
     472# Check whether the underlying file-system supports filenames
     473# with a leading dot.  For instance MS-DOS doesn't.
     474AC_DEFUN([AM_SET_LEADING_DOT],
     475[rm -rf .tst 2>/dev/null
     476mkdir .tst 2>/dev/null
     477if test -d .tst; then
     478  am__leading_dot=.
     479else
     480  am__leading_dot=_
     481fi
     482rmdir .tst 2>/dev/null
     483AC_SUBST([am__leading_dot])])
     484
     485# serial 5                                              -*- Autoconf -*-
     486
     487# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
     488
     489# This program is free software; you can redistribute it and/or modify
     490# it under the terms of the GNU General Public License as published by
     491# the Free Software Foundation; either version 2, or (at your option)
     492# any later version.
     493
     494# This program is distributed in the hope that it will be useful,
     495# but WITHOUT ANY WARRANTY; without even the implied warranty of
     496# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     497# GNU General Public License for more details.
     498
     499# You should have received a copy of the GNU General Public License
     500# along with this program; if not, write to the Free Software
     501# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     502# 02111-1307, USA.
     503
     504
     505# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     506# written in clear, in which case automake, when reading aclocal.m4,
     507# will think it sees a *use*, and therefore will trigger all it's
     508# C support machinery.  Also note that it means that autoscan, seeing
     509# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
     510
     511
     512
     513# _AM_DEPENDENCIES(NAME)
     514# ----------------------
     515# See how the compiler implements dependency checking.
     516# NAME is "CC", "CXX", "GCJ", or "OBJC".
     517# We try a few techniques and use that to set a single cache variable.
     518#
     519# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
     520# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
     521# dependency, and given that the user is not expected to run this macro,
     522# just rely on AC_PROG_CC.
     523AC_DEFUN([_AM_DEPENDENCIES],
     524[AC_REQUIRE([AM_SET_DEPDIR])dnl
     525AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
     526AC_REQUIRE([AM_MAKE_INCLUDE])dnl
     527AC_REQUIRE([AM_DEP_TRACK])dnl
     528
     529ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
     530       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
     531       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     532       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
     533                   [depcc="$$1"   am_compiler_list=])
     534
     535AC_CACHE_CHECK([dependency style of $depcc],
     536               [am_cv_$1_dependencies_compiler_type],
     537[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     538  # We make a subdir and do the tests there.  Otherwise we can end up
     539  # making bogus files that we don't know about and never remove.  For
     540  # instance it was reported that on HP-UX the gcc test will end up
     541  # making a dummy file named `D' -- because `-MD' means `put the output
     542  # in D'.
     543  mkdir conftest.dir
     544  # Copy depcomp to subdir because otherwise we won't find it if we're
     545  # using a relative directory.
     546  cp "$am_depcomp" conftest.dir
     547  cd conftest.dir
     548  # We will build objects and dependencies in a subdirectory because
     549  # it helps to detect inapplicable dependency modes.  For instance
     550  # both Tru64's cc and ICC support -MD to output dependencies as a
     551  # side effect of compilation, but ICC will put the dependencies in
     552  # the current directory while Tru64 will put them in the object
     553  # directory.
     554  mkdir sub
     555
     556  am_cv_$1_dependencies_compiler_type=none
     557  if test "$am_compiler_list" = ""; then
     558     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
     559  fi
     560  for depmode in $am_compiler_list; do
     561    # Setup a source with many dependencies, because some compilers
     562    # like to wrap large dependency lists on column 80 (with \), and
     563    # we should not choose a depcomp mode which is confused by this.
     564    #
     565    # We need to recreate these files for each test, as the compiler may
     566    # overwrite some of them when testing with obscure command lines.
     567    # This happens at least with the AIX C compiler.
     568    : > sub/conftest.c
     569    for i in 1 2 3 4 5 6; do
     570      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     571      : > sub/conftst$i.h
     572    done
     573    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     574
     575    case $depmode in
     576    nosideeffect)
     577      # after this tag, mechanisms are not by side-effect, so they'll
     578      # only be used when explicitly requested
     579      if test "x$enable_dependency_tracking" = xyes; then
     580        continue
     581      else
     582        break
     583      fi
     584      ;;
     585    none) break ;;
     586    esac
     587    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     588    # mode.  It turns out that the SunPro C++ compiler does not properly
     589    # handle `-M -o', and we need to detect this.
     590    if depmode=$depmode \
     591       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     592       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     593       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     594         >/dev/null 2>conftest.err &&
     595       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     596       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     597       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     598      # icc doesn't choke on unknown options, it will just issue warnings
     599      # (even with -Werror).  So we grep stderr for any message
     600      # that says an option was ignored.
     601      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
     602        am_cv_$1_dependencies_compiler_type=$depmode
     603        break
     604      fi
     605    fi
     606  done
     607
     608  cd ..
     609  rm -rf conftest.dir
     610else
     611  am_cv_$1_dependencies_compiler_type=none
     612fi
     613])
     614AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
     615AM_CONDITIONAL([am__fastdep$1], [
     616  test "x$enable_dependency_tracking" != xno \
     617  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
     618])
     619
     620
     621# AM_SET_DEPDIR
     622# -------------
     623# Choose a directory name for dependency files.
     624# This macro is AC_REQUIREd in _AM_DEPENDENCIES
     625AC_DEFUN([AM_SET_DEPDIR],
     626[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
     627AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
     628])
     629
     630
     631# AM_DEP_TRACK
     632# ------------
     633AC_DEFUN([AM_DEP_TRACK],
     634[AC_ARG_ENABLE(dependency-tracking,
     635[  --disable-dependency-tracking Speeds up one-time builds
     636  --enable-dependency-tracking  Do not reject slow dependency extractors])
     637if test "x$enable_dependency_tracking" != xno; then
     638  am_depcomp="$ac_aux_dir/depcomp"
     639  AMDEPBACKSLASH='\'
     640fi
     641AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
     642AC_SUBST([AMDEPBACKSLASH])
     643])
     644
     645# Generate code to set up dependency tracking.   -*- Autoconf -*-
     646
     647# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
     648
     649# This program is free software; you can redistribute it and/or modify
     650# it under the terms of the GNU General Public License as published by
     651# the Free Software Foundation; either version 2, or (at your option)
     652# any later version.
     653
     654# This program is distributed in the hope that it will be useful,
     655# but WITHOUT ANY WARRANTY; without even the implied warranty of
     656# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     657# GNU General Public License for more details.
     658
     659# You should have received a copy of the GNU General Public License
     660# along with this program; if not, write to the Free Software
     661# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     662# 02111-1307, USA.
     663
     664#serial 2
     665
     666# _AM_OUTPUT_DEPENDENCY_COMMANDS
     667# ------------------------------
     668AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
     669[for mf in $CONFIG_FILES; do
     670  # Strip MF so we end up with the name of the file.
     671  mf=`echo "$mf" | sed -e 's/:.*$//'`
     672  # Check whether this is an Automake generated Makefile or not.
     673  # We used to match only the files named `Makefile.in', but
     674  # some people rename them; so instead we look at the file content.
     675  # Grep'ing the first line is not enough: some people post-process
     676  # each Makefile.in and add a new line on top of each file to say so.
     677  # So let's grep whole file.
     678  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     679    dirpart=`AS_DIRNAME("$mf")`
     680  else
     681    continue
     682  fi
     683  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
     684  # Extract the definition of DEP_FILES from the Makefile without
     685  # running `make'.
     686  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     687  test -z "$DEPDIR" && continue
     688  # When using ansi2knr, U may be empty or an underscore; expand it
     689  U=`sed -n -e '/^U = / s///p' < "$mf"`
     690  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
     691  # We invoke sed twice because it is the simplest approach to
     692  # changing $(DEPDIR) to its actual value in the expansion.
     693  for file in `sed -n -e '
     694    /^DEP_FILES = .*\\\\$/ {
     695      s/^DEP_FILES = //
     696      :loop
     697        s/\\\\$//
     698        p
     699        n
     700        /\\\\$/ b loop
     701      p
     702    }
     703    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
     704       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
     705    # Make sure the directory exists.
     706    test -f "$dirpart/$file" && continue
     707    fdir=`AS_DIRNAME(["$file"])`
     708    AS_MKDIR_P([$dirpart/$fdir])
     709    # echo "creating $dirpart/$file"
     710    echo '# dummy' > "$dirpart/$file"
     711  done
     712done
     713])# _AM_OUTPUT_DEPENDENCY_COMMANDS
     714
     715
     716# AM_OUTPUT_DEPENDENCY_COMMANDS
     717# -----------------------------
     718# This macro should only be invoked once -- use via AC_REQUIRE.
     719#
     720# This code is only required when automatic dependency tracking
     721# is enabled.  FIXME.  This creates each `.P' file that we will
     722# need in order to bootstrap the dependency handling code.
     723AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
     724[AC_CONFIG_COMMANDS([depfiles],
     725     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
     726     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
     727])
     728
     729# Check to see how 'make' treats includes.      -*- Autoconf -*-
     730
     731# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
     732
     733# This program is free software; you can redistribute it and/or modify
     734# it under the terms of the GNU General Public License as published by
     735# the Free Software Foundation; either version 2, or (at your option)
     736# any later version.
     737
     738# This program is distributed in the hope that it will be useful,
     739# but WITHOUT ANY WARRANTY; without even the implied warranty of
     740# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     741# GNU General Public License for more details.
     742
     743# You should have received a copy of the GNU General Public License
     744# along with this program; if not, write to the Free Software
     745# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     746# 02111-1307, USA.
     747
     748# serial 2
     749
     750# AM_MAKE_INCLUDE()
     751# -----------------
     752# Check to see how make treats includes.
     753AC_DEFUN([AM_MAKE_INCLUDE],
     754[am_make=${MAKE-make}
     755cat > confinc << 'END'
     756am__doit:
     757        @echo done
     758.PHONY: am__doit
     759END
     760# If we don't find an include directive, just comment out the code.
     761AC_MSG_CHECKING([for style of include used by $am_make])
     762am__include="#"
     763am__quote=
     764_am_result=none
     765# First try GNU make style include.
     766echo "include confinc" > confmf
     767# We grep out `Entering directory' and `Leaving directory'
     768# messages which can occur if `w' ends up in MAKEFLAGS.
     769# In particular we don't look at `^make:' because GNU make might
     770# be invoked under some other name (usually "gmake"), in which
     771# case it prints its new name instead of `make'.
     772if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     773   am__include=include
     774   am__quote=
     775   _am_result=GNU
     776fi
     777# Now try BSD make style include.
     778if test "$am__include" = "#"; then
     779   echo '.include "confinc"' > confmf
     780   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     781      am__include=.include
     782      am__quote="\""
     783      _am_result=BSD
     784   fi
     785fi
     786AC_SUBST([am__include])
     787AC_SUBST([am__quote])
     788AC_MSG_RESULT([$_am_result])
     789rm -f confinc confmf
     790])
     791
     792# AM_CONDITIONAL                                              -*- Autoconf -*-
     793
     794# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
     795
     796# This program is free software; you can redistribute it and/or modify
     797# it under the terms of the GNU General Public License as published by
     798# the Free Software Foundation; either version 2, or (at your option)
     799# any later version.
     800
     801# This program is distributed in the hope that it will be useful,
     802# but WITHOUT ANY WARRANTY; without even the implied warranty of
     803# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     804# GNU General Public License for more details.
     805
     806# You should have received a copy of the GNU General Public License
     807# along with this program; if not, write to the Free Software
     808# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     809# 02111-1307, USA.
     810
     811# serial 5
     812
     813AC_PREREQ(2.52)
     814
     815# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     816# -------------------------------------
     817# Define a conditional.
     818AC_DEFUN([AM_CONDITIONAL],
     819[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
     820        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
     821AC_SUBST([$1_TRUE])
     822AC_SUBST([$1_FALSE])
     823if $2; then
     824  $1_TRUE=
     825  $1_FALSE='#'
     826else
     827  $1_TRUE='#'
     828  $1_FALSE=
     829fi
     830AC_CONFIG_COMMANDS_PRE(
     831[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
     832  AC_MSG_ERROR([conditional "$1" was never defined.
     833Usually this means the macro was only invoked conditionally.])
     834fi])])
     835
    14836# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    15837
    16838# serial 47 AC_PROG_LIBTOOL
    17 # Debian $Rev: 214 $
    18839
    19840
     
    125946# Sed substitution that helps us do robust quoting.  It backslashifies
    126947# metacharacters that are still active within double-quoted strings.
    127 Xsed='sed -e s/^X//'
     948Xsed='sed -e 1s/^X//'
    128949[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    129950
     
    1931014fi
    1941015
     1016_LT_CC_BASENAME([$compiler])
     1017
    1951018# Only perform the check for file, if the check method requires it
    1961019case $deplibs_check_method in
     
    2361059compiler=$CC
    2371060])# _LT_AC_SYS_COMPILER
     1061
     1062
     1063# _LT_CC_BASENAME(CC)
     1064# -------------------
     1065# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
     1066AC_DEFUN([_LT_CC_BASENAME],
     1067[for cc_temp in $1""; do
     1068  case $cc_temp in
     1069    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
     1070    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
     1071    \-*) ;;
     1072    *) break;;
     1073  esac
     1074done
     1075cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     1076])
     1077
     1078
     1079# _LT_COMPILER_BOILERPLATE
     1080# ------------------------
     1081# Check for compiler boilerplate output or warnings with
     1082# the simple compiler test code.
     1083AC_DEFUN([_LT_COMPILER_BOILERPLATE],
     1084[ac_outfile=conftest.$ac_objext
     1085printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     1086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     1087_lt_compiler_boilerplate=`cat conftest.err`
     1088$rm conftest*
     1089])# _LT_COMPILER_BOILERPLATE
     1090
     1091
     1092# _LT_LINKER_BOILERPLATE
     1093# ----------------------
     1094# Check for linker boilerplate output or warnings with
     1095# the simple link test code.
     1096AC_DEFUN([_LT_LINKER_BOILERPLATE],
     1097[ac_outfile=conftest.$ac_objext
     1098printf "$lt_simple_link_test_code" >conftest.$ac_ext
     1099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     1100_lt_linker_boilerplate=`cat conftest.err`
     1101$rm conftest*
     1102])# _LT_LINKER_BOILERPLATE
    2381103
    2391104
     
    3101175# The HP-UX ksh and POSIX shell print the target directory to stdout
    3111176# if CDPATH is set.
    312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     1177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    3131178
    3141179if test -z "$ECHO"; then
     
    5791444   if (exit $ac_status) && test -s "$ac_outfile"; then
    5801445     # The compiler can only warn and ignore the option if not recognized
    581      # So say no if there are warnings
    582      if test ! -s conftest.err; then
     1446     # So say no if there are warnings other than the usual output.
     1447     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     1448     $SED '/^$/d' conftest.err >conftest.er2
     1449     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
    5831450       $2=yes
    5841451     fi
     
    6111478       # Append any errors to the config.log.
    6121479       cat conftest.err 1>&AS_MESSAGE_LOG_FD
     1480       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
     1481       $SED '/^$/d' conftest.err >conftest.er2
     1482       if diff conftest.exp conftest.er2 >/dev/null; then
     1483         $2=yes
     1484       fi
    6131485     else
    6141486       $2=yes
     
    6691541    ;;
    6701542
    671  *)
     1543  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     1544    # This has been around since 386BSD, at least.  Likely further.
     1545    if test -x /sbin/sysctl; then
     1546      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     1547    elif test -x /usr/sbin/sysctl; then
     1548      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     1549    else
     1550      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
     1551    fi
     1552    # And add a safety zone
     1553    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     1554    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     1555    ;;
     1556  osf*)
     1557    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     1558    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     1559    # nice to cause kernel panics so lets avoid the loop below.
     1560    # First set a reasonable default.
     1561    lt_cv_sys_max_cmd_len=16384
     1562    #
     1563    if test -x /sbin/sysconfig; then
     1564      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     1565        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     1566      esac
     1567    fi
     1568    ;;
     1569  *)
    6721570    # If test is not a shell built-in, we'll probably end up computing a
    6731571    # maximum length that is only half of the actual maximum length, but
    6741572    # we can't tell.
    675     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
     1573    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     1574    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    6761575               = "XX$teststring") >/dev/null 2>&1 &&
    6771576            new_result=`expr "X$teststring" : ".*" 2>&1` &&
     
    9391838     # The compiler can only warn and ignore the option if not recognized
    9401839     # So say no if there are warnings
    941      if test ! -s out/conftest.err; then
     1840     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     1841     $SED '/^$/d' out/conftest.err >out/conftest.er2
     1842     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    9421843       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    9431844     fi
     
    10071908_LT_AC_TAGVAR(hardcode_action, $1)=
    10081909if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
    1009    test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
    1010    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
     1910   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
     1911   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
    10111912
    10121913  # We can hardcode non-existant directories.
     
    11752076  ;;
    11762077
    1177 bsdi4*)
     2078bsdi[[45]]*)
    11782079  version_type=linux
    11792080  need_version=no
     
    12332134    pw32*)
    12342135      # pw32 DLLs use 'pw' prefix rather than 'lib'
    1235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     2136      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    12362137      ;;
    12372138    esac
     
    12912192  ;;
    12922193
    1293 freebsd*)
     2194freebsd* | dragonfly*)
     2195  # DragonFly does not have aout.  When/if they implement a new
     2196  # versioning mechanism, adjust this.
    12942197  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    12952198  version_type=freebsd-$objformat
     
    13102213    shlibpath_overrides_runpath=yes
    13112214    ;;
    1312   freebsd3.[01]* | freebsdelf3.[01]*)
     2215  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
    13132216    shlibpath_overrides_runpath=yes
    13142217    hardcode_into_libs=yes
     
    14342337  hardcode_into_libs=yes
    14352338
     2339  # find out which ABI we are using
     2340  libsuff=
     2341  case "$host_cpu" in
     2342  x86_64*|s390x*|powerpc64*)
     2343    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     2344    if AC_TRY_EVAL(ac_compile); then
     2345      case `/usr/bin/file conftest.$ac_objext` in
     2346      *64-bit*)
     2347        libsuff=64
     2348        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
     2349        ;;
     2350      esac
     2351    fi
     2352    rm -rf conftest*
     2353    ;;
     2354  esac
     2355
    14362356  # Append ld.so.conf contents to the search path
    14372357  if test -f /etc/ld.so.conf; then
    1438     lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
    1439     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
     2358    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     2359    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    14402360  fi
    14412361
     
    14472367  # assume the GNU/Linux dynamic linker is in use.
    14482368  dynamic_linker='GNU/Linux ld.so'
    1449   ;;
    1450 
    1451 netbsdelf*-gnu)
    1452   version_type=linux
    1453   need_lib_prefix=no
    1454   need_version=no
    1455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1456   soname_spec='${libname}${release}${shared_ext}$major'
    1457   shlibpath_var=LD_LIBRARY_PATH
    1458   shlibpath_overrides_runpath=no
    1459   hardcode_into_libs=yes
    1460   dynamic_linker='NetBSD ld.elf_so'
    14612369  ;;
    14622370
     
    15112419  version_type=sunos
    15122420  need_lib_prefix=no
    1513   need_version=yes
     2421  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     2422  case $host_os in
     2423    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
     2424    *)                         need_version=no  ;;
     2425  esac
    15142426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    15152427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    16772589      case $tagname in
    16782590      CXX)
    1679         if test -n "$CXX" && test "X$CXX" != "Xno"; then
     2591        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     2592            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     2593            (test "X$CXX" != "Xg++"))) ; then
    16802594          AC_LIBTOOL_LANG_CXX_CONFIG
    16812595        else
     
    20822996esac
    20832997reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2998case $host_os in
     2999  darwin*)
     3000    if test "$GCC" = yes; then
     3001      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
     3002    else
     3003      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     3004    fi
     3005    ;;
     3006esac
    20843007])# AC_PROG_LD_RELOAD_FLAG
    20853008
     
    21153038  ;;
    21163039
    2117 bsdi4*)
     3040bsdi[[45]]*)
    21183041  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
    21193042  lt_cv_file_magic_cmd='/usr/bin/file -L'
     
    21383061  ;;
    21393062
    2140 freebsd* | kfreebsd*-gnu)
     3063freebsd* | kfreebsd*-gnu | dragonfly*)
    21413064  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21423065    case $host_cpu in
     
    21443067      # Not sure whether the presence of OpenBSD here was a mistake.
    21453068      # Let's accept both of them until this is cleared up.
    2146       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
     3069      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
    21473070      lt_cv_file_magic_cmd=/usr/bin/file
    21483071      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     
    21913114  ;;
    21923115
    2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     3116netbsd*)
    21943117  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21953118    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     
    22103133
    22113134openbsd*)
    2212   lt_cv_file_magic_cmd=/usr/bin/file
    2213   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    22143135  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2215     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
     3136    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
    22163137  else
    2217     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
     3138    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    22183139  fi
    22193140  ;;
     
    24053326AC_DEFUN([_LT_AC_LANG_CXX],
    24063327[AC_REQUIRE([AC_PROG_CXX])
    2407 AC_REQUIRE([AC_PROG_CXXCPP])
     3328AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    24083329_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
    24093330])# _LT_AC_LANG_CXX
    24103331
     3332# _LT_AC_PROG_CXXCPP
     3333# ---------------
     3334AC_DEFUN([_LT_AC_PROG_CXXCPP],
     3335[
     3336AC_REQUIRE([AC_PROG_CXX])
     3337if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     3338    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     3339    (test "X$CXX" != "Xg++"))) ; then
     3340  AC_PROG_CXXCPP
     3341fi
     3342])# _LT_AC_PROG_CXXCPP
    24113343
    24123344# AC_LIBTOOL_F77
     
    24803412
    24813413_LT_AC_SYS_COMPILER
     3414
     3415# save warnings/boilerplate of simple test code
     3416_LT_COMPILER_BOILERPLATE
     3417_LT_LINKER_BOILERPLATE
    24823418
    24833419#
     
    25443480    test "$enable_shared" = yes && enable_static=no
    25453481  fi
    2546   ;;
    2547   darwin* | rhapsody*)
    2548   if test "$GCC" = yes; then
    2549     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2550     case "$host_os" in
    2551     rhapsody* | darwin1.[[012]])
    2552       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2553       ;;
    2554     *) # Darwin 1.3 on
    2555       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2556         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2557       else
    2558         case ${MACOSX_DEPLOYMENT_TARGET} in
    2559           10.[[012]])
    2560             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2561             ;;
    2562           10.*)
    2563             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2564             ;;
    2565         esac
    2566       fi
    2567       ;;
    2568     esac
    2569     output_verbose_link_cmd='echo'
    2570     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    2571     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2572     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2573     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2574     _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2575     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2576     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2577     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2578     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2579     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2580   else
    2581     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2582   fi
    25833482    ;;
    25843483esac
     
    26063505[AC_LANG_PUSH(C++)
    26073506AC_REQUIRE([AC_PROG_CXX])
    2608 AC_REQUIRE([AC_PROG_CXXCPP])
     3507AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    26093508
    26103509_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     
    26493548# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    26503549_LT_AC_SYS_COMPILER
     3550
     3551# save warnings/boilerplate of simple test code
     3552_LT_COMPILER_BOILERPLATE
     3553_LT_LINKER_BOILERPLATE
    26513554
    26523555# Allow CC to be a program name with arguments.
     
    26713574compiler=$CC
    26723575_LT_AC_TAGVAR(compiler, $1)=$CC
    2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     3576_LT_CC_BASENAME([$compiler])
    26743577
    26753578# We don't want -fno-exception wen compiling C++ code, so set the
     
    27783681
    27793682    if test "$GXX" = yes; then
    2780       case $host_os in aix4.[012]|aix4.[012].*)
     3683      case $host_os in aix4.[[012]]|aix4.[[012]].*)
    27813684      # We only want to do this on AIX 4.2 and lower, the check
    27823685      # below for broken collect2 doesn't work under 4.3+
     
    27993702      esac
    28003703      shared_flag='-shared'
     3704      if test "$aix_use_runtimelinking" = yes; then
     3705        shared_flag="$shared_flag "'${wl}-G'
     3706      fi
    28013707    else
    28023708      # not using gcc
     
    28583764    ;;
    28593765
     3766
    28603767  cygwin* | mingw* | pw32*)
    28613768    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     
    28813788    fi
    28823789  ;;
    2883 
    2884   darwin* | rhapsody*)
    2885   if test "$GXX" = yes; then
    2886     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2887     case "$host_os" in
    2888     rhapsody* | darwin1.[[012]])
    2889       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2890       ;;
    2891     *) # Darwin 1.3 on
    2892       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2893         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
     3790      darwin* | rhapsody*)
     3791        case "$host_os" in
     3792        rhapsody* | darwin1.[[012]])
     3793         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     3794         ;;
     3795       *) # Darwin 1.3 on
     3796         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     3797           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     3798         else
     3799           case ${MACOSX_DEPLOYMENT_TARGET} in
     3800             10.[[012]])
     3801               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     3802               ;;
     3803             10.*)
     3804               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     3805               ;;
     3806           esac
     3807         fi
     3808         ;;
     3809        esac
     3810      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3811      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     3812      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
     3813      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     3814      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
     3815      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     3816
     3817    if test "$GXX" = yes ; then
     3818      lt_int_apple_cc_single_mod=no
     3819      output_verbose_link_cmd='echo'
     3820      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
     3821       lt_int_apple_cc_single_mod=yes
     3822      fi
     3823      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     3824       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    28943825      else
    2895         case ${MACOSX_DEPLOYMENT_TARGET} in
    2896           10.[[012]])
    2897             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2898             ;;
    2899           10.*)
    2900             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2901             ;;
    2902         esac
     3826          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     3827        fi
     3828        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     3829        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
     3830          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     3831            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3832          else
     3833            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3834          fi
     3835            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3836      else
     3837      case $cc_basename in
     3838        xlc*)
     3839         output_verbose_link_cmd='echo'
     3840          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     3841          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     3842          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
     3843          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3844          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3845          ;;
     3846       *)
     3847         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3848          ;;
     3849      esac
    29033850      fi
    2904       ;;
    2905     esac
    2906     lt_int_apple_cc_single_mod=no
    2907     output_verbose_link_cmd='echo'
    2908     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    2909       lt_int_apple_cc_single_mod=yes
    2910     fi
    2911     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2912       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    2913     else
    2914       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    2915     fi
    2916     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2917 
    2918     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2919     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2920       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2921     else
    2922       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2923     fi
    2924     _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    2925     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2926     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2927     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2928     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2929     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2930   else
    2931     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2932   fi
    2933     ;;
     3851        ;;
    29343852
    29353853  dgux*)
    29363854    case $cc_basename in
    2937       ec++)
     3855      ec++*)
    29383856        # FIXME: insert proper C++ library support
    29393857        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29403858        ;;
    2941       ghcx)
     3859      ghcx*)
    29423860        # Green Hills C++ Compiler
    29433861        # FIXME: insert proper C++ library support
     
    29503868    esac
    29513869    ;;
    2952   freebsd[12]*)
     3870  freebsd[[12]]*)
    29533871    # C++ shared libraries reported to be fairly broken before switch to ELF
    29543872    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    29573875    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    29583876    ;;
    2959   freebsd* | kfreebsd*-gnu)
     3877  freebsd* | kfreebsd*-gnu | dragonfly*)
    29603878    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    29613879    # conventions
     
    29743892
    29753893    case $cc_basename in
    2976     CC)
     3894    CC*)
    29773895      # FIXME: insert proper C++ library support
    29783896      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29793897      ;;
    2980     aCC)
     3898    aCC*)
    29813899      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    29823900      # Commands to make compiler produce verbose output that lists
     
    29883906      # from the output so that they don't get included in the library
    29893907      # dependencies.
    2990       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     3908      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    29913909      ;;
    29923910    *)
     
    30393957
    30403958    case $cc_basename in
    3041       CC)
     3959      CC*)
    30423960        # FIXME: insert proper C++ library support
    30433961        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    30443962        ;;
    3045       aCC)
     3963      aCC*)
    30463964        case "$host_cpu" in
    30473965        hppa*64*|ia64*)
     
    30834001  irix5* | irix6*)
    30844002    case $cc_basename in
    3085       CC)
     4003      CC*)
    30864004        # SGI C++
    3087         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     4005        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    30884006
    30894007        # Archives containing C++ object files must be created using
     
    30964014        if test "$GXX" = yes; then
    30974015          if test "$with_gnu_ld" = no; then
    3098             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     4016            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
    30994017          else
    31004018            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
     
    31094027  linux*)
    31104028    case $cc_basename in
    3111       KCC)
     4029      KCC*)
    31124030        # Kuck and Associates, Inc. (KAI) C++ Compiler
    31134031
     
    31344052        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    31354053        ;;
    3136       icpc)
     4054      icpc*)
    31374055        # Intel C++
    31384056        with_gnu_ld=yes
     4057        # version 8.0 and above of icpc choke on multiply defined symbols
     4058        # if we add $predep_objects and $postdep_objects, however 7.1 and
     4059        # earlier do not add the objects themselves.
     4060        case `$CC -V 2>&1` in
     4061        *"Version 7."*)
     4062          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4063          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4064          ;;
     4065        *)  # Version 8.0 or newer
     4066          tmp_idyn=
     4067          case $host_cpu in
     4068            ia64*) tmp_idyn=' -i_dynamic';;
     4069          esac
     4070          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4071          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     4072          ;;
     4073        esac
    31394074        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3140         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3141         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    31424075        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    31434076        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    31444077        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    31454078        ;;
    3146       cxx)
     4079      pgCC*)
     4080        # Portland Group C++ compiler
     4081        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     4082        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     4083
     4084        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     4085        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     4086        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     4087        ;;
     4088      cxx*)
    31474089        # Compaq C++
    31484090        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     
    31754117  mvs*)
    31764118    case $cc_basename in
    3177       cxx)
     4119      cxx*)
    31784120        # FIXME: insert proper C++ library support
    31794121        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    31854127    esac
    31864128    ;;
    3187   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     4129  netbsd*)
    31884130    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    31894131      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
     
    31964138    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    31974139    ;;
     4140  openbsd2*)
     4141    # C++ shared libraries are fairly broken
     4142    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     4143    ;;
     4144  openbsd*)
     4145    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     4146    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     4147    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     4148    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     4149    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     4150      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     4151      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     4152      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     4153    fi
     4154    output_verbose_link_cmd='echo'
     4155    ;;
    31984156  osf3*)
    31994157    case $cc_basename in
    3200       KCC)
     4158      KCC*)
    32014159        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32024160
     
    32144172
    32154173        ;;
    3216       RCC)
     4174      RCC*)
    32174175        # Rational C++ 2.4.1
    32184176        # FIXME: insert proper C++ library support
    32194177        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32204178        ;;
    3221       cxx)
     4179      cxx*)
    32224180        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3223         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     4181        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32244182
    32254183        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32394197        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    32404198          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3241           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     4199          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
    32424200
    32434201          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32584216  osf4* | osf5*)
    32594217    case $cc_basename in
    3260       KCC)
     4218      KCC*)
    32614219        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32624220
     
    32734231        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
    32744232        ;;
    3275       RCC)
     4233      RCC*)
    32764234        # Rational C++ 2.4.1
    32774235        # FIXME: insert proper C++ library support
    32784236        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32794237        ;;
    3280       cxx)
     4238      cxx*)
    32814239        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    3282         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     4240        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32834241        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    32844242          echo "-hidden">> $lib.exp~
    3285           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
     4243          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
    32864244          $rm $lib.exp'
    32874245
     
    33024260        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    33034261          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3304          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     4262         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
    33054263
    33064264          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    33264284    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    33274285    case $cc_basename in
    3328       CC)
     4286      CC*)
    33294287        # FIXME: insert proper C++ library support
    33304288        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    33384296  sunos4*)
    33394297    case $cc_basename in
    3340       CC)
     4298      CC*)
    33414299        # Sun C++ 4.x
    33424300        # FIXME: insert proper C++ library support
    33434301        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    33444302        ;;
    3345       lcc)
     4303      lcc*)
    33464304        # Lucid
    33474305        # FIXME: insert proper C++ library support
     
    33564314  solaris*)
    33574315    case $cc_basename in
    3358       CC)
     4316      CC*)
    33594317        # Sun C++ 4.2, 5.x and Centerline C++
    33604318        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     
    33664324        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    33674325        case $host_os in
    3368           solaris2.[0-5] | solaris2.[0-5].*) ;;
     4326          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    33694327          *)
    33704328            # The C++ compiler is used as linker so we must use $wl
    33714329            # flag to pass the commands to the underlying system
    3372             # linker.
     4330            # linker. We must also pass each convience library through
     4331            # to the system linker between allextract/defaultextract.
     4332            # The C++ compiler will combine linker options so we
     4333            # cannot just pass the convience library names through
     4334            # without $wl.
    33734335            # Supported since Solaris 2.6 (maybe 2.5.1?)
    3374             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     4336            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
    33754337            ;;
    33764338        esac
     
    33934355        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
    33944356        ;;
    3395       gcx)
     4357      gcx*)
    33964358        # Green Hills C++ Compiler
    33974359        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     
    34364398  tandem*)
    34374399    case $cc_basename in
    3438       NCC)
     4400      NCC*)
    34394401        # NonStop-UX NCC 3.20
    34404402        # FIXME: insert proper C++ library support
     
    36684630_LT_AC_SYS_COMPILER
    36694631
     4632# save warnings/boilerplate of simple test code
     4633_LT_COMPILER_BOILERPLATE
     4634_LT_LINKER_BOILERPLATE
     4635
    36704636# Allow CC to be a program name with arguments.
    36714637lt_save_CC="$CC"
     
    36734639compiler=$CC
    36744640_LT_AC_TAGVAR(compiler, $1)=$CC
    3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     4641_LT_CC_BASENAME([$compiler])
    36764642
    36774643AC_MSG_CHECKING([if libtool supports shared libraries])
     
    36924658  ;;
    36934659aix4* | aix5*)
    3694   test "$enable_shared" = yes && enable_static=no
     4660  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     4661    test "$enable_shared" = yes && enable_static=no
     4662  fi
    36954663  ;;
    36964664esac
     
    37434711
    37444712# Code to be used in simple link tests
    3745 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
     4713lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
    37464714
    37474715# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    37484716_LT_AC_SYS_COMPILER
     4717
     4718# save warnings/boilerplate of simple test code
     4719_LT_COMPILER_BOILERPLATE
     4720_LT_LINKER_BOILERPLATE
    37494721
    37504722# Allow CC to be a program name with arguments.
     
    37534725compiler=$CC
    37544726_LT_AC_TAGVAR(compiler, $1)=$CC
     4727_LT_CC_BASENAME([$compiler])
    37554728
    37564729# GCJ did not exist at the time GCC didn't implicitly link libc in.
    37574730_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     4731
     4732_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    37584733
    37594734AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
     
    37994774_LT_AC_SYS_COMPILER
    38004775
     4776# save warnings/boilerplate of simple test code
     4777_LT_COMPILER_BOILERPLATE
     4778_LT_LINKER_BOILERPLATE
     4779
    38014780# Allow CC to be a program name with arguments.
    38024781lt_save_CC="$CC"
     
    38044783compiler=$CC
    38054784_LT_AC_TAGVAR(compiler, $1)=$CC
     4785_LT_CC_BASENAME([$compiler])
    38064786_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    38074787
     
    39394919# You should have received a copy of the GNU General Public License
    39404920# along with this program; if not, write to the Free Software
    3941 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     4921# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    39424922#
    39434923# As a special exception to the GNU General Public License, if you
     
    39504930
    39514931# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    3952 Xsed="$SED -e s/^X//"
     4932Xsed="$SED -e 1s/^X//"
    39534933
    39544934# The HP-UX ksh and POSIX shell print the target directory to stdout
    39554935# if CDPATH is set.
    3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     4936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    39574937
    39584938# The names of the tagged configurations supported by this script.
     
    39854965host_alias=$host_alias
    39864966host=$host
     4967host_os=$host_os
     4968
     4969# The build system.
     4970build_alias=$build_alias
     4971build=$build
     4972build_os=$build_os
    39874973
    39884974# An echo program that does not interpret backslashes.
     
    40615047compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
    40625048
    4063 # Must we lock files when doing compilation ?
     5049# Must we lock files when doing compilation?
    40645050need_locks=$lt_need_locks
    40655051
     
    43355321sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
    43365322
    4337 # Transform the above into a raw symbol and a C symbol.
    4338 symxfrm='\1 \2\3 \3'
    4339 
    43405323# Transform an extracted symbol line into a proper C declaration
    43415324lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     
    43595342  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    43605343  ;;
     5344linux*)
     5345  if test "$host_cpu" = ia64; then
     5346    symcode='[[ABCDGIRSTW]]'
     5347    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     5348    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     5349  fi
     5350  ;;
    43615351irix* | nonstopux*)
    43625352  symcode='[[BCDEGRST]]'
     
    43905380for ac_symprfx in "" "_"; do
    43915381
     5382  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     5383  symxfrm="\\1 $ac_symprfx\\2 \\2"
     5384
    43925385  # Write the raw and C identifiers.
    4393   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     5386  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    43945387
    43955388  # Check to see that the pipe works correctly.
     
    45805573      chorus*)
    45815574        case $cc_basename in
    4582         cxch68)
     5575        cxch68*)
    45835576          # Green Hills C++ Compiler
    45845577          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
     
    45865579        esac
    45875580        ;;
     5581       darwin*)
     5582         # PIC is the default on this platform
     5583         # Common symbols not allowed in MH_DYLIB files
     5584         case $cc_basename in
     5585           xlc*)
     5586           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     5587           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5588           ;;
     5589         esac
     5590       ;;
    45885591      dgux*)
    45895592        case $cc_basename in
    4590           ec++)
     5593          ec++*)
    45915594            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    45925595            ;;
    4593           ghcx)
     5596          ghcx*)
    45945597            # Green Hills C++ Compiler
    45955598            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    45995602        esac
    46005603        ;;
    4601       freebsd* | kfreebsd*-gnu)
     5604      freebsd* | kfreebsd*-gnu | dragonfly*)
    46025605        # FreeBSD uses GNU C++
    46035606        ;;
    46045607      hpux9* | hpux10* | hpux11*)
    46055608        case $cc_basename in
    4606           CC)
     5609          CC*)
    46075610            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46085611            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     
    46115614            fi
    46125615            ;;
    4613           aCC)
     5616          aCC*)
    46145617            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46155618            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     
    46295632      irix5* | irix6* | nonstopux*)
    46305633        case $cc_basename in
    4631           CC)
     5634          CC*)
    46325635            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46335636            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     
    46405643      linux*)
    46415644        case $cc_basename in
    4642           KCC)
     5645          KCC*)
    46435646            # KAI C++ Compiler
    46445647            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46455648            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    46465649            ;;
    4647           icpc)
     5650          icpc* | ecpc*)
    46485651            # Intel C++
    46495652            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    46515654            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    46525655            ;;
    4653           cxx)
     5656          pgCC*)
     5657            # Portland Group C++ compiler.
     5658            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5659            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     5660            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
     5661            ;;
     5662          cxx*)
    46545663            # Compaq C++
    46555664            # Make sure the PIC flag is empty.  It appears that all Alpha
     
    46685677      mvs*)
    46695678        case $cc_basename in
    4670           cxx)
     5679          cxx*)
    46715680            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
    46725681            ;;
     
    46755684        esac
    46765685        ;;
    4677       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     5686      netbsd*)
    46785687        ;;
    46795688      osf3* | osf4* | osf5*)
    46805689        case $cc_basename in
    4681           KCC)
     5690          KCC*)
    46825691            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46835692            ;;
    4684           RCC)
     5693          RCC*)
    46855694            # Rational C++ 2.4.1
    46865695            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    46875696            ;;
    4688           cxx)
     5697          cxx*)
    46895698            # Digital/Compaq C++
    46905699            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    47025711      sco*)
    47035712        case $cc_basename in
    4704           CC)
     5713          CC*)
    47055714            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    47065715            ;;
     
    47115720      solaris*)
    47125721        case $cc_basename in
    4713           CC)
     5722          CC*)
    47145723            # Sun C++ 4.2, 5.x and Centerline C++
    47155724            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    47175726            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    47185727            ;;
    4719           gcx)
     5728          gcx*)
    47205729            # Green Hills C++ Compiler
    47215730            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     
    47275736      sunos4*)
    47285737        case $cc_basename in
    4729           CC)
     5738          CC*)
    47305739            # Sun C++ 4.x
    47315740            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    47325741            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    47335742            ;;
    4734           lcc)
     5743          lcc*)
    47355744            # Lucid
    47365745            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    47425751      tandem*)
    47435752        case $cc_basename in
    4744           NCC)
     5753          NCC*)
    47455754            # NonStop-UX NCC 3.20
    47465755            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    48395848      fi
    48405849      ;;
     5850      darwin*)
     5851        # PIC is the default on this platform
     5852        # Common symbols not allowed in MH_DYLIB files
     5853       case $cc_basename in
     5854         xlc*)
     5855         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     5856         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5857         ;;
     5858       esac
     5859       ;;
    48415860
    48425861    mingw* | pw32* | os2*)
     
    48745893
    48755894    linux*)
    4876       case $CC in
     5895      case $cc_basename in
    48775896      icc* | ecc*)
    48785897        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    48795898        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5899        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
     5900        ;;
     5901      pgcc* | pgf77* | pgf90*)
     5902        # Portland Group compilers (*not* the Pentium gcc compiler,
     5903        # which looks to be a dead project)
     5904        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5905        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
    48805906        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    48815907        ;;
     
    49005926
    49015927    solaris*)
    4902       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    49035928      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    49045929      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5930      case $cc_basename in
     5931      f77* | f90* | f95*)
     5932        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
     5933      *)
     5934        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
     5935      esac
    49055936      ;;
    49065937
     
    49225953        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    49235954      fi
     5955      ;;
     5956
     5957    unicos*)
     5958      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5959      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    49245960      ;;
    49255961
     
    49846020  ;;
    49856021  cygwin* | mingw*)
    4986     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
    4987   ;;
    4988   linux*)
    4989     _LT_AC_TAGVAR(link_all_deplibs, $1)=no
     6022    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
    49906023  ;;
    49916024  *)
     
    50306063  # preloaded symbol tables.
    50316064  extract_expsyms_cmds=
    5032 
     6065  # Just being paranoid about ensuring that cc_basename is set.
     6066  _LT_CC_BASENAME([$compiler])
    50336067  case $host_os in
    50346068  cygwin* | mingw* | pw32*)
     
    50496083    # If archive_cmds runs LD, not CC, wlarc should be empty
    50506084    wlarc='${wl}'
    5051 
     6085   
     6086    # Set some defaults for GNU ld with shared library support. These
     6087    # are reset later if shared libraries are not supported. Putting them
     6088    # here allows them to be overridden if necessary.
     6089    runpath_var=LD_RUN_PATH
     6090    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     6091    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6092    # ancient GNU ld didn't support --whole-archive et. al.
     6093    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
     6094        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     6095      else
     6096        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
     6097    fi
     6098    supports_anon_versioning=no
     6099    case `$LD -v 2>/dev/null` in
     6100      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
     6101      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     6102      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     6103      *\ 2.11.*) ;; # other 2.11 versions
     6104      *) supports_anon_versioning=yes ;;
     6105    esac
     6106   
    50526107    # See if GNU ld supports shared libraries.
    50536108    case $host_os in
     
    51006155      _LT_AC_TAGVAR(always_export_symbols, $1)=no
    51016156      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5102       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
     6157      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
    51036158
    51046159      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     
    51146169        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    51156170      else
    5116         ld_shlibs=no
     6171        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    51176172      fi
    51186173      ;;
    51196174
    5120     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     6175    linux*)
     6176      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     6177        tmp_addflag=
     6178        case $cc_basename,$host_cpu in
     6179        pgcc*)                          # Portland Group C compiler
     6180          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     6181          tmp_addflag=' $pic_flag'
     6182          ;;
     6183        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
     6184          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     6185          tmp_addflag=' $pic_flag -Mnomain' ;;
     6186        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     6187          tmp_addflag=' -i_dynamic' ;;
     6188        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     6189          tmp_addflag=' -i_dynamic -nofor_main' ;;
     6190        ifc* | ifort*)                  # Intel Fortran compiler
     6191          tmp_addflag=' -nofor_main' ;;
     6192        esac
     6193        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6194
     6195        if test $supports_anon_versioning = yes; then
     6196          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
     6197  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     6198  $echo "local: *; };" >> $output_objdir/$libname.ver~
     6199          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     6200        fi
     6201      else
     6202        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     6203      fi
     6204      ;;
     6205
     6206    netbsd*)
    51216207      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    51226208        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     
    51566242      ;;
    51576243
    5158   linux*)
    5159     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5160         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5161         _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
    5162       supports_anon_versioning=no
    5163       case `$LD -v 2>/dev/null` in
    5164         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    5165         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    5166         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    5167         *\ 2.11.*) ;; # other 2.11 versions
    5168         *) supports_anon_versioning=yes ;;
    5169       esac
    5170       if test $supports_anon_versioning = yes; then
    5171         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
    5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5173 $echo "local: *; };" >> $output_objdir/$libname.ver~
    5174         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    5175       else
    5176         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
    5177       fi
    5178       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
    5179     else
    5180       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5181     fi
    5182     ;;
    5183 
    51846244    *)
    51856245      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     
    51926252    esac
    51936253
    5194     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
    5195       runpath_var=LD_RUN_PATH
    5196       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    5197       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5198       # ancient GNU ld didn't support --whole-archive et. al.
    5199       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    5200         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    5201       else
    5202         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    5203       fi
     6254    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
     6255      runpath_var=
     6256      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
     6257      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
     6258      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    52046259    fi
    52056260  else
     
    52656320
    52666321      if test "$GCC" = yes; then
    5267         case $host_os in aix4.[012]|aix4.[012].*)
     6322        case $host_os in aix4.[[012]]|aix4.[[012]].*)
    52686323        # We only want to do this on AIX 4.2 and lower, the check
    52696324        # below for broken collect2 doesn't work under 4.3+
     
    52866341        esac
    52876342        shared_flag='-shared'
     6343        if test "$aix_use_runtimelinking" = yes; then
     6344          shared_flag="$shared_flag "'${wl}-G'
     6345        fi
    52886346      else
    52896347        # not using gcc
     
    53446402      ;;
    53456403
    5346     bsdi4*)
     6404    bsdi[[45]]*)
    53476405      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
    53486406      ;;
     
    53656423      # FIXME: Should let the user specify the lib program.
    53666424      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
    5367       fix_srcfile_path='`cygpath -w "$srcfile"`'
     6425      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    53686426      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    53696427      ;;
    53706428
    53716429    darwin* | rhapsody*)
    5372     if test "$GXX" = yes ; then
     6430      case "$host_os" in
     6431        rhapsody* | darwin1.[[012]])
     6432         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     6433         ;;
     6434       *) # Darwin 1.3 on
     6435         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     6436           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     6437         else
     6438           case ${MACOSX_DEPLOYMENT_TARGET} in
     6439             10.[[012]])
     6440               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     6441               ;;
     6442             10.*)
     6443               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     6444               ;;
     6445           esac
     6446         fi
     6447         ;;
     6448      esac
    53736449      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    5374       case "$host_os" in
    5375       rhapsody* | darwin1.[[012]])
    5376         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    5377         ;;
    5378       *) # Darwin 1.3 on
    5379       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    5380         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5381       else
    5382         case ${MACOSX_DEPLOYMENT_TARGET} in
    5383           10.[[012]])
    5384             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5385             ;;
    5386           10.*)
    5387             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    5388             ;;
    5389         esac
    5390       fi
    5391         ;;
    5392       esac
    5393         lt_int_apple_cc_single_mod=no
    5394         output_verbose_link_cmd='echo'
    5395         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    5396           lt_int_apple_cc_single_mod=yes
    5397         fi
    5398         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5399           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5400         else
    5401         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5402       fi
    5403       _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    5404       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    5405         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5406           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    5407         else
    5408           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    5409         fi
    5410           _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    54116450      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    54126451      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    54136452      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    5414       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
     6453      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
    54156454      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     6455    if test "$GCC" = yes ; then
     6456        output_verbose_link_cmd='echo'
     6457        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     6458      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     6459      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
     6460      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6461      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    54166462    else
    5417       _LT_AC_TAGVAR(ld_shlibs, $1)=no
     6463      case $cc_basename in
     6464        xlc*)
     6465         output_verbose_link_cmd='echo'
     6466         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     6467         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     6468          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
     6469         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6470          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6471          ;;
     6472       *)
     6473         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     6474          ;;
     6475      esac
    54186476    fi
    54196477      ;;
     
    54496507
    54506508    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    5451     freebsd* | kfreebsd*-gnu)
     6509    freebsd* | kfreebsd*-gnu | dragonfly*)
    54526510      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    54536511      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     
    55366594      ;;
    55376595
    5538     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     6596    netbsd*)
    55396597      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    55406598        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    55606618      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    55616619        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6620        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    55626621        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    55636622        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     
    56056664        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
    56066665        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    5607         $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'
     6666        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
    56086667
    56096668        # Both c and cxx compiler support -rpath directly
     
    56246683      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    56256684      if test "$GCC" = yes; then
     6685        wlarc='${wl}'
    56266686        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    56276687        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    56286688          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    56296689      else
     6690        wlarc=''
    56306691        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    56316692        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     
    56366697      case $host_os in
    56376698      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    5638       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    5639         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
     6699      *)
     6700        # The compiler driver will combine linker options so we
     6701        # cannot just pass the convience library names through
     6702        # without $wl, iff we do not link with $LD.
     6703        # Luckily, gcc supports the same syntax we need for Sun Studio.
     6704        # Supported since Solaris 2.6 (maybe 2.5.1?)
     6705        case $wlarc in
     6706        '')
     6707          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
     6708        *)
     6709          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
     6710        esac ;;
    56406711      esac
    56416712      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     
    58986969# along with /bin/sed that truncates output.
    58996970for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    5900   test ! -f $lt_ac_sed && break
     6971  test ! -f $lt_ac_sed && continue
    59016972  cat /dev/null > conftest.in
    59026973  lt_ac_count=0
     
    59236994  done
    59246995done
     6996])
    59256997SED=$lt_cv_path_SED
    5926 ])
    59276998AC_MSG_RESULT([$SED])
    59286999])
    5929 
    5930 
    5931 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
    5932 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
    5933 dnl also defines GSTUFF_PKG_ERRORS on error
    5934 AC_DEFUN(PKG_CHECK_MODULES, [
    5935   succeeded=no
    5936 
    5937   if test -z "$PKG_CONFIG"; then
    5938     AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
    5939   fi
    5940 
    5941   if test "$PKG_CONFIG" = "no" ; then
    5942      echo "*** The pkg-config script could not be found. Make sure it is"
    5943      echo "*** in your path, or set the PKG_CONFIG environment variable"
    5944      echo "*** to the full path to pkg-config."
    5945      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
    5946   else
    5947      PKG_CONFIG_MIN_VERSION=0.9.0
    5948      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
    5949         AC_MSG_CHECKING(for $2)
    5950 
    5951         if $PKG_CONFIG --exists "$2" ; then
    5952             AC_MSG_RESULT(yes)
    5953             succeeded=yes
    5954 
    5955             AC_MSG_CHECKING($1_CFLAGS)
    5956             $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
    5957             AC_MSG_RESULT($$1_CFLAGS)
    5958 
    5959             AC_MSG_CHECKING($1_LIBS)
    5960             $1_LIBS=`$PKG_CONFIG --libs "$2"`
    5961             AC_MSG_RESULT($$1_LIBS)
    5962         else
    5963             $1_CFLAGS=""
    5964             $1_LIBS=""
    5965             ## If we have a custom action on failure, don't print errors, but
    5966             ## do set a variable so people can do so.
    5967             $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
    5968             ifelse([$4], ,echo $$1_PKG_ERRORS,)
    5969         fi
    5970 
    5971         AC_SUBST($1_CFLAGS)
    5972         AC_SUBST($1_LIBS)
    5973      else
    5974         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
    5975         echo "*** See http://www.freedesktop.org/software/pkgconfig"
    5976      fi
    5977   fi
    5978 
    5979   if test $succeeded = yes; then
    5980      ifelse([$3], , :, [$3])
    5981   else
    5982      ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
    5983   fi
    5984 ])
    5985 
    5986 
    59877000
    59887001# CFLAGS and library paths for XMMS
     
    60027015
    60037016dnl XMMS_TEST_VERSION(AVAILABLE-VERSION, NEEDED-VERSION [, ACTION-IF-OKAY [, ACTION-IF-NOT-OKAY]])
    6004 AC_DEFUN([XMMS_TEST_VERSION], [
     7017AC_DEFUN(XMMS_TEST_VERSION, [
    60057018
    60067019# Determine which version number is greater. Prints 2 to stdout if     
     
    60477060])
    60487061
    6049 AC_DEFUN([AM_PATH_XMMS],
     7062AC_DEFUN(AM_PATH_XMMS,
    60507063[
    60517064AC_ARG_WITH(xmms-prefix,[  --with-xmms-prefix=PFX  Prefix where XMMS is installed (optional)],
     
    61357148])
    61367149
    6137 #                                                        -*- Autoconf -*-
    6138 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
    6139 # Generated from amversion.in; do not edit by hand.
    6140 
     7150# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
     7151#
     7152# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
     7153#
    61417154# This program is free software; you can redistribute it and/or modify
    61427155# it under the terms of the GNU General Public License as published by
    6143 # the Free Software Foundation; either version 2, or (at your option)
    6144 # any later version.
    6145 
    6146 # This program is distributed in the hope that it will be useful,
    6147 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6149 # GNU General Public License for more details.
    6150 
     7156# the Free Software Foundation; either version 2 of the License, or
     7157# (at your option) any later version.
     7158#
     7159# This program is distributed in the hope that it will be useful, but
     7160# WITHOUT ANY WARRANTY; without even the implied warranty of
     7161# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     7162# General Public License for more details.
     7163#
    61517164# You should have received a copy of the GNU General Public License
    61527165# along with this program; if not, write to the Free Software
    6153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6154 
    6155 # AM_AUTOMAKE_VERSION(VERSION)
    6156 # ----------------------------
    6157 # Automake X.Y traces this macro to ensure aclocal.m4 has been
    6158 # generated from the m4 files accompanying Automake X.Y.
    6159 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
    6160 
    6161 # AM_SET_CURRENT_AUTOMAKE_VERSION
    6162 # -------------------------------
    6163 # Call AM_AUTOMAKE_VERSION so it can be traced.
    6164 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    6165 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    6166          [AM_AUTOMAKE_VERSION([1.9.4])])
    6167 
    6168 # AM_AUX_DIR_EXPAND
    6169 
    6170 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    6171 
    6172 # This program is free software; you can redistribute it and/or modify
    6173 # it under the terms of the GNU General Public License as published by
    6174 # the Free Software Foundation; either version 2, or (at your option)
    6175 # any later version.
    6176 
    6177 # This program is distributed in the hope that it will be useful,
    6178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6180 # GNU General Public License for more details.
    6181 
    6182 # You should have received a copy of the GNU General Public License
    6183 # along with this program; if not, write to the Free Software
    6184 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6185 # 02111-1307, USA.
    6186 
    6187 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    6188 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    6189 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     7166# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    61907167#
    6191 # Of course, Automake must honor this variable whenever it calls a
    6192 # tool from the auxiliary directory.  The problem is that $srcdir (and
    6193 # therefore $ac_aux_dir as well) can be either absolute or relative,
    6194 # depending on how configure is run.  This is pretty annoying, since
    6195 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    6196 # source directory, any form will work fine, but in subdirectories a
    6197 # relative path needs to be adjusted first.
     7168# As a special exception to the GNU General Public License, if you
     7169# distribute this file as part of a program that contains a
     7170# configuration script generated by Autoconf, you may include it under
     7171# the same distribution terms that you use for the rest of that program.
     7172
     7173# PKG_PROG_PKG_CONFIG([MIN-VERSION])
     7174# ----------------------------------
     7175AC_DEFUN([PKG_PROG_PKG_CONFIG],
     7176[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
     7177m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
     7178AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
     7179if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     7180        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
     7181fi
     7182if test -n "$PKG_CONFIG"; then
     7183        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
     7184        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
     7185        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     7186                AC_MSG_RESULT([yes])
     7187        else
     7188                AC_MSG_RESULT([no])
     7189                PKG_CONFIG=""
     7190        fi
     7191               
     7192fi[]dnl
     7193])# PKG_PROG_PKG_CONFIG
     7194
     7195# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
    61987196#
    6199 # $ac_aux_dir/missing
    6200 #    fails when called from a subdirectory if $ac_aux_dir is relative
    6201 # $top_srcdir/$ac_aux_dir/missing
    6202 #    fails if $ac_aux_dir is absolute,
    6203 #    fails when called from a subdirectory in a VPATH build with
    6204 #          a relative $ac_aux_dir
     7197# Check to see whether a particular set of modules exists.  Similar
     7198# to PKG_CHECK_MODULES(), but does not set variables or print errors.
    62057199#
    6206 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    6207 # are both prefixed by $srcdir.  In an in-source build this is usually
    6208 # harmless because $srcdir is `.', but things will broke when you
    6209 # start a VPATH build or use an absolute $srcdir.
    62107200#
    6211 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    6212 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    6213 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    6214 # and then we would define $MISSING as
    6215 #   MISSING="\${SHELL} $am_aux_dir/missing"
    6216 # This will work as long as MISSING is not called from configure, because
    6217 # unfortunately $(top_srcdir) has no meaning in configure.
    6218 # However there are other variables, like CC, which are often used in
    6219 # configure, and could therefore not use this "fixed" $ac_aux_dir.
     7201# Similar to PKG_CHECK_MODULES, make sure that the first instance of
     7202# this or PKG_CHECK_MODULES is called, or make sure to call
     7203# PKG_CHECK_EXISTS manually
     7204# --------------------------------------------------------------
     7205AC_DEFUN([PKG_CHECK_EXISTS],
     7206[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     7207if test -n "$PKG_CONFIG" && \
     7208    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
     7209  m4_ifval([$2], [$2], [:])
     7210m4_ifvaln([$3], [else
     7211  $3])dnl
     7212fi])
     7213
     7214
     7215# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
     7216# ---------------------------------------------
     7217m4_define([_PKG_CONFIG],
     7218[if test -n "$PKG_CONFIG"; then
     7219        PKG_CHECK_EXISTS([$3],
     7220                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
     7221                         [pkg_failed=yes])
     7222else
     7223        pkg_failed=untried
     7224fi[]dnl
     7225])# _PKG_CONFIG
     7226
     7227# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
     7228# [ACTION-IF-NOT-FOUND])
    62207229#
    6221 # Another solution, used here, is to always expand $ac_aux_dir to an
    6222 # absolute PATH.  The drawback is that using absolute paths prevent a
    6223 # configured tree to be moved without reconfiguration.
    6224 
    6225 AC_DEFUN([AM_AUX_DIR_EXPAND],
    6226 [dnl Rely on autoconf to set up CDPATH properly.
    6227 AC_PREREQ([2.50])dnl
    6228 # expand $ac_aux_dir to an absolute path
    6229 am_aux_dir=`cd $ac_aux_dir && pwd`
    6230 ])
    6231 
    6232 # AM_CONDITIONAL                                              -*- Autoconf -*-
    6233 
    6234 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
    6235 
    6236 # This program is free software; you can redistribute it and/or modify
    6237 # it under the terms of the GNU General Public License as published by
    6238 # the Free Software Foundation; either version 2, or (at your option)
    6239 # any later version.
    6240 
    6241 # This program is distributed in the hope that it will be useful,
    6242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6244 # GNU General Public License for more details.
    6245 
    6246 # You should have received a copy of the GNU General Public License
    6247 # along with this program; if not, write to the Free Software
    6248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6249 # 02111-1307, USA.
    6250 
    6251 # serial 6
    6252 
    6253 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    6254 # -------------------------------------
    6255 # Define a conditional.
    6256 AC_DEFUN([AM_CONDITIONAL],
    6257 [AC_PREREQ(2.52)dnl
    6258  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    6259         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    6260 AC_SUBST([$1_TRUE])
    6261 AC_SUBST([$1_FALSE])
    6262 if $2; then
    6263   $1_TRUE=
    6264   $1_FALSE='#'
     7230#
     7231# Note that if there is a possibility the first call to
     7232# PKG_CHECK_MODULES might not happen, you should be sure to include an
     7233# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
     7234#
     7235#
     7236# --------------------------------------------------------------
     7237AC_DEFUN([PKG_CHECK_MODULES],
     7238[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     7239AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
     7240AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
     7241
     7242pkg_failed=no
     7243AC_MSG_CHECKING([for $1])
     7244
     7245_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
     7246_PKG_CONFIG([$1][_LIBS], [libs], [$2])
     7247
     7248if test $pkg_failed = yes; then
     7249        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
     7250        # Put the nasty error message in config.log where it belongs
     7251        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
     7252
     7253        ifelse([$4], , [AC_MSG_ERROR(dnl
     7254[Package requirements ($2) were not met.
     7255Consider adjusting the PKG_CONFIG_PATH environment variable if you
     7256installed software in a non-standard prefix.
     7257
     7258Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
     7259to avoid the need to call pkg-config.  See the pkg-config man page for
     7260more details.])],
     7261                [$4])
     7262elif test $pkg_failed = untried; then
     7263        ifelse([$4], , [AC_MSG_FAILURE(dnl
     7264[The pkg-config script could not be found or is too old.  Make sure it
     7265is in your PATH or set the PKG_CONFIG environment variable to the full
     7266path to pkg-config.
     7267
     7268Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
     7269to avoid the need to call pkg-config.  See the pkg-config man page for
     7270more details.
     7271
     7272To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
     7273                [$4])
    62657274else
    6266   $1_TRUE='#'
    6267   $1_FALSE=
    6268 fi
    6269 AC_CONFIG_COMMANDS_PRE(
    6270 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    6271   AC_MSG_ERROR([[conditional "$1" was never defined.
    6272 Usually this means the macro was only invoked conditionally.]])
    6273 fi])])
    6274 
    6275 # serial 7                                              -*- Autoconf -*-
    6276 
    6277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
    6278 # Free Software Foundation, Inc.
    6279 
    6280 # This program is free software; you can redistribute it and/or modify
    6281 # it under the terms of the GNU General Public License as published by
    6282 # the Free Software Foundation; either version 2, or (at your option)
    6283 # any later version.
    6284 
    6285 # This program is distributed in the hope that it will be useful,
    6286 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6287 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6288 # GNU General Public License for more details.
    6289 
    6290 # You should have received a copy of the GNU General Public License
    6291 # along with this program; if not, write to the Free Software
    6292 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6293 # 02111-1307, USA.
    6294 
    6295 
    6296 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    6297 # written in clear, in which case automake, when reading aclocal.m4,
    6298 # will think it sees a *use*, and therefore will trigger all it's
    6299 # C support machinery.  Also note that it means that autoscan, seeing
    6300 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    6301 
    6302 
    6303 
    6304 # _AM_DEPENDENCIES(NAME)
    6305 # ----------------------
    6306 # See how the compiler implements dependency checking.
    6307 # NAME is "CC", "CXX", "GCJ", or "OBJC".
    6308 # We try a few techniques and use that to set a single cache variable.
    6309 #
    6310 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
    6311 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
    6312 # dependency, and given that the user is not expected to run this macro,
    6313 # just rely on AC_PROG_CC.
    6314 AC_DEFUN([_AM_DEPENDENCIES],
    6315 [AC_REQUIRE([AM_SET_DEPDIR])dnl
    6316 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
    6317 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
    6318 AC_REQUIRE([AM_DEP_TRACK])dnl
    6319 
    6320 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
    6321        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    6322        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
    6323        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    6324                    [depcc="$$1"   am_compiler_list=])
    6325 
    6326 AC_CACHE_CHECK([dependency style of $depcc],
    6327                [am_cv_$1_dependencies_compiler_type],
    6328 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    6329   # We make a subdir and do the tests there.  Otherwise we can end up
    6330   # making bogus files that we don't know about and never remove.  For
    6331   # instance it was reported that on HP-UX the gcc test will end up
    6332   # making a dummy file named `D' -- because `-MD' means `put the output
    6333   # in D'.
    6334   mkdir conftest.dir
    6335   # Copy depcomp to subdir because otherwise we won't find it if we're
    6336   # using a relative directory.
    6337   cp "$am_depcomp" conftest.dir
    6338   cd conftest.dir
    6339   # We will build objects and dependencies in a subdirectory because
    6340   # it helps to detect inapplicable dependency modes.  For instance
    6341   # both Tru64's cc and ICC support -MD to output dependencies as a
    6342   # side effect of compilation, but ICC will put the dependencies in
    6343   # the current directory while Tru64 will put them in the object
    6344   # directory.
    6345   mkdir sub
    6346 
    6347   am_cv_$1_dependencies_compiler_type=none
    6348   if test "$am_compiler_list" = ""; then
    6349      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
    6350   fi
    6351   for depmode in $am_compiler_list; do
    6352     # Setup a source with many dependencies, because some compilers
    6353     # like to wrap large dependency lists on column 80 (with \), and
    6354     # we should not choose a depcomp mode which is confused by this.
    6355     #
    6356     # We need to recreate these files for each test, as the compiler may
    6357     # overwrite some of them when testing with obscure command lines.
    6358     # This happens at least with the AIX C compiler.
    6359     : > sub/conftest.c
    6360     for i in 1 2 3 4 5 6; do
    6361       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    6362       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    6363       # Solaris 8's {/usr,}/bin/sh.
    6364       touch sub/conftst$i.h
    6365     done
    6366     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    6367 
    6368     case $depmode in
    6369     nosideeffect)
    6370       # after this tag, mechanisms are not by side-effect, so they'll
    6371       # only be used when explicitly requested
    6372       if test "x$enable_dependency_tracking" = xyes; then
    6373         continue
    6374       else
    6375         break
    6376       fi
    6377       ;;
    6378     none) break ;;
    6379     esac
    6380     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    6381     # mode.  It turns out that the SunPro C++ compiler does not properly
    6382     # handle `-M -o', and we need to detect this.
    6383     if depmode=$depmode \
    6384        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    6385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    6386        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    6387          >/dev/null 2>conftest.err &&
    6388        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    6389        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    6390        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    6391       # icc doesn't choke on unknown options, it will just issue warnings
    6392       # or remarks (even with -Werror).  So we grep stderr for any message
    6393       # that says an option was ignored or not supported.
    6394       # When given -MP, icc 7.0 and 7.1 complain thusly:
    6395       #   icc: Command line warning: ignoring option '-M'; no argument required
    6396       # The diagnosis changed in icc 8.0:
    6397       #   icc: Command line remark: option '-MP' not supported
    6398       if (grep 'ignoring option' conftest.err ||
    6399           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    6400         am_cv_$1_dependencies_compiler_type=$depmode
    6401         break
    6402       fi
    6403     fi
    6404   done
    6405 
    6406   cd ..
    6407   rm -rf conftest.dir
    6408 else
    6409   am_cv_$1_dependencies_compiler_type=none
    6410 fi
    6411 ])
    6412 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
    6413 AM_CONDITIONAL([am__fastdep$1], [
    6414   test "x$enable_dependency_tracking" != xno \
    6415   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
    6416 ])
    6417 
    6418 
    6419 # AM_SET_DEPDIR
    6420 # -------------
    6421 # Choose a directory name for dependency files.
    6422 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
    6423 AC_DEFUN([AM_SET_DEPDIR],
    6424 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    6425 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
    6426 ])
    6427 
    6428 
    6429 # AM_DEP_TRACK
    6430 # ------------
    6431 AC_DEFUN([AM_DEP_TRACK],
    6432 [AC_ARG_ENABLE(dependency-tracking,
    6433 [  --disable-dependency-tracking  speeds up one-time build
    6434   --enable-dependency-tracking   do not reject slow dependency extractors])
    6435 if test "x$enable_dependency_tracking" != xno; then
    6436   am_depcomp="$ac_aux_dir/depcomp"
    6437   AMDEPBACKSLASH='\'
    6438 fi
    6439 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    6440 AC_SUBST([AMDEPBACKSLASH])
    6441 ])
    6442 
    6443 # Generate code to set up dependency tracking.   -*- Autoconf -*-
    6444 
    6445 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
    6446 #   Free Software Foundation, Inc.
    6447 
    6448 # This program is free software; you can redistribute it and/or modify
    6449 # it under the terms of the GNU General Public License as published by
    6450 # the Free Software Foundation; either version 2, or (at your option)
    6451 # any later version.
    6452 
    6453 # This program is distributed in the hope that it will be useful,
    6454 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6455 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6456 # GNU General Public License for more details.
    6457 
    6458 # You should have received a copy of the GNU General Public License
    6459 # along with this program; if not, write to the Free Software
    6460 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6461 # 02111-1307, USA.
    6462 
    6463 #serial 2
    6464 
    6465 # _AM_OUTPUT_DEPENDENCY_COMMANDS
    6466 # ------------------------------
    6467 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    6468 [for mf in $CONFIG_FILES; do
    6469   # Strip MF so we end up with the name of the file.
    6470   mf=`echo "$mf" | sed -e 's/:.*$//'`
    6471   # Check whether this is an Automake generated Makefile or not.
    6472   # We used to match only the files named `Makefile.in', but
    6473   # some people rename them; so instead we look at the file content.
    6474   # Grep'ing the first line is not enough: some people post-process
    6475   # each Makefile.in and add a new line on top of each file to say so.
    6476   # So let's grep whole file.
    6477   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    6478     dirpart=`AS_DIRNAME("$mf")`
    6479   else
    6480     continue
    6481   fi
    6482   # Extract the definition of DEPDIR, am__include, and am__quote
    6483   # from the Makefile without running `make'.
    6484   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    6485   test -z "$DEPDIR" && continue
    6486   am__include=`sed -n 's/^am__include = //p' < "$mf"`
    6487   test -z "am__include" && continue
    6488   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    6489   # When using ansi2knr, U may be empty or an underscore; expand it
    6490   U=`sed -n 's/^U = //p' < "$mf"`
    6491   # Find all dependency output files, they are included files with
    6492   # $(DEPDIR) in their names.  We invoke sed twice because it is the
    6493   # simplest approach to changing $(DEPDIR) to its actual value in the
    6494   # expansion.
    6495   for file in `sed -n "
    6496     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
    6497        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    6498     # Make sure the directory exists.
    6499     test -f "$dirpart/$file" && continue
    6500     fdir=`AS_DIRNAME(["$file"])`
    6501     AS_MKDIR_P([$dirpart/$fdir])
    6502     # echo "creating $dirpart/$file"
    6503     echo '# dummy' > "$dirpart/$file"
    6504   done
    6505 done
    6506 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
    6507 
    6508 
    6509 # AM_OUTPUT_DEPENDENCY_COMMANDS
    6510 # -----------------------------
    6511 # This macro should only be invoked once -- use via AC_REQUIRE.
    6512 #
    6513 # This code is only required when automatic dependency tracking
    6514 # is enabled.  FIXME.  This creates each `.P' file that we will
    6515 # need in order to bootstrap the dependency handling code.
    6516 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
    6517 [AC_CONFIG_COMMANDS([depfiles],
    6518      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
    6519      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
    6520 ])
    6521 
    6522 # Do all the work for Automake.                            -*- Autoconf -*-
    6523 
    6524 # This macro actually does too much some checks are only needed if
    6525 # your package does certain things.  But this isn't really a big deal.
    6526 
    6527 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    6528 # Free Software Foundation, Inc.
    6529 
    6530 # This program is free software; you can redistribute it and/or modify
    6531 # it under the terms of the GNU General Public License as published by
    6532 # the Free Software Foundation; either version 2, or (at your option)
    6533 # any later version.
    6534 
    6535 # This program is distributed in the hope that it will be useful,
    6536 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6538 # GNU General Public License for more details.
    6539 
    6540 # You should have received a copy of the GNU General Public License
    6541 # along with this program; if not, write to the Free Software
    6542 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6543 # 02111-1307, USA.
    6544 
    6545 # serial 11
    6546 
    6547 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    6548 # AM_INIT_AUTOMAKE([OPTIONS])
    6549 # -----------------------------------------------
    6550 # The call with PACKAGE and VERSION arguments is the old style
    6551 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
    6552 # and VERSION should now be passed to AC_INIT and removed from
    6553 # the call to AM_INIT_AUTOMAKE.
    6554 # We support both call styles for the transition.  After
    6555 # the next Automake release, Autoconf can make the AC_INIT
    6556 # arguments mandatory, and then we can depend on a new Autoconf
    6557 # release and drop the old call support.
    6558 AC_DEFUN([AM_INIT_AUTOMAKE],
    6559 [AC_PREREQ([2.58])dnl
    6560 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    6561 dnl the ones we care about.
    6562 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    6563 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    6564 AC_REQUIRE([AC_PROG_INSTALL])dnl
    6565 # test to see if srcdir already configured
    6566 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    6567    test -f $srcdir/config.status; then
    6568   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    6569 fi
    6570 
    6571 # test whether we have cygpath
    6572 if test -z "$CYGPATH_W"; then
    6573   if (cygpath --version) >/dev/null 2>/dev/null; then
    6574     CYGPATH_W='cygpath -w'
    6575   else
    6576     CYGPATH_W=echo
    6577   fi
    6578 fi
    6579 AC_SUBST([CYGPATH_W])
    6580 
    6581 # Define the identity of the package.
    6582 dnl Distinguish between old-style and new-style calls.
    6583 m4_ifval([$2],
    6584 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
    6585  AC_SUBST([PACKAGE], [$1])dnl
    6586  AC_SUBST([VERSION], [$2])],
    6587 [_AM_SET_OPTIONS([$1])dnl
    6588  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    6589  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    6590 
    6591 _AM_IF_OPTION([no-define],,
    6592 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    6593  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
    6594 
    6595 # Some tools Automake needs.
    6596 AC_REQUIRE([AM_SANITY_CHECK])dnl
    6597 AC_REQUIRE([AC_ARG_PROGRAM])dnl
    6598 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
    6599 AM_MISSING_PROG(AUTOCONF, autoconf)
    6600 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
    6601 AM_MISSING_PROG(AUTOHEADER, autoheader)
    6602 AM_MISSING_PROG(MAKEINFO, makeinfo)
    6603 AM_PROG_INSTALL_SH
    6604 AM_PROG_INSTALL_STRIP
    6605 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
    6606 # We need awk for the "check" target.  The system "awk" is bad on
    6607 # some platforms.
    6608 AC_REQUIRE([AC_PROG_AWK])dnl
    6609 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    6610 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    6611 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
    6612               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
    6613                              [_AM_PROG_TAR([v7])])])
    6614 _AM_IF_OPTION([no-dependencies],,
    6615 [AC_PROVIDE_IFELSE([AC_PROG_CC],
    6616                   [_AM_DEPENDENCIES(CC)],
    6617                   [define([AC_PROG_CC],
    6618                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
    6619 AC_PROVIDE_IFELSE([AC_PROG_CXX],
    6620                   [_AM_DEPENDENCIES(CXX)],
    6621                   [define([AC_PROG_CXX],
    6622                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
    6623 ])
    6624 ])
    6625 
    6626 
    6627 # When config.status generates a header, we must update the stamp-h file.
    6628 # This file resides in the same directory as the config header
    6629 # that is generated.  The stamp files are numbered to have different names.
    6630 
    6631 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
    6632 # loop where config.status creates the headers, so we can generate
    6633 # our stamp files there.
    6634 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    6635 [# Compute $1's index in $config_headers.
    6636 _am_stamp_count=1
    6637 for _am_header in $config_headers :; do
    6638   case $_am_header in
    6639     $1 | $1:* )
    6640       break ;;
    6641     * )
    6642       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
    6643   esac
    6644 done
    6645 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
    6646 
    6647 # AM_PROG_INSTALL_SH
    6648 # ------------------
    6649 # Define $install_sh.
    6650 
    6651 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    6652 
    6653 # This program is free software; you can redistribute it and/or modify
    6654 # it under the terms of the GNU General Public License as published by
    6655 # the Free Software Foundation; either version 2, or (at your option)
    6656 # any later version.
    6657 
    6658 # This program is distributed in the hope that it will be useful,
    6659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6661 # GNU General Public License for more details.
    6662 
    6663 # You should have received a copy of the GNU General Public License
    6664 # along with this program; if not, write to the Free Software
    6665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6666 # 02111-1307, USA.
    6667 
    6668 AC_DEFUN([AM_PROG_INSTALL_SH],
    6669 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6670 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    6671 AC_SUBST(install_sh)])
    6672 
    6673 #                                                          -*- Autoconf -*-
    6674 # Copyright (C) 2003  Free Software Foundation, Inc.
    6675 
    6676 # This program is free software; you can redistribute it and/or modify
    6677 # it under the terms of the GNU General Public License as published by
    6678 # the Free Software Foundation; either version 2, or (at your option)
    6679 # any later version.
    6680 
    6681 # This program is distributed in the hope that it will be useful,
    6682 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6684 # GNU General Public License for more details.
    6685 
    6686 # You should have received a copy of the GNU General Public License
    6687 # along with this program; if not, write to the Free Software
    6688 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6689 # 02111-1307, USA.
    6690 
    6691 # serial 1
    6692 
    6693 # Check whether the underlying file-system supports filenames
    6694 # with a leading dot.  For instance MS-DOS doesn't.
    6695 AC_DEFUN([AM_SET_LEADING_DOT],
    6696 [rm -rf .tst 2>/dev/null
    6697 mkdir .tst 2>/dev/null
    6698 if test -d .tst; then
    6699   am__leading_dot=.
    6700 else
    6701   am__leading_dot=_
    6702 fi
    6703 rmdir .tst 2>/dev/null
    6704 AC_SUBST([am__leading_dot])])
    6705 
    6706 # Check to see how 'make' treats includes.      -*- Autoconf -*-
    6707 
    6708 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    6709 
    6710 # This program is free software; you can redistribute it and/or modify
    6711 # it under the terms of the GNU General Public License as published by
    6712 # the Free Software Foundation; either version 2, or (at your option)
    6713 # any later version.
    6714 
    6715 # This program is distributed in the hope that it will be useful,
    6716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6718 # GNU General Public License for more details.
    6719 
    6720 # You should have received a copy of the GNU General Public License
    6721 # along with this program; if not, write to the Free Software
    6722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6723 # 02111-1307, USA.
    6724 
    6725 # serial 2
    6726 
    6727 # AM_MAKE_INCLUDE()
    6728 # -----------------
    6729 # Check to see how make treats includes.
    6730 AC_DEFUN([AM_MAKE_INCLUDE],
    6731 [am_make=${MAKE-make}
    6732 cat > confinc << 'END'
    6733 am__doit:
    6734         @echo done
    6735 .PHONY: am__doit
    6736 END
    6737 # If we don't find an include directive, just comment out the code.
    6738 AC_MSG_CHECKING([for style of include used by $am_make])
    6739 am__include="#"
    6740 am__quote=
    6741 _am_result=none
    6742 # First try GNU make style include.
    6743 echo "include confinc" > confmf
    6744 # We grep out `Entering directory' and `Leaving directory'
    6745 # messages which can occur if `w' ends up in MAKEFLAGS.
    6746 # In particular we don't look at `^make:' because GNU make might
    6747 # be invoked under some other name (usually "gmake"), in which
    6748 # case it prints its new name instead of `make'.
    6749 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    6750    am__include=include
    6751    am__quote=
    6752    _am_result=GNU
    6753 fi
    6754 # Now try BSD make style include.
    6755 if test "$am__include" = "#"; then
    6756    echo '.include "confinc"' > confmf
    6757    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    6758       am__include=.include
    6759       am__quote="\""
    6760       _am_result=BSD
    6761    fi
    6762 fi
    6763 AC_SUBST([am__include])
    6764 AC_SUBST([am__quote])
    6765 AC_MSG_RESULT([$_am_result])
    6766 rm -f confinc confmf
    6767 ])
    6768 
    6769 #  -*- Autoconf -*-
    6770 
    6771 
    6772 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    6773 
    6774 # This program is free software; you can redistribute it and/or modify
    6775 # it under the terms of the GNU General Public License as published by
    6776 # the Free Software Foundation; either version 2, or (at your option)
    6777 # any later version.
    6778 
    6779 # This program is distributed in the hope that it will be useful,
    6780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6782 # GNU General Public License for more details.
    6783 
    6784 # You should have received a copy of the GNU General Public License
    6785 # along with this program; if not, write to the Free Software
    6786 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6787 # 02111-1307, USA.
    6788 
    6789 # serial 3
    6790 
    6791 # AM_MISSING_PROG(NAME, PROGRAM)
    6792 # ------------------------------
    6793 AC_DEFUN([AM_MISSING_PROG],
    6794 [AC_REQUIRE([AM_MISSING_HAS_RUN])
    6795 $1=${$1-"${am_missing_run}$2"}
    6796 AC_SUBST($1)])
    6797 
    6798 
    6799 # AM_MISSING_HAS_RUN
    6800 # ------------------
    6801 # Define MISSING if not defined so far and test if it supports --run.
    6802 # If it does, set am_missing_run to use it, otherwise, to nothing.
    6803 AC_DEFUN([AM_MISSING_HAS_RUN],
    6804 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6805 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    6806 # Use eval to expand $SHELL
    6807 if eval "$MISSING --run true"; then
    6808   am_missing_run="$MISSING --run "
    6809 else
    6810   am_missing_run=
    6811   AC_MSG_WARN([`missing' script is too old or missing])
    6812 fi
    6813 ])
    6814 
    6815 # AM_PROG_MKDIR_P
    6816 # ---------------
    6817 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
    6818 
    6819 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    6820 
    6821 # This program is free software; you can redistribute it and/or modify
    6822 # it under the terms of the GNU General Public License as published by
    6823 # the Free Software Foundation; either version 2, or (at your option)
    6824 # any later version.
    6825 
    6826 # This program is distributed in the hope that it will be useful,
    6827 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6829 # GNU General Public License for more details.
    6830 
    6831 # You should have received a copy of the GNU General Public License
    6832 # along with this program; if not, write to the Free Software
    6833 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6834 # 02111-1307, USA.
    6835 
    6836 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
    6837 # created by `make install' are always world readable, even if the
    6838 # installer happens to have an overly restrictive umask (e.g. 077).
    6839 # This was a mistake.  There are at least two reasons why we must not
    6840 # use `-m 0755':
    6841 #   - it causes special bits like SGID to be ignored,
    6842 #   - it may be too restrictive (some setups expect 775 directories).
    6843 #
    6844 # Do not use -m 0755 and let people choose whatever they expect by
    6845 # setting umask.
    6846 #
    6847 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
    6848 # Some implementations (such as Solaris 8's) are not thread-safe: if a
    6849 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
    6850 # concurrently, both version can detect that a/ is missing, but only
    6851 # one can create it and the other will error out.  Consequently we
    6852 # restrict ourselves to GNU make (using the --version option ensures
    6853 # this.)
    6854 AC_DEFUN([AM_PROG_MKDIR_P],
    6855 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    6856   # We used to keeping the `.' as first argument, in order to
    6857   # allow $(mkdir_p) to be used without argument.  As in
    6858   #   $(mkdir_p) $(somedir)
    6859   # where $(somedir) is conditionally defined.  However this is wrong
    6860   # for two reasons:
    6861   #  1. if the package is installed by a user who cannot write `.'
    6862   #     make install will fail,
    6863   #  2. the above comment should most certainly read
    6864   #     $(mkdir_p) $(DESTDIR)$(somedir)
    6865   #     so it does not work when $(somedir) is undefined and
    6866   #     $(DESTDIR) is not.
    6867   #  To support the latter case, we have to write
    6868   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    6869   #  so the `.' trick is pointless.
    6870   mkdir_p='mkdir -p --'
    6871 else
    6872   # On NextStep and OpenStep, the `mkdir' command does not
    6873   # recognize any option.  It will interpret all options as
    6874   # directories to create, and then abort because `.' already
    6875   # exists.
    6876   for d in ./-p ./--version;
    6877   do
    6878     test -d $d && rmdir $d
    6879   done
    6880   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    6881   if test -f "$ac_aux_dir/mkinstalldirs"; then
    6882     mkdir_p='$(mkinstalldirs)'
    6883   else
    6884     mkdir_p='$(install_sh) -d'
    6885   fi
    6886 fi
    6887 AC_SUBST([mkdir_p])])
    6888 
    6889 # Helper functions for option handling.                    -*- Autoconf -*-
    6890 
    6891 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
    6892 
    6893 # This program is free software; you can redistribute it and/or modify
    6894 # it under the terms of the GNU General Public License as published by
    6895 # the Free Software Foundation; either version 2, or (at your option)
    6896 # any later version.
    6897 
    6898 # This program is distributed in the hope that it will be useful,
    6899 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6900 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6901 # GNU General Public License for more details.
    6902 
    6903 # You should have received a copy of the GNU General Public License
    6904 # along with this program; if not, write to the Free Software
    6905 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6906 # 02111-1307, USA.
    6907 
    6908 # serial 2
    6909 
    6910 # _AM_MANGLE_OPTION(NAME)
    6911 # -----------------------
    6912 AC_DEFUN([_AM_MANGLE_OPTION],
    6913 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
    6914 
    6915 # _AM_SET_OPTION(NAME)
    6916 # ------------------------------
    6917 # Set option NAME.  Presently that only means defining a flag for this option.
    6918 AC_DEFUN([_AM_SET_OPTION],
    6919 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
    6920 
    6921 # _AM_SET_OPTIONS(OPTIONS)
    6922 # ----------------------------------
    6923 # OPTIONS is a space-separated list of Automake options.
    6924 AC_DEFUN([_AM_SET_OPTIONS],
    6925 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    6926 
    6927 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    6928 # -------------------------------------------
    6929 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
    6930 AC_DEFUN([_AM_IF_OPTION],
    6931 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    6932 
    6933 #
    6934 # Check to make sure that the build environment is sane.
    6935 #
    6936 
    6937 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    6938 
    6939 # This program is free software; you can redistribute it and/or modify
    6940 # it under the terms of the GNU General Public License as published by
    6941 # the Free Software Foundation; either version 2, or (at your option)
    6942 # any later version.
    6943 
    6944 # This program is distributed in the hope that it will be useful,
    6945 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6947 # GNU General Public License for more details.
    6948 
    6949 # You should have received a copy of the GNU General Public License
    6950 # along with this program; if not, write to the Free Software
    6951 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6952 # 02111-1307, USA.
    6953 
    6954 # serial 3
    6955 
    6956 # AM_SANITY_CHECK
    6957 # ---------------
    6958 AC_DEFUN([AM_SANITY_CHECK],
    6959 [AC_MSG_CHECKING([whether build environment is sane])
    6960 # Just in case
    6961 sleep 1
    6962 echo timestamp > conftest.file
    6963 # Do `set' in a subshell so we don't clobber the current shell's
    6964 # arguments.  Must try -L first in case configure is actually a
    6965 # symlink; some systems play weird games with the mod time of symlinks
    6966 # (eg FreeBSD returns the mod time of the symlink's containing
    6967 # directory).
    6968 if (
    6969    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    6970    if test "$[*]" = "X"; then
    6971       # -L didn't work.
    6972       set X `ls -t $srcdir/configure conftest.file`
    6973    fi
    6974    rm -f conftest.file
    6975    if test "$[*]" != "X $srcdir/configure conftest.file" \
    6976       && test "$[*]" != "X conftest.file $srcdir/configure"; then
    6977 
    6978       # If neither matched, then we have a broken ls.  This can happen
    6979       # if, for instance, CONFIG_SHELL is bash and it inherits a
    6980       # broken ls alias from the environment.  This has actually
    6981       # happened.  Such a system could not be considered "sane".
    6982       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
    6983 alias in your environment])
    6984    fi
    6985 
    6986    test "$[2]" = conftest.file
    6987    )
    6988 then
    6989    # Ok.
    6990    :
    6991 else
    6992    AC_MSG_ERROR([newly created file is older than distributed files!
    6993 Check your system clock])
    6994 fi
    6995 AC_MSG_RESULT(yes)])
    6996 
    6997 # AM_PROG_INSTALL_STRIP
    6998 
    6999 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    7000 
    7001 # This program is free software; you can redistribute it and/or modify
    7002 # it under the terms of the GNU General Public License as published by
    7003 # the Free Software Foundation; either version 2, or (at your option)
    7004 # any later version.
    7005 
    7006 # This program is distributed in the hope that it will be useful,
    7007 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    7008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    7009 # GNU General Public License for more details.
    7010 
    7011 # You should have received a copy of the GNU General Public License
    7012 # along with this program; if not, write to the Free Software
    7013 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    7014 # 02111-1307, USA.
    7015 
    7016 # One issue with vendor `install' (even GNU) is that you can't
    7017 # specify the program used to strip binaries.  This is especially
    7018 # annoying in cross-compiling environments, where the build's strip
    7019 # is unlikely to handle the host's binaries.
    7020 # Fortunately install-sh will honor a STRIPPROG variable, so we
    7021 # always use install-sh in `make install-strip', and initialize
    7022 # STRIPPROG with the value of the STRIP variable (set by the user).
    7023 AC_DEFUN([AM_PROG_INSTALL_STRIP],
    7024 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    7025 # Installed binaries are usually stripped using `strip' when the user
    7026 # run `make install-strip'.  However `strip' might not be the right
    7027 # tool to use in cross-compilation environments, therefore Automake
    7028 # will honor the `STRIP' environment variable to overrule this program.
    7029 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
    7030 if test "$cross_compiling" != no; then
    7031   AC_CHECK_TOOL([STRIP], [strip], :)
    7032 fi
    7033 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    7034 AC_SUBST([INSTALL_STRIP_PROGRAM])])
    7035 
    7036 # Check how to create a tarball.                            -*- Autoconf -*-
    7037 
    7038 # Copyright (C) 2004  Free Software Foundation, Inc.
    7039 
    7040 # This program is free software; you can redistribute it and/or modify
    7041 # it under the terms of the GNU General Public License as published by
    7042 # the Free Software Foundation; either version 2, or (at your option)
    7043 # any later version.
    7044 
    7045 # This program is distributed in the hope that it will be useful,
    7046 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    7047 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    7048 # GNU General Public License for more details.
    7049 
    7050 # You should have received a copy of the GNU General Public License
    7051 # along with this program; if not, write to the Free Software
    7052 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    7053 # 02111-1307, USA.
    7054 
    7055 # serial 1
    7056 
    7057 
    7058 # _AM_PROG_TAR(FORMAT)
    7059 # --------------------
    7060 # Check how to create a tarball in format FORMAT.
    7061 # FORMAT should be one of `v7', `ustar', or `pax'.
    7062 #
    7063 # Substitute a variable $(am__tar) that is a command
    7064 # writing to stdout a FORMAT-tarball containing the directory
    7065 # $tardir.
    7066 #     tardir=directory && $(am__tar) > result.tar
    7067 #
    7068 # Substitute a variable $(am__untar) that extract such
    7069 # a tarball read from stdin.
    7070 #     $(am__untar) < result.tar
    7071 AC_DEFUN([_AM_PROG_TAR],
    7072 [# Always define AMTAR for backward compatibility.
    7073 AM_MISSING_PROG([AMTAR], [tar])
    7074 m4_if([$1], [v7],
    7075      [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
    7076      [m4_case([$1], [ustar],, [pax],,
    7077               [m4_fatal([Unknown tar format])])
    7078 AC_MSG_CHECKING([how to create a $1 tar archive])
    7079 # Loop over all known methods to create a tar archive until one works.
    7080 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
    7081 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
    7082 # Do not fold the above two line into one, because Tru64 sh and
    7083 # Solaris sh will not grok spaces in the rhs of `-'.
    7084 for _am_tool in $_am_tools
    7085 do
    7086   case $_am_tool in
    7087   gnutar)
    7088     for _am_tar in tar gnutar gtar;
    7089     do
    7090       AM_RUN_LOG([$_am_tar --version]) && break
    7091     done
    7092     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
    7093     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
    7094     am__untar="$_am_tar -xf -"
    7095     ;;
    7096   plaintar)
    7097     # Must skip GNU tar: if it does not support --format= it doesn't create
    7098     # ustar tarball either.
    7099     (tar --version) >/dev/null 2>&1 && continue
    7100     am__tar='tar chf - "$$tardir"'
    7101     am__tar_='tar chf - "$tardir"'
    7102     am__untar='tar xf -'
    7103     ;;
    7104   pax)
    7105     am__tar='pax -L -x $1 -w "$$tardir"'
    7106     am__tar_='pax -L -x $1 -w "$tardir"'
    7107     am__untar='pax -r'
    7108     ;;
    7109   cpio)
    7110     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
    7111     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
    7112     am__untar='cpio -i -H $1 -d'
    7113     ;;
    7114   none)
    7115     am__tar=false
    7116     am__tar_=false
    7117     am__untar=false
    7118     ;;
    7119   esac
    7120 
    7121   # If the value was cached, stop now.  We just wanted to have am__tar
    7122   # and am__untar set.
    7123   test -n "${am_cv_prog_tar_$1}" && break
    7124 
    7125   # tar/untar a dummy directory, and stop if the command works
    7126   rm -rf conftest.dir
    7127   mkdir conftest.dir
    7128   echo GrepMe > conftest.dir/file
    7129   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
    7130   rm -rf conftest.dir
    7131   if test -s conftest.tar; then
    7132     AM_RUN_LOG([$am__untar <conftest.tar])
    7133     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
    7134   fi
    7135 done
    7136 rm -rf conftest.dir
    7137 
    7138 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
    7139 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
    7140 AC_SUBST([am__tar])
    7141 AC_SUBST([am__untar])
    7142 ]) # _AM_PROG_TAR
    7143 
     7275        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
     7276        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
     7277        AC_MSG_RESULT([yes])
     7278        ifelse([$3], , :, [$3])
     7279fi[]dnl
     7280])# PKG_CHECK_MODULES
     7281
Note: See TracChangeset for help on using the changeset viewer.