585
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
586
# serial 40 IT_PROG_INTLTOOL
587
AC_DEFUN([IT_PROG_INTLTOOL], [
589
AC_REQUIRE([AM_NLS])dnl
591
case "$am__api_version" in
593
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
599
if test -n "$1"; then
600
AC_MSG_CHECKING([for intltool >= $1])
602
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
603
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
604
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
606
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
607
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
608
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
611
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
612
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
613
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
614
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
615
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
618
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 $< [$]@'
619
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 $< [$]@'
620
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 $< [$]@'
621
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 $< [$]@'
622
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
623
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 $< [$]@'
624
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 $< [$]@'
625
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 $< [$]@'
626
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 $< [$]@'
627
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 $< [$]@'
628
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 $< [$]@'
629
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
630
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 $< [$]@'
631
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 $< [$]@'
632
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 $< [$]@'
633
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 $< [$]@'
634
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 $< [$]@'
635
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 $< [$]@'
636
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 $< [$]@'
638
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
639
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
640
_IT_SUBST(INTLTOOL_KEYS_RULE)
641
_IT_SUBST(INTLTOOL_PROP_RULE)
642
_IT_SUBST(INTLTOOL_OAF_RULE)
643
_IT_SUBST(INTLTOOL_PONG_RULE)
644
_IT_SUBST(INTLTOOL_SERVER_RULE)
645
_IT_SUBST(INTLTOOL_SHEET_RULE)
646
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
647
_IT_SUBST(INTLTOOL_UI_RULE)
648
_IT_SUBST(INTLTOOL_XAM_RULE)
649
_IT_SUBST(INTLTOOL_KBD_RULE)
650
_IT_SUBST(INTLTOOL_XML_RULE)
651
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
652
_IT_SUBST(INTLTOOL_CAVES_RULE)
653
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
654
_IT_SUBST(INTLTOOL_THEME_RULE)
655
_IT_SUBST(INTLTOOL_SERVICE_RULE)
656
_IT_SUBST(INTLTOOL_POLICY_RULE)
658
# Check the gettext tools to make sure they are GNU
659
AC_PATH_PROG(XGETTEXT, xgettext)
660
AC_PATH_PROG(MSGMERGE, msgmerge)
661
AC_PATH_PROG(MSGFMT, msgfmt)
662
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
663
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
664
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
666
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
667
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
668
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
669
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
670
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
673
AC_PATH_PROG(INTLTOOL_PERL, perl)
674
if test -z "$INTLTOOL_PERL"; then
675
AC_MSG_ERROR([perl not found])
677
AC_MSG_CHECKING([for perl >= 5.8.1])
678
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
679
if test $? -ne 0; then
680
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
682
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
683
AC_MSG_RESULT([$IT_PERL_VERSION])
685
if test "x$2" != "xno-xml"; then
686
AC_MSG_CHECKING([for XML::Parser])
687
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
690
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
694
# Substitute ALL_LINGUAS so we can use it in po/Makefile
695
AC_SUBST(ALL_LINGUAS)
697
# Set DATADIRNAME correctly if it is not set yet
698
# (copied from glib-gettext.m4)
699
if test -z "$DATADIRNAME"; then
701
[AC_LANG_PROGRAM([[]],
702
[[extern int _nl_msg_cat_cntr;
703
return _nl_msg_cat_cntr]])],
707
dnl On Solaris, if bind_textdomain_codeset is in libc,
708
dnl GNU format message catalog is always supported,
709
dnl since both are added to the libc all together.
710
dnl Hence, we'd like to go with DATADIRNAME=share
712
AC_CHECK_FUNC(bind_textdomain_codeset,
713
[DATADIRNAME=share], [DATADIRNAME=lib])
720
AC_SUBST(DATADIRNAME)
727
# IT_PO_SUBDIR(DIRNAME)
728
# ---------------------
729
# All po subdirs have to be declared with this macro; the subdir "po" is
730
# declared by IT_PROG_INTLTOOL.
732
AC_DEFUN([IT_PO_SUBDIR],
733
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
735
dnl The following CONFIG_COMMANDS should be executed at the very end
736
dnl of config.status.
737
AC_CONFIG_COMMANDS_PRE([
738
AC_CONFIG_COMMANDS([$1/stamp-it], [
739
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
740
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
742
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
747
'"s|^| $ac_top_srcdir/|" \
748
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
750
[sed '/^POTFILES =/,/[^\\]$/ {
754
' "$1/Makefile.in" >"$1/Makefile"]
755
rm -f "$1/Makefile.tmp"
756
mv "$1/stamp-it.tmp" "$1/stamp-it"
761
# _IT_SUBST(VARIABLE)
762
# -------------------
763
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
765
AC_DEFUN([_IT_SUBST],
768
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
773
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
774
# A hint is needed for aclocal from Automake <= 1.9.4:
775
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
778
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
780
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
781
# 2006, 2007, 2008 Free Software Foundation, Inc.
782
# Written by Gordon Matzigkeit, 1996
784
# This file is free software; the Free Software Foundation gives
785
# unlimited permission to copy and/or distribute it, with or without
786
# modifications, as long as this notice is preserved.
788
m4_define([_LT_COPYING], [dnl
789
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
790
# 2006, 2007, 2008 Free Software Foundation, Inc.
791
# Written by Gordon Matzigkeit, 1996
793
# This file is part of GNU Libtool.
795
# GNU Libtool is free software; you can redistribute it and/or
796
# modify it under the terms of the GNU General Public License as
797
# published by the Free Software Foundation; either version 2 of
798
# the License, or (at your option) any later version.
800
# As a special exception to the GNU General Public License,
801
# if you distribute this file as part of a program or library that
802
# is built using GNU Libtool, you may include this file under the
803
# same distribution terms that you use for the rest of that program.
805
# GNU Libtool is distributed in the hope that it will be useful,
806
# but WITHOUT ANY WARRANTY; without even the implied warranty of
807
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
808
# GNU General Public License for more details.
810
# You should have received a copy of the GNU General Public License
811
# along with GNU Libtool; see the file COPYING. If not, a copy
812
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
813
# obtained by writing to the Free Software Foundation, Inc.,
814
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
822
# Complain and exit if this libtool version is less that VERSION.
823
m4_defun([LT_PREREQ],
824
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
826
[m4_fatal([Libtool version $1 or higher is required],
833
# Complain if the absolute build directory name contains unusual characters
834
m4_defun([_LT_CHECK_BUILDDIR],
837
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
845
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
846
AC_BEFORE([$0], [LT_LANG])dnl
847
AC_BEFORE([$0], [LT_OUTPUT])dnl
848
AC_BEFORE([$0], [LTDL_INIT])dnl
849
m4_require([_LT_CHECK_BUILDDIR])dnl
851
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
852
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
853
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
854
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
855
dnl unless we require an AC_DEFUNed macro:
856
AC_REQUIRE([LTOPTIONS_VERSION])dnl
857
AC_REQUIRE([LTSUGAR_VERSION])dnl
858
AC_REQUIRE([LTVERSION_VERSION])dnl
859
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
860
m4_require([_LT_PROG_LTMAIN])dnl
863
_LT_SET_OPTIONS([$0], [$1])
865
# This can be used to rebuild libtool when needed
866
LIBTOOL_DEPS="$ltmain"
868
# Always use our own libtool.
869
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
879
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
880
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
881
dnl aclocal-1.4 backwards compatibility:
882
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
883
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
886
# _LT_CC_BASENAME(CC)
887
# -------------------
888
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
889
m4_defun([_LT_CC_BASENAME],
890
[for cc_temp in $1""; do
892
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
893
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
898
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
902
# _LT_FILEUTILS_DEFAULTS
903
# ----------------------
904
# It is okay to use these file commands and assume they have been set
905
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
906
m4_defun([_LT_FILEUTILS_DEFAULTS],
910
])# _LT_FILEUTILS_DEFAULTS
915
m4_defun([_LT_SETUP],
916
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
917
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
918
_LT_DECL([], [host_alias], [0], [The host system])dnl
919
_LT_DECL([], [host], [0])dnl
920
_LT_DECL([], [host_os], [0])dnl
922
_LT_DECL([], [build_alias], [0], [The build system])dnl
923
_LT_DECL([], [build], [0])dnl
924
_LT_DECL([], [build_os], [0])dnl
926
AC_REQUIRE([AC_PROG_CC])dnl
927
AC_REQUIRE([LT_PATH_LD])dnl
928
AC_REQUIRE([LT_PATH_NM])dnl
930
AC_REQUIRE([AC_PROG_LN_S])dnl
931
test -z "$LN_S" && LN_S="ln -s"
932
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
934
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
935
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
936
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
938
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
939
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
940
m4_require([_LT_CMD_RELOAD])dnl
941
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
942
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
943
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
945
_LT_CONFIG_LIBTOOL_INIT([
946
# See if we are running on zsh, and set the options which allow our
947
# commands through without removal of \ escapes INIT.
948
if test -n "\${ZSH_VERSION+set}" ; then
952
if test -n "${ZSH_VERSION+set}" ; then
958
m4_require([_LT_TAG_COMPILER])dnl
959
_LT_PROG_ECHO_BACKSLASH
963
# AIX sometimes has problems with the GCC collect2 program. For some
964
# reason, if we set the COLLECT_NAMES environment variable, the problems
965
# vanish in a puff of smoke.
966
if test "X${COLLECT_NAMES+set}" != Xset; then
973
# Sed substitution that helps us do robust quoting. It backslashifies
974
# metacharacters that are still active within double-quoted strings.
975
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
977
# Same as above, but do not quote variable references.
978
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
980
# Sed substitution to delay expansion of an escaped shell variable in a
981
# double_quote_subst'ed string.
982
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
984
# Sed substitution to delay expansion of an escaped single quote.
985
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
987
# Sed substitution to avoid accidental globbing in evaled expressions
988
no_glob_subst='s/\*/\\\*/g'
994
# All known linkers require a `.a' archive for static linking (except MSVC,
995
# which needs '.lib').
998
with_gnu_ld="$lt_cv_prog_gnu_ld"
1001
old_CFLAGS="$CFLAGS"
1003
# Set sane defaults for various variables
1004
test -z "$CC" && CC=cc
1005
test -z "$LTCC" && LTCC=$CC
1006
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1007
test -z "$LD" && LD=ld
1008
test -z "$ac_objext" && ac_objext=o
1010
_LT_CC_BASENAME([$compiler])
1012
# Only perform the check for file, if the check method requires it
1013
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1014
case $deplibs_check_method in
1016
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1022
# Use C for the default configuration in the libtool script
1023
LT_SUPPORTED_TAG([CC])
1025
_LT_LANG_DEFAULT_CONFIG
1032
# Note that this code is called both from `configure', and `config.status'
1033
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1034
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1035
# so we pass a copy along to make sure it has a sensible value anyway.
1036
m4_defun([_LT_PROG_LTMAIN],
1037
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1038
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1039
ltmain="$ac_aux_dir/ltmain.sh"
1044
# So that we can recreate a full libtool script including additional
1045
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1046
# in macros and then make a single call at the end using the `libtool'
1050
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1051
# ----------------------------------------
1052
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1053
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1055
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1060
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1063
# _LT_CONFIG_LIBTOOL([COMMANDS])
1064
# ------------------------------
1065
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1066
m4_define([_LT_CONFIG_LIBTOOL],
1068
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1073
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1076
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1077
# -----------------------------------------------------
1078
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1079
[_LT_CONFIG_LIBTOOL([$1])
1080
_LT_CONFIG_LIBTOOL_INIT([$2])
1084
# _LT_FORMAT_COMMENT([COMMENT])
1085
# -----------------------------
1086
# Add leading comment marks to the start of each line, and a trailing
1087
# full-stop to the whole comment if one is not present already.
1088
m4_define([_LT_FORMAT_COMMENT],
1090
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1091
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1098
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1099
# -------------------------------------------------------------------
1100
# CONFIGNAME is the name given to the value in the libtool script.
1101
# VARNAME is the (base) name used in the configure script.
1102
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1103
# VARNAME. Any other value will be used directly.
1104
m4_define([_LT_DECL],
1105
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1106
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1107
[m4_ifval([$1], [$1], [$2])])
1108
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1110
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1111
lt_dict_add_subkey([lt_decl_dict], [$2],
1112
[tagged?], [m4_ifval([$5], [yes], [no])])])
1116
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1117
# --------------------------------------------------------
1118
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1121
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1122
# ------------------------------------------------
1123
m4_define([lt_decl_tag_varnames],
1124
[_lt_decl_filter([tagged?], [yes], $@)])
1127
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1128
# ---------------------------------------------------------
1129
m4_define([_lt_decl_filter],
1131
[0], [m4_fatal([$0: too few arguments: $#])],
1132
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1133
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1134
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1135
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1139
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1140
# --------------------------------------------------
1141
m4_define([lt_decl_quote_varnames],
1142
[_lt_decl_filter([value], [1], $@)])
1145
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1146
# ---------------------------------------------------
1147
m4_define([lt_decl_dquote_varnames],
1148
[_lt_decl_filter([value], [2], $@)])
1151
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1152
# ---------------------------------------------------
1153
m4_define([lt_decl_varnames_tagged],
1154
[m4_assert([$# <= 2])dnl
1155
_$0(m4_quote(m4_default([$1], [[, ]])),
1156
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1157
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1158
m4_define([_lt_decl_varnames_tagged],
1159
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1162
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1163
# ------------------------------------------------
1164
m4_define([lt_decl_all_varnames],
1165
[_$0(m4_quote(m4_default([$1], [[, ]])),
1167
m4_quote(lt_decl_varnames),
1168
m4_quote(m4_shift($@))))[]dnl
1170
m4_define([_lt_decl_all_varnames],
1171
[lt_join($@, lt_decl_varnames_tagged([$1],
1172
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1176
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1177
# ------------------------------------
1178
# Quote a variable value, and forward it to `config.status' so that its
1179
# declaration there will have the same value as in `configure'. VARNAME
1180
# must have a single quote delimited value for this to work.
1181
m4_define([_LT_CONFIG_STATUS_DECLARE],
1182
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1185
# _LT_CONFIG_STATUS_DECLARATIONS
1186
# ------------------------------
1187
# We delimit libtool config variables with single quotes, so when
1188
# we write them to config.status, we have to be sure to quote all
1189
# embedded single quotes properly. In configure, this macro expands
1190
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1192
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1193
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1194
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1195
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1200
# Output comment and list of tags supported by the script
1201
m4_defun([_LT_LIBTOOL_TAGS],
1202
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1203
available_tags="_LT_TAGS"dnl
1207
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1208
# -----------------------------------
1209
# Extract the dictionary values for VARNAME (optionally with TAG) and
1210
# expand to a commented shell variable setting:
1212
# # Some comment about what VAR is for.
1213
# visible_name=$lt_internal_name
1214
m4_define([_LT_LIBTOOL_DECLARE],
1215
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1216
[description])))[]dnl
1217
m4_pushdef([_libtool_name],
1218
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1219
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1220
[0], [_libtool_name=[$]$1],
1221
[1], [_libtool_name=$lt_[]$1],
1222
[2], [_libtool_name=$lt_[]$1],
1223
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1224
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1228
# _LT_LIBTOOL_CONFIG_VARS
1229
# -----------------------
1230
# Produce commented declarations of non-tagged libtool config variables
1231
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1232
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1233
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1234
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1235
[m4_foreach([_lt_var],
1236
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1237
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1240
# _LT_LIBTOOL_TAG_VARS(TAG)
1241
# -------------------------
1242
m4_define([_LT_LIBTOOL_TAG_VARS],
1243
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1244
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1247
# _LT_TAGVAR(VARNAME, [TAGNAME])
1248
# ------------------------------
1249
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1252
# _LT_CONFIG_COMMANDS
1253
# -------------------
1254
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1255
# variables for single and double quote escaping we saved from calls
1256
# to _LT_DECL, we can put quote escaped variables declarations
1257
# into `config.status', and then the shell code to quote escape them in
1258
# for loops in `config.status'. Finally, any additional code accumulated
1259
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1260
m4_defun([_LT_CONFIG_COMMANDS],
1261
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1262
dnl If the libtool generation code has been placed in $CONFIG_LT,
1263
dnl instead of duplicating it all over again into config.status,
1264
dnl then we will have config.status run $CONFIG_LT later, so it
1265
dnl needs to know what name is stored there:
1266
[AC_CONFIG_COMMANDS([libtool],
1267
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1268
dnl If the libtool generation code is destined for config.status,
1269
dnl expand the accumulated commands and init code now:
1270
[AC_CONFIG_COMMANDS([libtool],
1271
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1272
])#_LT_CONFIG_COMMANDS
1276
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1279
# The HP-UX ksh and POSIX shell print the target directory to stdout
1281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1283
sed_quote_subst='$sed_quote_subst'
1284
double_quote_subst='$double_quote_subst'
1285
delay_variable_subst='$delay_variable_subst'
1286
_LT_CONFIG_STATUS_DECLARATIONS
1288
LTCFLAGS='$LTCFLAGS'
1289
compiler='$compiler_DEFAULT'
1291
# Quote evaled strings.
1292
for var in lt_decl_all_varnames([[ \
1293
]], lt_decl_quote_varnames); do
1294
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1295
*[[\\\\\\\`\\"\\\$]]*)
1296
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1299
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1304
# Double-quote double-evaled strings.
1305
for var in lt_decl_all_varnames([[ \
1306
]], lt_decl_dquote_varnames); do
1307
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1308
*[[\\\\\\\`\\"\\\$]]*)
1309
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1312
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1317
# Fix-up fallback echo if it was mangled by the above quoting rules.
1319
*'\\\[$]0 --fallback-echo"')dnl "
1320
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1324
_LT_OUTPUT_LIBTOOL_INIT
1330
# This macro allows early generation of the libtool script (before
1331
# AC_OUTPUT is called), incase it is used in configure for compilation
1333
AC_DEFUN([LT_OUTPUT],
1334
[: ${CONFIG_LT=./config.lt}
1335
AC_MSG_NOTICE([creating $CONFIG_LT])
1336
cat >"$CONFIG_LT" <<_LTEOF
1338
# Generated by $as_me.
1339
# Run this file to recreate a libtool stub with the current configuration.
1342
SHELL=\${CONFIG_SHELL-$SHELL}
1345
cat >>"$CONFIG_LT" <<\_LTEOF
1349
exec AS_MESSAGE_FD>&1
1350
exec AS_MESSAGE_LOG_FD>>config.log
1353
AS_BOX([Running $as_me.])
1354
} >&AS_MESSAGE_LOG_FD
1357
\`$as_me' creates a local libtool stub from the current configuration,
1358
for use in further configure time tests before the real libtool is
1361
Usage: $[0] [[OPTIONS]]
1363
-h, --help print this help, then exit
1364
-V, --version print version number, then exit
1365
-q, --quiet do not print progress messages
1366
-d, --debug don't remove temporary files
1368
Report bugs to <bug-libtool@gnu.org>."
1371
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1372
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1373
configured by $[0], generated by m4_PACKAGE_STRING.
1375
Copyright (C) 2008 Free Software Foundation, Inc.
1376
This config.lt script is free software; the Free Software Foundation
1377
gives unlimited permision to copy, distribute and modify it."
1379
while test $[#] != 0
1382
--version | --v* | -V )
1383
echo "$lt_cl_version"; exit 0 ;;
1384
--help | --h* | -h )
1385
echo "$lt_cl_help"; exit 0 ;;
1386
--debug | --d* | -d )
1388
--quiet | --q* | --silent | --s* | -q )
1391
-*) AC_MSG_ERROR([unrecognized option: $[1]
1392
Try \`$[0] --help' for more information.]) ;;
1394
*) AC_MSG_ERROR([unrecognized argument: $[1]
1395
Try \`$[0] --help' for more information.]) ;;
1400
if $lt_cl_silent; then
1401
exec AS_MESSAGE_FD>/dev/null
1405
cat >>"$CONFIG_LT" <<_LTEOF
1406
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1409
cat >>"$CONFIG_LT" <<\_LTEOF
1410
AC_MSG_NOTICE([creating $ofile])
1411
_LT_OUTPUT_LIBTOOL_COMMANDS
1414
chmod +x "$CONFIG_LT"
1416
# configure is writing to config.log, but config.lt does its own redirection,
1417
# appending to config.log, which fails on DOS, as config.log is still kept
1418
# open by configure. Here we exec the FD to /dev/null, effectively closing
1419
# config.log, so it can be properly (re)opened and appended to by config.lt.
1420
if test "$no_create" != yes; then
1422
test "$silent" = yes &&
1423
lt_config_lt_args="$lt_config_lt_args --quiet"
1424
exec AS_MESSAGE_LOG_FD>/dev/null
1425
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1426
exec AS_MESSAGE_LOG_FD>>config.log
1427
$lt_cl_success || AS_EXIT(1)
1434
# If TAG is the built-in tag, create an initial libtool script with a
1435
# default configuration from the untagged config vars. Otherwise add code
1436
# to config.status for appending the configuration named by TAG from the
1437
# matching tagged config vars.
1438
m4_defun([_LT_CONFIG],
1439
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1440
_LT_CONFIG_SAVE_COMMANDS([
1441
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1442
m4_if(_LT_TAG, [C], [
1443
# See if we are running on zsh, and set the options which allow our
1444
# commands through without removal of \ escapes.
1445
if test -n "${ZSH_VERSION+set}" ; then
1446
setopt NO_GLOB_SUBST
1450
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1453
cat <<_LT_EOF >> "$cfgfile"
1456
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1457
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1458
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1459
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1464
# ### BEGIN LIBTOOL CONFIG
1465
_LT_LIBTOOL_CONFIG_VARS
1466
_LT_LIBTOOL_TAG_VARS
1467
# ### END LIBTOOL CONFIG
1473
cat <<\_LT_EOF >> "$cfgfile"
1474
# AIX sometimes has problems with the GCC collect2 program. For some
1475
# reason, if we set the COLLECT_NAMES environment variable, the problems
1476
# vanish in a puff of smoke.
1477
if test "X${COLLECT_NAMES+set}" != Xset; then
1479
export COLLECT_NAMES
1487
# We use sed instead of cat because bash on DJGPP gets confused if
1488
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1489
# text mode, it properly converts lines to CR/LF. This bash problem
1490
# is reportedly fixed, but why not run on old versions too?
1491
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1492
|| (rm -f "$cfgfile"; exit 1)
1494
_LT_PROG_XSI_SHELLFNS
1496
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1497
|| (rm -f "$cfgfile"; exit 1)
1499
mv -f "$cfgfile" "$ofile" ||
1500
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1503
[cat <<_LT_EOF >> "$ofile"
1505
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1506
dnl in a comment (ie after a #).
1507
# ### BEGIN LIBTOOL TAG CONFIG: $1
1508
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1509
# ### END LIBTOOL TAG CONFIG: $1
1516
TIMESTAMP='$TIMESTAMP'
1518
ofile='$ofile'], [])
1519
])dnl /_LT_CONFIG_SAVE_COMMANDS
1523
# LT_SUPPORTED_TAG(TAG)
1524
# ---------------------
1525
# Trace this macro to discover what tags are supported by the libtool
1526
# --tag option, using:
1527
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1528
AC_DEFUN([LT_SUPPORTED_TAG], [])
1531
# C support is built-in for now
1532
m4_define([_LT_LANG_C_enabled], [])
1533
m4_define([_LT_TAGS], [])
1538
# Enable libtool support for the given language if not already enabled.
1540
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1543
[C++], [_LT_LANG(CXX)],
1544
[Java], [_LT_LANG(GCJ)],
1545
[Fortran 77], [_LT_LANG(F77)],
1546
[Fortran], [_LT_LANG(FC)],
1547
[Windows Resource], [_LT_LANG(RC)],
1548
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1550
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1554
# _LT_LANG(LANGNAME)
1555
# ------------------
1556
m4_defun([_LT_LANG],
1557
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1558
[LT_SUPPORTED_TAG([$1])dnl
1559
m4_append([_LT_TAGS], [$1 ])dnl
1560
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1561
_LT_LANG_$1_CONFIG($1)])dnl
1565
# _LT_LANG_DEFAULT_CONFIG
1566
# -----------------------
1567
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1568
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1570
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1572
AC_PROVIDE_IFELSE([AC_PROG_F77],
1574
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1576
AC_PROVIDE_IFELSE([AC_PROG_FC],
1578
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1580
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1581
dnl pulling things in needlessly.
1582
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1584
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1586
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1588
[m4_ifdef([AC_PROG_GCJ],
1589
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1590
m4_ifdef([A][M_PROG_GCJ],
1591
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1592
m4_ifdef([LT_PROG_GCJ],
1593
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1595
AC_PROVIDE_IFELSE([LT_PROG_RC],
1597
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1598
])# _LT_LANG_DEFAULT_CONFIG
1601
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1602
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1603
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1604
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1605
dnl aclocal-1.4 backwards compatibility:
1606
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1607
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1608
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1609
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1614
m4_defun([_LT_TAG_COMPILER],
1615
[AC_REQUIRE([AC_PROG_CC])dnl
1617
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1618
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1619
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1620
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1622
# If no C compiler was specified, use CC.
1625
# If no C compiler flags were specified, use CFLAGS.
1626
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1628
# Allow CC to be a program name with arguments.
1630
])# _LT_TAG_COMPILER
1633
# _LT_COMPILER_BOILERPLATE
1634
# ------------------------
1635
# Check for compiler boilerplate output or warnings with
1636
# the simple compiler test code.
1637
m4_defun([_LT_COMPILER_BOILERPLATE],
1638
[m4_require([_LT_DECL_SED])dnl
1639
ac_outfile=conftest.$ac_objext
1640
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1641
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1642
_lt_compiler_boilerplate=`cat conftest.err`
1644
])# _LT_COMPILER_BOILERPLATE
1647
# _LT_LINKER_BOILERPLATE
1648
# ----------------------
1649
# Check for linker boilerplate output or warnings with
1650
# the simple link test code.
1651
m4_defun([_LT_LINKER_BOILERPLATE],
1652
[m4_require([_LT_DECL_SED])dnl
1653
ac_outfile=conftest.$ac_objext
1654
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1655
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1656
_lt_linker_boilerplate=`cat conftest.err`
1658
])# _LT_LINKER_BOILERPLATE
1660
# _LT_REQUIRED_DARWIN_CHECKS
1661
# -------------------------
1662
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1664
rhapsody* | darwin*)
1665
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1666
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1667
AC_CHECK_TOOL([LIPO], [lipo], [:])
1668
AC_CHECK_TOOL([OTOOL], [otool], [:])
1669
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1670
_LT_DECL([], [DSYMUTIL], [1],
1671
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1672
_LT_DECL([], [NMEDIT], [1],
1673
[Tool to change global to local symbols on Mac OS X])
1674
_LT_DECL([], [LIPO], [1],
1675
[Tool to manipulate fat objects and archives on Mac OS X])
1676
_LT_DECL([], [OTOOL], [1],
1677
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1678
_LT_DECL([], [OTOOL64], [1],
1679
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1681
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1682
[lt_cv_apple_cc_single_mod=no
1683
if test -z "${LT_MULTI_MODULE}"; then
1684
# By default we will add the -single_module flag. You can override
1685
# by either setting the environment variable LT_MULTI_MODULE
1686
# non-empty at configure time, or by adding -multi_module to the
1688
rm -rf libconftest.dylib*
1689
echo "int foo(void){return 1;}" > conftest.c
1690
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1691
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1692
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1693
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1695
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1696
lt_cv_apple_cc_single_mod=yes
1698
cat conftest.err >&AS_MESSAGE_LOG_FD
1700
rm -rf libconftest.dylib*
1703
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1704
[lt_cv_ld_exported_symbols_list],
1705
[lt_cv_ld_exported_symbols_list=no
1706
save_LDFLAGS=$LDFLAGS
1707
echo "_main" > conftest.sym
1708
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1709
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1710
[lt_cv_ld_exported_symbols_list=yes],
1711
[lt_cv_ld_exported_symbols_list=no])
1712
LDFLAGS="$save_LDFLAGS"
1715
rhapsody* | darwin1.[[012]])
1716
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1718
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1719
darwin*) # darwin 5.x on
1720
# if running on 10.5 or later, the deployment target defaults
1721
# to the OS version, if on x86, and 10.4, the deployment
1722
# target defaults to 10.4. Don't you love it?
1723
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1724
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1725
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1727
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1729
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1733
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1734
_lt_dar_single_mod='$single_module'
1736
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1737
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1739
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1741
if test "$DSYMUTIL" != ":"; then
1742
_lt_dsymutil='~$DSYMUTIL $lib || :'
1751
# _LT_DARWIN_LINKER_FEATURES
1752
# --------------------------
1753
# Checks for linker and compiler features on darwin
1754
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1756
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1757
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1758
_LT_TAGVAR(hardcode_direct, $1)=no
1759
_LT_TAGVAR(hardcode_automatic, $1)=yes
1760
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1761
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1762
_LT_TAGVAR(link_all_deplibs, $1)=yes
1763
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1764
case $cc_basename in
1765
ifort*) _lt_dar_can_shared=yes ;;
1766
*) _lt_dar_can_shared=$GCC ;;
1768
if test "$_lt_dar_can_shared" = "yes"; then
1769
output_verbose_link_cmd=echo
1770
_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}"
1771
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1772
_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}"
1773
_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}"
1775
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1776
_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}"
1777
_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}"
1781
_LT_TAGVAR(ld_shlibs, $1)=no
1785
# _LT_SYS_MODULE_PATH_AIX
1786
# -----------------------
1787
# Links a minimal program and checks the executable
1788
# for the system default hardcoded library path. In most cases,
1789
# this is /usr/lib:/lib, but when the MPI compilers are used
1790
# the location of the communication and MPI libs are included too.
1791
# If we don't find anything, use the default library path according
1792
# to the aix ld manual.
1793
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1794
[m4_require([_LT_DECL_SED])dnl
1795
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1796
lt_aix_libpath_sed='
1797
/Import File Strings/,/^$/ {
1803
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1804
# Check for a 64-bit object if we didn't find anything.
1805
if test -z "$aix_libpath"; then
1806
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1809
])# _LT_SYS_MODULE_PATH_AIX
1812
# _LT_SHELL_INIT(ARG)
1813
# -------------------
1814
m4_define([_LT_SHELL_INIT],
1815
[ifdef([AC_DIVERSION_NOTICE],
1816
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1817
[AC_DIVERT_PUSH(NOTICE)])
1823
# _LT_PROG_ECHO_BACKSLASH
1824
# -----------------------
1825
# Add some code to the start of the generated configure script which
1826
# will find an echo command which doesn't interpret backslashes.
1827
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1829
# Check that we are running under the correct shell.
1830
SHELL=${CONFIG_SHELL-/bin/sh}
1834
# Remove one level of quotation (which was required for Make).
1835
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1839
ECHO=${lt_ECHO-echo}
1840
if test "X[$]1" = X--no-reexec; then
1841
# Discard the --no-reexec flag, and continue.
1843
elif test "X[$]1" = X--fallback-echo; then
1844
# Avoid inline document here, it may be left over
1846
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1847
# Yippee, $ECHO works!
1850
# Restart under the correct shell.
1851
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1854
if test "X[$]1" = X--fallback-echo; then
1855
# used as fallback echo
1863
# The HP-UX ksh and POSIX shell print the target directory to stdout
1865
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1867
if test -z "$lt_ECHO"; then
1868
if test "X${echo_test_string+set}" != Xset; then
1869
# find a string as large as possible, as long as the shell can cope with it
1870
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1871
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1872
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1873
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1880
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1881
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1882
test "X$echo_testing_string" = "X$echo_test_string"; then
1885
# The Solaris, AIX, and Digital Unix default echo programs unquote
1886
# backslashes. This makes it impossible to quote backslashes using
1887
# echo "$something" | sed 's/\\/\\\\/g'
1889
# So, first we look for a working echo in the user's PATH.
1891
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1892
for dir in $PATH /usr/ucb; do
1894
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1895
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1896
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1897
test "X$echo_testing_string" = "X$echo_test_string"; then
1904
if test "X$ECHO" = Xecho; then
1905
# We didn't find a better echo, so look for alternatives.
1906
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1907
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1908
test "X$echo_testing_string" = "X$echo_test_string"; then
1909
# This shell has a builtin print -r that does the trick.
1911
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1912
test "X$CONFIG_SHELL" != X/bin/ksh; then
1913
# If we have ksh, try running configure again with it.
1914
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1915
export ORIGINAL_CONFIG_SHELL
1916
CONFIG_SHELL=/bin/ksh
1918
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1922
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1923
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1924
test "X$echo_testing_string" = "X$echo_test_string"; then
1925
# Cool, printf works
1927
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1928
test "X$echo_testing_string" = 'X\t' &&
1929
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1930
test "X$echo_testing_string" = "X$echo_test_string"; then
1931
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1933
SHELL="$CONFIG_SHELL"
1935
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1936
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1937
test "X$echo_testing_string" = 'X\t' &&
1938
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1939
test "X$echo_testing_string" = "X$echo_test_string"; then
1940
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1942
# maybe with a smaller string...
1945
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1946
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1953
if test "$prev" != 'sed 50q "[$]0"'; then
1954
echo_test_string=`eval $prev`
1955
export echo_test_string
1956
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1958
# Oops. We lost completely, so just stick with echo.
1967
# Copy echo and quote the copy suitably for passing to libtool from
1968
# the Makefile, instead of quoting the original, which is used later.
1970
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1971
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1976
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1977
_LT_DECL([], [ECHO], [1],
1978
[An echo program that does not interpret backslashes])
1979
])# _LT_PROG_ECHO_BACKSLASH
1984
m4_defun([_LT_ENABLE_LOCK],
1985
[AC_ARG_ENABLE([libtool-lock],
1986
[AS_HELP_STRING([--disable-libtool-lock],
1987
[avoid locking (might break parallel builds)])])
1988
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1990
# Some flags need to be propagated to the compiler or linker for good
1994
# Find out which ABI we are using.
1995
echo 'int i;' > conftest.$ac_ext
1996
if AC_TRY_EVAL(ac_compile); then
1997
case `/usr/bin/file conftest.$ac_objext` in
2009
# Find out which ABI we are using.
2010
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2011
if AC_TRY_EVAL(ac_compile); then
2012
if test "$lt_cv_prog_gnu_ld" = yes; then
2013
case `/usr/bin/file conftest.$ac_objext` in
2015
LD="${LD-ld} -melf32bsmip"
2018
LD="${LD-ld} -melf32bmipn32"
2021
LD="${LD-ld} -melf64bmip"
2025
case `/usr/bin/file conftest.$ac_objext` in
2041
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2042
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2043
# Find out which ABI we are using.
2044
echo 'int i;' > conftest.$ac_ext
2045
if AC_TRY_EVAL(ac_compile); then
2046
case `/usr/bin/file conftest.o` in
2049
x86_64-*kfreebsd*-gnu)
2050
LD="${LD-ld} -m elf_i386_fbsd"
2053
LD="${LD-ld} -m elf_i386"
2055
ppc64-*linux*|powerpc64-*linux*)
2056
LD="${LD-ld} -m elf32ppclinux"
2059
LD="${LD-ld} -m elf_s390"
2062
LD="${LD-ld} -m elf32_sparc"
2068
x86_64-*kfreebsd*-gnu)
2069
LD="${LD-ld} -m elf_x86_64_fbsd"
2072
LD="${LD-ld} -m elf_x86_64"
2074
ppc*-*linux*|powerpc*-*linux*)
2075
LD="${LD-ld} -m elf64ppc"
2077
s390*-*linux*|s390*-*tpf*)
2078
LD="${LD-ld} -m elf64_s390"
2081
LD="${LD-ld} -m elf64_sparc"
2091
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2092
SAVE_CFLAGS="$CFLAGS"
2093
CFLAGS="$CFLAGS -belf"
2094
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2096
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2098
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2099
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2100
CFLAGS="$SAVE_CFLAGS"
2104
# Find out which ABI we are using.
2105
echo 'int i;' > conftest.$ac_ext
2106
if AC_TRY_EVAL(ac_compile); then
2107
case `/usr/bin/file conftest.o` in
2109
case $lt_cv_prog_gnu_ld in
2110
yes*) LD="${LD-ld} -m elf64_sparc" ;;
2112
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2124
need_locks="$enable_libtool_lock"
2128
# _LT_CMD_OLD_ARCHIVE
2129
# -------------------
2130
m4_defun([_LT_CMD_OLD_ARCHIVE],
2131
[AC_CHECK_TOOL(AR, ar, false)
2132
test -z "$AR" && AR=ar
2133
test -z "$AR_FLAGS" && AR_FLAGS=cru
2134
_LT_DECL([], [AR], [1], [The archiver])
2135
_LT_DECL([], [AR_FLAGS], [1])
2137
AC_CHECK_TOOL(STRIP, strip, :)
2138
test -z "$STRIP" && STRIP=:
2139
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2141
AC_CHECK_TOOL(RANLIB, ranlib, :)
2142
test -z "$RANLIB" && RANLIB=:
2143
_LT_DECL([], [RANLIB], [1],
2144
[Commands used to install an old-style archive])
2146
# Determine commands to create old-style static archives.
2147
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2148
old_postinstall_cmds='chmod 644 $oldlib'
2149
old_postuninstall_cmds=
2151
if test -n "$RANLIB"; then
2154
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2157
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2160
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2162
_LT_DECL([], [old_postinstall_cmds], [2])
2163
_LT_DECL([], [old_postuninstall_cmds], [2])
2164
_LT_TAGDECL([], [old_archive_cmds], [2],
2165
[Commands used to build an old-style archive])
2166
])# _LT_CMD_OLD_ARCHIVE
2169
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2170
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2171
# ----------------------------------------------------------------
2172
# Check whether the given compiler option works
2173
AC_DEFUN([_LT_COMPILER_OPTION],
2174
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2175
m4_require([_LT_DECL_SED])dnl
2176
AC_CACHE_CHECK([$1], [$2],
2178
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2179
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2180
lt_compiler_flag="$3"
2181
# Insert the option either (1) after the last *FLAGS variable, or
2182
# (2) before a word containing "conftest.", or (3) at the end.
2183
# Note that $ac_compile itself does not contain backslashes and begins
2184
# with a dollar sign (not a hyphen), so the echo should work correctly.
2185
# The option is referenced via a variable to avoid confusing sed.
2186
lt_compile=`echo "$ac_compile" | $SED \
2187
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2188
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2189
-e 's:$: $lt_compiler_flag:'`
2190
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2191
(eval "$lt_compile" 2>conftest.err)
2193
cat conftest.err >&AS_MESSAGE_LOG_FD
2194
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2195
if (exit $ac_status) && test -s "$ac_outfile"; then
2196
# The compiler can only warn and ignore the option if not recognized
2197
# So say no if there are warnings other than the usual output.
2198
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2199
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2200
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2207
if test x"[$]$2" = xyes; then
2208
m4_if([$5], , :, [$5])
2210
m4_if([$6], , :, [$6])
2212
])# _LT_COMPILER_OPTION
2215
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2216
dnl aclocal-1.4 backwards compatibility:
2217
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2220
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2221
# [ACTION-SUCCESS], [ACTION-FAILURE])
2222
# ----------------------------------------------------
2223
# Check whether the given linker option works
2224
AC_DEFUN([_LT_LINKER_OPTION],
2225
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2226
m4_require([_LT_DECL_SED])dnl
2227
AC_CACHE_CHECK([$1], [$2],
2229
save_LDFLAGS="$LDFLAGS"
2230
LDFLAGS="$LDFLAGS $3"
2231
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2232
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2233
# The linker can only warn and ignore the option if not recognized
2234
# So say no if there are warnings
2235
if test -s conftest.err; then
2236
# Append any errors to the config.log.
2237
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2238
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2239
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2240
if diff conftest.exp conftest.er2 >/dev/null; then
2248
LDFLAGS="$save_LDFLAGS"
2251
if test x"[$]$2" = xyes; then
2252
m4_if([$4], , :, [$4])
2254
m4_if([$5], , :, [$5])
2256
])# _LT_LINKER_OPTION
2259
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2260
dnl aclocal-1.4 backwards compatibility:
2261
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2266
AC_DEFUN([LT_CMD_MAX_LEN],
2267
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2268
# find the maximum length of command line arguments
2269
AC_MSG_CHECKING([the maximum length of command line arguments])
2270
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2276
# On DJGPP, this test can blow up pretty badly due to problems in libc
2277
# (any single argument exceeding 2000 bytes causes a buffer overrun
2278
# during glob expansion). Even if it were fixed, the result of this
2279
# check would be larger than it should be.
2280
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2284
# Under GNU Hurd, this test is not required because there is
2285
# no limit to the length of command line arguments.
2286
# Libtool will interpret -1 as no limit whatsoever
2287
lt_cv_sys_max_cmd_len=-1;
2290
cygwin* | mingw* | cegcc*)
2291
# On Win9x/ME, this test blows up -- it succeeds, but takes
2292
# about 5 minutes as the teststring grows exponentially.
2293
# Worse, since 9x/ME are not pre-emptively multitasking,
2294
# you end up with a "frozen" computer, even though with patience
2295
# the test eventually succeeds (with a max line length of 256k).
2296
# Instead, let's just punt: use the minimum linelength reported by
2297
# all of the supported platforms: 8192 (on NT/2K/XP).
2298
lt_cv_sys_max_cmd_len=8192;
2302
# On AmigaOS with pdksh, this test takes hours, literally.
2303
# So we just punt and use a minimum line length of 8192.
2304
lt_cv_sys_max_cmd_len=8192;
2307
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2308
# This has been around since 386BSD, at least. Likely further.
2309
if test -x /sbin/sysctl; then
2310
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2311
elif test -x /usr/sbin/sysctl; then
2312
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2314
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2316
# And add a safety zone
2317
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2318
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2322
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2323
lt_cv_sys_max_cmd_len=196608
2327
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2328
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2329
# nice to cause kernel panics so lets avoid the loop below.
2330
# First set a reasonable default.
2331
lt_cv_sys_max_cmd_len=16384
2333
if test -x /sbin/sysconfig; then
2334
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2335
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2340
lt_cv_sys_max_cmd_len=102400
2342
sysv5* | sco5v6* | sysv4.2uw2*)
2343
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2344
if test -n "$kargmax"; then
2345
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2347
lt_cv_sys_max_cmd_len=32768
2351
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2352
if test -n "$lt_cv_sys_max_cmd_len"; then
2353
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2354
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2356
# Make teststring a little bigger before we do anything with it.
2357
# a 1K string should be a reasonable start.
2358
for i in 1 2 3 4 5 6 7 8 ; do
2359
teststring=$teststring$teststring
2361
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2362
# If test is not a shell built-in, we'll probably end up computing a
2363
# maximum length that is only half of the actual maximum length, but
2365
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2366
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2367
test $i != 17 # 1/2 MB should be enough
2370
teststring=$teststring$teststring
2372
# Only check the string length outside the loop.
2373
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2375
# Add a significant safety factor because C++ compilers can tack on
2376
# massive amounts of additional arguments before passing them to the
2377
# linker. It appears as though 1/2 is a usable value.
2378
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2383
if test -n $lt_cv_sys_max_cmd_len ; then
2384
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2388
max_cmd_len=$lt_cv_sys_max_cmd_len
2389
_LT_DECL([], [max_cmd_len], [0],
2390
[What is the maximum length of a command?])
2394
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2395
dnl aclocal-1.4 backwards compatibility:
2396
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2401
m4_defun([_LT_HEADER_DLFCN],
2402
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2403
])# _LT_HEADER_DLFCN
2406
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2407
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2408
# ----------------------------------------------------------------
2409
m4_defun([_LT_TRY_DLOPEN_SELF],
2410
[m4_require([_LT_HEADER_DLFCN])dnl
2411
if test "$cross_compiling" = yes; then :
2414
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2415
lt_status=$lt_dlunknown
2416
cat > conftest.$ac_ext <<_LT_EOF
2417
[#line __oline__ "configure"
2418
#include "confdefs.h"
2427
# define LT_DLGLOBAL RTLD_GLOBAL
2430
# define LT_DLGLOBAL DL_GLOBAL
2432
# define LT_DLGLOBAL 0
2436
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2437
find out it does not work in some platform. */
2438
#ifndef LT_DLLAZY_OR_NOW
2440
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2443
# define LT_DLLAZY_OR_NOW DL_LAZY
2446
# define LT_DLLAZY_OR_NOW RTLD_NOW
2449
# define LT_DLLAZY_OR_NOW DL_NOW
2451
# define LT_DLLAZY_OR_NOW 0
2458
void fnord() { int i=42;}
2461
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2462
int status = $lt_dlunknown;
2466
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2467
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2468
/* dlclose (self); */
2476
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2477
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2480
x$lt_dlno_uscore) $1 ;;
2481
x$lt_dlneed_uscore) $2 ;;
2482
x$lt_dlunknown|x*) $3 ;;
2485
# compilation failed
2490
])# _LT_TRY_DLOPEN_SELF
2493
# LT_SYS_DLOPEN_SELF
2494
# ------------------
2495
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2496
[m4_require([_LT_HEADER_DLFCN])dnl
2497
if test "x$enable_dlopen" != xyes; then
2498
enable_dlopen=unknown
2499
enable_dlopen_self=unknown
2500
enable_dlopen_self_static=unknown
2507
lt_cv_dlopen="load_add_on"
2509
lt_cv_dlopen_self=yes
2512
mingw* | pw32* | cegcc*)
2513
lt_cv_dlopen="LoadLibrary"
2518
lt_cv_dlopen="dlopen"
2523
# if libdl is installed we need to link against it
2524
AC_CHECK_LIB([dl], [dlopen],
2525
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2528
lt_cv_dlopen_self=yes
2533
AC_CHECK_FUNC([shl_load],
2534
[lt_cv_dlopen="shl_load"],
2535
[AC_CHECK_LIB([dld], [shl_load],
2536
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2537
[AC_CHECK_FUNC([dlopen],
2538
[lt_cv_dlopen="dlopen"],
2539
[AC_CHECK_LIB([dl], [dlopen],
2540
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2541
[AC_CHECK_LIB([svld], [dlopen],
2542
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2543
[AC_CHECK_LIB([dld], [dld_link],
2544
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2553
if test "x$lt_cv_dlopen" != xno; then
2559
case $lt_cv_dlopen in
2561
save_CPPFLAGS="$CPPFLAGS"
2562
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2564
save_LDFLAGS="$LDFLAGS"
2565
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2568
LIBS="$lt_cv_dlopen_libs $LIBS"
2570
AC_CACHE_CHECK([whether a program can dlopen itself],
2571
lt_cv_dlopen_self, [dnl
2572
_LT_TRY_DLOPEN_SELF(
2573
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2574
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2577
if test "x$lt_cv_dlopen_self" = xyes; then
2578
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2579
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2580
lt_cv_dlopen_self_static, [dnl
2581
_LT_TRY_DLOPEN_SELF(
2582
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2583
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2587
CPPFLAGS="$save_CPPFLAGS"
2588
LDFLAGS="$save_LDFLAGS"
2593
case $lt_cv_dlopen_self in
2594
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2595
*) enable_dlopen_self=unknown ;;
2598
case $lt_cv_dlopen_self_static in
2599
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2600
*) enable_dlopen_self_static=unknown ;;
2603
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2604
[Whether dlopen is supported])
2605
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2606
[Whether dlopen of programs is supported])
2607
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2608
[Whether dlopen of statically linked programs is supported])
2609
])# LT_SYS_DLOPEN_SELF
2612
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2613
dnl aclocal-1.4 backwards compatibility:
2614
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2617
# _LT_COMPILER_C_O([TAGNAME])
2618
# ---------------------------
2619
# Check to see if options -c and -o are simultaneously supported by compiler.
2620
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2621
m4_defun([_LT_COMPILER_C_O],
2622
[m4_require([_LT_DECL_SED])dnl
2623
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2624
m4_require([_LT_TAG_COMPILER])dnl
2625
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2626
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2627
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2628
$RM -r conftest 2>/dev/null
2632
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2634
lt_compiler_flag="-o out/conftest2.$ac_objext"
2635
# Insert the option either (1) after the last *FLAGS variable, or
2636
# (2) before a word containing "conftest.", or (3) at the end.
2637
# Note that $ac_compile itself does not contain backslashes and begins
2638
# with a dollar sign (not a hyphen), so the echo should work correctly.
2639
lt_compile=`echo "$ac_compile" | $SED \
2640
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2641
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2642
-e 's:$: $lt_compiler_flag:'`
2643
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2644
(eval "$lt_compile" 2>out/conftest.err)
2646
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2647
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2648
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2650
# The compiler can only warn and ignore the option if not recognized
2651
# So say no if there are warnings
2652
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2653
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2654
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2655
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2658
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2660
# SGI C++ compiler will create directory out/ii_files/ for
2661
# template instantiation
2662
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2663
$RM out/* && rmdir out
2668
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2669
[Does compiler simultaneously support -c and -o options?])
2670
])# _LT_COMPILER_C_O
2673
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2674
# ----------------------------------
2675
# Check to see if we can do hard links to lock some files if needed
2676
m4_defun([_LT_COMPILER_FILE_LOCKS],
2677
[m4_require([_LT_ENABLE_LOCK])dnl
2678
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2679
_LT_COMPILER_C_O([$1])
2681
hard_links="nottested"
2682
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2683
# do not overwrite the value of need_locks provided by the user
2684
AC_MSG_CHECKING([if we can lock with hard links])
2687
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2689
ln conftest.a conftest.b 2>&5 || hard_links=no
2690
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2691
AC_MSG_RESULT([$hard_links])
2692
if test "$hard_links" = no; then
2693
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2699
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2700
])# _LT_COMPILER_FILE_LOCKS
2705
m4_defun([_LT_CHECK_OBJDIR],
2706
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2707
[rm -f .libs 2>/dev/null
2708
mkdir .libs 2>/dev/null
2709
if test -d .libs; then
2712
# MS-DOS does not allow filenames that begin with a dot.
2715
rmdir .libs 2>/dev/null])
2716
objdir=$lt_cv_objdir
2717
_LT_DECL([], [objdir], [0],
2718
[The name of the directory that contains temporary libtool files])dnl
2719
m4_pattern_allow([LT_OBJDIR])dnl
2720
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2721
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2722
])# _LT_CHECK_OBJDIR
2725
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2726
# --------------------------------------
2727
# Check hardcoding attributes.
2728
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2729
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2730
_LT_TAGVAR(hardcode_action, $1)=
2731
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2732
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2733
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2735
# We can hardcode non-existent directories.
2736
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2737
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2738
# have to relink, otherwise we might link with an installed library
2739
# when we should be linking with a yet-to-be-installed one
2740
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2741
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2742
# Linking always hardcodes the temporary library directory.
2743
_LT_TAGVAR(hardcode_action, $1)=relink
2745
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2746
_LT_TAGVAR(hardcode_action, $1)=immediate
2749
# We cannot hardcode anything, or else we can only hardcode existing
2751
_LT_TAGVAR(hardcode_action, $1)=unsupported
2753
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2755
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2756
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2757
# Fast installation is not supported
2758
enable_fast_install=no
2759
elif test "$shlibpath_overrides_runpath" = yes ||
2760
test "$enable_shared" = no; then
2761
# Fast installation is not necessary
2762
enable_fast_install=needless
2764
_LT_TAGDECL([], [hardcode_action], [0],
2765
[How to hardcode a shared library path into an executable])
2766
])# _LT_LINKER_HARDCODE_LIBPATH
2771
m4_defun([_LT_CMD_STRIPLIB],
2772
[m4_require([_LT_DECL_EGREP])
2775
AC_MSG_CHECKING([whether stripping libraries is possible])
2776
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2777
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2778
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2779
AC_MSG_RESULT([yes])
2781
# FIXME - insert some real tests, host_os isn't really good enough
2784
if test -n "$STRIP" ; then
2785
striplib="$STRIP -x"
2786
old_striplib="$STRIP -S"
2787
AC_MSG_RESULT([yes])
2797
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2798
_LT_DECL([], [striplib], [1])
2799
])# _LT_CMD_STRIPLIB
2802
# _LT_SYS_DYNAMIC_LINKER([TAG])
2803
# -----------------------------
2804
# PORTME Fill in your ld.so characteristics
2805
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2806
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2807
m4_require([_LT_DECL_EGREP])dnl
2808
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2809
m4_require([_LT_DECL_OBJDUMP])dnl
2810
m4_require([_LT_DECL_SED])dnl
2811
AC_MSG_CHECKING([dynamic linker characteristics])
2814
if test "$GCC" = yes; then
2816
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2817
*) lt_awk_arg="/^libraries:/" ;;
2819
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2820
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2821
# if the path contains ";" then we assume it to be the separator
2822
# otherwise default to the standard path separator (i.e. ":") - it is
2823
# assumed that no part of a normal pathname contains ";" but that should
2824
# okay in the real world where ";" in dirpaths is itself problematic.
2825
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2827
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2829
# Ok, now we have the path, separated by spaces, we can step through it
2830
# and add multilib dir if necessary.
2831
lt_tmp_lt_search_path_spec=
2832
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2833
for lt_sys_path in $lt_search_path_spec; do
2834
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2835
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2837
test -d "$lt_sys_path" && \
2838
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2841
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2842
BEGIN {RS=" "; FS="/|\n";} {
2845
for (lt_i = NF; lt_i > 0; lt_i--) {
2846
if ($lt_i != "" && $lt_i != ".") {
2847
if ($lt_i == "..") {
2850
if (lt_count == 0) {
2851
lt_foo="/" $lt_i lt_foo;
2858
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2859
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2861
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2863
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2866
libname_spec='lib$name'
2874
shlibpath_overrides_runpath=unknown
2876
dynamic_linker="$host_os ld.so"
2877
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2878
need_lib_prefix=unknown
2879
hardcode_into_libs=no
2881
# when you set need_version to no, make sure it does not cause -set_version
2882
# flags to be left without arguments
2883
need_version=unknown
2888
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2889
shlibpath_var=LIBPATH
2891
# AIX 3 has no versioning support, so we append a major version to the name.
2892
soname_spec='${libname}${release}${shared_ext}$major'
2899
hardcode_into_libs=yes
2900
if test "$host_cpu" = ia64; then
2901
# AIX 5 supports IA64
2902
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2903
shlibpath_var=LD_LIBRARY_PATH
2905
# With GCC up to 2.95.x, collect2 would create an import file
2906
# for dependence libraries. The import file would start with
2907
# the line `#! .'. This would cause the generated library to
2908
# depend on `.', always an invalid library. This was fixed in
2909
# development snapshots of GCC prior to 3.0.
2911
aix4 | aix4.[[01]] | aix4.[[01]].*)
2912
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2914
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2921
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2922
# soname into executable. Probably we can add versioning support to
2923
# collect2, so additional links can be useful in future.
2924
if test "$aix_use_runtimelinking" = yes; then
2925
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2926
# instead of lib<name>.a to let people know that these are not
2927
# typical AIX shared libraries.
2928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2930
# We preserve .a as extension for shared libraries through AIX4.2
2931
# and later when we are not doing run time linking.
2932
library_names_spec='${libname}${release}.a $libname.a'
2933
soname_spec='${libname}${release}${shared_ext}$major'
2935
shlibpath_var=LIBPATH
2942
# Since July 2007 AmigaOS4 officially supports .so libraries.
2943
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2947
library_names_spec='$libname.ixlibrary $libname.a'
2948
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2949
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2955
library_names_spec='${libname}${shared_ext}'
2956
dynamic_linker="$host_os ld.so"
2957
shlibpath_var=LIBRARY_PATH
2963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2964
soname_spec='${libname}${release}${shared_ext}$major'
2965
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2966
shlibpath_var=LD_LIBRARY_PATH
2967
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2968
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2969
# the default ld.so.conf also contains /usr/contrib/lib and
2970
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2971
# libtool to hard-code these into programs
2974
cygwin* | mingw* | pw32* | cegcc*)
2975
version_type=windows
2980
case $GCC,$host_os in
2981
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2982
library_names_spec='$libname.dll.a'
2983
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2984
postinstall_cmds='base_file=`basename \${file}`~
2985
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2986
dldir=$destdir/`dirname \$dlpath`~
2987
test -d \$dldir || mkdir -p \$dldir~
2988
$install_prog $dir/$dlname \$dldir/$dlname~
2989
chmod a+x \$dldir/$dlname~
2990
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2991
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2993
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2994
dlpath=$dir/\$dldll~
2996
shlibpath_overrides_runpath=yes
3000
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3001
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3002
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3005
# MinGW DLLs use traditional 'lib' prefix
3006
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3007
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3008
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3009
# It is most probably a Windows format PATH printed by
3010
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3011
# path with ; separators, and with drive letters. We can handle the
3012
# drive letters (cygwin fileutils understands them), so leave them,
3013
# especially as we might pass files found there to a mingw objdump,
3014
# which wouldn't understand a cygwinified path. Ahh.
3015
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3017
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3021
# pw32 DLLs use 'pw' prefix rather than 'lib'
3022
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3028
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3031
dynamic_linker='Win32 ld.exe'
3032
# FIXME: first we should search . and the directory the executable is in
3036
darwin* | rhapsody*)
3037
dynamic_linker="$host_os dyld"
3041
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3042
soname_spec='${libname}${release}${major}$shared_ext'
3043
shlibpath_overrides_runpath=yes
3044
shlibpath_var=DYLD_LIBRARY_PATH
3045
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3047
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3048
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3056
soname_spec='${libname}${release}${shared_ext}$major'
3057
shlibpath_var=LD_LIBRARY_PATH
3064
freebsd* | dragonfly*)
3065
# DragonFly does not have aout. When/if they implement a new
3066
# versioning mechanism, adjust this.
3067
if test -x /usr/bin/objformat; then
3068
objformat=`/usr/bin/objformat`
3071
freebsd[[123]]*) objformat=aout ;;
3075
version_type=freebsd-$objformat
3076
case $version_type in
3078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3083
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3087
shlibpath_var=LD_LIBRARY_PATH
3090
shlibpath_overrides_runpath=yes
3092
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3093
shlibpath_overrides_runpath=yes
3094
hardcode_into_libs=yes
3096
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3097
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3098
shlibpath_overrides_runpath=no
3099
hardcode_into_libs=yes
3101
*) # from 4.6 on, and DragonFly
3102
shlibpath_overrides_runpath=yes
3103
hardcode_into_libs=yes
3112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3113
soname_spec='${libname}${release}${shared_ext}$major'
3114
shlibpath_var=LD_LIBRARY_PATH
3115
hardcode_into_libs=yes
3118
hpux9* | hpux10* | hpux11*)
3119
# Give a soname corresponding to the major version so that dld.sl refuses to
3120
# link against other versions.
3127
hardcode_into_libs=yes
3128
dynamic_linker="$host_os dld.so"
3129
shlibpath_var=LD_LIBRARY_PATH
3130
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3132
soname_spec='${libname}${release}${shared_ext}$major'
3133
if test "X$HPUX_IA64_MODE" = X32; then
3134
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3136
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3138
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3142
hardcode_into_libs=yes
3143
dynamic_linker="$host_os dld.sl"
3144
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3145
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3147
soname_spec='${libname}${release}${shared_ext}$major'
3148
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3149
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3153
dynamic_linker="$host_os dld.sl"
3154
shlibpath_var=SHLIB_PATH
3155
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3157
soname_spec='${libname}${release}${shared_ext}$major'
3160
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3161
postinstall_cmds='chmod 555 $lib'
3168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3169
soname_spec='${libname}${release}${shared_ext}$major'
3170
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3171
shlibpath_var=LD_LIBRARY_PATH
3172
shlibpath_overrides_runpath=no
3173
hardcode_into_libs=yes
3176
irix5* | irix6* | nonstopux*)
3178
nonstopux*) version_type=nonstopux ;;
3180
if test "$lt_cv_prog_gnu_ld" = yes; then
3188
soname_spec='${libname}${release}${shared_ext}$major'
3189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3191
irix5* | nonstopux*)
3195
case $LD in # libtool.m4 will add one of these switches to LD
3196
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3197
libsuff= shlibsuff= libmagic=32-bit;;
3198
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3199
libsuff=32 shlibsuff=N32 libmagic=N32;;
3200
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3201
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3202
*) libsuff= shlibsuff= libmagic=never-match;;
3206
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3207
shlibpath_overrides_runpath=no
3208
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3209
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3210
hardcode_into_libs=yes
3213
# No shared lib support for Linux oldld, aout, or coff.
3214
linux*oldld* | linux*aout* | linux*coff*)
3218
# This must be Linux ELF.
3219
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3224
soname_spec='${libname}${release}${shared_ext}$major'
3225
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3226
shlibpath_var=LD_LIBRARY_PATH
3227
shlibpath_overrides_runpath=no
3228
# Some binutils ld are patched to set DT_RUNPATH
3229
save_LDFLAGS=$LDFLAGS
3231
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3232
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3233
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3234
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3235
[shlibpath_overrides_runpath=yes])])
3236
LDFLAGS=$save_LDFLAGS
3239
# This implies no fast_install, which is unacceptable.
3240
# Some rework will be needed to allow for fast_install
3241
# before this can be enabled.
3242
hardcode_into_libs=yes
3244
# Append ld.so.conf contents to the search path
3245
if test -f /etc/ld.so.conf; then
3246
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3247
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3250
# We used to test for /lib/ld.so.1 and disable shared libraries on
3251
# powerpc, because MkLinux only supported shared libraries with the
3252
# GNU dynamic linker. Since this was broken with cross compilers,
3253
# most powerpc-linux boxes support dynamic linking these days and
3254
# people can always --disable-shared, the test was removed, and we
3255
# assume the GNU/Linux dynamic linker is in use.
3256
dynamic_linker='GNU/Linux ld.so'
3263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3264
soname_spec='${libname}${release}${shared_ext}$major'
3265
shlibpath_var=LD_LIBRARY_PATH
3266
shlibpath_overrides_runpath=no
3267
hardcode_into_libs=yes
3268
dynamic_linker='NetBSD ld.elf_so'
3275
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3277
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3278
dynamic_linker='NetBSD (a.out) ld.so'
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
dynamic_linker='NetBSD ld.elf_so'
3284
shlibpath_var=LD_LIBRARY_PATH
3285
shlibpath_overrides_runpath=yes
3286
hardcode_into_libs=yes
3291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3292
shlibpath_var=LD_LIBRARY_PATH
3293
shlibpath_overrides_runpath=yes
3300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3301
soname_spec='${libname}${release}${shared_ext}$major'
3302
shlibpath_var=LD_LIBRARY_PATH
3303
shlibpath_overrides_runpath=no
3304
hardcode_into_libs=yes
3305
dynamic_linker='ldqnx.so'
3310
sys_lib_dlsearch_path_spec="/usr/lib"
3312
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3314
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3315
*) need_version=no ;;
3317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3318
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3319
shlibpath_var=LD_LIBRARY_PATH
3320
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3322
openbsd2.[[89]] | openbsd2.[[89]].*)
3323
shlibpath_overrides_runpath=no
3326
shlibpath_overrides_runpath=yes
3330
shlibpath_overrides_runpath=yes
3335
libname_spec='$name'
3338
library_names_spec='$libname${shared_ext} $libname.a'
3339
dynamic_linker='OS/2 ld.exe'
3340
shlibpath_var=LIBPATH
3343
osf3* | osf4* | osf5*)
3347
soname_spec='${libname}${release}${shared_ext}$major'
3348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3349
shlibpath_var=LD_LIBRARY_PATH
3350
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3351
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3363
soname_spec='${libname}${release}${shared_ext}$major'
3364
shlibpath_var=LD_LIBRARY_PATH
3365
shlibpath_overrides_runpath=yes
3366
hardcode_into_libs=yes
3367
# ldd complains unless libraries are executable
3368
postinstall_cmds='chmod +x $lib'
3373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3374
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3375
shlibpath_var=LD_LIBRARY_PATH
3376
shlibpath_overrides_runpath=yes
3377
if test "$with_gnu_ld" = yes; then
3385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3386
soname_spec='${libname}${release}${shared_ext}$major'
3387
shlibpath_var=LD_LIBRARY_PATH
3388
case $host_vendor in
3390
shlibpath_overrides_runpath=no
3392
runpath_var=LD_RUN_PATH
3400
shlibpath_overrides_runpath=no
3401
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3407
if test -d /usr/nec ;then
3409
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3410
soname_spec='$libname${shared_ext}.$major'
3411
shlibpath_var=LD_LIBRARY_PATH
3415
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3416
version_type=freebsd-elf
3419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3420
soname_spec='${libname}${release}${shared_ext}$major'
3421
shlibpath_var=LD_LIBRARY_PATH
3422
shlibpath_overrides_runpath=yes
3423
hardcode_into_libs=yes
3424
if test "$with_gnu_ld" = yes; then
3425
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3427
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3430
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3434
sys_lib_dlsearch_path_spec='/usr/lib'
3438
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3443
shlibpath_var=LD_LIBRARY_PATH
3444
shlibpath_overrides_runpath=no
3445
hardcode_into_libs=yes
3450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3451
soname_spec='${libname}${release}${shared_ext}$major'
3452
shlibpath_var=LD_LIBRARY_PATH
3459
AC_MSG_RESULT([$dynamic_linker])
3460
test "$dynamic_linker" = no && can_build_shared=no
3462
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3463
if test "$GCC" = yes; then
3464
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3467
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3468
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3470
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3471
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3474
_LT_DECL([], [variables_saved_for_relink], [1],
3475
[Variables whose values should be saved in libtool wrapper scripts and
3476
restored at link time])
3477
_LT_DECL([], [need_lib_prefix], [0],
3478
[Do we need the "lib" prefix for modules?])
3479
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3480
_LT_DECL([], [version_type], [0], [Library versioning type])
3481
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3482
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3483
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3484
[Is shlibpath searched before the hard-coded library search path?])
3485
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3486
_LT_DECL([], [library_names_spec], [1],
3487
[[List of archive names. First name is the real one, the rest are links.
3488
The last name is the one that the linker finds with -lNAME]])
3489
_LT_DECL([], [soname_spec], [1],
3490
[[The coded name of the library, if different from the real name]])
3491
_LT_DECL([], [postinstall_cmds], [2],
3492
[Command to use after installation of a shared archive])
3493
_LT_DECL([], [postuninstall_cmds], [2],
3494
[Command to use after uninstallation of a shared archive])
3495
_LT_DECL([], [finish_cmds], [2],
3496
[Commands used to finish a libtool library installation in a directory])
3497
_LT_DECL([], [finish_eval], [1],
3498
[[As "finish_cmds", except a single script fragment to be evaled but
3500
_LT_DECL([], [hardcode_into_libs], [0],
3501
[Whether we should hardcode library paths into libraries])
3502
_LT_DECL([], [sys_lib_search_path_spec], [2],
3503
[Compile-time system search path for libraries])
3504
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3505
[Run-time system search path for libraries])
3506
])# _LT_SYS_DYNAMIC_LINKER
3509
# _LT_PATH_TOOL_PREFIX(TOOL)
3510
# --------------------------
3511
# find a file program which can recognize shared library
3512
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3513
[m4_require([_LT_DECL_EGREP])dnl
3514
AC_MSG_CHECKING([for $1])
3515
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3517
[[\\/*] | ?:[\\/]*])
3518
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3521
lt_save_MAGIC_CMD="$MAGIC_CMD"
3522
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3523
dnl $ac_dummy forces splitting on constant user-supplied paths.
3524
dnl POSIX.2 word splitting is done only on the output of word expansions,
3525
dnl not every word. This closes a longstanding sh security hole.
3526
ac_dummy="m4_if([$2], , $PATH, [$2])"
3527
for ac_dir in $ac_dummy; do
3529
test -z "$ac_dir" && ac_dir=.
3530
if test -f $ac_dir/$1; then
3531
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3532
if test -n "$file_magic_test_file"; then
3533
case $deplibs_check_method in
3535
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3536
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3537
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3538
$EGREP "$file_magic_regex" > /dev/null; then
3543
*** Warning: the command libtool uses to detect shared libraries,
3544
*** $file_magic_cmd, produces output that libtool cannot recognize.
3545
*** The result is that libtool may fail to recognize shared libraries
3546
*** as such. This will affect the creation of libtool libraries that
3547
*** depend on shared libraries, but programs linked with such libtool
3548
*** libraries will work regardless of this problem. Nevertheless, you
3549
*** may want to report the problem to your system manager and/or to
3550
*** bug-libtool@gnu.org
3560
MAGIC_CMD="$lt_save_MAGIC_CMD"
3563
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3564
if test -n "$MAGIC_CMD"; then
3565
AC_MSG_RESULT($MAGIC_CMD)
3569
_LT_DECL([], [MAGIC_CMD], [0],
3570
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3571
])# _LT_PATH_TOOL_PREFIX
3574
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3575
dnl aclocal-1.4 backwards compatibility:
3576
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3581
# find a file program which can recognize a shared library
3582
m4_defun([_LT_PATH_MAGIC],
3583
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3584
if test -z "$lt_cv_path_MAGIC_CMD"; then
3585
if test -n "$ac_tool_prefix"; then
3586
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3596
# find the pathname to the GNU or non-GNU linker
3597
AC_DEFUN([LT_PATH_LD],
3598
[AC_REQUIRE([AC_PROG_CC])dnl
3599
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3600
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3601
m4_require([_LT_DECL_SED])dnl
3602
m4_require([_LT_DECL_EGREP])dnl
3604
AC_ARG_WITH([gnu-ld],
3605
[AS_HELP_STRING([--with-gnu-ld],
3606
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3607
[test "$withval" = no || with_gnu_ld=yes],
3608
[with_gnu_ld=no])dnl
3611
if test "$GCC" = yes; then
3612
# Check if gcc -print-prog-name=ld gives a path.
3613
AC_MSG_CHECKING([for ld used by $CC])
3616
# gcc leaves a trailing carriage return which upsets mingw
3617
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3619
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3622
# Accept absolute paths.
3623
[[\\/]]* | ?:[[\\/]]*)
3624
re_direlt='/[[^/]][[^/]]*/\.\./'
3625
# Canonicalize the pathname of ld
3626
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3627
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3628
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3630
test -z "$LD" && LD="$ac_prog"
3633
# If it fails, then pretend we aren't using GCC.
3637
# If it is relative, then search for the first ld in PATH.
3641
elif test "$with_gnu_ld" = yes; then
3642
AC_MSG_CHECKING([for GNU ld])
3644
AC_MSG_CHECKING([for non-GNU ld])
3646
AC_CACHE_VAL(lt_cv_path_LD,
3647
[if test -z "$LD"; then
3648
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3649
for ac_dir in $PATH; do
3651
test -z "$ac_dir" && ac_dir=.
3652
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3653
lt_cv_path_LD="$ac_dir/$ac_prog"
3654
# Check to see if the program is GNU ld. I'd rather use --version,
3655
# but apparently some variants of GNU ld only accept -v.
3656
# Break only if it was the GNU/non-GNU ld that we prefer.
3657
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3658
*GNU* | *'with BFD'*)
3659
test "$with_gnu_ld" != no && break
3662
test "$with_gnu_ld" != yes && break
3669
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3672
if test -n "$LD"; then
3677
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3681
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3685
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3686
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3687
dnl aclocal-1.4 backwards compatibility:
3688
dnl AC_DEFUN([AM_PROG_LD], [])
3689
dnl AC_DEFUN([AC_PROG_LD], [])
3694
m4_defun([_LT_PATH_LD_GNU],
3695
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3696
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3697
case `$LD -v 2>&1 </dev/null` in
3698
*GNU* | *'with BFD'*)
3699
lt_cv_prog_gnu_ld=yes
3702
lt_cv_prog_gnu_ld=no
3705
with_gnu_ld=$lt_cv_prog_gnu_ld
3711
# find reload flag for linker
3712
# -- PORTME Some linkers may need a different reload flag.
3713
m4_defun([_LT_CMD_RELOAD],
3714
[AC_CACHE_CHECK([for $LD option to reload object files],
3715
lt_cv_ld_reload_flag,
3716
[lt_cv_ld_reload_flag='-r'])
3717
reload_flag=$lt_cv_ld_reload_flag
3718
case $reload_flag in
3720
*) reload_flag=" $reload_flag" ;;
3722
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3725
if test "$GCC" = yes; then
3726
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3728
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3732
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3733
_LT_DECL([], [reload_cmds], [2])dnl
3737
# _LT_CHECK_MAGIC_METHOD
3738
# ----------------------
3739
# how to check for library dependencies
3740
# -- PORTME fill in with the dynamic library characteristics
3741
m4_defun([_LT_CHECK_MAGIC_METHOD],
3742
[m4_require([_LT_DECL_EGREP])
3743
m4_require([_LT_DECL_OBJDUMP])
3744
AC_CACHE_CHECK([how to recognize dependent libraries],
3745
lt_cv_deplibs_check_method,
3746
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3747
lt_cv_file_magic_test_file=
3748
lt_cv_deplibs_check_method='unknown'
3749
# Need to set the preceding variable on all platforms that support
3750
# interlibrary dependencies.
3751
# 'none' -- dependencies not supported.
3752
# `unknown' -- same as none, but documents that we really don't know.
3753
# 'pass_all' -- all dependencies passed with no checks.
3754
# 'test_compile' -- check by making test program.
3755
# 'file_magic [[regex]]' -- check by looking for files in library path
3756
# which responds to the $file_magic_cmd with a given extended regex.
3757
# If you have `file' or equivalent on your system and you're not sure
3758
# whether `pass_all' will *always* work, you probably want this one.
3762
lt_cv_deplibs_check_method=pass_all
3766
lt_cv_deplibs_check_method=pass_all
3770
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3771
lt_cv_file_magic_cmd='/usr/bin/file -L'
3772
lt_cv_file_magic_test_file=/shlib/libc.so
3776
# func_win32_libid is a shell function defined in ltmain.sh
3777
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3778
lt_cv_file_magic_cmd='func_win32_libid'
3782
# Base MSYS/MinGW do not provide the 'file' command needed by
3783
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3784
# unless we find 'file', for example because we are cross-compiling.
3785
if ( file / ) >/dev/null 2>&1; then
3786
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3787
lt_cv_file_magic_cmd='func_win32_libid'
3789
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3790
lt_cv_file_magic_cmd='$OBJDUMP -f'
3795
# use the weaker test based on 'objdump'. See mingw*.
3796
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3797
lt_cv_file_magic_cmd='$OBJDUMP -f'
3800
darwin* | rhapsody*)
3801
lt_cv_deplibs_check_method=pass_all
3804
freebsd* | dragonfly*)
3805
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3808
# Not sure whether the presence of OpenBSD here was a mistake.
3809
# Let's accept both of them until this is cleared up.
3810
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3811
lt_cv_file_magic_cmd=/usr/bin/file
3812
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3816
lt_cv_deplibs_check_method=pass_all
3821
lt_cv_deplibs_check_method=pass_all
3824
hpux10.20* | hpux11*)
3825
lt_cv_file_magic_cmd=/usr/bin/file
3828
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3829
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3832
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3833
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3836
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3837
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3843
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3844
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3847
irix5* | irix6* | nonstopux*)
3849
*-32|*"-32 ") libmagic=32-bit;;
3850
*-n32|*"-n32 ") libmagic=N32;;
3851
*-64|*"-64 ") libmagic=64-bit;;
3852
*) libmagic=never-match;;
3854
lt_cv_deplibs_check_method=pass_all
3857
# This must be Linux ELF.
3858
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3859
lt_cv_deplibs_check_method=pass_all
3862
netbsd* | netbsdelf*-gnu)
3863
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3864
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3866
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3871
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3872
lt_cv_file_magic_cmd=/usr/bin/file
3873
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3877
lt_cv_deplibs_check_method=pass_all
3881
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3882
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3884
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3888
osf3* | osf4* | osf5*)
3889
lt_cv_deplibs_check_method=pass_all
3893
lt_cv_deplibs_check_method=pass_all
3897
lt_cv_deplibs_check_method=pass_all
3900
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3901
lt_cv_deplibs_check_method=pass_all
3905
case $host_vendor in
3907
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]]'
3908
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3911
lt_cv_deplibs_check_method=pass_all
3914
lt_cv_file_magic_cmd='/bin/file'
3915
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3918
lt_cv_file_magic_cmd='/bin/file'
3919
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3920
lt_cv_file_magic_test_file=/lib/libc.so
3923
lt_cv_deplibs_check_method=pass_all
3926
lt_cv_deplibs_check_method=pass_all
3932
lt_cv_deplibs_check_method=pass_all
3936
file_magic_cmd=$lt_cv_file_magic_cmd
3937
deplibs_check_method=$lt_cv_deplibs_check_method
3938
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3940
_LT_DECL([], [deplibs_check_method], [1],
3941
[Method to check whether dependent libraries are shared objects])
3942
_LT_DECL([], [file_magic_cmd], [1],
3943
[Command to use when deplibs_check_method == "file_magic"])
3944
])# _LT_CHECK_MAGIC_METHOD
3949
# find the pathname to a BSD- or MS-compatible name lister
3950
AC_DEFUN([LT_PATH_NM],
3951
[AC_REQUIRE([AC_PROG_CC])dnl
3952
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3953
[if test -n "$NM"; then
3954
# Let the user override the test.
3957
lt_nm_to_check="${ac_tool_prefix}nm"
3958
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3959
lt_nm_to_check="$lt_nm_to_check nm"
3961
for lt_tmp_nm in $lt_nm_to_check; do
3962
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3963
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3965
test -z "$ac_dir" && ac_dir=.
3966
tmp_nm="$ac_dir/$lt_tmp_nm"
3967
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3968
# Check to see if the nm accepts a BSD-compat flag.
3969
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3970
# nm: unknown option "B" ignored
3971
# Tru64's nm complains that /dev/null is an invalid object file
3972
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3973
*/dev/null* | *'Invalid file or object type'*)
3974
lt_cv_path_NM="$tmp_nm -B"
3978
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3980
lt_cv_path_NM="$tmp_nm -p"
3984
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3985
continue # so that we can try to find one that supports BSD flags
3994
: ${lt_cv_path_NM=no}
3996
if test "$lt_cv_path_NM" != "no"; then
3999
# Didn't find any BSD compatible name lister, look for dumpbin.
4000
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4002
if test "$DUMPBIN" != ":"; then
4006
test -z "$NM" && NM=nm
4008
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4010
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4011
[lt_cv_nm_interface="BSD nm"
4012
echo "int some_variable = 0;" > conftest.$ac_ext
4013
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4014
(eval "$ac_compile" 2>conftest.err)
4015
cat conftest.err >&AS_MESSAGE_LOG_FD
4016
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4017
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4018
cat conftest.err >&AS_MESSAGE_LOG_FD
4019
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4020
cat conftest.out >&AS_MESSAGE_LOG_FD
4021
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4022
lt_cv_nm_interface="MS dumpbin"
4028
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4029
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4030
dnl aclocal-1.4 backwards compatibility:
4031
dnl AC_DEFUN([AM_PROG_NM], [])
4032
dnl AC_DEFUN([AC_PROG_NM], [])
4037
# check for math library
4038
AC_DEFUN([LT_LIB_M],
4039
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4042
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4043
# These system don't have libm, or don't need it
4046
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4047
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4050
AC_CHECK_LIB(m, cos, LIBM="-lm")
4057
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4058
dnl aclocal-1.4 backwards compatibility:
4059
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4062
# _LT_COMPILER_NO_RTTI([TAGNAME])
4063
# -------------------------------
4064
m4_defun([_LT_COMPILER_NO_RTTI],
4065
[m4_require([_LT_TAG_COMPILER])dnl
4067
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4069
if test "$GCC" = yes; then
4070
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4072
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4073
lt_cv_prog_compiler_rtti_exceptions,
4074
[-fno-rtti -fno-exceptions], [],
4075
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4077
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4078
[Compiler flag to turn off builtin functions])
4079
])# _LT_COMPILER_NO_RTTI
4082
# _LT_CMD_GLOBAL_SYMBOLS
4083
# ----------------------
4084
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4085
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4086
AC_REQUIRE([AC_PROG_CC])dnl
4087
AC_REQUIRE([LT_PATH_NM])dnl
4088
AC_REQUIRE([LT_PATH_LD])dnl
4089
m4_require([_LT_DECL_SED])dnl
4090
m4_require([_LT_DECL_EGREP])dnl
4091
m4_require([_LT_TAG_COMPILER])dnl
4093
# Check for command to grab the raw symbol name followed by C symbol from nm.
4094
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4095
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4097
# These are sane defaults that work on at least a few old systems.
4098
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4100
# Character class describing NM global symbol codes.
4101
symcode='[[BCDEGRST]]'
4103
# Regexp to match symbols that can be accessed directly from C.
4104
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4106
# Define system-specific variables.
4111
cygwin* | mingw* | pw32* | cegcc*)
4112
symcode='[[ABCDGISTW]]'
4115
if test "$host_cpu" = ia64; then
4116
symcode='[[ABCDEGRST]]'
4120
symcode='[[BCDEGRST]]'
4123
symcode='[[BCDEGQRST]]'
4134
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4138
symcode='[[DFNSTU]]'
4142
# If we're using GNU nm, then use its standard symbol codes.
4143
case `$NM -V 2>&1` in
4144
*GNU* | *'with BFD'*)
4145
symcode='[[ABCDGIRSTW]]' ;;
4148
# Transform an extracted symbol line into a proper C declaration.
4149
# Some systems (esp. on ia64) link data and code symbols differently,
4150
# so use this general approach.
4151
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4153
# Transform an extracted symbol line into symbol name and symbol address
4154
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4155
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'"
4157
# Handle CRLF in mingw tool chain
4161
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4165
# Try without a prefix underscore, then with it.
4166
for ac_symprfx in "" "_"; do
4168
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4169
symxfrm="\\1 $ac_symprfx\\2 \\2"
4171
# Write the raw and C identifiers.
4172
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4173
# Fake it for dumpbin and say T for any non-static function
4174
# and D for any global variable.
4175
# Also find C++ and __fastcall symbols from MSVC++,
4176
# which start with @ or ?.
4177
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4178
" {last_section=section; section=\$ 3};"\
4179
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4180
" \$ 0!~/External *\|/{next};"\
4181
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4182
" {if(hide[section]) next};"\
4183
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4184
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4185
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4186
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4187
" ' prfx=^$ac_symprfx]"
4189
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4192
# Check to see that the pipe works correctly.
4196
cat > conftest.$ac_ext <<_LT_EOF
4201
void nm_test_func(void);
4202
void nm_test_func(void){}
4206
int main(){nm_test_var='a';nm_test_func();return(0);}
4209
if AC_TRY_EVAL(ac_compile); then
4210
# Now try to grab the symbols.
4212
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4213
# Try sorting and uniquifying the output.
4214
if sort "$nlist" | uniq > "$nlist"T; then
4215
mv -f "$nlist"T "$nlist"
4220
# Make sure that we snagged all the symbols we need.
4221
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4222
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4223
cat <<_LT_EOF > conftest.$ac_ext
4229
# Now generate the symbol file.
4230
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4232
cat <<_LT_EOF >> conftest.$ac_ext
4234
/* The mapping between symbol names and symbols. */
4239
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4241
{ "@PROGRAM@", (void *) 0 },
4243
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4244
cat <<\_LT_EOF >> conftest.$ac_ext
4248
/* This works around a problem in FreeBSD linker */
4249
#ifdef FREEBSD_WORKAROUND
4250
static const void *lt_preloaded_setup() {
4251
return lt__PROGRAM__LTX_preloaded_symbols;
4259
# Now try linking the two files.
4260
mv conftest.$ac_objext conftstm.$ac_objext
4261
lt_save_LIBS="$LIBS"
4262
lt_save_CFLAGS="$CFLAGS"
4263
LIBS="conftstm.$ac_objext"
4264
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4265
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4268
LIBS="$lt_save_LIBS"
4269
CFLAGS="$lt_save_CFLAGS"
4271
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4274
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4277
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4280
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4281
cat conftest.$ac_ext >&5
4283
rm -rf conftest* conftst*
4285
# Do not use the global_symbol_pipe unless it works.
4286
if test "$pipe_works" = yes; then
4289
lt_cv_sys_global_symbol_pipe=
4293
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4294
lt_cv_sys_global_symbol_to_cdecl=
4296
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4297
AC_MSG_RESULT(failed)
4302
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4303
[Take the output of nm and produce a listing of raw symbols and C names])
4304
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4305
[Transform the output of nm in a proper C declaration])
4306
_LT_DECL([global_symbol_to_c_name_address],
4307
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4308
[Transform the output of nm in a C name address pair])
4309
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4310
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4311
[Transform the output of nm in a C name address pair when lib prefix is needed])
4312
]) # _LT_CMD_GLOBAL_SYMBOLS
4315
# _LT_COMPILER_PIC([TAGNAME])
4316
# ---------------------------
4317
m4_defun([_LT_COMPILER_PIC],
4318
[m4_require([_LT_TAG_COMPILER])dnl
4319
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4320
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4321
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4323
AC_MSG_CHECKING([for $compiler option to produce PIC])
4324
m4_if([$1], [CXX], [
4325
# C++ specific cases for pic, static, wl, etc.
4326
if test "$GXX" = yes; then
4327
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4328
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4332
# All AIX code is PIC.
4333
if test "$host_cpu" = ia64; then
4334
# AIX 5 now supports IA64 processor
4335
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4342
# see comment about AmigaOS4 .so support
4343
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4346
# FIXME: we need at least 68020 code to build shared libraries, but
4347
# adding the `-m68020' flag to GCC prevents building anything better,
4349
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4354
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4355
# PIC is the default for these OSes.
4357
mingw* | cygwin* | os2* | pw32* | cegcc*)
4358
# This hack is so that the source file can tell whether it is being
4359
# built for inclusion in a dll (and should export symbols for example).
4360
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4361
# (--disable-auto-import) libraries
4362
m4_if([$1], [GCJ], [],
4363
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4365
darwin* | rhapsody*)
4366
# PIC is the default on this platform
4367
# Common symbols not allowed in MH_DYLIB files
4368
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4371
# DJGPP does not support shared libraries at all
4372
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4375
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4376
# Instead, we relocate shared libraries at runtime.
4379
if test -d /usr/nec; then
4380
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4384
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4385
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4386
# sets the default TLS model and affects inlining.
4391
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4396
# QNX uses GNU C++, but need to define -shared option too, otherwise
4398
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4401
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4407
# All AIX code is PIC.
4408
if test "$host_cpu" = ia64; then
4409
# AIX 5 now supports IA64 processor
4410
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4412
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4416
case $cc_basename in
4418
# Green Hills C++ Compiler
4419
# _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"
4424
case $cc_basename in
4426
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4429
# Green Hills C++ Compiler
4430
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4436
freebsd* | dragonfly*)
4437
# FreeBSD uses GNU C++
4439
hpux9* | hpux10* | hpux11*)
4440
case $cc_basename in
4442
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4443
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4444
if test "$host_cpu" != ia64; then
4445
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4449
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4450
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4456
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4465
# This is c89, which is MS Visual C++ (no shared libs)
4466
# Anyone wants to do a port?
4468
irix5* | irix6* | nonstopux*)
4469
case $cc_basename in
4471
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4472
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4473
# CC pic flag -KPIC is the default.
4479
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4480
case $cc_basename in
4483
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4484
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4487
# old Intel C++ for x86_64 which still supported -KPIC.
4488
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4489
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4490
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4493
# Intel C++, used to be incompatible with GCC.
4494
# ICC 10 doesn't accept -KPIC any more.
4495
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4496
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4497
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4500
# Portland Group C++ compiler
4501
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4502
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4503
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4507
# Make sure the PIC flag is empty. It appears that all Alpha
4508
# Linux and Compaq Tru64 Unix objects are PIC.
4509
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4510
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4514
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4515
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4516
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4519
case `$CC -V 2>&1 | sed 5q` in
4522
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4523
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4524
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4535
case $cc_basename in
4537
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4543
netbsd* | netbsdelf*-gnu)
4546
# QNX uses GNU C++, but need to define -shared option too, otherwise
4548
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4550
osf3* | osf4* | osf5*)
4551
case $cc_basename in
4553
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4556
# Rational C++ 2.4.1
4557
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4560
# Digital/Compaq C++
4561
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4562
# Make sure the PIC flag is empty. It appears that all Alpha
4563
# Linux and Compaq Tru64 Unix objects are PIC.
4564
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4565
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4574
case $cc_basename in
4576
# Sun C++ 4.2, 5.x and Centerline C++
4577
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4578
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4579
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4582
# Green Hills C++ Compiler
4583
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4590
case $cc_basename in
4593
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4594
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4598
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4604
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4605
case $cc_basename in
4607
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4609
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4614
case $cc_basename in
4616
# NonStop-UX NCC 3.20
4617
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4626
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4632
if test "$GCC" = yes; then
4633
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4634
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4638
# All AIX code is PIC.
4639
if test "$host_cpu" = ia64; then
4640
# AIX 5 now supports IA64 processor
4641
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4648
# see comment about AmigaOS4 .so support
4649
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4652
# FIXME: we need at least 68020 code to build shared libraries, but
4653
# adding the `-m68020' flag to GCC prevents building anything better,
4655
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4660
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4661
# PIC is the default for these OSes.
4664
mingw* | cygwin* | pw32* | os2* | cegcc*)
4665
# This hack is so that the source file can tell whether it is being
4666
# built for inclusion in a dll (and should export symbols for example).
4667
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4668
# (--disable-auto-import) libraries
4669
m4_if([$1], [GCJ], [],
4670
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4673
darwin* | rhapsody*)
4674
# PIC is the default on this platform
4675
# Common symbols not allowed in MH_DYLIB files
4676
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4680
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4681
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4682
# sets the default TLS model and affects inlining.
4688
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4694
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4695
# Instead, we relocate shared libraries at runtime.
4699
# Just because we use GCC doesn't mean we suddenly get shared libraries
4700
# on systems that don't support them.
4701
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4706
# QNX uses GNU C++, but need to define -shared option too, otherwise
4708
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4712
if test -d /usr/nec; then
4713
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4718
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4722
# PORTME Check for flag to pass linker flags through the system compiler.
4725
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4726
if test "$host_cpu" = ia64; then
4727
# AIX 5 now supports IA64 processor
4728
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4730
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4734
mingw* | cygwin* | pw32* | os2* | cegcc*)
4735
# This hack is so that the source file can tell whether it is being
4736
# built for inclusion in a dll (and should export symbols for example).
4737
m4_if([$1], [GCJ], [],
4738
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4741
hpux9* | hpux10* | hpux11*)
4742
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4750
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4753
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4754
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4757
irix5* | irix6* | nonstopux*)
4758
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4759
# PIC (with -KPIC) is the default.
4760
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4763
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4764
case $cc_basename in
4765
# old Intel for x86_64 which still supported -KPIC.
4767
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4768
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4769
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4771
# icc used to be incompatible with GCC.
4772
# ICC 10 doesn't accept -KPIC any more.
4774
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4775
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4776
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4778
# Lahey Fortran 8.1.
4780
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4781
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4782
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4784
pgcc* | pgf77* | pgf90* | pgf95*)
4785
# Portland Group compilers (*not* the Pentium gcc compiler,
4786
# which looks to be a dead project)
4787
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4788
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4789
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4792
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4793
# All Alpha code is PIC.
4794
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4797
# IBM XL C 8.0/Fortran 10.1 on PPC
4798
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4799
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4800
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4803
case `$CC -V 2>&1 | sed 5q` in
4806
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4807
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4808
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4811
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4812
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4813
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4814
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4822
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4823
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4827
# QNX uses GNU C++, but need to define -shared option too, otherwise
4829
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4832
osf3* | osf4* | osf5*)
4833
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4834
# All OSF/1 code is PIC.
4835
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4839
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4843
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4844
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4845
case $cc_basename in
4847
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4849
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4854
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4855
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4856
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4859
sysv4 | sysv4.2uw2* | sysv4.3*)
4860
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4861
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4862
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4866
if test -d /usr/nec ;then
4867
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4868
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4872
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4873
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4874
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4875
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4879
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4880
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4884
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4885
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4889
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4895
# For platforms which do not support PIC, -DPIC is meaningless:
4897
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4900
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4903
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4904
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4905
[How to pass a linker flag through the compiler])
4908
# Check to make sure the PIC flag actually works.
4910
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4911
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4912
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4913
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4914
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4916
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4918
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4919
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4921
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4922
[Additional compiler flags for building library objects])
4925
# Check to make sure the static flag actually works.
4927
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4928
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4929
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4930
$lt_tmp_static_flag,
4932
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4933
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4934
[Compiler flag to prevent dynamic linking])
4935
])# _LT_COMPILER_PIC
4938
# _LT_LINKER_SHLIBS([TAGNAME])
4939
# ----------------------------
4940
# See if the linker supports building shared libraries.
4941
m4_defun([_LT_LINKER_SHLIBS],
4942
[AC_REQUIRE([LT_PATH_LD])dnl
4943
AC_REQUIRE([LT_PATH_NM])dnl
4944
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4945
m4_require([_LT_DECL_EGREP])dnl
4946
m4_require([_LT_DECL_SED])dnl
4947
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4948
m4_require([_LT_TAG_COMPILER])dnl
4949
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4950
m4_if([$1], [CXX], [
4951
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4954
# If we're using GNU nm, then we don't want the "-C" option.
4955
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4956
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4957
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4959
_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'
4963
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4965
cygwin* | mingw* | cegcc*)
4966
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4968
linux* | k*bsd*-gnu)
4969
_LT_TAGVAR(link_all_deplibs, $1)=no
4972
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4975
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4978
_LT_TAGVAR(allow_undefined_flag, $1)=
4979
_LT_TAGVAR(always_export_symbols, $1)=no
4980
_LT_TAGVAR(archive_cmds, $1)=
4981
_LT_TAGVAR(archive_expsym_cmds, $1)=
4982
_LT_TAGVAR(compiler_needs_object, $1)=no
4983
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4984
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4985
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4986
_LT_TAGVAR(hardcode_automatic, $1)=no
4987
_LT_TAGVAR(hardcode_direct, $1)=no
4988
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4989
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4990
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4991
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4992
_LT_TAGVAR(hardcode_minus_L, $1)=no
4993
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4994
_LT_TAGVAR(inherit_rpath, $1)=no
4995
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4996
_LT_TAGVAR(module_cmds, $1)=
4997
_LT_TAGVAR(module_expsym_cmds, $1)=
4998
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4999
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5000
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5001
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5002
# include_expsyms should be a list of space-separated symbols to be *always*
5003
# included in the symbol list
5004
_LT_TAGVAR(include_expsyms, $1)=
5005
# exclude_expsyms can be an extended regexp of symbols to exclude
5006
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5007
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5008
# as well as any symbol that contains `d'.
5009
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5010
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5011
# platforms (ab)use it in PIC code, but their linkers get confused if
5012
# the symbol is explicitly referenced. Since portable code cannot
5013
# rely on this symbol name, it's probably fine to never include it in
5014
# preloaded symbol tables.
5015
# Exclude shared library initialization/finalization symbols.
5016
dnl Note also adjust exclude_expsyms for C++ above.
5017
extract_expsyms_cmds=
5020
cygwin* | mingw* | pw32* | cegcc*)
5021
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5022
# When not using gcc, we currently assume that we are using
5023
# Microsoft Visual C++.
5024
if test "$GCC" != yes; then
5029
# we just hope/assume this is gcc and not c89 (= MSVC++)
5035
linux* | k*bsd*-gnu)
5036
_LT_TAGVAR(link_all_deplibs, $1)=no
5040
_LT_TAGVAR(ld_shlibs, $1)=yes
5041
if test "$with_gnu_ld" = yes; then
5042
# If archive_cmds runs LD, not CC, wlarc should be empty
5045
# Set some defaults for GNU ld with shared library support. These
5046
# are reset later if shared libraries are not supported. Putting them
5047
# here allows them to be overridden if necessary.
5048
runpath_var=LD_RUN_PATH
5049
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5050
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5051
# ancient GNU ld didn't support --whole-archive et. al.
5052
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5053
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5055
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5057
supports_anon_versioning=no
5058
case `$LD -v 2>&1` in
5059
*GNU\ gold*) supports_anon_versioning=yes ;;
5060
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5061
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5062
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5063
*\ 2.11.*) ;; # other 2.11 versions
5064
*) supports_anon_versioning=yes ;;
5067
# See if GNU ld supports shared libraries.
5070
# On AIX/PPC, the GNU linker is very broken
5071
if test "$host_cpu" != ia64; then
5072
_LT_TAGVAR(ld_shlibs, $1)=no
5075
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5076
*** to be unable to reliably create shared libraries on AIX.
5077
*** Therefore, libtool is disabling shared libraries support. If you
5078
*** really care for shared libraries, you may want to modify your PATH
5079
*** so that a non-GNU linker is found, and then restart.
5088
# see comment about AmigaOS4 .so support
5089
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5090
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5093
_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)'
5094
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5095
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5101
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5102
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5103
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5104
# support --undefined. This deserves some investigation. FIXME
5105
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5107
_LT_TAGVAR(ld_shlibs, $1)=no
5111
cygwin* | mingw* | pw32* | cegcc*)
5112
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5113
# as there is no search path for DLLs.
5114
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5115
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5116
_LT_TAGVAR(always_export_symbols, $1)=no
5117
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5118
_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'
5120
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5121
_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'
5122
# If the export-symbols file already is a .def file (1st line
5123
# is EXPORTS), use it as is; otherwise, prepend...
5124
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5125
cp $export_symbols $output_objdir/$soname.def;
5127
echo EXPORTS > $output_objdir/$soname.def;
5128
cat $export_symbols >> $output_objdir/$soname.def;
5130
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5132
_LT_TAGVAR(ld_shlibs, $1)=no
5137
_LT_TAGVAR(hardcode_direct, $1)=no
5138
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5139
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5140
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5141
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5142
# Instead, shared libraries are loaded at an image base (0x10000000 by
5143
# default) and relocated if they conflict, which is a slow very memory
5144
# consuming and fragmenting process. To avoid this, we pick a random,
5145
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5146
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5147
_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'
5148
_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'
5151
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5153
if test "$host_os" = linux-dietlibc; then
5154
case $cc_basename in
5155
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5158
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5159
&& test "$tmp_diet" = no
5162
tmp_sharedflag='-shared'
5163
case $cc_basename,$host_cpu in
5164
pgcc*) # Portland Group C compiler
5165
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5166
tmp_addflag=' $pic_flag'
5168
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5169
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5170
tmp_addflag=' $pic_flag -Mnomain' ;;
5171
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5172
tmp_addflag=' -i_dynamic' ;;
5173
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5174
tmp_addflag=' -i_dynamic -nofor_main' ;;
5175
ifc* | ifort*) # Intel Fortran compiler
5176
tmp_addflag=' -nofor_main' ;;
5177
lf95*) # Lahey Fortran 8.1
5178
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5179
tmp_sharedflag='--shared' ;;
5180
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5181
tmp_sharedflag='-qmkshrobj'
5184
case `$CC -V 2>&1 | sed 5q` in
5185
*Sun\ C*) # Sun C 5.9
5186
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5187
_LT_TAGVAR(compiler_needs_object, $1)=yes
5188
tmp_sharedflag='-G' ;;
5189
*Sun\ F*) # Sun Fortran 8.3
5190
tmp_sharedflag='-G' ;;
5192
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5194
if test "x$supports_anon_versioning" = xyes; then
5195
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5196
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5197
echo "local: *; };" >> $output_objdir/$libname.ver~
5198
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5201
case $cc_basename in
5203
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5204
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5205
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5206
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5207
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5208
if test "x$supports_anon_versioning" = xyes; then
5209
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5210
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5211
echo "local: *; };" >> $output_objdir/$libname.ver~
5212
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5217
_LT_TAGVAR(ld_shlibs, $1)=no
5221
netbsd* | netbsdelf*-gnu)
5222
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5223
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5226
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5227
_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'
5232
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5233
_LT_TAGVAR(ld_shlibs, $1)=no
5236
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5237
*** create shared libraries on Solaris systems. Therefore, libtool
5238
*** is disabling shared libraries support. We urge you to upgrade GNU
5239
*** binutils to release 2.9.1 or newer. Another option is to modify
5240
*** your PATH or compiler configuration so that the native linker is
5241
*** used, and then restart.
5244
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5245
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5246
_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'
5248
_LT_TAGVAR(ld_shlibs, $1)=no
5252
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5253
case `$LD -v 2>&1` in
5254
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5255
_LT_TAGVAR(ld_shlibs, $1)=no
5258
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5259
*** reliably create shared libraries on SCO systems. Therefore, libtool
5260
*** is disabling shared libraries support. We urge you to upgrade GNU
5261
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5262
*** your PATH or compiler configuration so that the native linker is
5263
*** used, and then restart.
5268
# For security reasons, it is highly recommended that you always
5269
# use absolute paths for naming shared libraries, and exclude the
5270
# DT_RUNPATH tag from executables and libraries. But doing so
5271
# requires that you compile everything twice, which is a pain.
5272
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5273
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5274
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5275
_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'
5277
_LT_TAGVAR(ld_shlibs, $1)=no
5284
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5286
_LT_TAGVAR(hardcode_direct, $1)=yes
5287
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5291
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5292
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5293
_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'
5295
_LT_TAGVAR(ld_shlibs, $1)=no
5300
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5302
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5303
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5304
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5307
# PORTME fill in a description of your system's linker (not GNU ld)
5310
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5311
_LT_TAGVAR(always_export_symbols, $1)=yes
5312
_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'
5313
# Note: this linker hardcodes the directories in LIBPATH if there
5314
# are no directories specified by -L.
5315
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5316
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5317
# Neither direct hardcoding nor static linking is supported with a
5319
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5324
if test "$host_cpu" = ia64; then
5325
# On IA64, the linker does run time linking by default, so we don't
5326
# have to do anything special.
5327
aix_use_runtimelinking=no
5328
exp_sym_flag='-Bexport'
5331
# If we're using GNU nm, then we don't want the "-C" option.
5332
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5333
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5334
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5336
_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'
5338
aix_use_runtimelinking=no
5340
# Test if we are trying to use run time linking or normal
5341
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5342
# need to do runtime linking.
5343
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5344
for ld_flag in $LDFLAGS; do
5345
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5346
aix_use_runtimelinking=yes
5353
exp_sym_flag='-bexport'
5354
no_entry_flag='-bnoentry'
5357
# When large executables or shared objects are built, AIX ld can
5358
# have problems creating the table of contents. If linking a library
5359
# or program results in "error TOC overflow" add -mminimal-toc to
5360
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5361
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5363
_LT_TAGVAR(archive_cmds, $1)=''
5364
_LT_TAGVAR(hardcode_direct, $1)=yes
5365
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5366
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5367
_LT_TAGVAR(link_all_deplibs, $1)=yes
5368
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5370
if test "$GCC" = yes; then
5371
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5372
# We only want to do this on AIX 4.2 and lower, the check
5373
# below for broken collect2 doesn't work under 4.3+
5374
collect2name=`${CC} -print-prog-name=collect2`
5375
if test -f "$collect2name" &&
5376
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5378
# We have reworked collect2
5381
# We have old collect2
5382
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5383
# It fails to find uninstalled libraries when the uninstalled
5384
# path is not listed in the libpath. Setting hardcode_minus_L
5385
# to unsupported forces relinking
5386
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5387
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5388
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5392
shared_flag='-shared'
5393
if test "$aix_use_runtimelinking" = yes; then
5394
shared_flag="$shared_flag "'${wl}-G'
5396
_LT_TAGVAR(link_all_deplibs, $1)=no
5399
if test "$host_cpu" = ia64; then
5400
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5401
# chokes on -Wl,-G. The following line is correct:
5404
if test "$aix_use_runtimelinking" = yes; then
5405
shared_flag='${wl}-G'
5407
shared_flag='${wl}-bM:SRE'
5412
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5413
# It seems that -bexpall does not export symbols beginning with
5414
# underscore (_), so it is better to generate a list of symbols to export.
5415
_LT_TAGVAR(always_export_symbols, $1)=yes
5416
if test "$aix_use_runtimelinking" = yes; then
5417
# Warning - without using the other runtime loading flags (-brtl),
5418
# -berok will link without error, but may produce a broken library.
5419
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5420
# Determine the default libpath from the value encoded in an
5422
_LT_SYS_MODULE_PATH_AIX
5423
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5424
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5426
if test "$host_cpu" = ia64; then
5427
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5428
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5429
_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"
5431
# Determine the default libpath from the value encoded in an
5433
_LT_SYS_MODULE_PATH_AIX
5434
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5435
# Warning - without using the other run time loading flags,
5436
# -berok will link without error, but may produce a broken library.
5437
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5438
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5439
# Exported symbols can be pulled into shared objects from archives
5440
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5441
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5442
# This is similar to how AIX traditionally builds its shared libraries.
5443
_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'
5451
# see comment about AmigaOS4 .so support
5452
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5453
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5456
_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)'
5457
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5458
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5464
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5467
cygwin* | mingw* | pw32* | cegcc*)
5468
# When not using gcc, we currently assume that we are using
5469
# Microsoft Visual C++.
5470
# hardcode_libdir_flag_spec is actually meaningless, as there is
5471
# no search path for DLLs.
5472
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5473
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5474
# Tell ltmain to make .lib files, not .a files.
5476
# Tell ltmain to make .dll files, not .so files.
5478
# FIXME: Setting linknames here is a bad hack.
5479
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5480
# The linker will automatically build a .lib file if we build a DLL.
5481
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5482
# FIXME: Should let the user specify the lib program.
5483
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5484
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5485
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5488
darwin* | rhapsody*)
5489
_LT_DARWIN_LINKER_FEATURES($1)
5493
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5494
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5495
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5499
_LT_TAGVAR(ld_shlibs, $1)=no
5502
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5503
# support. Future versions do this automatically, but an explicit c++rt0.o
5504
# does not break anything, and helps significantly (at the cost of a little
5507
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5508
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5509
_LT_TAGVAR(hardcode_direct, $1)=yes
5510
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5513
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5515
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5516
_LT_TAGVAR(hardcode_direct, $1)=yes
5517
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5518
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5521
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5522
freebsd* | dragonfly*)
5523
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5524
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5525
_LT_TAGVAR(hardcode_direct, $1)=yes
5526
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5530
if test "$GCC" = yes; then
5531
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5533
_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'
5535
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5536
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5537
_LT_TAGVAR(hardcode_direct, $1)=yes
5539
# hardcode_minus_L: Not really in the search PATH,
5540
# but as the default location of the library.
5541
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5542
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5546
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5547
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5549
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5551
if test "$with_gnu_ld" = no; then
5552
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5553
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5554
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5555
_LT_TAGVAR(hardcode_direct, $1)=yes
5556
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5557
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5558
# hardcode_minus_L: Not really in the search PATH,
5559
# but as the default location of the library.
5560
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5565
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5568
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5571
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5574
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5580
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5583
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5586
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5590
if test "$with_gnu_ld" = no; then
5591
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5592
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5596
_LT_TAGVAR(hardcode_direct, $1)=no
5597
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5600
_LT_TAGVAR(hardcode_direct, $1)=yes
5601
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5602
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5604
# hardcode_minus_L: Not really in the search PATH,
5605
# but as the default location of the library.
5606
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5612
irix5* | irix6* | nonstopux*)
5613
if test "$GCC" = yes; then
5614
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5615
# Try to use the -exported_symbol ld option, if it does not
5616
# work, assume that -exports_file does not work either and
5617
# implicitly export all symbols.
5618
save_LDFLAGS="$LDFLAGS"
5619
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5620
AC_LINK_IFELSE(int foo(void) {},
5621
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5623
LDFLAGS="$save_LDFLAGS"
5625
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5626
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5628
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5629
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5630
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5631
_LT_TAGVAR(inherit_rpath, $1)=yes
5632
_LT_TAGVAR(link_all_deplibs, $1)=yes
5635
netbsd* | netbsdelf*-gnu)
5636
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5637
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5639
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5641
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5642
_LT_TAGVAR(hardcode_direct, $1)=yes
5643
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5647
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5648
_LT_TAGVAR(hardcode_direct, $1)=yes
5649
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5650
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5651
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5658
if test -f /usr/libexec/ld.so; then
5659
_LT_TAGVAR(hardcode_direct, $1)=yes
5660
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5661
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5662
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5663
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5664
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5665
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5666
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5669
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5670
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5671
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5674
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5675
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5680
_LT_TAGVAR(ld_shlibs, $1)=no
5685
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5686
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5687
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5688
_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'
5689
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5693
if test "$GCC" = yes; then
5694
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5695
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5697
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5698
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5700
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5701
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5702
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5705
osf4* | osf5*) # as osf3* with the addition of -msym flag
5706
if test "$GCC" = yes; then
5707
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5708
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5709
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5711
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5712
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5713
_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~
5714
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5716
# Both c and cxx compiler support -rpath directly
5717
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5719
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5720
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5724
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5725
if test "$GCC" = yes; then
5727
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5728
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5729
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5731
case `$CC -V 2>&1` in
5734
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5735
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5736
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5740
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5741
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5742
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5746
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5747
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5749
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5751
# The compiler driver will combine and reorder linker options,
5752
# but understands `-z linker_flag'. GCC discards it without `$wl',
5753
# but is careful enough not to reorder.
5754
# Supported since Solaris 2.6 (maybe 2.5.1?)
5755
if test "$GCC" = yes; then
5756
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5758
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5762
_LT_TAGVAR(link_all_deplibs, $1)=yes
5766
if test "x$host_vendor" = xsequent; then
5767
# Use $CC to link under sequent, because it throws in some extra .o
5768
# files that make .init and .fini sections work.
5769
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5771
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5773
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5774
_LT_TAGVAR(hardcode_direct, $1)=yes
5775
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5776
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5780
case $host_vendor in
5782
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5783
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5786
## LD is ld it makes a PLAMLIB
5787
## CC just makes a GrossModule.
5788
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5789
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5790
_LT_TAGVAR(hardcode_direct, $1)=no
5793
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5794
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5797
runpath_var='LD_RUN_PATH'
5798
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5802
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5803
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5804
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5808
if test -d /usr/nec; then
5809
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5810
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5811
runpath_var=LD_RUN_PATH
5812
hardcode_runpath_var=yes
5813
_LT_TAGVAR(ld_shlibs, $1)=yes
5817
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5818
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5819
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5820
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5821
runpath_var='LD_RUN_PATH'
5823
if test "$GCC" = yes; then
5824
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5825
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5827
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5828
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5832
sysv5* | sco3.2v5* | sco5v6*)
5833
# Note: We can NOT use -z defs as we might desire, because we do not
5834
# link with -lc, and that would cause any symbols used from libc to
5835
# always be unresolved, which means just about no library would
5836
# ever link correctly. If we're not using GNU ld we use -z text
5837
# though, which does catch some bad symbols but isn't as heavy-handed
5839
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5840
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5841
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5842
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5843
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5844
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5845
_LT_TAGVAR(link_all_deplibs, $1)=yes
5846
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5847
runpath_var='LD_RUN_PATH'
5849
if test "$GCC" = yes; then
5850
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5851
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5853
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5854
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5859
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5860
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5861
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5865
_LT_TAGVAR(ld_shlibs, $1)=no
5869
if test x$host_vendor = xsni; then
5871
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5872
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5878
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5879
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5881
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5883
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5884
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5885
_LT_DECL([], [extract_expsyms_cmds], [2],
5886
[The commands to extract the exported symbol list from a shared archive])
5889
# Do we need to explicitly link libc?
5891
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5893
# Assume -lc should be added
5894
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5896
if test "$enable_shared" = yes && test "$GCC" = yes; then
5897
case $_LT_TAGVAR(archive_cmds, $1) in
5899
# FIXME: we may have to deal with multi-command sequences.
5902
# Test whether the compiler implicitly links with -lc since on some
5903
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5904
# to ld, don't add -lc before -lgcc.
5905
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5907
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5909
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5912
libobjs=conftest.$ac_objext
5914
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5915
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5921
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5922
_LT_TAGVAR(allow_undefined_flag, $1)=
5923
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5925
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5927
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5929
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5931
cat conftest.err 1>&5
5934
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5941
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5942
[Whether or not to add -lc for building shared libraries])
5943
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5944
[enable_shared_with_static_runtimes], [0],
5945
[Whether or not to disallow shared libs when runtime libs are static])
5946
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5947
[Compiler flag to allow reflexive dlopens])
5948
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5949
[Compiler flag to generate shared objects directly from archives])
5950
_LT_TAGDECL([], [compiler_needs_object], [1],
5951
[Whether the compiler copes with passing no objects directly])
5952
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5953
[Create an old-style archive from a shared archive])
5954
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5955
[Create a temporary old-style archive to link instead of a shared archive])
5956
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5957
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5958
_LT_TAGDECL([], [module_cmds], [2],
5959
[Commands used to build a loadable module if different from building
5961
_LT_TAGDECL([], [module_expsym_cmds], [2])
5962
_LT_TAGDECL([], [with_gnu_ld], [1],
5963
[Whether we are building with GNU ld or not])
5964
_LT_TAGDECL([], [allow_undefined_flag], [1],
5965
[Flag that allows shared libraries with undefined symbols to be built])
5966
_LT_TAGDECL([], [no_undefined_flag], [1],
5967
[Flag that enforces no undefined symbols])
5968
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5969
[Flag to hardcode $libdir into a binary during linking.
5970
This must work even if $libdir does not exist])
5971
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5972
[[If ld is used when linking, flag to hardcode $libdir into a binary
5973
during linking. This must work even if $libdir does not exist]])
5974
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5975
[Whether we need a single "-rpath" flag with a separated argument])
5976
_LT_TAGDECL([], [hardcode_direct], [0],
5977
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5978
DIR into the resulting binary])
5979
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5980
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5981
DIR into the resulting binary and the resulting library dependency is
5982
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5983
library is relocated])
5984
_LT_TAGDECL([], [hardcode_minus_L], [0],
5985
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5986
into the resulting binary])
5987
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5988
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5989
into the resulting binary])
5990
_LT_TAGDECL([], [hardcode_automatic], [0],
5991
[Set to "yes" if building a shared library automatically hardcodes DIR
5992
into the library and all subsequent libraries and executables linked
5994
_LT_TAGDECL([], [inherit_rpath], [0],
5995
[Set to yes if linker adds runtime paths of dependent libraries
5996
to runtime path list])
5997
_LT_TAGDECL([], [link_all_deplibs], [0],
5998
[Whether libtool must link a program against all its dependency libraries])
5999
_LT_TAGDECL([], [fix_srcfile_path], [1],
6000
[Fix the shell variable $srcfile for the compiler])
6001
_LT_TAGDECL([], [always_export_symbols], [0],
6002
[Set to "yes" if exported symbols are required])
6003
_LT_TAGDECL([], [export_symbols_cmds], [2],
6004
[The commands to list exported symbols])
6005
_LT_TAGDECL([], [exclude_expsyms], [1],
6006
[Symbols that should not be listed in the preloaded symbols])
6007
_LT_TAGDECL([], [include_expsyms], [1],
6008
[Symbols that must always be exported])
6009
_LT_TAGDECL([], [prelink_cmds], [2],
6010
[Commands necessary for linking programs (against libraries) with templates])
6011
_LT_TAGDECL([], [file_list_spec], [1],
6012
[Specify filename containing input files])
6013
dnl FIXME: Not yet implemented
6014
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6015
dnl [Compiler flag to generate thread safe objects])
6016
])# _LT_LINKER_SHLIBS
6019
# _LT_LANG_C_CONFIG([TAG])
6020
# ------------------------
6021
# Ensure that the configuration variables for a C compiler are suitably
6022
# defined. These variables are subsequently used by _LT_CONFIG to write
6023
# the compiler configuration to `libtool'.
6024
m4_defun([_LT_LANG_C_CONFIG],
6025
[m4_require([_LT_DECL_EGREP])dnl
6029
# Source file extension for C test sources.
6032
# Object file extension for compiled C test sources.
6034
_LT_TAGVAR(objext, $1)=$objext
6036
# Code to be used in simple compile tests
6037
lt_simple_compile_test_code="int some_variable = 0;"
6039
# Code to be used in simple link tests
6040
lt_simple_link_test_code='int main(){return(0);}'
6043
# Save the default compiler, since it gets overwritten when the other
6044
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6045
compiler_DEFAULT=$CC
6047
# save warnings/boilerplate of simple test code
6048
_LT_COMPILER_BOILERPLATE
6049
_LT_LINKER_BOILERPLATE
6051
if test -n "$compiler"; then
6052
_LT_COMPILER_NO_RTTI($1)
6053
_LT_COMPILER_PIC($1)
6054
_LT_COMPILER_C_O($1)
6055
_LT_COMPILER_FILE_LOCKS($1)
6056
_LT_LINKER_SHLIBS($1)
6057
_LT_SYS_DYNAMIC_LINKER($1)
6058
_LT_LINKER_HARDCODE_LIBPATH($1)
6062
# Report which library types will actually be built
6063
AC_MSG_CHECKING([if libtool supports shared libraries])
6064
AC_MSG_RESULT([$can_build_shared])
6066
AC_MSG_CHECKING([whether to build shared libraries])
6067
test "$can_build_shared" = "no" && enable_shared=no
6069
# On AIX, shared libraries and static libraries use the same namespace, and
6070
# are all built from PIC.
6073
test "$enable_shared" = yes && enable_static=no
6074
if test -n "$RANLIB"; then
6075
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6076
postinstall_cmds='$RANLIB $lib'
6081
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6082
test "$enable_shared" = yes && enable_static=no
6086
AC_MSG_RESULT([$enable_shared])
6088
AC_MSG_CHECKING([whether to build static libraries])
6089
# Make sure either enable_shared or enable_static is yes.
6090
test "$enable_shared" = yes || enable_static=yes
6091
AC_MSG_RESULT([$enable_static])
6097
])# _LT_LANG_C_CONFIG
6102
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6103
# compiler, we have our own version here.
6104
m4_defun([_LT_PROG_CXX],
6106
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6108
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6109
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6110
(test "X$CXX" != "Xg++"))) ; then
6113
_lt_caught_CXX_error=yes
6115
popdef([AC_MSG_ERROR])
6118
dnl aclocal-1.4 backwards compatibility:
6119
dnl AC_DEFUN([_LT_PROG_CXX], [])
6122
# _LT_LANG_CXX_CONFIG([TAG])
6123
# --------------------------
6124
# Ensure that the configuration variables for a C++ compiler are suitably
6125
# defined. These variables are subsequently used by _LT_CONFIG to write
6126
# the compiler configuration to `libtool'.
6127
m4_defun([_LT_LANG_CXX_CONFIG],
6128
[AC_REQUIRE([_LT_PROG_CXX])dnl
6129
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6130
m4_require([_LT_DECL_EGREP])dnl
6133
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6134
_LT_TAGVAR(allow_undefined_flag, $1)=
6135
_LT_TAGVAR(always_export_symbols, $1)=no
6136
_LT_TAGVAR(archive_expsym_cmds, $1)=
6137
_LT_TAGVAR(compiler_needs_object, $1)=no
6138
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6139
_LT_TAGVAR(hardcode_direct, $1)=no
6140
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6141
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6142
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6143
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6144
_LT_TAGVAR(hardcode_minus_L, $1)=no
6145
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6146
_LT_TAGVAR(hardcode_automatic, $1)=no
6147
_LT_TAGVAR(inherit_rpath, $1)=no
6148
_LT_TAGVAR(module_cmds, $1)=
6149
_LT_TAGVAR(module_expsym_cmds, $1)=
6150
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6151
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6152
_LT_TAGVAR(no_undefined_flag, $1)=
6153
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6154
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6156
# Source file extension for C++ test sources.
6159
# Object file extension for compiled C++ test sources.
6161
_LT_TAGVAR(objext, $1)=$objext
6163
# No sense in running all these tests if we already determined that
6164
# the CXX compiler isn't working. Some variables (like enable_shared)
6165
# are currently assumed to apply to all compilers on this platform,
6166
# and will be corrupted by setting them based on a non-working compiler.
6167
if test "$_lt_caught_CXX_error" != yes; then
6168
# Code to be used in simple compile tests
6169
lt_simple_compile_test_code="int some_variable = 0;"
6171
# Code to be used in simple link tests
6172
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6174
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6177
# save warnings/boilerplate of simple test code
6178
_LT_COMPILER_BOILERPLATE
6179
_LT_LINKER_BOILERPLATE
6181
# Allow CC to be a program name with arguments.
6186
lt_save_with_gnu_ld=$with_gnu_ld
6187
lt_save_path_LD=$lt_cv_path_LD
6188
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6189
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6191
$as_unset lt_cv_prog_gnu_ld
6193
if test -n "${lt_cv_path_LDCXX+set}"; then
6194
lt_cv_path_LD=$lt_cv_path_LDCXX
6196
$as_unset lt_cv_path_LD
6198
test -z "${LDCXX+set}" || LD=$LDCXX
6201
_LT_TAGVAR(compiler, $1)=$CC
6202
_LT_CC_BASENAME([$compiler])
6204
if test -n "$compiler"; then
6205
# We don't want -fno-exception when compiling C++ code, so set the
6206
# no_builtin_flag separately
6207
if test "$GXX" = yes; then
6208
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6210
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6213
if test "$GXX" = yes; then
6214
# Set up default GNU C++ configuration
6218
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6219
# archiving commands below assume that GNU ld is being used.
6220
if test "$with_gnu_ld" = yes; then
6221
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6222
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6224
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6225
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6227
# If archive_cmds runs LD, not CC, wlarc should be empty
6228
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6229
# investigate it a little bit more. (MM)
6232
# ancient GNU ld didn't support --whole-archive et. al.
6233
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6234
$GREP 'no-whole-archive' > /dev/null; then
6235
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6237
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6243
# A generic and very simple default shared library creation
6244
# command for GNU C++ for the case where it uses the native
6245
# linker, instead of GNU ld. If possible, this setting should
6246
# overridden to take advantage of the native linker features on
6247
# the platform it is being used on.
6248
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6251
# Commands to make compiler produce verbose output that lists
6252
# what "hidden" libraries, object files and flags are used when
6253
# linking a shared library.
6254
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6262
# PORTME: fill in a description of your system's C++ link characteristics
6263
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6264
_LT_TAGVAR(ld_shlibs, $1)=yes
6267
# FIXME: insert proper C++ library support
6268
_LT_TAGVAR(ld_shlibs, $1)=no
6271
if test "$host_cpu" = ia64; then
6272
# On IA64, the linker does run time linking by default, so we don't
6273
# have to do anything special.
6274
aix_use_runtimelinking=no
6275
exp_sym_flag='-Bexport'
6278
aix_use_runtimelinking=no
6280
# Test if we are trying to use run time linking or normal
6281
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6282
# need to do runtime linking.
6283
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6284
for ld_flag in $LDFLAGS; do
6287
aix_use_runtimelinking=yes
6295
exp_sym_flag='-bexport'
6296
no_entry_flag='-bnoentry'
6299
# When large executables or shared objects are built, AIX ld can
6300
# have problems creating the table of contents. If linking a library
6301
# or program results in "error TOC overflow" add -mminimal-toc to
6302
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6303
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6305
_LT_TAGVAR(archive_cmds, $1)=''
6306
_LT_TAGVAR(hardcode_direct, $1)=yes
6307
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6308
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6309
_LT_TAGVAR(link_all_deplibs, $1)=yes
6310
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6312
if test "$GXX" = yes; then
6313
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6314
# We only want to do this on AIX 4.2 and lower, the check
6315
# below for broken collect2 doesn't work under 4.3+
6316
collect2name=`${CC} -print-prog-name=collect2`
6317
if test -f "$collect2name" &&
6318
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6320
# We have reworked collect2
6323
# We have old collect2
6324
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6325
# It fails to find uninstalled libraries when the uninstalled
6326
# path is not listed in the libpath. Setting hardcode_minus_L
6327
# to unsupported forces relinking
6328
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6329
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6330
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6333
shared_flag='-shared'
6334
if test "$aix_use_runtimelinking" = yes; then
6335
shared_flag="$shared_flag "'${wl}-G'
6339
if test "$host_cpu" = ia64; then
6340
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6341
# chokes on -Wl,-G. The following line is correct:
6344
if test "$aix_use_runtimelinking" = yes; then
6345
shared_flag='${wl}-G'
6347
shared_flag='${wl}-bM:SRE'
6352
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6353
# It seems that -bexpall does not export symbols beginning with
6354
# underscore (_), so it is better to generate a list of symbols to
6356
_LT_TAGVAR(always_export_symbols, $1)=yes
6357
if test "$aix_use_runtimelinking" = yes; then
6358
# Warning - without using the other runtime loading flags (-brtl),
6359
# -berok will link without error, but may produce a broken library.
6360
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6361
# Determine the default libpath from the value encoded in an empty
6363
_LT_SYS_MODULE_PATH_AIX
6364
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6366
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6368
if test "$host_cpu" = ia64; then
6369
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6370
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6371
_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"
6373
# Determine the default libpath from the value encoded in an
6375
_LT_SYS_MODULE_PATH_AIX
6376
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6377
# Warning - without using the other run time loading flags,
6378
# -berok will link without error, but may produce a broken library.
6379
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6380
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6381
# Exported symbols can be pulled into shared objects from archives
6382
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6383
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6384
# This is similar to how AIX traditionally builds its shared
6386
_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'
6392
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6393
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6394
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6395
# support --undefined. This deserves some investigation. FIXME
6396
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6398
_LT_TAGVAR(ld_shlibs, $1)=no
6403
case $cc_basename in
6405
# FIXME: insert proper C++ library support
6406
_LT_TAGVAR(ld_shlibs, $1)=no
6411
cygwin* | mingw* | pw32* | cegcc*)
6412
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6413
# as there is no search path for DLLs.
6414
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6415
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6416
_LT_TAGVAR(always_export_symbols, $1)=no
6417
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6419
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6420
_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'
6421
# If the export-symbols file already is a .def file (1st line
6422
# is EXPORTS), use it as is; otherwise, prepend...
6423
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6424
cp $export_symbols $output_objdir/$soname.def;
6426
echo EXPORTS > $output_objdir/$soname.def;
6427
cat $export_symbols >> $output_objdir/$soname.def;
6429
$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'
6431
_LT_TAGVAR(ld_shlibs, $1)=no
6434
darwin* | rhapsody*)
6435
_LT_DARWIN_LINKER_FEATURES($1)
6439
case $cc_basename in
6441
# FIXME: insert proper C++ library support
6442
_LT_TAGVAR(ld_shlibs, $1)=no
6445
# Green Hills C++ Compiler
6446
# FIXME: insert proper C++ library support
6447
_LT_TAGVAR(ld_shlibs, $1)=no
6450
# FIXME: insert proper C++ library support
6451
_LT_TAGVAR(ld_shlibs, $1)=no
6457
# C++ shared libraries reported to be fairly broken before
6459
_LT_TAGVAR(ld_shlibs, $1)=no
6463
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6466
freebsd* | dragonfly*)
6467
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6469
_LT_TAGVAR(ld_shlibs, $1)=yes
6476
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6477
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6478
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6479
_LT_TAGVAR(hardcode_direct, $1)=yes
6480
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6481
# but as the default
6482
# location of the library.
6484
case $cc_basename in
6486
# FIXME: insert proper C++ library support
6487
_LT_TAGVAR(ld_shlibs, $1)=no
6490
_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'
6491
# Commands to make compiler produce verbose output that lists
6492
# what "hidden" libraries, object files and flags are used when
6493
# linking a shared library.
6495
# There doesn't appear to be a way to prevent this compiler from
6496
# explicitly linking system object files so we need to strip them
6497
# from the output so that they don't get included in the library
6499
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6502
if test "$GXX" = yes; then
6503
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6505
# FIXME: insert proper C++ library support
6506
_LT_TAGVAR(ld_shlibs, $1)=no
6513
if test $with_gnu_ld = no; then
6514
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6515
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6521
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6527
_LT_TAGVAR(hardcode_direct, $1)=no
6528
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6531
_LT_TAGVAR(hardcode_direct, $1)=yes
6532
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6533
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6534
# but as the default
6535
# location of the library.
6539
case $cc_basename in
6541
# FIXME: insert proper C++ library support
6542
_LT_TAGVAR(ld_shlibs, $1)=no
6547
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6550
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6553
_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'
6556
# Commands to make compiler produce verbose output that lists
6557
# what "hidden" libraries, object files and flags are used when
6558
# linking a shared library.
6560
# There doesn't appear to be a way to prevent this compiler from
6561
# explicitly linking system object files so we need to strip them
6562
# from the output so that they don't get included in the library
6564
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6567
if test "$GXX" = yes; then
6568
if test $with_gnu_ld = no; then
6571
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6574
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6577
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6582
# FIXME: insert proper C++ library support
6583
_LT_TAGVAR(ld_shlibs, $1)=no
6590
_LT_TAGVAR(hardcode_direct, $1)=no
6591
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6592
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6593
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6595
# Instead, shared libraries are loaded at an image base (0x10000000 by
6596
# default) and relocated if they conflict, which is a slow very memory
6597
# consuming and fragmenting process. To avoid this, we pick a random,
6598
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6599
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6600
_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'
6601
_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'
6604
case $cc_basename in
6607
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6609
# Archives containing C++ object files must be created using
6610
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6611
# necessary to make sure instantiated templates are included
6613
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6616
if test "$GXX" = yes; then
6617
if test "$with_gnu_ld" = no; then
6618
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6620
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6623
_LT_TAGVAR(link_all_deplibs, $1)=yes
6626
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6627
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6628
_LT_TAGVAR(inherit_rpath, $1)=yes
6631
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6632
case $cc_basename in
6634
# Kuck and Associates, Inc. (KAI) C++ Compiler
6636
# KCC will only create a shared library if the output file
6637
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6638
# to its proper name (with version) after linking.
6639
_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'
6640
_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'
6641
# Commands to make compiler produce verbose output that lists
6642
# what "hidden" libraries, object files and flags are used when
6643
# linking a shared library.
6645
# There doesn't appear to be a way to prevent this compiler from
6646
# explicitly linking system object files so we need to strip them
6647
# from the output so that they don't get included in the library
6649
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6651
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6652
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6654
# Archives containing C++ object files must be created using
6655
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6656
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6661
# version 8.0 and above of icpc choke on multiply defined symbols
6662
# if we add $predep_objects and $postdep_objects, however 7.1 and
6663
# earlier do not add the objects themselves.
6664
case `$CC -V 2>&1` in
6666
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6667
_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'
6669
*) # Version 8.0 or newer
6672
ia64*) tmp_idyn=' -i_dynamic';;
6674
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6675
_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'
6678
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6679
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6680
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6681
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6684
# Portland Group C++ compiler
6686
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6687
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6689
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6690
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6691
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6693
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6694
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6696
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6698
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6699
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6700
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6702
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6703
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6705
*) # Version 6 will use weak symbols
6706
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6707
_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'
6711
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6712
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6713
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6717
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718
_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'
6720
runpath_var=LD_RUN_PATH
6721
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6722
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6724
# Commands to make compiler produce verbose output that lists
6725
# what "hidden" libraries, object files and flags are used when
6726
# linking a shared library.
6728
# There doesn't appear to be a way to prevent this compiler from
6729
# explicitly linking system object files so we need to strip them
6730
# from the output so that they don't get included in the library
6732
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6735
# IBM XL 8.0 on PPC, with GNU ld
6736
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6737
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6738
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6739
if test "x$supports_anon_versioning" = xyes; then
6740
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6741
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6742
echo "local: *; };" >> $output_objdir/$libname.ver~
6743
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6747
case `$CC -V 2>&1 | sed 5q` in
6750
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6751
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6752
_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'
6753
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6754
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6755
_LT_TAGVAR(compiler_needs_object, $1)=yes
6757
# Not sure whether something based on
6758
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6760
output_verbose_link_cmd='echo'
6762
# Archives containing C++ object files must be created using
6763
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6764
# necessary to make sure instantiated templates are included
6766
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6774
# FIXME: insert proper C++ library support
6775
_LT_TAGVAR(ld_shlibs, $1)=no
6779
# FIXME: insert proper C++ library support
6780
_LT_TAGVAR(ld_shlibs, $1)=no
6784
case $cc_basename in
6786
# FIXME: insert proper C++ library support
6787
_LT_TAGVAR(ld_shlibs, $1)=no
6790
# FIXME: insert proper C++ library support
6791
_LT_TAGVAR(ld_shlibs, $1)=no
6797
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6798
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6800
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6801
_LT_TAGVAR(hardcode_direct, $1)=yes
6802
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6804
# Workaround some broken pre-1.5 toolchains
6805
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6809
_LT_TAGVAR(ld_shlibs, $1)=yes
6813
# C++ shared libraries are fairly broken
6814
_LT_TAGVAR(ld_shlibs, $1)=no
6818
if test -f /usr/libexec/ld.so; then
6819
_LT_TAGVAR(hardcode_direct, $1)=yes
6820
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6821
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6822
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6823
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6824
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6825
_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'
6826
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6827
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6829
output_verbose_link_cmd=echo
6831
_LT_TAGVAR(ld_shlibs, $1)=no
6835
osf3* | osf4* | osf5*)
6836
case $cc_basename in
6838
# Kuck and Associates, Inc. (KAI) C++ Compiler
6840
# KCC will only create a shared library if the output file
6841
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6842
# to its proper name (with version) after linking.
6843
_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'
6845
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6846
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6848
# Archives containing C++ object files must be created using
6849
# the KAI C++ compiler.
6851
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6852
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6856
# Rational C++ 2.4.1
6857
# FIXME: insert proper C++ library support
6858
_LT_TAGVAR(ld_shlibs, $1)=no
6863
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6864
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6865
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6868
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6869
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6870
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6871
echo "-hidden">> $lib.exp~
6872
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6874
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6878
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6880
# Commands to make compiler produce verbose output that lists
6881
# what "hidden" libraries, object files and flags are used when
6882
# linking a shared library.
6884
# There doesn't appear to be a way to prevent this compiler from
6885
# explicitly linking system object files so we need to strip them
6886
# from the output so that they don't get included in the library
6888
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6891
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6892
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6895
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6898
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6902
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6903
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6905
# Commands to make compiler produce verbose output that lists
6906
# what "hidden" libraries, object files and flags are used when
6907
# linking a shared library.
6908
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6911
# FIXME: insert proper C++ library support
6912
_LT_TAGVAR(ld_shlibs, $1)=no
6919
# FIXME: insert proper C++ library support
6920
_LT_TAGVAR(ld_shlibs, $1)=no
6924
case $cc_basename in
6927
# FIXME: insert proper C++ library support
6928
_LT_TAGVAR(ld_shlibs, $1)=no
6932
# FIXME: insert proper C++ library support
6933
_LT_TAGVAR(ld_shlibs, $1)=no
6936
# FIXME: insert proper C++ library support
6937
_LT_TAGVAR(ld_shlibs, $1)=no
6943
case $cc_basename in
6945
# Sun C++ 4.2, 5.x and Centerline C++
6946
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6947
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6948
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6949
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6950
$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'
6952
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6953
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6955
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6957
# The compiler driver will combine and reorder linker options,
6958
# but understands `-z linker_flag'.
6959
# Supported since Solaris 2.6 (maybe 2.5.1?)
6960
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6963
_LT_TAGVAR(link_all_deplibs, $1)=yes
6965
output_verbose_link_cmd='echo'
6967
# Archives containing C++ object files must be created using
6968
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6969
# necessary to make sure instantiated templates are included
6971
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6974
# Green Hills C++ Compiler
6975
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6977
# The C++ compiler must be used to create the archive.
6978
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6981
# GNU C++ compiler with Solaris linker
6982
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6983
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6984
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6985
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6986
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6987
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6989
# Commands to make compiler produce verbose output that lists
6990
# what "hidden" libraries, object files and flags are used when
6991
# linking a shared library.
6992
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6994
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6996
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6997
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6998
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7000
# Commands to make compiler produce verbose output that lists
7001
# what "hidden" libraries, object files and flags are used when
7002
# linking a shared library.
7003
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7006
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7008
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7010
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7018
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7019
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7020
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7021
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7022
runpath_var='LD_RUN_PATH'
7024
case $cc_basename in
7026
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7027
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7030
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7031
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7036
sysv5* | sco3.2v5* | sco5v6*)
7037
# Note: We can NOT use -z defs as we might desire, because we do not
7038
# link with -lc, and that would cause any symbols used from libc to
7039
# always be unresolved, which means just about no library would
7040
# ever link correctly. If we're not using GNU ld we use -z text
7041
# though, which does catch some bad symbols but isn't as heavy-handed
7043
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7044
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7045
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7046
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7047
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7048
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7049
_LT_TAGVAR(link_all_deplibs, $1)=yes
7050
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7051
runpath_var='LD_RUN_PATH'
7053
case $cc_basename in
7055
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7056
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7059
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7060
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7066
case $cc_basename in
7068
# NonStop-UX NCC 3.20
7069
# FIXME: insert proper C++ library support
7070
_LT_TAGVAR(ld_shlibs, $1)=no
7073
# FIXME: insert proper C++ library support
7074
_LT_TAGVAR(ld_shlibs, $1)=no
7080
# FIXME: insert proper C++ library support
7081
_LT_TAGVAR(ld_shlibs, $1)=no
7085
# FIXME: insert proper C++ library support
7086
_LT_TAGVAR(ld_shlibs, $1)=no
7090
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7091
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7093
_LT_TAGVAR(GCC, $1)="$GXX"
7094
_LT_TAGVAR(LD, $1)="$LD"
7097
## There is no encapsulation within the following macros, do not change
7098
## the running order or otherwise move them around unless you know exactly
7099
## what you are doing...
7100
_LT_SYS_HIDDEN_LIBDEPS($1)
7101
_LT_COMPILER_PIC($1)
7102
_LT_COMPILER_C_O($1)
7103
_LT_COMPILER_FILE_LOCKS($1)
7104
_LT_LINKER_SHLIBS($1)
7105
_LT_SYS_DYNAMIC_LINKER($1)
7106
_LT_LINKER_HARDCODE_LIBPATH($1)
7109
fi # test -n "$compiler"
7115
with_gnu_ld=$lt_save_with_gnu_ld
7116
lt_cv_path_LDCXX=$lt_cv_path_LD
7117
lt_cv_path_LD=$lt_save_path_LD
7118
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7119
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7120
fi # test "$_lt_caught_CXX_error" != yes
7123
])# _LT_LANG_CXX_CONFIG
7126
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7127
# ---------------------------------
7128
# Figure out "hidden" library dependencies from verbose
7129
# compiler output when linking a shared library.
7130
# Parse the compiler output and extract the necessary
7131
# objects, libraries and library flags.
7132
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7133
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7134
# Dependencies to place before and after the object being linked:
7135
_LT_TAGVAR(predep_objects, $1)=
7136
_LT_TAGVAR(postdep_objects, $1)=
7137
_LT_TAGVAR(predeps, $1)=
7138
_LT_TAGVAR(postdeps, $1)=
7139
_LT_TAGVAR(compiler_lib_search_path, $1)=
7141
dnl we can't use the lt_simple_compile_test_code here,
7142
dnl because it contains code intended for an executable,
7143
dnl not a library. It's possible we should let each
7144
dnl tag define a new lt_????_link_test_code variable,
7145
dnl but it's only used here...
7146
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7148
void foo (void) { a = 0; }
7150
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7154
Foo (void) { a = 0; }
7159
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7167
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7175
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7178
public void bar (void) {
7184
dnl Parse the compiler output and extract the necessary
7185
dnl objects, libraries and library flags.
7186
if AC_TRY_EVAL(ac_compile); then
7187
# Parse the compiler output and extract the necessary
7188
# objects, libraries and library flags.
7190
# Sentinel used to keep track of whether or not we are before
7191
# the conftest object file.
7192
pre_test_object_deps_done=no
7194
for p in `eval "$output_verbose_link_cmd"`; do
7198
# Some compilers place space between "-{L,R}" and the path.
7200
if test $p = "-L" ||
7201
test $p = "-R"; then
7208
if test "$pre_test_object_deps_done" = no; then
7211
# Internal compiler library paths should come after those
7212
# provided the user. The postdeps already come after the
7213
# user supplied libs so there is no need to process them.
7214
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7215
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7217
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7220
# The "-l" case would never come before the object being
7221
# linked, so don't bother handling this case.
7224
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7225
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7227
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7233
# This assumes that the test object file only shows up
7234
# once in the compiler output.
7235
if test "$p" = "conftest.$objext"; then
7236
pre_test_object_deps_done=yes
7240
if test "$pre_test_object_deps_done" = no; then
7241
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7242
_LT_TAGVAR(predep_objects, $1)="$p"
7244
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7247
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7248
_LT_TAGVAR(postdep_objects, $1)="$p"
7250
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7255
*) ;; # Ignore the rest.
7263
echo "libtool.m4: error: problem compiling $1 test program"
7266
$RM -f confest.$objext
7268
# PORTME: override above test on systems where it is broken
7272
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7273
# hack all around it, let's just trust "g++" to DTRT.
7274
_LT_TAGVAR(predep_objects,$1)=
7275
_LT_TAGVAR(postdep_objects,$1)=
7276
_LT_TAGVAR(postdeps,$1)=
7280
case `$CC -V 2>&1 | sed 5q` in
7284
# The more standards-conforming stlport4 library is
7285
# incompatible with the Cstd library. Avoid specifying
7286
# it if it's in CXXFLAGS. Ignore libCrun as
7287
# -library=stlport4 depends on it.
7288
case " $CXX $CXXFLAGS " in
7289
*" -library=stlport4 "*)
7290
solaris_use_stlport4=yes
7294
if test "$solaris_use_stlport4" != yes; then
7295
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7302
case $cc_basename in
7304
# The more standards-conforming stlport4 library is
7305
# incompatible with the Cstd library. Avoid specifying
7306
# it if it's in CXXFLAGS. Ignore libCrun as
7307
# -library=stlport4 depends on it.
7308
case " $CXX $CXXFLAGS " in
7309
*" -library=stlport4 "*)
7310
solaris_use_stlport4=yes
7314
# Adding this requires a known-good setup of shared libraries for
7315
# Sun compiler versions before 5.6, else PIC objects from an old
7316
# archive will be linked into the output, leading to subtle bugs.
7317
if test "$solaris_use_stlport4" != yes; then
7318
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7326
case " $_LT_TAGVAR(postdeps, $1) " in
7327
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7329
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7330
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7331
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7333
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7334
[The directories searched by this compiler when creating a shared library])
7335
_LT_TAGDECL([], [predep_objects], [1],
7336
[Dependencies to place before and after the objects being linked to
7337
create a shared library])
7338
_LT_TAGDECL([], [postdep_objects], [1])
7339
_LT_TAGDECL([], [predeps], [1])
7340
_LT_TAGDECL([], [postdeps], [1])
7341
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7342
[The library search path used internally by the compiler when linking
7344
])# _LT_SYS_HIDDEN_LIBDEPS
7349
# Since AC_PROG_F77 is broken, in that it returns the empty string
7350
# if there is no fortran compiler, we have our own version here.
7351
m4_defun([_LT_PROG_F77],
7353
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7355
if test -z "$F77" || test "X$F77" = "Xno"; then
7358
popdef([AC_MSG_ERROR])
7361
dnl aclocal-1.4 backwards compatibility:
7362
dnl AC_DEFUN([_LT_PROG_F77], [])
7365
# _LT_LANG_F77_CONFIG([TAG])
7366
# --------------------------
7367
# Ensure that the configuration variables for a Fortran 77 compiler are
7368
# suitably defined. These variables are subsequently used by _LT_CONFIG
7369
# to write the compiler configuration to `libtool'.
7370
m4_defun([_LT_LANG_F77_CONFIG],
7371
[AC_REQUIRE([_LT_PROG_F77])dnl
7372
AC_LANG_PUSH(Fortran 77)
7374
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7375
_LT_TAGVAR(allow_undefined_flag, $1)=
7376
_LT_TAGVAR(always_export_symbols, $1)=no
7377
_LT_TAGVAR(archive_expsym_cmds, $1)=
7378
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7379
_LT_TAGVAR(hardcode_direct, $1)=no
7380
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7381
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7382
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7383
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7384
_LT_TAGVAR(hardcode_minus_L, $1)=no
7385
_LT_TAGVAR(hardcode_automatic, $1)=no
7386
_LT_TAGVAR(inherit_rpath, $1)=no
7387
_LT_TAGVAR(module_cmds, $1)=
7388
_LT_TAGVAR(module_expsym_cmds, $1)=
7389
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7390
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7391
_LT_TAGVAR(no_undefined_flag, $1)=
7392
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7393
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7395
# Source file extension for f77 test sources.
7398
# Object file extension for compiled f77 test sources.
7400
_LT_TAGVAR(objext, $1)=$objext
7402
# No sense in running all these tests if we already determined that
7403
# the F77 compiler isn't working. Some variables (like enable_shared)
7404
# are currently assumed to apply to all compilers on this platform,
7405
# and will be corrupted by setting them based on a non-working compiler.
7406
if test "$_lt_disable_F77" != yes; then
7407
# Code to be used in simple compile tests
7408
lt_simple_compile_test_code="\
7414
# Code to be used in simple link tests
7415
lt_simple_link_test_code="\
7420
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7423
# save warnings/boilerplate of simple test code
7424
_LT_COMPILER_BOILERPLATE
7425
_LT_LINKER_BOILERPLATE
7427
# Allow CC to be a program name with arguments.
7432
_LT_TAGVAR(compiler, $1)=$CC
7433
_LT_CC_BASENAME([$compiler])
7435
if test -n "$compiler"; then
7436
AC_MSG_CHECKING([if libtool supports shared libraries])
7437
AC_MSG_RESULT([$can_build_shared])
7439
AC_MSG_CHECKING([whether to build shared libraries])
7440
test "$can_build_shared" = "no" && enable_shared=no
7442
# On AIX, shared libraries and static libraries use the same namespace, and
7443
# are all built from PIC.
7446
test "$enable_shared" = yes && enable_static=no
7447
if test -n "$RANLIB"; then
7448
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7449
postinstall_cmds='$RANLIB $lib'
7453
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7454
test "$enable_shared" = yes && enable_static=no
7458
AC_MSG_RESULT([$enable_shared])
7460
AC_MSG_CHECKING([whether to build static libraries])
7461
# Make sure either enable_shared or enable_static is yes.
7462
test "$enable_shared" = yes || enable_static=yes
7463
AC_MSG_RESULT([$enable_static])
7465
_LT_TAGVAR(GCC, $1)="$G77"
7466
_LT_TAGVAR(LD, $1)="$LD"
7469
## There is no encapsulation within the following macros, do not change
7470
## the running order or otherwise move them around unless you know exactly
7471
## what you are doing...
7472
_LT_COMPILER_PIC($1)
7473
_LT_COMPILER_C_O($1)
7474
_LT_COMPILER_FILE_LOCKS($1)
7475
_LT_LINKER_SHLIBS($1)
7476
_LT_SYS_DYNAMIC_LINKER($1)
7477
_LT_LINKER_HARDCODE_LIBPATH($1)
7480
fi # test -n "$compiler"
7484
fi # test "$_lt_disable_F77" != yes
7487
])# _LT_LANG_F77_CONFIG
7492
# Since AC_PROG_FC is broken, in that it returns the empty string
7493
# if there is no fortran compiler, we have our own version here.
7494
m4_defun([_LT_PROG_FC],
7496
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7498
if test -z "$FC" || test "X$FC" = "Xno"; then
7501
popdef([AC_MSG_ERROR])
7504
dnl aclocal-1.4 backwards compatibility:
7505
dnl AC_DEFUN([_LT_PROG_FC], [])
7508
# _LT_LANG_FC_CONFIG([TAG])
7509
# -------------------------
7510
# Ensure that the configuration variables for a Fortran compiler are
7511
# suitably defined. These variables are subsequently used by _LT_CONFIG
7512
# to write the compiler configuration to `libtool'.
7513
m4_defun([_LT_LANG_FC_CONFIG],
7514
[AC_REQUIRE([_LT_PROG_FC])dnl
7515
AC_LANG_PUSH(Fortran)
7517
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7518
_LT_TAGVAR(allow_undefined_flag, $1)=
7519
_LT_TAGVAR(always_export_symbols, $1)=no
7520
_LT_TAGVAR(archive_expsym_cmds, $1)=
7521
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7522
_LT_TAGVAR(hardcode_direct, $1)=no
7523
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7524
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7525
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7526
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7527
_LT_TAGVAR(hardcode_minus_L, $1)=no
7528
_LT_TAGVAR(hardcode_automatic, $1)=no
7529
_LT_TAGVAR(inherit_rpath, $1)=no
7530
_LT_TAGVAR(module_cmds, $1)=
7531
_LT_TAGVAR(module_expsym_cmds, $1)=
7532
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7533
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7534
_LT_TAGVAR(no_undefined_flag, $1)=
7535
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7536
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7538
# Source file extension for fc test sources.
7539
ac_ext=${ac_fc_srcext-f}
7541
# Object file extension for compiled fc test sources.
7543
_LT_TAGVAR(objext, $1)=$objext
7545
# No sense in running all these tests if we already determined that
7546
# the FC compiler isn't working. Some variables (like enable_shared)
7547
# are currently assumed to apply to all compilers on this platform,
7548
# and will be corrupted by setting them based on a non-working compiler.
7549
if test "$_lt_disable_FC" != yes; then
7550
# Code to be used in simple compile tests
7551
lt_simple_compile_test_code="\
7557
# Code to be used in simple link tests
7558
lt_simple_link_test_code="\
7563
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7566
# save warnings/boilerplate of simple test code
7567
_LT_COMPILER_BOILERPLATE
7568
_LT_LINKER_BOILERPLATE
7570
# Allow CC to be a program name with arguments.
7575
GCC=$ac_cv_fc_compiler_gnu
7577
_LT_TAGVAR(compiler, $1)=$CC
7578
_LT_CC_BASENAME([$compiler])
7580
if test -n "$compiler"; then
7581
AC_MSG_CHECKING([if libtool supports shared libraries])
7582
AC_MSG_RESULT([$can_build_shared])
7584
AC_MSG_CHECKING([whether to build shared libraries])
7585
test "$can_build_shared" = "no" && enable_shared=no
7587
# On AIX, shared libraries and static libraries use the same namespace, and
7588
# are all built from PIC.
7591
test "$enable_shared" = yes && enable_static=no
7592
if test -n "$RANLIB"; then
7593
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7594
postinstall_cmds='$RANLIB $lib'
7598
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7599
test "$enable_shared" = yes && enable_static=no
7603
AC_MSG_RESULT([$enable_shared])
7605
AC_MSG_CHECKING([whether to build static libraries])
7606
# Make sure either enable_shared or enable_static is yes.
7607
test "$enable_shared" = yes || enable_static=yes
7608
AC_MSG_RESULT([$enable_static])
7610
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7611
_LT_TAGVAR(LD, $1)="$LD"
7614
## There is no encapsulation within the following macros, do not change
7615
## the running order or otherwise move them around unless you know exactly
7616
## what you are doing...
7617
_LT_SYS_HIDDEN_LIBDEPS($1)
7618
_LT_COMPILER_PIC($1)
7619
_LT_COMPILER_C_O($1)
7620
_LT_COMPILER_FILE_LOCKS($1)
7621
_LT_LINKER_SHLIBS($1)
7622
_LT_SYS_DYNAMIC_LINKER($1)
7623
_LT_LINKER_HARDCODE_LIBPATH($1)
7626
fi # test -n "$compiler"
7630
fi # test "$_lt_disable_FC" != yes
7633
])# _LT_LANG_FC_CONFIG
7636
# _LT_LANG_GCJ_CONFIG([TAG])
7637
# --------------------------
7638
# Ensure that the configuration variables for the GNU Java Compiler compiler
7639
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7640
# to write the compiler configuration to `libtool'.
7641
m4_defun([_LT_LANG_GCJ_CONFIG],
7642
[AC_REQUIRE([LT_PROG_GCJ])dnl
7645
# Source file extension for Java test sources.
7648
# Object file extension for compiled Java test sources.
7650
_LT_TAGVAR(objext, $1)=$objext
7652
# Code to be used in simple compile tests
7653
lt_simple_compile_test_code="class foo {}"
7655
# Code to be used in simple link tests
7656
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7658
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7661
# save warnings/boilerplate of simple test code
7662
_LT_COMPILER_BOILERPLATE
7663
_LT_LINKER_BOILERPLATE
7665
# Allow CC to be a program name with arguments.
7671
_LT_TAGVAR(compiler, $1)=$CC
7672
_LT_TAGVAR(LD, $1)="$LD"
7673
_LT_CC_BASENAME([$compiler])
7675
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7676
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7678
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7680
if test -n "$compiler"; then
7681
_LT_COMPILER_NO_RTTI($1)
7682
_LT_COMPILER_PIC($1)
7683
_LT_COMPILER_C_O($1)
7684
_LT_COMPILER_FILE_LOCKS($1)
7685
_LT_LINKER_SHLIBS($1)
7686
_LT_LINKER_HARDCODE_LIBPATH($1)
7695
])# _LT_LANG_GCJ_CONFIG
7698
# _LT_LANG_RC_CONFIG([TAG])
7699
# -------------------------
7700
# Ensure that the configuration variables for the Windows resource compiler
7701
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7702
# to write the compiler configuration to `libtool'.
7703
m4_defun([_LT_LANG_RC_CONFIG],
7704
[AC_REQUIRE([LT_PROG_RC])dnl
7707
# Source file extension for RC test sources.
7710
# Object file extension for compiled RC test sources.
7712
_LT_TAGVAR(objext, $1)=$objext
7714
# Code to be used in simple compile tests
7715
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7717
# Code to be used in simple link tests
7718
lt_simple_link_test_code="$lt_simple_compile_test_code"
7720
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7723
# save warnings/boilerplate of simple test code
7724
_LT_COMPILER_BOILERPLATE
7725
_LT_LINKER_BOILERPLATE
7727
# Allow CC to be a program name with arguments.
7733
_LT_TAGVAR(compiler, $1)=$CC
7734
_LT_CC_BASENAME([$compiler])
7735
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7737
if test -n "$compiler"; then
7745
])# _LT_LANG_RC_CONFIG
7750
AC_DEFUN([LT_PROG_GCJ],
7751
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7752
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7753
[AC_CHECK_TOOL(GCJ, gcj,)
7754
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7755
AC_SUBST(GCJFLAGS)])])[]dnl
7759
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7760
dnl aclocal-1.4 backwards compatibility:
7761
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7766
AC_DEFUN([LT_PROG_RC],
7767
[AC_CHECK_TOOL(RC, windres,)
7771
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7772
dnl aclocal-1.4 backwards compatibility:
7773
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7778
# If we don't have a new enough Autoconf to choose the best grep
7779
# available, choose the one first in the user's PATH.
7780
m4_defun([_LT_DECL_EGREP],
7781
[AC_REQUIRE([AC_PROG_EGREP])dnl
7782
AC_REQUIRE([AC_PROG_FGREP])dnl
7783
test -z "$GREP" && GREP=grep
7784
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7785
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7786
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7787
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7794
# If we don't have a new enough Autoconf to choose the best objdump
7795
# available, choose the one first in the user's PATH.
7796
m4_defun([_LT_DECL_OBJDUMP],
7797
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7798
test -z "$OBJDUMP" && OBJDUMP=objdump
7799
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7806
# Check for a fully-functional sed program, that truncates
7807
# as few characters as possible. Prefer GNU sed if found.
7808
m4_defun([_LT_DECL_SED],
7810
test -z "$SED" && SED=sed
7811
Xsed="$SED -e 1s/^X//"
7812
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7813
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7814
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7817
m4_ifndef([AC_PROG_SED], [
7818
# NOTE: This macro has been submitted for inclusion into #
7819
# GNU Autoconf as AC_PROG_SED. When it is available in #
7820
# a released version of Autoconf we should remove this #
7821
# macro and use it instead. #
7823
m4_defun([AC_PROG_SED],
7824
[AC_MSG_CHECKING([for a sed that does not truncate output])
7825
AC_CACHE_VAL(lt_cv_path_SED,
7826
[# Loop through the user's path and test for sed and gsed.
7827
# Then use that list of sed's as ones to test for truncation.
7828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832
test -z "$as_dir" && as_dir=.
7833
for lt_ac_prog in sed gsed; do
7834
for ac_exec_ext in '' $ac_executable_extensions; do
7835
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7836
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7844
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7845
# along with /bin/sed that truncates output.
7846
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7847
test ! -f $lt_ac_sed && continue
7848
cat /dev/null > conftest.in
7850
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7851
# Check for GNU sed and select it if it is found.
7852
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7853
lt_cv_path_SED=$lt_ac_sed
7857
cat conftest.in conftest.in >conftest.tmp
7858
mv conftest.tmp conftest.in
7859
cp conftest.in conftest.nl
7861
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7862
cmp -s conftest.out conftest.nl || break
7863
# 10000 chars as input seems more than enough
7864
test $lt_ac_count -gt 10 && break
7865
lt_ac_count=`expr $lt_ac_count + 1`
7866
if test $lt_ac_count -gt $lt_ac_max; then
7867
lt_ac_max=$lt_ac_count
7868
lt_cv_path_SED=$lt_ac_sed
7875
AC_MSG_RESULT([$SED])
7880
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7881
dnl aclocal-1.4 backwards compatibility:
7882
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7885
# _LT_CHECK_SHELL_FEATURES
7886
# ------------------------
7887
# Find out whether the shell is Bourne or XSI compatible,
7888
# or has some other useful features.
7889
m4_defun([_LT_CHECK_SHELL_FEATURES],
7890
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7891
# Try some XSI features
7894
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7896
&& eval 'test $(( 1 + 1 )) -eq 2 \
7897
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7899
AC_MSG_RESULT([$xsi_shell])
7900
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7902
AC_MSG_CHECKING([whether the shell understands "+="])
7904
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7906
&& lt_shell_append=yes
7907
AC_MSG_RESULT([$lt_shell_append])
7908
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7910
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7915
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7917
# test EBCDIC or ASCII
7918
case `echo X|tr X '\101'` in
7919
A) # ASCII based system
7920
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7921
lt_SP2NL='tr \040 \012'
7922
lt_NL2SP='tr \015\012 \040\040'
7924
*) # EBCDIC based system
7925
lt_SP2NL='tr \100 \n'
7926
lt_NL2SP='tr \r\n \100\100'
7929
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7930
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7931
])# _LT_CHECK_SHELL_FEATURES
7934
# _LT_PROG_XSI_SHELLFNS
7935
# ---------------------
7936
# Bourne and XSI compatible variants of some useful shell functions.
7937
m4_defun([_LT_PROG_XSI_SHELLFNS],
7940
cat << \_LT_EOF >> "$cfgfile"
7942
# func_dirname file append nondir_replacement
7943
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7944
# otherwise set result to NONDIR_REPLACEMENT.
7948
*/*) func_dirname_result="${1%/*}${2}" ;;
7949
* ) func_dirname_result="${3}" ;;
7953
# func_basename file
7956
func_basename_result="${1##*/}"
7959
# func_dirname_and_basename file append nondir_replacement
7960
# perform func_basename and func_dirname in a single function
7962
# dirname: Compute the dirname of FILE. If nonempty,
7963
# add APPEND to the result, otherwise set result
7964
# to NONDIR_REPLACEMENT.
7965
# value returned in "$func_dirname_result"
7966
# basename: Compute filename of FILE.
7967
# value retuned in "$func_basename_result"
7968
# Implementation must be kept synchronized with func_dirname
7969
# and func_basename. For efficiency, we do not delegate to
7970
# those functions but instead duplicate the functionality here.
7971
func_dirname_and_basename ()
7974
*/*) func_dirname_result="${1%/*}${2}" ;;
7975
* ) func_dirname_result="${3}" ;;
7977
func_basename_result="${1##*/}"
7980
# func_stripname prefix suffix name
7981
# strip PREFIX and SUFFIX off of NAME.
7982
# PREFIX and SUFFIX must not contain globbing or regex special
7983
# characters, hashes, percent signs, but SUFFIX may contain a leading
7984
# dot (in which case that matches only a dot).
7987
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7988
# positional parameters, so assign one to ordinary parameter first.
7989
func_stripname_result=${3}
7990
func_stripname_result=${func_stripname_result#"${1}"}
7991
func_stripname_result=${func_stripname_result%"${2}"}
7997
func_opt_split_opt=${1%%=*}
7998
func_opt_split_arg=${1#*=}
8005
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8006
*) func_lo2o_result=${1} ;;
8010
# func_xform libobj-or-source
8013
func_xform_result=${1%.*}.lo
8016
# func_arith arithmetic-term...
8019
func_arith_result=$(( $[*] ))
8023
# STRING may not start with a hyphen.
8026
func_len_result=${#1}
8031
*) # Bourne compatible functions.
8032
cat << \_LT_EOF >> "$cfgfile"
8034
# func_dirname file append nondir_replacement
8035
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8036
# otherwise set result to NONDIR_REPLACEMENT.
8039
# Extract subdirectory from the argument.
8040
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8041
if test "X$func_dirname_result" = "X${1}"; then
8042
func_dirname_result="${3}"
8044
func_dirname_result="$func_dirname_result${2}"
8048
# func_basename file
8051
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8054
dnl func_dirname_and_basename
8055
dnl A portable version of this function is already defined in general.m4sh
8056
dnl so there is no need for it here.
8058
# func_stripname prefix suffix name
8059
# strip PREFIX and SUFFIX off of NAME.
8060
# PREFIX and SUFFIX must not contain globbing or regex special
8061
# characters, hashes, percent signs, but SUFFIX may contain a leading
8062
# dot (in which case that matches only a dot).
8063
# func_strip_suffix prefix name
8067
.*) func_stripname_result=`$ECHO "X${3}" \
8068
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8069
*) func_stripname_result=`$ECHO "X${3}" \
8070
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8075
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8076
my_sed_long_arg='1s/^-[[^=]]*=//'
8081
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8082
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8088
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8091
# func_xform libobj-or-source
8094
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8097
# func_arith arithmetic-term...
8100
func_arith_result=`expr "$[@]"`
8104
# STRING may not start with a hyphen.
8107
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8113
case $lt_shell_append in
8115
cat << \_LT_EOF >> "$cfgfile"
8117
# func_append var value
8118
# Append VALUE to the end of shell variable VAR.
8126
cat << \_LT_EOF >> "$cfgfile"
8128
# func_append var value
8129
# Append VALUE to the end of shell variable VAR.
8132
eval "$[1]=\$$[1]\$[2]"
8140
# Helper functions for option handling. -*- Autoconf -*-
8142
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8143
# Written by Gary V. Vaughan, 2004
8145
# This file is free software; the Free Software Foundation gives
8146
# unlimited permission to copy and/or distribute it, with or without
8147
# modifications, as long as this notice is preserved.
8149
# serial 6 ltoptions.m4
8151
# This is to help aclocal find these macros, as it can't see m4_define.
8152
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8155
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8156
# ------------------------------------------
8157
m4_define([_LT_MANGLE_OPTION],
8158
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8161
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8162
# ---------------------------------------
8163
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8164
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8166
m4_define([_LT_SET_OPTION],
8167
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8168
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8169
_LT_MANGLE_DEFUN([$1], [$2]),
8170
[m4_warning([Unknown $1 option `$2'])])[]dnl
8174
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8175
# ------------------------------------------------------------
8176
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8177
m4_define([_LT_IF_OPTION],
8178
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8181
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8182
# -------------------------------------------------------
8183
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8185
m4_define([_LT_UNLESS_OPTIONS],
8186
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8187
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8188
[m4_define([$0_found])])])[]dnl
8189
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8194
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8195
# ----------------------------------------
8196
# OPTION-LIST is a space-separated list of Libtool options associated
8197
# with MACRO-NAME. If any OPTION has a matching handler declared with
8198
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8199
# the unknown option and exit.
8200
m4_defun([_LT_SET_OPTIONS],
8202
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8203
[_LT_SET_OPTION([$1], _LT_Option)])
8205
m4_if([$1],[LT_INIT],[
8207
dnl Simply set some default values (i.e off) if boolean options were not
8209
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8211
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8214
dnl If no reference was made to various pairs of opposing options, then
8215
dnl we run the default mode handler for the pair. For example, if neither
8216
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8217
dnl archives by default:
8218
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8219
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8220
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8221
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8222
[_LT_ENABLE_FAST_INSTALL])
8228
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8229
# -----------------------------------------
8230
m4_define([_LT_MANGLE_DEFUN],
8231
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8234
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8235
# -----------------------------------------------
8236
m4_define([LT_OPTION_DEFINE],
8237
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8238
])# LT_OPTION_DEFINE
8243
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8246
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8247
[_LT_SET_OPTION([LT_INIT], [dlopen])
8248
AC_DIAGNOSE([obsolete],
8249
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8250
put the `dlopen' option into LT_INIT's first parameter.])
8253
dnl aclocal-1.4 backwards compatibility:
8254
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8259
# Declare package support for building win32 dll's.
8260
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8261
[enable_win32_dll=yes
8264
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8265
AC_CHECK_TOOL(AS, as, false)
8266
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8267
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8271
test -z "$AS" && AS=as
8272
_LT_DECL([], [AS], [0], [Assembler program])dnl
8274
test -z "$DLLTOOL" && DLLTOOL=dlltool
8275
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8277
test -z "$OBJDUMP" && OBJDUMP=objdump
8278
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8281
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8282
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8283
_LT_SET_OPTION([LT_INIT], [win32-dll])
8284
AC_DIAGNOSE([obsolete],
8285
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8286
put the `win32-dll' option into LT_INIT's first parameter.])
8289
dnl aclocal-1.4 backwards compatibility:
8290
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8293
# _LT_ENABLE_SHARED([DEFAULT])
8294
# ----------------------------
8295
# implement the --enable-shared flag, and supports the `shared' and
8296
# `disable-shared' LT_INIT options.
8297
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8298
m4_define([_LT_ENABLE_SHARED],
8299
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8300
AC_ARG_ENABLE([shared],
8301
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8302
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8303
[p=${PACKAGE-default}
8305
yes) enable_shared=yes ;;
8306
no) enable_shared=no ;;
8309
# Look at the argument we got. We use all the common list separators.
8310
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8311
for pkg in $enableval; do
8313
if test "X$pkg" = "X$p"; then
8320
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8322
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8323
[Whether or not to build shared libraries])
8324
])# _LT_ENABLE_SHARED
8326
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8327
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8330
AC_DEFUN([AC_ENABLE_SHARED],
8331
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8334
AC_DEFUN([AC_DISABLE_SHARED],
8335
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8338
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8339
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8341
dnl aclocal-1.4 backwards compatibility:
8342
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8343
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8347
# _LT_ENABLE_STATIC([DEFAULT])
8348
# ----------------------------
8349
# implement the --enable-static flag, and support the `static' and
8350
# `disable-static' LT_INIT options.
8351
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8352
m4_define([_LT_ENABLE_STATIC],
8353
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8354
AC_ARG_ENABLE([static],
8355
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8356
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8357
[p=${PACKAGE-default}
8359
yes) enable_static=yes ;;
8360
no) enable_static=no ;;
8363
# Look at the argument we got. We use all the common list separators.
8364
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8365
for pkg in $enableval; do
8367
if test "X$pkg" = "X$p"; then
8374
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8376
_LT_DECL([build_old_libs], [enable_static], [0],
8377
[Whether or not to build static libraries])
8378
])# _LT_ENABLE_STATIC
8380
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8381
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8384
AC_DEFUN([AC_ENABLE_STATIC],
8385
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8388
AC_DEFUN([AC_DISABLE_STATIC],
8389
[_LT_SET_OPTION([LT_INIT], [disable-static])
8392
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8393
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8395
dnl aclocal-1.4 backwards compatibility:
8396
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8397
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8401
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8402
# ----------------------------------
8403
# implement the --enable-fast-install flag, and support the `fast-install'
8404
# and `disable-fast-install' LT_INIT options.
8405
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8406
m4_define([_LT_ENABLE_FAST_INSTALL],
8407
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8408
AC_ARG_ENABLE([fast-install],
8409
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8410
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8411
[p=${PACKAGE-default}
8413
yes) enable_fast_install=yes ;;
8414
no) enable_fast_install=no ;;
8416
enable_fast_install=no
8417
# Look at the argument we got. We use all the common list separators.
8418
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8419
for pkg in $enableval; do
8421
if test "X$pkg" = "X$p"; then
8422
enable_fast_install=yes
8428
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8430
_LT_DECL([fast_install], [enable_fast_install], [0],
8431
[Whether or not to optimize for fast installation])dnl
8432
])# _LT_ENABLE_FAST_INSTALL
8434
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8435
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8438
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8439
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8440
AC_DIAGNOSE([obsolete],
8441
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8442
the `fast-install' option into LT_INIT's first parameter.])
8445
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8446
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8447
AC_DIAGNOSE([obsolete],
8448
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8449
the `disable-fast-install' option into LT_INIT's first parameter.])
8452
dnl aclocal-1.4 backwards compatibility:
8453
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8454
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8457
# _LT_WITH_PIC([MODE])
8458
# --------------------
8459
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8461
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8462
m4_define([_LT_WITH_PIC],
8464
[AS_HELP_STRING([--with-pic],
8465
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8466
[pic_mode="$withval"],
8469
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8471
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8474
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8475
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8478
AU_DEFUN([AC_LIBTOOL_PICMODE],
8479
[_LT_SET_OPTION([LT_INIT], [pic-only])
8480
AC_DIAGNOSE([obsolete],
8481
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8482
put the `pic-only' option into LT_INIT's first parameter.])
8485
dnl aclocal-1.4 backwards compatibility:
8486
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8489
m4_define([_LTDL_MODE], [])
8490
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8491
[m4_define([_LTDL_MODE], [nonrecursive])])
8492
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8493
[m4_define([_LTDL_MODE], [recursive])])
8494
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8495
[m4_define([_LTDL_MODE], [subproject])])
8497
m4_define([_LTDL_TYPE], [])
8498
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8499
[m4_define([_LTDL_TYPE], [installable])])
8500
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8501
[m4_define([_LTDL_TYPE], [convenience])])
8503
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8505
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8506
# Written by Gary V. Vaughan, 2004
8508
# This file is free software; the Free Software Foundation gives
8509
# unlimited permission to copy and/or distribute it, with or without
8510
# modifications, as long as this notice is preserved.
8512
# serial 6 ltsugar.m4
8514
# This is to help aclocal find these macros, as it can't see m4_define.
8515
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8518
# lt_join(SEP, ARG1, [ARG2...])
8519
# -----------------------------
8520
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8521
# associated separator.
8522
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8523
# versions in m4sugar had bugs.
8524
m4_define([lt_join],
8525
[m4_if([$#], [1], [],
8527
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8528
m4_define([_lt_join],
8529
[m4_if([$#$2], [2], [],
8530
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8536
# Manipulate m4 lists.
8537
# These macros are necessary as long as will still need to support
8538
# Autoconf-2.59 which quotes differently.
8539
m4_define([lt_car], [[$1]])
8541
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8543
[m4_dquote(m4_shift($@))])])
8544
m4_define([lt_unquote], $1)
8547
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8548
# ------------------------------------------
8549
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8550
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8551
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8552
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8553
# than defined and empty).
8555
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8556
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8557
m4_define([lt_append],
8559
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8563
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8564
# ----------------------------------------------------------
8565
# Produce a SEP delimited list of all paired combinations of elements of
8566
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8567
# has the form PREFIXmINFIXSUFFIXn.
8568
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8569
m4_define([lt_combine],
8570
[m4_if(m4_eval([$# > 3]), [1],
8571
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8572
[[m4_foreach([_Lt_prefix], [$2],
8573
[m4_foreach([_Lt_suffix],
8574
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8575
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8578
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8579
# -----------------------------------------------------------------------
8580
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8581
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8582
m4_define([lt_if_append_uniq],
8584
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8585
[lt_append([$1], [$2], [$3])$4],
8587
[lt_append([$1], [$2], [$3])$4])])
8590
# lt_dict_add(DICT, KEY, VALUE)
8591
# -----------------------------
8592
m4_define([lt_dict_add],
8593
[m4_define([$1($2)], [$3])])
8596
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8597
# --------------------------------------------
8598
m4_define([lt_dict_add_subkey],
8599
[m4_define([$1($2:$3)], [$4])])
8602
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8603
# ----------------------------------
8604
m4_define([lt_dict_fetch],
8606
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8607
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8610
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8611
# -----------------------------------------------------------------
8612
m4_define([lt_if_dict_fetch],
8613
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8618
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8619
# --------------------------------------------------------------
8620
m4_define([lt_dict_filter],
8621
[m4_if([$5], [], [],
8622
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8623
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8624
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8627
# ltversion.m4 -- version numbers -*- Autoconf -*-
8629
# Copyright (C) 2004 Free Software Foundation, Inc.
8630
# Written by Scott James Remnant, 2004
8632
# This file is free software; the Free Software Foundation gives
8633
# unlimited permission to copy and/or distribute it, with or without
8634
# modifications, as long as this notice is preserved.
8636
# Generated from ltversion.in.
8638
# serial 3017 ltversion.m4
8639
# This file is part of GNU Libtool
8641
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8642
m4_define([LT_PACKAGE_REVISION], [1.3017])
8644
AC_DEFUN([LTVERSION_VERSION],
8645
[macro_version='2.2.6b'
8646
macro_revision='1.3017'
8647
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8648
_LT_DECL(, macro_revision, 0)
8651
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8653
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8654
# Written by Scott James Remnant, 2004.
8656
# This file is free software; the Free Software Foundation gives
8657
# unlimited permission to copy and/or distribute it, with or without
8658
# modifications, as long as this notice is preserved.
8660
# serial 4 lt~obsolete.m4
8662
# These exist entirely to fool aclocal when bootstrapping libtool.
8664
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8665
# which have later been changed to m4_define as they aren't part of the
8666
# exported API, or moved to Autoconf or Automake where they belong.
8668
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8669
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8670
# using a macro with the same name in our local m4/libtool.m4 it'll
8671
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8672
# and doesn't know about Autoconf macros at all.)
8674
# So we provide this file, which has a silly filename so it's always
8675
# included after everything else. This provides aclocal with the
8676
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8677
# because those macros already exist, or will be overwritten later.
8678
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8680
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8681
# Yes, that means every name once taken will need to remain here until
8682
# we give up compatibility with versions before 1.7, at which point
8683
# we need to keep only those names which we still refer to.
8685
# This is to help aclocal find these macros, as it can't see m4_define.
8686
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8688
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8689
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8690
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8691
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8692
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8693
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8694
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8695
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8696
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8697
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8698
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8699
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8700
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8701
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8702
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8703
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8704
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8705
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8706
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8707
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8708
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8709
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8710
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8711
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8712
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8713
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8714
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8715
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8716
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8717
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8718
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8719
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8720
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8721
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8722
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8723
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8724
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8725
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8726
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8727
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8728
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8729
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8730
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8731
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8732
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8733
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8734
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8735
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8736
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8737
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8738
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8739
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8740
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8741
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8742
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8744
584
# nls.m4 serial 5 (gettext-0.18)
8745
585
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,