1592
1276
AC_SUBST(WARN_CXXFLAGS)
1595
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
1596
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
1597
AC_DEFUN([GNOME_DOC_DEFINES],
1599
AC_ARG_WITH([help-dir],
1600
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
1601
[with_help_dir='${datadir}/gnome/help'])
1602
HELP_DIR="$with_help_dir"
1605
AC_ARG_WITH([omf-dir],
1606
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
1607
[with_omf_dir='${datadir}/omf'])
1608
OMF_DIR="$with_omf_dir"
1611
AC_ARG_WITH([help-formats],
1612
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
1613
[with_help_formats=''])
1614
DOC_USER_FORMATS="$with_help_formats"
1615
AC_SUBST(DOC_USER_FORMATS)
1617
AC_ARG_ENABLE([scrollkeeper],
1618
[AC_HELP_STRING([--disable-scrollkeeper],
1619
[do not make updates to the scrollkeeper database])],,
1620
enable_scrollkeeper=yes)
1621
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
1623
dnl disable scrollkeeper automatically for distcheck
1624
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
1625
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
1627
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
1630
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
1632
AC_DEFUN([GNOME_DOC_INIT],
1633
[AC_REQUIRE([AC_PROG_LN_S])dnl
1635
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
1637
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
1638
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
1639
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
1641
if test "$gdu_cv_have_gdu" = "yes"; then
1642
AC_MSG_RESULT([yes])
1643
ifelse([$2],,[:],[$2])
1646
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
1653
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1654
# serial 40 IT_PROG_INTLTOOL
1655
AC_DEFUN([IT_PROG_INTLTOOL], [
1656
AC_PREREQ([2.50])dnl
1657
AC_REQUIRE([AM_NLS])dnl
1659
case "$am__api_version" in
1661
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1667
if test -n "$1"; then
1668
AC_MSG_CHECKING([for intltool >= $1])
1670
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1671
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1672
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1674
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1675
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1676
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
1679
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1680
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1681
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1682
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1683
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1686
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1687
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1688
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1689
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1690
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1691
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1692
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1693
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1694
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1695
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1696
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1697
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
1698
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1699
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1700
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1701
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1702
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1703
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1704
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1706
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1707
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1708
_IT_SUBST(INTLTOOL_KEYS_RULE)
1709
_IT_SUBST(INTLTOOL_PROP_RULE)
1710
_IT_SUBST(INTLTOOL_OAF_RULE)
1711
_IT_SUBST(INTLTOOL_PONG_RULE)
1712
_IT_SUBST(INTLTOOL_SERVER_RULE)
1713
_IT_SUBST(INTLTOOL_SHEET_RULE)
1714
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1715
_IT_SUBST(INTLTOOL_UI_RULE)
1716
_IT_SUBST(INTLTOOL_XAM_RULE)
1717
_IT_SUBST(INTLTOOL_KBD_RULE)
1718
_IT_SUBST(INTLTOOL_XML_RULE)
1719
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1720
_IT_SUBST(INTLTOOL_CAVES_RULE)
1721
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1722
_IT_SUBST(INTLTOOL_THEME_RULE)
1723
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1724
_IT_SUBST(INTLTOOL_POLICY_RULE)
1726
# Check the gettext tools to make sure they are GNU
1727
AC_PATH_PROG(XGETTEXT, xgettext)
1728
AC_PATH_PROG(MSGMERGE, msgmerge)
1729
AC_PATH_PROG(MSGFMT, msgfmt)
1730
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1731
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1732
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1734
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1735
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1736
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1737
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1738
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1741
AC_PATH_PROG(INTLTOOL_PERL, perl)
1742
if test -z "$INTLTOOL_PERL"; then
1743
AC_MSG_ERROR([perl not found])
1745
AC_MSG_CHECKING([for perl >= 5.8.1])
1746
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1747
if test $? -ne 0; then
1748
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1750
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1751
AC_MSG_RESULT([$IT_PERL_VERSION])
1753
if test "x$2" != "xno-xml"; then
1754
AC_MSG_CHECKING([for XML::Parser])
1755
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1758
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1762
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1763
AC_SUBST(ALL_LINGUAS)
1765
# Set DATADIRNAME correctly if it is not set yet
1766
# (copied from glib-gettext.m4)
1767
if test -z "$DATADIRNAME"; then
1769
[AC_LANG_PROGRAM([[]],
1770
[[extern int _nl_msg_cat_cntr;
1771
return _nl_msg_cat_cntr]])],
1772
[DATADIRNAME=share],
1775
dnl On Solaris, if bind_textdomain_codeset is in libc,
1776
dnl GNU format message catalog is always supported,
1777
dnl since both are added to the libc all together.
1778
dnl Hence, we'd like to go with DATADIRNAME=share
1780
AC_CHECK_FUNC(bind_textdomain_codeset,
1781
[DATADIRNAME=share], [DATADIRNAME=lib])
1788
AC_SUBST(DATADIRNAME)
1795
# IT_PO_SUBDIR(DIRNAME)
1796
# ---------------------
1797
# All po subdirs have to be declared with this macro; the subdir "po" is
1798
# declared by IT_PROG_INTLTOOL.
1800
AC_DEFUN([IT_PO_SUBDIR],
1801
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1280
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
1281
dnl the schema should be compiled
1803
dnl The following CONFIG_COMMANDS should be exetuted at the very end
1804
dnl of config.status.
1805
AC_CONFIG_COMMANDS_PRE([
1806
AC_CONFIG_COMMANDS([$1/stamp-it], [
1807
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1808
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1810
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1815
'"s|^| $ac_top_srcdir/|" \
1816
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1818
[sed '/^POTFILES =/,/[^\\]$/ {
1822
' "$1/Makefile.in" >"$1/Makefile"]
1823
rm -f "$1/Makefile.tmp"
1824
mv "$1/stamp-it.tmp" "$1/stamp-it"
1284
AC_DEFUN([GLIB_GSETTINGS],
1286
m4_pattern_allow([AM_V_GEN])
1287
AC_ARG_ENABLE(schemas-compile,
1288
AC_HELP_STRING([--disable-schemas-compile],
1289
[Disable regeneration of gschemas.compiled on install]),
1290
[case ${enableval} in
1291
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
1292
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
1293
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
1295
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
1296
PKG_PROG_PKG_CONFIG([0.16])
1297
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
1298
if test x$cross_compiling != xyes; then
1299
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
1301
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
1303
AC_SUBST(GLIB_COMPILE_SCHEMAS)
1304
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
1305
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
1307
ifelse([$1],,[:],[$1])
1311
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
1313
mostlyclean-am: clean-gsettings-schemas
1315
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
1317
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
1318
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
1320
all-am: $(gsettings_SCHEMAS:.xml=.valid)
1321
uninstall-am: uninstall-gsettings-schemas
1322
install-data-am: install-gsettings-schemas
1324
.SECONDARY: $(gsettings_SCHEMAS)
1326
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
1328
if test -n "$^"; then \
1329
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
1330
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
1331
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
1334
uninstall-gsettings-schemas:
1335
@$(NORMAL_UNINSTALL)
1336
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
1337
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
1338
test -n "$$files" || exit 0; \
1339
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
1340
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
1341
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
1343
clean-gsettings-schemas:
1344
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
1346
ifdef gsettings_ENUM_NAMESPACE
1347
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
1348
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
1351
_GSETTINGS_SUBST(GSETTINGS_RULES)
1829
# _IT_SUBST(VARIABLE)
1830
# -------------------
1831
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1833
AC_DEFUN([_IT_SUBST],
1354
dnl _GSETTINGS_SUBST(VARIABLE)
1355
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1356
AC_DEFUN([_GSETTINGS_SUBST],
1836
1359
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1841
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1842
# A hint is needed for aclocal from Automake <= 1.9.4:
1843
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1846
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1848
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1849
# 2006, 2007, 2008 Free Software Foundation, Inc.
1850
# Written by Gordon Matzigkeit, 1996
1852
# This file is free software; the Free Software Foundation gives
1853
# unlimited permission to copy and/or distribute it, with or without
1854
# modifications, as long as this notice is preserved.
1856
m4_define([_LT_COPYING], [dnl
1857
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1858
# 2006, 2007, 2008 Free Software Foundation, Inc.
1859
# Written by Gordon Matzigkeit, 1996
1861
# This file is part of GNU Libtool.
1863
# GNU Libtool is free software; you can redistribute it and/or
1864
# modify it under the terms of the GNU General Public License as
1865
# published by the Free Software Foundation; either version 2 of
1866
# the License, or (at your option) any later version.
1868
# As a special exception to the GNU General Public License,
1869
# if you distribute this file as part of a program or library that
1870
# is built using GNU Libtool, you may include this file under the
1871
# same distribution terms that you use for the rest of that program.
1873
# GNU Libtool is distributed in the hope that it will be useful,
1874
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1875
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1876
# GNU General Public License for more details.
1878
# You should have received a copy of the GNU General Public License
1879
# along with GNU Libtool; see the file COPYING. If not, a copy
1880
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1881
# obtained by writing to the Free Software Foundation, Inc.,
1882
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1888
# LT_PREREQ(VERSION)
1889
# ------------------
1890
# Complain and exit if this libtool version is less that VERSION.
1891
m4_defun([LT_PREREQ],
1892
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1894
[m4_fatal([Libtool version $1 or higher is required],
1899
# _LT_CHECK_BUILDDIR
1900
# ------------------
1901
# Complain if the absolute build directory name contains unusual characters
1902
m4_defun([_LT_CHECK_BUILDDIR],
1905
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1910
# LT_INIT([OPTIONS])
1911
# ------------------
1913
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1914
AC_BEFORE([$0], [LT_LANG])dnl
1915
AC_BEFORE([$0], [LT_OUTPUT])dnl
1916
AC_BEFORE([$0], [LTDL_INIT])dnl
1917
m4_require([_LT_CHECK_BUILDDIR])dnl
1919
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1920
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1921
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1922
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1923
dnl unless we require an AC_DEFUNed macro:
1924
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1925
AC_REQUIRE([LTSUGAR_VERSION])dnl
1926
AC_REQUIRE([LTVERSION_VERSION])dnl
1927
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1928
m4_require([_LT_PROG_LTMAIN])dnl
1931
_LT_SET_OPTIONS([$0], [$1])
1933
# This can be used to rebuild libtool when needed
1934
LIBTOOL_DEPS="$ltmain"
1936
# Always use our own libtool.
1937
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1938
AC_SUBST(LIBTOOL)dnl
1943
m4_define([LT_INIT])
1947
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1948
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1949
dnl aclocal-1.4 backwards compatibility:
1950
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1951
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1954
# _LT_CC_BASENAME(CC)
1955
# -------------------
1956
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1957
m4_defun([_LT_CC_BASENAME],
1958
[for cc_temp in $1""; do
1960
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1961
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1966
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1970
# _LT_FILEUTILS_DEFAULTS
1971
# ----------------------
1972
# It is okay to use these file commands and assume they have been set
1973
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1974
m4_defun([_LT_FILEUTILS_DEFAULTS],
1978
])# _LT_FILEUTILS_DEFAULTS
1983
m4_defun([_LT_SETUP],
1984
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1985
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1986
_LT_DECL([], [host_alias], [0], [The host system])dnl
1987
_LT_DECL([], [host], [0])dnl
1988
_LT_DECL([], [host_os], [0])dnl
1990
_LT_DECL([], [build_alias], [0], [The build system])dnl
1991
_LT_DECL([], [build], [0])dnl
1992
_LT_DECL([], [build_os], [0])dnl
1994
AC_REQUIRE([AC_PROG_CC])dnl
1995
AC_REQUIRE([LT_PATH_LD])dnl
1996
AC_REQUIRE([LT_PATH_NM])dnl
1998
AC_REQUIRE([AC_PROG_LN_S])dnl
1999
test -z "$LN_S" && LN_S="ln -s"
2000
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
2002
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
2003
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
2004
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
2006
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2007
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2008
m4_require([_LT_CMD_RELOAD])dnl
2009
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
2010
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
2011
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
2013
_LT_CONFIG_LIBTOOL_INIT([
2014
# See if we are running on zsh, and set the options which allow our
2015
# commands through without removal of \ escapes INIT.
2016
if test -n "\${ZSH_VERSION+set}" ; then
2017
setopt NO_GLOB_SUBST
2020
if test -n "${ZSH_VERSION+set}" ; then
2021
setopt NO_GLOB_SUBST
2026
m4_require([_LT_TAG_COMPILER])dnl
2027
_LT_PROG_ECHO_BACKSLASH
2031
# AIX sometimes has problems with the GCC collect2 program. For some
2032
# reason, if we set the COLLECT_NAMES environment variable, the problems
2033
# vanish in a puff of smoke.
2034
if test "X${COLLECT_NAMES+set}" != Xset; then
2036
export COLLECT_NAMES
2041
# Sed substitution that helps us do robust quoting. It backslashifies
2042
# metacharacters that are still active within double-quoted strings.
2043
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2045
# Same as above, but do not quote variable references.
2046
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2048
# Sed substitution to delay expansion of an escaped shell variable in a
2049
# double_quote_subst'ed string.
2050
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2052
# Sed substitution to delay expansion of an escaped single quote.
2053
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2055
# Sed substitution to avoid accidental globbing in evaled expressions
2056
no_glob_subst='s/\*/\\\*/g'
2060
can_build_shared=yes
2062
# All known linkers require a `.a' archive for static linking (except MSVC,
2063
# which needs '.lib').
2066
with_gnu_ld="$lt_cv_prog_gnu_ld"
2069
old_CFLAGS="$CFLAGS"
2071
# Set sane defaults for various variables
2072
test -z "$CC" && CC=cc
2073
test -z "$LTCC" && LTCC=$CC
2074
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2075
test -z "$LD" && LD=ld
2076
test -z "$ac_objext" && ac_objext=o
2078
_LT_CC_BASENAME([$compiler])
2080
# Only perform the check for file, if the check method requires it
2081
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2082
case $deplibs_check_method in
2084
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2090
# Use C for the default configuration in the libtool script
2091
LT_SUPPORTED_TAG([CC])
2093
_LT_LANG_DEFAULT_CONFIG
2100
# Note that this code is called both from `configure', and `config.status'
2101
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2102
# `config.status' has no value for ac_aux_dir unless we are using Automake,
2103
# so we pass a copy along to make sure it has a sensible value anyway.
2104
m4_defun([_LT_PROG_LTMAIN],
2105
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2106
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2107
ltmain="$ac_aux_dir/ltmain.sh"
2112
# So that we can recreate a full libtool script including additional
2113
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2114
# in macros and then make a single call at the end using the `libtool'
2118
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2119
# ----------------------------------------
2120
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2121
m4_define([_LT_CONFIG_LIBTOOL_INIT],
2123
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2128
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2131
# _LT_CONFIG_LIBTOOL([COMMANDS])
2132
# ------------------------------
2133
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2134
m4_define([_LT_CONFIG_LIBTOOL],
2136
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2141
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2144
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2145
# -----------------------------------------------------
2146
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2147
[_LT_CONFIG_LIBTOOL([$1])
2148
_LT_CONFIG_LIBTOOL_INIT([$2])
2152
# _LT_FORMAT_COMMENT([COMMENT])
2153
# -----------------------------
2154
# Add leading comment marks to the start of each line, and a trailing
2155
# full-stop to the whole comment if one is not present already.
2156
m4_define([_LT_FORMAT_COMMENT],
2158
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2159
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2166
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2167
# -------------------------------------------------------------------
2168
# CONFIGNAME is the name given to the value in the libtool script.
2169
# VARNAME is the (base) name used in the configure script.
2170
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2171
# VARNAME. Any other value will be used directly.
2172
m4_define([_LT_DECL],
2173
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2174
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2175
[m4_ifval([$1], [$1], [$2])])
2176
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2178
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2179
lt_dict_add_subkey([lt_decl_dict], [$2],
2180
[tagged?], [m4_ifval([$5], [yes], [no])])])
2184
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2185
# --------------------------------------------------------
2186
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2189
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2190
# ------------------------------------------------
2191
m4_define([lt_decl_tag_varnames],
2192
[_lt_decl_filter([tagged?], [yes], $@)])
2195
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2196
# ---------------------------------------------------------
2197
m4_define([_lt_decl_filter],
2199
[0], [m4_fatal([$0: too few arguments: $#])],
2200
[1], [m4_fatal([$0: too few arguments: $#: $1])],
2201
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2202
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2203
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
2207
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2208
# --------------------------------------------------
2209
m4_define([lt_decl_quote_varnames],
2210
[_lt_decl_filter([value], [1], $@)])
2213
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2214
# ---------------------------------------------------
2215
m4_define([lt_decl_dquote_varnames],
2216
[_lt_decl_filter([value], [2], $@)])
2219
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2220
# ---------------------------------------------------
2221
m4_define([lt_decl_varnames_tagged],
2222
[m4_assert([$# <= 2])dnl
2223
_$0(m4_quote(m4_default([$1], [[, ]])),
2224
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
2225
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
2226
m4_define([_lt_decl_varnames_tagged],
2227
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
2230
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2231
# ------------------------------------------------
2232
m4_define([lt_decl_all_varnames],
2233
[_$0(m4_quote(m4_default([$1], [[, ]])),
2235
m4_quote(lt_decl_varnames),
2236
m4_quote(m4_shift($@))))[]dnl
2238
m4_define([_lt_decl_all_varnames],
2239
[lt_join($@, lt_decl_varnames_tagged([$1],
2240
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
2244
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2245
# ------------------------------------
2246
# Quote a variable value, and forward it to `config.status' so that its
2247
# declaration there will have the same value as in `configure'. VARNAME
2248
# must have a single quote delimited value for this to work.
2249
m4_define([_LT_CONFIG_STATUS_DECLARE],
2250
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
2253
# _LT_CONFIG_STATUS_DECLARATIONS
2254
# ------------------------------
2255
# We delimit libtool config variables with single quotes, so when
2256
# we write them to config.status, we have to be sure to quote all
2257
# embedded single quotes properly. In configure, this macro expands
2258
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2260
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
2261
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2262
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2263
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2268
# Output comment and list of tags supported by the script
2269
m4_defun([_LT_LIBTOOL_TAGS],
2270
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2271
available_tags="_LT_TAGS"dnl
2275
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2276
# -----------------------------------
2277
# Extract the dictionary values for VARNAME (optionally with TAG) and
2278
# expand to a commented shell variable setting:
2280
# # Some comment about what VAR is for.
2281
# visible_name=$lt_internal_name
2282
m4_define([_LT_LIBTOOL_DECLARE],
2283
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2284
[description])))[]dnl
2285
m4_pushdef([_libtool_name],
2286
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2287
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2288
[0], [_libtool_name=[$]$1],
2289
[1], [_libtool_name=$lt_[]$1],
2290
[2], [_libtool_name=$lt_[]$1],
2291
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2292
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2296
# _LT_LIBTOOL_CONFIG_VARS
2297
# -----------------------
2298
# Produce commented declarations of non-tagged libtool config variables
2299
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2300
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2301
# section) are produced by _LT_LIBTOOL_TAG_VARS.
2302
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2303
[m4_foreach([_lt_var],
2304
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2305
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2308
# _LT_LIBTOOL_TAG_VARS(TAG)
2309
# -------------------------
2310
m4_define([_LT_LIBTOOL_TAG_VARS],
2311
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2312
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2315
# _LT_TAGVAR(VARNAME, [TAGNAME])
2316
# ------------------------------
2317
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2320
# _LT_CONFIG_COMMANDS
2321
# -------------------
2322
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2323
# variables for single and double quote escaping we saved from calls
2324
# to _LT_DECL, we can put quote escaped variables declarations
2325
# into `config.status', and then the shell code to quote escape them in
2326
# for loops in `config.status'. Finally, any additional code accumulated
2327
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2328
m4_defun([_LT_CONFIG_COMMANDS],
2329
[AC_PROVIDE_IFELSE([LT_OUTPUT],
2330
dnl If the libtool generation code has been placed in $CONFIG_LT,
2331
dnl instead of duplicating it all over again into config.status,
2332
dnl then we will have config.status run $CONFIG_LT later, so it
2333
dnl needs to know what name is stored there:
2334
[AC_CONFIG_COMMANDS([libtool],
2335
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2336
dnl If the libtool generation code is destined for config.status,
2337
dnl expand the accumulated commands and init code now:
2338
[AC_CONFIG_COMMANDS([libtool],
2339
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2340
])#_LT_CONFIG_COMMANDS
2344
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2347
# The HP-UX ksh and POSIX shell print the target directory to stdout
2349
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2351
sed_quote_subst='$sed_quote_subst'
2352
double_quote_subst='$double_quote_subst'
2353
delay_variable_subst='$delay_variable_subst'
2354
_LT_CONFIG_STATUS_DECLARATIONS
2356
LTCFLAGS='$LTCFLAGS'
2357
compiler='$compiler_DEFAULT'
2359
# Quote evaled strings.
2360
for var in lt_decl_all_varnames([[ \
2361
]], lt_decl_quote_varnames); do
2362
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2363
*[[\\\\\\\`\\"\\\$]]*)
2364
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2367
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2372
# Double-quote double-evaled strings.
2373
for var in lt_decl_all_varnames([[ \
2374
]], lt_decl_dquote_varnames); do
2375
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
2376
*[[\\\\\\\`\\"\\\$]]*)
2377
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2380
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2385
# Fix-up fallback echo if it was mangled by the above quoting rules.
2387
*'\\\[$]0 --fallback-echo"')dnl "
2388
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2392
_LT_OUTPUT_LIBTOOL_INIT
2398
# This macro allows early generation of the libtool script (before
2399
# AC_OUTPUT is called), incase it is used in configure for compilation
2401
AC_DEFUN([LT_OUTPUT],
2402
[: ${CONFIG_LT=./config.lt}
2403
AC_MSG_NOTICE([creating $CONFIG_LT])
2404
cat >"$CONFIG_LT" <<_LTEOF
2406
# Generated by $as_me.
2407
# Run this file to recreate a libtool stub with the current configuration.
2410
SHELL=\${CONFIG_SHELL-$SHELL}
2413
cat >>"$CONFIG_LT" <<\_LTEOF
2417
exec AS_MESSAGE_FD>&1
2418
exec AS_MESSAGE_LOG_FD>>config.log
2421
AS_BOX([Running $as_me.])
2422
} >&AS_MESSAGE_LOG_FD
2425
\`$as_me' creates a local libtool stub from the current configuration,
2426
for use in further configure time tests before the real libtool is
2429
Usage: $[0] [[OPTIONS]]
2431
-h, --help print this help, then exit
2432
-V, --version print version number, then exit
2433
-q, --quiet do not print progress messages
2434
-d, --debug don't remove temporary files
2436
Report bugs to <bug-libtool@gnu.org>."
2439
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2440
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2441
configured by $[0], generated by m4_PACKAGE_STRING.
2443
Copyright (C) 2008 Free Software Foundation, Inc.
2444
This config.lt script is free software; the Free Software Foundation
2445
gives unlimited permision to copy, distribute and modify it."
2447
while test $[#] != 0
2450
--version | --v* | -V )
2451
echo "$lt_cl_version"; exit 0 ;;
2452
--help | --h* | -h )
2453
echo "$lt_cl_help"; exit 0 ;;
2454
--debug | --d* | -d )
2456
--quiet | --q* | --silent | --s* | -q )
2459
-*) AC_MSG_ERROR([unrecognized option: $[1]
2460
Try \`$[0] --help' for more information.]) ;;
2462
*) AC_MSG_ERROR([unrecognized argument: $[1]
2463
Try \`$[0] --help' for more information.]) ;;
2468
if $lt_cl_silent; then
2469
exec AS_MESSAGE_FD>/dev/null
2473
cat >>"$CONFIG_LT" <<_LTEOF
2474
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2477
cat >>"$CONFIG_LT" <<\_LTEOF
2478
AC_MSG_NOTICE([creating $ofile])
2479
_LT_OUTPUT_LIBTOOL_COMMANDS
2482
chmod +x "$CONFIG_LT"
2484
# configure is writing to config.log, but config.lt does its own redirection,
2485
# appending to config.log, which fails on DOS, as config.log is still kept
2486
# open by configure. Here we exec the FD to /dev/null, effectively closing
2487
# config.log, so it can be properly (re)opened and appended to by config.lt.
2488
if test "$no_create" != yes; then
2490
test "$silent" = yes &&
2491
lt_config_lt_args="$lt_config_lt_args --quiet"
2492
exec AS_MESSAGE_LOG_FD>/dev/null
2493
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2494
exec AS_MESSAGE_LOG_FD>>config.log
2495
$lt_cl_success || AS_EXIT(1)
2502
# If TAG is the built-in tag, create an initial libtool script with a
2503
# default configuration from the untagged config vars. Otherwise add code
2504
# to config.status for appending the configuration named by TAG from the
2505
# matching tagged config vars.
2506
m4_defun([_LT_CONFIG],
2507
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2508
_LT_CONFIG_SAVE_COMMANDS([
2509
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2510
m4_if(_LT_TAG, [C], [
2511
# See if we are running on zsh, and set the options which allow our
2512
# commands through without removal of \ escapes.
2513
if test -n "${ZSH_VERSION+set}" ; then
2514
setopt NO_GLOB_SUBST
2518
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2521
cat <<_LT_EOF >> "$cfgfile"
2524
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2525
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2526
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2527
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2532
# ### BEGIN LIBTOOL CONFIG
2533
_LT_LIBTOOL_CONFIG_VARS
2534
_LT_LIBTOOL_TAG_VARS
2535
# ### END LIBTOOL CONFIG
2541
cat <<\_LT_EOF >> "$cfgfile"
2542
# AIX sometimes has problems with the GCC collect2 program. For some
2543
# reason, if we set the COLLECT_NAMES environment variable, the problems
2544
# vanish in a puff of smoke.
2545
if test "X${COLLECT_NAMES+set}" != Xset; then
2547
export COLLECT_NAMES
2555
# We use sed instead of cat because bash on DJGPP gets confused if
2556
# if finds mixed CR/LF and LF-only lines. Since sed operates in
2557
# text mode, it properly converts lines to CR/LF. This bash problem
2558
# is reportedly fixed, but why not run on old versions too?
2559
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
2560
|| (rm -f "$cfgfile"; exit 1)
2562
_LT_PROG_XSI_SHELLFNS
2564
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
2565
|| (rm -f "$cfgfile"; exit 1)
2567
mv -f "$cfgfile" "$ofile" ||
2568
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2571
[cat <<_LT_EOF >> "$ofile"
2573
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2574
dnl in a comment (ie after a #).
2575
# ### BEGIN LIBTOOL TAG CONFIG: $1
2576
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
2577
# ### END LIBTOOL TAG CONFIG: $1
2584
TIMESTAMP='$TIMESTAMP'
2586
ofile='$ofile'], [])
2587
])dnl /_LT_CONFIG_SAVE_COMMANDS
2591
# LT_SUPPORTED_TAG(TAG)
2592
# ---------------------
2593
# Trace this macro to discover what tags are supported by the libtool
2594
# --tag option, using:
2595
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
2596
AC_DEFUN([LT_SUPPORTED_TAG], [])
2599
# C support is built-in for now
2600
m4_define([_LT_LANG_C_enabled], [])
2601
m4_define([_LT_TAGS], [])
2606
# Enable libtool support for the given language if not already enabled.
2608
[AC_BEFORE([$0], [LT_OUTPUT])dnl
2611
[C++], [_LT_LANG(CXX)],
2612
[Java], [_LT_LANG(GCJ)],
2613
[Fortran 77], [_LT_LANG(F77)],
2614
[Fortran], [_LT_LANG(FC)],
2615
[Windows Resource], [_LT_LANG(RC)],
2616
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
2618
[m4_fatal([$0: unsupported language: "$1"])])])dnl
2622
# _LT_LANG(LANGNAME)
2623
# ------------------
2624
m4_defun([_LT_LANG],
2625
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
2626
[LT_SUPPORTED_TAG([$1])dnl
2627
m4_append([_LT_TAGS], [$1 ])dnl
2628
m4_define([_LT_LANG_]$1[_enabled], [])dnl
2629
_LT_LANG_$1_CONFIG($1)])dnl
2633
# _LT_LANG_DEFAULT_CONFIG
2634
# -----------------------
2635
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2636
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
2638
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2640
AC_PROVIDE_IFELSE([AC_PROG_F77],
2642
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2644
AC_PROVIDE_IFELSE([AC_PROG_FC],
2646
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2648
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2649
dnl pulling things in needlessly.
2650
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2652
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2654
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2656
[m4_ifdef([AC_PROG_GCJ],
2657
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2658
m4_ifdef([A][M_PROG_GCJ],
2659
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2660
m4_ifdef([LT_PROG_GCJ],
2661
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2663
AC_PROVIDE_IFELSE([LT_PROG_RC],
2665
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2666
])# _LT_LANG_DEFAULT_CONFIG
2669
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2670
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2671
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2672
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2673
dnl aclocal-1.4 backwards compatibility:
2674
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2675
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2676
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2677
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2682
m4_defun([_LT_TAG_COMPILER],
2683
[AC_REQUIRE([AC_PROG_CC])dnl
2685
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2686
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2687
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2688
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2690
# If no C compiler was specified, use CC.
2693
# If no C compiler flags were specified, use CFLAGS.
2694
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2696
# Allow CC to be a program name with arguments.
2698
])# _LT_TAG_COMPILER
2701
# _LT_COMPILER_BOILERPLATE
2702
# ------------------------
2703
# Check for compiler boilerplate output or warnings with
2704
# the simple compiler test code.
2705
m4_defun([_LT_COMPILER_BOILERPLATE],
2706
[m4_require([_LT_DECL_SED])dnl
2707
ac_outfile=conftest.$ac_objext
2708
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2709
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2710
_lt_compiler_boilerplate=`cat conftest.err`
2712
])# _LT_COMPILER_BOILERPLATE
2715
# _LT_LINKER_BOILERPLATE
2716
# ----------------------
2717
# Check for linker boilerplate output or warnings with
2718
# the simple link test code.
2719
m4_defun([_LT_LINKER_BOILERPLATE],
2720
[m4_require([_LT_DECL_SED])dnl
2721
ac_outfile=conftest.$ac_objext
2722
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2723
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2724
_lt_linker_boilerplate=`cat conftest.err`
2726
])# _LT_LINKER_BOILERPLATE
2728
# _LT_REQUIRED_DARWIN_CHECKS
2729
# -------------------------
2730
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2732
rhapsody* | darwin*)
2733
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2734
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2735
AC_CHECK_TOOL([LIPO], [lipo], [:])
2736
AC_CHECK_TOOL([OTOOL], [otool], [:])
2737
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
2738
_LT_DECL([], [DSYMUTIL], [1],
2739
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
2740
_LT_DECL([], [NMEDIT], [1],
2741
[Tool to change global to local symbols on Mac OS X])
2742
_LT_DECL([], [LIPO], [1],
2743
[Tool to manipulate fat objects and archives on Mac OS X])
2744
_LT_DECL([], [OTOOL], [1],
2745
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
2746
_LT_DECL([], [OTOOL64], [1],
2747
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2749
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2750
[lt_cv_apple_cc_single_mod=no
2751
if test -z "${LT_MULTI_MODULE}"; then
2752
# By default we will add the -single_module flag. You can override
2753
# by either setting the environment variable LT_MULTI_MODULE
2754
# non-empty at configure time, or by adding -multi_module to the
2756
rm -rf libconftest.dylib*
2757
echo "int foo(void){return 1;}" > conftest.c
2758
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2759
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
2760
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2761
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2763
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
2764
lt_cv_apple_cc_single_mod=yes
2766
cat conftest.err >&AS_MESSAGE_LOG_FD
2768
rm -rf libconftest.dylib*
2771
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2772
[lt_cv_ld_exported_symbols_list],
2773
[lt_cv_ld_exported_symbols_list=no
2774
save_LDFLAGS=$LDFLAGS
2775
echo "_main" > conftest.sym
2776
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2777
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2778
[lt_cv_ld_exported_symbols_list=yes],
2779
[lt_cv_ld_exported_symbols_list=no])
2780
LDFLAGS="$save_LDFLAGS"
2783
rhapsody* | darwin1.[[012]])
2784
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2786
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2787
darwin*) # darwin 5.x on
2788
# if running on 10.5 or later, the deployment target defaults
2789
# to the OS version, if on x86, and 10.4, the deployment
2790
# target defaults to 10.4. Don't you love it?
2791
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2792
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2793
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2795
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2797
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2801
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2802
_lt_dar_single_mod='$single_module'
2804
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2805
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2807
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2809
if test "$DSYMUTIL" != ":"; then
2810
_lt_dsymutil='~$DSYMUTIL $lib || :'
2819
# _LT_DARWIN_LINKER_FEATURES
2820
# --------------------------
2821
# Checks for linker and compiler features on darwin
2822
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2824
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2825
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
2826
_LT_TAGVAR(hardcode_direct, $1)=no
2827
_LT_TAGVAR(hardcode_automatic, $1)=yes
2828
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2829
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
2830
_LT_TAGVAR(link_all_deplibs, $1)=yes
2831
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2832
case $cc_basename in
2833
ifort*) _lt_dar_can_shared=yes ;;
2834
*) _lt_dar_can_shared=$GCC ;;
2836
if test "$_lt_dar_can_shared" = "yes"; then
2837
output_verbose_link_cmd=echo
2838
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
2839
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2840
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
2841
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
2843
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2844
_LT_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${_lt_dsymutil}"
2845
_LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
2849
_LT_TAGVAR(ld_shlibs, $1)=no
2853
# _LT_SYS_MODULE_PATH_AIX
2854
# -----------------------
2855
# Links a minimal program and checks the executable
2856
# for the system default hardcoded library path. In most cases,
2857
# this is /usr/lib:/lib, but when the MPI compilers are used
2858
# the location of the communication and MPI libs are included too.
2859
# If we don't find anything, use the default library path according
2860
# to the aix ld manual.
2861
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2862
[m4_require([_LT_DECL_SED])dnl
2863
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2864
lt_aix_libpath_sed='
2865
/Import File Strings/,/^$/ {
2871
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2872
# Check for a 64-bit object if we didn't find anything.
2873
if test -z "$aix_libpath"; then
2874
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2876
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2877
])# _LT_SYS_MODULE_PATH_AIX
2880
# _LT_SHELL_INIT(ARG)
2881
# -------------------
2882
m4_define([_LT_SHELL_INIT],
2883
[ifdef([AC_DIVERSION_NOTICE],
2884
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2885
[AC_DIVERT_PUSH(NOTICE)])
2891
# _LT_PROG_ECHO_BACKSLASH
2892
# -----------------------
2893
# Add some code to the start of the generated configure script which
2894
# will find an echo command which doesn't interpret backslashes.
2895
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2897
# Check that we are running under the correct shell.
2898
SHELL=${CONFIG_SHELL-/bin/sh}
2902
# Remove one level of quotation (which was required for Make).
2903
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2907
ECHO=${lt_ECHO-echo}
2908
if test "X[$]1" = X--no-reexec; then
2909
# Discard the --no-reexec flag, and continue.
2911
elif test "X[$]1" = X--fallback-echo; then
2912
# Avoid inline document here, it may be left over
2914
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2915
# Yippee, $ECHO works!
2918
# Restart under the correct shell.
2919
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2922
if test "X[$]1" = X--fallback-echo; then
2923
# used as fallback echo
2931
# The HP-UX ksh and POSIX shell print the target directory to stdout
2933
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2935
if test -z "$lt_ECHO"; then
2936
if test "X${echo_test_string+set}" != Xset; then
2937
# find a string as large as possible, as long as the shell can cope with it
2938
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2939
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2940
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2941
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2948
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2949
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2950
test "X$echo_testing_string" = "X$echo_test_string"; then
2953
# The Solaris, AIX, and Digital Unix default echo programs unquote
2954
# backslashes. This makes it impossible to quote backslashes using
2955
# echo "$something" | sed 's/\\/\\\\/g'
2957
# So, first we look for a working echo in the user's PATH.
2959
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2960
for dir in $PATH /usr/ucb; do
2962
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2963
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2964
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2965
test "X$echo_testing_string" = "X$echo_test_string"; then
2972
if test "X$ECHO" = Xecho; then
2973
# We didn't find a better echo, so look for alternatives.
2974
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2975
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2976
test "X$echo_testing_string" = "X$echo_test_string"; then
2977
# This shell has a builtin print -r that does the trick.
2979
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2980
test "X$CONFIG_SHELL" != X/bin/ksh; then
2981
# If we have ksh, try running configure again with it.
2982
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2983
export ORIGINAL_CONFIG_SHELL
2984
CONFIG_SHELL=/bin/ksh
2986
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2990
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2991
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2992
test "X$echo_testing_string" = "X$echo_test_string"; then
2993
# Cool, printf works
2995
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2996
test "X$echo_testing_string" = 'X\t' &&
2997
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2998
test "X$echo_testing_string" = "X$echo_test_string"; then
2999
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3001
SHELL="$CONFIG_SHELL"
3003
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3004
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3005
test "X$echo_testing_string" = 'X\t' &&
3006
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3007
test "X$echo_testing_string" = "X$echo_test_string"; then
3008
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3010
# maybe with a smaller string...
3013
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3014
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3021
if test "$prev" != 'sed 50q "[$]0"'; then
3022
echo_test_string=`eval $prev`
3023
export echo_test_string
3024
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3026
# Oops. We lost completely, so just stick with echo.
3035
# Copy echo and quote the copy suitably for passing to libtool from
3036
# the Makefile, instead of quoting the original, which is used later.
3038
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3039
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3044
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3045
_LT_DECL([], [ECHO], [1],
3046
[An echo program that does not interpret backslashes])
3047
])# _LT_PROG_ECHO_BACKSLASH
3052
m4_defun([_LT_ENABLE_LOCK],
3053
[AC_ARG_ENABLE([libtool-lock],
3054
[AS_HELP_STRING([--disable-libtool-lock],
3055
[avoid locking (might break parallel builds)])])
3056
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3058
# Some flags need to be propagated to the compiler or linker for good
3062
# Find out which ABI we are using.
3063
echo 'int i;' > conftest.$ac_ext
3064
if AC_TRY_EVAL(ac_compile); then
3065
case `/usr/bin/file conftest.$ac_objext` in
3077
# Find out which ABI we are using.
3078
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3079
if AC_TRY_EVAL(ac_compile); then
3080
if test "$lt_cv_prog_gnu_ld" = yes; then
3081
case `/usr/bin/file conftest.$ac_objext` in
3083
LD="${LD-ld} -melf32bsmip"
3086
LD="${LD-ld} -melf32bmipn32"
3089
LD="${LD-ld} -melf64bmip"
3093
case `/usr/bin/file conftest.$ac_objext` in
3109
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3110
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3111
# Find out which ABI we are using.
3112
echo 'int i;' > conftest.$ac_ext
3113
if AC_TRY_EVAL(ac_compile); then
3114
case `/usr/bin/file conftest.o` in
3117
x86_64-*kfreebsd*-gnu)
3118
LD="${LD-ld} -m elf_i386_fbsd"
3121
LD="${LD-ld} -m elf_i386"
3123
ppc64-*linux*|powerpc64-*linux*)
3124
LD="${LD-ld} -m elf32ppclinux"
3127
LD="${LD-ld} -m elf_s390"
3130
LD="${LD-ld} -m elf32_sparc"
3136
x86_64-*kfreebsd*-gnu)
3137
LD="${LD-ld} -m elf_x86_64_fbsd"
3140
LD="${LD-ld} -m elf_x86_64"
3142
ppc*-*linux*|powerpc*-*linux*)
3143
LD="${LD-ld} -m elf64ppc"
3145
s390*-*linux*|s390*-*tpf*)
3146
LD="${LD-ld} -m elf64_s390"
3149
LD="${LD-ld} -m elf64_sparc"
3159
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3160
SAVE_CFLAGS="$CFLAGS"
3161
CFLAGS="$CFLAGS -belf"
3162
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3164
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3166
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3167
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3168
CFLAGS="$SAVE_CFLAGS"
3172
# Find out which ABI we are using.
3173
echo 'int i;' > conftest.$ac_ext
3174
if AC_TRY_EVAL(ac_compile); then
3175
case `/usr/bin/file conftest.o` in
3177
case $lt_cv_prog_gnu_ld in
3178
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3180
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3192
need_locks="$enable_libtool_lock"
3196
# _LT_CMD_OLD_ARCHIVE
3197
# -------------------
3198
m4_defun([_LT_CMD_OLD_ARCHIVE],
3199
[AC_CHECK_TOOL(AR, ar, false)
3200
test -z "$AR" && AR=ar
3201
test -z "$AR_FLAGS" && AR_FLAGS=cru
3202
_LT_DECL([], [AR], [1], [The archiver])
3203
_LT_DECL([], [AR_FLAGS], [1])
3205
AC_CHECK_TOOL(STRIP, strip, :)
3206
test -z "$STRIP" && STRIP=:
3207
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
3209
AC_CHECK_TOOL(RANLIB, ranlib, :)
3210
test -z "$RANLIB" && RANLIB=:
3211
_LT_DECL([], [RANLIB], [1],
3212
[Commands used to install an old-style archive])
3214
# Determine commands to create old-style static archives.
3215
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3216
old_postinstall_cmds='chmod 644 $oldlib'
3217
old_postuninstall_cmds=
3219
if test -n "$RANLIB"; then
3222
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3225
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3228
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3230
_LT_DECL([], [old_postinstall_cmds], [2])
3231
_LT_DECL([], [old_postuninstall_cmds], [2])
3232
_LT_TAGDECL([], [old_archive_cmds], [2],
3233
[Commands used to build an old-style archive])
3234
])# _LT_CMD_OLD_ARCHIVE
3237
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3238
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3239
# ----------------------------------------------------------------
3240
# Check whether the given compiler option works
3241
AC_DEFUN([_LT_COMPILER_OPTION],
3242
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3243
m4_require([_LT_DECL_SED])dnl
3244
AC_CACHE_CHECK([$1], [$2],
3246
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3247
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3248
lt_compiler_flag="$3"
3249
# Insert the option either (1) after the last *FLAGS variable, or
3250
# (2) before a word containing "conftest.", or (3) at the end.
3251
# Note that $ac_compile itself does not contain backslashes and begins
3252
# with a dollar sign (not a hyphen), so the echo should work correctly.
3253
# The option is referenced via a variable to avoid confusing sed.
3254
lt_compile=`echo "$ac_compile" | $SED \
3255
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3256
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3257
-e 's:$: $lt_compiler_flag:'`
3258
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3259
(eval "$lt_compile" 2>conftest.err)
3261
cat conftest.err >&AS_MESSAGE_LOG_FD
3262
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3263
if (exit $ac_status) && test -s "$ac_outfile"; then
3264
# The compiler can only warn and ignore the option if not recognized
3265
# So say no if there are warnings other than the usual output.
3266
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
3267
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3268
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3275
if test x"[$]$2" = xyes; then
3276
m4_if([$5], , :, [$5])
3278
m4_if([$6], , :, [$6])
3280
])# _LT_COMPILER_OPTION
3283
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
3284
dnl aclocal-1.4 backwards compatibility:
3285
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
3288
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3289
# [ACTION-SUCCESS], [ACTION-FAILURE])
3290
# ----------------------------------------------------
3291
# Check whether the given linker option works
3292
AC_DEFUN([_LT_LINKER_OPTION],
3293
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3294
m4_require([_LT_DECL_SED])dnl
3295
AC_CACHE_CHECK([$1], [$2],
3297
save_LDFLAGS="$LDFLAGS"
3298
LDFLAGS="$LDFLAGS $3"
3299
echo "$lt_simple_link_test_code" > conftest.$ac_ext
3300
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3301
# The linker can only warn and ignore the option if not recognized
3302
# So say no if there are warnings
3303
if test -s conftest.err; then
3304
# Append any errors to the config.log.
3305
cat conftest.err 1>&AS_MESSAGE_LOG_FD
3306
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
3307
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3308
if diff conftest.exp conftest.er2 >/dev/null; then
3316
LDFLAGS="$save_LDFLAGS"
3319
if test x"[$]$2" = xyes; then
3320
m4_if([$4], , :, [$4])
3322
m4_if([$5], , :, [$5])
3324
])# _LT_LINKER_OPTION
3327
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3328
dnl aclocal-1.4 backwards compatibility:
3329
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3334
AC_DEFUN([LT_CMD_MAX_LEN],
3335
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3336
# find the maximum length of command line arguments
3337
AC_MSG_CHECKING([the maximum length of command line arguments])
3338
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3344
# On DJGPP, this test can blow up pretty badly due to problems in libc
3345
# (any single argument exceeding 2000 bytes causes a buffer overrun
3346
# during glob expansion). Even if it were fixed, the result of this
3347
# check would be larger than it should be.
3348
lt_cv_sys_max_cmd_len=12288; # 12K is about right
3352
# Under GNU Hurd, this test is not required because there is
3353
# no limit to the length of command line arguments.
3354
# Libtool will interpret -1 as no limit whatsoever
3355
lt_cv_sys_max_cmd_len=-1;
3358
cygwin* | mingw* | cegcc*)
3359
# On Win9x/ME, this test blows up -- it succeeds, but takes
3360
# about 5 minutes as the teststring grows exponentially.
3361
# Worse, since 9x/ME are not pre-emptively multitasking,
3362
# you end up with a "frozen" computer, even though with patience
3363
# the test eventually succeeds (with a max line length of 256k).
3364
# Instead, let's just punt: use the minimum linelength reported by
3365
# all of the supported platforms: 8192 (on NT/2K/XP).
3366
lt_cv_sys_max_cmd_len=8192;
3370
# On AmigaOS with pdksh, this test takes hours, literally.
3371
# So we just punt and use a minimum line length of 8192.
3372
lt_cv_sys_max_cmd_len=8192;
3375
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3376
# This has been around since 386BSD, at least. Likely further.
3377
if test -x /sbin/sysctl; then
3378
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3379
elif test -x /usr/sbin/sysctl; then
3380
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3382
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3384
# And add a safety zone
3385
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3386
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3390
# We know the value 262144 and hardcode it with a safety zone (like BSD)
3391
lt_cv_sys_max_cmd_len=196608
3395
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3396
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3397
# nice to cause kernel panics so lets avoid the loop below.
3398
# First set a reasonable default.
3399
lt_cv_sys_max_cmd_len=16384
3401
if test -x /sbin/sysconfig; then
3402
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3403
*1*) lt_cv_sys_max_cmd_len=-1 ;;
3408
lt_cv_sys_max_cmd_len=102400
3410
sysv5* | sco5v6* | sysv4.2uw2*)
3411
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3412
if test -n "$kargmax"; then
3413
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3415
lt_cv_sys_max_cmd_len=32768
3419
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3420
if test -n "$lt_cv_sys_max_cmd_len"; then
3421
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3422
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3424
# Make teststring a little bigger before we do anything with it.
3425
# a 1K string should be a reasonable start.
3426
for i in 1 2 3 4 5 6 7 8 ; do
3427
teststring=$teststring$teststring
3429
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3430
# If test is not a shell built-in, we'll probably end up computing a
3431
# maximum length that is only half of the actual maximum length, but
3433
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3434
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3435
test $i != 17 # 1/2 MB should be enough
3438
teststring=$teststring$teststring
3440
# Only check the string length outside the loop.
3441
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3443
# Add a significant safety factor because C++ compilers can tack on
3444
# massive amounts of additional arguments before passing them to the
3445
# linker. It appears as though 1/2 is a usable value.
3446
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3451
if test -n $lt_cv_sys_max_cmd_len ; then
3452
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3456
max_cmd_len=$lt_cv_sys_max_cmd_len
3457
_LT_DECL([], [max_cmd_len], [0],
3458
[What is the maximum length of a command?])
3462
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3463
dnl aclocal-1.4 backwards compatibility:
3464
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3469
m4_defun([_LT_HEADER_DLFCN],
3470
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3471
])# _LT_HEADER_DLFCN
3474
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3475
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3476
# ----------------------------------------------------------------
3477
m4_defun([_LT_TRY_DLOPEN_SELF],
3478
[m4_require([_LT_HEADER_DLFCN])dnl
3479
if test "$cross_compiling" = yes; then :
3482
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3483
lt_status=$lt_dlunknown
3484
cat > conftest.$ac_ext <<_LT_EOF
3485
[#line __oline__ "configure"
3486
#include "confdefs.h"
3495
# define LT_DLGLOBAL RTLD_GLOBAL
3498
# define LT_DLGLOBAL DL_GLOBAL
3500
# define LT_DLGLOBAL 0
3504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3505
find out it does not work in some platform. */
3506
#ifndef LT_DLLAZY_OR_NOW
3508
# define LT_DLLAZY_OR_NOW RTLD_LAZY
3511
# define LT_DLLAZY_OR_NOW DL_LAZY
3514
# define LT_DLLAZY_OR_NOW RTLD_NOW
3517
# define LT_DLLAZY_OR_NOW DL_NOW
3519
# define LT_DLLAZY_OR_NOW 0
3526
void fnord() { int i=42;}
3529
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3530
int status = $lt_dlunknown;
3534
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3535
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3536
/* dlclose (self); */
3544
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3545
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3548
x$lt_dlno_uscore) $1 ;;
3549
x$lt_dlneed_uscore) $2 ;;
3550
x$lt_dlunknown|x*) $3 ;;
3553
# compilation failed
3558
])# _LT_TRY_DLOPEN_SELF
3561
# LT_SYS_DLOPEN_SELF
3562
# ------------------
3563
AC_DEFUN([LT_SYS_DLOPEN_SELF],
3564
[m4_require([_LT_HEADER_DLFCN])dnl
3565
if test "x$enable_dlopen" != xyes; then
3566
enable_dlopen=unknown
3567
enable_dlopen_self=unknown
3568
enable_dlopen_self_static=unknown
3575
lt_cv_dlopen="load_add_on"
3577
lt_cv_dlopen_self=yes
3580
mingw* | pw32* | cegcc*)
3581
lt_cv_dlopen="LoadLibrary"
3586
lt_cv_dlopen="dlopen"
3591
# if libdl is installed we need to link against it
3592
AC_CHECK_LIB([dl], [dlopen],
3593
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3596
lt_cv_dlopen_self=yes
3601
AC_CHECK_FUNC([shl_load],
3602
[lt_cv_dlopen="shl_load"],
3603
[AC_CHECK_LIB([dld], [shl_load],
3604
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3605
[AC_CHECK_FUNC([dlopen],
3606
[lt_cv_dlopen="dlopen"],
3607
[AC_CHECK_LIB([dl], [dlopen],
3608
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3609
[AC_CHECK_LIB([svld], [dlopen],
3610
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3611
[AC_CHECK_LIB([dld], [dld_link],
3612
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3621
if test "x$lt_cv_dlopen" != xno; then
3627
case $lt_cv_dlopen in
3629
save_CPPFLAGS="$CPPFLAGS"
3630
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3632
save_LDFLAGS="$LDFLAGS"
3633
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3636
LIBS="$lt_cv_dlopen_libs $LIBS"
3638
AC_CACHE_CHECK([whether a program can dlopen itself],
3639
lt_cv_dlopen_self, [dnl
3640
_LT_TRY_DLOPEN_SELF(
3641
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3642
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3645
if test "x$lt_cv_dlopen_self" = xyes; then
3646
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3647
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3648
lt_cv_dlopen_self_static, [dnl
3649
_LT_TRY_DLOPEN_SELF(
3650
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3651
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3655
CPPFLAGS="$save_CPPFLAGS"
3656
LDFLAGS="$save_LDFLAGS"
3661
case $lt_cv_dlopen_self in
3662
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3663
*) enable_dlopen_self=unknown ;;
3666
case $lt_cv_dlopen_self_static in
3667
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3668
*) enable_dlopen_self_static=unknown ;;
3671
_LT_DECL([dlopen_support], [enable_dlopen], [0],
3672
[Whether dlopen is supported])
3673
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3674
[Whether dlopen of programs is supported])
3675
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3676
[Whether dlopen of statically linked programs is supported])
3677
])# LT_SYS_DLOPEN_SELF
3680
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3681
dnl aclocal-1.4 backwards compatibility:
3682
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3685
# _LT_COMPILER_C_O([TAGNAME])
3686
# ---------------------------
3687
# Check to see if options -c and -o are simultaneously supported by compiler.
3688
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3689
m4_defun([_LT_COMPILER_C_O],
3690
[m4_require([_LT_DECL_SED])dnl
3691
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3692
m4_require([_LT_TAG_COMPILER])dnl
3693
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3694
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3695
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3696
$RM -r conftest 2>/dev/null
3700
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3702
lt_compiler_flag="-o out/conftest2.$ac_objext"
3703
# Insert the option either (1) after the last *FLAGS variable, or
3704
# (2) before a word containing "conftest.", or (3) at the end.
3705
# Note that $ac_compile itself does not contain backslashes and begins
3706
# with a dollar sign (not a hyphen), so the echo should work correctly.
3707
lt_compile=`echo "$ac_compile" | $SED \
3708
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3709
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3710
-e 's:$: $lt_compiler_flag:'`
3711
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3712
(eval "$lt_compile" 2>out/conftest.err)
3714
cat out/conftest.err >&AS_MESSAGE_LOG_FD
3715
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3716
if (exit $ac_status) && test -s out/conftest2.$ac_objext
3718
# The compiler can only warn and ignore the option if not recognized
3719
# So say no if there are warnings
3720
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3721
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3722
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3723
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3726
chmod u+w . 2>&AS_MESSAGE_LOG_FD
3728
# SGI C++ compiler will create directory out/ii_files/ for
3729
# template instantiation
3730
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3731
$RM out/* && rmdir out
3736
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3737
[Does compiler simultaneously support -c and -o options?])
3738
])# _LT_COMPILER_C_O
3741
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3742
# ----------------------------------
3743
# Check to see if we can do hard links to lock some files if needed
3744
m4_defun([_LT_COMPILER_FILE_LOCKS],
3745
[m4_require([_LT_ENABLE_LOCK])dnl
3746
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3747
_LT_COMPILER_C_O([$1])
3749
hard_links="nottested"
3750
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3751
# do not overwrite the value of need_locks provided by the user
3752
AC_MSG_CHECKING([if we can lock with hard links])
3755
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3757
ln conftest.a conftest.b 2>&5 || hard_links=no
3758
ln conftest.a conftest.b 2>/dev/null && hard_links=no
3759
AC_MSG_RESULT([$hard_links])
3760
if test "$hard_links" = no; then
3761
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3767
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3768
])# _LT_COMPILER_FILE_LOCKS
3773
m4_defun([_LT_CHECK_OBJDIR],
3774
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3775
[rm -f .libs 2>/dev/null
3776
mkdir .libs 2>/dev/null
3777
if test -d .libs; then
3780
# MS-DOS does not allow filenames that begin with a dot.
3783
rmdir .libs 2>/dev/null])
3784
objdir=$lt_cv_objdir
3785
_LT_DECL([], [objdir], [0],
3786
[The name of the directory that contains temporary libtool files])dnl
3787
m4_pattern_allow([LT_OBJDIR])dnl
3788
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3789
[Define to the sub-directory in which libtool stores uninstalled libraries.])
3790
])# _LT_CHECK_OBJDIR
3793
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3794
# --------------------------------------
3795
# Check hardcoding attributes.
3796
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3797
[AC_MSG_CHECKING([how to hardcode library paths into programs])
3798
_LT_TAGVAR(hardcode_action, $1)=
3799
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3800
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3801
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3803
# We can hardcode non-existent directories.
3804
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3805
# If the only mechanism to avoid hardcoding is shlibpath_var, we
3806
# have to relink, otherwise we might link with an installed library
3807
# when we should be linking with a yet-to-be-installed one
3808
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3809
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3810
# Linking always hardcodes the temporary library directory.
3811
_LT_TAGVAR(hardcode_action, $1)=relink
3813
# We can link without hardcoding, and we can hardcode nonexisting dirs.
3814
_LT_TAGVAR(hardcode_action, $1)=immediate
3817
# We cannot hardcode anything, or else we can only hardcode existing
3819
_LT_TAGVAR(hardcode_action, $1)=unsupported
3821
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3823
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3824
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3825
# Fast installation is not supported
3826
enable_fast_install=no
3827
elif test "$shlibpath_overrides_runpath" = yes ||
3828
test "$enable_shared" = no; then
3829
# Fast installation is not necessary
3830
enable_fast_install=needless
3832
_LT_TAGDECL([], [hardcode_action], [0],
3833
[How to hardcode a shared library path into an executable])
3834
])# _LT_LINKER_HARDCODE_LIBPATH
3839
m4_defun([_LT_CMD_STRIPLIB],
3840
[m4_require([_LT_DECL_EGREP])
3843
AC_MSG_CHECKING([whether stripping libraries is possible])
3844
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3845
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3846
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3847
AC_MSG_RESULT([yes])
3849
# FIXME - insert some real tests, host_os isn't really good enough
3852
if test -n "$STRIP" ; then
3853
striplib="$STRIP -x"
3854
old_striplib="$STRIP -S"
3855
AC_MSG_RESULT([yes])
3865
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3866
_LT_DECL([], [striplib], [1])
3867
])# _LT_CMD_STRIPLIB
3870
# _LT_SYS_DYNAMIC_LINKER([TAG])
3871
# -----------------------------
3872
# PORTME Fill in your ld.so characteristics
3873
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3874
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3875
m4_require([_LT_DECL_EGREP])dnl
3876
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3877
m4_require([_LT_DECL_OBJDUMP])dnl
3878
m4_require([_LT_DECL_SED])dnl
3879
AC_MSG_CHECKING([dynamic linker characteristics])
3882
if test "$GCC" = yes; then
3884
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3885
*) lt_awk_arg="/^libraries:/" ;;
3887
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3888
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3889
# if the path contains ";" then we assume it to be the separator
3890
# otherwise default to the standard path separator (i.e. ":") - it is
3891
# assumed that no part of a normal pathname contains ";" but that should
3892
# okay in the real world where ";" in dirpaths is itself problematic.
3893
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3895
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3897
# Ok, now we have the path, separated by spaces, we can step through it
3898
# and add multilib dir if necessary.
3899
lt_tmp_lt_search_path_spec=
3900
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3901
for lt_sys_path in $lt_search_path_spec; do
3902
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3903
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3905
test -d "$lt_sys_path" && \
3906
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3909
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3910
BEGIN {RS=" "; FS="/|\n";} {
3913
for (lt_i = NF; lt_i > 0; lt_i--) {
3914
if ($lt_i != "" && $lt_i != ".") {
3915
if ($lt_i == "..") {
3918
if (lt_count == 0) {
3919
lt_foo="/" $lt_i lt_foo;
3926
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3927
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3929
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3931
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3934
libname_spec='lib$name'
3942
shlibpath_overrides_runpath=unknown
3944
dynamic_linker="$host_os ld.so"
3945
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3946
need_lib_prefix=unknown
3947
hardcode_into_libs=no
3949
# when you set need_version to no, make sure it does not cause -set_version
3950
# flags to be left without arguments
3951
need_version=unknown
3956
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3957
shlibpath_var=LIBPATH
3959
# AIX 3 has no versioning support, so we append a major version to the name.
3960
soname_spec='${libname}${release}${shared_ext}$major'
3967
hardcode_into_libs=yes
3968
if test "$host_cpu" = ia64; then
3969
# AIX 5 supports IA64
3970
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3971
shlibpath_var=LD_LIBRARY_PATH
3973
# With GCC up to 2.95.x, collect2 would create an import file
3974
# for dependence libraries. The import file would start with
3975
# the line `#! .'. This would cause the generated library to
3976
# depend on `.', always an invalid library. This was fixed in
3977
# development snapshots of GCC prior to 3.0.
3979
aix4 | aix4.[[01]] | aix4.[[01]].*)
3980
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3982
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3989
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3990
# soname into executable. Probably we can add versioning support to
3991
# collect2, so additional links can be useful in future.
3992
if test "$aix_use_runtimelinking" = yes; then
3993
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
3994
# instead of lib<name>.a to let people know that these are not
3995
# typical AIX shared libraries.
3996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3998
# We preserve .a as extension for shared libraries through AIX4.2
3999
# and later when we are not doing run time linking.
4000
library_names_spec='${libname}${release}.a $libname.a'
4001
soname_spec='${libname}${release}${shared_ext}$major'
4003
shlibpath_var=LIBPATH
4010
# Since July 2007 AmigaOS4 officially supports .so libraries.
4011
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4015
library_names_spec='$libname.ixlibrary $libname.a'
4016
# Create ${libname}_ixlibrary.a entries in /sys/libs.
4017
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
4023
library_names_spec='${libname}${shared_ext}'
4024
dynamic_linker="$host_os ld.so"
4025
shlibpath_var=LIBRARY_PATH
4031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4032
soname_spec='${libname}${release}${shared_ext}$major'
4033
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4034
shlibpath_var=LD_LIBRARY_PATH
4035
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4036
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4037
# the default ld.so.conf also contains /usr/contrib/lib and
4038
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4039
# libtool to hard-code these into programs
4042
cygwin* | mingw* | pw32* | cegcc*)
4043
version_type=windows
4048
case $GCC,$host_os in
4049
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4050
library_names_spec='$libname.dll.a'
4051
# DLL is installed to $(libdir)/../bin by postinstall_cmds
4052
postinstall_cmds='base_file=`basename \${file}`~
4053
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4054
dldir=$destdir/`dirname \$dlpath`~
4055
test -d \$dldir || mkdir -p \$dldir~
4056
$install_prog $dir/$dlname \$dldir/$dlname~
4057
chmod a+x \$dldir/$dlname~
4058
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4059
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4061
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4062
dlpath=$dir/\$dldll~
4064
shlibpath_overrides_runpath=yes
4068
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
4069
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4070
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4073
# MinGW DLLs use traditional 'lib' prefix
4074
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4075
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4076
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4077
# It is most probably a Windows format PATH printed by
4078
# mingw gcc, but we are running on Cygwin. Gcc prints its search
4079
# path with ; separators, and with drive letters. We can handle the
4080
# drive letters (cygwin fileutils understands them), so leave them,
4081
# especially as we might pass files found there to a mingw objdump,
4082
# which wouldn't understand a cygwinified path. Ahh.
4083
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4085
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4089
# pw32 DLLs use 'pw' prefix rather than 'lib'
4090
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4096
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4099
dynamic_linker='Win32 ld.exe'
4100
# FIXME: first we should search . and the directory the executable is in
4104
darwin* | rhapsody*)
4105
dynamic_linker="$host_os dyld"
4109
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4110
soname_spec='${libname}${release}${major}$shared_ext'
4111
shlibpath_overrides_runpath=yes
4112
shlibpath_var=DYLD_LIBRARY_PATH
4113
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4115
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4116
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4124
soname_spec='${libname}${release}${shared_ext}$major'
4125
shlibpath_var=LD_LIBRARY_PATH
4132
freebsd* | dragonfly*)
4133
# DragonFly does not have aout. When/if they implement a new
4134
# versioning mechanism, adjust this.
4135
if test -x /usr/bin/objformat; then
4136
objformat=`/usr/bin/objformat`
4139
freebsd[[123]]*) objformat=aout ;;
4143
version_type=freebsd-$objformat
4144
case $version_type in
4146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4151
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4155
shlibpath_var=LD_LIBRARY_PATH
4158
shlibpath_overrides_runpath=yes
4160
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4161
shlibpath_overrides_runpath=yes
4162
hardcode_into_libs=yes
4164
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4165
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4166
shlibpath_overrides_runpath=no
4167
hardcode_into_libs=yes
4169
*) # from 4.6 on, and DragonFly
4170
shlibpath_overrides_runpath=yes
4171
hardcode_into_libs=yes
4180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4181
soname_spec='${libname}${release}${shared_ext}$major'
4182
shlibpath_var=LD_LIBRARY_PATH
4183
hardcode_into_libs=yes
4186
hpux9* | hpux10* | hpux11*)
4187
# Give a soname corresponding to the major version so that dld.sl refuses to
4188
# link against other versions.
4195
hardcode_into_libs=yes
4196
dynamic_linker="$host_os dld.so"
4197
shlibpath_var=LD_LIBRARY_PATH
4198
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4200
soname_spec='${libname}${release}${shared_ext}$major'
4201
if test "X$HPUX_IA64_MODE" = X32; then
4202
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4204
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4206
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4210
hardcode_into_libs=yes
4211
dynamic_linker="$host_os dld.sl"
4212
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4213
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4215
soname_spec='${libname}${release}${shared_ext}$major'
4216
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4217
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4221
dynamic_linker="$host_os dld.sl"
4222
shlibpath_var=SHLIB_PATH
4223
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4225
soname_spec='${libname}${release}${shared_ext}$major'
4228
# HP-UX runs *really* slowly unless shared libraries are mode 555.
4229
postinstall_cmds='chmod 555 $lib'
4236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4237
soname_spec='${libname}${release}${shared_ext}$major'
4238
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4239
shlibpath_var=LD_LIBRARY_PATH
4240
shlibpath_overrides_runpath=no
4241
hardcode_into_libs=yes
4244
irix5* | irix6* | nonstopux*)
4246
nonstopux*) version_type=nonstopux ;;
4248
if test "$lt_cv_prog_gnu_ld" = yes; then
4256
soname_spec='${libname}${release}${shared_ext}$major'
4257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4259
irix5* | nonstopux*)
4263
case $LD in # libtool.m4 will add one of these switches to LD
4264
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4265
libsuff= shlibsuff= libmagic=32-bit;;
4266
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4267
libsuff=32 shlibsuff=N32 libmagic=N32;;
4268
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4269
libsuff=64 shlibsuff=64 libmagic=64-bit;;
4270
*) libsuff= shlibsuff= libmagic=never-match;;
4274
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4275
shlibpath_overrides_runpath=no
4276
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4277
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4278
hardcode_into_libs=yes
4281
# No shared lib support for Linux oldld, aout, or coff.
4282
linux*oldld* | linux*aout* | linux*coff*)
4286
# This must be Linux ELF.
4287
linux* | k*bsd*-gnu)
4291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4292
soname_spec='${libname}${release}${shared_ext}$major'
4293
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4294
shlibpath_var=LD_LIBRARY_PATH
4295
shlibpath_overrides_runpath=no
4296
# Some binutils ld are patched to set DT_RUNPATH
4297
save_LDFLAGS=$LDFLAGS
4299
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4300
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4301
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4302
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4303
[shlibpath_overrides_runpath=yes])])
4304
LDFLAGS=$save_LDFLAGS
4307
# This implies no fast_install, which is unacceptable.
4308
# Some rework will be needed to allow for fast_install
4309
# before this can be enabled.
4310
hardcode_into_libs=yes
4312
# Append ld.so.conf contents to the search path
4313
if test -f /etc/ld.so.conf; then
4314
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
4315
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4318
# We used to test for /lib/ld.so.1 and disable shared libraries on
4319
# powerpc, because MkLinux only supported shared libraries with the
4320
# GNU dynamic linker. Since this was broken with cross compilers,
4321
# most powerpc-linux boxes support dynamic linking these days and
4322
# people can always --disable-shared, the test was removed, and we
4323
# assume the GNU/Linux dynamic linker is in use.
4324
dynamic_linker='GNU/Linux ld.so'
4331
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4333
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4334
dynamic_linker='NetBSD (a.out) ld.so'
4336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4337
soname_spec='${libname}${release}${shared_ext}$major'
4338
dynamic_linker='NetBSD ld.elf_so'
4340
shlibpath_var=LD_LIBRARY_PATH
4341
shlibpath_overrides_runpath=yes
4342
hardcode_into_libs=yes
4347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4348
shlibpath_var=LD_LIBRARY_PATH
4349
shlibpath_overrides_runpath=yes
4356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4357
soname_spec='${libname}${release}${shared_ext}$major'
4358
shlibpath_var=LD_LIBRARY_PATH
4359
shlibpath_overrides_runpath=no
4360
hardcode_into_libs=yes
4361
dynamic_linker='ldqnx.so'
4366
sys_lib_dlsearch_path_spec="/usr/lib"
4368
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4370
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4371
*) need_version=no ;;
4373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4374
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4375
shlibpath_var=LD_LIBRARY_PATH
4376
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4378
openbsd2.[[89]] | openbsd2.[[89]].*)
4379
shlibpath_overrides_runpath=no
4382
shlibpath_overrides_runpath=yes
4386
shlibpath_overrides_runpath=yes
4391
libname_spec='$name'
4394
library_names_spec='$libname${shared_ext} $libname.a'
4395
dynamic_linker='OS/2 ld.exe'
4396
shlibpath_var=LIBPATH
4399
osf3* | osf4* | osf5*)
4403
soname_spec='${libname}${release}${shared_ext}$major'
4404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4405
shlibpath_var=LD_LIBRARY_PATH
4406
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4407
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4419
soname_spec='${libname}${release}${shared_ext}$major'
4420
shlibpath_var=LD_LIBRARY_PATH
4421
shlibpath_overrides_runpath=yes
4422
hardcode_into_libs=yes
4423
# ldd complains unless libraries are executable
4424
postinstall_cmds='chmod +x $lib'
4429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4430
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4431
shlibpath_var=LD_LIBRARY_PATH
4432
shlibpath_overrides_runpath=yes
4433
if test "$with_gnu_ld" = yes; then
4441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4442
soname_spec='${libname}${release}${shared_ext}$major'
4443
shlibpath_var=LD_LIBRARY_PATH
4444
case $host_vendor in
4446
shlibpath_overrides_runpath=no
4448
runpath_var=LD_RUN_PATH
4456
shlibpath_overrides_runpath=no
4457
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4463
if test -d /usr/nec ;then
4465
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4466
soname_spec='$libname${shared_ext}.$major'
4467
shlibpath_var=LD_LIBRARY_PATH
4471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4472
version_type=freebsd-elf
4475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4476
soname_spec='${libname}${release}${shared_ext}$major'
4477
shlibpath_var=LD_LIBRARY_PATH
4478
shlibpath_overrides_runpath=yes
4479
hardcode_into_libs=yes
4480
if test "$with_gnu_ld" = yes; then
4481
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4483
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4486
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4490
sys_lib_dlsearch_path_spec='/usr/lib'
4494
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4499
shlibpath_var=LD_LIBRARY_PATH
4500
shlibpath_overrides_runpath=no
4501
hardcode_into_libs=yes
4506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4507
soname_spec='${libname}${release}${shared_ext}$major'
4508
shlibpath_var=LD_LIBRARY_PATH
4515
AC_MSG_RESULT([$dynamic_linker])
4516
test "$dynamic_linker" = no && can_build_shared=no
4518
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4519
if test "$GCC" = yes; then
4520
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4523
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4524
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4526
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4527
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4530
_LT_DECL([], [variables_saved_for_relink], [1],
4531
[Variables whose values should be saved in libtool wrapper scripts and
4532
restored at link time])
4533
_LT_DECL([], [need_lib_prefix], [0],
4534
[Do we need the "lib" prefix for modules?])
4535
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4536
_LT_DECL([], [version_type], [0], [Library versioning type])
4537
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
4538
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4539
_LT_DECL([], [shlibpath_overrides_runpath], [0],
4540
[Is shlibpath searched before the hard-coded library search path?])
4541
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4542
_LT_DECL([], [library_names_spec], [1],
4543
[[List of archive names. First name is the real one, the rest are links.
4544
The last name is the one that the linker finds with -lNAME]])
4545
_LT_DECL([], [soname_spec], [1],
4546
[[The coded name of the library, if different from the real name]])
4547
_LT_DECL([], [postinstall_cmds], [2],
4548
[Command to use after installation of a shared archive])
4549
_LT_DECL([], [postuninstall_cmds], [2],
4550
[Command to use after uninstallation of a shared archive])
4551
_LT_DECL([], [finish_cmds], [2],
4552
[Commands used to finish a libtool library installation in a directory])
4553
_LT_DECL([], [finish_eval], [1],
4554
[[As "finish_cmds", except a single script fragment to be evaled but
4556
_LT_DECL([], [hardcode_into_libs], [0],
4557
[Whether we should hardcode library paths into libraries])
4558
_LT_DECL([], [sys_lib_search_path_spec], [2],
4559
[Compile-time system search path for libraries])
4560
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
4561
[Run-time system search path for libraries])
4562
])# _LT_SYS_DYNAMIC_LINKER
4565
# _LT_PATH_TOOL_PREFIX(TOOL)
4566
# --------------------------
4567
# find a file program which can recognize shared library
4568
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
4569
[m4_require([_LT_DECL_EGREP])dnl
4570
AC_MSG_CHECKING([for $1])
4571
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4573
[[\\/*] | ?:[\\/]*])
4574
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4577
lt_save_MAGIC_CMD="$MAGIC_CMD"
4578
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4579
dnl $ac_dummy forces splitting on constant user-supplied paths.
4580
dnl POSIX.2 word splitting is done only on the output of word expansions,
4581
dnl not every word. This closes a longstanding sh security hole.
4582
ac_dummy="m4_if([$2], , $PATH, [$2])"
4583
for ac_dir in $ac_dummy; do
4585
test -z "$ac_dir" && ac_dir=.
4586
if test -f $ac_dir/$1; then
4587
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4588
if test -n "$file_magic_test_file"; then
4589
case $deplibs_check_method in
4591
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4592
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4593
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4594
$EGREP "$file_magic_regex" > /dev/null; then
4599
*** Warning: the command libtool uses to detect shared libraries,
4600
*** $file_magic_cmd, produces output that libtool cannot recognize.
4601
*** The result is that libtool may fail to recognize shared libraries
4602
*** as such. This will affect the creation of libtool libraries that
4603
*** depend on shared libraries, but programs linked with such libtool
4604
*** libraries will work regardless of this problem. Nevertheless, you
4605
*** may want to report the problem to your system manager and/or to
4606
*** bug-libtool@gnu.org
4616
MAGIC_CMD="$lt_save_MAGIC_CMD"
4619
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4620
if test -n "$MAGIC_CMD"; then
4621
AC_MSG_RESULT($MAGIC_CMD)
4625
_LT_DECL([], [MAGIC_CMD], [0],
4626
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
4627
])# _LT_PATH_TOOL_PREFIX
4630
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
4631
dnl aclocal-1.4 backwards compatibility:
4632
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
4637
# find a file program which can recognize a shared library
4638
m4_defun([_LT_PATH_MAGIC],
4639
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4640
if test -z "$lt_cv_path_MAGIC_CMD"; then
4641
if test -n "$ac_tool_prefix"; then
4642
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4652
# find the pathname to the GNU or non-GNU linker
4653
AC_DEFUN([LT_PATH_LD],
4654
[AC_REQUIRE([AC_PROG_CC])dnl
4655
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4656
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4657
m4_require([_LT_DECL_SED])dnl
4658
m4_require([_LT_DECL_EGREP])dnl
4660
AC_ARG_WITH([gnu-ld],
4661
[AS_HELP_STRING([--with-gnu-ld],
4662
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
4663
[test "$withval" = no || with_gnu_ld=yes],
4664
[with_gnu_ld=no])dnl
4667
if test "$GCC" = yes; then
4668
# Check if gcc -print-prog-name=ld gives a path.
4669
AC_MSG_CHECKING([for ld used by $CC])
4672
# gcc leaves a trailing carriage return which upsets mingw
4673
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4675
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4678
# Accept absolute paths.
4679
[[\\/]]* | ?:[[\\/]]*)
4680
re_direlt='/[[^/]][[^/]]*/\.\./'
4681
# Canonicalize the pathname of ld
4682
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4683
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4684
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4686
test -z "$LD" && LD="$ac_prog"
4689
# If it fails, then pretend we aren't using GCC.
4693
# If it is relative, then search for the first ld in PATH.
4697
elif test "$with_gnu_ld" = yes; then
4698
AC_MSG_CHECKING([for GNU ld])
4700
AC_MSG_CHECKING([for non-GNU ld])
4702
AC_CACHE_VAL(lt_cv_path_LD,
4703
[if test -z "$LD"; then
4704
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4705
for ac_dir in $PATH; do
4707
test -z "$ac_dir" && ac_dir=.
4708
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4709
lt_cv_path_LD="$ac_dir/$ac_prog"
4710
# Check to see if the program is GNU ld. I'd rather use --version,
4711
# but apparently some variants of GNU ld only accept -v.
4712
# Break only if it was the GNU/non-GNU ld that we prefer.
4713
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4714
*GNU* | *'with BFD'*)
4715
test "$with_gnu_ld" != no && break
4718
test "$with_gnu_ld" != yes && break
4725
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4728
if test -n "$LD"; then
4733
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4737
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4741
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4742
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4743
dnl aclocal-1.4 backwards compatibility:
4744
dnl AC_DEFUN([AM_PROG_LD], [])
4745
dnl AC_DEFUN([AC_PROG_LD], [])
4750
m4_defun([_LT_PATH_LD_GNU],
4751
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4752
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4753
case `$LD -v 2>&1 </dev/null` in
4754
*GNU* | *'with BFD'*)
4755
lt_cv_prog_gnu_ld=yes
4758
lt_cv_prog_gnu_ld=no
4761
with_gnu_ld=$lt_cv_prog_gnu_ld
4767
# find reload flag for linker
4768
# -- PORTME Some linkers may need a different reload flag.
4769
m4_defun([_LT_CMD_RELOAD],
4770
[AC_CACHE_CHECK([for $LD option to reload object files],
4771
lt_cv_ld_reload_flag,
4772
[lt_cv_ld_reload_flag='-r'])
4773
reload_flag=$lt_cv_ld_reload_flag
4774
case $reload_flag in
4776
*) reload_flag=" $reload_flag" ;;
4778
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4781
if test "$GCC" = yes; then
4782
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4784
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4788
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4789
_LT_DECL([], [reload_cmds], [2])dnl
4793
# _LT_CHECK_MAGIC_METHOD
4794
# ----------------------
4795
# how to check for library dependencies
4796
# -- PORTME fill in with the dynamic library characteristics
4797
m4_defun([_LT_CHECK_MAGIC_METHOD],
4798
[m4_require([_LT_DECL_EGREP])
4799
m4_require([_LT_DECL_OBJDUMP])
4800
AC_CACHE_CHECK([how to recognize dependent libraries],
4801
lt_cv_deplibs_check_method,
4802
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4803
lt_cv_file_magic_test_file=
4804
lt_cv_deplibs_check_method='unknown'
4805
# Need to set the preceding variable on all platforms that support
4806
# interlibrary dependencies.
4807
# 'none' -- dependencies not supported.
4808
# `unknown' -- same as none, but documents that we really don't know.
4809
# 'pass_all' -- all dependencies passed with no checks.
4810
# 'test_compile' -- check by making test program.
4811
# 'file_magic [[regex]]' -- check by looking for files in library path
4812
# which responds to the $file_magic_cmd with a given extended regex.
4813
# If you have `file' or equivalent on your system and you're not sure
4814
# whether `pass_all' will *always* work, you probably want this one.
4818
lt_cv_deplibs_check_method=pass_all
4822
lt_cv_deplibs_check_method=pass_all
4826
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4827
lt_cv_file_magic_cmd='/usr/bin/file -L'
4828
lt_cv_file_magic_test_file=/shlib/libc.so
4832
# func_win32_libid is a shell function defined in ltmain.sh
4833
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4834
lt_cv_file_magic_cmd='func_win32_libid'
4838
# Base MSYS/MinGW do not provide the 'file' command needed by
4839
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4840
# unless we find 'file', for example because we are cross-compiling.
4841
if ( file / ) >/dev/null 2>&1; then
4842
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4843
lt_cv_file_magic_cmd='func_win32_libid'
4845
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4846
lt_cv_file_magic_cmd='$OBJDUMP -f'
4851
# use the weaker test based on 'objdump'. See mingw*.
4852
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4853
lt_cv_file_magic_cmd='$OBJDUMP -f'
4856
darwin* | rhapsody*)
4857
lt_cv_deplibs_check_method=pass_all
4860
freebsd* | dragonfly*)
4861
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4864
# Not sure whether the presence of OpenBSD here was a mistake.
4865
# Let's accept both of them until this is cleared up.
4866
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4867
lt_cv_file_magic_cmd=/usr/bin/file
4868
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4872
lt_cv_deplibs_check_method=pass_all
4877
lt_cv_deplibs_check_method=pass_all
4880
hpux10.20* | hpux11*)
4881
lt_cv_file_magic_cmd=/usr/bin/file
4884
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4885
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4888
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4889
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4892
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4893
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4899
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4900
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4903
irix5* | irix6* | nonstopux*)
4905
*-32|*"-32 ") libmagic=32-bit;;
4906
*-n32|*"-n32 ") libmagic=N32;;
4907
*-64|*"-64 ") libmagic=64-bit;;
4908
*) libmagic=never-match;;
4910
lt_cv_deplibs_check_method=pass_all
4913
# This must be Linux ELF.
4914
linux* | k*bsd*-gnu)
4915
lt_cv_deplibs_check_method=pass_all
4919
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4920
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4922
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4927
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4928
lt_cv_file_magic_cmd=/usr/bin/file
4929
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4933
lt_cv_deplibs_check_method=pass_all
4937
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4938
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4940
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4944
osf3* | osf4* | osf5*)
4945
lt_cv_deplibs_check_method=pass_all
4949
lt_cv_deplibs_check_method=pass_all
4953
lt_cv_deplibs_check_method=pass_all
4956
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4957
lt_cv_deplibs_check_method=pass_all
4961
case $host_vendor in
4963
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4964
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4967
lt_cv_deplibs_check_method=pass_all
4970
lt_cv_file_magic_cmd='/bin/file'
4971
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4974
lt_cv_file_magic_cmd='/bin/file'
4975
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4976
lt_cv_file_magic_test_file=/lib/libc.so
4979
lt_cv_deplibs_check_method=pass_all
4982
lt_cv_deplibs_check_method=pass_all
4988
lt_cv_deplibs_check_method=pass_all
4992
file_magic_cmd=$lt_cv_file_magic_cmd
4993
deplibs_check_method=$lt_cv_deplibs_check_method
4994
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4996
_LT_DECL([], [deplibs_check_method], [1],
4997
[Method to check whether dependent libraries are shared objects])
4998
_LT_DECL([], [file_magic_cmd], [1],
4999
[Command to use when deplibs_check_method == "file_magic"])
5000
])# _LT_CHECK_MAGIC_METHOD
5005
# find the pathname to a BSD- or MS-compatible name lister
5006
AC_DEFUN([LT_PATH_NM],
5007
[AC_REQUIRE([AC_PROG_CC])dnl
5008
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5009
[if test -n "$NM"; then
5010
# Let the user override the test.
5013
lt_nm_to_check="${ac_tool_prefix}nm"
5014
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5015
lt_nm_to_check="$lt_nm_to_check nm"
5017
for lt_tmp_nm in $lt_nm_to_check; do
5018
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5021
test -z "$ac_dir" && ac_dir=.
5022
tmp_nm="$ac_dir/$lt_tmp_nm"
5023
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5024
# Check to see if the nm accepts a BSD-compat flag.
5025
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5026
# nm: unknown option "B" ignored
5027
# Tru64's nm complains that /dev/null is an invalid object file
5028
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5029
*/dev/null* | *'Invalid file or object type'*)
5030
lt_cv_path_NM="$tmp_nm -B"
5034
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5036
lt_cv_path_NM="$tmp_nm -p"
5040
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5041
continue # so that we can try to find one that supports BSD flags
5050
: ${lt_cv_path_NM=no}
5052
if test "$lt_cv_path_NM" != "no"; then
5055
# Didn't find any BSD compatible name lister, look for dumpbin.
5056
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
5058
if test "$DUMPBIN" != ":"; then
5062
test -z "$NM" && NM=nm
5064
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
5066
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5067
[lt_cv_nm_interface="BSD nm"
5068
echo "int some_variable = 0;" > conftest.$ac_ext
5069
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5070
(eval "$ac_compile" 2>conftest.err)
5071
cat conftest.err >&AS_MESSAGE_LOG_FD
5072
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5073
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5074
cat conftest.err >&AS_MESSAGE_LOG_FD
5075
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
5076
cat conftest.out >&AS_MESSAGE_LOG_FD
5077
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5078
lt_cv_nm_interface="MS dumpbin"
5084
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
5085
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
5086
dnl aclocal-1.4 backwards compatibility:
5087
dnl AC_DEFUN([AM_PROG_NM], [])
5088
dnl AC_DEFUN([AC_PROG_NM], [])
5093
# check for math library
5094
AC_DEFUN([LT_LIB_M],
5095
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5098
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
5099
# These system don't have libm, or don't need it
5102
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5103
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5106
AC_CHECK_LIB(m, cos, LIBM="-lm")
5113
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5114
dnl aclocal-1.4 backwards compatibility:
5115
dnl AC_DEFUN([AC_CHECK_LIBM], [])
5118
# _LT_COMPILER_NO_RTTI([TAGNAME])
5119
# -------------------------------
5120
m4_defun([_LT_COMPILER_NO_RTTI],
5121
[m4_require([_LT_TAG_COMPILER])dnl
5123
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5125
if test "$GCC" = yes; then
5126
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5128
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5129
lt_cv_prog_compiler_rtti_exceptions,
5130
[-fno-rtti -fno-exceptions], [],
5131
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5133
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5134
[Compiler flag to turn off builtin functions])
5135
])# _LT_COMPILER_NO_RTTI
5138
# _LT_CMD_GLOBAL_SYMBOLS
5139
# ----------------------
5140
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5141
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5142
AC_REQUIRE([AC_PROG_CC])dnl
5143
AC_REQUIRE([LT_PATH_NM])dnl
5144
AC_REQUIRE([LT_PATH_LD])dnl
5145
m4_require([_LT_DECL_SED])dnl
5146
m4_require([_LT_DECL_EGREP])dnl
5147
m4_require([_LT_TAG_COMPILER])dnl
5149
# Check for command to grab the raw symbol name followed by C symbol from nm.
5150
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5151
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5153
# These are sane defaults that work on at least a few old systems.
5154
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5156
# Character class describing NM global symbol codes.
5157
symcode='[[BCDEGRST]]'
5159
# Regexp to match symbols that can be accessed directly from C.
5160
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5162
# Define system-specific variables.
5167
cygwin* | mingw* | pw32* | cegcc*)
5168
symcode='[[ABCDGISTW]]'
5171
if test "$host_cpu" = ia64; then
5172
symcode='[[ABCDEGRST]]'
5176
symcode='[[BCDEGRST]]'
5179
symcode='[[BCDEGQRST]]'
5190
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5194
symcode='[[DFNSTU]]'
5198
# If we're using GNU nm, then use its standard symbol codes.
5199
case `$NM -V 2>&1` in
5200
*GNU* | *'with BFD'*)
5201
symcode='[[ABCDGIRSTW]]' ;;
5204
# Transform an extracted symbol line into a proper C declaration.
5205
# Some systems (esp. on ia64) link data and code symbols differently,
5206
# so use this general approach.
5207
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5209
# Transform an extracted symbol line into symbol name and symbol address
5210
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
5211
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5213
# Handle CRLF in mingw tool chain
5217
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5221
# Try without a prefix underscore, then with it.
5222
for ac_symprfx in "" "_"; do
5224
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5225
symxfrm="\\1 $ac_symprfx\\2 \\2"
5227
# Write the raw and C identifiers.
5228
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5229
# Fake it for dumpbin and say T for any non-static function
5230
# and D for any global variable.
5231
# Also find C++ and __fastcall symbols from MSVC++,
5232
# which start with @ or ?.
5233
lt_cv_sys_global_symbol_pipe="$AWK ['"\
5234
" {last_section=section; section=\$ 3};"\
5235
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5236
" \$ 0!~/External *\|/{next};"\
5237
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5238
" {if(hide[section]) next};"\
5239
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5240
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5241
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5242
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5243
" ' prfx=^$ac_symprfx]"
5245
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5248
# Check to see that the pipe works correctly.
5252
cat > conftest.$ac_ext <<_LT_EOF
5257
void nm_test_func(void);
5258
void nm_test_func(void){}
5262
int main(){nm_test_var='a';nm_test_func();return(0);}
5265
if AC_TRY_EVAL(ac_compile); then
5266
# Now try to grab the symbols.
5268
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5269
# Try sorting and uniquifying the output.
5270
if sort "$nlist" | uniq > "$nlist"T; then
5271
mv -f "$nlist"T "$nlist"
5276
# Make sure that we snagged all the symbols we need.
5277
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5278
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5279
cat <<_LT_EOF > conftest.$ac_ext
5285
# Now generate the symbol file.
5286
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5288
cat <<_LT_EOF >> conftest.$ac_ext
5290
/* The mapping between symbol names and symbols. */
5295
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5297
{ "@PROGRAM@", (void *) 0 },
5299
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5300
cat <<\_LT_EOF >> conftest.$ac_ext
5304
/* This works around a problem in FreeBSD linker */
5305
#ifdef FREEBSD_WORKAROUND
5306
static const void *lt_preloaded_setup() {
5307
return lt__PROGRAM__LTX_preloaded_symbols;
5315
# Now try linking the two files.
5316
mv conftest.$ac_objext conftstm.$ac_objext
5317
lt_save_LIBS="$LIBS"
5318
lt_save_CFLAGS="$CFLAGS"
5319
LIBS="conftstm.$ac_objext"
5320
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5321
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5324
LIBS="$lt_save_LIBS"
5325
CFLAGS="$lt_save_CFLAGS"
5327
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5330
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5333
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5336
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5337
cat conftest.$ac_ext >&5
5339
rm -rf conftest* conftst*
5341
# Do not use the global_symbol_pipe unless it works.
5342
if test "$pipe_works" = yes; then
5345
lt_cv_sys_global_symbol_pipe=
5349
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5350
lt_cv_sys_global_symbol_to_cdecl=
5352
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5353
AC_MSG_RESULT(failed)
5358
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5359
[Take the output of nm and produce a listing of raw symbols and C names])
5360
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5361
[Transform the output of nm in a proper C declaration])
5362
_LT_DECL([global_symbol_to_c_name_address],
5363
[lt_cv_sys_global_symbol_to_c_name_address], [1],
5364
[Transform the output of nm in a C name address pair])
5365
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5366
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5367
[Transform the output of nm in a C name address pair when lib prefix is needed])
5368
]) # _LT_CMD_GLOBAL_SYMBOLS
5371
# _LT_COMPILER_PIC([TAGNAME])
5372
# ---------------------------
5373
m4_defun([_LT_COMPILER_PIC],
5374
[m4_require([_LT_TAG_COMPILER])dnl
5375
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
5376
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5377
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5379
AC_MSG_CHECKING([for $compiler option to produce PIC])
5380
m4_if([$1], [CXX], [
5381
# C++ specific cases for pic, static, wl, etc.
5382
if test "$GXX" = yes; then
5383
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5384
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5388
# All AIX code is PIC.
5389
if test "$host_cpu" = ia64; then
5390
# AIX 5 now supports IA64 processor
5391
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5398
# see comment about AmigaOS4 .so support
5399
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5402
# FIXME: we need at least 68020 code to build shared libraries, but
5403
# adding the `-m68020' flag to GCC prevents building anything better,
5405
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5410
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5411
# PIC is the default for these OSes.
5413
mingw* | cygwin* | os2* | pw32* | cegcc*)
5414
# This hack is so that the source file can tell whether it is being
5415
# built for inclusion in a dll (and should export symbols for example).
5416
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5417
# (--disable-auto-import) libraries
5418
m4_if([$1], [GCJ], [],
5419
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5421
darwin* | rhapsody*)
5422
# PIC is the default on this platform
5423
# Common symbols not allowed in MH_DYLIB files
5424
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5427
# DJGPP does not support shared libraries at all
5428
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5431
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5432
# Instead, we relocate shared libraries at runtime.
5435
if test -d /usr/nec; then
5436
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5440
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5441
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5442
# sets the default TLS model and affects inlining.
5447
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5452
# QNX uses GNU C++, but need to define -shared option too, otherwise
5454
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5457
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5463
# All AIX code is PIC.
5464
if test "$host_cpu" = ia64; then
5465
# AIX 5 now supports IA64 processor
5466
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5468
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5472
case $cc_basename in
5474
# Green Hills C++ Compiler
5475
# _LT_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"
5480
case $cc_basename in
5482
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5485
# Green Hills C++ Compiler
5486
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5492
freebsd* | dragonfly*)
5493
# FreeBSD uses GNU C++
5495
hpux9* | hpux10* | hpux11*)
5496
case $cc_basename in
5498
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5499
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5500
if test "$host_cpu" != ia64; then
5501
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5505
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5506
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5512
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5521
# This is c89, which is MS Visual C++ (no shared libs)
5522
# Anyone wants to do a port?
5524
irix5* | irix6* | nonstopux*)
5525
case $cc_basename in
5527
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5528
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5529
# CC pic flag -KPIC is the default.
5535
linux* | k*bsd*-gnu)
5536
case $cc_basename in
5539
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5540
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5543
# old Intel C++ for x86_64 which still supported -KPIC.
5544
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5545
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5546
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5549
# Intel C++, used to be incompatible with GCC.
5550
# ICC 10 doesn't accept -KPIC any more.
5551
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5552
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5553
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5556
# Portland Group C++ compiler
5557
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5558
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5559
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5563
# Make sure the PIC flag is empty. It appears that all Alpha
5564
# Linux and Compaq Tru64 Unix objects are PIC.
5565
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5566
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5570
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5571
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5572
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5575
case `$CC -V 2>&1 | sed 5q` in
5578
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5579
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5580
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5591
case $cc_basename in
5593
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5602
# QNX uses GNU C++, but need to define -shared option too, otherwise
5604
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5606
osf3* | osf4* | osf5*)
5607
case $cc_basename in
5609
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5612
# Rational C++ 2.4.1
5613
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5616
# Digital/Compaq C++
5617
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5618
# Make sure the PIC flag is empty. It appears that all Alpha
5619
# Linux and Compaq Tru64 Unix objects are PIC.
5620
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5621
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5630
case $cc_basename in
5632
# Sun C++ 4.2, 5.x and Centerline C++
5633
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5634
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5635
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5638
# Green Hills C++ Compiler
5639
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5646
case $cc_basename in
5649
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5650
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5654
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5660
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5661
case $cc_basename in
5663
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5664
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5665
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5670
case $cc_basename in
5672
# NonStop-UX NCC 3.20
5673
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5682
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5688
if test "$GCC" = yes; then
5689
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5690
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5694
# All AIX code is PIC.
5695
if test "$host_cpu" = ia64; then
5696
# AIX 5 now supports IA64 processor
5697
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5704
# see comment about AmigaOS4 .so support
5705
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5708
# FIXME: we need at least 68020 code to build shared libraries, but
5709
# adding the `-m68020' flag to GCC prevents building anything better,
5711
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5716
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5717
# PIC is the default for these OSes.
5720
mingw* | cygwin* | pw32* | os2* | cegcc*)
5721
# This hack is so that the source file can tell whether it is being
5722
# built for inclusion in a dll (and should export symbols for example).
5723
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5724
# (--disable-auto-import) libraries
5725
m4_if([$1], [GCJ], [],
5726
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5729
darwin* | rhapsody*)
5730
# PIC is the default on this platform
5731
# Common symbols not allowed in MH_DYLIB files
5732
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5736
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5737
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5738
# sets the default TLS model and affects inlining.
5744
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5750
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5751
# Instead, we relocate shared libraries at runtime.
5755
# Just because we use GCC doesn't mean we suddenly get shared libraries
5756
# on systems that don't support them.
5757
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5762
# QNX uses GNU C++, but need to define -shared option too, otherwise
5764
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5768
if test -d /usr/nec; then
5769
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5774
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5778
# PORTME Check for flag to pass linker flags through the system compiler.
5781
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5782
if test "$host_cpu" = ia64; then
5783
# AIX 5 now supports IA64 processor
5784
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5786
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5790
mingw* | cygwin* | pw32* | os2* | cegcc*)
5791
# This hack is so that the source file can tell whether it is being
5792
# built for inclusion in a dll (and should export symbols for example).
5793
m4_if([$1], [GCJ], [],
5794
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5797
hpux9* | hpux10* | hpux11*)
5798
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5799
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5806
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5809
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5810
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5813
irix5* | irix6* | nonstopux*)
5814
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5815
# PIC (with -KPIC) is the default.
5816
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5819
linux* | k*bsd*-gnu)
5820
case $cc_basename in
5821
# old Intel for x86_64 which still supported -KPIC.
5823
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5824
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5825
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5827
# icc used to be incompatible with GCC.
5828
# ICC 10 doesn't accept -KPIC any more.
5830
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5831
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5832
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5834
# Lahey Fortran 8.1.
5836
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5837
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5838
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5840
pgcc* | pgf77* | pgf90* | pgf95*)
5841
# Portland Group compilers (*not* the Pentium gcc compiler,
5842
# which looks to be a dead project)
5843
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5844
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5845
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5848
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5849
# All Alpha code is PIC.
5850
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5853
# IBM XL C 8.0/Fortran 10.1 on PPC
5854
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5855
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5856
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5859
case `$CC -V 2>&1 | sed 5q` in
5862
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5863
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5864
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5867
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5868
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5869
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5870
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5878
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5879
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5883
# QNX uses GNU C++, but need to define -shared option too, otherwise
5885
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5888
osf3* | osf4* | osf5*)
5889
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5890
# All OSF/1 code is PIC.
5891
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5895
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5899
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5900
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5901
case $cc_basename in
5903
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5905
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5910
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5911
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5912
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5915
sysv4 | sysv4.2uw2* | sysv4.3*)
5916
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5917
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5918
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5922
if test -d /usr/nec ;then
5923
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5924
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5928
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5929
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5930
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5931
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5935
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5936
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5940
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5941
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5945
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5951
# For platforms which do not support PIC, -DPIC is meaningless:
5953
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5956
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5959
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5960
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5961
[How to pass a linker flag through the compiler])
5964
# Check to make sure the PIC flag actually works.
5966
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5967
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5968
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5969
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5970
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5972
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5974
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5975
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5977
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5978
[Additional compiler flags for building library objects])
5981
# Check to make sure the static flag actually works.
5983
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5984
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5985
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5986
$lt_tmp_static_flag,
5988
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5989
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5990
[Compiler flag to prevent dynamic linking])
5991
])# _LT_COMPILER_PIC
5994
# _LT_LINKER_SHLIBS([TAGNAME])
5995
# ----------------------------
5996
# See if the linker supports building shared libraries.
5997
m4_defun([_LT_LINKER_SHLIBS],
5998
[AC_REQUIRE([LT_PATH_LD])dnl
5999
AC_REQUIRE([LT_PATH_NM])dnl
6000
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6001
m4_require([_LT_DECL_EGREP])dnl
6002
m4_require([_LT_DECL_SED])dnl
6003
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6004
m4_require([_LT_TAG_COMPILER])dnl
6005
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6006
m4_if([$1], [CXX], [
6007
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6010
# If we're using GNU nm, then we don't want the "-C" option.
6011
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6012
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6013
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6015
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6019
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6021
cygwin* | mingw* | cegcc*)
6022
_LT_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'
6025
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6028
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6031
_LT_TAGVAR(allow_undefined_flag, $1)=
6032
_LT_TAGVAR(always_export_symbols, $1)=no
6033
_LT_TAGVAR(archive_cmds, $1)=
6034
_LT_TAGVAR(archive_expsym_cmds, $1)=
6035
_LT_TAGVAR(compiler_needs_object, $1)=no
6036
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6037
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6038
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6039
_LT_TAGVAR(hardcode_automatic, $1)=no
6040
_LT_TAGVAR(hardcode_direct, $1)=no
6041
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6042
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6043
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6044
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6045
_LT_TAGVAR(hardcode_minus_L, $1)=no
6046
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6047
_LT_TAGVAR(inherit_rpath, $1)=no
6048
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6049
_LT_TAGVAR(module_cmds, $1)=
6050
_LT_TAGVAR(module_expsym_cmds, $1)=
6051
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
6052
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6053
_LT_TAGVAR(thread_safe_flag_spec, $1)=
6054
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6055
# include_expsyms should be a list of space-separated symbols to be *always*
6056
# included in the symbol list
6057
_LT_TAGVAR(include_expsyms, $1)=
6058
# exclude_expsyms can be an extended regexp of symbols to exclude
6059
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6060
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6061
# as well as any symbol that contains `d'.
6062
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6063
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6064
# platforms (ab)use it in PIC code, but their linkers get confused if
6065
# the symbol is explicitly referenced. Since portable code cannot
6066
# rely on this symbol name, it's probably fine to never include it in
6067
# preloaded symbol tables.
6068
# Exclude shared library initialization/finalization symbols.
6069
dnl Note also adjust exclude_expsyms for C++ above.
6070
extract_expsyms_cmds=
6073
cygwin* | mingw* | pw32* | cegcc*)
6074
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6075
# When not using gcc, we currently assume that we are using
6076
# Microsoft Visual C++.
6077
if test "$GCC" != yes; then
6082
# we just hope/assume this is gcc and not c89 (= MSVC++)
6090
_LT_TAGVAR(ld_shlibs, $1)=yes
6091
if test "$with_gnu_ld" = yes; then
6092
# If archive_cmds runs LD, not CC, wlarc should be empty
6095
# Set some defaults for GNU ld with shared library support. These
6096
# are reset later if shared libraries are not supported. Putting them
6097
# here allows them to be overridden if necessary.
6098
runpath_var=LD_RUN_PATH
6099
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6100
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6101
# ancient GNU ld didn't support --whole-archive et. al.
6102
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6103
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6105
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6107
supports_anon_versioning=no
6108
case `$LD -v 2>&1` in
6109
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6110
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6111
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6112
*\ 2.11.*) ;; # other 2.11 versions
6113
*) supports_anon_versioning=yes ;;
6116
# See if GNU ld supports shared libraries.
6119
# On AIX/PPC, the GNU linker is very broken
6120
if test "$host_cpu" != ia64; then
6121
_LT_TAGVAR(ld_shlibs, $1)=no
6124
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6125
*** to be unable to reliably create shared libraries on AIX.
6126
*** Therefore, libtool is disabling shared libraries support. If you
6127
*** really care for shared libraries, you may want to modify your PATH
6128
*** so that a non-GNU linker is found, and then restart.
6137
# see comment about AmigaOS4 .so support
6138
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6139
_LT_TAGVAR(archive_expsym_cmds, $1)=''
6142
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6143
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6144
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6150
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6151
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6152
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6153
# support --undefined. This deserves some investigation. FIXME
6154
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6156
_LT_TAGVAR(ld_shlibs, $1)=no
6160
cygwin* | mingw* | pw32* | cegcc*)
6161
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6162
# as there is no search path for DLLs.
6163
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6164
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6165
_LT_TAGVAR(always_export_symbols, $1)=no
6166
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6167
_LT_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'
6169
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6170
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6171
# If the export-symbols file already is a .def file (1st line
6172
# is EXPORTS), use it as is; otherwise, prepend...
6173
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6174
cp $export_symbols $output_objdir/$soname.def;
6176
echo EXPORTS > $output_objdir/$soname.def;
6177
cat $export_symbols >> $output_objdir/$soname.def;
6179
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6181
_LT_TAGVAR(ld_shlibs, $1)=no
6186
_LT_TAGVAR(hardcode_direct, $1)=no
6187
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6188
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6189
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6190
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6191
# Instead, shared libraries are loaded at an image base (0x10000000 by
6192
# default) and relocated if they conflict, which is a slow very memory
6193
# consuming and fragmenting process. To avoid this, we pick a random,
6194
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6195
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6196
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6197
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6200
gnu* | linux* | tpf* | k*bsd*-gnu)
6202
if test "$host_os" = linux-dietlibc; then
6203
case $cc_basename in
6204
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6207
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6208
&& test "$tmp_diet" = no
6211
tmp_sharedflag='-shared'
6212
case $cc_basename,$host_cpu in
6213
pgcc*) # Portland Group C compiler
6214
_LT_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'
6215
tmp_addflag=' $pic_flag'
6217
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6218
_LT_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'
6219
tmp_addflag=' $pic_flag -Mnomain' ;;
6220
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6221
tmp_addflag=' -i_dynamic' ;;
6222
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6223
tmp_addflag=' -i_dynamic -nofor_main' ;;
6224
ifc* | ifort*) # Intel Fortran compiler
6225
tmp_addflag=' -nofor_main' ;;
6226
lf95*) # Lahey Fortran 8.1
6227
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6228
tmp_sharedflag='--shared' ;;
6229
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6230
tmp_sharedflag='-qmkshrobj'
6233
case `$CC -V 2>&1 | sed 5q` in
6234
*Sun\ C*) # Sun C 5.9
6235
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6236
_LT_TAGVAR(compiler_needs_object, $1)=yes
6237
tmp_sharedflag='-G' ;;
6238
*Sun\ F*) # Sun Fortran 8.3
6239
tmp_sharedflag='-G' ;;
6241
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6243
if test "x$supports_anon_versioning" = xyes; then
6244
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6245
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6246
echo "local: *; };" >> $output_objdir/$libname.ver~
6247
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6250
case $cc_basename in
6252
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6253
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6254
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6255
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6256
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6257
if test "x$supports_anon_versioning" = xyes; then
6258
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6259
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6260
echo "local: *; };" >> $output_objdir/$libname.ver~
6261
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6266
_LT_TAGVAR(ld_shlibs, $1)=no
6271
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6272
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6275
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6276
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6281
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6282
_LT_TAGVAR(ld_shlibs, $1)=no
6285
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6286
*** create shared libraries on Solaris systems. Therefore, libtool
6287
*** is disabling shared libraries support. We urge you to upgrade GNU
6288
*** binutils to release 2.9.1 or newer. Another option is to modify
6289
*** your PATH or compiler configuration so that the native linker is
6290
*** used, and then restart.
6293
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6294
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6295
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6297
_LT_TAGVAR(ld_shlibs, $1)=no
6301
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6302
case `$LD -v 2>&1` in
6303
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6304
_LT_TAGVAR(ld_shlibs, $1)=no
6307
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6308
*** reliably create shared libraries on SCO systems. Therefore, libtool
6309
*** is disabling shared libraries support. We urge you to upgrade GNU
6310
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6311
*** your PATH or compiler configuration so that the native linker is
6312
*** used, and then restart.
6317
# For security reasons, it is highly recommended that you always
6318
# use absolute paths for naming shared libraries, and exclude the
6319
# DT_RUNPATH tag from executables and libraries. But doing so
6320
# requires that you compile everything twice, which is a pain.
6321
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6322
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6323
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6324
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6326
_LT_TAGVAR(ld_shlibs, $1)=no
6333
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6335
_LT_TAGVAR(hardcode_direct, $1)=yes
6336
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6340
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6341
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6342
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6344
_LT_TAGVAR(ld_shlibs, $1)=no
6349
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6351
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6352
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6353
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6356
# PORTME fill in a description of your system's linker (not GNU ld)
6359
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6360
_LT_TAGVAR(always_export_symbols, $1)=yes
6361
_LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6362
# Note: this linker hardcodes the directories in LIBPATH if there
6363
# are no directories specified by -L.
6364
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6365
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6366
# Neither direct hardcoding nor static linking is supported with a
6368
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6373
if test "$host_cpu" = ia64; then
6374
# On IA64, the linker does run time linking by default, so we don't
6375
# have to do anything special.
6376
aix_use_runtimelinking=no
6377
exp_sym_flag='-Bexport'
6380
# If we're using GNU nm, then we don't want the "-C" option.
6381
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6382
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6383
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6385
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6387
aix_use_runtimelinking=no
6389
# Test if we are trying to use run time linking or normal
6390
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6391
# need to do runtime linking.
6392
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6393
for ld_flag in $LDFLAGS; do
6394
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6395
aix_use_runtimelinking=yes
6402
exp_sym_flag='-bexport'
6403
no_entry_flag='-bnoentry'
6406
# When large executables or shared objects are built, AIX ld can
6407
# have problems creating the table of contents. If linking a library
6408
# or program results in "error TOC overflow" add -mminimal-toc to
6409
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6410
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6412
_LT_TAGVAR(archive_cmds, $1)=''
6413
_LT_TAGVAR(hardcode_direct, $1)=yes
6414
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6415
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6416
_LT_TAGVAR(link_all_deplibs, $1)=yes
6417
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6419
if test "$GCC" = yes; then
6420
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6421
# We only want to do this on AIX 4.2 and lower, the check
6422
# below for broken collect2 doesn't work under 4.3+
6423
collect2name=`${CC} -print-prog-name=collect2`
6424
if test -f "$collect2name" &&
6425
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6427
# We have reworked collect2
6430
# We have old collect2
6431
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6432
# It fails to find uninstalled libraries when the uninstalled
6433
# path is not listed in the libpath. Setting hardcode_minus_L
6434
# to unsupported forces relinking
6435
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6436
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6437
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6441
shared_flag='-shared'
6442
if test "$aix_use_runtimelinking" = yes; then
6443
shared_flag="$shared_flag "'${wl}-G'
6447
if test "$host_cpu" = ia64; then
6448
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6449
# chokes on -Wl,-G. The following line is correct:
6452
if test "$aix_use_runtimelinking" = yes; then
6453
shared_flag='${wl}-G'
6455
shared_flag='${wl}-bM:SRE'
6460
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6461
# It seems that -bexpall does not export symbols beginning with
6462
# underscore (_), so it is better to generate a list of symbols to export.
6463
_LT_TAGVAR(always_export_symbols, $1)=yes
6464
if test "$aix_use_runtimelinking" = yes; then
6465
# Warning - without using the other runtime loading flags (-brtl),
6466
# -berok will link without error, but may produce a broken library.
6467
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6468
# Determine the default libpath from the value encoded in an
6470
_LT_SYS_MODULE_PATH_AIX
6471
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6472
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6474
if test "$host_cpu" = ia64; then
6475
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6476
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6477
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6479
# Determine the default libpath from the value encoded in an
6481
_LT_SYS_MODULE_PATH_AIX
6482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6483
# Warning - without using the other run time loading flags,
6484
# -berok will link without error, but may produce a broken library.
6485
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6486
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6487
# Exported symbols can be pulled into shared objects from archives
6488
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6489
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6490
# This is similar to how AIX traditionally builds its shared libraries.
6491
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6499
# see comment about AmigaOS4 .so support
6500
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6501
_LT_TAGVAR(archive_expsym_cmds, $1)=''
6504
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6505
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6506
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6512
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6515
cygwin* | mingw* | pw32* | cegcc*)
6516
# When not using gcc, we currently assume that we are using
6517
# Microsoft Visual C++.
6518
# hardcode_libdir_flag_spec is actually meaningless, as there is
6519
# no search path for DLLs.
6520
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6521
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6522
# Tell ltmain to make .lib files, not .a files.
6524
# Tell ltmain to make .dll files, not .so files.
6526
# FIXME: Setting linknames here is a bad hack.
6527
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6528
# The linker will automatically build a .lib file if we build a DLL.
6529
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6530
# FIXME: Should let the user specify the lib program.
6531
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6532
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6533
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6536
darwin* | rhapsody*)
6537
_LT_DARWIN_LINKER_FEATURES($1)
6541
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6542
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6543
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6547
_LT_TAGVAR(ld_shlibs, $1)=no
6550
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6551
# support. Future versions do this automatically, but an explicit c++rt0.o
6552
# does not break anything, and helps significantly (at the cost of a little
6555
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6556
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6557
_LT_TAGVAR(hardcode_direct, $1)=yes
6558
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6561
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6563
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6564
_LT_TAGVAR(hardcode_direct, $1)=yes
6565
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6566
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6569
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6570
freebsd* | dragonfly*)
6571
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6572
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6573
_LT_TAGVAR(hardcode_direct, $1)=yes
6574
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6578
if test "$GCC" = yes; then
6579
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6581
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6583
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6584
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6585
_LT_TAGVAR(hardcode_direct, $1)=yes
6587
# hardcode_minus_L: Not really in the search PATH,
6588
# but as the default location of the library.
6589
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6590
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6595
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6597
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6599
if test "$with_gnu_ld" = no; then
6600
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6601
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6602
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6603
_LT_TAGVAR(hardcode_direct, $1)=yes
6604
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6605
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6606
# hardcode_minus_L: Not really in the search PATH,
6607
# but as the default location of the library.
6608
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6613
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6616
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6619
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6622
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6628
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6631
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6634
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6638
if test "$with_gnu_ld" = no; then
6639
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6640
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6644
_LT_TAGVAR(hardcode_direct, $1)=no
6645
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6648
_LT_TAGVAR(hardcode_direct, $1)=yes
6649
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6650
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6652
# hardcode_minus_L: Not really in the search PATH,
6653
# but as the default location of the library.
6654
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6660
irix5* | irix6* | nonstopux*)
6661
if test "$GCC" = yes; then
6662
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6663
# Try to use the -exported_symbol ld option, if it does not
6664
# work, assume that -exports_file does not work either and
6665
# implicitly export all symbols.
6666
save_LDFLAGS="$LDFLAGS"
6667
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6668
AC_LINK_IFELSE(int foo(void) {},
6669
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6671
LDFLAGS="$save_LDFLAGS"
6673
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6674
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6676
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6677
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6678
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6679
_LT_TAGVAR(inherit_rpath, $1)=yes
6680
_LT_TAGVAR(link_all_deplibs, $1)=yes
6684
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6685
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6687
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6689
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6690
_LT_TAGVAR(hardcode_direct, $1)=yes
6691
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6695
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6696
_LT_TAGVAR(hardcode_direct, $1)=yes
6697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6698
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6699
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6706
if test -f /usr/libexec/ld.so; then
6707
_LT_TAGVAR(hardcode_direct, $1)=yes
6708
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6709
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6710
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6711
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6712
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6713
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6714
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6717
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6718
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6719
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6722
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6723
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6728
_LT_TAGVAR(ld_shlibs, $1)=no
6733
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6734
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6735
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6736
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6737
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6741
if test "$GCC" = yes; then
6742
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6743
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6745
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6746
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6748
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6749
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6750
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6753
osf4* | osf5*) # as osf3* with the addition of -msym flag
6754
if test "$GCC" = yes; then
6755
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6756
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6757
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6759
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6760
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6761
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6762
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6764
# Both c and cxx compiler support -rpath directly
6765
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6767
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6768
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6772
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6773
if test "$GCC" = yes; then
6775
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6777
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6779
case `$CC -V 2>&1` in
6782
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6783
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6784
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6788
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6789
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6790
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6794
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6795
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6797
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6799
# The compiler driver will combine and reorder linker options,
6800
# but understands `-z linker_flag'. GCC discards it without `$wl',
6801
# but is careful enough not to reorder.
6802
# Supported since Solaris 2.6 (maybe 2.5.1?)
6803
if test "$GCC" = yes; then
6804
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6806
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6810
_LT_TAGVAR(link_all_deplibs, $1)=yes
6814
if test "x$host_vendor" = xsequent; then
6815
# Use $CC to link under sequent, because it throws in some extra .o
6816
# files that make .init and .fini sections work.
6817
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6819
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6821
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6822
_LT_TAGVAR(hardcode_direct, $1)=yes
6823
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6824
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6828
case $host_vendor in
6830
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6831
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6834
## LD is ld it makes a PLAMLIB
6835
## CC just makes a GrossModule.
6836
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6837
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6838
_LT_TAGVAR(hardcode_direct, $1)=no
6841
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6842
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6845
runpath_var='LD_RUN_PATH'
6846
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6850
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6851
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6852
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6856
if test -d /usr/nec; then
6857
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6858
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6859
runpath_var=LD_RUN_PATH
6860
hardcode_runpath_var=yes
6861
_LT_TAGVAR(ld_shlibs, $1)=yes
6865
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6866
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6867
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6868
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6869
runpath_var='LD_RUN_PATH'
6871
if test "$GCC" = yes; then
6872
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6873
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6875
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6876
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6880
sysv5* | sco3.2v5* | sco5v6*)
6881
# Note: We can NOT use -z defs as we might desire, because we do not
6882
# link with -lc, and that would cause any symbols used from libc to
6883
# always be unresolved, which means just about no library would
6884
# ever link correctly. If we're not using GNU ld we use -z text
6885
# though, which does catch some bad symbols but isn't as heavy-handed
6887
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6888
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6889
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6890
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6891
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6892
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6893
_LT_TAGVAR(link_all_deplibs, $1)=yes
6894
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6895
runpath_var='LD_RUN_PATH'
6897
if test "$GCC" = yes; then
6898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6899
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6901
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6902
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6907
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6908
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6909
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6913
_LT_TAGVAR(ld_shlibs, $1)=no
6917
if test x$host_vendor = xsni; then
6919
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6920
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6926
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6927
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6929
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6931
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6932
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6933
_LT_DECL([], [extract_expsyms_cmds], [2],
6934
[The commands to extract the exported symbol list from a shared archive])
6937
# Do we need to explicitly link libc?
6939
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6941
# Assume -lc should be added
6942
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6944
if test "$enable_shared" = yes && test "$GCC" = yes; then
6945
case $_LT_TAGVAR(archive_cmds, $1) in
6947
# FIXME: we may have to deal with multi-command sequences.
6950
# Test whether the compiler implicitly links with -lc since on some
6951
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6952
# to ld, don't add -lc before -lgcc.
6953
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6955
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6957
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6960
libobjs=conftest.$ac_objext
6962
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6963
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6969
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6970
_LT_TAGVAR(allow_undefined_flag, $1)=
6971
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6973
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6975
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6977
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6979
cat conftest.err 1>&5
6982
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6989
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6990
[Whether or not to add -lc for building shared libraries])
6991
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6992
[enable_shared_with_static_runtimes], [0],
6993
[Whether or not to disallow shared libs when runtime libs are static])
6994
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6995
[Compiler flag to allow reflexive dlopens])
6996
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6997
[Compiler flag to generate shared objects directly from archives])
6998
_LT_TAGDECL([], [compiler_needs_object], [1],
6999
[Whether the compiler copes with passing no objects directly])
7000
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7001
[Create an old-style archive from a shared archive])
7002
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7003
[Create a temporary old-style archive to link instead of a shared archive])
7004
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7005
_LT_TAGDECL([], [archive_expsym_cmds], [2])
7006
_LT_TAGDECL([], [module_cmds], [2],
7007
[Commands used to build a loadable module if different from building
7009
_LT_TAGDECL([], [module_expsym_cmds], [2])
7010
_LT_TAGDECL([], [with_gnu_ld], [1],
7011
[Whether we are building with GNU ld or not])
7012
_LT_TAGDECL([], [allow_undefined_flag], [1],
7013
[Flag that allows shared libraries with undefined symbols to be built])
7014
_LT_TAGDECL([], [no_undefined_flag], [1],
7015
[Flag that enforces no undefined symbols])
7016
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7017
[Flag to hardcode $libdir into a binary during linking.
7018
This must work even if $libdir does not exist])
7019
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
7020
[[If ld is used when linking, flag to hardcode $libdir into a binary
7021
during linking. This must work even if $libdir does not exist]])
7022
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7023
[Whether we need a single "-rpath" flag with a separated argument])
7024
_LT_TAGDECL([], [hardcode_direct], [0],
7025
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7026
DIR into the resulting binary])
7027
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
7028
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7029
DIR into the resulting binary and the resulting library dependency is
7030
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
7031
library is relocated])
7032
_LT_TAGDECL([], [hardcode_minus_L], [0],
7033
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7034
into the resulting binary])
7035
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7036
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7037
into the resulting binary])
7038
_LT_TAGDECL([], [hardcode_automatic], [0],
7039
[Set to "yes" if building a shared library automatically hardcodes DIR
7040
into the library and all subsequent libraries and executables linked
7042
_LT_TAGDECL([], [inherit_rpath], [0],
7043
[Set to yes if linker adds runtime paths of dependent libraries
7044
to runtime path list])
7045
_LT_TAGDECL([], [link_all_deplibs], [0],
7046
[Whether libtool must link a program against all its dependency libraries])
7047
_LT_TAGDECL([], [fix_srcfile_path], [1],
7048
[Fix the shell variable $srcfile for the compiler])
7049
_LT_TAGDECL([], [always_export_symbols], [0],
7050
[Set to "yes" if exported symbols are required])
7051
_LT_TAGDECL([], [export_symbols_cmds], [2],
7052
[The commands to list exported symbols])
7053
_LT_TAGDECL([], [exclude_expsyms], [1],
7054
[Symbols that should not be listed in the preloaded symbols])
7055
_LT_TAGDECL([], [include_expsyms], [1],
7056
[Symbols that must always be exported])
7057
_LT_TAGDECL([], [prelink_cmds], [2],
7058
[Commands necessary for linking programs (against libraries) with templates])
7059
_LT_TAGDECL([], [file_list_spec], [1],
7060
[Specify filename containing input files])
7061
dnl FIXME: Not yet implemented
7062
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7063
dnl [Compiler flag to generate thread safe objects])
7064
])# _LT_LINKER_SHLIBS
7067
# _LT_LANG_C_CONFIG([TAG])
7068
# ------------------------
7069
# Ensure that the configuration variables for a C compiler are suitably
7070
# defined. These variables are subsequently used by _LT_CONFIG to write
7071
# the compiler configuration to `libtool'.
7072
m4_defun([_LT_LANG_C_CONFIG],
7073
[m4_require([_LT_DECL_EGREP])dnl
7077
# Source file extension for C test sources.
7080
# Object file extension for compiled C test sources.
7082
_LT_TAGVAR(objext, $1)=$objext
7084
# Code to be used in simple compile tests
7085
lt_simple_compile_test_code="int some_variable = 0;"
7087
# Code to be used in simple link tests
7088
lt_simple_link_test_code='int main(){return(0);}'
7091
# Save the default compiler, since it gets overwritten when the other
7092
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7093
compiler_DEFAULT=$CC
7095
# save warnings/boilerplate of simple test code
7096
_LT_COMPILER_BOILERPLATE
7097
_LT_LINKER_BOILERPLATE
7099
if test -n "$compiler"; then
7100
_LT_COMPILER_NO_RTTI($1)
7101
_LT_COMPILER_PIC($1)
7102
_LT_COMPILER_C_O($1)
7103
_LT_COMPILER_FILE_LOCKS($1)
7104
_LT_LINKER_SHLIBS($1)
7105
_LT_SYS_DYNAMIC_LINKER($1)
7106
_LT_LINKER_HARDCODE_LIBPATH($1)
7110
# Report which library types will actually be built
7111
AC_MSG_CHECKING([if libtool supports shared libraries])
7112
AC_MSG_RESULT([$can_build_shared])
7114
AC_MSG_CHECKING([whether to build shared libraries])
7115
test "$can_build_shared" = "no" && enable_shared=no
7117
# On AIX, shared libraries and static libraries use the same namespace, and
7118
# are all built from PIC.
7121
test "$enable_shared" = yes && enable_static=no
7122
if test -n "$RANLIB"; then
7123
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7124
postinstall_cmds='$RANLIB $lib'
7129
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7130
test "$enable_shared" = yes && enable_static=no
7134
AC_MSG_RESULT([$enable_shared])
7136
AC_MSG_CHECKING([whether to build static libraries])
7137
# Make sure either enable_shared or enable_static is yes.
7138
test "$enable_shared" = yes || enable_static=yes
7139
AC_MSG_RESULT([$enable_static])
7145
])# _LT_LANG_C_CONFIG
7150
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
7151
# compiler, we have our own version here.
7152
m4_defun([_LT_PROG_CXX],
7154
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
7156
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7157
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7158
(test "X$CXX" != "Xg++"))) ; then
7161
_lt_caught_CXX_error=yes
7163
popdef([AC_MSG_ERROR])
7166
dnl aclocal-1.4 backwards compatibility:
7167
dnl AC_DEFUN([_LT_PROG_CXX], [])
7170
# _LT_LANG_CXX_CONFIG([TAG])
7171
# --------------------------
7172
# Ensure that the configuration variables for a C++ compiler are suitably
7173
# defined. These variables are subsequently used by _LT_CONFIG to write
7174
# the compiler configuration to `libtool'.
7175
m4_defun([_LT_LANG_CXX_CONFIG],
7176
[AC_REQUIRE([_LT_PROG_CXX])dnl
7177
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7178
m4_require([_LT_DECL_EGREP])dnl
7181
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7182
_LT_TAGVAR(allow_undefined_flag, $1)=
7183
_LT_TAGVAR(always_export_symbols, $1)=no
7184
_LT_TAGVAR(archive_expsym_cmds, $1)=
7185
_LT_TAGVAR(compiler_needs_object, $1)=no
7186
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7187
_LT_TAGVAR(hardcode_direct, $1)=no
7188
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7189
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7190
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7191
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7192
_LT_TAGVAR(hardcode_minus_L, $1)=no
7193
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7194
_LT_TAGVAR(hardcode_automatic, $1)=no
7195
_LT_TAGVAR(inherit_rpath, $1)=no
7196
_LT_TAGVAR(module_cmds, $1)=
7197
_LT_TAGVAR(module_expsym_cmds, $1)=
7198
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7199
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7200
_LT_TAGVAR(no_undefined_flag, $1)=
7201
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7202
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7204
# Source file extension for C++ test sources.
7207
# Object file extension for compiled C++ test sources.
7209
_LT_TAGVAR(objext, $1)=$objext
7211
# No sense in running all these tests if we already determined that
7212
# the CXX compiler isn't working. Some variables (like enable_shared)
7213
# are currently assumed to apply to all compilers on this platform,
7214
# and will be corrupted by setting them based on a non-working compiler.
7215
if test "$_lt_caught_CXX_error" != yes; then
7216
# Code to be used in simple compile tests
7217
lt_simple_compile_test_code="int some_variable = 0;"
7219
# Code to be used in simple link tests
7220
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7222
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7225
# save warnings/boilerplate of simple test code
7226
_LT_COMPILER_BOILERPLATE
7227
_LT_LINKER_BOILERPLATE
7229
# Allow CC to be a program name with arguments.
7234
lt_save_with_gnu_ld=$with_gnu_ld
7235
lt_save_path_LD=$lt_cv_path_LD
7236
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7237
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7239
$as_unset lt_cv_prog_gnu_ld
7241
if test -n "${lt_cv_path_LDCXX+set}"; then
7242
lt_cv_path_LD=$lt_cv_path_LDCXX
7244
$as_unset lt_cv_path_LD
7246
test -z "${LDCXX+set}" || LD=$LDCXX
7249
_LT_TAGVAR(compiler, $1)=$CC
7250
_LT_CC_BASENAME([$compiler])
7252
if test -n "$compiler"; then
7253
# We don't want -fno-exception when compiling C++ code, so set the
7254
# no_builtin_flag separately
7255
if test "$GXX" = yes; then
7256
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7258
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7261
if test "$GXX" = yes; then
7262
# Set up default GNU C++ configuration
7266
# Check if GNU C++ uses GNU ld as the underlying linker, since the
7267
# archiving commands below assume that GNU ld is being used.
7268
if test "$with_gnu_ld" = yes; then
7269
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7270
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7272
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7273
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7275
# If archive_cmds runs LD, not CC, wlarc should be empty
7276
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7277
# investigate it a little bit more. (MM)
7280
# ancient GNU ld didn't support --whole-archive et. al.
7281
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7282
$GREP 'no-whole-archive' > /dev/null; then
7283
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7285
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7291
# A generic and very simple default shared library creation
7292
# command for GNU C++ for the case where it uses the native
7293
# linker, instead of GNU ld. If possible, this setting should
7294
# overridden to take advantage of the native linker features on
7295
# the platform it is being used on.
7296
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7299
# Commands to make compiler produce verbose output that lists
7300
# what "hidden" libraries, object files and flags are used when
7301
# linking a shared library.
7302
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7310
# PORTME: fill in a description of your system's C++ link characteristics
7311
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7312
_LT_TAGVAR(ld_shlibs, $1)=yes
7315
# FIXME: insert proper C++ library support
7316
_LT_TAGVAR(ld_shlibs, $1)=no
7319
if test "$host_cpu" = ia64; then
7320
# On IA64, the linker does run time linking by default, so we don't
7321
# have to do anything special.
7322
aix_use_runtimelinking=no
7323
exp_sym_flag='-Bexport'
7326
aix_use_runtimelinking=no
7328
# Test if we are trying to use run time linking or normal
7329
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7330
# need to do runtime linking.
7331
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7332
for ld_flag in $LDFLAGS; do
7335
aix_use_runtimelinking=yes
7343
exp_sym_flag='-bexport'
7344
no_entry_flag='-bnoentry'
7347
# When large executables or shared objects are built, AIX ld can
7348
# have problems creating the table of contents. If linking a library
7349
# or program results in "error TOC overflow" add -mminimal-toc to
7350
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7351
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7353
_LT_TAGVAR(archive_cmds, $1)=''
7354
_LT_TAGVAR(hardcode_direct, $1)=yes
7355
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7356
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7357
_LT_TAGVAR(link_all_deplibs, $1)=yes
7358
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7360
if test "$GXX" = yes; then
7361
case $host_os in aix4.[[012]]|aix4.[[012]].*)
7362
# We only want to do this on AIX 4.2 and lower, the check
7363
# below for broken collect2 doesn't work under 4.3+
7364
collect2name=`${CC} -print-prog-name=collect2`
7365
if test -f "$collect2name" &&
7366
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7368
# We have reworked collect2
7371
# We have old collect2
7372
_LT_TAGVAR(hardcode_direct, $1)=unsupported
7373
# It fails to find uninstalled libraries when the uninstalled
7374
# path is not listed in the libpath. Setting hardcode_minus_L
7375
# to unsupported forces relinking
7376
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7377
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7378
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7381
shared_flag='-shared'
7382
if test "$aix_use_runtimelinking" = yes; then
7383
shared_flag="$shared_flag "'${wl}-G'
7387
if test "$host_cpu" = ia64; then
7388
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7389
# chokes on -Wl,-G. The following line is correct:
7392
if test "$aix_use_runtimelinking" = yes; then
7393
shared_flag='${wl}-G'
7395
shared_flag='${wl}-bM:SRE'
7400
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7401
# It seems that -bexpall does not export symbols beginning with
7402
# underscore (_), so it is better to generate a list of symbols to
7404
_LT_TAGVAR(always_export_symbols, $1)=yes
7405
if test "$aix_use_runtimelinking" = yes; then
7406
# Warning - without using the other runtime loading flags (-brtl),
7407
# -berok will link without error, but may produce a broken library.
7408
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7409
# Determine the default libpath from the value encoded in an empty
7411
_LT_SYS_MODULE_PATH_AIX
7412
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7414
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7416
if test "$host_cpu" = ia64; then
7417
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7418
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7419
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7421
# Determine the default libpath from the value encoded in an
7423
_LT_SYS_MODULE_PATH_AIX
7424
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7425
# Warning - without using the other run time loading flags,
7426
# -berok will link without error, but may produce a broken library.
7427
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7428
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7429
# Exported symbols can be pulled into shared objects from archives
7430
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7431
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7432
# This is similar to how AIX traditionally builds its shared
7434
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7440
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7441
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7442
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7443
# support --undefined. This deserves some investigation. FIXME
7444
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446
_LT_TAGVAR(ld_shlibs, $1)=no
7451
case $cc_basename in
7453
# FIXME: insert proper C++ library support
7454
_LT_TAGVAR(ld_shlibs, $1)=no
7459
cygwin* | mingw* | pw32* | cegcc*)
7460
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7461
# as there is no search path for DLLs.
7462
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7463
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7464
_LT_TAGVAR(always_export_symbols, $1)=no
7465
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7467
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7468
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7469
# If the export-symbols file already is a .def file (1st line
7470
# is EXPORTS), use it as is; otherwise, prepend...
7471
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7472
cp $export_symbols $output_objdir/$soname.def;
7474
echo EXPORTS > $output_objdir/$soname.def;
7475
cat $export_symbols >> $output_objdir/$soname.def;
7477
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7479
_LT_TAGVAR(ld_shlibs, $1)=no
7482
darwin* | rhapsody*)
7483
_LT_DARWIN_LINKER_FEATURES($1)
7487
case $cc_basename in
7489
# FIXME: insert proper C++ library support
7490
_LT_TAGVAR(ld_shlibs, $1)=no
7493
# Green Hills C++ Compiler
7494
# FIXME: insert proper C++ library support
7495
_LT_TAGVAR(ld_shlibs, $1)=no
7498
# FIXME: insert proper C++ library support
7499
_LT_TAGVAR(ld_shlibs, $1)=no
7505
# C++ shared libraries reported to be fairly broken before
7507
_LT_TAGVAR(ld_shlibs, $1)=no
7511
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7514
freebsd* | dragonfly*)
7515
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7517
_LT_TAGVAR(ld_shlibs, $1)=yes
7524
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7525
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7526
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7527
_LT_TAGVAR(hardcode_direct, $1)=yes
7528
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7529
# but as the default
7530
# location of the library.
7532
case $cc_basename in
7534
# FIXME: insert proper C++ library support
7535
_LT_TAGVAR(ld_shlibs, $1)=no
7538
_LT_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'
7539
# Commands to make compiler produce verbose output that lists
7540
# what "hidden" libraries, object files and flags are used when
7541
# linking a shared library.
7543
# There doesn't appear to be a way to prevent this compiler from
7544
# explicitly linking system object files so we need to strip them
7545
# from the output so that they don't get included in the library
7547
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7550
if test "$GXX" = yes; then
7551
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
7553
# FIXME: insert proper C++ library support
7554
_LT_TAGVAR(ld_shlibs, $1)=no
7561
if test $with_gnu_ld = no; then
7562
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7563
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7569
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7575
_LT_TAGVAR(hardcode_direct, $1)=no
7576
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7579
_LT_TAGVAR(hardcode_direct, $1)=yes
7580
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7581
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7582
# but as the default
7583
# location of the library.
7587
case $cc_basename in
7589
# FIXME: insert proper C++ library support
7590
_LT_TAGVAR(ld_shlibs, $1)=no
7595
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7598
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7601
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7604
# Commands to make compiler produce verbose output that lists
7605
# what "hidden" libraries, object files and flags are used when
7606
# linking a shared library.
7608
# There doesn't appear to be a way to prevent this compiler from
7609
# explicitly linking system object files so we need to strip them
7610
# from the output so that they don't get included in the library
7612
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 "X$list" | $Xsed'
7615
if test "$GXX" = yes; then
7616
if test $with_gnu_ld = no; then
7619
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7622
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7625
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7630
# FIXME: insert proper C++ library support
7631
_LT_TAGVAR(ld_shlibs, $1)=no
7638
_LT_TAGVAR(hardcode_direct, $1)=no
7639
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7640
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7641
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7642
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7643
# Instead, shared libraries are loaded at an image base (0x10000000 by
7644
# default) and relocated if they conflict, which is a slow very memory
7645
# consuming and fragmenting process. To avoid this, we pick a random,
7646
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7647
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7648
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7649
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7652
case $cc_basename in
7655
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7657
# Archives containing C++ object files must be created using
7658
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
7659
# necessary to make sure instantiated templates are included
7661
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7664
if test "$GXX" = yes; then
7665
if test "$with_gnu_ld" = no; then
7666
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7668
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
7671
_LT_TAGVAR(link_all_deplibs, $1)=yes
7674
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7675
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7676
_LT_TAGVAR(inherit_rpath, $1)=yes
7679
linux* | k*bsd*-gnu)
7680
case $cc_basename in
7682
# Kuck and Associates, Inc. (KAI) C++ Compiler
7684
# KCC will only create a shared library if the output file
7685
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7686
# to its proper name (with version) after linking.
7687
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7688
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7689
# Commands to make compiler produce verbose output that lists
7690
# what "hidden" libraries, object files and flags are used when
7691
# linking a shared library.
7693
# There doesn't appear to be a way to prevent this compiler from
7694
# explicitly linking system object files so we need to strip them
7695
# from the output so that they don't get included in the library
7697
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7699
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7700
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7702
# Archives containing C++ object files must be created using
7703
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7704
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7709
# version 8.0 and above of icpc choke on multiply defined symbols
7710
# if we add $predep_objects and $postdep_objects, however 7.1 and
7711
# earlier do not add the objects themselves.
7712
case `$CC -V 2>&1` in
7714
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7715
_LT_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'
7717
*) # Version 8.0 or newer
7720
ia64*) tmp_idyn=' -i_dynamic';;
7722
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7723
_LT_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'
7726
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7727
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7728
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7729
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7732
# Portland Group C++ compiler
7734
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
7735
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7737
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7738
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
7739
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7741
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7742
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
7744
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7746
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7747
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7748
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7750
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7751
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7753
*) # Version 6 will use weak symbols
7754
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7755
_LT_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'
7759
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7760
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7761
_LT_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'
7765
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7766
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7768
runpath_var=LD_RUN_PATH
7769
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7770
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7772
# Commands to make compiler produce verbose output that lists
7773
# what "hidden" libraries, object files and flags are used when
7774
# linking a shared library.
7776
# There doesn't appear to be a way to prevent this compiler from
7777
# explicitly linking system object files so we need to strip them
7778
# from the output so that they don't get included in the library
7780
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7783
# IBM XL 8.0 on PPC, with GNU ld
7784
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7785
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7786
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7787
if test "x$supports_anon_versioning" = xyes; then
7788
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7789
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7790
echo "local: *; };" >> $output_objdir/$libname.ver~
7791
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7795
case `$CC -V 2>&1 | sed 5q` in
7798
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7799
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7800
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7801
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7802
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7803
_LT_TAGVAR(compiler_needs_object, $1)=yes
7805
# Not sure whether something based on
7806
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7808
output_verbose_link_cmd='echo'
7810
# Archives containing C++ object files must be created using
7811
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7812
# necessary to make sure instantiated templates are included
7814
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7822
# FIXME: insert proper C++ library support
7823
_LT_TAGVAR(ld_shlibs, $1)=no
7827
# FIXME: insert proper C++ library support
7828
_LT_TAGVAR(ld_shlibs, $1)=no
7832
case $cc_basename in
7834
# FIXME: insert proper C++ library support
7835
_LT_TAGVAR(ld_shlibs, $1)=no
7838
# FIXME: insert proper C++ library support
7839
_LT_TAGVAR(ld_shlibs, $1)=no
7845
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7846
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7849
_LT_TAGVAR(hardcode_direct, $1)=yes
7850
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7852
# Workaround some broken pre-1.5 toolchains
7853
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7857
_LT_TAGVAR(ld_shlibs, $1)=yes
7861
# C++ shared libraries are fairly broken
7862
_LT_TAGVAR(ld_shlibs, $1)=no
7866
if test -f /usr/libexec/ld.so; then
7867
_LT_TAGVAR(hardcode_direct, $1)=yes
7868
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7869
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7870
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7871
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7872
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7873
_LT_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'
7874
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7875
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7877
output_verbose_link_cmd=echo
7879
_LT_TAGVAR(ld_shlibs, $1)=no
7883
osf3* | osf4* | osf5*)
7884
case $cc_basename in
7886
# Kuck and Associates, Inc. (KAI) C++ Compiler
7888
# KCC will only create a shared library if the output file
7889
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7890
# to its proper name (with version) after linking.
7891
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7894
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7896
# Archives containing C++ object files must be created using
7897
# the KAI C++ compiler.
7899
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7900
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7904
# Rational C++ 2.4.1
7905
# FIXME: insert proper C++ library support
7906
_LT_TAGVAR(ld_shlibs, $1)=no
7911
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7912
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7913
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7916
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7917
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7918
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7919
echo "-hidden">> $lib.exp~
7920
$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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7922
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7926
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7928
# Commands to make compiler produce verbose output that lists
7929
# what "hidden" libraries, object files and flags are used when
7930
# linking a shared library.
7932
# There doesn't appear to be a way to prevent this compiler from
7933
# explicitly linking system object files so we need to strip them
7934
# from the output so that they don't get included in the library
7936
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7939
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7940
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7943
_LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7946
_LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7950
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7951
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7953
# Commands to make compiler produce verbose output that lists
7954
# what "hidden" libraries, object files and flags are used when
7955
# linking a shared library.
7956
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7959
# FIXME: insert proper C++ library support
7960
_LT_TAGVAR(ld_shlibs, $1)=no
7967
# FIXME: insert proper C++ library support
7968
_LT_TAGVAR(ld_shlibs, $1)=no
7972
case $cc_basename in
7975
# FIXME: insert proper C++ library support
7976
_LT_TAGVAR(ld_shlibs, $1)=no
7980
# FIXME: insert proper C++ library support
7981
_LT_TAGVAR(ld_shlibs, $1)=no
7984
# FIXME: insert proper C++ library support
7985
_LT_TAGVAR(ld_shlibs, $1)=no
7991
case $cc_basename in
7993
# Sun C++ 4.2, 5.x and Centerline C++
7994
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7995
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7996
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7997
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7998
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8000
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8001
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8003
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8005
# The compiler driver will combine and reorder linker options,
8006
# but understands `-z linker_flag'.
8007
# Supported since Solaris 2.6 (maybe 2.5.1?)
8008
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8011
_LT_TAGVAR(link_all_deplibs, $1)=yes
8013
output_verbose_link_cmd='echo'
8015
# Archives containing C++ object files must be created using
8016
# "CC -xar", where "CC" is the Sun C++ compiler. This is
8017
# necessary to make sure instantiated templates are included
8019
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8022
# Green Hills C++ Compiler
8023
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8025
# The C++ compiler must be used to create the archive.
8026
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8029
# GNU C++ compiler with Solaris linker
8030
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8031
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8032
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8033
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8034
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8035
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8037
# Commands to make compiler produce verbose output that lists
8038
# what "hidden" libraries, object files and flags are used when
8039
# linking a shared library.
8040
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8042
# g++ 2.7 appears to require `-G' NOT `-shared' on this
8044
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8045
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8046
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8048
# Commands to make compiler produce verbose output that lists
8049
# what "hidden" libraries, object files and flags are used when
8050
# linking a shared library.
8051
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
8054
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8056
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8058
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8066
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8067
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8068
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8069
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8070
runpath_var='LD_RUN_PATH'
8072
case $cc_basename in
8074
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8075
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8078
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8079
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8084
sysv5* | sco3.2v5* | sco5v6*)
8085
# Note: We can NOT use -z defs as we might desire, because we do not
8086
# link with -lc, and that would cause any symbols used from libc to
8087
# always be unresolved, which means just about no library would
8088
# ever link correctly. If we're not using GNU ld we use -z text
8089
# though, which does catch some bad symbols but isn't as heavy-handed
8091
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8092
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8093
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8094
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8095
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8096
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8097
_LT_TAGVAR(link_all_deplibs, $1)=yes
8098
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8099
runpath_var='LD_RUN_PATH'
8101
case $cc_basename in
8103
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8104
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8107
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8108
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8114
case $cc_basename in
8116
# NonStop-UX NCC 3.20
8117
# FIXME: insert proper C++ library support
8118
_LT_TAGVAR(ld_shlibs, $1)=no
8121
# FIXME: insert proper C++ library support
8122
_LT_TAGVAR(ld_shlibs, $1)=no
8128
# FIXME: insert proper C++ library support
8129
_LT_TAGVAR(ld_shlibs, $1)=no
8133
# FIXME: insert proper C++ library support
8134
_LT_TAGVAR(ld_shlibs, $1)=no
8138
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8139
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8141
_LT_TAGVAR(GCC, $1)="$GXX"
8142
_LT_TAGVAR(LD, $1)="$LD"
8145
## There is no encapsulation within the following macros, do not change
8146
## the running order or otherwise move them around unless you know exactly
8147
## what you are doing...
8148
_LT_SYS_HIDDEN_LIBDEPS($1)
8149
_LT_COMPILER_PIC($1)
8150
_LT_COMPILER_C_O($1)
8151
_LT_COMPILER_FILE_LOCKS($1)
8152
_LT_LINKER_SHLIBS($1)
8153
_LT_SYS_DYNAMIC_LINKER($1)
8154
_LT_LINKER_HARDCODE_LIBPATH($1)
8157
fi # test -n "$compiler"
8163
with_gnu_ld=$lt_save_with_gnu_ld
8164
lt_cv_path_LDCXX=$lt_cv_path_LD
8165
lt_cv_path_LD=$lt_save_path_LD
8166
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8167
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8168
fi # test "$_lt_caught_CXX_error" != yes
8171
])# _LT_LANG_CXX_CONFIG
8174
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8175
# ---------------------------------
8176
# Figure out "hidden" library dependencies from verbose
8177
# compiler output when linking a shared library.
8178
# Parse the compiler output and extract the necessary
8179
# objects, libraries and library flags.
8180
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8181
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8182
# Dependencies to place before and after the object being linked:
8183
_LT_TAGVAR(predep_objects, $1)=
8184
_LT_TAGVAR(postdep_objects, $1)=
8185
_LT_TAGVAR(predeps, $1)=
8186
_LT_TAGVAR(postdeps, $1)=
8187
_LT_TAGVAR(compiler_lib_search_path, $1)=
8189
dnl we can't use the lt_simple_compile_test_code here,
8190
dnl because it contains code intended for an executable,
8191
dnl not a library. It's possible we should let each
8192
dnl tag define a new lt_????_link_test_code variable,
8193
dnl but it's only used here...
8194
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8196
void foo (void) { a = 0; }
8198
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8202
Foo (void) { a = 0; }
8207
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8215
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8223
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8226
public void bar (void) {
8232
dnl Parse the compiler output and extract the necessary
8233
dnl objects, libraries and library flags.
8234
if AC_TRY_EVAL(ac_compile); then
8235
# Parse the compiler output and extract the necessary
8236
# objects, libraries and library flags.
8238
# Sentinel used to keep track of whether or not we are before
8239
# the conftest object file.
8240
pre_test_object_deps_done=no
8242
for p in `eval "$output_verbose_link_cmd"`; do
8246
# Some compilers place space between "-{L,R}" and the path.
8248
if test $p = "-L" ||
8249
test $p = "-R"; then
8256
if test "$pre_test_object_deps_done" = no; then
8259
# Internal compiler library paths should come after those
8260
# provided the user. The postdeps already come after the
8261
# user supplied libs so there is no need to process them.
8262
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8263
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8265
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8268
# The "-l" case would never come before the object being
8269
# linked, so don't bother handling this case.
8272
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8273
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
8275
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8281
# This assumes that the test object file only shows up
8282
# once in the compiler output.
8283
if test "$p" = "conftest.$objext"; then
8284
pre_test_object_deps_done=yes
8288
if test "$pre_test_object_deps_done" = no; then
8289
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8290
_LT_TAGVAR(predep_objects, $1)="$p"
8292
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8295
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8296
_LT_TAGVAR(postdep_objects, $1)="$p"
8298
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8303
*) ;; # Ignore the rest.
8311
echo "libtool.m4: error: problem compiling $1 test program"
8314
$RM -f confest.$objext
8316
# PORTME: override above test on systems where it is broken
8320
# Interix 3.5 installs completely hosed .la files for C++, so rather than
8321
# hack all around it, let's just trust "g++" to DTRT.
8322
_LT_TAGVAR(predep_objects,$1)=
8323
_LT_TAGVAR(postdep_objects,$1)=
8324
_LT_TAGVAR(postdeps,$1)=
8328
case `$CC -V 2>&1 | sed 5q` in
8332
# The more standards-conforming stlport4 library is
8333
# incompatible with the Cstd library. Avoid specifying
8334
# it if it's in CXXFLAGS. Ignore libCrun as
8335
# -library=stlport4 depends on it.
8336
case " $CXX $CXXFLAGS " in
8337
*" -library=stlport4 "*)
8338
solaris_use_stlport4=yes
8342
if test "$solaris_use_stlport4" != yes; then
8343
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8350
case $cc_basename in
8352
# The more standards-conforming stlport4 library is
8353
# incompatible with the Cstd library. Avoid specifying
8354
# it if it's in CXXFLAGS. Ignore libCrun as
8355
# -library=stlport4 depends on it.
8356
case " $CXX $CXXFLAGS " in
8357
*" -library=stlport4 "*)
8358
solaris_use_stlport4=yes
8362
# Adding this requires a known-good setup of shared libraries for
8363
# Sun compiler versions before 5.6, else PIC objects from an old
8364
# archive will be linked into the output, leading to subtle bugs.
8365
if test "$solaris_use_stlport4" != yes; then
8366
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8374
case " $_LT_TAGVAR(postdeps, $1) " in
8375
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8377
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
8378
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8379
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8381
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8382
[The directories searched by this compiler when creating a shared library])
8383
_LT_TAGDECL([], [predep_objects], [1],
8384
[Dependencies to place before and after the objects being linked to
8385
create a shared library])
8386
_LT_TAGDECL([], [postdep_objects], [1])
8387
_LT_TAGDECL([], [predeps], [1])
8388
_LT_TAGDECL([], [postdeps], [1])
8389
_LT_TAGDECL([], [compiler_lib_search_path], [1],
8390
[The library search path used internally by the compiler when linking
8392
])# _LT_SYS_HIDDEN_LIBDEPS
8397
# Since AC_PROG_F77 is broken, in that it returns the empty string
8398
# if there is no fortran compiler, we have our own version here.
8399
m4_defun([_LT_PROG_F77],
8401
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
8403
if test -z "$F77" || test "X$F77" = "Xno"; then
8406
popdef([AC_MSG_ERROR])
8409
dnl aclocal-1.4 backwards compatibility:
8410
dnl AC_DEFUN([_LT_PROG_F77], [])
8413
# _LT_LANG_F77_CONFIG([TAG])
8414
# --------------------------
8415
# Ensure that the configuration variables for a Fortran 77 compiler are
8416
# suitably defined. These variables are subsequently used by _LT_CONFIG
8417
# to write the compiler configuration to `libtool'.
8418
m4_defun([_LT_LANG_F77_CONFIG],
8419
[AC_REQUIRE([_LT_PROG_F77])dnl
8420
AC_LANG_PUSH(Fortran 77)
8422
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8423
_LT_TAGVAR(allow_undefined_flag, $1)=
8424
_LT_TAGVAR(always_export_symbols, $1)=no
8425
_LT_TAGVAR(archive_expsym_cmds, $1)=
8426
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8427
_LT_TAGVAR(hardcode_direct, $1)=no
8428
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8429
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8430
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8431
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8432
_LT_TAGVAR(hardcode_minus_L, $1)=no
8433
_LT_TAGVAR(hardcode_automatic, $1)=no
8434
_LT_TAGVAR(inherit_rpath, $1)=no
8435
_LT_TAGVAR(module_cmds, $1)=
8436
_LT_TAGVAR(module_expsym_cmds, $1)=
8437
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8438
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8439
_LT_TAGVAR(no_undefined_flag, $1)=
8440
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8441
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8443
# Source file extension for f77 test sources.
8446
# Object file extension for compiled f77 test sources.
8448
_LT_TAGVAR(objext, $1)=$objext
8450
# No sense in running all these tests if we already determined that
8451
# the F77 compiler isn't working. Some variables (like enable_shared)
8452
# are currently assumed to apply to all compilers on this platform,
8453
# and will be corrupted by setting them based on a non-working compiler.
8454
if test "$_lt_disable_F77" != yes; then
8455
# Code to be used in simple compile tests
8456
lt_simple_compile_test_code="\
8462
# Code to be used in simple link tests
8463
lt_simple_link_test_code="\
8468
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8471
# save warnings/boilerplate of simple test code
8472
_LT_COMPILER_BOILERPLATE
8473
_LT_LINKER_BOILERPLATE
8475
# Allow CC to be a program name with arguments.
8480
_LT_TAGVAR(compiler, $1)=$CC
8481
_LT_CC_BASENAME([$compiler])
8483
if test -n "$compiler"; then
8484
AC_MSG_CHECKING([if libtool supports shared libraries])
8485
AC_MSG_RESULT([$can_build_shared])
8487
AC_MSG_CHECKING([whether to build shared libraries])
8488
test "$can_build_shared" = "no" && enable_shared=no
8490
# On AIX, shared libraries and static libraries use the same namespace, and
8491
# are all built from PIC.
8494
test "$enable_shared" = yes && enable_static=no
8495
if test -n "$RANLIB"; then
8496
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8497
postinstall_cmds='$RANLIB $lib'
8501
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8502
test "$enable_shared" = yes && enable_static=no
8506
AC_MSG_RESULT([$enable_shared])
8508
AC_MSG_CHECKING([whether to build static libraries])
8509
# Make sure either enable_shared or enable_static is yes.
8510
test "$enable_shared" = yes || enable_static=yes
8511
AC_MSG_RESULT([$enable_static])
8513
_LT_TAGVAR(GCC, $1)="$G77"
8514
_LT_TAGVAR(LD, $1)="$LD"
8517
## There is no encapsulation within the following macros, do not change
8518
## the running order or otherwise move them around unless you know exactly
8519
## what you are doing...
8520
_LT_COMPILER_PIC($1)
8521
_LT_COMPILER_C_O($1)
8522
_LT_COMPILER_FILE_LOCKS($1)
8523
_LT_LINKER_SHLIBS($1)
8524
_LT_SYS_DYNAMIC_LINKER($1)
8525
_LT_LINKER_HARDCODE_LIBPATH($1)
8528
fi # test -n "$compiler"
8532
fi # test "$_lt_disable_F77" != yes
8535
])# _LT_LANG_F77_CONFIG
8540
# Since AC_PROG_FC is broken, in that it returns the empty string
8541
# if there is no fortran compiler, we have our own version here.
8542
m4_defun([_LT_PROG_FC],
8544
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
8546
if test -z "$FC" || test "X$FC" = "Xno"; then
8549
popdef([AC_MSG_ERROR])
8552
dnl aclocal-1.4 backwards compatibility:
8553
dnl AC_DEFUN([_LT_PROG_FC], [])
8556
# _LT_LANG_FC_CONFIG([TAG])
8557
# -------------------------
8558
# Ensure that the configuration variables for a Fortran compiler are
8559
# suitably defined. These variables are subsequently used by _LT_CONFIG
8560
# to write the compiler configuration to `libtool'.
8561
m4_defun([_LT_LANG_FC_CONFIG],
8562
[AC_REQUIRE([_LT_PROG_FC])dnl
8563
AC_LANG_PUSH(Fortran)
8565
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8566
_LT_TAGVAR(allow_undefined_flag, $1)=
8567
_LT_TAGVAR(always_export_symbols, $1)=no
8568
_LT_TAGVAR(archive_expsym_cmds, $1)=
8569
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8570
_LT_TAGVAR(hardcode_direct, $1)=no
8571
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8572
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8573
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8574
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8575
_LT_TAGVAR(hardcode_minus_L, $1)=no
8576
_LT_TAGVAR(hardcode_automatic, $1)=no
8577
_LT_TAGVAR(inherit_rpath, $1)=no
8578
_LT_TAGVAR(module_cmds, $1)=
8579
_LT_TAGVAR(module_expsym_cmds, $1)=
8580
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8581
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8582
_LT_TAGVAR(no_undefined_flag, $1)=
8583
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8584
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8586
# Source file extension for fc test sources.
8587
ac_ext=${ac_fc_srcext-f}
8589
# Object file extension for compiled fc test sources.
8591
_LT_TAGVAR(objext, $1)=$objext
8593
# No sense in running all these tests if we already determined that
8594
# the FC compiler isn't working. Some variables (like enable_shared)
8595
# are currently assumed to apply to all compilers on this platform,
8596
# and will be corrupted by setting them based on a non-working compiler.
8597
if test "$_lt_disable_FC" != yes; then
8598
# Code to be used in simple compile tests
8599
lt_simple_compile_test_code="\
8605
# Code to be used in simple link tests
8606
lt_simple_link_test_code="\
8611
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8614
# save warnings/boilerplate of simple test code
8615
_LT_COMPILER_BOILERPLATE
8616
_LT_LINKER_BOILERPLATE
8618
# Allow CC to be a program name with arguments.
8623
GCC=$ac_cv_fc_compiler_gnu
8625
_LT_TAGVAR(compiler, $1)=$CC
8626
_LT_CC_BASENAME([$compiler])
8628
if test -n "$compiler"; then
8629
AC_MSG_CHECKING([if libtool supports shared libraries])
8630
AC_MSG_RESULT([$can_build_shared])
8632
AC_MSG_CHECKING([whether to build shared libraries])
8633
test "$can_build_shared" = "no" && enable_shared=no
8635
# On AIX, shared libraries and static libraries use the same namespace, and
8636
# are all built from PIC.
8639
test "$enable_shared" = yes && enable_static=no
8640
if test -n "$RANLIB"; then
8641
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8642
postinstall_cmds='$RANLIB $lib'
8646
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8647
test "$enable_shared" = yes && enable_static=no
8651
AC_MSG_RESULT([$enable_shared])
8653
AC_MSG_CHECKING([whether to build static libraries])
8654
# Make sure either enable_shared or enable_static is yes.
8655
test "$enable_shared" = yes || enable_static=yes
8656
AC_MSG_RESULT([$enable_static])
8658
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8659
_LT_TAGVAR(LD, $1)="$LD"
8662
## There is no encapsulation within the following macros, do not change
8663
## the running order or otherwise move them around unless you know exactly
8664
## what you are doing...
8665
_LT_SYS_HIDDEN_LIBDEPS($1)
8666
_LT_COMPILER_PIC($1)
8667
_LT_COMPILER_C_O($1)
8668
_LT_COMPILER_FILE_LOCKS($1)
8669
_LT_LINKER_SHLIBS($1)
8670
_LT_SYS_DYNAMIC_LINKER($1)
8671
_LT_LINKER_HARDCODE_LIBPATH($1)
8674
fi # test -n "$compiler"
8678
fi # test "$_lt_disable_FC" != yes
8681
])# _LT_LANG_FC_CONFIG
8684
# _LT_LANG_GCJ_CONFIG([TAG])
8685
# --------------------------
8686
# Ensure that the configuration variables for the GNU Java Compiler compiler
8687
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8688
# to write the compiler configuration to `libtool'.
8689
m4_defun([_LT_LANG_GCJ_CONFIG],
8690
[AC_REQUIRE([LT_PROG_GCJ])dnl
8693
# Source file extension for Java test sources.
8696
# Object file extension for compiled Java test sources.
8698
_LT_TAGVAR(objext, $1)=$objext
8700
# Code to be used in simple compile tests
8701
lt_simple_compile_test_code="class foo {}"
8703
# Code to be used in simple link tests
8704
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8706
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8709
# save warnings/boilerplate of simple test code
8710
_LT_COMPILER_BOILERPLATE
8711
_LT_LINKER_BOILERPLATE
8713
# Allow CC to be a program name with arguments.
8719
_LT_TAGVAR(compiler, $1)=$CC
8720
_LT_TAGVAR(LD, $1)="$LD"
8721
_LT_CC_BASENAME([$compiler])
8723
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8724
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8726
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8728
if test -n "$compiler"; then
8729
_LT_COMPILER_NO_RTTI($1)
8730
_LT_COMPILER_PIC($1)
8731
_LT_COMPILER_C_O($1)
8732
_LT_COMPILER_FILE_LOCKS($1)
8733
_LT_LINKER_SHLIBS($1)
8734
_LT_LINKER_HARDCODE_LIBPATH($1)
8743
])# _LT_LANG_GCJ_CONFIG
8746
# _LT_LANG_RC_CONFIG([TAG])
8747
# -------------------------
8748
# Ensure that the configuration variables for the Windows resource compiler
8749
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8750
# to write the compiler configuration to `libtool'.
8751
m4_defun([_LT_LANG_RC_CONFIG],
8752
[AC_REQUIRE([LT_PROG_RC])dnl
8755
# Source file extension for RC test sources.
8758
# Object file extension for compiled RC test sources.
8760
_LT_TAGVAR(objext, $1)=$objext
8762
# Code to be used in simple compile tests
8763
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8765
# Code to be used in simple link tests
8766
lt_simple_link_test_code="$lt_simple_compile_test_code"
8768
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8771
# save warnings/boilerplate of simple test code
8772
_LT_COMPILER_BOILERPLATE
8773
_LT_LINKER_BOILERPLATE
8775
# Allow CC to be a program name with arguments.
8781
_LT_TAGVAR(compiler, $1)=$CC
8782
_LT_CC_BASENAME([$compiler])
8783
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8785
if test -n "$compiler"; then
8793
])# _LT_LANG_RC_CONFIG
8798
AC_DEFUN([LT_PROG_GCJ],
8799
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8800
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8801
[AC_CHECK_TOOL(GCJ, gcj,)
8802
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8803
AC_SUBST(GCJFLAGS)])])[]dnl
8807
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8808
dnl aclocal-1.4 backwards compatibility:
8809
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8814
AC_DEFUN([LT_PROG_RC],
8815
[AC_CHECK_TOOL(RC, windres,)
8819
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8820
dnl aclocal-1.4 backwards compatibility:
8821
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8826
# If we don't have a new enough Autoconf to choose the best grep
8827
# available, choose the one first in the user's PATH.
8828
m4_defun([_LT_DECL_EGREP],
8829
[AC_REQUIRE([AC_PROG_EGREP])dnl
8830
AC_REQUIRE([AC_PROG_FGREP])dnl
8831
test -z "$GREP" && GREP=grep
8832
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8833
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8834
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8835
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8842
# If we don't have a new enough Autoconf to choose the best objdump
8843
# available, choose the one first in the user's PATH.
8844
m4_defun([_LT_DECL_OBJDUMP],
8845
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8846
test -z "$OBJDUMP" && OBJDUMP=objdump
8847
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8854
# Check for a fully-functional sed program, that truncates
8855
# as few characters as possible. Prefer GNU sed if found.
8856
m4_defun([_LT_DECL_SED],
8858
test -z "$SED" && SED=sed
8859
Xsed="$SED -e 1s/^X//"
8860
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8861
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8862
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8865
m4_ifndef([AC_PROG_SED], [
8866
# NOTE: This macro has been submitted for inclusion into #
8867
# GNU Autoconf as AC_PROG_SED. When it is available in #
8868
# a released version of Autoconf we should remove this #
8869
# macro and use it instead. #
8871
m4_defun([AC_PROG_SED],
8872
[AC_MSG_CHECKING([for a sed that does not truncate output])
8873
AC_CACHE_VAL(lt_cv_path_SED,
8874
[# Loop through the user's path and test for sed and gsed.
8875
# Then use that list of sed's as ones to test for truncation.
8876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880
test -z "$as_dir" && as_dir=.
8881
for lt_ac_prog in sed gsed; do
8882
for ac_exec_ext in '' $ac_executable_extensions; do
8883
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8884
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8892
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8893
# along with /bin/sed that truncates output.
8894
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8895
test ! -f $lt_ac_sed && continue
8896
cat /dev/null > conftest.in
8898
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8899
# Check for GNU sed and select it if it is found.
8900
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8901
lt_cv_path_SED=$lt_ac_sed
8905
cat conftest.in conftest.in >conftest.tmp
8906
mv conftest.tmp conftest.in
8907
cp conftest.in conftest.nl
8909
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8910
cmp -s conftest.out conftest.nl || break
8911
# 10000 chars as input seems more than enough
8912
test $lt_ac_count -gt 10 && break
8913
lt_ac_count=`expr $lt_ac_count + 1`
8914
if test $lt_ac_count -gt $lt_ac_max; then
8915
lt_ac_max=$lt_ac_count
8916
lt_cv_path_SED=$lt_ac_sed
8923
AC_MSG_RESULT([$SED])
8928
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8929
dnl aclocal-1.4 backwards compatibility:
8930
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8933
# _LT_CHECK_SHELL_FEATURES
8934
# ------------------------
8935
# Find out whether the shell is Bourne or XSI compatible,
8936
# or has some other useful features.
8937
m4_defun([_LT_CHECK_SHELL_FEATURES],
8938
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8939
# Try some XSI features
8942
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8944
&& eval 'test $(( 1 + 1 )) -eq 2 \
8945
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8947
AC_MSG_RESULT([$xsi_shell])
8948
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8950
AC_MSG_CHECKING([whether the shell understands "+="])
8952
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8954
&& lt_shell_append=yes
8955
AC_MSG_RESULT([$lt_shell_append])
8956
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8958
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8963
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8965
# test EBCDIC or ASCII
8966
case `echo X|tr X '\101'` in
8967
A) # ASCII based system
8968
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8969
lt_SP2NL='tr \040 \012'
8970
lt_NL2SP='tr \015\012 \040\040'
8972
*) # EBCDIC based system
8973
lt_SP2NL='tr \100 \n'
8974
lt_NL2SP='tr \r\n \100\100'
8977
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8978
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8979
])# _LT_CHECK_SHELL_FEATURES
8982
# _LT_PROG_XSI_SHELLFNS
8983
# ---------------------
8984
# Bourne and XSI compatible variants of some useful shell functions.
8985
m4_defun([_LT_PROG_XSI_SHELLFNS],
8988
cat << \_LT_EOF >> "$cfgfile"
8990
# func_dirname file append nondir_replacement
8991
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8992
# otherwise set result to NONDIR_REPLACEMENT.
8996
*/*) func_dirname_result="${1%/*}${2}" ;;
8997
* ) func_dirname_result="${3}" ;;
9001
# func_basename file
9004
func_basename_result="${1##*/}"
9007
# func_dirname_and_basename file append nondir_replacement
9008
# perform func_basename and func_dirname in a single function
9010
# dirname: Compute the dirname of FILE. If nonempty,
9011
# add APPEND to the result, otherwise set result
9012
# to NONDIR_REPLACEMENT.
9013
# value returned in "$func_dirname_result"
9014
# basename: Compute filename of FILE.
9015
# value retuned in "$func_basename_result"
9016
# Implementation must be kept synchronized with func_dirname
9017
# and func_basename. For efficiency, we do not delegate to
9018
# those functions but instead duplicate the functionality here.
9019
func_dirname_and_basename ()
9022
*/*) func_dirname_result="${1%/*}${2}" ;;
9023
* ) func_dirname_result="${3}" ;;
9025
func_basename_result="${1##*/}"
9028
# func_stripname prefix suffix name
9029
# strip PREFIX and SUFFIX off of NAME.
9030
# PREFIX and SUFFIX must not contain globbing or regex special
9031
# characters, hashes, percent signs, but SUFFIX may contain a leading
9032
# dot (in which case that matches only a dot).
9035
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9036
# positional parameters, so assign one to ordinary parameter first.
9037
func_stripname_result=${3}
9038
func_stripname_result=${func_stripname_result#"${1}"}
9039
func_stripname_result=${func_stripname_result%"${2}"}
9045
func_opt_split_opt=${1%%=*}
9046
func_opt_split_arg=${1#*=}
9053
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9054
*) func_lo2o_result=${1} ;;
9058
# func_xform libobj-or-source
9061
func_xform_result=${1%.*}.lo
9064
# func_arith arithmetic-term...
9067
func_arith_result=$(( $[*] ))
9071
# STRING may not start with a hyphen.
9074
func_len_result=${#1}
9079
*) # Bourne compatible functions.
9080
cat << \_LT_EOF >> "$cfgfile"
9082
# func_dirname file append nondir_replacement
9083
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
9084
# otherwise set result to NONDIR_REPLACEMENT.
9087
# Extract subdirectory from the argument.
9088
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
9089
if test "X$func_dirname_result" = "X${1}"; then
9090
func_dirname_result="${3}"
9092
func_dirname_result="$func_dirname_result${2}"
9096
# func_basename file
9099
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
9102
dnl func_dirname_and_basename
9103
dnl A portable version of this function is already defined in general.m4sh
9104
dnl so there is no need for it here.
9106
# func_stripname prefix suffix name
9107
# strip PREFIX and SUFFIX off of NAME.
9108
# PREFIX and SUFFIX must not contain globbing or regex special
9109
# characters, hashes, percent signs, but SUFFIX may contain a leading
9110
# dot (in which case that matches only a dot).
9111
# func_strip_suffix prefix name
9115
.*) func_stripname_result=`$ECHO "X${3}" \
9116
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
9117
*) func_stripname_result=`$ECHO "X${3}" \
9118
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
9123
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
9124
my_sed_long_arg='1s/^-[[^=]]*=//'
9129
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
9130
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
9136
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
9139
# func_xform libobj-or-source
9142
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
9145
# func_arith arithmetic-term...
9148
func_arith_result=`expr "$[@]"`
9152
# STRING may not start with a hyphen.
9155
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
9161
case $lt_shell_append in
9163
cat << \_LT_EOF >> "$cfgfile"
9165
# func_append var value
9166
# Append VALUE to the end of shell variable VAR.
9174
cat << \_LT_EOF >> "$cfgfile"
9176
# func_append var value
9177
# Append VALUE to the end of shell variable VAR.
9180
eval "$[1]=\$$[1]\$[2]"
9188
# Helper functions for option handling. -*- Autoconf -*-
9190
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9191
# Written by Gary V. Vaughan, 2004
9193
# This file is free software; the Free Software Foundation gives
9194
# unlimited permission to copy and/or distribute it, with or without
9195
# modifications, as long as this notice is preserved.
9197
# serial 6 ltoptions.m4
9199
# This is to help aclocal find these macros, as it can't see m4_define.
9200
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9203
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9204
# ------------------------------------------
9205
m4_define([_LT_MANGLE_OPTION],
9206
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9209
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9210
# ---------------------------------------
9211
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9212
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
9214
m4_define([_LT_SET_OPTION],
9215
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9216
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9217
_LT_MANGLE_DEFUN([$1], [$2]),
9218
[m4_warning([Unknown $1 option `$2'])])[]dnl
9222
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9223
# ------------------------------------------------------------
9224
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9225
m4_define([_LT_IF_OPTION],
9226
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9229
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9230
# -------------------------------------------------------
9231
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9233
m4_define([_LT_UNLESS_OPTIONS],
9234
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9235
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9236
[m4_define([$0_found])])])[]dnl
9237
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9242
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9243
# ----------------------------------------
9244
# OPTION-LIST is a space-separated list of Libtool options associated
9245
# with MACRO-NAME. If any OPTION has a matching handler declared with
9246
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9247
# the unknown option and exit.
9248
m4_defun([_LT_SET_OPTIONS],
9250
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9251
[_LT_SET_OPTION([$1], _LT_Option)])
9253
m4_if([$1],[LT_INIT],[
9255
dnl Simply set some default values (i.e off) if boolean options were not
9257
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9259
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9262
dnl If no reference was made to various pairs of opposing options, then
9263
dnl we run the default mode handler for the pair. For example, if neither
9264
dnl `shared' nor `disable-shared' was passed, we enable building of shared
9265
dnl archives by default:
9266
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9267
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9268
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9269
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9270
[_LT_ENABLE_FAST_INSTALL])
9276
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9277
# -----------------------------------------
9278
m4_define([_LT_MANGLE_DEFUN],
9279
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9282
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9283
# -----------------------------------------------
9284
m4_define([LT_OPTION_DEFINE],
9285
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9286
])# LT_OPTION_DEFINE
9291
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9294
AU_DEFUN([AC_LIBTOOL_DLOPEN],
9295
[_LT_SET_OPTION([LT_INIT], [dlopen])
9296
AC_DIAGNOSE([obsolete],
9297
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9298
put the `dlopen' option into LT_INIT's first parameter.])
9301
dnl aclocal-1.4 backwards compatibility:
9302
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9307
# Declare package support for building win32 dll's.
9308
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9309
[enable_win32_dll=yes
9312
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
9313
AC_CHECK_TOOL(AS, as, false)
9314
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9315
AC_CHECK_TOOL(OBJDUMP, objdump, false)
9319
test -z "$AS" && AS=as
9320
_LT_DECL([], [AS], [0], [Assembler program])dnl
9322
test -z "$DLLTOOL" && DLLTOOL=dlltool
9323
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
9325
test -z "$OBJDUMP" && OBJDUMP=objdump
9326
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
9329
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9330
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9331
_LT_SET_OPTION([LT_INIT], [win32-dll])
9332
AC_DIAGNOSE([obsolete],
9333
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9334
put the `win32-dll' option into LT_INIT's first parameter.])
9337
dnl aclocal-1.4 backwards compatibility:
9338
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9341
# _LT_ENABLE_SHARED([DEFAULT])
9342
# ----------------------------
9343
# implement the --enable-shared flag, and supports the `shared' and
9344
# `disable-shared' LT_INIT options.
9345
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9346
m4_define([_LT_ENABLE_SHARED],
9347
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9348
AC_ARG_ENABLE([shared],
9349
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9350
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9351
[p=${PACKAGE-default}
9353
yes) enable_shared=yes ;;
9354
no) enable_shared=no ;;
9357
# Look at the argument we got. We use all the common list separators.
9358
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9359
for pkg in $enableval; do
9361
if test "X$pkg" = "X$p"; then
9368
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9370
_LT_DECL([build_libtool_libs], [enable_shared], [0],
9371
[Whether or not to build shared libraries])
9372
])# _LT_ENABLE_SHARED
9374
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9375
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9378
AC_DEFUN([AC_ENABLE_SHARED],
9379
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9382
AC_DEFUN([AC_DISABLE_SHARED],
9383
[_LT_SET_OPTION([LT_INIT], [disable-shared])
9386
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9387
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9389
dnl aclocal-1.4 backwards compatibility:
9390
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9391
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9395
# _LT_ENABLE_STATIC([DEFAULT])
9396
# ----------------------------
9397
# implement the --enable-static flag, and support the `static' and
9398
# `disable-static' LT_INIT options.
9399
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9400
m4_define([_LT_ENABLE_STATIC],
9401
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9402
AC_ARG_ENABLE([static],
9403
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9404
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9405
[p=${PACKAGE-default}
9407
yes) enable_static=yes ;;
9408
no) enable_static=no ;;
9411
# Look at the argument we got. We use all the common list separators.
9412
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9413
for pkg in $enableval; do
9415
if test "X$pkg" = "X$p"; then
9422
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9424
_LT_DECL([build_old_libs], [enable_static], [0],
9425
[Whether or not to build static libraries])
9426
])# _LT_ENABLE_STATIC
9428
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9429
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9432
AC_DEFUN([AC_ENABLE_STATIC],
9433
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9436
AC_DEFUN([AC_DISABLE_STATIC],
9437
[_LT_SET_OPTION([LT_INIT], [disable-static])
9440
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9441
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9443
dnl aclocal-1.4 backwards compatibility:
9444
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9445
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9449
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
9450
# ----------------------------------
9451
# implement the --enable-fast-install flag, and support the `fast-install'
9452
# and `disable-fast-install' LT_INIT options.
9453
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9454
m4_define([_LT_ENABLE_FAST_INSTALL],
9455
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9456
AC_ARG_ENABLE([fast-install],
9457
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9458
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9459
[p=${PACKAGE-default}
9461
yes) enable_fast_install=yes ;;
9462
no) enable_fast_install=no ;;
9464
enable_fast_install=no
9465
# Look at the argument we got. We use all the common list separators.
9466
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9467
for pkg in $enableval; do
9469
if test "X$pkg" = "X$p"; then
9470
enable_fast_install=yes
9476
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9478
_LT_DECL([fast_install], [enable_fast_install], [0],
9479
[Whether or not to optimize for fast installation])dnl
9480
])# _LT_ENABLE_FAST_INSTALL
9482
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9483
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9486
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9487
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9488
AC_DIAGNOSE([obsolete],
9489
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9490
the `fast-install' option into LT_INIT's first parameter.])
9493
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9494
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9495
AC_DIAGNOSE([obsolete],
9496
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9497
the `disable-fast-install' option into LT_INIT's first parameter.])
9500
dnl aclocal-1.4 backwards compatibility:
9501
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9502
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9505
# _LT_WITH_PIC([MODE])
9506
# --------------------
9507
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9509
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9510
m4_define([_LT_WITH_PIC],
9512
[AS_HELP_STRING([--with-pic],
9513
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9514
[pic_mode="$withval"],
9517
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9519
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9522
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9523
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9526
AU_DEFUN([AC_LIBTOOL_PICMODE],
9527
[_LT_SET_OPTION([LT_INIT], [pic-only])
9528
AC_DIAGNOSE([obsolete],
9529
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9530
put the `pic-only' option into LT_INIT's first parameter.])
9533
dnl aclocal-1.4 backwards compatibility:
9534
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9537
m4_define([_LTDL_MODE], [])
9538
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9539
[m4_define([_LTDL_MODE], [nonrecursive])])
9540
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9541
[m4_define([_LTDL_MODE], [recursive])])
9542
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9543
[m4_define([_LTDL_MODE], [subproject])])
9545
m4_define([_LTDL_TYPE], [])
9546
LT_OPTION_DEFINE([LTDL_INIT], [installable],
9547
[m4_define([_LTDL_TYPE], [installable])])
9548
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9549
[m4_define([_LTDL_TYPE], [convenience])])
9551
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9553
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9554
# Written by Gary V. Vaughan, 2004
9556
# This file is free software; the Free Software Foundation gives
9557
# unlimited permission to copy and/or distribute it, with or without
9558
# modifications, as long as this notice is preserved.
9560
# serial 6 ltsugar.m4
9562
# This is to help aclocal find these macros, as it can't see m4_define.
9563
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9566
# lt_join(SEP, ARG1, [ARG2...])
9567
# -----------------------------
9568
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9569
# associated separator.
9570
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9571
# versions in m4sugar had bugs.
9572
m4_define([lt_join],
9573
[m4_if([$#], [1], [],
9575
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9576
m4_define([_lt_join],
9577
[m4_if([$#$2], [2], [],
9578
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9584
# Manipulate m4 lists.
9585
# These macros are necessary as long as will still need to support
9586
# Autoconf-2.59 which quotes differently.
9587
m4_define([lt_car], [[$1]])
9589
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9591
[m4_dquote(m4_shift($@))])])
9592
m4_define([lt_unquote], $1)
9595
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9596
# ------------------------------------------
9597
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9598
# Note that neither SEPARATOR nor STRING are expanded; they are appended
9599
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9600
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9601
# than defined and empty).
9603
# This macro is needed until we can rely on Autoconf 2.62, since earlier
9604
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9605
m4_define([lt_append],
9607
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9611
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9612
# ----------------------------------------------------------
9613
# Produce a SEP delimited list of all paired combinations of elements of
9614
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9615
# has the form PREFIXmINFIXSUFFIXn.
9616
# Needed until we can rely on m4_combine added in Autoconf 2.62.
9617
m4_define([lt_combine],
9618
[m4_if(m4_eval([$# > 3]), [1],
9619
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9620
[[m4_foreach([_Lt_prefix], [$2],
9621
[m4_foreach([_Lt_suffix],
9622
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9623
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9626
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9627
# -----------------------------------------------------------------------
9628
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9629
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9630
m4_define([lt_if_append_uniq],
9632
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9633
[lt_append([$1], [$2], [$3])$4],
9635
[lt_append([$1], [$2], [$3])$4])])
9638
# lt_dict_add(DICT, KEY, VALUE)
9639
# -----------------------------
9640
m4_define([lt_dict_add],
9641
[m4_define([$1($2)], [$3])])
9644
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9645
# --------------------------------------------
9646
m4_define([lt_dict_add_subkey],
9647
[m4_define([$1($2:$3)], [$4])])
9650
# lt_dict_fetch(DICT, KEY, [SUBKEY])
9651
# ----------------------------------
9652
m4_define([lt_dict_fetch],
9654
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9655
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9658
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9659
# -----------------------------------------------------------------
9660
m4_define([lt_if_dict_fetch],
9661
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9666
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9667
# --------------------------------------------------------------
9668
m4_define([lt_dict_filter],
9669
[m4_if([$5], [], [],
9670
[lt_join(m4_quote(m4_default([$4], [[, ]])),
9671
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9672
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9675
# ltversion.m4 -- version numbers -*- Autoconf -*-
9677
# Copyright (C) 2004 Free Software Foundation, Inc.
9678
# Written by Scott James Remnant, 2004
9680
# This file is free software; the Free Software Foundation gives
9681
# unlimited permission to copy and/or distribute it, with or without
9682
# modifications, as long as this notice is preserved.
9684
# Generated from ltversion.in.
9686
# serial 3012 ltversion.m4
9687
# This file is part of GNU Libtool
9689
m4_define([LT_PACKAGE_VERSION], [2.2.6])
9690
m4_define([LT_PACKAGE_REVISION], [1.3012])
9692
AC_DEFUN([LTVERSION_VERSION],
9693
[macro_version='2.2.6'
9694
macro_revision='1.3012'
9695
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9696
_LT_DECL(, macro_revision, 0)
9699
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9701
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
9702
# Written by Scott James Remnant, 2004.
9704
# This file is free software; the Free Software Foundation gives
9705
# unlimited permission to copy and/or distribute it, with or without
9706
# modifications, as long as this notice is preserved.
9708
# serial 4 lt~obsolete.m4
9710
# These exist entirely to fool aclocal when bootstrapping libtool.
9712
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9713
# which have later been changed to m4_define as they aren't part of the
9714
# exported API, or moved to Autoconf or Automake where they belong.
9716
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9717
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9718
# using a macro with the same name in our local m4/libtool.m4 it'll
9719
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9720
# and doesn't know about Autoconf macros at all.)
9722
# So we provide this file, which has a silly filename so it's always
9723
# included after everything else. This provides aclocal with the
9724
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9725
# because those macros already exist, or will be overwritten later.
9726
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9728
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9729
# Yes, that means every name once taken will need to remain here until
9730
# we give up compatibility with versions before 1.7, at which point
9731
# we need to keep only those names which we still refer to.
9733
# This is to help aclocal find these macros, as it can't see m4_define.
9734
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9736
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9737
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9738
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9739
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9740
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9741
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9742
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9743
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9744
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9745
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9746
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9747
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9748
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9749
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9750
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9751
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9752
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9753
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9754
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9755
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9756
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9757
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9758
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9759
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9760
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9761
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9762
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9763
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9764
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9765
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9766
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9767
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9768
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9769
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9770
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9771
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9772
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9773
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9774
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9775
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9776
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9777
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9778
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
9779
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9780
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9781
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9782
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9783
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9784
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9785
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9786
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9787
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9788
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9789
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9790
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9792
# nls.m4 serial 3 (gettext-0.15)
9793
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
9794
dnl This file is free software; the Free Software Foundation
9795
dnl gives unlimited permission to copy and/or distribute it,
9796
dnl with or without modifications, as long as this notice is preserved.
9798
dnl This file can can be used in projects which are not available under
9799
dnl the GNU General Public License or the GNU Library General Public
9800
dnl License but which still want to provide support for the GNU gettext
9802
dnl Please note that the actual code of the GNU gettext library is covered
9803
dnl by the GNU Library General Public License, and the rest of the GNU
9804
dnl gettext package package is covered by the GNU General Public License.
9805
dnl They are *not* in the public domain.
9808
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
9809
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9815
AC_MSG_CHECKING([whether NLS is requested])
9816
dnl Default is enabled NLS
9818
[ --disable-nls do not use Native Language Support],
9819
USE_NLS=$enableval, USE_NLS=yes)
9820
AC_MSG_RESULT($USE_NLS)
9824
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9826
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9828
# This program is free software; you can redistribute it and/or modify
9829
# it under the terms of the GNU General Public License as published by
9830
# the Free Software Foundation; either version 2 of the License, or
9831
# (at your option) any later version.
9833
# This program is distributed in the hope that it will be useful, but
9834
# WITHOUT ANY WARRANTY; without even the implied warranty of
9835
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9836
# General Public License for more details.
9838
# You should have received a copy of the GNU General Public License
9839
# along with this program; if not, write to the Free Software
9840
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9842
# As a special exception to the GNU General Public License, if you
9843
# distribute this file as part of a program that contains a
9844
# configuration script generated by Autoconf, you may include it under
9845
# the same distribution terms that you use for the rest of that program.
9847
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9848
# ----------------------------------
9849
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9850
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9851
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9852
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9853
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9854
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9856
if test -n "$PKG_CONFIG"; then
9857
_pkg_min_version=m4_default([$1], [0.9.0])
9858
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9859
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9860
AC_MSG_RESULT([yes])
9867
])# PKG_PROG_PKG_CONFIG
9869
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9871
# Check to see whether a particular set of modules exists. Similar
9872
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9875
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9876
# this or PKG_CHECK_MODULES is called, or make sure to call
9877
# PKG_CHECK_EXISTS manually
9878
# --------------------------------------------------------------
9879
AC_DEFUN([PKG_CHECK_EXISTS],
9880
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9881
if test -n "$PKG_CONFIG" && \
9882
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9883
m4_ifval([$2], [$2], [:])
9884
m4_ifvaln([$3], [else
9889
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9890
# ---------------------------------------------
9891
m4_define([_PKG_CONFIG],
9892
[if test -n "$$1"; then
9894
elif test -n "$PKG_CONFIG"; then
9895
PKG_CHECK_EXISTS([$3],
9896
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9903
# _PKG_SHORT_ERRORS_SUPPORTED
9904
# -----------------------------
9905
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9906
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9907
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9908
_pkg_short_errors_supported=yes
9910
_pkg_short_errors_supported=no
9912
])# _PKG_SHORT_ERRORS_SUPPORTED
9915
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9916
# [ACTION-IF-NOT-FOUND])
9919
# Note that if there is a possibility the first call to
9920
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9921
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9924
# --------------------------------------------------------------
9925
AC_DEFUN([PKG_CHECK_MODULES],
9926
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9927
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9928
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9931
AC_MSG_CHECKING([for $1])
9933
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9934
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9936
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9937
and $1[]_LIBS to avoid the need to call pkg-config.
9938
See the pkg-config man page for more details.])
9940
if test $pkg_failed = yes; then
9941
_PKG_SHORT_ERRORS_SUPPORTED
9942
if test $_pkg_short_errors_supported = yes; then
9943
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9945
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9947
# Put the nasty error message in config.log where it belongs
9948
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9950
ifelse([$4], , [AC_MSG_ERROR(dnl
9951
[Package requirements ($2) were not met:
9955
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9956
installed software in a non-standard prefix.
9960
[AC_MSG_RESULT([no])
9962
elif test $pkg_failed = untried; then
9963
ifelse([$4], , [AC_MSG_FAILURE(dnl
9964
[The pkg-config script could not be found or is too old. Make sure it
9965
is in your PATH or set the PKG_CONFIG environment variable to the full
9970
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9973
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9974
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9975
AC_MSG_RESULT([yes])
9976
ifelse([$3], , :, [$3])
9978
])# PKG_CHECK_MODULES
1363
m4_include([m4/gettext.m4])
1364
m4_include([m4/gnome-doc-utils.m4])
1365
m4_include([m4/iconv.m4])
1366
m4_include([m4/intlmacosx.m4])
1367
m4_include([m4/intltool.m4])
1368
m4_include([m4/lib-ld.m4])
1369
m4_include([m4/lib-link.m4])
1370
m4_include([m4/lib-prefix.m4])
1371
m4_include([m4/libtool.m4])
1372
m4_include([m4/ltoptions.m4])
1373
m4_include([m4/ltsugar.m4])
1374
m4_include([m4/ltversion.m4])
1375
m4_include([m4/lt~obsolete.m4])
1376
m4_include([m4/nls.m4])
1377
m4_include([m4/po.m4])
1378
m4_include([m4/progtest.m4])