544
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
545
# serial 40 IT_PROG_INTLTOOL
546
AC_DEFUN([IT_PROG_INTLTOOL], [
548
AC_REQUIRE([AM_NLS])dnl
550
case "$am__api_version" in
552
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
558
if test -n "$1"; then
559
AC_MSG_CHECKING([for intltool >= $1])
561
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
562
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
563
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
565
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
566
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
567
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
570
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
571
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
572
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
573
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
574
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
577
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 $< [$]@'
578
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 $< [$]@'
579
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 $< [$]@'
580
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 $< [$]@'
581
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
582
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 $< [$]@'
583
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 $< [$]@'
584
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 $< [$]@'
585
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 $< [$]@'
586
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 $< [$]@'
587
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 $< [$]@'
588
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@'
589
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 $< [$]@'
590
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 $< [$]@'
591
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 $< [$]@'
592
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 $< [$]@'
593
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 $< [$]@'
594
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 $< [$]@'
595
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 $< [$]@'
597
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
598
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
599
_IT_SUBST(INTLTOOL_KEYS_RULE)
600
_IT_SUBST(INTLTOOL_PROP_RULE)
601
_IT_SUBST(INTLTOOL_OAF_RULE)
602
_IT_SUBST(INTLTOOL_PONG_RULE)
603
_IT_SUBST(INTLTOOL_SERVER_RULE)
604
_IT_SUBST(INTLTOOL_SHEET_RULE)
605
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
606
_IT_SUBST(INTLTOOL_UI_RULE)
607
_IT_SUBST(INTLTOOL_XAM_RULE)
608
_IT_SUBST(INTLTOOL_KBD_RULE)
609
_IT_SUBST(INTLTOOL_XML_RULE)
610
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
611
_IT_SUBST(INTLTOOL_CAVES_RULE)
612
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
613
_IT_SUBST(INTLTOOL_THEME_RULE)
614
_IT_SUBST(INTLTOOL_SERVICE_RULE)
615
_IT_SUBST(INTLTOOL_POLICY_RULE)
617
# Check the gettext tools to make sure they are GNU
618
AC_PATH_PROG(XGETTEXT, xgettext)
619
AC_PATH_PROG(MSGMERGE, msgmerge)
620
AC_PATH_PROG(MSGFMT, msgfmt)
621
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
622
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
623
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
625
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
626
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
627
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
628
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
629
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
632
AC_PATH_PROG(INTLTOOL_PERL, perl)
633
if test -z "$INTLTOOL_PERL"; then
634
AC_MSG_ERROR([perl not found])
636
AC_MSG_CHECKING([for perl >= 5.8.1])
637
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
638
if test $? -ne 0; then
639
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
641
IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
642
AC_MSG_RESULT([$IT_PERL_VERSION])
644
if test "x$2" != "xno-xml"; then
645
AC_MSG_CHECKING([for XML::Parser])
646
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
649
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
653
# Substitute ALL_LINGUAS so we can use it in po/Makefile
654
AC_SUBST(ALL_LINGUAS)
656
# Set DATADIRNAME correctly if it is not set yet
657
# (copied from glib-gettext.m4)
658
if test -z "$DATADIRNAME"; then
660
[AC_LANG_PROGRAM([[]],
661
[[extern int _nl_msg_cat_cntr;
662
return _nl_msg_cat_cntr]])],
666
dnl On Solaris, if bind_textdomain_codeset is in libc,
667
dnl GNU format message catalog is always supported,
668
dnl since both are added to the libc all together.
669
dnl Hence, we'd like to go with DATADIRNAME=share
671
AC_CHECK_FUNC(bind_textdomain_codeset,
672
[DATADIRNAME=share], [DATADIRNAME=lib])
679
AC_SUBST(DATADIRNAME)
686
# IT_PO_SUBDIR(DIRNAME)
687
# ---------------------
688
# All po subdirs have to be declared with this macro; the subdir "po" is
689
# declared by IT_PROG_INTLTOOL.
691
AC_DEFUN([IT_PO_SUBDIR],
692
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
694
dnl The following CONFIG_COMMANDS should be executed at the very end
695
dnl of config.status.
696
AC_CONFIG_COMMANDS_PRE([
697
AC_CONFIG_COMMANDS([$1/stamp-it], [
698
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
699
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
701
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
706
'"s|^| $ac_top_srcdir/|" \
707
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
709
[sed '/^POTFILES =/,/[^\\]$/ {
713
' "$1/Makefile.in" >"$1/Makefile"]
714
rm -f "$1/Makefile.tmp"
715
mv "$1/stamp-it.tmp" "$1/stamp-it"
720
# _IT_SUBST(VARIABLE)
721
# -------------------
722
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
724
AC_DEFUN([_IT_SUBST],
727
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
732
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
733
# A hint is needed for aclocal from Automake <= 1.9.4:
734
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
737
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
739
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
740
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
742
# Written by Gordon Matzigkeit, 1996
744
# This file is free software; the Free Software Foundation gives
745
# unlimited permission to copy and/or distribute it, with or without
746
# modifications, as long as this notice is preserved.
748
m4_define([_LT_COPYING], [dnl
749
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
750
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
752
# Written by Gordon Matzigkeit, 1996
754
# This file is part of GNU Libtool.
756
# GNU Libtool is free software; you can redistribute it and/or
757
# modify it under the terms of the GNU General Public License as
758
# published by the Free Software Foundation; either version 2 of
759
# the License, or (at your option) any later version.
761
# As a special exception to the GNU General Public License,
762
# if you distribute this file as part of a program or library that
763
# is built using GNU Libtool, you may include this file under the
764
# same distribution terms that you use for the rest of that program.
766
# GNU Libtool is distributed in the hope that it will be useful,
767
# but WITHOUT ANY WARRANTY; without even the implied warranty of
768
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
769
# GNU General Public License for more details.
771
# You should have received a copy of the GNU General Public License
772
# along with GNU Libtool; see the file COPYING. If not, a copy
773
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
774
# obtained by writing to the Free Software Foundation, Inc.,
775
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
783
# Complain and exit if this libtool version is less that VERSION.
784
m4_defun([LT_PREREQ],
785
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
787
[m4_fatal([Libtool version $1 or higher is required],
794
# Complain if the absolute build directory name contains unusual characters
795
m4_defun([_LT_CHECK_BUILDDIR],
798
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
806
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
807
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
808
AC_BEFORE([$0], [LT_LANG])dnl
809
AC_BEFORE([$0], [LT_OUTPUT])dnl
810
AC_BEFORE([$0], [LTDL_INIT])dnl
811
m4_require([_LT_CHECK_BUILDDIR])dnl
813
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
814
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
815
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
816
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
817
dnl unless we require an AC_DEFUNed macro:
818
AC_REQUIRE([LTOPTIONS_VERSION])dnl
819
AC_REQUIRE([LTSUGAR_VERSION])dnl
820
AC_REQUIRE([LTVERSION_VERSION])dnl
821
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
822
m4_require([_LT_PROG_LTMAIN])dnl
824
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
827
_LT_SET_OPTIONS([$0], [$1])
829
# This can be used to rebuild libtool when needed
830
LIBTOOL_DEPS="$ltmain"
832
# Always use our own libtool.
833
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
843
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
844
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
845
dnl aclocal-1.4 backwards compatibility:
846
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
847
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
850
# _LT_CC_BASENAME(CC)
851
# -------------------
852
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
853
m4_defun([_LT_CC_BASENAME],
854
[for cc_temp in $1""; do
856
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
857
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
862
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
866
# _LT_FILEUTILS_DEFAULTS
867
# ----------------------
868
# It is okay to use these file commands and assume they have been set
869
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
870
m4_defun([_LT_FILEUTILS_DEFAULTS],
874
])# _LT_FILEUTILS_DEFAULTS
879
m4_defun([_LT_SETUP],
880
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
881
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
882
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
883
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
885
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
887
_LT_DECL([], [host_alias], [0], [The host system])dnl
888
_LT_DECL([], [host], [0])dnl
889
_LT_DECL([], [host_os], [0])dnl
891
_LT_DECL([], [build_alias], [0], [The build system])dnl
892
_LT_DECL([], [build], [0])dnl
893
_LT_DECL([], [build_os], [0])dnl
895
AC_REQUIRE([AC_PROG_CC])dnl
896
AC_REQUIRE([LT_PATH_LD])dnl
897
AC_REQUIRE([LT_PATH_NM])dnl
899
AC_REQUIRE([AC_PROG_LN_S])dnl
900
test -z "$LN_S" && LN_S="ln -s"
901
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
903
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
904
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
905
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
907
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
908
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
909
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
910
m4_require([_LT_CMD_RELOAD])dnl
911
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
912
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
913
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
914
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
915
m4_require([_LT_WITH_SYSROOT])dnl
917
_LT_CONFIG_LIBTOOL_INIT([
918
# See if we are running on zsh, and set the options which allow our
919
# commands through without removal of \ escapes INIT.
920
if test -n "\${ZSH_VERSION+set}" ; then
924
if test -n "${ZSH_VERSION+set}" ; then
930
m4_require([_LT_TAG_COMPILER])dnl
934
# AIX sometimes has problems with the GCC collect2 program. For some
935
# reason, if we set the COLLECT_NAMES environment variable, the problems
936
# vanish in a puff of smoke.
937
if test "X${COLLECT_NAMES+set}" != Xset; then
948
# All known linkers require a `.a' archive for static linking (except MSVC,
949
# which needs '.lib').
952
with_gnu_ld="$lt_cv_prog_gnu_ld"
957
# Set sane defaults for various variables
958
test -z "$CC" && CC=cc
959
test -z "$LTCC" && LTCC=$CC
960
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
961
test -z "$LD" && LD=ld
962
test -z "$ac_objext" && ac_objext=o
964
_LT_CC_BASENAME([$compiler])
966
# Only perform the check for file, if the check method requires it
967
test -z "$MAGIC_CMD" && MAGIC_CMD=file
968
case $deplibs_check_method in
970
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
976
# Use C for the default configuration in the libtool script
977
LT_SUPPORTED_TAG([CC])
979
_LT_LANG_DEFAULT_CONFIG
984
# _LT_PREPARE_SED_QUOTE_VARS
985
# --------------------------
986
# Define a few sed substitution that help us do robust quoting.
987
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
988
[# Backslashify metacharacters that are still active within
989
# double-quoted strings.
990
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
992
# Same as above, but do not quote variable references.
993
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
995
# Sed substitution to delay expansion of an escaped shell variable in a
996
# double_quote_subst'ed string.
997
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
999
# Sed substitution to delay expansion of an escaped single quote.
1000
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1002
# Sed substitution to avoid accidental globbing in evaled expressions
1003
no_glob_subst='s/\*/\\\*/g'
1008
# Note that this code is called both from `configure', and `config.status'
1009
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1010
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1011
# so we pass a copy along to make sure it has a sensible value anyway.
1012
m4_defun([_LT_PROG_LTMAIN],
1013
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1014
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1015
ltmain="$ac_aux_dir/ltmain.sh"
1020
# So that we can recreate a full libtool script including additional
1021
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1022
# in macros and then make a single call at the end using the `libtool'
1026
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1027
# ----------------------------------------
1028
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1029
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1031
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1036
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1039
# _LT_CONFIG_LIBTOOL([COMMANDS])
1040
# ------------------------------
1041
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1042
m4_define([_LT_CONFIG_LIBTOOL],
1044
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1049
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1052
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1053
# -----------------------------------------------------
1054
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1055
[_LT_CONFIG_LIBTOOL([$1])
1056
_LT_CONFIG_LIBTOOL_INIT([$2])
1060
# _LT_FORMAT_COMMENT([COMMENT])
1061
# -----------------------------
1062
# Add leading comment marks to the start of each line, and a trailing
1063
# full-stop to the whole comment if one is not present already.
1064
m4_define([_LT_FORMAT_COMMENT],
1066
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1067
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1074
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1075
# -------------------------------------------------------------------
1076
# CONFIGNAME is the name given to the value in the libtool script.
1077
# VARNAME is the (base) name used in the configure script.
1078
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1079
# VARNAME. Any other value will be used directly.
1080
m4_define([_LT_DECL],
1081
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1082
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1083
[m4_ifval([$1], [$1], [$2])])
1084
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1086
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1087
lt_dict_add_subkey([lt_decl_dict], [$2],
1088
[tagged?], [m4_ifval([$5], [yes], [no])])])
1092
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1093
# --------------------------------------------------------
1094
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1097
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1098
# ------------------------------------------------
1099
m4_define([lt_decl_tag_varnames],
1100
[_lt_decl_filter([tagged?], [yes], $@)])
1103
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1104
# ---------------------------------------------------------
1105
m4_define([_lt_decl_filter],
1107
[0], [m4_fatal([$0: too few arguments: $#])],
1108
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1109
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1110
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1111
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1115
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1116
# --------------------------------------------------
1117
m4_define([lt_decl_quote_varnames],
1118
[_lt_decl_filter([value], [1], $@)])
1121
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1122
# ---------------------------------------------------
1123
m4_define([lt_decl_dquote_varnames],
1124
[_lt_decl_filter([value], [2], $@)])
1127
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1128
# ---------------------------------------------------
1129
m4_define([lt_decl_varnames_tagged],
1130
[m4_assert([$# <= 2])dnl
1131
_$0(m4_quote(m4_default([$1], [[, ]])),
1132
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1133
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1134
m4_define([_lt_decl_varnames_tagged],
1135
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1138
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1139
# ------------------------------------------------
1140
m4_define([lt_decl_all_varnames],
1141
[_$0(m4_quote(m4_default([$1], [[, ]])),
1143
m4_quote(lt_decl_varnames),
1144
m4_quote(m4_shift($@))))[]dnl
1146
m4_define([_lt_decl_all_varnames],
1147
[lt_join($@, lt_decl_varnames_tagged([$1],
1148
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1152
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1153
# ------------------------------------
1154
# Quote a variable value, and forward it to `config.status' so that its
1155
# declaration there will have the same value as in `configure'. VARNAME
1156
# must have a single quote delimited value for this to work.
1157
m4_define([_LT_CONFIG_STATUS_DECLARE],
1158
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1161
# _LT_CONFIG_STATUS_DECLARATIONS
1162
# ------------------------------
1163
# We delimit libtool config variables with single quotes, so when
1164
# we write them to config.status, we have to be sure to quote all
1165
# embedded single quotes properly. In configure, this macro expands
1166
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1168
# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1169
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1170
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1171
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1176
# Output comment and list of tags supported by the script
1177
m4_defun([_LT_LIBTOOL_TAGS],
1178
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1179
available_tags="_LT_TAGS"dnl
1183
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1184
# -----------------------------------
1185
# Extract the dictionary values for VARNAME (optionally with TAG) and
1186
# expand to a commented shell variable setting:
1188
# # Some comment about what VAR is for.
1189
# visible_name=$lt_internal_name
1190
m4_define([_LT_LIBTOOL_DECLARE],
1191
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1192
[description])))[]dnl
1193
m4_pushdef([_libtool_name],
1194
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1195
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1196
[0], [_libtool_name=[$]$1],
1197
[1], [_libtool_name=$lt_[]$1],
1198
[2], [_libtool_name=$lt_[]$1],
1199
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1200
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1204
# _LT_LIBTOOL_CONFIG_VARS
1205
# -----------------------
1206
# Produce commented declarations of non-tagged libtool config variables
1207
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1208
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1209
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1210
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1211
[m4_foreach([_lt_var],
1212
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1213
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1216
# _LT_LIBTOOL_TAG_VARS(TAG)
1217
# -------------------------
1218
m4_define([_LT_LIBTOOL_TAG_VARS],
1219
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1220
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1223
# _LT_TAGVAR(VARNAME, [TAGNAME])
1224
# ------------------------------
1225
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1228
# _LT_CONFIG_COMMANDS
1229
# -------------------
1230
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1231
# variables for single and double quote escaping we saved from calls
1232
# to _LT_DECL, we can put quote escaped variables declarations
1233
# into `config.status', and then the shell code to quote escape them in
1234
# for loops in `config.status'. Finally, any additional code accumulated
1235
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1236
m4_defun([_LT_CONFIG_COMMANDS],
1237
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1238
dnl If the libtool generation code has been placed in $CONFIG_LT,
1239
dnl instead of duplicating it all over again into config.status,
1240
dnl then we will have config.status run $CONFIG_LT later, so it
1241
dnl needs to know what name is stored there:
1242
[AC_CONFIG_COMMANDS([libtool],
1243
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1244
dnl If the libtool generation code is destined for config.status,
1245
dnl expand the accumulated commands and init code now:
1246
[AC_CONFIG_COMMANDS([libtool],
1247
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1248
])#_LT_CONFIG_COMMANDS
1252
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1255
# The HP-UX ksh and POSIX shell print the target directory to stdout
1257
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1259
sed_quote_subst='$sed_quote_subst'
1260
double_quote_subst='$double_quote_subst'
1261
delay_variable_subst='$delay_variable_subst'
1262
_LT_CONFIG_STATUS_DECLARATIONS
1264
LTCFLAGS='$LTCFLAGS'
1265
compiler='$compiler_DEFAULT'
1267
# A function that is used when there is no print builtin or printf.
1268
func_fallback_echo ()
1270
eval 'cat <<_LTECHO_EOF
1275
# Quote evaled strings.
1276
for var in lt_decl_all_varnames([[ \
1277
]], lt_decl_quote_varnames); do
1278
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1279
*[[\\\\\\\`\\"\\\$]]*)
1280
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1283
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1288
# Double-quote double-evaled strings.
1289
for var in lt_decl_all_varnames([[ \
1290
]], lt_decl_dquote_varnames); do
1291
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1292
*[[\\\\\\\`\\"\\\$]]*)
1293
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1296
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1301
_LT_OUTPUT_LIBTOOL_INIT
1304
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1305
# ------------------------------------
1306
# Generate a child script FILE with all initialization necessary to
1307
# reuse the environment learned by the parent script, and make the
1308
# file executable. If COMMENT is supplied, it is inserted after the
1309
# `#!' sequence but before initialization text begins. After this
1310
# macro, additional text can be appended to FILE to form the body of
1311
# the child script. The macro ends with non-zero status if the
1312
# file could not be fully written (such as if the disk is full).
1313
m4_ifdef([AS_INIT_GENERATED],
1314
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1315
[m4_defun([_LT_GENERATED_FILE_INIT],
1316
[m4_require([AS_PREPARE])]dnl
1317
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1319
cat >$1 <<_ASEOF || lt_write_fail=1
1321
# Generated by $as_me.
1323
SHELL=\${CONFIG_SHELL-$SHELL}
1326
cat >>$1 <<\_ASEOF || lt_write_fail=1
1329
exec AS_MESSAGE_FD>&1
1331
test $lt_write_fail = 0 && chmod +x $1[]dnl
1332
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1336
# This macro allows early generation of the libtool script (before
1337
# AC_OUTPUT is called), incase it is used in configure for compilation
1339
AC_DEFUN([LT_OUTPUT],
1340
[: ${CONFIG_LT=./config.lt}
1341
AC_MSG_NOTICE([creating $CONFIG_LT])
1342
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1343
[# Run this file to recreate a libtool stub with the current configuration.])
1345
cat >>"$CONFIG_LT" <<\_LTEOF
1347
exec AS_MESSAGE_LOG_FD>>config.log
1350
AS_BOX([Running $as_me.])
1351
} >&AS_MESSAGE_LOG_FD
1354
\`$as_me' creates a local libtool stub from the current configuration,
1355
for use in further configure time tests before the real libtool is
1358
Usage: $[0] [[OPTIONS]]
1360
-h, --help print this help, then exit
1361
-V, --version print version number, then exit
1362
-q, --quiet do not print progress messages
1363
-d, --debug don't remove temporary files
1365
Report bugs to <bug-libtool@gnu.org>."
1368
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1369
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1370
configured by $[0], generated by m4_PACKAGE_STRING.
1372
Copyright (C) 2011 Free Software Foundation, Inc.
1373
This config.lt script is free software; the Free Software Foundation
1374
gives unlimited permision to copy, distribute and modify it."
1376
while test $[#] != 0
1379
--version | --v* | -V )
1380
echo "$lt_cl_version"; exit 0 ;;
1381
--help | --h* | -h )
1382
echo "$lt_cl_help"; exit 0 ;;
1383
--debug | --d* | -d )
1385
--quiet | --q* | --silent | --s* | -q )
1388
-*) AC_MSG_ERROR([unrecognized option: $[1]
1389
Try \`$[0] --help' for more information.]) ;;
1391
*) AC_MSG_ERROR([unrecognized argument: $[1]
1392
Try \`$[0] --help' for more information.]) ;;
1397
if $lt_cl_silent; then
1398
exec AS_MESSAGE_FD>/dev/null
1402
cat >>"$CONFIG_LT" <<_LTEOF
1403
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1406
cat >>"$CONFIG_LT" <<\_LTEOF
1407
AC_MSG_NOTICE([creating $ofile])
1408
_LT_OUTPUT_LIBTOOL_COMMANDS
1411
chmod +x "$CONFIG_LT"
1413
# configure is writing to config.log, but config.lt does its own redirection,
1414
# appending to config.log, which fails on DOS, as config.log is still kept
1415
# open by configure. Here we exec the FD to /dev/null, effectively closing
1416
# config.log, so it can be properly (re)opened and appended to by config.lt.
1418
test "$silent" = yes &&
1419
lt_config_lt_args="$lt_config_lt_args --quiet"
1420
exec AS_MESSAGE_LOG_FD>/dev/null
1421
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1422
exec AS_MESSAGE_LOG_FD>>config.log
1423
$lt_cl_success || AS_EXIT(1)
1429
# If TAG is the built-in tag, create an initial libtool script with a
1430
# default configuration from the untagged config vars. Otherwise add code
1431
# to config.status for appending the configuration named by TAG from the
1432
# matching tagged config vars.
1433
m4_defun([_LT_CONFIG],
1434
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1435
_LT_CONFIG_SAVE_COMMANDS([
1436
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1437
m4_if(_LT_TAG, [C], [
1438
# See if we are running on zsh, and set the options which allow our
1439
# commands through without removal of \ escapes.
1440
if test -n "${ZSH_VERSION+set}" ; then
1441
setopt NO_GLOB_SUBST
1445
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1448
cat <<_LT_EOF >> "$cfgfile"
1451
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1452
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1453
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1454
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1459
# ### BEGIN LIBTOOL CONFIG
1460
_LT_LIBTOOL_CONFIG_VARS
1461
_LT_LIBTOOL_TAG_VARS
1462
# ### END LIBTOOL CONFIG
1468
cat <<\_LT_EOF >> "$cfgfile"
1469
# AIX sometimes has problems with the GCC collect2 program. For some
1470
# reason, if we set the COLLECT_NAMES environment variable, the problems
1471
# vanish in a puff of smoke.
1472
if test "X${COLLECT_NAMES+set}" != Xset; then
1474
export COLLECT_NAMES
1482
# We use sed instead of cat because bash on DJGPP gets confused if
1483
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1484
# text mode, it properly converts lines to CR/LF. This bash problem
1485
# is reportedly fixed, but why not run on old versions too?
1486
sed '$q' "$ltmain" >> "$cfgfile" \
1487
|| (rm -f "$cfgfile"; exit 1)
1489
_LT_PROG_REPLACE_SHELLFNS
1491
mv -f "$cfgfile" "$ofile" ||
1492
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1495
[cat <<_LT_EOF >> "$ofile"
1497
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1498
dnl in a comment (ie after a #).
1499
# ### BEGIN LIBTOOL TAG CONFIG: $1
1500
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1501
# ### END LIBTOOL TAG CONFIG: $1
1508
TIMESTAMP='$TIMESTAMP'
1510
ofile='$ofile'], [])
1511
])dnl /_LT_CONFIG_SAVE_COMMANDS
1515
# LT_SUPPORTED_TAG(TAG)
1516
# ---------------------
1517
# Trace this macro to discover what tags are supported by the libtool
1518
# --tag option, using:
1519
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1520
AC_DEFUN([LT_SUPPORTED_TAG], [])
1523
# C support is built-in for now
1524
m4_define([_LT_LANG_C_enabled], [])
1525
m4_define([_LT_TAGS], [])
1530
# Enable libtool support for the given language if not already enabled.
1532
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1535
[C++], [_LT_LANG(CXX)],
1536
[Go], [_LT_LANG(GO)],
1537
[Java], [_LT_LANG(GCJ)],
1538
[Fortran 77], [_LT_LANG(F77)],
1539
[Fortran], [_LT_LANG(FC)],
1540
[Windows Resource], [_LT_LANG(RC)],
1541
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1543
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1547
# _LT_LANG(LANGNAME)
1548
# ------------------
1549
m4_defun([_LT_LANG],
1550
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1551
[LT_SUPPORTED_TAG([$1])dnl
1552
m4_append([_LT_TAGS], [$1 ])dnl
1553
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1554
_LT_LANG_$1_CONFIG($1)])dnl
1558
m4_ifndef([AC_PROG_GO], [
1559
# NOTE: This macro has been submitted for inclusion into #
1560
# GNU Autoconf as AC_PROG_GO. When it is available in #
1561
# a released version of Autoconf we should remove this #
1562
# macro and use it instead. #
1563
m4_defun([AC_PROG_GO],
1564
[AC_LANG_PUSH(Go)dnl
1565
AC_ARG_VAR([GOC], [Go compiler command])dnl
1566
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1567
_AC_ARG_VAR_LDFLAGS()dnl
1568
AC_CHECK_TOOL(GOC, gccgo)
1569
if test -z "$GOC"; then
1570
if test -n "$ac_tool_prefix"; then
1571
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1574
if test -z "$GOC"; then
1575
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1581
# _LT_LANG_DEFAULT_CONFIG
1582
# -----------------------
1583
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1584
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1586
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1588
AC_PROVIDE_IFELSE([AC_PROG_F77],
1590
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1592
AC_PROVIDE_IFELSE([AC_PROG_FC],
1594
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1596
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1597
dnl pulling things in needlessly.
1598
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1600
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1602
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1604
[m4_ifdef([AC_PROG_GCJ],
1605
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1606
m4_ifdef([A][M_PROG_GCJ],
1607
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1608
m4_ifdef([LT_PROG_GCJ],
1609
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1611
AC_PROVIDE_IFELSE([AC_PROG_GO],
1613
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1615
AC_PROVIDE_IFELSE([LT_PROG_RC],
1617
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1618
])# _LT_LANG_DEFAULT_CONFIG
1621
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1622
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1623
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1624
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1625
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1626
dnl aclocal-1.4 backwards compatibility:
1627
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1628
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1629
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1630
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1631
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1636
m4_defun([_LT_TAG_COMPILER],
1637
[AC_REQUIRE([AC_PROG_CC])dnl
1639
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1640
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1641
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1642
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1644
# If no C compiler was specified, use CC.
1647
# If no C compiler flags were specified, use CFLAGS.
1648
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1650
# Allow CC to be a program name with arguments.
1652
])# _LT_TAG_COMPILER
1655
# _LT_COMPILER_BOILERPLATE
1656
# ------------------------
1657
# Check for compiler boilerplate output or warnings with
1658
# the simple compiler test code.
1659
m4_defun([_LT_COMPILER_BOILERPLATE],
1660
[m4_require([_LT_DECL_SED])dnl
1661
ac_outfile=conftest.$ac_objext
1662
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1663
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1664
_lt_compiler_boilerplate=`cat conftest.err`
1666
])# _LT_COMPILER_BOILERPLATE
1669
# _LT_LINKER_BOILERPLATE
1670
# ----------------------
1671
# Check for linker boilerplate output or warnings with
1672
# the simple link test code.
1673
m4_defun([_LT_LINKER_BOILERPLATE],
1674
[m4_require([_LT_DECL_SED])dnl
1675
ac_outfile=conftest.$ac_objext
1676
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1677
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1678
_lt_linker_boilerplate=`cat conftest.err`
1680
])# _LT_LINKER_BOILERPLATE
1682
# _LT_REQUIRED_DARWIN_CHECKS
1683
# -------------------------
1684
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1686
rhapsody* | darwin*)
1687
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1688
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1689
AC_CHECK_TOOL([LIPO], [lipo], [:])
1690
AC_CHECK_TOOL([OTOOL], [otool], [:])
1691
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1692
_LT_DECL([], [DSYMUTIL], [1],
1693
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1694
_LT_DECL([], [NMEDIT], [1],
1695
[Tool to change global to local symbols on Mac OS X])
1696
_LT_DECL([], [LIPO], [1],
1697
[Tool to manipulate fat objects and archives on Mac OS X])
1698
_LT_DECL([], [OTOOL], [1],
1699
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1700
_LT_DECL([], [OTOOL64], [1],
1701
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1703
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1704
[lt_cv_apple_cc_single_mod=no
1705
if test -z "${LT_MULTI_MODULE}"; then
1706
# By default we will add the -single_module flag. You can override
1707
# by either setting the environment variable LT_MULTI_MODULE
1708
# non-empty at configure time, or by adding -multi_module to the
1710
rm -rf libconftest.dylib*
1711
echo "int foo(void){return 1;}" > conftest.c
1712
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1713
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1714
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1715
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1717
# If there is a non-empty error log, and "single_module"
1718
# appears in it, assume the flag caused a linker warning
1719
if test -s conftest.err && $GREP single_module conftest.err; then
1720
cat conftest.err >&AS_MESSAGE_LOG_FD
1721
# Otherwise, if the output was created with a 0 exit code from
1722
# the compiler, it worked.
1723
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1724
lt_cv_apple_cc_single_mod=yes
1726
cat conftest.err >&AS_MESSAGE_LOG_FD
1728
rm -rf libconftest.dylib*
1732
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1733
[lt_cv_ld_exported_symbols_list],
1734
[lt_cv_ld_exported_symbols_list=no
1735
save_LDFLAGS=$LDFLAGS
1736
echo "_main" > conftest.sym
1737
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1738
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1739
[lt_cv_ld_exported_symbols_list=yes],
1740
[lt_cv_ld_exported_symbols_list=no])
1741
LDFLAGS="$save_LDFLAGS"
1744
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1745
[lt_cv_ld_force_load=no
1746
cat > conftest.c << _LT_EOF
1747
int forced_loaded() { return 2;}
1749
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1750
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1751
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1752
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1753
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1754
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1755
cat > conftest.c << _LT_EOF
1756
int main() { return 0;}
1758
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1759
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1761
if test -s conftest.err && $GREP force_load conftest.err; then
1762
cat conftest.err >&AS_MESSAGE_LOG_FD
1763
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1764
lt_cv_ld_force_load=yes
1766
cat conftest.err >&AS_MESSAGE_LOG_FD
1768
rm -f conftest.err libconftest.a conftest conftest.c
1769
rm -rf conftest.dSYM
1772
rhapsody* | darwin1.[[012]])
1773
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1775
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1776
darwin*) # darwin 5.x on
1777
# if running on 10.5 or later, the deployment target defaults
1778
# to the OS version, if on x86, and 10.4, the deployment
1779
# target defaults to 10.4. Don't you love it?
1780
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1781
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1782
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1784
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1786
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1790
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1791
_lt_dar_single_mod='$single_module'
1793
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1794
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1796
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1798
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1799
_lt_dsymutil='~$DSYMUTIL $lib || :'
1808
# _LT_DARWIN_LINKER_FEATURES([TAG])
1809
# ---------------------------------
1810
# Checks for linker and compiler features on darwin
1811
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1813
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1814
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1815
_LT_TAGVAR(hardcode_direct, $1)=no
1816
_LT_TAGVAR(hardcode_automatic, $1)=yes
1817
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1818
if test "$lt_cv_ld_force_load" = "yes"; then
1819
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1820
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1821
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1823
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1825
_LT_TAGVAR(link_all_deplibs, $1)=yes
1826
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1827
case $cc_basename in
1828
ifort*) _lt_dar_can_shared=yes ;;
1829
*) _lt_dar_can_shared=$GCC ;;
1831
if test "$_lt_dar_can_shared" = "yes"; then
1832
output_verbose_link_cmd=func_echo_all
1833
_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}"
1834
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1835
_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}"
1836
_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}"
1838
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1839
_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}"
1840
_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}"
1844
_LT_TAGVAR(ld_shlibs, $1)=no
1848
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1849
# ----------------------------------
1850
# Links a minimal program and checks the executable
1851
# for the system default hardcoded library path. In most cases,
1852
# this is /usr/lib:/lib, but when the MPI compilers are used
1853
# the location of the communication and MPI libs are included too.
1854
# If we don't find anything, use the default library path according
1855
# to the aix ld manual.
1856
# Store the results from the different compilers for each TAGNAME.
1857
# Allow to override them for all tags through lt_cv_aix_libpath.
1858
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1859
[m4_require([_LT_DECL_SED])dnl
1860
if test "${lt_cv_aix_libpath+set}" = set; then
1861
aix_libpath=$lt_cv_aix_libpath
1863
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1864
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1865
lt_aix_libpath_sed='[
1866
/Import File Strings/,/^$/ {
1868
s/^0 *\([^ ]*\) *$/\1/
1872
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1873
# Check for a 64-bit object if we didn't find anything.
1874
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1875
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1877
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1878
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1881
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1883
])# _LT_SYS_MODULE_PATH_AIX
1886
# _LT_SHELL_INIT(ARG)
1887
# -------------------
1888
m4_define([_LT_SHELL_INIT],
1889
[m4_divert_text([M4SH-INIT], [$1
1890
])])# _LT_SHELL_INIT
1894
# _LT_PROG_ECHO_BACKSLASH
1895
# -----------------------
1896
# Find how we can fake an echo command that does not interpret backslash.
1897
# In particular, with Autoconf 2.60 or later we add some code to the start
1898
# of the generated configure script which will find a shell with a builtin
1899
# printf (which we can use as an echo command).
1900
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1901
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1902
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1903
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1905
AC_MSG_CHECKING([how to print strings])
1906
# Test print first, because it will be a builtin if present.
1907
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1908
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1910
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1913
# Use this function as a fallback that always works.
1914
func_fallback_echo ()
1916
eval 'cat <<_LTECHO_EOF
1920
ECHO='func_fallback_echo'
1923
# func_echo_all arg...
1924
# Invoke $ECHO with all args, space-separated.
1931
printf*) AC_MSG_RESULT([printf]) ;;
1932
print*) AC_MSG_RESULT([print -r]) ;;
1933
*) AC_MSG_RESULT([cat]) ;;
1936
m4_ifdef([_AS_DETECT_SUGGESTED],
1937
[_AS_DETECT_SUGGESTED([
1938
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1939
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1940
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1941
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1942
PATH=/empty FPATH=/empty; export PATH FPATH
1943
test "X`printf %s $ECHO`" = "X$ECHO" \
1944
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1946
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1947
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1948
])# _LT_PROG_ECHO_BACKSLASH
1953
AC_DEFUN([_LT_WITH_SYSROOT],
1954
[AC_MSG_CHECKING([for sysroot])
1955
AC_ARG_WITH([sysroot],
1956
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1957
(or the compiler's sysroot if not specified).],
1958
[], [with_sysroot=no])
1960
dnl lt_sysroot will always be passed unquoted. We quote it here
1961
dnl in case the user passed a directory name.
1963
case ${with_sysroot} in #(
1965
if test "$GCC" = yes; then
1966
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1970
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1975
AC_MSG_RESULT([${with_sysroot}])
1976
AC_MSG_ERROR([The sysroot must be an absolute path.])
1980
AC_MSG_RESULT([${lt_sysroot:-no}])
1981
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1982
[dependent libraries, and in which our libraries should be installed.])])
1986
m4_defun([_LT_ENABLE_LOCK],
1987
[AC_ARG_ENABLE([libtool-lock],
1988
[AS_HELP_STRING([--disable-libtool-lock],
1989
[avoid locking (might break parallel builds)])])
1990
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1992
# Some flags need to be propagated to the compiler or linker for good
1996
# Find out which ABI we are using.
1997
echo 'int i;' > conftest.$ac_ext
1998
if AC_TRY_EVAL(ac_compile); then
1999
case `/usr/bin/file conftest.$ac_objext` in
2011
# Find out which ABI we are using.
2012
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2013
if AC_TRY_EVAL(ac_compile); then
2014
if test "$lt_cv_prog_gnu_ld" = yes; then
2015
case `/usr/bin/file conftest.$ac_objext` in
2017
LD="${LD-ld} -melf32bsmip"
2020
LD="${LD-ld} -melf32bmipn32"
2023
LD="${LD-ld} -melf64bmip"
2027
case `/usr/bin/file conftest.$ac_objext` in
2043
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2044
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2045
# Find out which ABI we are using.
2046
echo 'int i;' > conftest.$ac_ext
2047
if AC_TRY_EVAL(ac_compile); then
2048
case `/usr/bin/file conftest.o` in
2051
x86_64-*kfreebsd*-gnu)
2052
LD="${LD-ld} -m elf_i386_fbsd"
2055
LD="${LD-ld} -m elf_i386"
2057
ppc64-*linux*|powerpc64-*linux*)
2058
LD="${LD-ld} -m elf32ppclinux"
2061
LD="${LD-ld} -m elf_s390"
2064
LD="${LD-ld} -m elf32_sparc"
2070
x86_64-*kfreebsd*-gnu)
2071
LD="${LD-ld} -m elf_x86_64_fbsd"
2074
LD="${LD-ld} -m elf_x86_64"
2076
ppc*-*linux*|powerpc*-*linux*)
2077
LD="${LD-ld} -m elf64ppc"
2079
s390*-*linux*|s390*-*tpf*)
2080
LD="${LD-ld} -m elf64_s390"
2083
LD="${LD-ld} -m elf64_sparc"
2093
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2094
SAVE_CFLAGS="$CFLAGS"
2095
CFLAGS="$CFLAGS -belf"
2096
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2098
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2100
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2101
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2102
CFLAGS="$SAVE_CFLAGS"
2106
# Find out which ABI we are using.
2107
echo 'int i;' > conftest.$ac_ext
2108
if AC_TRY_EVAL(ac_compile); then
2109
case `/usr/bin/file conftest.o` in
2111
case $lt_cv_prog_gnu_ld in
2115
LD="${LD-ld} -m elf_x86_64"
2118
LD="${LD-ld} -m elf64_sparc"
2121
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
2122
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2127
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2139
need_locks="$enable_libtool_lock"
2145
m4_defun([_LT_PROG_AR],
2146
[AC_CHECK_TOOLS(AR, [ar], false)
2149
_LT_DECL([], [AR], [1], [The archiver])
2150
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2152
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2153
[lt_cv_ar_at_file=no
2154
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2155
[echo conftest.$ac_objext > conftest.lst
2156
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2157
AC_TRY_EVAL([lt_ar_try])
2158
if test "$ac_status" -eq 0; then
2159
# Ensure the archiver fails upon bogus file names.
2160
rm -f conftest.$ac_objext libconftest.a
2161
AC_TRY_EVAL([lt_ar_try])
2162
if test "$ac_status" -ne 0; then
2166
rm -f conftest.* libconftest.a
2170
if test "x$lt_cv_ar_at_file" = xno; then
2173
archiver_list_spec=$lt_cv_ar_at_file
2175
_LT_DECL([], [archiver_list_spec], [1],
2176
[How to feed a file listing to the archiver])
2180
# _LT_CMD_OLD_ARCHIVE
2181
# -------------------
2182
m4_defun([_LT_CMD_OLD_ARCHIVE],
2185
AC_CHECK_TOOL(STRIP, strip, :)
2186
test -z "$STRIP" && STRIP=:
2187
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2189
AC_CHECK_TOOL(RANLIB, ranlib, :)
2190
test -z "$RANLIB" && RANLIB=:
2191
_LT_DECL([], [RANLIB], [1],
2192
[Commands used to install an old-style archive])
2194
# Determine commands to create old-style static archives.
2195
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2196
old_postinstall_cmds='chmod 644 $oldlib'
2197
old_postuninstall_cmds=
2199
if test -n "$RANLIB"; then
2202
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2205
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2208
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2213
lock_old_archive_extraction=yes ;;
2215
lock_old_archive_extraction=no ;;
2217
_LT_DECL([], [old_postinstall_cmds], [2])
2218
_LT_DECL([], [old_postuninstall_cmds], [2])
2219
_LT_TAGDECL([], [old_archive_cmds], [2],
2220
[Commands used to build an old-style archive])
2221
_LT_DECL([], [lock_old_archive_extraction], [0],
2222
[Whether to use a lock for old archive extraction])
2223
])# _LT_CMD_OLD_ARCHIVE
2226
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2227
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2228
# ----------------------------------------------------------------
2229
# Check whether the given compiler option works
2230
AC_DEFUN([_LT_COMPILER_OPTION],
2231
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2232
m4_require([_LT_DECL_SED])dnl
2233
AC_CACHE_CHECK([$1], [$2],
2235
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2236
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2237
lt_compiler_flag="$3"
2238
# Insert the option either (1) after the last *FLAGS variable, or
2239
# (2) before a word containing "conftest.", or (3) at the end.
2240
# Note that $ac_compile itself does not contain backslashes and begins
2241
# with a dollar sign (not a hyphen), so the echo should work correctly.
2242
# The option is referenced via a variable to avoid confusing sed.
2243
lt_compile=`echo "$ac_compile" | $SED \
2244
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2245
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2246
-e 's:$: $lt_compiler_flag:'`
2247
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2248
(eval "$lt_compile" 2>conftest.err)
2250
cat conftest.err >&AS_MESSAGE_LOG_FD
2251
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2252
if (exit $ac_status) && test -s "$ac_outfile"; then
2253
# The compiler can only warn and ignore the option if not recognized
2254
# So say no if there are warnings other than the usual output.
2255
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2256
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2257
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2264
if test x"[$]$2" = xyes; then
2265
m4_if([$5], , :, [$5])
2267
m4_if([$6], , :, [$6])
2269
])# _LT_COMPILER_OPTION
2272
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2273
dnl aclocal-1.4 backwards compatibility:
2274
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2277
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2278
# [ACTION-SUCCESS], [ACTION-FAILURE])
2279
# ----------------------------------------------------
2280
# Check whether the given linker option works
2281
AC_DEFUN([_LT_LINKER_OPTION],
2282
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2283
m4_require([_LT_DECL_SED])dnl
2284
AC_CACHE_CHECK([$1], [$2],
2286
save_LDFLAGS="$LDFLAGS"
2287
LDFLAGS="$LDFLAGS $3"
2288
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2289
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2290
# The linker can only warn and ignore the option if not recognized
2291
# So say no if there are warnings
2292
if test -s conftest.err; then
2293
# Append any errors to the config.log.
2294
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2295
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2296
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2297
if diff conftest.exp conftest.er2 >/dev/null; then
2305
LDFLAGS="$save_LDFLAGS"
2308
if test x"[$]$2" = xyes; then
2309
m4_if([$4], , :, [$4])
2311
m4_if([$5], , :, [$5])
2313
])# _LT_LINKER_OPTION
2316
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2317
dnl aclocal-1.4 backwards compatibility:
2318
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2323
AC_DEFUN([LT_CMD_MAX_LEN],
2324
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2325
# find the maximum length of command line arguments
2326
AC_MSG_CHECKING([the maximum length of command line arguments])
2327
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2333
# On DJGPP, this test can blow up pretty badly due to problems in libc
2334
# (any single argument exceeding 2000 bytes causes a buffer overrun
2335
# during glob expansion). Even if it were fixed, the result of this
2336
# check would be larger than it should be.
2337
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2341
# Under GNU Hurd, this test is not required because there is
2342
# no limit to the length of command line arguments.
2343
# Libtool will interpret -1 as no limit whatsoever
2344
lt_cv_sys_max_cmd_len=-1;
2347
cygwin* | mingw* | cegcc*)
2348
# On Win9x/ME, this test blows up -- it succeeds, but takes
2349
# about 5 minutes as the teststring grows exponentially.
2350
# Worse, since 9x/ME are not pre-emptively multitasking,
2351
# you end up with a "frozen" computer, even though with patience
2352
# the test eventually succeeds (with a max line length of 256k).
2353
# Instead, let's just punt: use the minimum linelength reported by
2354
# all of the supported platforms: 8192 (on NT/2K/XP).
2355
lt_cv_sys_max_cmd_len=8192;
2359
# On MiNT this can take a long time and run out of memory.
2360
lt_cv_sys_max_cmd_len=8192;
2364
# On AmigaOS with pdksh, this test takes hours, literally.
2365
# So we just punt and use a minimum line length of 8192.
2366
lt_cv_sys_max_cmd_len=8192;
2369
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2370
# This has been around since 386BSD, at least. Likely further.
2371
if test -x /sbin/sysctl; then
2372
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2373
elif test -x /usr/sbin/sysctl; then
2374
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2376
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2378
# And add a safety zone
2379
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2380
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2384
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2385
lt_cv_sys_max_cmd_len=196608
2389
# The test takes a long time on OS/2.
2390
lt_cv_sys_max_cmd_len=8192
2394
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2395
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2396
# nice to cause kernel panics so lets avoid the loop below.
2397
# First set a reasonable default.
2398
lt_cv_sys_max_cmd_len=16384
2400
if test -x /sbin/sysconfig; then
2401
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2402
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2407
lt_cv_sys_max_cmd_len=102400
2409
sysv5* | sco5v6* | sysv4.2uw2*)
2410
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2411
if test -n "$kargmax"; then
2412
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2414
lt_cv_sys_max_cmd_len=32768
2418
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2419
if test -n "$lt_cv_sys_max_cmd_len"; then
2420
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2421
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2423
# Make teststring a little bigger before we do anything with it.
2424
# a 1K string should be a reasonable start.
2425
for i in 1 2 3 4 5 6 7 8 ; do
2426
teststring=$teststring$teststring
2428
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2429
# If test is not a shell built-in, we'll probably end up computing a
2430
# maximum length that is only half of the actual maximum length, but
2432
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2433
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
2434
test $i != 17 # 1/2 MB should be enough
2437
teststring=$teststring$teststring
2439
# Only check the string length outside the loop.
2440
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2442
# Add a significant safety factor because C++ compilers can tack on
2443
# massive amounts of additional arguments before passing them to the
2444
# linker. It appears as though 1/2 is a usable value.
2445
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2450
if test -n $lt_cv_sys_max_cmd_len ; then
2451
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2455
max_cmd_len=$lt_cv_sys_max_cmd_len
2456
_LT_DECL([], [max_cmd_len], [0],
2457
[What is the maximum length of a command?])
2461
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2462
dnl aclocal-1.4 backwards compatibility:
2463
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2468
m4_defun([_LT_HEADER_DLFCN],
2469
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2470
])# _LT_HEADER_DLFCN
2473
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2474
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2475
# ----------------------------------------------------------------
2476
m4_defun([_LT_TRY_DLOPEN_SELF],
2477
[m4_require([_LT_HEADER_DLFCN])dnl
2478
if test "$cross_compiling" = yes; then :
2481
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2482
lt_status=$lt_dlunknown
2483
cat > conftest.$ac_ext <<_LT_EOF
2484
[#line $LINENO "configure"
2485
#include "confdefs.h"
2494
# define LT_DLGLOBAL RTLD_GLOBAL
2497
# define LT_DLGLOBAL DL_GLOBAL
2499
# define LT_DLGLOBAL 0
2503
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2504
find out it does not work in some platform. */
2505
#ifndef LT_DLLAZY_OR_NOW
2507
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2510
# define LT_DLLAZY_OR_NOW DL_LAZY
2513
# define LT_DLLAZY_OR_NOW RTLD_NOW
2516
# define LT_DLLAZY_OR_NOW DL_NOW
2518
# define LT_DLLAZY_OR_NOW 0
2525
/* When -fvisbility=hidden is used, assume the code has been annotated
2526
correspondingly for the symbols needed. */
2527
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2528
int fnord () __attribute__((visibility("default")));
2531
int fnord () { return 42; }
2534
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2535
int status = $lt_dlunknown;
2539
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2542
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2543
else puts (dlerror ());
2545
/* dlclose (self); */
2553
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2554
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2557
x$lt_dlno_uscore) $1 ;;
2558
x$lt_dlneed_uscore) $2 ;;
2559
x$lt_dlunknown|x*) $3 ;;
2562
# compilation failed
2567
])# _LT_TRY_DLOPEN_SELF
2570
# LT_SYS_DLOPEN_SELF
2571
# ------------------
2572
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2573
[m4_require([_LT_HEADER_DLFCN])dnl
2574
if test "x$enable_dlopen" != xyes; then
2575
enable_dlopen=unknown
2576
enable_dlopen_self=unknown
2577
enable_dlopen_self_static=unknown
2584
lt_cv_dlopen="load_add_on"
2586
lt_cv_dlopen_self=yes
2589
mingw* | pw32* | cegcc*)
2590
lt_cv_dlopen="LoadLibrary"
2595
lt_cv_dlopen="dlopen"
2600
# if libdl is installed we need to link against it
2601
AC_CHECK_LIB([dl], [dlopen],
2602
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2605
lt_cv_dlopen_self=yes
2610
AC_CHECK_FUNC([shl_load],
2611
[lt_cv_dlopen="shl_load"],
2612
[AC_CHECK_LIB([dld], [shl_load],
2613
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2614
[AC_CHECK_FUNC([dlopen],
2615
[lt_cv_dlopen="dlopen"],
2616
[AC_CHECK_LIB([dl], [dlopen],
2617
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2618
[AC_CHECK_LIB([svld], [dlopen],
2619
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2620
[AC_CHECK_LIB([dld], [dld_link],
2621
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2630
if test "x$lt_cv_dlopen" != xno; then
2636
case $lt_cv_dlopen in
2638
save_CPPFLAGS="$CPPFLAGS"
2639
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2641
save_LDFLAGS="$LDFLAGS"
2642
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2645
LIBS="$lt_cv_dlopen_libs $LIBS"
2647
AC_CACHE_CHECK([whether a program can dlopen itself],
2648
lt_cv_dlopen_self, [dnl
2649
_LT_TRY_DLOPEN_SELF(
2650
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2651
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2654
if test "x$lt_cv_dlopen_self" = xyes; then
2655
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2656
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2657
lt_cv_dlopen_self_static, [dnl
2658
_LT_TRY_DLOPEN_SELF(
2659
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2660
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2664
CPPFLAGS="$save_CPPFLAGS"
2665
LDFLAGS="$save_LDFLAGS"
2670
case $lt_cv_dlopen_self in
2671
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2672
*) enable_dlopen_self=unknown ;;
2675
case $lt_cv_dlopen_self_static in
2676
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2677
*) enable_dlopen_self_static=unknown ;;
2680
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2681
[Whether dlopen is supported])
2682
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2683
[Whether dlopen of programs is supported])
2684
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2685
[Whether dlopen of statically linked programs is supported])
2686
])# LT_SYS_DLOPEN_SELF
2689
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2690
dnl aclocal-1.4 backwards compatibility:
2691
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2694
# _LT_COMPILER_C_O([TAGNAME])
2695
# ---------------------------
2696
# Check to see if options -c and -o are simultaneously supported by compiler.
2697
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2698
m4_defun([_LT_COMPILER_C_O],
2699
[m4_require([_LT_DECL_SED])dnl
2700
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2701
m4_require([_LT_TAG_COMPILER])dnl
2702
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2703
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2704
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2705
$RM -r conftest 2>/dev/null
2709
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2711
lt_compiler_flag="-o out/conftest2.$ac_objext"
2712
# Insert the option either (1) after the last *FLAGS variable, or
2713
# (2) before a word containing "conftest.", or (3) at the end.
2714
# Note that $ac_compile itself does not contain backslashes and begins
2715
# with a dollar sign (not a hyphen), so the echo should work correctly.
2716
lt_compile=`echo "$ac_compile" | $SED \
2717
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2718
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2719
-e 's:$: $lt_compiler_flag:'`
2720
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2721
(eval "$lt_compile" 2>out/conftest.err)
2723
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2724
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2725
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2727
# The compiler can only warn and ignore the option if not recognized
2728
# So say no if there are warnings
2729
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2730
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2731
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2732
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2735
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2737
# SGI C++ compiler will create directory out/ii_files/ for
2738
# template instantiation
2739
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2740
$RM out/* && rmdir out
2745
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2746
[Does compiler simultaneously support -c and -o options?])
2747
])# _LT_COMPILER_C_O
2750
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2751
# ----------------------------------
2752
# Check to see if we can do hard links to lock some files if needed
2753
m4_defun([_LT_COMPILER_FILE_LOCKS],
2754
[m4_require([_LT_ENABLE_LOCK])dnl
2755
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2756
_LT_COMPILER_C_O([$1])
2758
hard_links="nottested"
2759
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2760
# do not overwrite the value of need_locks provided by the user
2761
AC_MSG_CHECKING([if we can lock with hard links])
2764
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2766
ln conftest.a conftest.b 2>&5 || hard_links=no
2767
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2768
AC_MSG_RESULT([$hard_links])
2769
if test "$hard_links" = no; then
2770
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2776
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2777
])# _LT_COMPILER_FILE_LOCKS
2782
m4_defun([_LT_CHECK_OBJDIR],
2783
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2784
[rm -f .libs 2>/dev/null
2785
mkdir .libs 2>/dev/null
2786
if test -d .libs; then
2789
# MS-DOS does not allow filenames that begin with a dot.
2792
rmdir .libs 2>/dev/null])
2793
objdir=$lt_cv_objdir
2794
_LT_DECL([], [objdir], [0],
2795
[The name of the directory that contains temporary libtool files])dnl
2796
m4_pattern_allow([LT_OBJDIR])dnl
2797
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2798
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2799
])# _LT_CHECK_OBJDIR
2802
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2803
# --------------------------------------
2804
# Check hardcoding attributes.
2805
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2806
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2807
_LT_TAGVAR(hardcode_action, $1)=
2808
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2809
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2810
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2812
# We can hardcode non-existent directories.
2813
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2814
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2815
# have to relink, otherwise we might link with an installed library
2816
# when we should be linking with a yet-to-be-installed one
2817
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2818
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2819
# Linking always hardcodes the temporary library directory.
2820
_LT_TAGVAR(hardcode_action, $1)=relink
2822
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2823
_LT_TAGVAR(hardcode_action, $1)=immediate
2826
# We cannot hardcode anything, or else we can only hardcode existing
2828
_LT_TAGVAR(hardcode_action, $1)=unsupported
2830
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2832
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2833
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2834
# Fast installation is not supported
2835
enable_fast_install=no
2836
elif test "$shlibpath_overrides_runpath" = yes ||
2837
test "$enable_shared" = no; then
2838
# Fast installation is not necessary
2839
enable_fast_install=needless
2841
_LT_TAGDECL([], [hardcode_action], [0],
2842
[How to hardcode a shared library path into an executable])
2843
])# _LT_LINKER_HARDCODE_LIBPATH
2848
m4_defun([_LT_CMD_STRIPLIB],
2849
[m4_require([_LT_DECL_EGREP])
2852
AC_MSG_CHECKING([whether stripping libraries is possible])
2853
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2854
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2855
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2856
AC_MSG_RESULT([yes])
2858
# FIXME - insert some real tests, host_os isn't really good enough
2861
if test -n "$STRIP" ; then
2862
striplib="$STRIP -x"
2863
old_striplib="$STRIP -S"
2864
AC_MSG_RESULT([yes])
2874
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2875
_LT_DECL([], [striplib], [1])
2876
])# _LT_CMD_STRIPLIB
2879
# _LT_SYS_DYNAMIC_LINKER([TAG])
2880
# -----------------------------
2881
# PORTME Fill in your ld.so characteristics
2882
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2883
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2884
m4_require([_LT_DECL_EGREP])dnl
2885
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2886
m4_require([_LT_DECL_OBJDUMP])dnl
2887
m4_require([_LT_DECL_SED])dnl
2888
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2889
AC_MSG_CHECKING([dynamic linker characteristics])
2892
if test "$GCC" = yes; then
2894
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2895
*) lt_awk_arg="/^libraries:/" ;;
2898
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2899
*) lt_sed_strip_eq="s,=/,/,g" ;;
2901
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2902
case $lt_search_path_spec in
2904
# if the path contains ";" then we assume it to be the separator
2905
# otherwise default to the standard path separator (i.e. ":") - it is
2906
# assumed that no part of a normal pathname contains ";" but that should
2907
# okay in the real world where ";" in dirpaths is itself problematic.
2908
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2911
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2914
# Ok, now we have the path, separated by spaces, we can step through it
2915
# and add multilib dir if necessary.
2916
lt_tmp_lt_search_path_spec=
2917
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2918
for lt_sys_path in $lt_search_path_spec; do
2919
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2920
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2922
test -d "$lt_sys_path" && \
2923
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2926
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2927
BEGIN {RS=" "; FS="/|\n";} {
2930
for (lt_i = NF; lt_i > 0; lt_i--) {
2931
if ($lt_i != "" && $lt_i != ".") {
2932
if ($lt_i == "..") {
2935
if (lt_count == 0) {
2936
lt_foo="/" $lt_i lt_foo;
2943
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2944
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2946
# AWK program above erroneously prepends '/' to C:/dos/paths
2949
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2950
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2952
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2954
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2957
libname_spec='lib$name'
2965
shlibpath_overrides_runpath=unknown
2967
dynamic_linker="$host_os ld.so"
2968
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2969
need_lib_prefix=unknown
2970
hardcode_into_libs=no
2972
# when you set need_version to no, make sure it does not cause -set_version
2973
# flags to be left without arguments
2974
need_version=unknown
2978
version_type=linux # correct to gnu/linux during the next big refactor
2979
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2980
shlibpath_var=LIBPATH
2982
# AIX 3 has no versioning support, so we append a major version to the name.
2983
soname_spec='${libname}${release}${shared_ext}$major'
2987
version_type=linux # correct to gnu/linux during the next big refactor
2990
hardcode_into_libs=yes
2991
if test "$host_cpu" = ia64; then
2992
# AIX 5 supports IA64
2993
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2994
shlibpath_var=LD_LIBRARY_PATH
2996
# With GCC up to 2.95.x, collect2 would create an import file
2997
# for dependence libraries. The import file would start with
2998
# the line `#! .'. This would cause the generated library to
2999
# depend on `.', always an invalid library. This was fixed in
3000
# development snapshots of GCC prior to 3.0.
3002
aix4 | aix4.[[01]] | aix4.[[01]].*)
3003
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3005
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3012
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3013
# soname into executable. Probably we can add versioning support to
3014
# collect2, so additional links can be useful in future.
3015
if test "$aix_use_runtimelinking" = yes; then
3016
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
3017
# instead of lib<name>.a to let people know that these are not
3018
# typical AIX shared libraries.
3019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3021
# We preserve .a as extension for shared libraries through AIX4.2
3022
# and later when we are not doing run time linking.
3023
library_names_spec='${libname}${release}.a $libname.a'
3024
soname_spec='${libname}${release}${shared_ext}$major'
3026
shlibpath_var=LIBPATH
3033
# Since July 2007 AmigaOS4 officially supports .so libraries.
3034
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3038
library_names_spec='$libname.ixlibrary $libname.a'
3039
# Create ${libname}_ixlibrary.a entries in /sys/libs.
3040
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
3046
library_names_spec='${libname}${shared_ext}'
3047
dynamic_linker="$host_os ld.so"
3048
shlibpath_var=LIBRARY_PATH
3052
version_type=linux # correct to gnu/linux during the next big refactor
3054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3055
soname_spec='${libname}${release}${shared_ext}$major'
3056
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3057
shlibpath_var=LD_LIBRARY_PATH
3058
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3059
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3060
# the default ld.so.conf also contains /usr/contrib/lib and
3061
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3062
# libtool to hard-code these into programs
3065
cygwin* | mingw* | pw32* | cegcc*)
3066
version_type=windows
3071
case $GCC,$cc_basename in
3074
library_names_spec='$libname.dll.a'
3075
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3076
postinstall_cmds='base_file=`basename \${file}`~
3077
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3078
dldir=$destdir/`dirname \$dlpath`~
3079
test -d \$dldir || mkdir -p \$dldir~
3080
$install_prog $dir/$dlname \$dldir/$dlname~
3081
chmod a+x \$dldir/$dlname~
3082
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3083
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3085
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3086
dlpath=$dir/\$dldll~
3088
shlibpath_overrides_runpath=yes
3092
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3093
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3095
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3098
# MinGW DLLs use traditional 'lib' prefix
3099
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3102
# pw32 DLLs use 'pw' prefix rather than 'lib'
3103
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3106
dynamic_linker='Win32 ld.exe'
3111
libname_spec='$name'
3112
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3113
library_names_spec='${libname}.dll.lib'
3117
sys_lib_search_path_spec=
3123
# Let DOS variable expansion print the short 8.3 style file name.
3124
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3125
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3128
# Convert to MSYS style.
3129
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3132
# Convert to unix form, then to dos form, then back to unix form
3133
# but this time dos style (no spaces!) so that the unix form looks
3134
# like /cygdrive/c/PROGRA~1:/cygdr...
3135
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3136
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3137
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3140
sys_lib_search_path_spec="$LIB"
3141
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3142
# It is most probably a Windows format PATH.
3143
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3145
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3147
# FIXME: find the short name or the path components, as spaces are
3148
# common. (e.g. "Program Files" -> "PROGRA~1")
3152
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3153
postinstall_cmds='base_file=`basename \${file}`~
3154
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3155
dldir=$destdir/`dirname \$dlpath`~
3156
test -d \$dldir || mkdir -p \$dldir~
3157
$install_prog $dir/$dlname \$dldir/$dlname'
3158
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3159
dlpath=$dir/\$dldll~
3161
shlibpath_overrides_runpath=yes
3162
dynamic_linker='Win32 link.exe'
3166
# Assume MSVC wrapper
3167
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3168
dynamic_linker='Win32 ld.exe'
3171
# FIXME: first we should search . and the directory the executable is in
3175
darwin* | rhapsody*)
3176
dynamic_linker="$host_os dyld"
3180
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3181
soname_spec='${libname}${release}${major}$shared_ext'
3182
shlibpath_overrides_runpath=yes
3183
shlibpath_var=DYLD_LIBRARY_PATH
3184
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3186
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3187
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3191
version_type=linux # correct to gnu/linux during the next big refactor
3194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3195
soname_spec='${libname}${release}${shared_ext}$major'
3196
shlibpath_var=LD_LIBRARY_PATH
3199
freebsd* | dragonfly*)
3200
# DragonFly does not have aout. When/if they implement a new
3201
# versioning mechanism, adjust this.
3202
if test -x /usr/bin/objformat; then
3203
objformat=`/usr/bin/objformat`
3206
freebsd[[23]].*) objformat=aout ;;
3210
version_type=freebsd-$objformat
3211
case $version_type in
3213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3218
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3222
shlibpath_var=LD_LIBRARY_PATH
3225
shlibpath_overrides_runpath=yes
3227
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3228
shlibpath_overrides_runpath=yes
3229
hardcode_into_libs=yes
3231
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3232
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3233
shlibpath_overrides_runpath=no
3234
hardcode_into_libs=yes
3236
*) # from 4.6 on, and DragonFly
3237
shlibpath_overrides_runpath=yes
3238
hardcode_into_libs=yes
3244
version_type=linux # correct to gnu/linux during the next big refactor
3247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3248
soname_spec='${libname}${release}${shared_ext}$major'
3249
shlibpath_var=LD_LIBRARY_PATH
3250
shlibpath_overrides_runpath=no
3251
hardcode_into_libs=yes
3255
version_type=linux # correct to gnu/linux during the next big refactor
3258
dynamic_linker="$host_os runtime_loader"
3259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3260
soname_spec='${libname}${release}${shared_ext}$major'
3261
shlibpath_var=LIBRARY_PATH
3262
shlibpath_overrides_runpath=yes
3263
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3264
hardcode_into_libs=yes
3267
hpux9* | hpux10* | hpux11*)
3268
# Give a soname corresponding to the major version so that dld.sl refuses to
3269
# link against other versions.
3276
hardcode_into_libs=yes
3277
dynamic_linker="$host_os dld.so"
3278
shlibpath_var=LD_LIBRARY_PATH
3279
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3281
soname_spec='${libname}${release}${shared_ext}$major'
3282
if test "X$HPUX_IA64_MODE" = X32; then
3283
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3285
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3287
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3291
hardcode_into_libs=yes
3292
dynamic_linker="$host_os dld.sl"
3293
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3294
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3295
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3296
soname_spec='${libname}${release}${shared_ext}$major'
3297
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3298
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3302
dynamic_linker="$host_os dld.sl"
3303
shlibpath_var=SHLIB_PATH
3304
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3306
soname_spec='${libname}${release}${shared_ext}$major'
3309
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3310
postinstall_cmds='chmod 555 $lib'
3311
# or fails outright, so override atomically:
3312
install_override_mode=555
3316
version_type=linux # correct to gnu/linux during the next big refactor
3319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3320
soname_spec='${libname}${release}${shared_ext}$major'
3321
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3322
shlibpath_var=LD_LIBRARY_PATH
3323
shlibpath_overrides_runpath=no
3324
hardcode_into_libs=yes
3327
irix5* | irix6* | nonstopux*)
3329
nonstopux*) version_type=nonstopux ;;
3331
if test "$lt_cv_prog_gnu_ld" = yes; then
3332
version_type=linux # correct to gnu/linux during the next big refactor
3339
soname_spec='${libname}${release}${shared_ext}$major'
3340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3342
irix5* | nonstopux*)
3346
case $LD in # libtool.m4 will add one of these switches to LD
3347
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3348
libsuff= shlibsuff= libmagic=32-bit;;
3349
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3350
libsuff=32 shlibsuff=N32 libmagic=N32;;
3351
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3352
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3353
*) libsuff= shlibsuff= libmagic=never-match;;
3357
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3358
shlibpath_overrides_runpath=no
3359
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3360
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3361
hardcode_into_libs=yes
3364
# No shared lib support for Linux oldld, aout, or coff.
3365
linux*oldld* | linux*aout* | linux*coff*)
3369
# This must be glibc/ELF.
3370
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3371
version_type=linux # correct to gnu/linux during the next big refactor
3374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3375
soname_spec='${libname}${release}${shared_ext}$major'
3376
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3377
shlibpath_var=LD_LIBRARY_PATH
3378
shlibpath_overrides_runpath=no
3380
# Some binutils ld are patched to set DT_RUNPATH
3381
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3382
[lt_cv_shlibpath_overrides_runpath=no
3383
save_LDFLAGS=$LDFLAGS
3385
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3386
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3387
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3388
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3389
[lt_cv_shlibpath_overrides_runpath=yes])])
3390
LDFLAGS=$save_LDFLAGS
3393
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3395
# This implies no fast_install, which is unacceptable.
3396
# Some rework will be needed to allow for fast_install
3397
# before this can be enabled.
3398
hardcode_into_libs=yes
3400
# Append ld.so.conf contents to the search path
3401
if test -f /etc/ld.so.conf; then
3402
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;s/"//g;/^$/d' | tr '\n' ' '`
3403
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3406
# We used to test for /lib/ld.so.1 and disable shared libraries on
3407
# powerpc, because MkLinux only supported shared libraries with the
3408
# GNU dynamic linker. Since this was broken with cross compilers,
3409
# most powerpc-linux boxes support dynamic linking these days and
3410
# people can always --disable-shared, the test was removed, and we
3411
# assume the GNU/Linux dynamic linker is in use.
3412
dynamic_linker='GNU/Linux ld.so'
3419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3420
soname_spec='${libname}${release}${shared_ext}$major'
3421
shlibpath_var=LD_LIBRARY_PATH
3422
shlibpath_overrides_runpath=no
3423
hardcode_into_libs=yes
3424
dynamic_linker='NetBSD ld.elf_so'
3431
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3433
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3434
dynamic_linker='NetBSD (a.out) ld.so'
3436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3437
soname_spec='${libname}${release}${shared_ext}$major'
3438
dynamic_linker='NetBSD ld.elf_so'
3440
shlibpath_var=LD_LIBRARY_PATH
3441
shlibpath_overrides_runpath=yes
3442
hardcode_into_libs=yes
3446
version_type=linux # correct to gnu/linux during the next big refactor
3447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3448
shlibpath_var=LD_LIBRARY_PATH
3449
shlibpath_overrides_runpath=yes
3456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3457
soname_spec='${libname}${release}${shared_ext}$major'
3458
shlibpath_var=LD_LIBRARY_PATH
3459
shlibpath_overrides_runpath=no
3460
hardcode_into_libs=yes
3461
dynamic_linker='ldqnx.so'
3466
sys_lib_dlsearch_path_spec="/usr/lib"
3468
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3470
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3471
*) need_version=no ;;
3473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3474
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3475
shlibpath_var=LD_LIBRARY_PATH
3476
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3478
openbsd2.[[89]] | openbsd2.[[89]].*)
3479
shlibpath_overrides_runpath=no
3482
shlibpath_overrides_runpath=yes
3486
shlibpath_overrides_runpath=yes
3491
libname_spec='$name'
3494
library_names_spec='$libname${shared_ext} $libname.a'
3495
dynamic_linker='OS/2 ld.exe'
3496
shlibpath_var=LIBPATH
3499
osf3* | osf4* | osf5*)
3503
soname_spec='${libname}${release}${shared_ext}$major'
3504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3505
shlibpath_var=LD_LIBRARY_PATH
3506
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3507
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3515
version_type=linux # correct to gnu/linux during the next big refactor
3518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3519
soname_spec='${libname}${release}${shared_ext}$major'
3520
shlibpath_var=LD_LIBRARY_PATH
3521
shlibpath_overrides_runpath=yes
3522
hardcode_into_libs=yes
3523
# ldd complains unless libraries are executable
3524
postinstall_cmds='chmod +x $lib'
3529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3530
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3531
shlibpath_var=LD_LIBRARY_PATH
3532
shlibpath_overrides_runpath=yes
3533
if test "$with_gnu_ld" = yes; then
3540
version_type=linux # correct to gnu/linux during the next big refactor
3541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3542
soname_spec='${libname}${release}${shared_ext}$major'
3543
shlibpath_var=LD_LIBRARY_PATH
3544
case $host_vendor in
3546
shlibpath_overrides_runpath=no
3548
runpath_var=LD_RUN_PATH
3556
shlibpath_overrides_runpath=no
3557
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3563
if test -d /usr/nec ;then
3564
version_type=linux # correct to gnu/linux during the next big refactor
3565
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3566
soname_spec='$libname${shared_ext}.$major'
3567
shlibpath_var=LD_LIBRARY_PATH
3571
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3572
version_type=freebsd-elf
3575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3576
soname_spec='${libname}${release}${shared_ext}$major'
3577
shlibpath_var=LD_LIBRARY_PATH
3578
shlibpath_overrides_runpath=yes
3579
hardcode_into_libs=yes
3580
if test "$with_gnu_ld" = yes; then
3581
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3583
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3586
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3590
sys_lib_dlsearch_path_spec='/usr/lib'
3594
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3595
version_type=linux # correct to gnu/linux during the next big refactor
3598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3599
shlibpath_var=LD_LIBRARY_PATH
3600
shlibpath_overrides_runpath=no
3601
hardcode_into_libs=yes
3605
version_type=linux # correct to gnu/linux during the next big refactor
3606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3607
soname_spec='${libname}${release}${shared_ext}$major'
3608
shlibpath_var=LD_LIBRARY_PATH
3615
AC_MSG_RESULT([$dynamic_linker])
3616
test "$dynamic_linker" = no && can_build_shared=no
3618
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3619
if test "$GCC" = yes; then
3620
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3623
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3624
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3626
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3627
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3630
_LT_DECL([], [variables_saved_for_relink], [1],
3631
[Variables whose values should be saved in libtool wrapper scripts and
3632
restored at link time])
3633
_LT_DECL([], [need_lib_prefix], [0],
3634
[Do we need the "lib" prefix for modules?])
3635
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3636
_LT_DECL([], [version_type], [0], [Library versioning type])
3637
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3638
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3639
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3640
[Is shlibpath searched before the hard-coded library search path?])
3641
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3642
_LT_DECL([], [library_names_spec], [1],
3643
[[List of archive names. First name is the real one, the rest are links.
3644
The last name is the one that the linker finds with -lNAME]])
3645
_LT_DECL([], [soname_spec], [1],
3646
[[The coded name of the library, if different from the real name]])
3647
_LT_DECL([], [install_override_mode], [1],
3648
[Permission mode override for installation of shared libraries])
3649
_LT_DECL([], [postinstall_cmds], [2],
3650
[Command to use after installation of a shared archive])
3651
_LT_DECL([], [postuninstall_cmds], [2],
3652
[Command to use after uninstallation of a shared archive])
3653
_LT_DECL([], [finish_cmds], [2],
3654
[Commands used to finish a libtool library installation in a directory])
3655
_LT_DECL([], [finish_eval], [1],
3656
[[As "finish_cmds", except a single script fragment to be evaled but
3658
_LT_DECL([], [hardcode_into_libs], [0],
3659
[Whether we should hardcode library paths into libraries])
3660
_LT_DECL([], [sys_lib_search_path_spec], [2],
3661
[Compile-time system search path for libraries])
3662
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3663
[Run-time system search path for libraries])
3664
])# _LT_SYS_DYNAMIC_LINKER
3667
# _LT_PATH_TOOL_PREFIX(TOOL)
3668
# --------------------------
3669
# find a file program which can recognize shared library
3670
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3671
[m4_require([_LT_DECL_EGREP])dnl
3672
AC_MSG_CHECKING([for $1])
3673
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3675
[[\\/*] | ?:[\\/]*])
3676
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3679
lt_save_MAGIC_CMD="$MAGIC_CMD"
3680
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3681
dnl $ac_dummy forces splitting on constant user-supplied paths.
3682
dnl POSIX.2 word splitting is done only on the output of word expansions,
3683
dnl not every word. This closes a longstanding sh security hole.
3684
ac_dummy="m4_if([$2], , $PATH, [$2])"
3685
for ac_dir in $ac_dummy; do
3687
test -z "$ac_dir" && ac_dir=.
3688
if test -f $ac_dir/$1; then
3689
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3690
if test -n "$file_magic_test_file"; then
3691
case $deplibs_check_method in
3693
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3694
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3695
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3696
$EGREP "$file_magic_regex" > /dev/null; then
3701
*** Warning: the command libtool uses to detect shared libraries,
3702
*** $file_magic_cmd, produces output that libtool cannot recognize.
3703
*** The result is that libtool may fail to recognize shared libraries
3704
*** as such. This will affect the creation of libtool libraries that
3705
*** depend on shared libraries, but programs linked with such libtool
3706
*** libraries will work regardless of this problem. Nevertheless, you
3707
*** may want to report the problem to your system manager and/or to
3708
*** bug-libtool@gnu.org
3718
MAGIC_CMD="$lt_save_MAGIC_CMD"
3721
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3722
if test -n "$MAGIC_CMD"; then
3723
AC_MSG_RESULT($MAGIC_CMD)
3727
_LT_DECL([], [MAGIC_CMD], [0],
3728
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3729
])# _LT_PATH_TOOL_PREFIX
3732
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3733
dnl aclocal-1.4 backwards compatibility:
3734
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3739
# find a file program which can recognize a shared library
3740
m4_defun([_LT_PATH_MAGIC],
3741
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3742
if test -z "$lt_cv_path_MAGIC_CMD"; then
3743
if test -n "$ac_tool_prefix"; then
3744
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3754
# find the pathname to the GNU or non-GNU linker
3755
AC_DEFUN([LT_PATH_LD],
3756
[AC_REQUIRE([AC_PROG_CC])dnl
3757
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3758
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3759
m4_require([_LT_DECL_SED])dnl
3760
m4_require([_LT_DECL_EGREP])dnl
3761
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3763
AC_ARG_WITH([gnu-ld],
3764
[AS_HELP_STRING([--with-gnu-ld],
3765
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3766
[test "$withval" = no || with_gnu_ld=yes],
3767
[with_gnu_ld=no])dnl
3770
if test "$GCC" = yes; then
3771
# Check if gcc -print-prog-name=ld gives a path.
3772
AC_MSG_CHECKING([for ld used by $CC])
3775
# gcc leaves a trailing carriage return which upsets mingw
3776
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3778
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3781
# Accept absolute paths.
3782
[[\\/]]* | ?:[[\\/]]*)
3783
re_direlt='/[[^/]][[^/]]*/\.\./'
3784
# Canonicalize the pathname of ld
3785
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3786
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3787
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3789
test -z "$LD" && LD="$ac_prog"
3792
# If it fails, then pretend we aren't using GCC.
3796
# If it is relative, then search for the first ld in PATH.
3800
elif test "$with_gnu_ld" = yes; then
3801
AC_MSG_CHECKING([for GNU ld])
3803
AC_MSG_CHECKING([for non-GNU ld])
3805
AC_CACHE_VAL(lt_cv_path_LD,
3806
[if test -z "$LD"; then
3807
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3808
for ac_dir in $PATH; do
3810
test -z "$ac_dir" && ac_dir=.
3811
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3812
lt_cv_path_LD="$ac_dir/$ac_prog"
3813
# Check to see if the program is GNU ld. I'd rather use --version,
3814
# but apparently some variants of GNU ld only accept -v.
3815
# Break only if it was the GNU/non-GNU ld that we prefer.
3816
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3817
*GNU* | *'with BFD'*)
3818
test "$with_gnu_ld" != no && break
3821
test "$with_gnu_ld" != yes && break
3828
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3831
if test -n "$LD"; then
3836
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3840
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3844
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3845
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3846
dnl aclocal-1.4 backwards compatibility:
3847
dnl AC_DEFUN([AM_PROG_LD], [])
3848
dnl AC_DEFUN([AC_PROG_LD], [])
3853
m4_defun([_LT_PATH_LD_GNU],
3854
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3855
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3856
case `$LD -v 2>&1 </dev/null` in
3857
*GNU* | *'with BFD'*)
3858
lt_cv_prog_gnu_ld=yes
3861
lt_cv_prog_gnu_ld=no
3864
with_gnu_ld=$lt_cv_prog_gnu_ld
3870
# find reload flag for linker
3871
# -- PORTME Some linkers may need a different reload flag.
3872
m4_defun([_LT_CMD_RELOAD],
3873
[AC_CACHE_CHECK([for $LD option to reload object files],
3874
lt_cv_ld_reload_flag,
3875
[lt_cv_ld_reload_flag='-r'])
3876
reload_flag=$lt_cv_ld_reload_flag
3877
case $reload_flag in
3879
*) reload_flag=" $reload_flag" ;;
3881
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3883
cygwin* | mingw* | pw32* | cegcc*)
3884
if test "$GCC" != yes; then
3889
if test "$GCC" = yes; then
3890
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3892
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3896
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3897
_LT_TAGDECL([], [reload_cmds], [2])dnl
3901
# _LT_CHECK_MAGIC_METHOD
3902
# ----------------------
3903
# how to check for library dependencies
3904
# -- PORTME fill in with the dynamic library characteristics
3905
m4_defun([_LT_CHECK_MAGIC_METHOD],
3906
[m4_require([_LT_DECL_EGREP])
3907
m4_require([_LT_DECL_OBJDUMP])
3908
AC_CACHE_CHECK([how to recognize dependent libraries],
3909
lt_cv_deplibs_check_method,
3910
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3911
lt_cv_file_magic_test_file=
3912
lt_cv_deplibs_check_method='unknown'
3913
# Need to set the preceding variable on all platforms that support
3914
# interlibrary dependencies.
3915
# 'none' -- dependencies not supported.
3916
# `unknown' -- same as none, but documents that we really don't know.
3917
# 'pass_all' -- all dependencies passed with no checks.
3918
# 'test_compile' -- check by making test program.
3919
# 'file_magic [[regex]]' -- check by looking for files in library path
3920
# which responds to the $file_magic_cmd with a given extended regex.
3921
# If you have `file' or equivalent on your system and you're not sure
3922
# whether `pass_all' will *always* work, you probably want this one.
3926
lt_cv_deplibs_check_method=pass_all
3930
lt_cv_deplibs_check_method=pass_all
3934
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3935
lt_cv_file_magic_cmd='/usr/bin/file -L'
3936
lt_cv_file_magic_test_file=/shlib/libc.so
3940
# func_win32_libid is a shell function defined in ltmain.sh
3941
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3942
lt_cv_file_magic_cmd='func_win32_libid'
3946
# Base MSYS/MinGW do not provide the 'file' command needed by
3947
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3948
# unless we find 'file', for example because we are cross-compiling.
3949
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3950
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3951
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3952
lt_cv_file_magic_cmd='func_win32_libid'
3954
# Keep this pattern in sync with the one in func_win32_libid.
3955
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3956
lt_cv_file_magic_cmd='$OBJDUMP -f'
3961
# use the weaker test based on 'objdump'. See mingw*.
3962
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3963
lt_cv_file_magic_cmd='$OBJDUMP -f'
3966
darwin* | rhapsody*)
3967
lt_cv_deplibs_check_method=pass_all
3970
freebsd* | dragonfly*)
3971
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3974
# Not sure whether the presence of OpenBSD here was a mistake.
3975
# Let's accept both of them until this is cleared up.
3976
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3977
lt_cv_file_magic_cmd=/usr/bin/file
3978
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3982
lt_cv_deplibs_check_method=pass_all
3987
lt_cv_deplibs_check_method=pass_all
3991
lt_cv_deplibs_check_method=pass_all
3994
hpux10.20* | hpux11*)
3995
lt_cv_file_magic_cmd=/usr/bin/file
3998
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3999
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4002
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
4003
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4006
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4007
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4013
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4014
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4017
irix5* | irix6* | nonstopux*)
4019
*-32|*"-32 ") libmagic=32-bit;;
4020
*-n32|*"-n32 ") libmagic=N32;;
4021
*-64|*"-64 ") libmagic=64-bit;;
4022
*) libmagic=never-match;;
4024
lt_cv_deplibs_check_method=pass_all
4027
# This must be glibc/ELF.
4028
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4029
lt_cv_deplibs_check_method=pass_all
4032
netbsd* | netbsdelf*-gnu)
4033
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4034
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4036
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4041
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4042
lt_cv_file_magic_cmd=/usr/bin/file
4043
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4047
lt_cv_deplibs_check_method=pass_all
4051
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4052
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4054
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4058
osf3* | osf4* | osf5*)
4059
lt_cv_deplibs_check_method=pass_all
4063
lt_cv_deplibs_check_method=pass_all
4067
lt_cv_deplibs_check_method=pass_all
4070
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4071
lt_cv_deplibs_check_method=pass_all
4075
case $host_vendor in
4077
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]]'
4078
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4081
lt_cv_deplibs_check_method=pass_all
4084
lt_cv_file_magic_cmd='/bin/file'
4085
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4088
lt_cv_file_magic_cmd='/bin/file'
4089
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4090
lt_cv_file_magic_test_file=/lib/libc.so
4093
lt_cv_deplibs_check_method=pass_all
4096
lt_cv_deplibs_check_method=pass_all
4102
lt_cv_deplibs_check_method=pass_all
4109
if test "$build" = "$host"; then
4112
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4115
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4121
file_magic_cmd=$lt_cv_file_magic_cmd
4122
deplibs_check_method=$lt_cv_deplibs_check_method
4123
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4125
_LT_DECL([], [deplibs_check_method], [1],
4126
[Method to check whether dependent libraries are shared objects])
4127
_LT_DECL([], [file_magic_cmd], [1],
4128
[Command to use when deplibs_check_method = "file_magic"])
4129
_LT_DECL([], [file_magic_glob], [1],
4130
[How to find potential files when deplibs_check_method = "file_magic"])
4131
_LT_DECL([], [want_nocaseglob], [1],
4132
[Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4133
])# _LT_CHECK_MAGIC_METHOD
4138
# find the pathname to a BSD- or MS-compatible name lister
4139
AC_DEFUN([LT_PATH_NM],
4140
[AC_REQUIRE([AC_PROG_CC])dnl
4141
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4142
[if test -n "$NM"; then
4143
# Let the user override the test.
4146
lt_nm_to_check="${ac_tool_prefix}nm"
4147
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4148
lt_nm_to_check="$lt_nm_to_check nm"
4150
for lt_tmp_nm in $lt_nm_to_check; do
4151
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4154
test -z "$ac_dir" && ac_dir=.
4155
tmp_nm="$ac_dir/$lt_tmp_nm"
4156
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4157
# Check to see if the nm accepts a BSD-compat flag.
4158
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4159
# nm: unknown option "B" ignored
4160
# Tru64's nm complains that /dev/null is an invalid object file
4161
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4162
*/dev/null* | *'Invalid file or object type'*)
4163
lt_cv_path_NM="$tmp_nm -B"
4167
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4169
lt_cv_path_NM="$tmp_nm -p"
4173
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4174
continue # so that we can try to find one that supports BSD flags
4183
: ${lt_cv_path_NM=no}
4185
if test "$lt_cv_path_NM" != "no"; then
4188
# Didn't find any BSD compatible name lister, look for dumpbin.
4189
if test -n "$DUMPBIN"; then :
4190
# Let the user override the test.
4192
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4193
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4195
DUMPBIN="$DUMPBIN -symbols"
4203
if test "$DUMPBIN" != ":"; then
4207
test -z "$NM" && NM=nm
4209
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4211
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4212
[lt_cv_nm_interface="BSD nm"
4213
echo "int some_variable = 0;" > conftest.$ac_ext
4214
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4215
(eval "$ac_compile" 2>conftest.err)
4216
cat conftest.err >&AS_MESSAGE_LOG_FD
4217
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4218
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4219
cat conftest.err >&AS_MESSAGE_LOG_FD
4220
(eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4221
cat conftest.out >&AS_MESSAGE_LOG_FD
4222
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4223
lt_cv_nm_interface="MS dumpbin"
4229
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4230
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4231
dnl aclocal-1.4 backwards compatibility:
4232
dnl AC_DEFUN([AM_PROG_NM], [])
4233
dnl AC_DEFUN([AC_PROG_NM], [])
4235
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4236
# --------------------------------
4237
# how to determine the name of the shared library
4238
# associated with a specific link library.
4239
# -- PORTME fill in with the dynamic library characteristics
4240
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4241
[m4_require([_LT_DECL_EGREP])
4242
m4_require([_LT_DECL_OBJDUMP])
4243
m4_require([_LT_DECL_DLLTOOL])
4244
AC_CACHE_CHECK([how to associate runtime and link libraries],
4245
lt_cv_sharedlib_from_linklib_cmd,
4246
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4249
cygwin* | mingw* | pw32* | cegcc*)
4250
# two different shell functions defined in ltmain.sh
4251
# decide which to use based on capabilities of $DLLTOOL
4252
case `$DLLTOOL --help 2>&1` in
4253
*--identify-strict*)
4254
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4257
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4262
# fallback: assume linklib IS sharedlib
4263
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4267
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4268
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4270
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4271
[Command to associate shared and link libraries])
4272
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4275
# _LT_PATH_MANIFEST_TOOL
4276
# ----------------------
4277
# locate the manifest tool
4278
m4_defun([_LT_PATH_MANIFEST_TOOL],
4279
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4280
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4281
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4282
[lt_cv_path_mainfest_tool=no
4283
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4284
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4285
cat conftest.err >&AS_MESSAGE_LOG_FD
4286
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4287
lt_cv_path_mainfest_tool=yes
4290
if test "x$lt_cv_path_mainfest_tool" != xyes; then
4293
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4294
])# _LT_PATH_MANIFEST_TOOL
4299
# check for math library
4300
AC_DEFUN([LT_LIB_M],
4301
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4304
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4305
# These system don't have libm, or don't need it
4308
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4309
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4312
AC_CHECK_LIB(m, cos, LIBM="-lm")
4319
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4320
dnl aclocal-1.4 backwards compatibility:
4321
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4324
# _LT_COMPILER_NO_RTTI([TAGNAME])
4325
# -------------------------------
4326
m4_defun([_LT_COMPILER_NO_RTTI],
4327
[m4_require([_LT_TAG_COMPILER])dnl
4329
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4331
if test "$GCC" = yes; then
4332
case $cc_basename in
4334
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4336
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4339
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4340
lt_cv_prog_compiler_rtti_exceptions,
4341
[-fno-rtti -fno-exceptions], [],
4342
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4344
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4345
[Compiler flag to turn off builtin functions])
4346
])# _LT_COMPILER_NO_RTTI
4349
# _LT_CMD_GLOBAL_SYMBOLS
4350
# ----------------------
4351
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4352
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4353
AC_REQUIRE([AC_PROG_CC])dnl
4354
AC_REQUIRE([AC_PROG_AWK])dnl
4355
AC_REQUIRE([LT_PATH_NM])dnl
4356
AC_REQUIRE([LT_PATH_LD])dnl
4357
m4_require([_LT_DECL_SED])dnl
4358
m4_require([_LT_DECL_EGREP])dnl
4359
m4_require([_LT_TAG_COMPILER])dnl
4361
# Check for command to grab the raw symbol name followed by C symbol from nm.
4362
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4363
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4365
# These are sane defaults that work on at least a few old systems.
4366
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4368
# Character class describing NM global symbol codes.
4369
symcode='[[BCDEGRST]]'
4371
# Regexp to match symbols that can be accessed directly from C.
4372
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4374
# Define system-specific variables.
4379
cygwin* | mingw* | pw32* | cegcc*)
4380
symcode='[[ABCDGISTW]]'
4383
if test "$host_cpu" = ia64; then
4384
symcode='[[ABCDEGRST]]'
4388
symcode='[[BCDEGRST]]'
4391
symcode='[[BCDEGQRST]]'
4402
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4406
symcode='[[DFNSTU]]'
4410
# If we're using GNU nm, then use its standard symbol codes.
4411
case `$NM -V 2>&1` in
4412
*GNU* | *'with BFD'*)
4413
symcode='[[ABCDGIRSTW]]' ;;
4416
# Transform an extracted symbol line into a proper C declaration.
4417
# Some systems (esp. on ia64) link data and code symbols differently,
4418
# so use this general approach.
4419
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4421
# Transform an extracted symbol line into symbol name and symbol address
4422
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4423
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'"
4425
# Handle CRLF in mingw tool chain
4429
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4433
# Try without a prefix underscore, then with it.
4434
for ac_symprfx in "" "_"; do
4436
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4437
symxfrm="\\1 $ac_symprfx\\2 \\2"
4439
# Write the raw and C identifiers.
4440
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4441
# Fake it for dumpbin and say T for any non-static function
4442
# and D for any global variable.
4443
# Also find C++ and __fastcall symbols from MSVC++,
4444
# which start with @ or ?.
4445
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4446
" {last_section=section; section=\$ 3};"\
4447
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4448
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4449
" \$ 0!~/External *\|/{next};"\
4450
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4451
" {if(hide[section]) next};"\
4452
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4453
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4454
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4455
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4456
" ' prfx=^$ac_symprfx]"
4458
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4460
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4462
# Check to see that the pipe works correctly.
4466
cat > conftest.$ac_ext <<_LT_EOF
4471
void nm_test_func(void);
4472
void nm_test_func(void){}
4476
int main(){nm_test_var='a';nm_test_func();return(0);}
4479
if AC_TRY_EVAL(ac_compile); then
4480
# Now try to grab the symbols.
4482
if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4483
# Try sorting and uniquifying the output.
4484
if sort "$nlist" | uniq > "$nlist"T; then
4485
mv -f "$nlist"T "$nlist"
4490
# Make sure that we snagged all the symbols we need.
4491
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4492
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4493
cat <<_LT_EOF > conftest.$ac_ext
4494
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4495
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4496
/* DATA imports from DLLs on WIN32 con't be const, because runtime
4497
relocations are performed -- see ld's documentation on pseudo-relocs. */
4498
# define LT@&t@_DLSYM_CONST
4499
#elif defined(__osf__)
4500
/* This system does not cope well with relocations in const data. */
4501
# define LT@&t@_DLSYM_CONST
4503
# define LT@&t@_DLSYM_CONST const
4511
# Now generate the symbol file.
4512
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4514
cat <<_LT_EOF >> conftest.$ac_ext
4516
/* The mapping between symbol names and symbols. */
4517
LT@&t@_DLSYM_CONST struct {
4521
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4523
{ "@PROGRAM@", (void *) 0 },
4525
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4526
cat <<\_LT_EOF >> conftest.$ac_ext
4530
/* This works around a problem in FreeBSD linker */
4531
#ifdef FREEBSD_WORKAROUND
4532
static const void *lt_preloaded_setup() {
4533
return lt__PROGRAM__LTX_preloaded_symbols;
4541
# Now try linking the two files.
4542
mv conftest.$ac_objext conftstm.$ac_objext
4543
lt_globsym_save_LIBS=$LIBS
4544
lt_globsym_save_CFLAGS=$CFLAGS
4545
LIBS="conftstm.$ac_objext"
4546
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4547
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4550
LIBS=$lt_globsym_save_LIBS
4551
CFLAGS=$lt_globsym_save_CFLAGS
4553
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4556
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4559
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4562
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4563
cat conftest.$ac_ext >&5
4565
rm -rf conftest* conftst*
4567
# Do not use the global_symbol_pipe unless it works.
4568
if test "$pipe_works" = yes; then
4571
lt_cv_sys_global_symbol_pipe=
4575
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4576
lt_cv_sys_global_symbol_to_cdecl=
4578
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4579
AC_MSG_RESULT(failed)
4584
# Response file support.
4585
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4586
nm_file_list_spec='@'
4587
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4588
nm_file_list_spec='@'
4591
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4592
[Take the output of nm and produce a listing of raw symbols and C names])
4593
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4594
[Transform the output of nm in a proper C declaration])
4595
_LT_DECL([global_symbol_to_c_name_address],
4596
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4597
[Transform the output of nm in a C name address pair])
4598
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4599
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4600
[Transform the output of nm in a C name address pair when lib prefix is needed])
4601
_LT_DECL([], [nm_file_list_spec], [1],
4602
[Specify filename containing input files for $NM])
4603
]) # _LT_CMD_GLOBAL_SYMBOLS
4606
# _LT_COMPILER_PIC([TAGNAME])
4607
# ---------------------------
4608
m4_defun([_LT_COMPILER_PIC],
4609
[m4_require([_LT_TAG_COMPILER])dnl
4610
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4611
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4612
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4614
m4_if([$1], [CXX], [
4615
# C++ specific cases for pic, static, wl, etc.
4616
if test "$GXX" = yes; then
4617
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4618
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4622
# All AIX code is PIC.
4623
if test "$host_cpu" = ia64; then
4624
# AIX 5 now supports IA64 processor
4625
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4632
# see comment about AmigaOS4 .so support
4633
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4636
# FIXME: we need at least 68020 code to build shared libraries, but
4637
# adding the `-m68020' flag to GCC prevents building anything better,
4639
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4644
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4645
# PIC is the default for these OSes.
4647
mingw* | cygwin* | os2* | pw32* | cegcc*)
4648
# This hack is so that the source file can tell whether it is being
4649
# built for inclusion in a dll (and should export symbols for example).
4650
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4651
# (--disable-auto-import) libraries
4652
m4_if([$1], [GCJ], [],
4653
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4655
darwin* | rhapsody*)
4656
# PIC is the default on this platform
4657
# Common symbols not allowed in MH_DYLIB files
4658
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4661
# DJGPP does not support shared libraries at all
4662
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4665
# PIC is the default for Haiku.
4666
# The "-static" flag exists, but is broken.
4667
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4670
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4671
# Instead, we relocate shared libraries at runtime.
4674
if test -d /usr/nec; then
4675
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4679
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4680
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4681
# sets the default TLS model and affects inlining.
4686
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4691
# QNX uses GNU C++, but need to define -shared option too, otherwise
4693
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4696
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4702
# All AIX code is PIC.
4703
if test "$host_cpu" = ia64; then
4704
# AIX 5 now supports IA64 processor
4705
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4707
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4711
case $cc_basename in
4713
# Green Hills C++ Compiler
4714
# _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"
4718
mingw* | cygwin* | os2* | pw32* | cegcc*)
4719
# This hack is so that the source file can tell whether it is being
4720
# built for inclusion in a dll (and should export symbols for example).
4721
m4_if([$1], [GCJ], [],
4722
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4725
case $cc_basename in
4727
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4730
# Green Hills C++ Compiler
4731
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4737
freebsd* | dragonfly*)
4738
# FreeBSD uses GNU C++
4740
hpux9* | hpux10* | hpux11*)
4741
case $cc_basename in
4743
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4745
if test "$host_cpu" != ia64; then
4746
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4750
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4757
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4766
# This is c89, which is MS Visual C++ (no shared libs)
4767
# Anyone wants to do a port?
4769
irix5* | irix6* | nonstopux*)
4770
case $cc_basename in
4772
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4773
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4774
# CC pic flag -KPIC is the default.
4780
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4781
case $cc_basename in
4784
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4785
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4788
# old Intel C++ for x86_64 which still supported -KPIC.
4789
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4790
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4791
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4794
# Intel C++, used to be incompatible with GCC.
4795
# ICC 10 doesn't accept -KPIC any more.
4796
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4797
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4798
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4801
# Portland Group C++ compiler
4802
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4804
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4808
# Make sure the PIC flag is empty. It appears that all Alpha
4809
# Linux and Compaq Tru64 Unix objects are PIC.
4810
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4811
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4813
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4814
# IBM XL 8.0, 9.0 on PPC and BlueGene
4815
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4816
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4817
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4820
case `$CC -V 2>&1 | sed 5q` in
4823
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4824
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4825
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4836
case $cc_basename in
4838
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4844
netbsd* | netbsdelf*-gnu)
4847
# QNX uses GNU C++, but need to define -shared option too, otherwise
4849
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4851
osf3* | osf4* | osf5*)
4852
case $cc_basename in
4854
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4857
# Rational C++ 2.4.1
4858
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4861
# Digital/Compaq C++
4862
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4863
# Make sure the PIC flag is empty. It appears that all Alpha
4864
# Linux and Compaq Tru64 Unix objects are PIC.
4865
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4866
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4875
case $cc_basename in
4877
# Sun C++ 4.2, 5.x and Centerline C++
4878
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4879
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4880
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4883
# Green Hills C++ Compiler
4884
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4891
case $cc_basename in
4894
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4895
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4899
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4905
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4906
case $cc_basename in
4908
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4909
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4910
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4915
case $cc_basename in
4917
# NonStop-UX NCC 3.20
4918
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4927
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4933
if test "$GCC" = yes; then
4934
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4935
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4939
# All AIX code is PIC.
4940
if test "$host_cpu" = ia64; then
4941
# AIX 5 now supports IA64 processor
4942
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4949
# see comment about AmigaOS4 .so support
4950
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4953
# FIXME: we need at least 68020 code to build shared libraries, but
4954
# adding the `-m68020' flag to GCC prevents building anything better,
4956
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4961
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4962
# PIC is the default for these OSes.
4965
mingw* | cygwin* | pw32* | os2* | cegcc*)
4966
# This hack is so that the source file can tell whether it is being
4967
# built for inclusion in a dll (and should export symbols for example).
4968
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4969
# (--disable-auto-import) libraries
4970
m4_if([$1], [GCJ], [],
4971
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4974
darwin* | rhapsody*)
4975
# PIC is the default on this platform
4976
# Common symbols not allowed in MH_DYLIB files
4977
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4981
# PIC is the default for Haiku.
4982
# The "-static" flag exists, but is broken.
4983
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4987
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4988
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4989
# sets the default TLS model and affects inlining.
4995
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5001
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5002
# Instead, we relocate shared libraries at runtime.
5006
# Just because we use GCC doesn't mean we suddenly get shared libraries
5007
# on systems that don't support them.
5008
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5013
# QNX uses GNU C++, but need to define -shared option too, otherwise
5015
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5019
if test -d /usr/nec; then
5020
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5025
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5029
case $cc_basename in
5030
nvcc*) # Cuda Compiler Driver 2.2
5031
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5032
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5033
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
5038
# PORTME Check for flag to pass linker flags through the system compiler.
5041
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5042
if test "$host_cpu" = ia64; then
5043
# AIX 5 now supports IA64 processor
5044
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5046
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5050
mingw* | cygwin* | pw32* | os2* | cegcc*)
5051
# This hack is so that the source file can tell whether it is being
5052
# built for inclusion in a dll (and should export symbols for example).
5053
m4_if([$1], [GCJ], [],
5054
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5057
hpux9* | hpux10* | hpux11*)
5058
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5059
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5066
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5069
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5070
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5073
irix5* | irix6* | nonstopux*)
5074
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5075
# PIC (with -KPIC) is the default.
5076
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5079
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5080
case $cc_basename in
5081
# old Intel for x86_64 which still supported -KPIC.
5083
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5085
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5087
# icc used to be incompatible with GCC.
5088
# ICC 10 doesn't accept -KPIC any more.
5090
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5091
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5092
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5094
# Lahey Fortran 8.1.
5096
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5097
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5098
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5101
# NAG Fortran compiler
5102
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5103
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5104
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5106
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5107
# Portland Group compilers (*not* the Pentium gcc compiler,
5108
# which looks to be a dead project)
5109
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5110
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5111
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5114
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5115
# All Alpha code is PIC.
5116
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5118
xl* | bgxl* | bgf* | mpixl*)
5119
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5120
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5121
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5122
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5125
case `$CC -V 2>&1 | sed 5q` in
5126
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5127
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5128
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5129
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5130
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5132
*Sun\ F* | *Sun*Fortran*)
5133
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5134
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5139
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5140
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5141
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5143
*Intel*\ [[CF]]*Compiler*)
5144
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5145
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5146
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5149
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5150
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5151
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5159
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5160
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5164
# QNX uses GNU C++, but need to define -shared option too, otherwise
5166
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5169
osf3* | osf4* | osf5*)
5170
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5171
# All OSF/1 code is PIC.
5172
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5176
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5180
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5181
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5182
case $cc_basename in
5183
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5184
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5186
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5191
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5192
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5193
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5196
sysv4 | sysv4.2uw2* | sysv4.3*)
5197
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5198
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5199
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5203
if test -d /usr/nec ;then
5204
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5205
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5209
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5210
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5211
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5212
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5216
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5217
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5221
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5222
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5226
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5232
# For platforms which do not support PIC, -DPIC is meaningless:
5234
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5237
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5241
AC_CACHE_CHECK([for $compiler option to produce PIC],
5242
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5243
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5244
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5247
# Check to make sure the PIC flag actually works.
5249
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5250
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5251
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5252
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5253
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5255
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5257
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5258
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5260
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5261
[Additional compiler flags for building library objects])
5263
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5264
[How to pass a linker flag through the compiler])
5266
# Check to make sure the static flag actually works.
5268
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5269
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5270
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5271
$lt_tmp_static_flag,
5273
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5274
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5275
[Compiler flag to prevent dynamic linking])
5276
])# _LT_COMPILER_PIC
5279
# _LT_LINKER_SHLIBS([TAGNAME])
5280
# ----------------------------
5281
# See if the linker supports building shared libraries.
5282
m4_defun([_LT_LINKER_SHLIBS],
5283
[AC_REQUIRE([LT_PATH_LD])dnl
5284
AC_REQUIRE([LT_PATH_NM])dnl
5285
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5286
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5287
m4_require([_LT_DECL_EGREP])dnl
5288
m4_require([_LT_DECL_SED])dnl
5289
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5290
m4_require([_LT_TAG_COMPILER])dnl
5291
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5292
m4_if([$1], [CXX], [
5293
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5294
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5297
# If we're using GNU nm, then we don't want the "-C" option.
5298
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5299
# Also, AIX nm treats weak defined symbols like other global defined
5300
# symbols, whereas GNU nm marks them as "W".
5301
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5302
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5304
_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'
5308
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5310
cygwin* | mingw* | cegcc*)
5311
case $cc_basename in
5313
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5316
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5317
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5321
linux* | k*bsd*-gnu | gnu*)
5322
_LT_TAGVAR(link_all_deplibs, $1)=no
5325
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5330
_LT_TAGVAR(allow_undefined_flag, $1)=
5331
_LT_TAGVAR(always_export_symbols, $1)=no
5332
_LT_TAGVAR(archive_cmds, $1)=
5333
_LT_TAGVAR(archive_expsym_cmds, $1)=
5334
_LT_TAGVAR(compiler_needs_object, $1)=no
5335
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5336
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5337
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5338
_LT_TAGVAR(hardcode_automatic, $1)=no
5339
_LT_TAGVAR(hardcode_direct, $1)=no
5340
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5341
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5342
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5343
_LT_TAGVAR(hardcode_minus_L, $1)=no
5344
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5345
_LT_TAGVAR(inherit_rpath, $1)=no
5346
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5347
_LT_TAGVAR(module_cmds, $1)=
5348
_LT_TAGVAR(module_expsym_cmds, $1)=
5349
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5350
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5351
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5352
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5353
# include_expsyms should be a list of space-separated symbols to be *always*
5354
# included in the symbol list
5355
_LT_TAGVAR(include_expsyms, $1)=
5356
# exclude_expsyms can be an extended regexp of symbols to exclude
5357
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5358
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5359
# as well as any symbol that contains `d'.
5360
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5361
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5362
# platforms (ab)use it in PIC code, but their linkers get confused if
5363
# the symbol is explicitly referenced. Since portable code cannot
5364
# rely on this symbol name, it's probably fine to never include it in
5365
# preloaded symbol tables.
5366
# Exclude shared library initialization/finalization symbols.
5367
dnl Note also adjust exclude_expsyms for C++ above.
5368
extract_expsyms_cmds=
5371
cygwin* | mingw* | pw32* | cegcc*)
5372
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5373
# When not using gcc, we currently assume that we are using
5374
# Microsoft Visual C++.
5375
if test "$GCC" != yes; then
5380
# we just hope/assume this is gcc and not c89 (= MSVC++)
5386
linux* | k*bsd*-gnu | gnu*)
5387
_LT_TAGVAR(link_all_deplibs, $1)=no
5391
_LT_TAGVAR(ld_shlibs, $1)=yes
5393
# On some targets, GNU ld is compatible enough with the native linker
5394
# that we're better off using the native interface for both.
5395
lt_use_gnu_ld_interface=no
5396
if test "$with_gnu_ld" = yes; then
5399
# The AIX port of GNU ld has always aspired to compatibility
5400
# with the native linker. However, as the warning in the GNU ld
5401
# block says, versions before 2.19.5* couldn't really create working
5402
# shared libraries, regardless of the interface used.
5403
case `$LD -v 2>&1` in
5404
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5405
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5406
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5408
lt_use_gnu_ld_interface=yes
5413
lt_use_gnu_ld_interface=yes
5418
if test "$lt_use_gnu_ld_interface" = yes; then
5419
# If archive_cmds runs LD, not CC, wlarc should be empty
5422
# Set some defaults for GNU ld with shared library support. These
5423
# are reset later if shared libraries are not supported. Putting them
5424
# here allows them to be overridden if necessary.
5425
runpath_var=LD_RUN_PATH
5426
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5427
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5428
# ancient GNU ld didn't support --whole-archive et. al.
5429
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5430
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5432
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5434
supports_anon_versioning=no
5435
case `$LD -v 2>&1` in
5436
*GNU\ gold*) supports_anon_versioning=yes ;;
5437
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5438
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5439
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5440
*\ 2.11.*) ;; # other 2.11 versions
5441
*) supports_anon_versioning=yes ;;
5444
# See if GNU ld supports shared libraries.
5447
# On AIX/PPC, the GNU linker is very broken
5448
if test "$host_cpu" != ia64; then
5449
_LT_TAGVAR(ld_shlibs, $1)=no
5452
*** Warning: the GNU linker, at least up to release 2.19, is reported
5453
*** to be unable to reliably create shared libraries on AIX.
5454
*** Therefore, libtool is disabling shared libraries support. If you
5455
*** really care for shared libraries, you may want to install binutils
5456
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5457
*** You will then need to restart the configuration process.
5466
# see comment about AmigaOS4 .so support
5467
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5468
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5471
_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)'
5472
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5473
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5479
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5480
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5481
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5482
# support --undefined. This deserves some investigation. FIXME
5483
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5485
_LT_TAGVAR(ld_shlibs, $1)=no
5489
cygwin* | mingw* | pw32* | cegcc*)
5490
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5491
# as there is no search path for DLLs.
5492
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5494
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5495
_LT_TAGVAR(always_export_symbols, $1)=no
5496
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5497
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5498
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5500
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5501
_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'
5502
# If the export-symbols file already is a .def file (1st line
5503
# is EXPORTS), use it as is; otherwise, prepend...
5504
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5505
cp $export_symbols $output_objdir/$soname.def;
5507
echo EXPORTS > $output_objdir/$soname.def;
5508
cat $export_symbols >> $output_objdir/$soname.def;
5510
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5512
_LT_TAGVAR(ld_shlibs, $1)=no
5517
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5518
_LT_TAGVAR(link_all_deplibs, $1)=yes
5522
_LT_TAGVAR(hardcode_direct, $1)=no
5523
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5524
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5525
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5526
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5527
# Instead, shared libraries are loaded at an image base (0x10000000 by
5528
# default) and relocated if they conflict, which is a slow very memory
5529
# consuming and fragmenting process. To avoid this, we pick a random,
5530
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5531
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5532
_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'
5533
_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'
5536
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5538
if test "$host_os" = linux-dietlibc; then
5539
case $cc_basename in
5540
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5543
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5544
&& test "$tmp_diet" = no
5546
tmp_addflag=' $pic_flag'
5547
tmp_sharedflag='-shared'
5548
case $cc_basename,$host_cpu in
5549
pgcc*) # Portland Group C compiler
5550
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5551
tmp_addflag=' $pic_flag'
5553
pgf77* | pgf90* | pgf95* | pgfortran*)
5554
# Portland Group f77 and f90 compilers
5555
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5556
tmp_addflag=' $pic_flag -Mnomain' ;;
5557
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5558
tmp_addflag=' -i_dynamic' ;;
5559
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5560
tmp_addflag=' -i_dynamic -nofor_main' ;;
5561
ifc* | ifort*) # Intel Fortran compiler
5562
tmp_addflag=' -nofor_main' ;;
5563
lf95*) # Lahey Fortran 8.1
5564
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5565
tmp_sharedflag='--shared' ;;
5566
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5567
tmp_sharedflag='-qmkshrobj'
5569
nvcc*) # Cuda Compiler Driver 2.2
5570
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5571
_LT_TAGVAR(compiler_needs_object, $1)=yes
5574
case `$CC -V 2>&1 | sed 5q` in
5575
*Sun\ C*) # Sun C 5.9
5576
_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5577
_LT_TAGVAR(compiler_needs_object, $1)=yes
5578
tmp_sharedflag='-G' ;;
5579
*Sun\ F*) # Sun Fortran 8.3
5580
tmp_sharedflag='-G' ;;
5582
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5584
if test "x$supports_anon_versioning" = xyes; then
5585
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5586
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5587
echo "local: *; };" >> $output_objdir/$libname.ver~
5588
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5591
case $cc_basename in
5592
xlf* | bgf* | bgxlf* | mpixlf*)
5593
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5594
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5595
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5596
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5597
if test "x$supports_anon_versioning" = xyes; then
5598
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5599
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5600
echo "local: *; };" >> $output_objdir/$libname.ver~
5601
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5606
_LT_TAGVAR(ld_shlibs, $1)=no
5610
netbsd* | netbsdelf*-gnu)
5611
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5612
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5615
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5616
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5621
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5622
_LT_TAGVAR(ld_shlibs, $1)=no
5625
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5626
*** create shared libraries on Solaris systems. Therefore, libtool
5627
*** is disabling shared libraries support. We urge you to upgrade GNU
5628
*** binutils to release 2.9.1 or newer. Another option is to modify
5629
*** your PATH or compiler configuration so that the native linker is
5630
*** used, and then restart.
5633
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5634
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5635
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5637
_LT_TAGVAR(ld_shlibs, $1)=no
5641
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5642
case `$LD -v 2>&1` in
5643
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5644
_LT_TAGVAR(ld_shlibs, $1)=no
5647
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5648
*** reliably create shared libraries on SCO systems. Therefore, libtool
5649
*** is disabling shared libraries support. We urge you to upgrade GNU
5650
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5651
*** your PATH or compiler configuration so that the native linker is
5652
*** used, and then restart.
5657
# For security reasons, it is highly recommended that you always
5658
# use absolute paths for naming shared libraries, and exclude the
5659
# DT_RUNPATH tag from executables and libraries. But doing so
5660
# requires that you compile everything twice, which is a pain.
5661
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5662
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5663
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5664
_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'
5666
_LT_TAGVAR(ld_shlibs, $1)=no
5673
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5675
_LT_TAGVAR(hardcode_direct, $1)=yes
5676
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5680
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5681
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5682
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5684
_LT_TAGVAR(ld_shlibs, $1)=no
5689
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5691
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5692
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5693
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5696
# PORTME fill in a description of your system's linker (not GNU ld)
5699
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5700
_LT_TAGVAR(always_export_symbols, $1)=yes
5701
_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'
5702
# Note: this linker hardcodes the directories in LIBPATH if there
5703
# are no directories specified by -L.
5704
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5705
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5706
# Neither direct hardcoding nor static linking is supported with a
5708
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5713
if test "$host_cpu" = ia64; then
5714
# On IA64, the linker does run time linking by default, so we don't
5715
# have to do anything special.
5716
aix_use_runtimelinking=no
5717
exp_sym_flag='-Bexport'
5720
# If we're using GNU nm, then we don't want the "-C" option.
5721
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5722
# Also, AIX nm treats weak defined symbols like other global
5723
# defined symbols, whereas GNU nm marks them as "W".
5724
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5725
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5727
_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'
5729
aix_use_runtimelinking=no
5731
# Test if we are trying to use run time linking or normal
5732
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5733
# need to do runtime linking.
5734
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5735
for ld_flag in $LDFLAGS; do
5736
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5737
aix_use_runtimelinking=yes
5744
exp_sym_flag='-bexport'
5745
no_entry_flag='-bnoentry'
5748
# When large executables or shared objects are built, AIX ld can
5749
# have problems creating the table of contents. If linking a library
5750
# or program results in "error TOC overflow" add -mminimal-toc to
5751
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5752
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5754
_LT_TAGVAR(archive_cmds, $1)=''
5755
_LT_TAGVAR(hardcode_direct, $1)=yes
5756
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5757
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5758
_LT_TAGVAR(link_all_deplibs, $1)=yes
5759
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5761
if test "$GCC" = yes; then
5762
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5763
# We only want to do this on AIX 4.2 and lower, the check
5764
# below for broken collect2 doesn't work under 4.3+
5765
collect2name=`${CC} -print-prog-name=collect2`
5766
if test -f "$collect2name" &&
5767
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5769
# We have reworked collect2
5772
# We have old collect2
5773
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5774
# It fails to find uninstalled libraries when the uninstalled
5775
# path is not listed in the libpath. Setting hardcode_minus_L
5776
# to unsupported forces relinking
5777
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5778
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5779
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5783
shared_flag='-shared'
5784
if test "$aix_use_runtimelinking" = yes; then
5785
shared_flag="$shared_flag "'${wl}-G'
5787
_LT_TAGVAR(link_all_deplibs, $1)=no
5790
if test "$host_cpu" = ia64; then
5791
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5792
# chokes on -Wl,-G. The following line is correct:
5795
if test "$aix_use_runtimelinking" = yes; then
5796
shared_flag='${wl}-G'
5798
shared_flag='${wl}-bM:SRE'
5803
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5804
# It seems that -bexpall does not export symbols beginning with
5805
# underscore (_), so it is better to generate a list of symbols to export.
5806
_LT_TAGVAR(always_export_symbols, $1)=yes
5807
if test "$aix_use_runtimelinking" = yes; then
5808
# Warning - without using the other runtime loading flags (-brtl),
5809
# -berok will link without error, but may produce a broken library.
5810
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5811
# Determine the default libpath from the value encoded in an
5813
_LT_SYS_MODULE_PATH_AIX([$1])
5814
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5815
_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5817
if test "$host_cpu" = ia64; then
5818
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5819
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5820
_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"
5822
# Determine the default libpath from the value encoded in an
5824
_LT_SYS_MODULE_PATH_AIX([$1])
5825
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5826
# Warning - without using the other run time loading flags,
5827
# -berok will link without error, but may produce a broken library.
5828
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5829
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5830
if test "$with_gnu_ld" = yes; then
5831
# We only use this code for GNU lds that support --whole-archive.
5832
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5834
# Exported symbols can be pulled into shared objects from archives
5835
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5837
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5838
# This is similar to how AIX traditionally builds its shared libraries.
5839
_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'
5847
# see comment about AmigaOS4 .so support
5848
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5849
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5852
_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)'
5853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5854
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5860
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5863
cygwin* | mingw* | pw32* | cegcc*)
5864
# When not using gcc, we currently assume that we are using
5865
# Microsoft Visual C++.
5866
# hardcode_libdir_flag_spec is actually meaningless, as there is
5867
# no search path for DLLs.
5868
case $cc_basename in
5871
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5872
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5873
_LT_TAGVAR(always_export_symbols, $1)=yes
5874
_LT_TAGVAR(file_list_spec, $1)='@'
5875
# Tell ltmain to make .lib files, not .a files.
5877
# Tell ltmain to make .dll files, not .so files.
5879
# FIXME: Setting linknames here is a bad hack.
5880
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5881
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5882
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5884
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5886
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5888
# The linker will not automatically build a static lib if we build a DLL.
5889
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5890
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5891
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5892
_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'
5894
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5895
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5896
lt_tool_outputfile="@TOOL_OUTPUT@"~
5897
case $lt_outputfile in
5900
lt_outputfile="$lt_outputfile.exe"
5901
lt_tool_outputfile="$lt_tool_outputfile.exe"
5904
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5905
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5906
$RM "$lt_outputfile.manifest";
5910
# Assume MSVC wrapper
5911
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5912
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5913
# Tell ltmain to make .lib files, not .a files.
5915
# Tell ltmain to make .dll files, not .so files.
5917
# FIXME: Setting linknames here is a bad hack.
5918
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5919
# The linker will automatically build a .lib file if we build a DLL.
5920
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5921
# FIXME: Should let the user specify the lib program.
5922
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5923
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5928
darwin* | rhapsody*)
5929
_LT_DARWIN_LINKER_FEATURES($1)
5933
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5934
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5935
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5938
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5939
# support. Future versions do this automatically, but an explicit c++rt0.o
5940
# does not break anything, and helps significantly (at the cost of a little
5943
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5944
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5945
_LT_TAGVAR(hardcode_direct, $1)=yes
5946
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5949
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5951
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5952
_LT_TAGVAR(hardcode_direct, $1)=yes
5953
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5954
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5958
freebsd* | dragonfly*)
5959
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5960
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5961
_LT_TAGVAR(hardcode_direct, $1)=yes
5962
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5966
if test "$GCC" = yes; then
5967
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5969
_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'
5971
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5972
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5973
_LT_TAGVAR(hardcode_direct, $1)=yes
5975
# hardcode_minus_L: Not really in the search PATH,
5976
# but as the default location of the library.
5977
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5978
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5982
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5983
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5985
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5987
if test "$with_gnu_ld" = no; then
5988
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5989
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5990
_LT_TAGVAR(hardcode_direct, $1)=yes
5991
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5992
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5993
# hardcode_minus_L: Not really in the search PATH,
5994
# but as the default location of the library.
5995
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6000
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6003
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6006
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6009
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6015
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6018
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6022
# Older versions of the 11.00 compiler do not understand -b yet
6023
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
6024
_LT_LINKER_OPTION([if $CC understands -b],
6025
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
6026
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6027
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
6028
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6032
if test "$with_gnu_ld" = no; then
6033
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6034
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6038
_LT_TAGVAR(hardcode_direct, $1)=no
6039
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6042
_LT_TAGVAR(hardcode_direct, $1)=yes
6043
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6044
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6046
# hardcode_minus_L: Not really in the search PATH,
6047
# but as the default location of the library.
6048
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6054
irix5* | irix6* | nonstopux*)
6055
if test "$GCC" = yes; then
6056
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6057
# Try to use the -exported_symbol ld option, if it does not
6058
# work, assume that -exports_file does not work either and
6059
# implicitly export all symbols.
6060
# This should be the same for all languages, so no per-tag cache variable.
6061
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6062
[lt_cv_irix_exported_symbol],
6063
[save_LDFLAGS="$LDFLAGS"
6064
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6067
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6068
[C++], [[int foo (void) { return 0; }]],
6075
[lt_cv_irix_exported_symbol=yes],
6076
[lt_cv_irix_exported_symbol=no])
6077
LDFLAGS="$save_LDFLAGS"])
6078
if test "$lt_cv_irix_exported_symbol" = yes; then
6079
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6082
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6083
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6085
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6086
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6087
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6088
_LT_TAGVAR(inherit_rpath, $1)=yes
6089
_LT_TAGVAR(link_all_deplibs, $1)=yes
6092
netbsd* | netbsdelf*-gnu)
6093
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6094
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6096
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6098
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6099
_LT_TAGVAR(hardcode_direct, $1)=yes
6100
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6104
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6105
_LT_TAGVAR(hardcode_direct, $1)=yes
6106
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6107
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6108
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6115
if test -f /usr/libexec/ld.so; then
6116
_LT_TAGVAR(hardcode_direct, $1)=yes
6117
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6118
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6119
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6120
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6121
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6122
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6123
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6126
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6127
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6128
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6131
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6132
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6137
_LT_TAGVAR(ld_shlibs, $1)=no
6142
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6143
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6144
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6145
_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'
6146
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6150
if test "$GCC" = yes; then
6151
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6152
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6154
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6155
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6157
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6158
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6159
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6162
osf4* | osf5*) # as osf3* with the addition of -msym flag
6163
if test "$GCC" = yes; then
6164
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6165
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6166
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6168
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6169
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6170
_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~
6171
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6173
# Both c and cxx compiler support -rpath directly
6174
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6176
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6177
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6181
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6182
if test "$GCC" = yes; then
6184
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6185
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6186
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6188
case `$CC -V 2>&1` in
6191
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6192
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6193
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6197
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6198
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6199
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6203
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6204
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6206
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6208
# The compiler driver will combine and reorder linker options,
6209
# but understands `-z linker_flag'. GCC discards it without `$wl',
6210
# but is careful enough not to reorder.
6211
# Supported since Solaris 2.6 (maybe 2.5.1?)
6212
if test "$GCC" = yes; then
6213
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6215
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6219
_LT_TAGVAR(link_all_deplibs, $1)=yes
6223
if test "x$host_vendor" = xsequent; then
6224
# Use $CC to link under sequent, because it throws in some extra .o
6225
# files that make .init and .fini sections work.
6226
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6228
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6230
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6231
_LT_TAGVAR(hardcode_direct, $1)=yes
6232
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6233
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6237
case $host_vendor in
6239
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6240
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6243
## LD is ld it makes a PLAMLIB
6244
## CC just makes a GrossModule.
6245
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6246
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6247
_LT_TAGVAR(hardcode_direct, $1)=no
6250
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6251
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6254
runpath_var='LD_RUN_PATH'
6255
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6259
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6260
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6261
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6265
if test -d /usr/nec; then
6266
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6267
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6268
runpath_var=LD_RUN_PATH
6269
hardcode_runpath_var=yes
6270
_LT_TAGVAR(ld_shlibs, $1)=yes
6274
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6275
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6276
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6277
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6278
runpath_var='LD_RUN_PATH'
6280
if test "$GCC" = yes; then
6281
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6282
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6284
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6285
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6289
sysv5* | sco3.2v5* | sco5v6*)
6290
# Note: We can NOT use -z defs as we might desire, because we do not
6291
# link with -lc, and that would cause any symbols used from libc to
6292
# always be unresolved, which means just about no library would
6293
# ever link correctly. If we're not using GNU ld we use -z text
6294
# though, which does catch some bad symbols but isn't as heavy-handed
6296
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6297
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6298
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6299
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6300
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6301
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6302
_LT_TAGVAR(link_all_deplibs, $1)=yes
6303
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6304
runpath_var='LD_RUN_PATH'
6306
if test "$GCC" = yes; then
6307
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6308
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6310
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6311
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6316
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6317
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6318
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6322
_LT_TAGVAR(ld_shlibs, $1)=no
6326
if test x$host_vendor = xsni; then
6328
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6329
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6335
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6336
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6338
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6340
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6341
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6342
_LT_DECL([], [extract_expsyms_cmds], [2],
6343
[The commands to extract the exported symbol list from a shared archive])
6346
# Do we need to explicitly link libc?
6348
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6350
# Assume -lc should be added
6351
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6353
if test "$enable_shared" = yes && test "$GCC" = yes; then
6354
case $_LT_TAGVAR(archive_cmds, $1) in
6356
# FIXME: we may have to deal with multi-command sequences.
6359
# Test whether the compiler implicitly links with -lc since on some
6360
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6361
# to ld, don't add -lc before -lgcc.
6362
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6363
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6365
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6367
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6370
libobjs=conftest.$ac_objext
6372
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6373
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6379
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6380
_LT_TAGVAR(allow_undefined_flag, $1)=
6381
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6383
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6385
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6387
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6389
cat conftest.err 1>&5
6393
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6400
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6401
[Whether or not to add -lc for building shared libraries])
6402
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6403
[enable_shared_with_static_runtimes], [0],
6404
[Whether or not to disallow shared libs when runtime libs are static])
6405
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6406
[Compiler flag to allow reflexive dlopens])
6407
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6408
[Compiler flag to generate shared objects directly from archives])
6409
_LT_TAGDECL([], [compiler_needs_object], [1],
6410
[Whether the compiler copes with passing no objects directly])
6411
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6412
[Create an old-style archive from a shared archive])
6413
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6414
[Create a temporary old-style archive to link instead of a shared archive])
6415
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6416
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6417
_LT_TAGDECL([], [module_cmds], [2],
6418
[Commands used to build a loadable module if different from building
6420
_LT_TAGDECL([], [module_expsym_cmds], [2])
6421
_LT_TAGDECL([], [with_gnu_ld], [1],
6422
[Whether we are building with GNU ld or not])
6423
_LT_TAGDECL([], [allow_undefined_flag], [1],
6424
[Flag that allows shared libraries with undefined symbols to be built])
6425
_LT_TAGDECL([], [no_undefined_flag], [1],
6426
[Flag that enforces no undefined symbols])
6427
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6428
[Flag to hardcode $libdir into a binary during linking.
6429
This must work even if $libdir does not exist])
6430
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6431
[Whether we need a single "-rpath" flag with a separated argument])
6432
_LT_TAGDECL([], [hardcode_direct], [0],
6433
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6434
DIR into the resulting binary])
6435
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6436
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6437
DIR into the resulting binary and the resulting library dependency is
6438
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6439
library is relocated])
6440
_LT_TAGDECL([], [hardcode_minus_L], [0],
6441
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6442
into the resulting binary])
6443
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6444
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6445
into the resulting binary])
6446
_LT_TAGDECL([], [hardcode_automatic], [0],
6447
[Set to "yes" if building a shared library automatically hardcodes DIR
6448
into the library and all subsequent libraries and executables linked
6450
_LT_TAGDECL([], [inherit_rpath], [0],
6451
[Set to yes if linker adds runtime paths of dependent libraries
6452
to runtime path list])
6453
_LT_TAGDECL([], [link_all_deplibs], [0],
6454
[Whether libtool must link a program against all its dependency libraries])
6455
_LT_TAGDECL([], [always_export_symbols], [0],
6456
[Set to "yes" if exported symbols are required])
6457
_LT_TAGDECL([], [export_symbols_cmds], [2],
6458
[The commands to list exported symbols])
6459
_LT_TAGDECL([], [exclude_expsyms], [1],
6460
[Symbols that should not be listed in the preloaded symbols])
6461
_LT_TAGDECL([], [include_expsyms], [1],
6462
[Symbols that must always be exported])
6463
_LT_TAGDECL([], [prelink_cmds], [2],
6464
[Commands necessary for linking programs (against libraries) with templates])
6465
_LT_TAGDECL([], [postlink_cmds], [2],
6466
[Commands necessary for finishing linking programs])
6467
_LT_TAGDECL([], [file_list_spec], [1],
6468
[Specify filename containing input files])
6469
dnl FIXME: Not yet implemented
6470
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6471
dnl [Compiler flag to generate thread safe objects])
6472
])# _LT_LINKER_SHLIBS
6475
# _LT_LANG_C_CONFIG([TAG])
6476
# ------------------------
6477
# Ensure that the configuration variables for a C compiler are suitably
6478
# defined. These variables are subsequently used by _LT_CONFIG to write
6479
# the compiler configuration to `libtool'.
6480
m4_defun([_LT_LANG_C_CONFIG],
6481
[m4_require([_LT_DECL_EGREP])dnl
6485
# Source file extension for C test sources.
6488
# Object file extension for compiled C test sources.
6490
_LT_TAGVAR(objext, $1)=$objext
6492
# Code to be used in simple compile tests
6493
lt_simple_compile_test_code="int some_variable = 0;"
6495
# Code to be used in simple link tests
6496
lt_simple_link_test_code='int main(){return(0);}'
6499
# Save the default compiler, since it gets overwritten when the other
6500
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6501
compiler_DEFAULT=$CC
6503
# save warnings/boilerplate of simple test code
6504
_LT_COMPILER_BOILERPLATE
6505
_LT_LINKER_BOILERPLATE
6507
if test -n "$compiler"; then
6508
_LT_COMPILER_NO_RTTI($1)
6509
_LT_COMPILER_PIC($1)
6510
_LT_COMPILER_C_O($1)
6511
_LT_COMPILER_FILE_LOCKS($1)
6512
_LT_LINKER_SHLIBS($1)
6513
_LT_SYS_DYNAMIC_LINKER($1)
6514
_LT_LINKER_HARDCODE_LIBPATH($1)
6518
# Report which library types will actually be built
6519
AC_MSG_CHECKING([if libtool supports shared libraries])
6520
AC_MSG_RESULT([$can_build_shared])
6522
AC_MSG_CHECKING([whether to build shared libraries])
6523
test "$can_build_shared" = "no" && enable_shared=no
6525
# On AIX, shared libraries and static libraries use the same namespace, and
6526
# are all built from PIC.
6529
test "$enable_shared" = yes && enable_static=no
6530
if test -n "$RANLIB"; then
6531
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6532
postinstall_cmds='$RANLIB $lib'
6537
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6538
test "$enable_shared" = yes && enable_static=no
6542
AC_MSG_RESULT([$enable_shared])
6544
AC_MSG_CHECKING([whether to build static libraries])
6545
# Make sure either enable_shared or enable_static is yes.
6546
test "$enable_shared" = yes || enable_static=yes
6547
AC_MSG_RESULT([$enable_static])
6553
])# _LT_LANG_C_CONFIG
6556
# _LT_LANG_CXX_CONFIG([TAG])
6557
# --------------------------
6558
# Ensure that the configuration variables for a C++ compiler are suitably
6559
# defined. These variables are subsequently used by _LT_CONFIG to write
6560
# the compiler configuration to `libtool'.
6561
m4_defun([_LT_LANG_CXX_CONFIG],
6562
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6563
m4_require([_LT_DECL_EGREP])dnl
6564
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6565
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6566
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6567
(test "X$CXX" != "Xg++"))) ; then
6570
_lt_caught_CXX_error=yes
6574
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6575
_LT_TAGVAR(allow_undefined_flag, $1)=
6576
_LT_TAGVAR(always_export_symbols, $1)=no
6577
_LT_TAGVAR(archive_expsym_cmds, $1)=
6578
_LT_TAGVAR(compiler_needs_object, $1)=no
6579
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6580
_LT_TAGVAR(hardcode_direct, $1)=no
6581
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6582
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6583
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6584
_LT_TAGVAR(hardcode_minus_L, $1)=no
6585
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6586
_LT_TAGVAR(hardcode_automatic, $1)=no
6587
_LT_TAGVAR(inherit_rpath, $1)=no
6588
_LT_TAGVAR(module_cmds, $1)=
6589
_LT_TAGVAR(module_expsym_cmds, $1)=
6590
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6591
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6592
_LT_TAGVAR(reload_flag, $1)=$reload_flag
6593
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6594
_LT_TAGVAR(no_undefined_flag, $1)=
6595
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6596
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6598
# Source file extension for C++ test sources.
6601
# Object file extension for compiled C++ test sources.
6603
_LT_TAGVAR(objext, $1)=$objext
6605
# No sense in running all these tests if we already determined that
6606
# the CXX compiler isn't working. Some variables (like enable_shared)
6607
# are currently assumed to apply to all compilers on this platform,
6608
# and will be corrupted by setting them based on a non-working compiler.
6609
if test "$_lt_caught_CXX_error" != yes; then
6610
# Code to be used in simple compile tests
6611
lt_simple_compile_test_code="int some_variable = 0;"
6613
# Code to be used in simple link tests
6614
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6616
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6619
# save warnings/boilerplate of simple test code
6620
_LT_COMPILER_BOILERPLATE
6621
_LT_LINKER_BOILERPLATE
6623
# Allow CC to be a program name with arguments.
6625
lt_save_CFLAGS=$CFLAGS
6629
lt_save_with_gnu_ld=$with_gnu_ld
6630
lt_save_path_LD=$lt_cv_path_LD
6631
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6632
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6634
$as_unset lt_cv_prog_gnu_ld
6636
if test -n "${lt_cv_path_LDCXX+set}"; then
6637
lt_cv_path_LD=$lt_cv_path_LDCXX
6639
$as_unset lt_cv_path_LD
6641
test -z "${LDCXX+set}" || LD=$LDCXX
6645
_LT_TAGVAR(compiler, $1)=$CC
6646
_LT_CC_BASENAME([$compiler])
6648
if test -n "$compiler"; then
6649
# We don't want -fno-exception when compiling C++ code, so set the
6650
# no_builtin_flag separately
6651
if test "$GXX" = yes; then
6652
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6654
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6657
if test "$GXX" = yes; then
6658
# Set up default GNU C++ configuration
6662
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6663
# archiving commands below assume that GNU ld is being used.
6664
if test "$with_gnu_ld" = yes; then
6665
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6666
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6668
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6669
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6671
# If archive_cmds runs LD, not CC, wlarc should be empty
6672
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6673
# investigate it a little bit more. (MM)
6676
# ancient GNU ld didn't support --whole-archive et. al.
6677
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6678
$GREP 'no-whole-archive' > /dev/null; then
6679
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6681
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6687
# A generic and very simple default shared library creation
6688
# command for GNU C++ for the case where it uses the native
6689
# linker, instead of GNU ld. If possible, this setting should
6690
# overridden to take advantage of the native linker features on
6691
# the platform it is being used on.
6692
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6695
# Commands to make compiler produce verbose output that lists
6696
# what "hidden" libraries, object files and flags are used when
6697
# linking a shared library.
6698
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6706
# PORTME: fill in a description of your system's C++ link characteristics
6707
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6708
_LT_TAGVAR(ld_shlibs, $1)=yes
6711
# FIXME: insert proper C++ library support
6712
_LT_TAGVAR(ld_shlibs, $1)=no
6715
if test "$host_cpu" = ia64; then
6716
# On IA64, the linker does run time linking by default, so we don't
6717
# have to do anything special.
6718
aix_use_runtimelinking=no
6719
exp_sym_flag='-Bexport'
6722
aix_use_runtimelinking=no
6724
# Test if we are trying to use run time linking or normal
6725
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6726
# need to do runtime linking.
6727
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6728
for ld_flag in $LDFLAGS; do
6731
aix_use_runtimelinking=yes
6739
exp_sym_flag='-bexport'
6740
no_entry_flag='-bnoentry'
6743
# When large executables or shared objects are built, AIX ld can
6744
# have problems creating the table of contents. If linking a library
6745
# or program results in "error TOC overflow" add -mminimal-toc to
6746
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6747
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6749
_LT_TAGVAR(archive_cmds, $1)=''
6750
_LT_TAGVAR(hardcode_direct, $1)=yes
6751
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6752
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6753
_LT_TAGVAR(link_all_deplibs, $1)=yes
6754
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6756
if test "$GXX" = yes; then
6757
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6758
# We only want to do this on AIX 4.2 and lower, the check
6759
# below for broken collect2 doesn't work under 4.3+
6760
collect2name=`${CC} -print-prog-name=collect2`
6761
if test -f "$collect2name" &&
6762
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6764
# We have reworked collect2
6767
# We have old collect2
6768
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6769
# It fails to find uninstalled libraries when the uninstalled
6770
# path is not listed in the libpath. Setting hardcode_minus_L
6771
# to unsupported forces relinking
6772
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6773
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6774
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6777
shared_flag='-shared'
6778
if test "$aix_use_runtimelinking" = yes; then
6779
shared_flag="$shared_flag "'${wl}-G'
6783
if test "$host_cpu" = ia64; then
6784
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6785
# chokes on -Wl,-G. The following line is correct:
6788
if test "$aix_use_runtimelinking" = yes; then
6789
shared_flag='${wl}-G'
6791
shared_flag='${wl}-bM:SRE'
6796
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6797
# It seems that -bexpall does not export symbols beginning with
6798
# underscore (_), so it is better to generate a list of symbols to
6800
_LT_TAGVAR(always_export_symbols, $1)=yes
6801
if test "$aix_use_runtimelinking" = yes; then
6802
# Warning - without using the other runtime loading flags (-brtl),
6803
# -berok will link without error, but may produce a broken library.
6804
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6805
# Determine the default libpath from the value encoded in an empty
6807
_LT_SYS_MODULE_PATH_AIX([$1])
6808
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6810
_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6812
if test "$host_cpu" = ia64; then
6813
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6814
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6815
_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"
6817
# Determine the default libpath from the value encoded in an
6819
_LT_SYS_MODULE_PATH_AIX([$1])
6820
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6821
# Warning - without using the other run time loading flags,
6822
# -berok will link without error, but may produce a broken library.
6823
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6824
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6825
if test "$with_gnu_ld" = yes; then
6826
# We only use this code for GNU lds that support --whole-archive.
6827
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6829
# Exported symbols can be pulled into shared objects from archives
6830
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6832
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6833
# This is similar to how AIX traditionally builds its shared
6835
_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'
6841
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6842
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6843
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6844
# support --undefined. This deserves some investigation. FIXME
6845
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6847
_LT_TAGVAR(ld_shlibs, $1)=no
6852
case $cc_basename in
6854
# FIXME: insert proper C++ library support
6855
_LT_TAGVAR(ld_shlibs, $1)=no
6860
cygwin* | mingw* | pw32* | cegcc*)
6861
case $GXX,$cc_basename in
6864
# hardcode_libdir_flag_spec is actually meaningless, as there is
6865
# no search path for DLLs.
6866
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6867
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6868
_LT_TAGVAR(always_export_symbols, $1)=yes
6869
_LT_TAGVAR(file_list_spec, $1)='@'
6870
# Tell ltmain to make .lib files, not .a files.
6872
# Tell ltmain to make .dll files, not .so files.
6874
# FIXME: Setting linknames here is a bad hack.
6875
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6876
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6877
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6879
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6881
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6883
# The linker will not automatically build a static lib if we build a DLL.
6884
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6885
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6887
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6888
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6889
lt_tool_outputfile="@TOOL_OUTPUT@"~
6890
case $lt_outputfile in
6893
lt_outputfile="$lt_outputfile.exe"
6894
lt_tool_outputfile="$lt_tool_outputfile.exe"
6897
func_to_tool_file "$lt_outputfile"~
6898
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6899
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6900
$RM "$lt_outputfile.manifest";
6905
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6906
# as there is no search path for DLLs.
6907
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6908
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6909
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6910
_LT_TAGVAR(always_export_symbols, $1)=no
6911
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6913
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6914
_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'
6915
# If the export-symbols file already is a .def file (1st line
6916
# is EXPORTS), use it as is; otherwise, prepend...
6917
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6918
cp $export_symbols $output_objdir/$soname.def;
6920
echo EXPORTS > $output_objdir/$soname.def;
6921
cat $export_symbols >> $output_objdir/$soname.def;
6923
$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'
6925
_LT_TAGVAR(ld_shlibs, $1)=no
6930
darwin* | rhapsody*)
6931
_LT_DARWIN_LINKER_FEATURES($1)
6935
case $cc_basename in
6937
# FIXME: insert proper C++ library support
6938
_LT_TAGVAR(ld_shlibs, $1)=no
6941
# Green Hills C++ Compiler
6942
# FIXME: insert proper C++ library support
6943
_LT_TAGVAR(ld_shlibs, $1)=no
6946
# FIXME: insert proper C++ library support
6947
_LT_TAGVAR(ld_shlibs, $1)=no
6953
# C++ shared libraries reported to be fairly broken before
6955
_LT_TAGVAR(ld_shlibs, $1)=no
6959
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6962
freebsd* | dragonfly*)
6963
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6965
_LT_TAGVAR(ld_shlibs, $1)=yes
6972
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6973
_LT_TAGVAR(link_all_deplibs, $1)=yes
6977
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6978
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6979
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6980
_LT_TAGVAR(hardcode_direct, $1)=yes
6981
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6982
# but as the default
6983
# location of the library.
6985
case $cc_basename in
6987
# FIXME: insert proper C++ library support
6988
_LT_TAGVAR(ld_shlibs, $1)=no
6991
_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'
6992
# Commands to make compiler produce verbose output that lists
6993
# what "hidden" libraries, object files and flags are used when
6994
# linking a shared library.
6996
# There doesn't appear to be a way to prevent this compiler from
6997
# explicitly linking system object files so we need to strip them
6998
# from the output so that they don't get included in the library
7000
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; func_echo_all "$list"'
7003
if test "$GXX" = yes; then
7004
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
7006
# FIXME: insert proper C++ library support
7007
_LT_TAGVAR(ld_shlibs, $1)=no
7014
if test $with_gnu_ld = no; then
7015
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7016
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7022
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7028
_LT_TAGVAR(hardcode_direct, $1)=no
7029
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7032
_LT_TAGVAR(hardcode_direct, $1)=yes
7033
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7034
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7035
# but as the default
7036
# location of the library.
7040
case $cc_basename in
7042
# FIXME: insert proper C++ library support
7043
_LT_TAGVAR(ld_shlibs, $1)=no
7048
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7051
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7054
_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'
7057
# Commands to make compiler produce verbose output that lists
7058
# what "hidden" libraries, object files and flags are used when
7059
# linking a shared library.
7061
# There doesn't appear to be a way to prevent this compiler from
7062
# explicitly linking system object files so we need to strip them
7063
# from the output so that they don't get included in the library
7065
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; func_echo_all "$list"'
7068
if test "$GXX" = yes; then
7069
if test $with_gnu_ld = no; then
7072
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7075
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7078
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7083
# FIXME: insert proper C++ library support
7084
_LT_TAGVAR(ld_shlibs, $1)=no
7091
_LT_TAGVAR(hardcode_direct, $1)=no
7092
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7093
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7094
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7095
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7096
# Instead, shared libraries are loaded at an image base (0x10000000 by
7097
# default) and relocated if they conflict, which is a slow very memory
7098
# consuming and fragmenting process. To avoid this, we pick a random,
7099
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7100
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7101
_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'
7102
_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'
7105
case $cc_basename in
7108
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7110
# Archives containing C++ object files must be created using
7111
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
7112
# necessary to make sure instantiated templates are included
7114
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7117
if test "$GXX" = yes; then
7118
if test "$with_gnu_ld" = no; then
7119
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7121
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
7124
_LT_TAGVAR(link_all_deplibs, $1)=yes
7127
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7128
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7129
_LT_TAGVAR(inherit_rpath, $1)=yes
7132
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7133
case $cc_basename in
7135
# Kuck and Associates, Inc. (KAI) C++ Compiler
7137
# KCC will only create a shared library if the output file
7138
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7139
# to its proper name (with version) after linking.
7140
_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'
7141
_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'
7142
# Commands to make compiler produce verbose output that lists
7143
# what "hidden" libraries, object files and flags are used when
7144
# linking a shared library.
7146
# There doesn't appear to be a way to prevent this compiler from
7147
# explicitly linking system object files so we need to strip them
7148
# from the output so that they don't get included in the library
7150
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; func_echo_all "$list"'
7152
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7153
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7155
# Archives containing C++ object files must be created using
7156
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7157
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7162
# version 8.0 and above of icpc choke on multiply defined symbols
7163
# if we add $predep_objects and $postdep_objects, however 7.1 and
7164
# earlier do not add the objects themselves.
7165
case `$CC -V 2>&1` in
7167
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7168
_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'
7170
*) # Version 8.0 or newer
7173
ia64*) tmp_idyn=' -i_dynamic';;
7175
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7176
_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'
7179
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7180
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7181
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7182
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7185
# Portland Group C++ compiler
7187
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7188
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7190
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7191
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7192
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7194
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7195
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7197
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7199
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7200
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7201
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7203
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7204
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7206
*) # Version 6 and above use weak symbols
7207
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7208
_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'
7212
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7213
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7214
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7218
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219
_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'
7221
runpath_var=LD_RUN_PATH
7222
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7223
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7225
# Commands to make compiler produce verbose output that lists
7226
# what "hidden" libraries, object files and flags are used when
7227
# linking a shared library.
7229
# There doesn't appear to be a way to prevent this compiler from
7230
# explicitly linking system object files so we need to strip them
7231
# from the output so that they don't get included in the library
7233
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7235
xl* | mpixl* | bgxl*)
7236
# IBM XL 8.0 on PPC, with GNU ld
7237
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7238
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7239
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7240
if test "x$supports_anon_versioning" = xyes; then
7241
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7242
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7243
echo "local: *; };" >> $output_objdir/$libname.ver~
7244
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7248
case `$CC -V 2>&1 | sed 5q` in
7251
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7252
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7253
_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'
7254
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7255
_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7256
_LT_TAGVAR(compiler_needs_object, $1)=yes
7258
# Not sure whether something based on
7259
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7261
output_verbose_link_cmd='func_echo_all'
7263
# Archives containing C++ object files must be created using
7264
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7265
# necessary to make sure instantiated templates are included
7267
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7275
# FIXME: insert proper C++ library support
7276
_LT_TAGVAR(ld_shlibs, $1)=no
7280
# FIXME: insert proper C++ library support
7281
_LT_TAGVAR(ld_shlibs, $1)=no
7285
case $cc_basename in
7287
# FIXME: insert proper C++ library support
7288
_LT_TAGVAR(ld_shlibs, $1)=no
7291
# FIXME: insert proper C++ library support
7292
_LT_TAGVAR(ld_shlibs, $1)=no
7298
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7299
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7301
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7302
_LT_TAGVAR(hardcode_direct, $1)=yes
7303
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7305
# Workaround some broken pre-1.5 toolchains
7306
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7310
_LT_TAGVAR(ld_shlibs, $1)=yes
7314
# C++ shared libraries are fairly broken
7315
_LT_TAGVAR(ld_shlibs, $1)=no
7319
if test -f /usr/libexec/ld.so; then
7320
_LT_TAGVAR(hardcode_direct, $1)=yes
7321
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7322
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7323
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7324
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7325
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7326
_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'
7327
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7328
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7330
output_verbose_link_cmd=func_echo_all
7332
_LT_TAGVAR(ld_shlibs, $1)=no
7336
osf3* | osf4* | osf5*)
7337
case $cc_basename in
7339
# Kuck and Associates, Inc. (KAI) C++ Compiler
7341
# KCC will only create a shared library if the output file
7342
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7343
# to its proper name (with version) after linking.
7344
_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'
7346
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7347
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7349
# Archives containing C++ object files must be created using
7350
# the KAI C++ compiler.
7352
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7353
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7357
# Rational C++ 2.4.1
7358
# FIXME: insert proper C++ library support
7359
_LT_TAGVAR(ld_shlibs, $1)=no
7364
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7365
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7366
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7369
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7370
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7371
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7372
echo "-hidden">> $lib.exp~
7373
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
7375
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7379
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7381
# Commands to make compiler produce verbose output that lists
7382
# what "hidden" libraries, object files and flags are used when
7383
# linking a shared library.
7385
# There doesn't appear to be a way to prevent this compiler from
7386
# explicitly linking system object files so we need to strip them
7387
# from the output so that they don't get included in the library
7389
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7392
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7393
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7396
_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7399
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7403
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7404
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7406
# Commands to make compiler produce verbose output that lists
7407
# what "hidden" libraries, object files and flags are used when
7408
# linking a shared library.
7409
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7412
# FIXME: insert proper C++ library support
7413
_LT_TAGVAR(ld_shlibs, $1)=no
7420
# FIXME: insert proper C++ library support
7421
_LT_TAGVAR(ld_shlibs, $1)=no
7425
case $cc_basename in
7428
# FIXME: insert proper C++ library support
7429
_LT_TAGVAR(ld_shlibs, $1)=no
7433
# FIXME: insert proper C++ library support
7434
_LT_TAGVAR(ld_shlibs, $1)=no
7437
# FIXME: insert proper C++ library support
7438
_LT_TAGVAR(ld_shlibs, $1)=no
7444
case $cc_basename in
7446
# Sun C++ 4.2, 5.x and Centerline C++
7447
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7448
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7449
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7450
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7451
$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'
7453
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7454
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7456
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7458
# The compiler driver will combine and reorder linker options,
7459
# but understands `-z linker_flag'.
7460
# Supported since Solaris 2.6 (maybe 2.5.1?)
7461
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7464
_LT_TAGVAR(link_all_deplibs, $1)=yes
7466
output_verbose_link_cmd='func_echo_all'
7468
# Archives containing C++ object files must be created using
7469
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7470
# necessary to make sure instantiated templates are included
7472
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7475
# Green Hills C++ Compiler
7476
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7478
# The C++ compiler must be used to create the archive.
7479
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7482
# GNU C++ compiler with Solaris linker
7483
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7484
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7485
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7486
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7487
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7488
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7490
# Commands to make compiler produce verbose output that lists
7491
# what "hidden" libraries, object files and flags are used when
7492
# linking a shared library.
7493
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7495
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7497
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7498
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7499
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7501
# Commands to make compiler produce verbose output that lists
7502
# what "hidden" libraries, object files and flags are used when
7503
# linking a shared library.
7504
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7507
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7509
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7511
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7519
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7520
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7521
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7522
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7523
runpath_var='LD_RUN_PATH'
7525
case $cc_basename in
7527
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7528
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7531
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7532
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7537
sysv5* | sco3.2v5* | sco5v6*)
7538
# Note: We can NOT use -z defs as we might desire, because we do not
7539
# link with -lc, and that would cause any symbols used from libc to
7540
# always be unresolved, which means just about no library would
7541
# ever link correctly. If we're not using GNU ld we use -z text
7542
# though, which does catch some bad symbols but isn't as heavy-handed
7544
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7545
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7546
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7547
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7548
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7549
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7550
_LT_TAGVAR(link_all_deplibs, $1)=yes
7551
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7552
runpath_var='LD_RUN_PATH'
7554
case $cc_basename in
7556
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7557
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7558
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7559
'"$_LT_TAGVAR(old_archive_cmds, $1)"
7560
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7561
'"$_LT_TAGVAR(reload_cmds, $1)"
7564
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7565
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7571
case $cc_basename in
7573
# NonStop-UX NCC 3.20
7574
# FIXME: insert proper C++ library support
7575
_LT_TAGVAR(ld_shlibs, $1)=no
7578
# FIXME: insert proper C++ library support
7579
_LT_TAGVAR(ld_shlibs, $1)=no
7585
# FIXME: insert proper C++ library support
7586
_LT_TAGVAR(ld_shlibs, $1)=no
7590
# FIXME: insert proper C++ library support
7591
_LT_TAGVAR(ld_shlibs, $1)=no
7595
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7596
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7598
_LT_TAGVAR(GCC, $1)="$GXX"
7599
_LT_TAGVAR(LD, $1)="$LD"
7602
## There is no encapsulation within the following macros, do not change
7603
## the running order or otherwise move them around unless you know exactly
7604
## what you are doing...
7605
_LT_SYS_HIDDEN_LIBDEPS($1)
7606
_LT_COMPILER_PIC($1)
7607
_LT_COMPILER_C_O($1)
7608
_LT_COMPILER_FILE_LOCKS($1)
7609
_LT_LINKER_SHLIBS($1)
7610
_LT_SYS_DYNAMIC_LINKER($1)
7611
_LT_LINKER_HARDCODE_LIBPATH($1)
7614
fi # test -n "$compiler"
7617
CFLAGS=$lt_save_CFLAGS
7621
with_gnu_ld=$lt_save_with_gnu_ld
7622
lt_cv_path_LDCXX=$lt_cv_path_LD
7623
lt_cv_path_LD=$lt_save_path_LD
7624
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7625
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7626
fi # test "$_lt_caught_CXX_error" != yes
7629
])# _LT_LANG_CXX_CONFIG
7632
# _LT_FUNC_STRIPNAME_CNF
7633
# ----------------------
7634
# func_stripname_cnf prefix suffix name
7635
# strip PREFIX and SUFFIX off of NAME.
7636
# PREFIX and SUFFIX must not contain globbing or regex special
7637
# characters, hashes, percent signs, but SUFFIX may contain a leading
7638
# dot (in which case that matches only a dot).
7640
# This function is identical to the (non-XSI) version of func_stripname,
7641
# except this one can be used by m4 code that may be executed by configure,
7642
# rather than the libtool script.
7643
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7644
AC_REQUIRE([_LT_DECL_SED])
7645
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7646
func_stripname_cnf ()
7649
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7650
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7652
} # func_stripname_cnf
7653
])# _LT_FUNC_STRIPNAME_CNF
7655
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7656
# ---------------------------------
7657
# Figure out "hidden" library dependencies from verbose
7658
# compiler output when linking a shared library.
7659
# Parse the compiler output and extract the necessary
7660
# objects, libraries and library flags.
7661
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7662
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7663
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7664
# Dependencies to place before and after the object being linked:
7665
_LT_TAGVAR(predep_objects, $1)=
7666
_LT_TAGVAR(postdep_objects, $1)=
7667
_LT_TAGVAR(predeps, $1)=
7668
_LT_TAGVAR(postdeps, $1)=
7669
_LT_TAGVAR(compiler_lib_search_path, $1)=
7671
dnl we can't use the lt_simple_compile_test_code here,
7672
dnl because it contains code intended for an executable,
7673
dnl not a library. It's possible we should let each
7674
dnl tag define a new lt_????_link_test_code variable,
7675
dnl but it's only used here...
7676
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7678
void foo (void) { a = 0; }
7680
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7684
Foo (void) { a = 0; }
7689
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7697
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7705
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7708
public void bar (void) {
7713
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7720
_lt_libdeps_save_CFLAGS=$CFLAGS
7721
case "$CC $CFLAGS " in #(
7722
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7723
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7724
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7727
dnl Parse the compiler output and extract the necessary
7728
dnl objects, libraries and library flags.
7729
if AC_TRY_EVAL(ac_compile); then
7730
# Parse the compiler output and extract the necessary
7731
# objects, libraries and library flags.
7733
# Sentinel used to keep track of whether or not we are before
7734
# the conftest object file.
7735
pre_test_object_deps_done=no
7737
for p in `eval "$output_verbose_link_cmd"`; do
7741
# Some compilers place space between "-{L,R}" and the path.
7743
if test $p = "-L" ||
7744
test $p = "-R"; then
7749
# Expand the sysroot to ease extracting the directories later.
7750
if test -z "$prev"; then
7752
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7753
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7754
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7758
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7760
if test "$pre_test_object_deps_done" = no; then
7763
# Internal compiler library paths should come after those
7764
# provided the user. The postdeps already come after the
7765
# user supplied libs so there is no need to process them.
7766
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7767
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7769
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7772
# The "-l" case would never come before the object being
7773
# linked, so don't bother handling this case.
7776
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7777
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7779
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7785
*.lto.$objext) ;; # Ignore GCC LTO objects
7787
# This assumes that the test object file only shows up
7788
# once in the compiler output.
7789
if test "$p" = "conftest.$objext"; then
7790
pre_test_object_deps_done=yes
7794
if test "$pre_test_object_deps_done" = no; then
7795
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7796
_LT_TAGVAR(predep_objects, $1)="$p"
7798
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7801
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7802
_LT_TAGVAR(postdep_objects, $1)="$p"
7804
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7809
*) ;; # Ignore the rest.
7817
echo "libtool.m4: error: problem compiling $1 test program"
7820
$RM -f confest.$objext
7821
CFLAGS=$_lt_libdeps_save_CFLAGS
7823
# PORTME: override above test on systems where it is broken
7827
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7828
# hack all around it, let's just trust "g++" to DTRT.
7829
_LT_TAGVAR(predep_objects,$1)=
7830
_LT_TAGVAR(postdep_objects,$1)=
7831
_LT_TAGVAR(postdeps,$1)=
7835
case `$CC -V 2>&1 | sed 5q` in
7839
# The more standards-conforming stlport4 library is
7840
# incompatible with the Cstd library. Avoid specifying
7841
# it if it's in CXXFLAGS. Ignore libCrun as
7842
# -library=stlport4 depends on it.
7843
case " $CXX $CXXFLAGS " in
7844
*" -library=stlport4 "*)
7845
solaris_use_stlport4=yes
7849
if test "$solaris_use_stlport4" != yes; then
7850
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7857
case $cc_basename in
7859
# The more standards-conforming stlport4 library is
7860
# incompatible with the Cstd library. Avoid specifying
7861
# it if it's in CXXFLAGS. Ignore libCrun as
7862
# -library=stlport4 depends on it.
7863
case " $CXX $CXXFLAGS " in
7864
*" -library=stlport4 "*)
7865
solaris_use_stlport4=yes
7869
# Adding this requires a known-good setup of shared libraries for
7870
# Sun compiler versions before 5.6, else PIC objects from an old
7871
# archive will be linked into the output, leading to subtle bugs.
7872
if test "$solaris_use_stlport4" != yes; then
7873
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7881
case " $_LT_TAGVAR(postdeps, $1) " in
7882
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7884
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7885
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7886
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7888
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7889
[The directories searched by this compiler when creating a shared library])
7890
_LT_TAGDECL([], [predep_objects], [1],
7891
[Dependencies to place before and after the objects being linked to
7892
create a shared library])
7893
_LT_TAGDECL([], [postdep_objects], [1])
7894
_LT_TAGDECL([], [predeps], [1])
7895
_LT_TAGDECL([], [postdeps], [1])
7896
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7897
[The library search path used internally by the compiler when linking
7899
])# _LT_SYS_HIDDEN_LIBDEPS
7902
# _LT_LANG_F77_CONFIG([TAG])
7903
# --------------------------
7904
# Ensure that the configuration variables for a Fortran 77 compiler are
7905
# suitably defined. These variables are subsequently used by _LT_CONFIG
7906
# to write the compiler configuration to `libtool'.
7907
m4_defun([_LT_LANG_F77_CONFIG],
7908
[AC_LANG_PUSH(Fortran 77)
7909
if test -z "$F77" || test "X$F77" = "Xno"; then
7913
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7914
_LT_TAGVAR(allow_undefined_flag, $1)=
7915
_LT_TAGVAR(always_export_symbols, $1)=no
7916
_LT_TAGVAR(archive_expsym_cmds, $1)=
7917
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7918
_LT_TAGVAR(hardcode_direct, $1)=no
7919
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7920
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7921
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7922
_LT_TAGVAR(hardcode_minus_L, $1)=no
7923
_LT_TAGVAR(hardcode_automatic, $1)=no
7924
_LT_TAGVAR(inherit_rpath, $1)=no
7925
_LT_TAGVAR(module_cmds, $1)=
7926
_LT_TAGVAR(module_expsym_cmds, $1)=
7927
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7928
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7929
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7930
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7931
_LT_TAGVAR(no_undefined_flag, $1)=
7932
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7933
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7935
# Source file extension for f77 test sources.
7938
# Object file extension for compiled f77 test sources.
7940
_LT_TAGVAR(objext, $1)=$objext
7942
# No sense in running all these tests if we already determined that
7943
# the F77 compiler isn't working. Some variables (like enable_shared)
7944
# are currently assumed to apply to all compilers on this platform,
7945
# and will be corrupted by setting them based on a non-working compiler.
7946
if test "$_lt_disable_F77" != yes; then
7947
# Code to be used in simple compile tests
7948
lt_simple_compile_test_code="\
7954
# Code to be used in simple link tests
7955
lt_simple_link_test_code="\
7960
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7963
# save warnings/boilerplate of simple test code
7964
_LT_COMPILER_BOILERPLATE
7965
_LT_LINKER_BOILERPLATE
7967
# Allow CC to be a program name with arguments.
7970
lt_save_CFLAGS=$CFLAGS
7974
_LT_TAGVAR(compiler, $1)=$CC
7975
_LT_CC_BASENAME([$compiler])
7977
if test -n "$compiler"; then
7978
AC_MSG_CHECKING([if libtool supports shared libraries])
7979
AC_MSG_RESULT([$can_build_shared])
7981
AC_MSG_CHECKING([whether to build shared libraries])
7982
test "$can_build_shared" = "no" && enable_shared=no
7984
# On AIX, shared libraries and static libraries use the same namespace, and
7985
# are all built from PIC.
7988
test "$enable_shared" = yes && enable_static=no
7989
if test -n "$RANLIB"; then
7990
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7991
postinstall_cmds='$RANLIB $lib'
7995
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7996
test "$enable_shared" = yes && enable_static=no
8000
AC_MSG_RESULT([$enable_shared])
8002
AC_MSG_CHECKING([whether to build static libraries])
8003
# Make sure either enable_shared or enable_static is yes.
8004
test "$enable_shared" = yes || enable_static=yes
8005
AC_MSG_RESULT([$enable_static])
8007
_LT_TAGVAR(GCC, $1)="$G77"
8008
_LT_TAGVAR(LD, $1)="$LD"
8011
## There is no encapsulation within the following macros, do not change
8012
## the running order or otherwise move them around unless you know exactly
8013
## what you are doing...
8014
_LT_COMPILER_PIC($1)
8015
_LT_COMPILER_C_O($1)
8016
_LT_COMPILER_FILE_LOCKS($1)
8017
_LT_LINKER_SHLIBS($1)
8018
_LT_SYS_DYNAMIC_LINKER($1)
8019
_LT_LINKER_HARDCODE_LIBPATH($1)
8022
fi # test -n "$compiler"
8026
CFLAGS="$lt_save_CFLAGS"
8027
fi # test "$_lt_disable_F77" != yes
8030
])# _LT_LANG_F77_CONFIG
8033
# _LT_LANG_FC_CONFIG([TAG])
8034
# -------------------------
8035
# Ensure that the configuration variables for a Fortran compiler are
8036
# suitably defined. These variables are subsequently used by _LT_CONFIG
8037
# to write the compiler configuration to `libtool'.
8038
m4_defun([_LT_LANG_FC_CONFIG],
8039
[AC_LANG_PUSH(Fortran)
8041
if test -z "$FC" || test "X$FC" = "Xno"; then
8045
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8046
_LT_TAGVAR(allow_undefined_flag, $1)=
8047
_LT_TAGVAR(always_export_symbols, $1)=no
8048
_LT_TAGVAR(archive_expsym_cmds, $1)=
8049
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8050
_LT_TAGVAR(hardcode_direct, $1)=no
8051
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8052
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8053
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8054
_LT_TAGVAR(hardcode_minus_L, $1)=no
8055
_LT_TAGVAR(hardcode_automatic, $1)=no
8056
_LT_TAGVAR(inherit_rpath, $1)=no
8057
_LT_TAGVAR(module_cmds, $1)=
8058
_LT_TAGVAR(module_expsym_cmds, $1)=
8059
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8060
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8061
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8062
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8063
_LT_TAGVAR(no_undefined_flag, $1)=
8064
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8065
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8067
# Source file extension for fc test sources.
8068
ac_ext=${ac_fc_srcext-f}
8070
# Object file extension for compiled fc test sources.
8072
_LT_TAGVAR(objext, $1)=$objext
8074
# No sense in running all these tests if we already determined that
8075
# the FC compiler isn't working. Some variables (like enable_shared)
8076
# are currently assumed to apply to all compilers on this platform,
8077
# and will be corrupted by setting them based on a non-working compiler.
8078
if test "$_lt_disable_FC" != yes; then
8079
# Code to be used in simple compile tests
8080
lt_simple_compile_test_code="\
8086
# Code to be used in simple link tests
8087
lt_simple_link_test_code="\
8092
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8095
# save warnings/boilerplate of simple test code
8096
_LT_COMPILER_BOILERPLATE
8097
_LT_LINKER_BOILERPLATE
8099
# Allow CC to be a program name with arguments.
8102
lt_save_CFLAGS=$CFLAGS
8106
GCC=$ac_cv_fc_compiler_gnu
8108
_LT_TAGVAR(compiler, $1)=$CC
8109
_LT_CC_BASENAME([$compiler])
8111
if test -n "$compiler"; then
8112
AC_MSG_CHECKING([if libtool supports shared libraries])
8113
AC_MSG_RESULT([$can_build_shared])
8115
AC_MSG_CHECKING([whether to build shared libraries])
8116
test "$can_build_shared" = "no" && enable_shared=no
8118
# On AIX, shared libraries and static libraries use the same namespace, and
8119
# are all built from PIC.
8122
test "$enable_shared" = yes && enable_static=no
8123
if test -n "$RANLIB"; then
8124
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8125
postinstall_cmds='$RANLIB $lib'
8129
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8130
test "$enable_shared" = yes && enable_static=no
8134
AC_MSG_RESULT([$enable_shared])
8136
AC_MSG_CHECKING([whether to build static libraries])
8137
# Make sure either enable_shared or enable_static is yes.
8138
test "$enable_shared" = yes || enable_static=yes
8139
AC_MSG_RESULT([$enable_static])
8141
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
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"
8161
CFLAGS=$lt_save_CFLAGS
8162
fi # test "$_lt_disable_FC" != yes
8165
])# _LT_LANG_FC_CONFIG
8168
# _LT_LANG_GCJ_CONFIG([TAG])
8169
# --------------------------
8170
# Ensure that the configuration variables for the GNU Java Compiler compiler
8171
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8172
# to write the compiler configuration to `libtool'.
8173
m4_defun([_LT_LANG_GCJ_CONFIG],
8174
[AC_REQUIRE([LT_PROG_GCJ])dnl
8177
# Source file extension for Java test sources.
8180
# Object file extension for compiled Java test sources.
8182
_LT_TAGVAR(objext, $1)=$objext
8184
# Code to be used in simple compile tests
8185
lt_simple_compile_test_code="class foo {}"
8187
# Code to be used in simple link tests
8188
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8190
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8193
# save warnings/boilerplate of simple test code
8194
_LT_COMPILER_BOILERPLATE
8195
_LT_LINKER_BOILERPLATE
8197
# Allow CC to be a program name with arguments.
8199
lt_save_CFLAGS=$CFLAGS
8205
_LT_TAGVAR(compiler, $1)=$CC
8206
_LT_TAGVAR(LD, $1)="$LD"
8207
_LT_CC_BASENAME([$compiler])
8209
# GCJ did not exist at the time GCC didn't implicitly link libc in.
8210
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8212
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8213
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8214
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8216
if test -n "$compiler"; then
8217
_LT_COMPILER_NO_RTTI($1)
8218
_LT_COMPILER_PIC($1)
8219
_LT_COMPILER_C_O($1)
8220
_LT_COMPILER_FILE_LOCKS($1)
8221
_LT_LINKER_SHLIBS($1)
8222
_LT_LINKER_HARDCODE_LIBPATH($1)
8231
CFLAGS=$lt_save_CFLAGS
8232
])# _LT_LANG_GCJ_CONFIG
8235
# _LT_LANG_GO_CONFIG([TAG])
8236
# --------------------------
8237
# Ensure that the configuration variables for the GNU Go compiler
8238
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8239
# to write the compiler configuration to `libtool'.
8240
m4_defun([_LT_LANG_GO_CONFIG],
8241
[AC_REQUIRE([LT_PROG_GO])dnl
8244
# Source file extension for Go test sources.
8247
# Object file extension for compiled Go test sources.
8249
_LT_TAGVAR(objext, $1)=$objext
8251
# Code to be used in simple compile tests
8252
lt_simple_compile_test_code="package main; func main() { }"
8254
# Code to be used in simple link tests
8255
lt_simple_link_test_code='package main; func main() { }'
8257
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8260
# save warnings/boilerplate of simple test code
8261
_LT_COMPILER_BOILERPLATE
8262
_LT_LINKER_BOILERPLATE
8264
# Allow CC to be a program name with arguments.
8266
lt_save_CFLAGS=$CFLAGS
8272
_LT_TAGVAR(compiler, $1)=$CC
8273
_LT_TAGVAR(LD, $1)="$LD"
8274
_LT_CC_BASENAME([$compiler])
8276
# Go did not exist at the time GCC didn't implicitly link libc in.
8277
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8279
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8280
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8281
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8283
if test -n "$compiler"; then
8284
_LT_COMPILER_NO_RTTI($1)
8285
_LT_COMPILER_PIC($1)
8286
_LT_COMPILER_C_O($1)
8287
_LT_COMPILER_FILE_LOCKS($1)
8288
_LT_LINKER_SHLIBS($1)
8289
_LT_LINKER_HARDCODE_LIBPATH($1)
8298
CFLAGS=$lt_save_CFLAGS
8299
])# _LT_LANG_GO_CONFIG
8302
# _LT_LANG_RC_CONFIG([TAG])
8303
# -------------------------
8304
# Ensure that the configuration variables for the Windows resource compiler
8305
# are suitably defined. These variables are subsequently used by _LT_CONFIG
8306
# to write the compiler configuration to `libtool'.
8307
m4_defun([_LT_LANG_RC_CONFIG],
8308
[AC_REQUIRE([LT_PROG_RC])dnl
8311
# Source file extension for RC test sources.
8314
# Object file extension for compiled RC test sources.
8316
_LT_TAGVAR(objext, $1)=$objext
8318
# Code to be used in simple compile tests
8319
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8321
# Code to be used in simple link tests
8322
lt_simple_link_test_code="$lt_simple_compile_test_code"
8324
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8327
# save warnings/boilerplate of simple test code
8328
_LT_COMPILER_BOILERPLATE
8329
_LT_LINKER_BOILERPLATE
8331
# Allow CC to be a program name with arguments.
8333
lt_save_CFLAGS=$CFLAGS
8339
_LT_TAGVAR(compiler, $1)=$CC
8340
_LT_CC_BASENAME([$compiler])
8341
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8343
if test -n "$compiler"; then
8351
CFLAGS=$lt_save_CFLAGS
8352
])# _LT_LANG_RC_CONFIG
8357
AC_DEFUN([LT_PROG_GCJ],
8358
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8359
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8360
[AC_CHECK_TOOL(GCJ, gcj,)
8361
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8362
AC_SUBST(GCJFLAGS)])])[]dnl
8366
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8367
dnl aclocal-1.4 backwards compatibility:
8368
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8373
AC_DEFUN([LT_PROG_GO],
8374
[AC_CHECK_TOOL(GOC, gccgo,)
8380
AC_DEFUN([LT_PROG_RC],
8381
[AC_CHECK_TOOL(RC, windres,)
8385
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8386
dnl aclocal-1.4 backwards compatibility:
8387
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8392
# If we don't have a new enough Autoconf to choose the best grep
8393
# available, choose the one first in the user's PATH.
8394
m4_defun([_LT_DECL_EGREP],
8395
[AC_REQUIRE([AC_PROG_EGREP])dnl
8396
AC_REQUIRE([AC_PROG_FGREP])dnl
8397
test -z "$GREP" && GREP=grep
8398
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8399
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8400
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8401
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8408
# If we don't have a new enough Autoconf to choose the best objdump
8409
# available, choose the one first in the user's PATH.
8410
m4_defun([_LT_DECL_OBJDUMP],
8411
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8412
test -z "$OBJDUMP" && OBJDUMP=objdump
8413
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8419
# Ensure DLLTOOL variable is set.
8420
m4_defun([_LT_DECL_DLLTOOL],
8421
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8422
test -z "$DLLTOOL" && DLLTOOL=dlltool
8423
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8429
# Check for a fully-functional sed program, that truncates
8430
# as few characters as possible. Prefer GNU sed if found.
8431
m4_defun([_LT_DECL_SED],
8433
test -z "$SED" && SED=sed
8434
Xsed="$SED -e 1s/^X//"
8435
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8436
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8437
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8440
m4_ifndef([AC_PROG_SED], [
8441
# NOTE: This macro has been submitted for inclusion into #
8442
# GNU Autoconf as AC_PROG_SED. When it is available in #
8443
# a released version of Autoconf we should remove this #
8444
# macro and use it instead. #
8446
m4_defun([AC_PROG_SED],
8447
[AC_MSG_CHECKING([for a sed that does not truncate output])
8448
AC_CACHE_VAL(lt_cv_path_SED,
8449
[# Loop through the user's path and test for sed and gsed.
8450
# Then use that list of sed's as ones to test for truncation.
8451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455
test -z "$as_dir" && as_dir=.
8456
for lt_ac_prog in sed gsed; do
8457
for ac_exec_ext in '' $ac_executable_extensions; do
8458
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8459
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8467
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8468
# along with /bin/sed that truncates output.
8469
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8470
test ! -f $lt_ac_sed && continue
8471
cat /dev/null > conftest.in
8473
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8474
# Check for GNU sed and select it if it is found.
8475
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8476
lt_cv_path_SED=$lt_ac_sed
8480
cat conftest.in conftest.in >conftest.tmp
8481
mv conftest.tmp conftest.in
8482
cp conftest.in conftest.nl
8484
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8485
cmp -s conftest.out conftest.nl || break
8486
# 10000 chars as input seems more than enough
8487
test $lt_ac_count -gt 10 && break
8488
lt_ac_count=`expr $lt_ac_count + 1`
8489
if test $lt_ac_count -gt $lt_ac_max; then
8490
lt_ac_max=$lt_ac_count
8491
lt_cv_path_SED=$lt_ac_sed
8498
AC_MSG_RESULT([$SED])
8503
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8504
dnl aclocal-1.4 backwards compatibility:
8505
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8508
# _LT_CHECK_SHELL_FEATURES
8509
# ------------------------
8510
# Find out whether the shell is Bourne or XSI compatible,
8511
# or has some other useful features.
8512
m4_defun([_LT_CHECK_SHELL_FEATURES],
8513
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8514
# Try some XSI features
8517
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8519
&& eval 'test $(( 1 + 1 )) -eq 2 \
8520
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8522
AC_MSG_RESULT([$xsi_shell])
8523
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8525
AC_MSG_CHECKING([whether the shell understands "+="])
8527
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8529
&& lt_shell_append=yes
8530
AC_MSG_RESULT([$lt_shell_append])
8531
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8533
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8538
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8540
# test EBCDIC or ASCII
8541
case `echo X|tr X '\101'` in
8542
A) # ASCII based system
8543
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8544
lt_SP2NL='tr \040 \012'
8545
lt_NL2SP='tr \015\012 \040\040'
8547
*) # EBCDIC based system
8548
lt_SP2NL='tr \100 \n'
8549
lt_NL2SP='tr \r\n \100\100'
8552
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8553
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8554
])# _LT_CHECK_SHELL_FEATURES
8557
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8558
# ------------------------------------------------------
8559
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8560
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8561
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8563
sed -e '/^$1 ()$/,/^} # $1 /c\
8566
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8567
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8568
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8569
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8570
test 0 -eq $? || _lt_function_replace_fail=:
8574
# _LT_PROG_REPLACE_SHELLFNS
8575
# -------------------------
8576
# Replace existing portable implementations of several shell functions with
8577
# equivalent extended shell implementations where those features are available..
8578
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8579
[if test x"$xsi_shell" = xyes; then
8580
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8582
*/*) func_dirname_result="${1%/*}${2}" ;;
8583
* ) func_dirname_result="${3}" ;;
8586
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8587
func_basename_result="${1##*/}"])
8589
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8591
*/*) func_dirname_result="${1%/*}${2}" ;;
8592
* ) func_dirname_result="${3}" ;;
8594
func_basename_result="${1##*/}"])
8596
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8597
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8598
# positional parameters, so assign one to ordinary parameter first.
8599
func_stripname_result=${3}
8600
func_stripname_result=${func_stripname_result#"${1}"}
8601
func_stripname_result=${func_stripname_result%"${2}"}])
8603
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8604
func_split_long_opt_name=${1%%=*}
8605
func_split_long_opt_arg=${1#*=}])
8607
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8608
func_split_short_opt_arg=${1#??}
8609
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8611
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8613
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8614
*) func_lo2o_result=${1} ;;
8617
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8619
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8621
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8624
if test x"$lt_shell_append" = xyes; then
8625
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8627
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8628
func_quote_for_eval "${2}"
8629
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8630
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8632
# Save a `func_append' function call where possible by direct use of '+='
8633
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8634
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8635
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8636
test 0 -eq $? || _lt_function_replace_fail=:
8638
# Save a `func_append' function call even when '+=' is not available
8639
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8640
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8641
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8642
test 0 -eq $? || _lt_function_replace_fail=:
8645
if test x"$_lt_function_replace_fail" = x":"; then
8646
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8650
# _LT_PATH_CONVERSION_FUNCTIONS
8651
# -----------------------------
8652
# Determine which file name conversion functions should be used by
8653
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8654
# for certain cross-compile configurations and native mingw.
8655
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8656
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8657
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8658
AC_MSG_CHECKING([how to convert $build file names to $host format])
8659
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8663
*-*-mingw* ) # actually msys
8664
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8667
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8669
* ) # otherwise, assume *nix
8670
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8676
*-*-mingw* ) # actually msys
8677
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8680
lt_cv_to_host_file_cmd=func_convert_file_noop
8682
* ) # otherwise, assume *nix
8683
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8687
* ) # unhandled hosts (and "normal" native builds)
8688
lt_cv_to_host_file_cmd=func_convert_file_noop
8692
to_host_file_cmd=$lt_cv_to_host_file_cmd
8693
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8694
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8695
[0], [convert $build file names to $host format])dnl
8697
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8698
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8699
[#assume ordinary cross tools, or native build.
8700
lt_cv_to_tool_file_cmd=func_convert_file_noop
8704
*-*-mingw* ) # actually msys
8705
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8711
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8712
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8713
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8714
[0], [convert $build files to toolchain format])dnl
8715
])# _LT_PATH_CONVERSION_FUNCTIONS
8717
# Helper functions for option handling. -*- Autoconf -*-
8719
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8721
# Written by Gary V. Vaughan, 2004
8723
# This file is free software; the Free Software Foundation gives
8724
# unlimited permission to copy and/or distribute it, with or without
8725
# modifications, as long as this notice is preserved.
8727
# serial 7 ltoptions.m4
8729
# This is to help aclocal find these macros, as it can't see m4_define.
8730
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8733
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8734
# ------------------------------------------
8735
m4_define([_LT_MANGLE_OPTION],
8736
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8739
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8740
# ---------------------------------------
8741
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8742
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8744
m4_define([_LT_SET_OPTION],
8745
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8746
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8747
_LT_MANGLE_DEFUN([$1], [$2]),
8748
[m4_warning([Unknown $1 option `$2'])])[]dnl
8752
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8753
# ------------------------------------------------------------
8754
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8755
m4_define([_LT_IF_OPTION],
8756
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8759
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8760
# -------------------------------------------------------
8761
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8763
m4_define([_LT_UNLESS_OPTIONS],
8764
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8765
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8766
[m4_define([$0_found])])])[]dnl
8767
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8772
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8773
# ----------------------------------------
8774
# OPTION-LIST is a space-separated list of Libtool options associated
8775
# with MACRO-NAME. If any OPTION has a matching handler declared with
8776
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8777
# the unknown option and exit.
8778
m4_defun([_LT_SET_OPTIONS],
8780
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8781
[_LT_SET_OPTION([$1], _LT_Option)])
8783
m4_if([$1],[LT_INIT],[
8785
dnl Simply set some default values (i.e off) if boolean options were not
8787
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8789
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8792
dnl If no reference was made to various pairs of opposing options, then
8793
dnl we run the default mode handler for the pair. For example, if neither
8794
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8795
dnl archives by default:
8796
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8797
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8798
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8799
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8800
[_LT_ENABLE_FAST_INSTALL])
8806
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8807
# -----------------------------------------
8808
m4_define([_LT_MANGLE_DEFUN],
8809
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8812
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8813
# -----------------------------------------------
8814
m4_define([LT_OPTION_DEFINE],
8815
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8816
])# LT_OPTION_DEFINE
8821
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8824
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8825
[_LT_SET_OPTION([LT_INIT], [dlopen])
8826
AC_DIAGNOSE([obsolete],
8827
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8828
put the `dlopen' option into LT_INIT's first parameter.])
8831
dnl aclocal-1.4 backwards compatibility:
8832
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8837
# Declare package support for building win32 dll's.
8838
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8839
[enable_win32_dll=yes
8842
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8843
AC_CHECK_TOOL(AS, as, false)
8844
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8845
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8849
test -z "$AS" && AS=as
8850
_LT_DECL([], [AS], [1], [Assembler program])dnl
8852
test -z "$DLLTOOL" && DLLTOOL=dlltool
8853
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8855
test -z "$OBJDUMP" && OBJDUMP=objdump
8856
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8859
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8860
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8861
_LT_SET_OPTION([LT_INIT], [win32-dll])
8862
AC_DIAGNOSE([obsolete],
8863
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8864
put the `win32-dll' option into LT_INIT's first parameter.])
8867
dnl aclocal-1.4 backwards compatibility:
8868
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8871
# _LT_ENABLE_SHARED([DEFAULT])
8872
# ----------------------------
8873
# implement the --enable-shared flag, and supports the `shared' and
8874
# `disable-shared' LT_INIT options.
8875
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8876
m4_define([_LT_ENABLE_SHARED],
8877
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8878
AC_ARG_ENABLE([shared],
8879
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8880
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8881
[p=${PACKAGE-default}
8883
yes) enable_shared=yes ;;
8884
no) enable_shared=no ;;
8887
# Look at the argument we got. We use all the common list separators.
8888
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889
for pkg in $enableval; do
8891
if test "X$pkg" = "X$p"; then
8898
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8900
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8901
[Whether or not to build shared libraries])
8902
])# _LT_ENABLE_SHARED
8904
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8905
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8908
AC_DEFUN([AC_ENABLE_SHARED],
8909
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8912
AC_DEFUN([AC_DISABLE_SHARED],
8913
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8916
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8917
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8919
dnl aclocal-1.4 backwards compatibility:
8920
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8921
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8925
# _LT_ENABLE_STATIC([DEFAULT])
8926
# ----------------------------
8927
# implement the --enable-static flag, and support the `static' and
8928
# `disable-static' LT_INIT options.
8929
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8930
m4_define([_LT_ENABLE_STATIC],
8931
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8932
AC_ARG_ENABLE([static],
8933
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8934
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8935
[p=${PACKAGE-default}
8937
yes) enable_static=yes ;;
8938
no) enable_static=no ;;
8941
# Look at the argument we got. We use all the common list separators.
8942
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8943
for pkg in $enableval; do
8945
if test "X$pkg" = "X$p"; then
8952
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8954
_LT_DECL([build_old_libs], [enable_static], [0],
8955
[Whether or not to build static libraries])
8956
])# _LT_ENABLE_STATIC
8958
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8959
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8962
AC_DEFUN([AC_ENABLE_STATIC],
8963
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8966
AC_DEFUN([AC_DISABLE_STATIC],
8967
[_LT_SET_OPTION([LT_INIT], [disable-static])
8970
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8971
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8973
dnl aclocal-1.4 backwards compatibility:
8974
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8975
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8979
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8980
# ----------------------------------
8981
# implement the --enable-fast-install flag, and support the `fast-install'
8982
# and `disable-fast-install' LT_INIT options.
8983
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8984
m4_define([_LT_ENABLE_FAST_INSTALL],
8985
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8986
AC_ARG_ENABLE([fast-install],
8987
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8988
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8989
[p=${PACKAGE-default}
8991
yes) enable_fast_install=yes ;;
8992
no) enable_fast_install=no ;;
8994
enable_fast_install=no
8995
# Look at the argument we got. We use all the common list separators.
8996
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8997
for pkg in $enableval; do
8999
if test "X$pkg" = "X$p"; then
9000
enable_fast_install=yes
9006
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9008
_LT_DECL([fast_install], [enable_fast_install], [0],
9009
[Whether or not to optimize for fast installation])dnl
9010
])# _LT_ENABLE_FAST_INSTALL
9012
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9013
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9016
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9017
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9018
AC_DIAGNOSE([obsolete],
9019
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9020
the `fast-install' option into LT_INIT's first parameter.])
9023
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9024
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9025
AC_DIAGNOSE([obsolete],
9026
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9027
the `disable-fast-install' option into LT_INIT's first parameter.])
9030
dnl aclocal-1.4 backwards compatibility:
9031
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9032
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9035
# _LT_WITH_PIC([MODE])
9036
# --------------------
9037
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9039
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9040
m4_define([_LT_WITH_PIC],
9042
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9043
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9044
[lt_p=${PACKAGE-default}
9046
yes|no) pic_mode=$withval ;;
9049
# Look at the argument we got. We use all the common list separators.
9050
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9051
for lt_pkg in $withval; do
9053
if test "X$lt_pkg" = "X$lt_p"; then
9062
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9064
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9067
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9068
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9071
AU_DEFUN([AC_LIBTOOL_PICMODE],
9072
[_LT_SET_OPTION([LT_INIT], [pic-only])
9073
AC_DIAGNOSE([obsolete],
9074
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9075
put the `pic-only' option into LT_INIT's first parameter.])
9078
dnl aclocal-1.4 backwards compatibility:
9079
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9082
m4_define([_LTDL_MODE], [])
9083
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9084
[m4_define([_LTDL_MODE], [nonrecursive])])
9085
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9086
[m4_define([_LTDL_MODE], [recursive])])
9087
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9088
[m4_define([_LTDL_MODE], [subproject])])
9090
m4_define([_LTDL_TYPE], [])
9091
LT_OPTION_DEFINE([LTDL_INIT], [installable],
9092
[m4_define([_LTDL_TYPE], [installable])])
9093
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9094
[m4_define([_LTDL_TYPE], [convenience])])
9096
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9098
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9099
# Written by Gary V. Vaughan, 2004
9101
# This file is free software; the Free Software Foundation gives
9102
# unlimited permission to copy and/or distribute it, with or without
9103
# modifications, as long as this notice is preserved.
9105
# serial 6 ltsugar.m4
9107
# This is to help aclocal find these macros, as it can't see m4_define.
9108
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9111
# lt_join(SEP, ARG1, [ARG2...])
9112
# -----------------------------
9113
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9114
# associated separator.
9115
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9116
# versions in m4sugar had bugs.
9117
m4_define([lt_join],
9118
[m4_if([$#], [1], [],
9120
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9121
m4_define([_lt_join],
9122
[m4_if([$#$2], [2], [],
9123
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9129
# Manipulate m4 lists.
9130
# These macros are necessary as long as will still need to support
9131
# Autoconf-2.59 which quotes differently.
9132
m4_define([lt_car], [[$1]])
9134
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9136
[m4_dquote(m4_shift($@))])])
9137
m4_define([lt_unquote], $1)
9140
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9141
# ------------------------------------------
9142
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9143
# Note that neither SEPARATOR nor STRING are expanded; they are appended
9144
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9145
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9146
# than defined and empty).
9148
# This macro is needed until we can rely on Autoconf 2.62, since earlier
9149
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9150
m4_define([lt_append],
9152
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9156
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9157
# ----------------------------------------------------------
9158
# Produce a SEP delimited list of all paired combinations of elements of
9159
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9160
# has the form PREFIXmINFIXSUFFIXn.
9161
# Needed until we can rely on m4_combine added in Autoconf 2.62.
9162
m4_define([lt_combine],
9163
[m4_if(m4_eval([$# > 3]), [1],
9164
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9165
[[m4_foreach([_Lt_prefix], [$2],
9166
[m4_foreach([_Lt_suffix],
9167
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9168
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9171
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9172
# -----------------------------------------------------------------------
9173
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9174
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9175
m4_define([lt_if_append_uniq],
9177
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9178
[lt_append([$1], [$2], [$3])$4],
9180
[lt_append([$1], [$2], [$3])$4])])
9183
# lt_dict_add(DICT, KEY, VALUE)
9184
# -----------------------------
9185
m4_define([lt_dict_add],
9186
[m4_define([$1($2)], [$3])])
9189
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9190
# --------------------------------------------
9191
m4_define([lt_dict_add_subkey],
9192
[m4_define([$1($2:$3)], [$4])])
9195
# lt_dict_fetch(DICT, KEY, [SUBKEY])
9196
# ----------------------------------
9197
m4_define([lt_dict_fetch],
9199
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9200
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9203
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9204
# -----------------------------------------------------------------
9205
m4_define([lt_if_dict_fetch],
9206
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9211
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9212
# --------------------------------------------------------------
9213
m4_define([lt_dict_filter],
9214
[m4_if([$5], [], [],
9215
[lt_join(m4_quote(m4_default([$4], [[, ]])),
9216
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9217
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9220
# ltversion.m4 -- version numbers -*- Autoconf -*-
9222
# Copyright (C) 2004 Free Software Foundation, Inc.
9223
# Written by Scott James Remnant, 2004
9225
# This file is free software; the Free Software Foundation gives
9226
# unlimited permission to copy and/or distribute it, with or without
9227
# modifications, as long as this notice is preserved.
9231
# serial 3337 ltversion.m4
9232
# This file is part of GNU Libtool
9234
m4_define([LT_PACKAGE_VERSION], [2.4.2])
9235
m4_define([LT_PACKAGE_REVISION], [1.3337])
9237
AC_DEFUN([LTVERSION_VERSION],
9238
[macro_version='2.4.2'
9239
macro_revision='1.3337'
9240
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9241
_LT_DECL(, macro_revision, 0)
9244
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9246
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9247
# Written by Scott James Remnant, 2004.
9249
# This file is free software; the Free Software Foundation gives
9250
# unlimited permission to copy and/or distribute it, with or without
9251
# modifications, as long as this notice is preserved.
9253
# serial 5 lt~obsolete.m4
9255
# These exist entirely to fool aclocal when bootstrapping libtool.
9257
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9258
# which have later been changed to m4_define as they aren't part of the
9259
# exported API, or moved to Autoconf or Automake where they belong.
9261
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9262
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9263
# using a macro with the same name in our local m4/libtool.m4 it'll
9264
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9265
# and doesn't know about Autoconf macros at all.)
9267
# So we provide this file, which has a silly filename so it's always
9268
# included after everything else. This provides aclocal with the
9269
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9270
# because those macros already exist, or will be overwritten later.
9271
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9273
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9274
# Yes, that means every name once taken will need to remain here until
9275
# we give up compatibility with versions before 1.7, at which point
9276
# we need to keep only those names which we still refer to.
9278
# This is to help aclocal find these macros, as it can't see m4_define.
9279
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9281
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9282
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9283
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9284
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9285
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9286
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9287
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9288
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9289
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9290
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9291
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9292
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9293
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9294
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9295
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9296
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9297
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9298
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9299
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9300
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9301
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9302
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9303
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9304
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9305
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9306
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9307
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9308
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9309
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9310
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9311
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9312
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9313
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9314
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9315
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9316
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9317
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9318
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9319
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9320
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9321
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9322
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9323
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9324
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9325
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9326
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9327
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9328
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9329
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9330
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9331
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9332
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9333
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9334
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9335
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9336
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9337
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9338
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9339
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9340
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9341
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9343
544
# nls.m4 serial 5 (gettext-0.18)
9344
545
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,