455
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
457
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
458
# 2006, 2007, 2008 Free Software Foundation, Inc.
459
# Written by Gordon Matzigkeit, 1996
461
# This file is free software; the Free Software Foundation gives
462
# unlimited permission to copy and/or distribute it, with or without
463
# modifications, as long as this notice is preserved.
465
m4_define([_LT_COPYING], [dnl
466
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
467
# 2006, 2007, 2008 Free Software Foundation, Inc.
468
# Written by Gordon Matzigkeit, 1996
470
# This file is part of GNU Libtool.
472
# GNU Libtool is free software; you can redistribute it and/or
473
# modify it under the terms of the GNU General Public License as
474
# published by the Free Software Foundation; either version 2 of
475
# the License, or (at your option) any later version.
477
# As a special exception to the GNU General Public License,
478
# if you distribute this file as part of a program or library that
479
# is built using GNU Libtool, you may include this file under the
480
# same distribution terms that you use for the rest of that program.
482
# GNU Libtool is distributed in the hope that it will be useful,
483
# but WITHOUT ANY WARRANTY; without even the implied warranty of
484
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
485
# GNU General Public License for more details.
487
# You should have received a copy of the GNU General Public License
488
# along with GNU Libtool; see the file COPYING. If not, a copy
489
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
490
# obtained by writing to the Free Software Foundation, Inc.,
491
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
499
# Complain and exit if this libtool version is less that VERSION.
500
m4_defun([LT_PREREQ],
501
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
503
[m4_fatal([Libtool version $1 or higher is required],
510
# Complain if the absolute build directory name contains unusual characters
511
m4_defun([_LT_CHECK_BUILDDIR],
514
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
522
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
523
AC_BEFORE([$0], [LT_LANG])dnl
524
AC_BEFORE([$0], [LT_OUTPUT])dnl
525
AC_BEFORE([$0], [LTDL_INIT])dnl
526
m4_require([_LT_CHECK_BUILDDIR])dnl
528
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
529
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
530
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
531
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
532
dnl unless we require an AC_DEFUNed macro:
533
AC_REQUIRE([LTOPTIONS_VERSION])dnl
534
AC_REQUIRE([LTSUGAR_VERSION])dnl
535
AC_REQUIRE([LTVERSION_VERSION])dnl
536
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
537
m4_require([_LT_PROG_LTMAIN])dnl
540
_LT_SET_OPTIONS([$0], [$1])
542
# This can be used to rebuild libtool when needed
543
LIBTOOL_DEPS="$ltmain"
545
# Always use our own libtool.
546
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
556
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
557
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
558
dnl aclocal-1.4 backwards compatibility:
559
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
560
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
563
# _LT_CC_BASENAME(CC)
564
# -------------------
565
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
566
m4_defun([_LT_CC_BASENAME],
567
[for cc_temp in $1""; do
569
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
570
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
575
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
579
# _LT_FILEUTILS_DEFAULTS
580
# ----------------------
581
# It is okay to use these file commands and assume they have been set
582
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
583
m4_defun([_LT_FILEUTILS_DEFAULTS],
587
])# _LT_FILEUTILS_DEFAULTS
592
m4_defun([_LT_SETUP],
593
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
594
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
595
_LT_DECL([], [host_alias], [0], [The host system])dnl
596
_LT_DECL([], [host], [0])dnl
597
_LT_DECL([], [host_os], [0])dnl
599
_LT_DECL([], [build_alias], [0], [The build system])dnl
600
_LT_DECL([], [build], [0])dnl
601
_LT_DECL([], [build_os], [0])dnl
603
AC_REQUIRE([AC_PROG_CC])dnl
604
AC_REQUIRE([LT_PATH_LD])dnl
605
AC_REQUIRE([LT_PATH_NM])dnl
607
AC_REQUIRE([AC_PROG_LN_S])dnl
608
test -z "$LN_S" && LN_S="ln -s"
609
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
611
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
612
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
613
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
615
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
616
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
617
m4_require([_LT_CMD_RELOAD])dnl
618
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
619
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
620
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
622
_LT_CONFIG_LIBTOOL_INIT([
623
# See if we are running on zsh, and set the options which allow our
624
# commands through without removal of \ escapes INIT.
625
if test -n "\${ZSH_VERSION+set}" ; then
629
if test -n "${ZSH_VERSION+set}" ; then
635
m4_require([_LT_TAG_COMPILER])dnl
636
_LT_PROG_ECHO_BACKSLASH
640
# AIX sometimes has problems with the GCC collect2 program. For some
641
# reason, if we set the COLLECT_NAMES environment variable, the problems
642
# vanish in a puff of smoke.
643
if test "X${COLLECT_NAMES+set}" != Xset; then
650
# Sed substitution that helps us do robust quoting. It backslashifies
651
# metacharacters that are still active within double-quoted strings.
652
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
654
# Same as above, but do not quote variable references.
655
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
657
# Sed substitution to delay expansion of an escaped shell variable in a
658
# double_quote_subst'ed string.
659
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
661
# Sed substitution to delay expansion of an escaped single quote.
662
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
664
# Sed substitution to avoid accidental globbing in evaled expressions
665
no_glob_subst='s/\*/\\\*/g'
671
# All known linkers require a `.a' archive for static linking (except MSVC,
672
# which needs '.lib').
675
with_gnu_ld="$lt_cv_prog_gnu_ld"
680
# Set sane defaults for various variables
681
test -z "$CC" && CC=cc
682
test -z "$LTCC" && LTCC=$CC
683
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
684
test -z "$LD" && LD=ld
685
test -z "$ac_objext" && ac_objext=o
687
_LT_CC_BASENAME([$compiler])
689
# Only perform the check for file, if the check method requires it
690
test -z "$MAGIC_CMD" && MAGIC_CMD=file
691
case $deplibs_check_method in
693
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
699
# Use C for the default configuration in the libtool script
700
LT_SUPPORTED_TAG([CC])
702
_LT_LANG_DEFAULT_CONFIG
709
# Note that this code is called both from `configure', and `config.status'
710
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
711
# `config.status' has no value for ac_aux_dir unless we are using Automake,
712
# so we pass a copy along to make sure it has a sensible value anyway.
713
m4_defun([_LT_PROG_LTMAIN],
714
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
715
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
716
ltmain="$ac_aux_dir/ltmain.sh"
721
# So that we can recreate a full libtool script including additional
722
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
723
# in macros and then make a single call at the end using the `libtool'
727
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
728
# ----------------------------------------
729
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
730
m4_define([_LT_CONFIG_LIBTOOL_INIT],
732
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
737
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
740
# _LT_CONFIG_LIBTOOL([COMMANDS])
741
# ------------------------------
742
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
743
m4_define([_LT_CONFIG_LIBTOOL],
745
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
750
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
753
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
754
# -----------------------------------------------------
755
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
756
[_LT_CONFIG_LIBTOOL([$1])
757
_LT_CONFIG_LIBTOOL_INIT([$2])
761
# _LT_FORMAT_COMMENT([COMMENT])
762
# -----------------------------
763
# Add leading comment marks to the start of each line, and a trailing
764
# full-stop to the whole comment if one is not present already.
765
m4_define([_LT_FORMAT_COMMENT],
767
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
768
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
775
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
776
# -------------------------------------------------------------------
777
# CONFIGNAME is the name given to the value in the libtool script.
778
# VARNAME is the (base) name used in the configure script.
779
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
780
# VARNAME. Any other value will be used directly.
781
m4_define([_LT_DECL],
782
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
783
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
784
[m4_ifval([$1], [$1], [$2])])
785
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
787
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
788
lt_dict_add_subkey([lt_decl_dict], [$2],
789
[tagged?], [m4_ifval([$5], [yes], [no])])])
793
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
794
# --------------------------------------------------------
795
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
798
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
799
# ------------------------------------------------
800
m4_define([lt_decl_tag_varnames],
801
[_lt_decl_filter([tagged?], [yes], $@)])
804
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
805
# ---------------------------------------------------------
806
m4_define([_lt_decl_filter],
808
[0], [m4_fatal([$0: too few arguments: $#])],
809
[1], [m4_fatal([$0: too few arguments: $#: $1])],
810
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
811
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
812
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
816
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
817
# --------------------------------------------------
818
m4_define([lt_decl_quote_varnames],
819
[_lt_decl_filter([value], [1], $@)])
822
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
823
# ---------------------------------------------------
824
m4_define([lt_decl_dquote_varnames],
825
[_lt_decl_filter([value], [2], $@)])
828
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
829
# ---------------------------------------------------
830
m4_define([lt_decl_varnames_tagged],
831
[m4_assert([$# <= 2])dnl
832
_$0(m4_quote(m4_default([$1], [[, ]])),
833
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
834
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
835
m4_define([_lt_decl_varnames_tagged],
836
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
839
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
840
# ------------------------------------------------
841
m4_define([lt_decl_all_varnames],
842
[_$0(m4_quote(m4_default([$1], [[, ]])),
844
m4_quote(lt_decl_varnames),
845
m4_quote(m4_shift($@))))[]dnl
847
m4_define([_lt_decl_all_varnames],
848
[lt_join($@, lt_decl_varnames_tagged([$1],
849
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
853
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
854
# ------------------------------------
855
# Quote a variable value, and forward it to `config.status' so that its
856
# declaration there will have the same value as in `configure'. VARNAME
857
# must have a single quote delimited value for this to work.
858
m4_define([_LT_CONFIG_STATUS_DECLARE],
859
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
862
# _LT_CONFIG_STATUS_DECLARATIONS
863
# ------------------------------
864
# We delimit libtool config variables with single quotes, so when
865
# we write them to config.status, we have to be sure to quote all
866
# embedded single quotes properly. In configure, this macro expands
867
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
869
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
870
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
871
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
872
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
877
# Output comment and list of tags supported by the script
878
m4_defun([_LT_LIBTOOL_TAGS],
879
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
880
available_tags="_LT_TAGS"dnl
884
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
885
# -----------------------------------
886
# Extract the dictionary values for VARNAME (optionally with TAG) and
887
# expand to a commented shell variable setting:
889
# # Some comment about what VAR is for.
890
# visible_name=$lt_internal_name
891
m4_define([_LT_LIBTOOL_DECLARE],
892
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
893
[description])))[]dnl
894
m4_pushdef([_libtool_name],
895
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
896
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
897
[0], [_libtool_name=[$]$1],
898
[1], [_libtool_name=$lt_[]$1],
899
[2], [_libtool_name=$lt_[]$1],
900
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
901
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
905
# _LT_LIBTOOL_CONFIG_VARS
906
# -----------------------
907
# Produce commented declarations of non-tagged libtool config variables
908
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
909
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
910
# section) are produced by _LT_LIBTOOL_TAG_VARS.
911
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
912
[m4_foreach([_lt_var],
913
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
914
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
917
# _LT_LIBTOOL_TAG_VARS(TAG)
918
# -------------------------
919
m4_define([_LT_LIBTOOL_TAG_VARS],
920
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
921
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
924
# _LT_TAGVAR(VARNAME, [TAGNAME])
925
# ------------------------------
926
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
929
# _LT_CONFIG_COMMANDS
930
# -------------------
931
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
932
# variables for single and double quote escaping we saved from calls
933
# to _LT_DECL, we can put quote escaped variables declarations
934
# into `config.status', and then the shell code to quote escape them in
935
# for loops in `config.status'. Finally, any additional code accumulated
936
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
937
m4_defun([_LT_CONFIG_COMMANDS],
938
[AC_PROVIDE_IFELSE([LT_OUTPUT],
939
dnl If the libtool generation code has been placed in $CONFIG_LT,
940
dnl instead of duplicating it all over again into config.status,
941
dnl then we will have config.status run $CONFIG_LT later, so it
942
dnl needs to know what name is stored there:
943
[AC_CONFIG_COMMANDS([libtool],
944
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
945
dnl If the libtool generation code is destined for config.status,
946
dnl expand the accumulated commands and init code now:
947
[AC_CONFIG_COMMANDS([libtool],
948
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
949
])#_LT_CONFIG_COMMANDS
953
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
956
# The HP-UX ksh and POSIX shell print the target directory to stdout
958
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
960
sed_quote_subst='$sed_quote_subst'
961
double_quote_subst='$double_quote_subst'
962
delay_variable_subst='$delay_variable_subst'
963
_LT_CONFIG_STATUS_DECLARATIONS
966
compiler='$compiler_DEFAULT'
968
# Quote evaled strings.
969
for var in lt_decl_all_varnames([[ \
970
]], lt_decl_quote_varnames); do
971
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
972
*[[\\\\\\\`\\"\\\$]]*)
973
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
976
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
981
# Double-quote double-evaled strings.
982
for var in lt_decl_all_varnames([[ \
983
]], lt_decl_dquote_varnames); do
984
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
985
*[[\\\\\\\`\\"\\\$]]*)
986
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
989
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
994
# Fix-up fallback echo if it was mangled by the above quoting rules.
996
*'\\\[$]0 --fallback-echo"')dnl "
997
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1001
_LT_OUTPUT_LIBTOOL_INIT
1007
# This macro allows early generation of the libtool script (before
1008
# AC_OUTPUT is called), incase it is used in configure for compilation
1010
AC_DEFUN([LT_OUTPUT],
1011
[: ${CONFIG_LT=./config.lt}
1012
AC_MSG_NOTICE([creating $CONFIG_LT])
1013
cat >"$CONFIG_LT" <<_LTEOF
1015
# Generated by $as_me.
1016
# Run this file to recreate a libtool stub with the current configuration.
1019
SHELL=\${CONFIG_SHELL-$SHELL}
1022
cat >>"$CONFIG_LT" <<\_LTEOF
1026
exec AS_MESSAGE_FD>&1
1027
exec AS_MESSAGE_LOG_FD>>config.log
1030
AS_BOX([Running $as_me.])
1031
} >&AS_MESSAGE_LOG_FD
1034
\`$as_me' creates a local libtool stub from the current configuration,
1035
for use in further configure time tests before the real libtool is
1038
Usage: $[0] [[OPTIONS]]
1040
-h, --help print this help, then exit
1041
-V, --version print version number, then exit
1042
-q, --quiet do not print progress messages
1043
-d, --debug don't remove temporary files
1045
Report bugs to <bug-libtool@gnu.org>."
1048
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1049
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1050
configured by $[0], generated by m4_PACKAGE_STRING.
1052
Copyright (C) 2008 Free Software Foundation, Inc.
1053
This config.lt script is free software; the Free Software Foundation
1054
gives unlimited permision to copy, distribute and modify it."
1056
while test $[#] != 0
1059
--version | --v* | -V )
1060
echo "$lt_cl_version"; exit 0 ;;
1061
--help | --h* | -h )
1062
echo "$lt_cl_help"; exit 0 ;;
1063
--debug | --d* | -d )
1065
--quiet | --q* | --silent | --s* | -q )
1068
-*) AC_MSG_ERROR([unrecognized option: $[1]
1069
Try \`$[0] --help' for more information.]) ;;
1071
*) AC_MSG_ERROR([unrecognized argument: $[1]
1072
Try \`$[0] --help' for more information.]) ;;
1077
if $lt_cl_silent; then
1078
exec AS_MESSAGE_FD>/dev/null
1082
cat >>"$CONFIG_LT" <<_LTEOF
1083
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1086
cat >>"$CONFIG_LT" <<\_LTEOF
1087
AC_MSG_NOTICE([creating $ofile])
1088
_LT_OUTPUT_LIBTOOL_COMMANDS
1091
chmod +x "$CONFIG_LT"
1093
# configure is writing to config.log, but config.lt does its own redirection,
1094
# appending to config.log, which fails on DOS, as config.log is still kept
1095
# open by configure. Here we exec the FD to /dev/null, effectively closing
1096
# config.log, so it can be properly (re)opened and appended to by config.lt.
1097
if test "$no_create" != yes; then
1099
test "$silent" = yes &&
1100
lt_config_lt_args="$lt_config_lt_args --quiet"
1101
exec AS_MESSAGE_LOG_FD>/dev/null
1102
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1103
exec AS_MESSAGE_LOG_FD>>config.log
1104
$lt_cl_success || AS_EXIT(1)
1111
# If TAG is the built-in tag, create an initial libtool script with a
1112
# default configuration from the untagged config vars. Otherwise add code
1113
# to config.status for appending the configuration named by TAG from the
1114
# matching tagged config vars.
1115
m4_defun([_LT_CONFIG],
1116
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1117
_LT_CONFIG_SAVE_COMMANDS([
1118
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1119
m4_if(_LT_TAG, [C], [
1120
# See if we are running on zsh, and set the options which allow our
1121
# commands through without removal of \ escapes.
1122
if test -n "${ZSH_VERSION+set}" ; then
1123
setopt NO_GLOB_SUBST
1127
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1130
cat <<_LT_EOF >> "$cfgfile"
1133
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1134
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1135
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1136
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1141
# ### BEGIN LIBTOOL CONFIG
1142
_LT_LIBTOOL_CONFIG_VARS
1143
_LT_LIBTOOL_TAG_VARS
1144
# ### END LIBTOOL CONFIG
1150
cat <<\_LT_EOF >> "$cfgfile"
1151
# AIX sometimes has problems with the GCC collect2 program. For some
1152
# reason, if we set the COLLECT_NAMES environment variable, the problems
1153
# vanish in a puff of smoke.
1154
if test "X${COLLECT_NAMES+set}" != Xset; then
1156
export COLLECT_NAMES
1164
# We use sed instead of cat because bash on DJGPP gets confused if
1165
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1166
# text mode, it properly converts lines to CR/LF. This bash problem
1167
# is reportedly fixed, but why not run on old versions too?
1168
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1169
|| (rm -f "$cfgfile"; exit 1)
1171
_LT_PROG_XSI_SHELLFNS
1173
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1174
|| (rm -f "$cfgfile"; exit 1)
1176
mv -f "$cfgfile" "$ofile" ||
1177
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1180
[cat <<_LT_EOF >> "$ofile"
1182
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1183
dnl in a comment (ie after a #).
1184
# ### BEGIN LIBTOOL TAG CONFIG: $1
1185
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1186
# ### END LIBTOOL TAG CONFIG: $1
1193
TIMESTAMP='$TIMESTAMP'
1195
ofile='$ofile'], [])
1196
])dnl /_LT_CONFIG_SAVE_COMMANDS
1200
# LT_SUPPORTED_TAG(TAG)
1201
# ---------------------
1202
# Trace this macro to discover what tags are supported by the libtool
1203
# --tag option, using:
1204
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1205
AC_DEFUN([LT_SUPPORTED_TAG], [])
1208
# C support is built-in for now
1209
m4_define([_LT_LANG_C_enabled], [])
1210
m4_define([_LT_TAGS], [])
1215
# Enable libtool support for the given language if not already enabled.
1217
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1220
[C++], [_LT_LANG(CXX)],
1221
[Java], [_LT_LANG(GCJ)],
1222
[Fortran 77], [_LT_LANG(F77)],
1223
[Fortran], [_LT_LANG(FC)],
1224
[Windows Resource], [_LT_LANG(RC)],
1225
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1227
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1231
# _LT_LANG(LANGNAME)
1232
# ------------------
1233
m4_defun([_LT_LANG],
1234
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1235
[LT_SUPPORTED_TAG([$1])dnl
1236
m4_append([_LT_TAGS], [$1 ])dnl
1237
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1238
_LT_LANG_$1_CONFIG($1)])dnl
1242
# _LT_LANG_DEFAULT_CONFIG
1243
# -----------------------
1244
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1245
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1247
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1249
AC_PROVIDE_IFELSE([AC_PROG_F77],
1251
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1253
AC_PROVIDE_IFELSE([AC_PROG_FC],
1255
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1257
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1258
dnl pulling things in needlessly.
1259
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1261
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1263
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1265
[m4_ifdef([AC_PROG_GCJ],
1266
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1267
m4_ifdef([A][M_PROG_GCJ],
1268
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1269
m4_ifdef([LT_PROG_GCJ],
1270
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1272
AC_PROVIDE_IFELSE([LT_PROG_RC],
1274
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1275
])# _LT_LANG_DEFAULT_CONFIG
1278
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1279
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1280
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1281
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1282
dnl aclocal-1.4 backwards compatibility:
1283
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1284
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1285
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1286
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1291
m4_defun([_LT_TAG_COMPILER],
1292
[AC_REQUIRE([AC_PROG_CC])dnl
1294
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1295
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1296
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1297
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1299
# If no C compiler was specified, use CC.
1302
# If no C compiler flags were specified, use CFLAGS.
1303
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1305
# Allow CC to be a program name with arguments.
1307
])# _LT_TAG_COMPILER
1310
# _LT_COMPILER_BOILERPLATE
1311
# ------------------------
1312
# Check for compiler boilerplate output or warnings with
1313
# the simple compiler test code.
1314
m4_defun([_LT_COMPILER_BOILERPLATE],
1315
[m4_require([_LT_DECL_SED])dnl
1316
ac_outfile=conftest.$ac_objext
1317
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1318
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1319
_lt_compiler_boilerplate=`cat conftest.err`
1321
])# _LT_COMPILER_BOILERPLATE
1324
# _LT_LINKER_BOILERPLATE
1325
# ----------------------
1326
# Check for linker boilerplate output or warnings with
1327
# the simple link test code.
1328
m4_defun([_LT_LINKER_BOILERPLATE],
1329
[m4_require([_LT_DECL_SED])dnl
1330
ac_outfile=conftest.$ac_objext
1331
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1332
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1333
_lt_linker_boilerplate=`cat conftest.err`
1335
])# _LT_LINKER_BOILERPLATE
1337
# _LT_REQUIRED_DARWIN_CHECKS
1338
# -------------------------
1339
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1341
rhapsody* | darwin*)
1342
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1343
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1344
AC_CHECK_TOOL([LIPO], [lipo], [:])
1345
AC_CHECK_TOOL([OTOOL], [otool], [:])
1346
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1347
_LT_DECL([], [DSYMUTIL], [1],
1348
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1349
_LT_DECL([], [NMEDIT], [1],
1350
[Tool to change global to local symbols on Mac OS X])
1351
_LT_DECL([], [LIPO], [1],
1352
[Tool to manipulate fat objects and archives on Mac OS X])
1353
_LT_DECL([], [OTOOL], [1],
1354
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1355
_LT_DECL([], [OTOOL64], [1],
1356
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1358
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1359
[lt_cv_apple_cc_single_mod=no
1360
if test -z "${LT_MULTI_MODULE}"; then
1361
# By default we will add the -single_module flag. You can override
1362
# by either setting the environment variable LT_MULTI_MODULE
1363
# non-empty at configure time, or by adding -multi_module to the
1365
rm -rf libconftest.dylib*
1366
echo "int foo(void){return 1;}" > conftest.c
1367
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1368
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1369
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1370
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1372
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1373
lt_cv_apple_cc_single_mod=yes
1375
cat conftest.err >&AS_MESSAGE_LOG_FD
1377
rm -rf libconftest.dylib*
1380
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1381
[lt_cv_ld_exported_symbols_list],
1382
[lt_cv_ld_exported_symbols_list=no
1383
save_LDFLAGS=$LDFLAGS
1384
echo "_main" > conftest.sym
1385
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1386
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1387
[lt_cv_ld_exported_symbols_list=yes],
1388
[lt_cv_ld_exported_symbols_list=no])
1389
LDFLAGS="$save_LDFLAGS"
1392
rhapsody* | darwin1.[[012]])
1393
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1395
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1396
darwin*) # darwin 5.x on
1397
# if running on 10.5 or later, the deployment target defaults
1398
# to the OS version, if on x86, and 10.4, the deployment
1399
# target defaults to 10.4. Don't you love it?
1400
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1401
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1402
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1404
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1406
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1410
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1411
_lt_dar_single_mod='$single_module'
1413
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1414
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1416
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1418
if test "$DSYMUTIL" != ":"; then
1419
_lt_dsymutil='~$DSYMUTIL $lib || :'
1428
# _LT_DARWIN_LINKER_FEATURES
1429
# --------------------------
1430
# Checks for linker and compiler features on darwin
1431
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1433
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1434
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1435
_LT_TAGVAR(hardcode_direct, $1)=no
1436
_LT_TAGVAR(hardcode_automatic, $1)=yes
1437
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1438
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1439
_LT_TAGVAR(link_all_deplibs, $1)=yes
1440
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1441
case $cc_basename in
1442
ifort*) _lt_dar_can_shared=yes ;;
1443
*) _lt_dar_can_shared=$GCC ;;
1445
if test "$_lt_dar_can_shared" = "yes"; then
1446
output_verbose_link_cmd=echo
1447
_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}"
1448
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1449
_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}"
1450
_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}"
1452
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1453
_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}"
1454
_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}"
1458
_LT_TAGVAR(ld_shlibs, $1)=no
1462
# _LT_SYS_MODULE_PATH_AIX
1463
# -----------------------
1464
# Links a minimal program and checks the executable
1465
# for the system default hardcoded library path. In most cases,
1466
# this is /usr/lib:/lib, but when the MPI compilers are used
1467
# the location of the communication and MPI libs are included too.
1468
# If we don't find anything, use the default library path according
1469
# to the aix ld manual.
1470
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1471
[m4_require([_LT_DECL_SED])dnl
1472
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1473
lt_aix_libpath_sed='
1474
/Import File Strings/,/^$/ {
1480
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1481
# Check for a 64-bit object if we didn't find anything.
1482
if test -z "$aix_libpath"; then
1483
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1485
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1486
])# _LT_SYS_MODULE_PATH_AIX
1489
# _LT_SHELL_INIT(ARG)
1490
# -------------------
1491
m4_define([_LT_SHELL_INIT],
1492
[ifdef([AC_DIVERSION_NOTICE],
1493
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1494
[AC_DIVERT_PUSH(NOTICE)])
1500
# _LT_PROG_ECHO_BACKSLASH
1501
# -----------------------
1502
# Add some code to the start of the generated configure script which
1503
# will find an echo command which doesn't interpret backslashes.
1504
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1506
# Check that we are running under the correct shell.
1507
SHELL=${CONFIG_SHELL-/bin/sh}
1511
# Remove one level of quotation (which was required for Make).
1512
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1516
ECHO=${lt_ECHO-echo}
1517
if test "X[$]1" = X--no-reexec; then
1518
# Discard the --no-reexec flag, and continue.
1520
elif test "X[$]1" = X--fallback-echo; then
1521
# Avoid inline document here, it may be left over
1523
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1524
# Yippee, $ECHO works!
1527
# Restart under the correct shell.
1528
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1531
if test "X[$]1" = X--fallback-echo; then
1532
# used as fallback echo
1540
# The HP-UX ksh and POSIX shell print the target directory to stdout
1542
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1544
if test -z "$lt_ECHO"; then
1545
if test "X${echo_test_string+set}" != Xset; then
1546
# find a string as large as possible, as long as the shell can cope with it
1547
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1548
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1549
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1550
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1557
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1558
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1559
test "X$echo_testing_string" = "X$echo_test_string"; then
1562
# The Solaris, AIX, and Digital Unix default echo programs unquote
1563
# backslashes. This makes it impossible to quote backslashes using
1564
# echo "$something" | sed 's/\\/\\\\/g'
1566
# So, first we look for a working echo in the user's PATH.
1568
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1569
for dir in $PATH /usr/ucb; do
1571
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1572
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1573
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1574
test "X$echo_testing_string" = "X$echo_test_string"; then
1581
if test "X$ECHO" = Xecho; then
1582
# We didn't find a better echo, so look for alternatives.
1583
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1584
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1585
test "X$echo_testing_string" = "X$echo_test_string"; then
1586
# This shell has a builtin print -r that does the trick.
1588
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1589
test "X$CONFIG_SHELL" != X/bin/ksh; then
1590
# If we have ksh, try running configure again with it.
1591
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1592
export ORIGINAL_CONFIG_SHELL
1593
CONFIG_SHELL=/bin/ksh
1595
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1599
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1600
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1601
test "X$echo_testing_string" = "X$echo_test_string"; then
1602
# Cool, printf works
1604
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1605
test "X$echo_testing_string" = 'X\t' &&
1606
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1607
test "X$echo_testing_string" = "X$echo_test_string"; then
1608
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1610
SHELL="$CONFIG_SHELL"
1612
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1613
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1614
test "X$echo_testing_string" = 'X\t' &&
1615
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1616
test "X$echo_testing_string" = "X$echo_test_string"; then
1617
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1619
# maybe with a smaller string...
1622
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1623
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1630
if test "$prev" != 'sed 50q "[$]0"'; then
1631
echo_test_string=`eval $prev`
1632
export echo_test_string
1633
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1635
# Oops. We lost completely, so just stick with echo.
1644
# Copy echo and quote the copy suitably for passing to libtool from
1645
# the Makefile, instead of quoting the original, which is used later.
1647
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1648
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1653
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1654
_LT_DECL([], [ECHO], [1],
1655
[An echo program that does not interpret backslashes])
1656
])# _LT_PROG_ECHO_BACKSLASH
1661
m4_defun([_LT_ENABLE_LOCK],
1662
[AC_ARG_ENABLE([libtool-lock],
1663
[AS_HELP_STRING([--disable-libtool-lock],
1664
[avoid locking (might break parallel builds)])])
1665
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1667
# Some flags need to be propagated to the compiler or linker for good
1671
# Find out which ABI we are using.
1672
echo 'int i;' > conftest.$ac_ext
1673
if AC_TRY_EVAL(ac_compile); then
1674
case `/usr/bin/file conftest.$ac_objext` in
1686
# Find out which ABI we are using.
1687
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1688
if AC_TRY_EVAL(ac_compile); then
1689
if test "$lt_cv_prog_gnu_ld" = yes; then
1690
case `/usr/bin/file conftest.$ac_objext` in
1692
LD="${LD-ld} -melf32bsmip"
1695
LD="${LD-ld} -melf32bmipn32"
1698
LD="${LD-ld} -melf64bmip"
1702
case `/usr/bin/file conftest.$ac_objext` in
1718
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1719
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1720
# Find out which ABI we are using.
1721
echo 'int i;' > conftest.$ac_ext
1722
if AC_TRY_EVAL(ac_compile); then
1723
case `/usr/bin/file conftest.o` in
1726
x86_64-*kfreebsd*-gnu)
1727
LD="${LD-ld} -m elf_i386_fbsd"
1730
LD="${LD-ld} -m elf_i386"
1732
ppc64-*linux*|powerpc64-*linux*)
1733
LD="${LD-ld} -m elf32ppclinux"
1736
LD="${LD-ld} -m elf_s390"
1739
LD="${LD-ld} -m elf32_sparc"
1745
x86_64-*kfreebsd*-gnu)
1746
LD="${LD-ld} -m elf_x86_64_fbsd"
1749
LD="${LD-ld} -m elf_x86_64"
1751
ppc*-*linux*|powerpc*-*linux*)
1752
LD="${LD-ld} -m elf64ppc"
1754
s390*-*linux*|s390*-*tpf*)
1755
LD="${LD-ld} -m elf64_s390"
1758
LD="${LD-ld} -m elf64_sparc"
1768
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1769
SAVE_CFLAGS="$CFLAGS"
1770
CFLAGS="$CFLAGS -belf"
1771
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1773
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1775
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1776
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1777
CFLAGS="$SAVE_CFLAGS"
1781
# Find out which ABI we are using.
1782
echo 'int i;' > conftest.$ac_ext
1783
if AC_TRY_EVAL(ac_compile); then
1784
case `/usr/bin/file conftest.o` in
1786
case $lt_cv_prog_gnu_ld in
1787
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1789
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1801
need_locks="$enable_libtool_lock"
1805
# _LT_CMD_OLD_ARCHIVE
1806
# -------------------
1807
m4_defun([_LT_CMD_OLD_ARCHIVE],
1808
[AC_CHECK_TOOL(AR, ar, false)
1809
test -z "$AR" && AR=ar
1810
test -z "$AR_FLAGS" && AR_FLAGS=cru
1811
_LT_DECL([], [AR], [1], [The archiver])
1812
_LT_DECL([], [AR_FLAGS], [1])
1814
AC_CHECK_TOOL(STRIP, strip, :)
1815
test -z "$STRIP" && STRIP=:
1816
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1818
AC_CHECK_TOOL(RANLIB, ranlib, :)
1819
test -z "$RANLIB" && RANLIB=:
1820
_LT_DECL([], [RANLIB], [1],
1821
[Commands used to install an old-style archive])
1823
# Determine commands to create old-style static archives.
1824
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1825
old_postinstall_cmds='chmod 644 $oldlib'
1826
old_postuninstall_cmds=
1828
if test -n "$RANLIB"; then
1831
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1834
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1837
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1839
_LT_DECL([], [old_postinstall_cmds], [2])
1840
_LT_DECL([], [old_postuninstall_cmds], [2])
1841
_LT_TAGDECL([], [old_archive_cmds], [2],
1842
[Commands used to build an old-style archive])
1843
])# _LT_CMD_OLD_ARCHIVE
1846
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1847
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1848
# ----------------------------------------------------------------
1849
# Check whether the given compiler option works
1850
AC_DEFUN([_LT_COMPILER_OPTION],
1851
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1852
m4_require([_LT_DECL_SED])dnl
1853
AC_CACHE_CHECK([$1], [$2],
1855
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1856
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1857
lt_compiler_flag="$3"
1858
# Insert the option either (1) after the last *FLAGS variable, or
1859
# (2) before a word containing "conftest.", or (3) at the end.
1860
# Note that $ac_compile itself does not contain backslashes and begins
1861
# with a dollar sign (not a hyphen), so the echo should work correctly.
1862
# The option is referenced via a variable to avoid confusing sed.
1863
lt_compile=`echo "$ac_compile" | $SED \
1864
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1865
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1866
-e 's:$: $lt_compiler_flag:'`
1867
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1868
(eval "$lt_compile" 2>conftest.err)
1870
cat conftest.err >&AS_MESSAGE_LOG_FD
1871
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1872
if (exit $ac_status) && test -s "$ac_outfile"; then
1873
# The compiler can only warn and ignore the option if not recognized
1874
# So say no if there are warnings other than the usual output.
1875
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1876
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1877
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1884
if test x"[$]$2" = xyes; then
1885
m4_if([$5], , :, [$5])
1887
m4_if([$6], , :, [$6])
1889
])# _LT_COMPILER_OPTION
1892
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1893
dnl aclocal-1.4 backwards compatibility:
1894
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1897
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1898
# [ACTION-SUCCESS], [ACTION-FAILURE])
1899
# ----------------------------------------------------
1900
# Check whether the given linker option works
1901
AC_DEFUN([_LT_LINKER_OPTION],
1902
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1903
m4_require([_LT_DECL_SED])dnl
1904
AC_CACHE_CHECK([$1], [$2],
1906
save_LDFLAGS="$LDFLAGS"
1907
LDFLAGS="$LDFLAGS $3"
1908
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1909
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1910
# The linker can only warn and ignore the option if not recognized
1911
# So say no if there are warnings
1912
if test -s conftest.err; then
1913
# Append any errors to the config.log.
1914
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1915
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1916
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1917
if diff conftest.exp conftest.er2 >/dev/null; then
1925
LDFLAGS="$save_LDFLAGS"
1928
if test x"[$]$2" = xyes; then
1929
m4_if([$4], , :, [$4])
1931
m4_if([$5], , :, [$5])
1933
])# _LT_LINKER_OPTION
1936
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1937
dnl aclocal-1.4 backwards compatibility:
1938
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1943
AC_DEFUN([LT_CMD_MAX_LEN],
1944
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1945
# find the maximum length of command line arguments
1946
AC_MSG_CHECKING([the maximum length of command line arguments])
1947
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1953
# On DJGPP, this test can blow up pretty badly due to problems in libc
1954
# (any single argument exceeding 2000 bytes causes a buffer overrun
1955
# during glob expansion). Even if it were fixed, the result of this
1956
# check would be larger than it should be.
1957
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1961
# Under GNU Hurd, this test is not required because there is
1962
# no limit to the length of command line arguments.
1963
# Libtool will interpret -1 as no limit whatsoever
1964
lt_cv_sys_max_cmd_len=-1;
1967
cygwin* | mingw* | cegcc*)
1968
# On Win9x/ME, this test blows up -- it succeeds, but takes
1969
# about 5 minutes as the teststring grows exponentially.
1970
# Worse, since 9x/ME are not pre-emptively multitasking,
1971
# you end up with a "frozen" computer, even though with patience
1972
# the test eventually succeeds (with a max line length of 256k).
1973
# Instead, let's just punt: use the minimum linelength reported by
1974
# all of the supported platforms: 8192 (on NT/2K/XP).
1975
lt_cv_sys_max_cmd_len=8192;
1979
# On AmigaOS with pdksh, this test takes hours, literally.
1980
# So we just punt and use a minimum line length of 8192.
1981
lt_cv_sys_max_cmd_len=8192;
1984
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1985
# This has been around since 386BSD, at least. Likely further.
1986
if test -x /sbin/sysctl; then
1987
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1988
elif test -x /usr/sbin/sysctl; then
1989
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1991
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1993
# And add a safety zone
1994
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1995
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1999
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2000
lt_cv_sys_max_cmd_len=196608
2004
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2005
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2006
# nice to cause kernel panics so lets avoid the loop below.
2007
# First set a reasonable default.
2008
lt_cv_sys_max_cmd_len=16384
2010
if test -x /sbin/sysconfig; then
2011
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2012
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2017
lt_cv_sys_max_cmd_len=102400
2019
sysv5* | sco5v6* | sysv4.2uw2*)
2020
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2021
if test -n "$kargmax"; then
2022
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2024
lt_cv_sys_max_cmd_len=32768
2028
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2029
if test -n "$lt_cv_sys_max_cmd_len"; then
2030
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2031
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2033
# Make teststring a little bigger before we do anything with it.
2034
# a 1K string should be a reasonable start.
2035
for i in 1 2 3 4 5 6 7 8 ; do
2036
teststring=$teststring$teststring
2038
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2039
# If test is not a shell built-in, we'll probably end up computing a
2040
# maximum length that is only half of the actual maximum length, but
2042
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2043
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2044
test $i != 17 # 1/2 MB should be enough
2047
teststring=$teststring$teststring
2049
# Only check the string length outside the loop.
2050
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2052
# Add a significant safety factor because C++ compilers can tack on
2053
# massive amounts of additional arguments before passing them to the
2054
# linker. It appears as though 1/2 is a usable value.
2055
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2060
if test -n $lt_cv_sys_max_cmd_len ; then
2061
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2065
max_cmd_len=$lt_cv_sys_max_cmd_len
2066
_LT_DECL([], [max_cmd_len], [0],
2067
[What is the maximum length of a command?])
2071
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2072
dnl aclocal-1.4 backwards compatibility:
2073
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2078
m4_defun([_LT_HEADER_DLFCN],
2079
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2080
])# _LT_HEADER_DLFCN
2083
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2084
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2085
# ----------------------------------------------------------------
2086
m4_defun([_LT_TRY_DLOPEN_SELF],
2087
[m4_require([_LT_HEADER_DLFCN])dnl
2088
if test "$cross_compiling" = yes; then :
2091
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2092
lt_status=$lt_dlunknown
2093
cat > conftest.$ac_ext <<_LT_EOF
2094
[#line __oline__ "configure"
2095
#include "confdefs.h"
2104
# define LT_DLGLOBAL RTLD_GLOBAL
2107
# define LT_DLGLOBAL DL_GLOBAL
2109
# define LT_DLGLOBAL 0
2113
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2114
find out it does not work in some platform. */
2115
#ifndef LT_DLLAZY_OR_NOW
2117
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2120
# define LT_DLLAZY_OR_NOW DL_LAZY
2123
# define LT_DLLAZY_OR_NOW RTLD_NOW
2126
# define LT_DLLAZY_OR_NOW DL_NOW
2128
# define LT_DLLAZY_OR_NOW 0
2135
void fnord() { int i=42;}
2138
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2139
int status = $lt_dlunknown;
2143
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2144
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2145
/* dlclose (self); */
2153
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2154
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2157
x$lt_dlno_uscore) $1 ;;
2158
x$lt_dlneed_uscore) $2 ;;
2159
x$lt_dlunknown|x*) $3 ;;
2162
# compilation failed
2167
])# _LT_TRY_DLOPEN_SELF
2170
# LT_SYS_DLOPEN_SELF
2171
# ------------------
2172
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2173
[m4_require([_LT_HEADER_DLFCN])dnl
2174
if test "x$enable_dlopen" != xyes; then
2175
enable_dlopen=unknown
2176
enable_dlopen_self=unknown
2177
enable_dlopen_self_static=unknown
2184
lt_cv_dlopen="load_add_on"
2186
lt_cv_dlopen_self=yes
2189
mingw* | pw32* | cegcc*)
2190
lt_cv_dlopen="LoadLibrary"
2195
lt_cv_dlopen="dlopen"
2200
# if libdl is installed we need to link against it
2201
AC_CHECK_LIB([dl], [dlopen],
2202
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2205
lt_cv_dlopen_self=yes
2210
AC_CHECK_FUNC([shl_load],
2211
[lt_cv_dlopen="shl_load"],
2212
[AC_CHECK_LIB([dld], [shl_load],
2213
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2214
[AC_CHECK_FUNC([dlopen],
2215
[lt_cv_dlopen="dlopen"],
2216
[AC_CHECK_LIB([dl], [dlopen],
2217
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2218
[AC_CHECK_LIB([svld], [dlopen],
2219
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2220
[AC_CHECK_LIB([dld], [dld_link],
2221
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2230
if test "x$lt_cv_dlopen" != xno; then
2236
case $lt_cv_dlopen in
2238
save_CPPFLAGS="$CPPFLAGS"
2239
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2241
save_LDFLAGS="$LDFLAGS"
2242
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2245
LIBS="$lt_cv_dlopen_libs $LIBS"
2247
AC_CACHE_CHECK([whether a program can dlopen itself],
2248
lt_cv_dlopen_self, [dnl
2249
_LT_TRY_DLOPEN_SELF(
2250
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2251
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2254
if test "x$lt_cv_dlopen_self" = xyes; then
2255
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2256
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2257
lt_cv_dlopen_self_static, [dnl
2258
_LT_TRY_DLOPEN_SELF(
2259
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2260
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2264
CPPFLAGS="$save_CPPFLAGS"
2265
LDFLAGS="$save_LDFLAGS"
2270
case $lt_cv_dlopen_self in
2271
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2272
*) enable_dlopen_self=unknown ;;
2275
case $lt_cv_dlopen_self_static in
2276
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2277
*) enable_dlopen_self_static=unknown ;;
2280
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2281
[Whether dlopen is supported])
2282
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2283
[Whether dlopen of programs is supported])
2284
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2285
[Whether dlopen of statically linked programs is supported])
2286
])# LT_SYS_DLOPEN_SELF
2289
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2290
dnl aclocal-1.4 backwards compatibility:
2291
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2294
# _LT_COMPILER_C_O([TAGNAME])
2295
# ---------------------------
2296
# Check to see if options -c and -o are simultaneously supported by compiler.
2297
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2298
m4_defun([_LT_COMPILER_C_O],
2299
[m4_require([_LT_DECL_SED])dnl
2300
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2301
m4_require([_LT_TAG_COMPILER])dnl
2302
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2303
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2304
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2305
$RM -r conftest 2>/dev/null
2309
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2311
lt_compiler_flag="-o out/conftest2.$ac_objext"
2312
# Insert the option either (1) after the last *FLAGS variable, or
2313
# (2) before a word containing "conftest.", or (3) at the end.
2314
# Note that $ac_compile itself does not contain backslashes and begins
2315
# with a dollar sign (not a hyphen), so the echo should work correctly.
2316
lt_compile=`echo "$ac_compile" | $SED \
2317
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2318
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2319
-e 's:$: $lt_compiler_flag:'`
2320
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2321
(eval "$lt_compile" 2>out/conftest.err)
2323
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2324
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2325
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2327
# The compiler can only warn and ignore the option if not recognized
2328
# So say no if there are warnings
2329
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2330
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2331
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2332
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2335
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2337
# SGI C++ compiler will create directory out/ii_files/ for
2338
# template instantiation
2339
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2340
$RM out/* && rmdir out
2345
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2346
[Does compiler simultaneously support -c and -o options?])
2347
])# _LT_COMPILER_C_O
2350
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2351
# ----------------------------------
2352
# Check to see if we can do hard links to lock some files if needed
2353
m4_defun([_LT_COMPILER_FILE_LOCKS],
2354
[m4_require([_LT_ENABLE_LOCK])dnl
2355
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2356
_LT_COMPILER_C_O([$1])
2358
hard_links="nottested"
2359
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2360
# do not overwrite the value of need_locks provided by the user
2361
AC_MSG_CHECKING([if we can lock with hard links])
2364
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2366
ln conftest.a conftest.b 2>&5 || hard_links=no
2367
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2368
AC_MSG_RESULT([$hard_links])
2369
if test "$hard_links" = no; then
2370
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2376
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2377
])# _LT_COMPILER_FILE_LOCKS
2382
m4_defun([_LT_CHECK_OBJDIR],
2383
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2384
[rm -f .libs 2>/dev/null
2385
mkdir .libs 2>/dev/null
2386
if test -d .libs; then
2389
# MS-DOS does not allow filenames that begin with a dot.
2392
rmdir .libs 2>/dev/null])
2393
objdir=$lt_cv_objdir
2394
_LT_DECL([], [objdir], [0],
2395
[The name of the directory that contains temporary libtool files])dnl
2396
m4_pattern_allow([LT_OBJDIR])dnl
2397
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2398
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2399
])# _LT_CHECK_OBJDIR
2402
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2403
# --------------------------------------
2404
# Check hardcoding attributes.
2405
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2406
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2407
_LT_TAGVAR(hardcode_action, $1)=
2408
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2409
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2410
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2412
# We can hardcode non-existent directories.
2413
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2414
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2415
# have to relink, otherwise we might link with an installed library
2416
# when we should be linking with a yet-to-be-installed one
2417
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2418
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2419
# Linking always hardcodes the temporary library directory.
2420
_LT_TAGVAR(hardcode_action, $1)=relink
2422
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2423
_LT_TAGVAR(hardcode_action, $1)=immediate
2426
# We cannot hardcode anything, or else we can only hardcode existing
2428
_LT_TAGVAR(hardcode_action, $1)=unsupported
2430
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2432
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2433
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2434
# Fast installation is not supported
2435
enable_fast_install=no
2436
elif test "$shlibpath_overrides_runpath" = yes ||
2437
test "$enable_shared" = no; then
2438
# Fast installation is not necessary
2439
enable_fast_install=needless
2441
_LT_TAGDECL([], [hardcode_action], [0],
2442
[How to hardcode a shared library path into an executable])
2443
])# _LT_LINKER_HARDCODE_LIBPATH
2448
m4_defun([_LT_CMD_STRIPLIB],
2449
[m4_require([_LT_DECL_EGREP])
2452
AC_MSG_CHECKING([whether stripping libraries is possible])
2453
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2454
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2455
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2456
AC_MSG_RESULT([yes])
2458
# FIXME - insert some real tests, host_os isn't really good enough
2461
if test -n "$STRIP" ; then
2462
striplib="$STRIP -x"
2463
old_striplib="$STRIP -S"
2464
AC_MSG_RESULT([yes])
2474
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2475
_LT_DECL([], [striplib], [1])
2476
])# _LT_CMD_STRIPLIB
2479
# _LT_SYS_DYNAMIC_LINKER([TAG])
2480
# -----------------------------
2481
# PORTME Fill in your ld.so characteristics
2482
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2483
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2484
m4_require([_LT_DECL_EGREP])dnl
2485
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2486
m4_require([_LT_DECL_OBJDUMP])dnl
2487
m4_require([_LT_DECL_SED])dnl
2488
AC_MSG_CHECKING([dynamic linker characteristics])
2491
if test "$GCC" = yes; then
2493
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2494
*) lt_awk_arg="/^libraries:/" ;;
2496
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2497
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2498
# if the path contains ";" then we assume it to be the separator
2499
# otherwise default to the standard path separator (i.e. ":") - it is
2500
# assumed that no part of a normal pathname contains ";" but that should
2501
# okay in the real world where ";" in dirpaths is itself problematic.
2502
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2504
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2506
# Ok, now we have the path, separated by spaces, we can step through it
2507
# and add multilib dir if necessary.
2508
lt_tmp_lt_search_path_spec=
2509
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2510
for lt_sys_path in $lt_search_path_spec; do
2511
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2512
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2514
test -d "$lt_sys_path" && \
2515
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2518
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2519
BEGIN {RS=" "; FS="/|\n";} {
2522
for (lt_i = NF; lt_i > 0; lt_i--) {
2523
if ($lt_i != "" && $lt_i != ".") {
2524
if ($lt_i == "..") {
2527
if (lt_count == 0) {
2528
lt_foo="/" $lt_i lt_foo;
2535
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2536
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2538
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2540
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2543
libname_spec='lib$name'
2551
shlibpath_overrides_runpath=unknown
2553
dynamic_linker="$host_os ld.so"
2554
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2555
need_lib_prefix=unknown
2556
hardcode_into_libs=no
2558
# when you set need_version to no, make sure it does not cause -set_version
2559
# flags to be left without arguments
2560
need_version=unknown
2565
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2566
shlibpath_var=LIBPATH
2568
# AIX 3 has no versioning support, so we append a major version to the name.
2569
soname_spec='${libname}${release}${shared_ext}$major'
2576
hardcode_into_libs=yes
2577
if test "$host_cpu" = ia64; then
2578
# AIX 5 supports IA64
2579
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2580
shlibpath_var=LD_LIBRARY_PATH
2582
# With GCC up to 2.95.x, collect2 would create an import file
2583
# for dependence libraries. The import file would start with
2584
# the line `#! .'. This would cause the generated library to
2585
# depend on `.', always an invalid library. This was fixed in
2586
# development snapshots of GCC prior to 3.0.
2588
aix4 | aix4.[[01]] | aix4.[[01]].*)
2589
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2591
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2598
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2599
# soname into executable. Probably we can add versioning support to
2600
# collect2, so additional links can be useful in future.
2601
if test "$aix_use_runtimelinking" = yes; then
2602
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2603
# instead of lib<name>.a to let people know that these are not
2604
# typical AIX shared libraries.
2605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2607
# We preserve .a as extension for shared libraries through AIX4.2
2608
# and later when we are not doing run time linking.
2609
library_names_spec='${libname}${release}.a $libname.a'
2610
soname_spec='${libname}${release}${shared_ext}$major'
2612
shlibpath_var=LIBPATH
2619
# Since July 2007 AmigaOS4 officially supports .so libraries.
2620
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2624
library_names_spec='$libname.ixlibrary $libname.a'
2625
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2626
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'
2632
library_names_spec='${libname}${shared_ext}'
2633
dynamic_linker="$host_os ld.so"
2634
shlibpath_var=LIBRARY_PATH
2640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2641
soname_spec='${libname}${release}${shared_ext}$major'
2642
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2643
shlibpath_var=LD_LIBRARY_PATH
2644
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2645
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2646
# the default ld.so.conf also contains /usr/contrib/lib and
2647
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2648
# libtool to hard-code these into programs
2651
cygwin* | mingw* | pw32* | cegcc*)
2652
version_type=windows
2657
case $GCC,$host_os in
2658
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2659
library_names_spec='$libname.dll.a'
2660
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2661
postinstall_cmds='base_file=`basename \${file}`~
2662
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2663
dldir=$destdir/`dirname \$dlpath`~
2664
test -d \$dldir || mkdir -p \$dldir~
2665
$install_prog $dir/$dlname \$dldir/$dlname~
2666
chmod a+x \$dldir/$dlname~
2667
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2668
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2670
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2671
dlpath=$dir/\$dldll~
2673
shlibpath_overrides_runpath=yes
2677
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2678
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2679
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2682
# MinGW DLLs use traditional 'lib' prefix
2683
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2684
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2685
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2686
# It is most probably a Windows format PATH printed by
2687
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2688
# path with ; separators, and with drive letters. We can handle the
2689
# drive letters (cygwin fileutils understands them), so leave them,
2690
# especially as we might pass files found there to a mingw objdump,
2691
# which wouldn't understand a cygwinified path. Ahh.
2692
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2694
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2698
# pw32 DLLs use 'pw' prefix rather than 'lib'
2699
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2705
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2708
dynamic_linker='Win32 ld.exe'
2709
# FIXME: first we should search . and the directory the executable is in
2713
darwin* | rhapsody*)
2714
dynamic_linker="$host_os dyld"
2718
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2719
soname_spec='${libname}${release}${major}$shared_ext'
2720
shlibpath_overrides_runpath=yes
2721
shlibpath_var=DYLD_LIBRARY_PATH
2722
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2724
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2725
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2733
soname_spec='${libname}${release}${shared_ext}$major'
2734
shlibpath_var=LD_LIBRARY_PATH
2741
freebsd* | dragonfly*)
2742
# DragonFly does not have aout. When/if they implement a new
2743
# versioning mechanism, adjust this.
2744
if test -x /usr/bin/objformat; then
2745
objformat=`/usr/bin/objformat`
2748
freebsd[[123]]*) objformat=aout ;;
2752
version_type=freebsd-$objformat
2753
case $version_type in
2755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2760
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2764
shlibpath_var=LD_LIBRARY_PATH
2767
shlibpath_overrides_runpath=yes
2769
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2770
shlibpath_overrides_runpath=yes
2771
hardcode_into_libs=yes
2773
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2774
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2775
shlibpath_overrides_runpath=no
2776
hardcode_into_libs=yes
2778
*) # from 4.6 on, and DragonFly
2779
shlibpath_overrides_runpath=yes
2780
hardcode_into_libs=yes
2789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2790
soname_spec='${libname}${release}${shared_ext}$major'
2791
shlibpath_var=LD_LIBRARY_PATH
2792
hardcode_into_libs=yes
2795
hpux9* | hpux10* | hpux11*)
2796
# Give a soname corresponding to the major version so that dld.sl refuses to
2797
# link against other versions.
2804
hardcode_into_libs=yes
2805
dynamic_linker="$host_os dld.so"
2806
shlibpath_var=LD_LIBRARY_PATH
2807
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2809
soname_spec='${libname}${release}${shared_ext}$major'
2810
if test "X$HPUX_IA64_MODE" = X32; then
2811
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2813
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2815
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2819
hardcode_into_libs=yes
2820
dynamic_linker="$host_os dld.sl"
2821
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2822
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2824
soname_spec='${libname}${release}${shared_ext}$major'
2825
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2826
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2830
dynamic_linker="$host_os dld.sl"
2831
shlibpath_var=SHLIB_PATH
2832
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2834
soname_spec='${libname}${release}${shared_ext}$major'
2837
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2838
postinstall_cmds='chmod 555 $lib'
2845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2846
soname_spec='${libname}${release}${shared_ext}$major'
2847
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2848
shlibpath_var=LD_LIBRARY_PATH
2849
shlibpath_overrides_runpath=no
2850
hardcode_into_libs=yes
2853
irix5* | irix6* | nonstopux*)
2855
nonstopux*) version_type=nonstopux ;;
2857
if test "$lt_cv_prog_gnu_ld" = yes; then
2865
soname_spec='${libname}${release}${shared_ext}$major'
2866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2868
irix5* | nonstopux*)
2872
case $LD in # libtool.m4 will add one of these switches to LD
2873
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2874
libsuff= shlibsuff= libmagic=32-bit;;
2875
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2876
libsuff=32 shlibsuff=N32 libmagic=N32;;
2877
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2878
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2879
*) libsuff= shlibsuff= libmagic=never-match;;
2883
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2884
shlibpath_overrides_runpath=no
2885
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2886
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2887
hardcode_into_libs=yes
2890
# No shared lib support for Linux oldld, aout, or coff.
2891
linux*oldld* | linux*aout* | linux*coff*)
2895
# This must be Linux ELF.
2896
linux* | k*bsd*-gnu)
2900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2901
soname_spec='${libname}${release}${shared_ext}$major'
2902
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2903
shlibpath_var=LD_LIBRARY_PATH
2904
shlibpath_overrides_runpath=no
2905
# Some binutils ld are patched to set DT_RUNPATH
2906
save_LDFLAGS=$LDFLAGS
2908
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2909
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2910
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2911
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2912
[shlibpath_overrides_runpath=yes])])
2913
LDFLAGS=$save_LDFLAGS
2916
# This implies no fast_install, which is unacceptable.
2917
# Some rework will be needed to allow for fast_install
2918
# before this can be enabled.
2919
hardcode_into_libs=yes
2921
# Append ld.so.conf contents to the search path
2922
if test -f /etc/ld.so.conf; then
2923
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' ' '`
2924
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2927
# We used to test for /lib/ld.so.1 and disable shared libraries on
2928
# powerpc, because MkLinux only supported shared libraries with the
2929
# GNU dynamic linker. Since this was broken with cross compilers,
2930
# most powerpc-linux boxes support dynamic linking these days and
2931
# people can always --disable-shared, the test was removed, and we
2932
# assume the GNU/Linux dynamic linker is in use.
2933
dynamic_linker='GNU/Linux ld.so'
2940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2941
soname_spec='${libname}${release}${shared_ext}$major'
2942
shlibpath_var=LD_LIBRARY_PATH
2943
shlibpath_overrides_runpath=no
2944
hardcode_into_libs=yes
2945
dynamic_linker='NetBSD ld.elf_so'
2952
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2954
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2955
dynamic_linker='NetBSD (a.out) ld.so'
2957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2958
soname_spec='${libname}${release}${shared_ext}$major'
2959
dynamic_linker='NetBSD ld.elf_so'
2961
shlibpath_var=LD_LIBRARY_PATH
2962
shlibpath_overrides_runpath=yes
2963
hardcode_into_libs=yes
2968
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2969
shlibpath_var=LD_LIBRARY_PATH
2970
shlibpath_overrides_runpath=yes
2977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2978
soname_spec='${libname}${release}${shared_ext}$major'
2979
shlibpath_var=LD_LIBRARY_PATH
2980
shlibpath_overrides_runpath=no
2981
hardcode_into_libs=yes
2982
dynamic_linker='ldqnx.so'
2987
sys_lib_dlsearch_path_spec="/usr/lib"
2989
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2991
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2992
*) need_version=no ;;
2994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2995
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2996
shlibpath_var=LD_LIBRARY_PATH
2997
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2999
openbsd2.[[89]] | openbsd2.[[89]].*)
3000
shlibpath_overrides_runpath=no
3003
shlibpath_overrides_runpath=yes
3007
shlibpath_overrides_runpath=yes
3012
libname_spec='$name'
3015
library_names_spec='$libname${shared_ext} $libname.a'
3016
dynamic_linker='OS/2 ld.exe'
3017
shlibpath_var=LIBPATH
3020
osf3* | osf4* | osf5*)
3024
soname_spec='${libname}${release}${shared_ext}$major'
3025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3026
shlibpath_var=LD_LIBRARY_PATH
3027
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3028
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3040
soname_spec='${libname}${release}${shared_ext}$major'
3041
shlibpath_var=LD_LIBRARY_PATH
3042
shlibpath_overrides_runpath=yes
3043
hardcode_into_libs=yes
3044
# ldd complains unless libraries are executable
3045
postinstall_cmds='chmod +x $lib'
3050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3051
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3052
shlibpath_var=LD_LIBRARY_PATH
3053
shlibpath_overrides_runpath=yes
3054
if test "$with_gnu_ld" = yes; then
3062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3063
soname_spec='${libname}${release}${shared_ext}$major'
3064
shlibpath_var=LD_LIBRARY_PATH
3065
case $host_vendor in
3067
shlibpath_overrides_runpath=no
3069
runpath_var=LD_RUN_PATH
3077
shlibpath_overrides_runpath=no
3078
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3084
if test -d /usr/nec ;then
3086
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3087
soname_spec='$libname${shared_ext}.$major'
3088
shlibpath_var=LD_LIBRARY_PATH
3092
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3093
version_type=freebsd-elf
3096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3097
soname_spec='${libname}${release}${shared_ext}$major'
3098
shlibpath_var=LD_LIBRARY_PATH
3099
shlibpath_overrides_runpath=yes
3100
hardcode_into_libs=yes
3101
if test "$with_gnu_ld" = yes; then
3102
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3104
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3107
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3111
sys_lib_dlsearch_path_spec='/usr/lib'
3115
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3120
shlibpath_var=LD_LIBRARY_PATH
3121
shlibpath_overrides_runpath=no
3122
hardcode_into_libs=yes
3127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3128
soname_spec='${libname}${release}${shared_ext}$major'
3129
shlibpath_var=LD_LIBRARY_PATH
3136
AC_MSG_RESULT([$dynamic_linker])
3137
test "$dynamic_linker" = no && can_build_shared=no
3139
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3140
if test "$GCC" = yes; then
3141
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3144
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3145
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3147
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3148
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3151
_LT_DECL([], [variables_saved_for_relink], [1],
3152
[Variables whose values should be saved in libtool wrapper scripts and
3153
restored at link time])
3154
_LT_DECL([], [need_lib_prefix], [0],
3155
[Do we need the "lib" prefix for modules?])
3156
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3157
_LT_DECL([], [version_type], [0], [Library versioning type])
3158
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3159
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3160
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3161
[Is shlibpath searched before the hard-coded library search path?])
3162
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3163
_LT_DECL([], [library_names_spec], [1],
3164
[[List of archive names. First name is the real one, the rest are links.
3165
The last name is the one that the linker finds with -lNAME]])
3166
_LT_DECL([], [soname_spec], [1],
3167
[[The coded name of the library, if different from the real name]])
3168
_LT_DECL([], [postinstall_cmds], [2],
3169
[Command to use after installation of a shared archive])
3170
_LT_DECL([], [postuninstall_cmds], [2],
3171
[Command to use after uninstallation of a shared archive])
3172
_LT_DECL([], [finish_cmds], [2],
3173
[Commands used to finish a libtool library installation in a directory])
3174
_LT_DECL([], [finish_eval], [1],
3175
[[As "finish_cmds", except a single script fragment to be evaled but
3177
_LT_DECL([], [hardcode_into_libs], [0],
3178
[Whether we should hardcode library paths into libraries])
3179
_LT_DECL([], [sys_lib_search_path_spec], [2],
3180
[Compile-time system search path for libraries])
3181
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3182
[Run-time system search path for libraries])
3183
])# _LT_SYS_DYNAMIC_LINKER
3186
# _LT_PATH_TOOL_PREFIX(TOOL)
3187
# --------------------------
3188
# find a file program which can recognize shared library
3189
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3190
[m4_require([_LT_DECL_EGREP])dnl
3191
AC_MSG_CHECKING([for $1])
3192
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3194
[[\\/*] | ?:[\\/]*])
3195
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3198
lt_save_MAGIC_CMD="$MAGIC_CMD"
3199
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3200
dnl $ac_dummy forces splitting on constant user-supplied paths.
3201
dnl POSIX.2 word splitting is done only on the output of word expansions,
3202
dnl not every word. This closes a longstanding sh security hole.
3203
ac_dummy="m4_if([$2], , $PATH, [$2])"
3204
for ac_dir in $ac_dummy; do
3206
test -z "$ac_dir" && ac_dir=.
3207
if test -f $ac_dir/$1; then
3208
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3209
if test -n "$file_magic_test_file"; then
3210
case $deplibs_check_method in
3212
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3213
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3214
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3215
$EGREP "$file_magic_regex" > /dev/null; then
3220
*** Warning: the command libtool uses to detect shared libraries,
3221
*** $file_magic_cmd, produces output that libtool cannot recognize.
3222
*** The result is that libtool may fail to recognize shared libraries
3223
*** as such. This will affect the creation of libtool libraries that
3224
*** depend on shared libraries, but programs linked with such libtool
3225
*** libraries will work regardless of this problem. Nevertheless, you
3226
*** may want to report the problem to your system manager and/or to
3227
*** bug-libtool@gnu.org
3237
MAGIC_CMD="$lt_save_MAGIC_CMD"
3240
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3241
if test -n "$MAGIC_CMD"; then
3242
AC_MSG_RESULT($MAGIC_CMD)
3246
_LT_DECL([], [MAGIC_CMD], [0],
3247
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3248
])# _LT_PATH_TOOL_PREFIX
3251
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3252
dnl aclocal-1.4 backwards compatibility:
3253
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3258
# find a file program which can recognize a shared library
3259
m4_defun([_LT_PATH_MAGIC],
3260
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3261
if test -z "$lt_cv_path_MAGIC_CMD"; then
3262
if test -n "$ac_tool_prefix"; then
3263
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3273
# find the pathname to the GNU or non-GNU linker
3274
AC_DEFUN([LT_PATH_LD],
3275
[AC_REQUIRE([AC_PROG_CC])dnl
3276
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3277
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3278
m4_require([_LT_DECL_SED])dnl
3279
m4_require([_LT_DECL_EGREP])dnl
3281
AC_ARG_WITH([gnu-ld],
3282
[AS_HELP_STRING([--with-gnu-ld],
3283
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3284
[test "$withval" = no || with_gnu_ld=yes],
3285
[with_gnu_ld=no])dnl
3288
if test "$GCC" = yes; then
3289
# Check if gcc -print-prog-name=ld gives a path.
3290
AC_MSG_CHECKING([for ld used by $CC])
3293
# gcc leaves a trailing carriage return which upsets mingw
3294
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3296
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3299
# Accept absolute paths.
3300
[[\\/]]* | ?:[[\\/]]*)
3301
re_direlt='/[[^/]][[^/]]*/\.\./'
3302
# Canonicalize the pathname of ld
3303
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3304
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3305
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3307
test -z "$LD" && LD="$ac_prog"
3310
# If it fails, then pretend we aren't using GCC.
3314
# If it is relative, then search for the first ld in PATH.
3318
elif test "$with_gnu_ld" = yes; then
3319
AC_MSG_CHECKING([for GNU ld])
3321
AC_MSG_CHECKING([for non-GNU ld])
3323
AC_CACHE_VAL(lt_cv_path_LD,
3324
[if test -z "$LD"; then
3325
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3326
for ac_dir in $PATH; do
3328
test -z "$ac_dir" && ac_dir=.
3329
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3330
lt_cv_path_LD="$ac_dir/$ac_prog"
3331
# Check to see if the program is GNU ld. I'd rather use --version,
3332
# but apparently some variants of GNU ld only accept -v.
3333
# Break only if it was the GNU/non-GNU ld that we prefer.
3334
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3335
*GNU* | *'with BFD'*)
3336
test "$with_gnu_ld" != no && break
3339
test "$with_gnu_ld" != yes && break
3346
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3349
if test -n "$LD"; then
3354
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3358
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3362
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3363
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3364
dnl aclocal-1.4 backwards compatibility:
3365
dnl AC_DEFUN([AM_PROG_LD], [])
3366
dnl AC_DEFUN([AC_PROG_LD], [])
3371
m4_defun([_LT_PATH_LD_GNU],
3372
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3373
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3374
case `$LD -v 2>&1 </dev/null` in
3375
*GNU* | *'with BFD'*)
3376
lt_cv_prog_gnu_ld=yes
3379
lt_cv_prog_gnu_ld=no
3382
with_gnu_ld=$lt_cv_prog_gnu_ld
3388
# find reload flag for linker
3389
# -- PORTME Some linkers may need a different reload flag.
3390
m4_defun([_LT_CMD_RELOAD],
3391
[AC_CACHE_CHECK([for $LD option to reload object files],
3392
lt_cv_ld_reload_flag,
3393
[lt_cv_ld_reload_flag='-r'])
3394
reload_flag=$lt_cv_ld_reload_flag
3395
case $reload_flag in
3397
*) reload_flag=" $reload_flag" ;;
3399
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3402
if test "$GCC" = yes; then
3403
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3405
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3409
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3410
_LT_DECL([], [reload_cmds], [2])dnl
3414
# _LT_CHECK_MAGIC_METHOD
3415
# ----------------------
3416
# how to check for library dependencies
3417
# -- PORTME fill in with the dynamic library characteristics
3418
m4_defun([_LT_CHECK_MAGIC_METHOD],
3419
[m4_require([_LT_DECL_EGREP])
3420
m4_require([_LT_DECL_OBJDUMP])
3421
AC_CACHE_CHECK([how to recognize dependent libraries],
3422
lt_cv_deplibs_check_method,
3423
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3424
lt_cv_file_magic_test_file=
3425
lt_cv_deplibs_check_method='unknown'
3426
# Need to set the preceding variable on all platforms that support
3427
# interlibrary dependencies.
3428
# 'none' -- dependencies not supported.
3429
# `unknown' -- same as none, but documents that we really don't know.
3430
# 'pass_all' -- all dependencies passed with no checks.
3431
# 'test_compile' -- check by making test program.
3432
# 'file_magic [[regex]]' -- check by looking for files in library path
3433
# which responds to the $file_magic_cmd with a given extended regex.
3434
# If you have `file' or equivalent on your system and you're not sure
3435
# whether `pass_all' will *always* work, you probably want this one.
3439
lt_cv_deplibs_check_method=pass_all
3443
lt_cv_deplibs_check_method=pass_all
3447
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3448
lt_cv_file_magic_cmd='/usr/bin/file -L'
3449
lt_cv_file_magic_test_file=/shlib/libc.so
3453
# func_win32_libid is a shell function defined in ltmain.sh
3454
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3455
lt_cv_file_magic_cmd='func_win32_libid'
3459
# Base MSYS/MinGW do not provide the 'file' command needed by
3460
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3461
# unless we find 'file', for example because we are cross-compiling.
3462
if ( file / ) >/dev/null 2>&1; then
3463
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3464
lt_cv_file_magic_cmd='func_win32_libid'
3466
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3467
lt_cv_file_magic_cmd='$OBJDUMP -f'
3472
# use the weaker test based on 'objdump'. See mingw*.
3473
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3474
lt_cv_file_magic_cmd='$OBJDUMP -f'
3477
darwin* | rhapsody*)
3478
lt_cv_deplibs_check_method=pass_all
3481
freebsd* | dragonfly*)
3482
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3485
# Not sure whether the presence of OpenBSD here was a mistake.
3486
# Let's accept both of them until this is cleared up.
3487
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3488
lt_cv_file_magic_cmd=/usr/bin/file
3489
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3493
lt_cv_deplibs_check_method=pass_all
3498
lt_cv_deplibs_check_method=pass_all
3501
hpux10.20* | hpux11*)
3502
lt_cv_file_magic_cmd=/usr/bin/file
3505
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3506
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3509
[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]']
3510
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3513
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3514
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3520
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3521
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3524
irix5* | irix6* | nonstopux*)
3526
*-32|*"-32 ") libmagic=32-bit;;
3527
*-n32|*"-n32 ") libmagic=N32;;
3528
*-64|*"-64 ") libmagic=64-bit;;
3529
*) libmagic=never-match;;
3531
lt_cv_deplibs_check_method=pass_all
3534
# This must be Linux ELF.
3535
linux* | k*bsd*-gnu)
3536
lt_cv_deplibs_check_method=pass_all
3539
netbsd* | netbsdelf*-gnu)
3540
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3541
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3543
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3548
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3549
lt_cv_file_magic_cmd=/usr/bin/file
3550
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3554
lt_cv_deplibs_check_method=pass_all
3558
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3559
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3561
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3565
osf3* | osf4* | osf5*)
3566
lt_cv_deplibs_check_method=pass_all
3570
lt_cv_deplibs_check_method=pass_all
3574
lt_cv_deplibs_check_method=pass_all
3577
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3578
lt_cv_deplibs_check_method=pass_all
3582
case $host_vendor in
3584
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]]'
3585
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3588
lt_cv_deplibs_check_method=pass_all
3591
lt_cv_file_magic_cmd='/bin/file'
3592
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3595
lt_cv_file_magic_cmd='/bin/file'
3596
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3597
lt_cv_file_magic_test_file=/lib/libc.so
3600
lt_cv_deplibs_check_method=pass_all
3603
lt_cv_deplibs_check_method=pass_all
3609
lt_cv_deplibs_check_method=pass_all
3613
file_magic_cmd=$lt_cv_file_magic_cmd
3614
deplibs_check_method=$lt_cv_deplibs_check_method
3615
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3617
_LT_DECL([], [deplibs_check_method], [1],
3618
[Method to check whether dependent libraries are shared objects])
3619
_LT_DECL([], [file_magic_cmd], [1],
3620
[Command to use when deplibs_check_method == "file_magic"])
3621
])# _LT_CHECK_MAGIC_METHOD
3626
# find the pathname to a BSD- or MS-compatible name lister
3627
AC_DEFUN([LT_PATH_NM],
3628
[AC_REQUIRE([AC_PROG_CC])dnl
3629
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3630
[if test -n "$NM"; then
3631
# Let the user override the test.
3634
lt_nm_to_check="${ac_tool_prefix}nm"
3635
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3636
lt_nm_to_check="$lt_nm_to_check nm"
3638
for lt_tmp_nm in $lt_nm_to_check; do
3639
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3640
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3642
test -z "$ac_dir" && ac_dir=.
3643
tmp_nm="$ac_dir/$lt_tmp_nm"
3644
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3645
# Check to see if the nm accepts a BSD-compat flag.
3646
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3647
# nm: unknown option "B" ignored
3648
# Tru64's nm complains that /dev/null is an invalid object file
3649
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3650
*/dev/null* | *'Invalid file or object type'*)
3651
lt_cv_path_NM="$tmp_nm -B"
3655
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3657
lt_cv_path_NM="$tmp_nm -p"
3661
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3662
continue # so that we can try to find one that supports BSD flags
3671
: ${lt_cv_path_NM=no}
3673
if test "$lt_cv_path_NM" != "no"; then
3676
# Didn't find any BSD compatible name lister, look for dumpbin.
3677
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3679
if test "$DUMPBIN" != ":"; then
3683
test -z "$NM" && NM=nm
3685
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3687
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3688
[lt_cv_nm_interface="BSD nm"
3689
echo "int some_variable = 0;" > conftest.$ac_ext
3690
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3691
(eval "$ac_compile" 2>conftest.err)
3692
cat conftest.err >&AS_MESSAGE_LOG_FD
3693
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3694
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3695
cat conftest.err >&AS_MESSAGE_LOG_FD
3696
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3697
cat conftest.out >&AS_MESSAGE_LOG_FD
3698
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3699
lt_cv_nm_interface="MS dumpbin"
3705
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3706
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3707
dnl aclocal-1.4 backwards compatibility:
3708
dnl AC_DEFUN([AM_PROG_NM], [])
3709
dnl AC_DEFUN([AC_PROG_NM], [])
3714
# check for math library
3715
AC_DEFUN([LT_LIB_M],
3716
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3719
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3720
# These system don't have libm, or don't need it
3723
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3724
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3727
AC_CHECK_LIB(m, cos, LIBM="-lm")
3734
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3735
dnl aclocal-1.4 backwards compatibility:
3736
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3739
# _LT_COMPILER_NO_RTTI([TAGNAME])
3740
# -------------------------------
3741
m4_defun([_LT_COMPILER_NO_RTTI],
3742
[m4_require([_LT_TAG_COMPILER])dnl
3744
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3746
if test "$GCC" = yes; then
3747
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3749
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3750
lt_cv_prog_compiler_rtti_exceptions,
3751
[-fno-rtti -fno-exceptions], [],
3752
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3754
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3755
[Compiler flag to turn off builtin functions])
3756
])# _LT_COMPILER_NO_RTTI
3759
# _LT_CMD_GLOBAL_SYMBOLS
3760
# ----------------------
3761
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3762
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3763
AC_REQUIRE([AC_PROG_CC])dnl
3764
AC_REQUIRE([LT_PATH_NM])dnl
3765
AC_REQUIRE([LT_PATH_LD])dnl
3766
m4_require([_LT_DECL_SED])dnl
3767
m4_require([_LT_DECL_EGREP])dnl
3768
m4_require([_LT_TAG_COMPILER])dnl
3770
# Check for command to grab the raw symbol name followed by C symbol from nm.
3771
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3772
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3774
# These are sane defaults that work on at least a few old systems.
3775
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3777
# Character class describing NM global symbol codes.
3778
symcode='[[BCDEGRST]]'
3780
# Regexp to match symbols that can be accessed directly from C.
3781
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3783
# Define system-specific variables.
3788
cygwin* | mingw* | pw32* | cegcc*)
3789
symcode='[[ABCDGISTW]]'
3792
if test "$host_cpu" = ia64; then
3793
symcode='[[ABCDEGRST]]'
3797
symcode='[[BCDEGRST]]'
3800
symcode='[[BCDEGQRST]]'
3811
sysv5* | sco5v6* | unixware* | OpenUNIX*)
3815
symcode='[[DFNSTU]]'
3819
# If we're using GNU nm, then use its standard symbol codes.
3820
case `$NM -V 2>&1` in
3821
*GNU* | *'with BFD'*)
3822
symcode='[[ABCDGIRSTW]]' ;;
3825
# Transform an extracted symbol line into a proper C declaration.
3826
# Some systems (esp. on ia64) link data and code symbols differently,
3827
# so use this general approach.
3828
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3830
# Transform an extracted symbol line into symbol name and symbol address
3831
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3832
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'"
3834
# Handle CRLF in mingw tool chain
3838
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3842
# Try without a prefix underscore, then with it.
3843
for ac_symprfx in "" "_"; do
3845
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3846
symxfrm="\\1 $ac_symprfx\\2 \\2"
3848
# Write the raw and C identifiers.
3849
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3850
# Fake it for dumpbin and say T for any non-static function
3851
# and D for any global variable.
3852
# Also find C++ and __fastcall symbols from MSVC++,
3853
# which start with @ or ?.
3854
lt_cv_sys_global_symbol_pipe="$AWK ['"\
3855
" {last_section=section; section=\$ 3};"\
3856
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3857
" \$ 0!~/External *\|/{next};"\
3858
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3859
" {if(hide[section]) next};"\
3860
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3861
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3862
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3863
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3864
" ' prfx=^$ac_symprfx]"
3866
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3869
# Check to see that the pipe works correctly.
3873
cat > conftest.$ac_ext <<_LT_EOF
3878
void nm_test_func(void);
3879
void nm_test_func(void){}
3883
int main(){nm_test_var='a';nm_test_func();return(0);}
3886
if AC_TRY_EVAL(ac_compile); then
3887
# Now try to grab the symbols.
3889
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3890
# Try sorting and uniquifying the output.
3891
if sort "$nlist" | uniq > "$nlist"T; then
3892
mv -f "$nlist"T "$nlist"
3897
# Make sure that we snagged all the symbols we need.
3898
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3899
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3900
cat <<_LT_EOF > conftest.$ac_ext
3906
# Now generate the symbol file.
3907
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3909
cat <<_LT_EOF >> conftest.$ac_ext
3911
/* The mapping between symbol names and symbols. */
3916
lt__PROGRAM__LTX_preloaded_symbols[[]] =
3918
{ "@PROGRAM@", (void *) 0 },
3920
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3921
cat <<\_LT_EOF >> conftest.$ac_ext
3925
/* This works around a problem in FreeBSD linker */
3926
#ifdef FREEBSD_WORKAROUND
3927
static const void *lt_preloaded_setup() {
3928
return lt__PROGRAM__LTX_preloaded_symbols;
3936
# Now try linking the two files.
3937
mv conftest.$ac_objext conftstm.$ac_objext
3938
lt_save_LIBS="$LIBS"
3939
lt_save_CFLAGS="$CFLAGS"
3940
LIBS="conftstm.$ac_objext"
3941
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3942
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3945
LIBS="$lt_save_LIBS"
3946
CFLAGS="$lt_save_CFLAGS"
3948
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3951
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3954
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3957
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3958
cat conftest.$ac_ext >&5
3960
rm -rf conftest* conftst*
3962
# Do not use the global_symbol_pipe unless it works.
3963
if test "$pipe_works" = yes; then
3966
lt_cv_sys_global_symbol_pipe=
3970
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3971
lt_cv_sys_global_symbol_to_cdecl=
3973
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3974
AC_MSG_RESULT(failed)
3979
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3980
[Take the output of nm and produce a listing of raw symbols and C names])
3981
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3982
[Transform the output of nm in a proper C declaration])
3983
_LT_DECL([global_symbol_to_c_name_address],
3984
[lt_cv_sys_global_symbol_to_c_name_address], [1],
3985
[Transform the output of nm in a C name address pair])
3986
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3987
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3988
[Transform the output of nm in a C name address pair when lib prefix is needed])
3989
]) # _LT_CMD_GLOBAL_SYMBOLS
3992
# _LT_COMPILER_PIC([TAGNAME])
3993
# ---------------------------
3994
m4_defun([_LT_COMPILER_PIC],
3995
[m4_require([_LT_TAG_COMPILER])dnl
3996
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3997
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3998
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4000
AC_MSG_CHECKING([for $compiler option to produce PIC])
4001
m4_if([$1], [CXX], [
4002
# C++ specific cases for pic, static, wl, etc.
4003
if test "$GXX" = yes; then
4004
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4005
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4009
# All AIX code is PIC.
4010
if test "$host_cpu" = ia64; then
4011
# AIX 5 now supports IA64 processor
4012
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4019
# see comment about AmigaOS4 .so support
4020
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4023
# FIXME: we need at least 68020 code to build shared libraries, but
4024
# adding the `-m68020' flag to GCC prevents building anything better,
4026
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4031
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4032
# PIC is the default for these OSes.
4034
mingw* | cygwin* | os2* | pw32* | cegcc*)
4035
# This hack is so that the source file can tell whether it is being
4036
# built for inclusion in a dll (and should export symbols for example).
4037
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4038
# (--disable-auto-import) libraries
4039
m4_if([$1], [GCJ], [],
4040
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4042
darwin* | rhapsody*)
4043
# PIC is the default on this platform
4044
# Common symbols not allowed in MH_DYLIB files
4045
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4048
# DJGPP does not support shared libraries at all
4049
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4052
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4053
# Instead, we relocate shared libraries at runtime.
4056
if test -d /usr/nec; then
4057
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4061
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4062
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4063
# sets the default TLS model and affects inlining.
4068
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4073
# QNX uses GNU C++, but need to define -shared option too, otherwise
4075
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4078
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4084
# All AIX code is PIC.
4085
if test "$host_cpu" = ia64; then
4086
# AIX 5 now supports IA64 processor
4087
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4093
case $cc_basename in
4095
# Green Hills C++ Compiler
4096
# _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"
4101
case $cc_basename in
4103
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4106
# Green Hills C++ Compiler
4107
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4113
freebsd* | dragonfly*)
4114
# FreeBSD uses GNU C++
4116
hpux9* | hpux10* | hpux11*)
4117
case $cc_basename in
4119
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4120
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4121
if test "$host_cpu" != ia64; then
4122
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4126
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4127
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4133
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4142
# This is c89, which is MS Visual C++ (no shared libs)
4143
# Anyone wants to do a port?
4145
irix5* | irix6* | nonstopux*)
4146
case $cc_basename in
4148
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4149
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4150
# CC pic flag -KPIC is the default.
4156
linux* | k*bsd*-gnu)
4157
case $cc_basename in
4160
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4161
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4164
# old Intel C++ for x86_64 which still supported -KPIC.
4165
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4166
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4167
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4170
# Intel C++, used to be incompatible with GCC.
4171
# ICC 10 doesn't accept -KPIC any more.
4172
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4173
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4174
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4177
# Portland Group C++ compiler
4178
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4179
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4180
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4184
# Make sure the PIC flag is empty. It appears that all Alpha
4185
# Linux and Compaq Tru64 Unix objects are PIC.
4186
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4187
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4191
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4192
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4193
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4196
case `$CC -V 2>&1 | sed 5q` in
4199
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4200
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4201
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4212
case $cc_basename in
4214
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4220
netbsd* | netbsdelf*-gnu)
4223
# QNX uses GNU C++, but need to define -shared option too, otherwise
4225
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4227
osf3* | osf4* | osf5*)
4228
case $cc_basename in
4230
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4233
# Rational C++ 2.4.1
4234
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4237
# Digital/Compaq C++
4238
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4239
# Make sure the PIC flag is empty. It appears that all Alpha
4240
# Linux and Compaq Tru64 Unix objects are PIC.
4241
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4242
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4251
case $cc_basename in
4253
# Sun C++ 4.2, 5.x and Centerline C++
4254
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4255
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4256
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4259
# Green Hills C++ Compiler
4260
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4267
case $cc_basename in
4270
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4271
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4275
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4281
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4282
case $cc_basename in
4284
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4285
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4286
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4291
case $cc_basename in
4293
# NonStop-UX NCC 3.20
4294
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4303
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4309
if test "$GCC" = yes; then
4310
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4315
# All AIX code is PIC.
4316
if test "$host_cpu" = ia64; then
4317
# AIX 5 now supports IA64 processor
4318
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4325
# see comment about AmigaOS4 .so support
4326
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4329
# FIXME: we need at least 68020 code to build shared libraries, but
4330
# adding the `-m68020' flag to GCC prevents building anything better,
4332
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4337
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4338
# PIC is the default for these OSes.
4341
mingw* | cygwin* | pw32* | os2* | cegcc*)
4342
# This hack is so that the source file can tell whether it is being
4343
# built for inclusion in a dll (and should export symbols for example).
4344
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4345
# (--disable-auto-import) libraries
4346
m4_if([$1], [GCJ], [],
4347
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4350
darwin* | rhapsody*)
4351
# PIC is the default on this platform
4352
# Common symbols not allowed in MH_DYLIB files
4353
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4357
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4358
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4359
# sets the default TLS model and affects inlining.
4365
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4371
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4372
# Instead, we relocate shared libraries at runtime.
4376
# Just because we use GCC doesn't mean we suddenly get shared libraries
4377
# on systems that don't support them.
4378
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4383
# QNX uses GNU C++, but need to define -shared option too, otherwise
4385
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4389
if test -d /usr/nec; then
4390
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4395
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4399
# PORTME Check for flag to pass linker flags through the system compiler.
4402
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4403
if test "$host_cpu" = ia64; then
4404
# AIX 5 now supports IA64 processor
4405
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4407
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4411
mingw* | cygwin* | pw32* | os2* | cegcc*)
4412
# This hack is so that the source file can tell whether it is being
4413
# built for inclusion in a dll (and should export symbols for example).
4414
m4_if([$1], [GCJ], [],
4415
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4418
hpux9* | hpux10* | hpux11*)
4419
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4420
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4427
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4430
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4431
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4434
irix5* | irix6* | nonstopux*)
4435
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4436
# PIC (with -KPIC) is the default.
4437
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4440
linux* | k*bsd*-gnu)
4441
case $cc_basename in
4442
# old Intel for x86_64 which still supported -KPIC.
4444
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4445
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4446
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4448
# icc used to be incompatible with GCC.
4449
# ICC 10 doesn't accept -KPIC any more.
4451
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4452
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4453
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4455
# Lahey Fortran 8.1.
4457
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4458
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4459
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4461
pgcc* | pgf77* | pgf90* | pgf95*)
4462
# Portland Group compilers (*not* the Pentium gcc compiler,
4463
# which looks to be a dead project)
4464
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4465
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4466
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4469
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4470
# All Alpha code is PIC.
4471
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4474
# IBM XL C 8.0/Fortran 10.1 on PPC
4475
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4476
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4477
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4480
case `$CC -V 2>&1 | sed 5q` in
4483
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4484
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4485
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4489
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4490
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4491
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4499
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4500
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4504
# QNX uses GNU C++, but need to define -shared option too, otherwise
4506
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4509
osf3* | osf4* | osf5*)
4510
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4511
# All OSF/1 code is PIC.
4512
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4516
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4520
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4521
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4522
case $cc_basename in
4524
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4526
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4531
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4532
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4533
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4536
sysv4 | sysv4.2uw2* | sysv4.3*)
4537
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4538
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4539
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4543
if test -d /usr/nec ;then
4544
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4545
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4549
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4550
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4551
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4552
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4556
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4557
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4561
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4562
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4566
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4572
# For platforms which do not support PIC, -DPIC is meaningless:
4574
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4577
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4580
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4581
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4582
[How to pass a linker flag through the compiler])
4585
# Check to make sure the PIC flag actually works.
4587
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4588
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4589
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4590
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4591
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4593
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4595
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4596
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4598
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4599
[Additional compiler flags for building library objects])
4602
# Check to make sure the static flag actually works.
4604
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4605
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4606
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4607
$lt_tmp_static_flag,
4609
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4610
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4611
[Compiler flag to prevent dynamic linking])
4612
])# _LT_COMPILER_PIC
4615
# _LT_LINKER_SHLIBS([TAGNAME])
4616
# ----------------------------
4617
# See if the linker supports building shared libraries.
4618
m4_defun([_LT_LINKER_SHLIBS],
4619
[AC_REQUIRE([LT_PATH_LD])dnl
4620
AC_REQUIRE([LT_PATH_NM])dnl
4621
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4622
m4_require([_LT_DECL_EGREP])dnl
4623
m4_require([_LT_DECL_SED])dnl
4624
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4625
m4_require([_LT_TAG_COMPILER])dnl
4626
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4627
m4_if([$1], [CXX], [
4628
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4631
# If we're using GNU nm, then we don't want the "-C" option.
4632
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4633
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4634
_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'
4636
_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'
4640
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4642
cygwin* | mingw* | cegcc*)
4643
_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'
4645
linux* | k*bsd*-gnu)
4646
_LT_TAGVAR(link_all_deplibs, $1)=no
4649
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4652
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4655
_LT_TAGVAR(allow_undefined_flag, $1)=
4656
_LT_TAGVAR(always_export_symbols, $1)=no
4657
_LT_TAGVAR(archive_cmds, $1)=
4658
_LT_TAGVAR(archive_expsym_cmds, $1)=
4659
_LT_TAGVAR(compiler_needs_object, $1)=no
4660
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4661
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4662
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4663
_LT_TAGVAR(hardcode_automatic, $1)=no
4664
_LT_TAGVAR(hardcode_direct, $1)=no
4665
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4666
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4667
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4668
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4669
_LT_TAGVAR(hardcode_minus_L, $1)=no
4670
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4671
_LT_TAGVAR(inherit_rpath, $1)=no
4672
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4673
_LT_TAGVAR(module_cmds, $1)=
4674
_LT_TAGVAR(module_expsym_cmds, $1)=
4675
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4676
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4677
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4678
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4679
# include_expsyms should be a list of space-separated symbols to be *always*
4680
# included in the symbol list
4681
_LT_TAGVAR(include_expsyms, $1)=
4682
# exclude_expsyms can be an extended regexp of symbols to exclude
4683
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4684
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4685
# as well as any symbol that contains `d'.
4686
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4687
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4688
# platforms (ab)use it in PIC code, but their linkers get confused if
4689
# the symbol is explicitly referenced. Since portable code cannot
4690
# rely on this symbol name, it's probably fine to never include it in
4691
# preloaded symbol tables.
4692
# Exclude shared library initialization/finalization symbols.
4693
dnl Note also adjust exclude_expsyms for C++ above.
4694
extract_expsyms_cmds=
4697
cygwin* | mingw* | pw32* | cegcc*)
4698
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4699
# When not using gcc, we currently assume that we are using
4700
# Microsoft Visual C++.
4701
if test "$GCC" != yes; then
4706
# we just hope/assume this is gcc and not c89 (= MSVC++)
4712
linux* | k*bsd*-gnu)
4713
_LT_TAGVAR(link_all_deplibs, $1)=no
4717
_LT_TAGVAR(ld_shlibs, $1)=yes
4718
if test "$with_gnu_ld" = yes; then
4719
# If archive_cmds runs LD, not CC, wlarc should be empty
4722
# Set some defaults for GNU ld with shared library support. These
4723
# are reset later if shared libraries are not supported. Putting them
4724
# here allows them to be overridden if necessary.
4725
runpath_var=LD_RUN_PATH
4726
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4727
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4728
# ancient GNU ld didn't support --whole-archive et. al.
4729
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4730
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4732
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4734
supports_anon_versioning=no
4735
case `$LD -v 2>&1` in
4736
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4737
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4738
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4739
*\ 2.11.*) ;; # other 2.11 versions
4740
*) supports_anon_versioning=yes ;;
4743
# See if GNU ld supports shared libraries.
4746
# On AIX/PPC, the GNU linker is very broken
4747
if test "$host_cpu" != ia64; then
4748
_LT_TAGVAR(ld_shlibs, $1)=no
4751
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4752
*** to be unable to reliably create shared libraries on AIX.
4753
*** Therefore, libtool is disabling shared libraries support. If you
4754
*** really care for shared libraries, you may want to modify your PATH
4755
*** so that a non-GNU linker is found, and then restart.
4764
# see comment about AmigaOS4 .so support
4765
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4766
_LT_TAGVAR(archive_expsym_cmds, $1)=''
4769
_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)'
4770
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4771
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4777
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4778
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4779
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4780
# support --undefined. This deserves some investigation. FIXME
4781
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4783
_LT_TAGVAR(ld_shlibs, $1)=no
4787
cygwin* | mingw* | pw32* | cegcc*)
4788
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4789
# as there is no search path for DLLs.
4790
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4791
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4792
_LT_TAGVAR(always_export_symbols, $1)=no
4793
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4794
_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'
4796
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4797
_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'
4798
# If the export-symbols file already is a .def file (1st line
4799
# is EXPORTS), use it as is; otherwise, prepend...
4800
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4801
cp $export_symbols $output_objdir/$soname.def;
4803
echo EXPORTS > $output_objdir/$soname.def;
4804
cat $export_symbols >> $output_objdir/$soname.def;
4806
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4808
_LT_TAGVAR(ld_shlibs, $1)=no
4813
_LT_TAGVAR(hardcode_direct, $1)=no
4814
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4815
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4816
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4817
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4818
# Instead, shared libraries are loaded at an image base (0x10000000 by
4819
# default) and relocated if they conflict, which is a slow very memory
4820
# consuming and fragmenting process. To avoid this, we pick a random,
4821
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4822
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4823
_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'
4824
_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'
4827
gnu* | linux* | tpf* | k*bsd*-gnu)
4829
if test "$host_os" = linux-dietlibc; then
4830
case $cc_basename in
4831
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4834
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4835
&& test "$tmp_diet" = no
4838
tmp_sharedflag='-shared'
4839
case $cc_basename,$host_cpu in
4840
pgcc*) # Portland Group C compiler
4841
_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'
4842
tmp_addflag=' $pic_flag'
4844
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4845
_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'
4846
tmp_addflag=' $pic_flag -Mnomain' ;;
4847
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4848
tmp_addflag=' -i_dynamic' ;;
4849
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4850
tmp_addflag=' -i_dynamic -nofor_main' ;;
4851
ifc* | ifort*) # Intel Fortran compiler
4852
tmp_addflag=' -nofor_main' ;;
4853
lf95*) # Lahey Fortran 8.1
4854
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4855
tmp_sharedflag='--shared' ;;
4856
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4857
tmp_sharedflag='-qmkshrobj'
4860
case `$CC -V 2>&1 | sed 5q` in
4861
*Sun\ C*) # Sun C 5.9
4862
_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'
4863
_LT_TAGVAR(compiler_needs_object, $1)=yes
4864
tmp_sharedflag='-G' ;;
4865
*Sun\ F*) # Sun Fortran 8.3
4866
tmp_sharedflag='-G' ;;
4868
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4870
if test "x$supports_anon_versioning" = xyes; then
4871
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4872
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4873
echo "local: *; };" >> $output_objdir/$libname.ver~
4874
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4877
case $cc_basename in
4879
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4880
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4881
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4882
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4883
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4884
if test "x$supports_anon_versioning" = xyes; then
4885
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4886
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4887
echo "local: *; };" >> $output_objdir/$libname.ver~
4888
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4893
_LT_TAGVAR(ld_shlibs, $1)=no
4897
netbsd* | netbsdelf*-gnu)
4898
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4899
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4902
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4903
_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'
4908
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4909
_LT_TAGVAR(ld_shlibs, $1)=no
4912
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4913
*** create shared libraries on Solaris systems. Therefore, libtool
4914
*** is disabling shared libraries support. We urge you to upgrade GNU
4915
*** binutils to release 2.9.1 or newer. Another option is to modify
4916
*** your PATH or compiler configuration so that the native linker is
4917
*** used, and then restart.
4920
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4921
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4922
_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'
4924
_LT_TAGVAR(ld_shlibs, $1)=no
4928
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4929
case `$LD -v 2>&1` in
4930
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4931
_LT_TAGVAR(ld_shlibs, $1)=no
4934
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4935
*** reliably create shared libraries on SCO systems. Therefore, libtool
4936
*** is disabling shared libraries support. We urge you to upgrade GNU
4937
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4938
*** your PATH or compiler configuration so that the native linker is
4939
*** used, and then restart.
4944
# For security reasons, it is highly recommended that you always
4945
# use absolute paths for naming shared libraries, and exclude the
4946
# DT_RUNPATH tag from executables and libraries. But doing so
4947
# requires that you compile everything twice, which is a pain.
4948
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4949
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4950
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4951
_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'
4953
_LT_TAGVAR(ld_shlibs, $1)=no
4960
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4962
_LT_TAGVAR(hardcode_direct, $1)=yes
4963
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4967
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4968
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4969
_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'
4971
_LT_TAGVAR(ld_shlibs, $1)=no
4976
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4978
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4979
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4980
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4983
# PORTME fill in a description of your system's linker (not GNU ld)
4986
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4987
_LT_TAGVAR(always_export_symbols, $1)=yes
4988
_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'
4989
# Note: this linker hardcodes the directories in LIBPATH if there
4990
# are no directories specified by -L.
4991
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4992
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4993
# Neither direct hardcoding nor static linking is supported with a
4995
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5000
if test "$host_cpu" = ia64; then
5001
# On IA64, the linker does run time linking by default, so we don't
5002
# have to do anything special.
5003
aix_use_runtimelinking=no
5004
exp_sym_flag='-Bexport'
5007
# If we're using GNU nm, then we don't want the "-C" option.
5008
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5009
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5010
_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'
5012
_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'
5014
aix_use_runtimelinking=no
5016
# Test if we are trying to use run time linking or normal
5017
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5018
# need to do runtime linking.
5019
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5020
for ld_flag in $LDFLAGS; do
5021
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5022
aix_use_runtimelinking=yes
5029
exp_sym_flag='-bexport'
5030
no_entry_flag='-bnoentry'
5033
# When large executables or shared objects are built, AIX ld can
5034
# have problems creating the table of contents. If linking a library
5035
# or program results in "error TOC overflow" add -mminimal-toc to
5036
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5037
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5039
_LT_TAGVAR(archive_cmds, $1)=''
5040
_LT_TAGVAR(hardcode_direct, $1)=yes
5041
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5042
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5043
_LT_TAGVAR(link_all_deplibs, $1)=yes
5044
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5046
if test "$GCC" = yes; then
5047
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5048
# We only want to do this on AIX 4.2 and lower, the check
5049
# below for broken collect2 doesn't work under 4.3+
5050
collect2name=`${CC} -print-prog-name=collect2`
5051
if test -f "$collect2name" &&
5052
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5054
# We have reworked collect2
5057
# We have old collect2
5058
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5059
# It fails to find uninstalled libraries when the uninstalled
5060
# path is not listed in the libpath. Setting hardcode_minus_L
5061
# to unsupported forces relinking
5062
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5063
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5064
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5068
shared_flag='-shared'
5069
if test "$aix_use_runtimelinking" = yes; then
5070
shared_flag="$shared_flag "'${wl}-G'
5072
_LT_TAGVAR(link_all_deplibs, $1)=no
5075
if test "$host_cpu" = ia64; then
5076
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5077
# chokes on -Wl,-G. The following line is correct:
5080
if test "$aix_use_runtimelinking" = yes; then
5081
shared_flag='${wl}-G'
5083
shared_flag='${wl}-bM:SRE'
5088
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5089
# It seems that -bexpall does not export symbols beginning with
5090
# underscore (_), so it is better to generate a list of symbols to export.
5091
_LT_TAGVAR(always_export_symbols, $1)=yes
5092
if test "$aix_use_runtimelinking" = yes; then
5093
# Warning - without using the other runtime loading flags (-brtl),
5094
# -berok will link without error, but may produce a broken library.
5095
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5096
# Determine the default libpath from the value encoded in an
5098
_LT_SYS_MODULE_PATH_AIX
5099
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5100
_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"
5102
if test "$host_cpu" = ia64; then
5103
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5104
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5105
_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"
5107
# Determine the default libpath from the value encoded in an
5109
_LT_SYS_MODULE_PATH_AIX
5110
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5111
# Warning - without using the other run time loading flags,
5112
# -berok will link without error, but may produce a broken library.
5113
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5114
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5115
# Exported symbols can be pulled into shared objects from archives
5116
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5117
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5118
# This is similar to how AIX traditionally builds its shared libraries.
5119
_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'
5127
# see comment about AmigaOS4 .so support
5128
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5129
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5132
_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)'
5133
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5134
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5140
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5143
cygwin* | mingw* | pw32* | cegcc*)
5144
# When not using gcc, we currently assume that we are using
5145
# Microsoft Visual C++.
5146
# hardcode_libdir_flag_spec is actually meaningless, as there is
5147
# no search path for DLLs.
5148
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5149
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5150
# Tell ltmain to make .lib files, not .a files.
5152
# Tell ltmain to make .dll files, not .so files.
5154
# FIXME: Setting linknames here is a bad hack.
5155
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5156
# The linker will automatically build a .lib file if we build a DLL.
5157
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5158
# FIXME: Should let the user specify the lib program.
5159
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5160
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5161
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5164
darwin* | rhapsody*)
5165
_LT_DARWIN_LINKER_FEATURES($1)
5169
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5170
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5171
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5175
_LT_TAGVAR(ld_shlibs, $1)=no
5178
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5179
# support. Future versions do this automatically, but an explicit c++rt0.o
5180
# does not break anything, and helps significantly (at the cost of a little
5183
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5184
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5185
_LT_TAGVAR(hardcode_direct, $1)=yes
5186
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5189
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5191
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5192
_LT_TAGVAR(hardcode_direct, $1)=yes
5193
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5194
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5197
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5198
freebsd* | dragonfly*)
5199
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5200
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5201
_LT_TAGVAR(hardcode_direct, $1)=yes
5202
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5206
if test "$GCC" = yes; then
5207
_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'
5209
_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'
5211
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5212
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5213
_LT_TAGVAR(hardcode_direct, $1)=yes
5215
# hardcode_minus_L: Not really in the search PATH,
5216
# but as the default location of the library.
5217
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5218
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5222
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5223
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5225
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5227
if test "$with_gnu_ld" = no; then
5228
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5229
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5230
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5231
_LT_TAGVAR(hardcode_direct, $1)=yes
5232
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5233
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5234
# hardcode_minus_L: Not really in the search PATH,
5235
# but as the default location of the library.
5236
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5241
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5244
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5247
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5250
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5256
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5259
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5262
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5266
if test "$with_gnu_ld" = no; then
5267
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5268
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5272
_LT_TAGVAR(hardcode_direct, $1)=no
5273
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5276
_LT_TAGVAR(hardcode_direct, $1)=yes
5277
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5278
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5280
# hardcode_minus_L: Not really in the search PATH,
5281
# but as the default location of the library.
5282
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5288
irix5* | irix6* | nonstopux*)
5289
if test "$GCC" = yes; then
5290
_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'
5291
# Try to use the -exported_symbol ld option, if it does not
5292
# work, assume that -exports_file does not work either and
5293
# implicitly export all symbols.
5294
save_LDFLAGS="$LDFLAGS"
5295
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5296
AC_LINK_IFELSE(int foo(void) {},
5297
_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'
5299
LDFLAGS="$save_LDFLAGS"
5301
_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'
5302
_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'
5304
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5305
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5306
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5307
_LT_TAGVAR(inherit_rpath, $1)=yes
5308
_LT_TAGVAR(link_all_deplibs, $1)=yes
5311
netbsd* | netbsdelf*-gnu)
5312
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5313
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5315
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5317
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5318
_LT_TAGVAR(hardcode_direct, $1)=yes
5319
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5323
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5324
_LT_TAGVAR(hardcode_direct, $1)=yes
5325
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5326
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5327
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5334
if test -f /usr/libexec/ld.so; then
5335
_LT_TAGVAR(hardcode_direct, $1)=yes
5336
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5337
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5338
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5339
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5340
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5341
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5342
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5345
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5346
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5347
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5350
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5351
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5356
_LT_TAGVAR(ld_shlibs, $1)=no
5361
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5362
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5363
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5364
_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'
5365
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5369
if test "$GCC" = yes; then
5370
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5371
_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'
5373
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5374
_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'
5376
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5377
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5378
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5381
osf4* | osf5*) # as osf3* with the addition of -msym flag
5382
if test "$GCC" = yes; then
5383
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5384
_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'
5385
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5387
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5388
_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'
5389
_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~
5390
$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'
5392
# Both c and cxx compiler support -rpath directly
5393
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5395
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5396
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5400
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5401
if test "$GCC" = yes; then
5403
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5404
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5405
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5407
case `$CC -V 2>&1` in
5410
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5411
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5412
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5416
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5417
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5418
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5422
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5423
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5425
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5427
# The compiler driver will combine and reorder linker options,
5428
# but understands `-z linker_flag'. GCC discards it without `$wl',
5429
# but is careful enough not to reorder.
5430
# Supported since Solaris 2.6 (maybe 2.5.1?)
5431
if test "$GCC" = yes; then
5432
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5434
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5438
_LT_TAGVAR(link_all_deplibs, $1)=yes
5442
if test "x$host_vendor" = xsequent; then
5443
# Use $CC to link under sequent, because it throws in some extra .o
5444
# files that make .init and .fini sections work.
5445
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5447
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5449
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5450
_LT_TAGVAR(hardcode_direct, $1)=yes
5451
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5452
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5456
case $host_vendor in
5458
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5459
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5462
## LD is ld it makes a PLAMLIB
5463
## CC just makes a GrossModule.
5464
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5465
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5466
_LT_TAGVAR(hardcode_direct, $1)=no
5469
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5473
runpath_var='LD_RUN_PATH'
5474
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5478
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5479
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5480
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5484
if test -d /usr/nec; then
5485
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5486
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5487
runpath_var=LD_RUN_PATH
5488
hardcode_runpath_var=yes
5489
_LT_TAGVAR(ld_shlibs, $1)=yes
5493
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5494
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5495
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5496
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5497
runpath_var='LD_RUN_PATH'
5499
if test "$GCC" = yes; then
5500
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5501
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5503
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5504
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5508
sysv5* | sco3.2v5* | sco5v6*)
5509
# Note: We can NOT use -z defs as we might desire, because we do not
5510
# link with -lc, and that would cause any symbols used from libc to
5511
# always be unresolved, which means just about no library would
5512
# ever link correctly. If we're not using GNU ld we use -z text
5513
# though, which does catch some bad symbols but isn't as heavy-handed
5515
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5516
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5517
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5518
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5519
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5520
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5521
_LT_TAGVAR(link_all_deplibs, $1)=yes
5522
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5523
runpath_var='LD_RUN_PATH'
5525
if test "$GCC" = yes; then
5526
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5527
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5529
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5530
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5535
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5536
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5537
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5541
_LT_TAGVAR(ld_shlibs, $1)=no
5545
if test x$host_vendor = xsni; then
5547
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5548
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5554
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5555
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5557
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5559
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5560
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5561
_LT_DECL([], [extract_expsyms_cmds], [2],
5562
[The commands to extract the exported symbol list from a shared archive])
5565
# Do we need to explicitly link libc?
5567
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5569
# Assume -lc should be added
5570
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5572
if test "$enable_shared" = yes && test "$GCC" = yes; then
5573
case $_LT_TAGVAR(archive_cmds, $1) in
5575
# FIXME: we may have to deal with multi-command sequences.
5578
# Test whether the compiler implicitly links with -lc since on some
5579
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5580
# to ld, don't add -lc before -lgcc.
5581
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5583
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5585
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5588
libobjs=conftest.$ac_objext
5590
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5591
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5597
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5598
_LT_TAGVAR(allow_undefined_flag, $1)=
5599
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5601
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5603
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5605
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5607
cat conftest.err 1>&5
5610
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5617
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5618
[Whether or not to add -lc for building shared libraries])
5619
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5620
[enable_shared_with_static_runtimes], [0],
5621
[Whether or not to disallow shared libs when runtime libs are static])
5622
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5623
[Compiler flag to allow reflexive dlopens])
5624
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5625
[Compiler flag to generate shared objects directly from archives])
5626
_LT_TAGDECL([], [compiler_needs_object], [1],
5627
[Whether the compiler copes with passing no objects directly])
5628
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5629
[Create an old-style archive from a shared archive])
5630
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5631
[Create a temporary old-style archive to link instead of a shared archive])
5632
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5633
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5634
_LT_TAGDECL([], [module_cmds], [2],
5635
[Commands used to build a loadable module if different from building
5637
_LT_TAGDECL([], [module_expsym_cmds], [2])
5638
_LT_TAGDECL([], [with_gnu_ld], [1],
5639
[Whether we are building with GNU ld or not])
5640
_LT_TAGDECL([], [allow_undefined_flag], [1],
5641
[Flag that allows shared libraries with undefined symbols to be built])
5642
_LT_TAGDECL([], [no_undefined_flag], [1],
5643
[Flag that enforces no undefined symbols])
5644
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5645
[Flag to hardcode $libdir into a binary during linking.
5646
This must work even if $libdir does not exist])
5647
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5648
[[If ld is used when linking, flag to hardcode $libdir into a binary
5649
during linking. This must work even if $libdir does not exist]])
5650
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5651
[Whether we need a single "-rpath" flag with a separated argument])
5652
_LT_TAGDECL([], [hardcode_direct], [0],
5653
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5654
DIR into the resulting binary])
5655
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5656
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5657
DIR into the resulting binary and the resulting library dependency is
5658
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5659
library is relocated])
5660
_LT_TAGDECL([], [hardcode_minus_L], [0],
5661
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5662
into the resulting binary])
5663
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5664
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5665
into the resulting binary])
5666
_LT_TAGDECL([], [hardcode_automatic], [0],
5667
[Set to "yes" if building a shared library automatically hardcodes DIR
5668
into the library and all subsequent libraries and executables linked
5670
_LT_TAGDECL([], [inherit_rpath], [0],
5671
[Set to yes if linker adds runtime paths of dependent libraries
5672
to runtime path list])
5673
_LT_TAGDECL([], [link_all_deplibs], [0],
5674
[Whether libtool must link a program against all its dependency libraries])
5675
_LT_TAGDECL([], [fix_srcfile_path], [1],
5676
[Fix the shell variable $srcfile for the compiler])
5677
_LT_TAGDECL([], [always_export_symbols], [0],
5678
[Set to "yes" if exported symbols are required])
5679
_LT_TAGDECL([], [export_symbols_cmds], [2],
5680
[The commands to list exported symbols])
5681
_LT_TAGDECL([], [exclude_expsyms], [1],
5682
[Symbols that should not be listed in the preloaded symbols])
5683
_LT_TAGDECL([], [include_expsyms], [1],
5684
[Symbols that must always be exported])
5685
_LT_TAGDECL([], [prelink_cmds], [2],
5686
[Commands necessary for linking programs (against libraries) with templates])
5687
_LT_TAGDECL([], [file_list_spec], [1],
5688
[Specify filename containing input files])
5689
dnl FIXME: Not yet implemented
5690
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5691
dnl [Compiler flag to generate thread safe objects])
5692
])# _LT_LINKER_SHLIBS
5695
# _LT_LANG_C_CONFIG([TAG])
5696
# ------------------------
5697
# Ensure that the configuration variables for a C compiler are suitably
5698
# defined. These variables are subsequently used by _LT_CONFIG to write
5699
# the compiler configuration to `libtool'.
5700
m4_defun([_LT_LANG_C_CONFIG],
5701
[m4_require([_LT_DECL_EGREP])dnl
5705
# Source file extension for C test sources.
5708
# Object file extension for compiled C test sources.
5710
_LT_TAGVAR(objext, $1)=$objext
5712
# Code to be used in simple compile tests
5713
lt_simple_compile_test_code="int some_variable = 0;"
5715
# Code to be used in simple link tests
5716
lt_simple_link_test_code='int main(){return(0);}'
5719
# Save the default compiler, since it gets overwritten when the other
5720
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5721
compiler_DEFAULT=$CC
5723
# save warnings/boilerplate of simple test code
5724
_LT_COMPILER_BOILERPLATE
5725
_LT_LINKER_BOILERPLATE
5727
if test -n "$compiler"; then
5728
_LT_COMPILER_NO_RTTI($1)
5729
_LT_COMPILER_PIC($1)
5730
_LT_COMPILER_C_O($1)
5731
_LT_COMPILER_FILE_LOCKS($1)
5732
_LT_LINKER_SHLIBS($1)
5733
_LT_SYS_DYNAMIC_LINKER($1)
5734
_LT_LINKER_HARDCODE_LIBPATH($1)
5738
# Report which library types will actually be built
5739
AC_MSG_CHECKING([if libtool supports shared libraries])
5740
AC_MSG_RESULT([$can_build_shared])
5742
AC_MSG_CHECKING([whether to build shared libraries])
5743
test "$can_build_shared" = "no" && enable_shared=no
5745
# On AIX, shared libraries and static libraries use the same namespace, and
5746
# are all built from PIC.
5749
test "$enable_shared" = yes && enable_static=no
5750
if test -n "$RANLIB"; then
5751
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5752
postinstall_cmds='$RANLIB $lib'
5757
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5758
test "$enable_shared" = yes && enable_static=no
5762
AC_MSG_RESULT([$enable_shared])
5764
AC_MSG_CHECKING([whether to build static libraries])
5765
# Make sure either enable_shared or enable_static is yes.
5766
test "$enable_shared" = yes || enable_static=yes
5767
AC_MSG_RESULT([$enable_static])
5773
])# _LT_LANG_C_CONFIG
5778
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5779
# compiler, we have our own version here.
5780
m4_defun([_LT_PROG_CXX],
5782
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5784
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5785
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5786
(test "X$CXX" != "Xg++"))) ; then
5789
_lt_caught_CXX_error=yes
5791
popdef([AC_MSG_ERROR])
5794
dnl aclocal-1.4 backwards compatibility:
5795
dnl AC_DEFUN([_LT_PROG_CXX], [])
5798
# _LT_LANG_CXX_CONFIG([TAG])
5799
# --------------------------
5800
# Ensure that the configuration variables for a C++ compiler are suitably
5801
# defined. These variables are subsequently used by _LT_CONFIG to write
5802
# the compiler configuration to `libtool'.
5803
m4_defun([_LT_LANG_CXX_CONFIG],
5804
[AC_REQUIRE([_LT_PROG_CXX])dnl
5805
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5806
m4_require([_LT_DECL_EGREP])dnl
5809
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5810
_LT_TAGVAR(allow_undefined_flag, $1)=
5811
_LT_TAGVAR(always_export_symbols, $1)=no
5812
_LT_TAGVAR(archive_expsym_cmds, $1)=
5813
_LT_TAGVAR(compiler_needs_object, $1)=no
5814
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5815
_LT_TAGVAR(hardcode_direct, $1)=no
5816
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5817
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5818
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5819
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5820
_LT_TAGVAR(hardcode_minus_L, $1)=no
5821
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5822
_LT_TAGVAR(hardcode_automatic, $1)=no
5823
_LT_TAGVAR(inherit_rpath, $1)=no
5824
_LT_TAGVAR(module_cmds, $1)=
5825
_LT_TAGVAR(module_expsym_cmds, $1)=
5826
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5827
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5828
_LT_TAGVAR(no_undefined_flag, $1)=
5829
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5830
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5832
# Source file extension for C++ test sources.
5835
# Object file extension for compiled C++ test sources.
5837
_LT_TAGVAR(objext, $1)=$objext
5839
# No sense in running all these tests if we already determined that
5840
# the CXX compiler isn't working. Some variables (like enable_shared)
5841
# are currently assumed to apply to all compilers on this platform,
5842
# and will be corrupted by setting them based on a non-working compiler.
5843
if test "$_lt_caught_CXX_error" != yes; then
5844
# Code to be used in simple compile tests
5845
lt_simple_compile_test_code="int some_variable = 0;"
5847
# Code to be used in simple link tests
5848
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5853
# save warnings/boilerplate of simple test code
5854
_LT_COMPILER_BOILERPLATE
5855
_LT_LINKER_BOILERPLATE
5857
# Allow CC to be a program name with arguments.
5862
lt_save_with_gnu_ld=$with_gnu_ld
5863
lt_save_path_LD=$lt_cv_path_LD
5864
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5865
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5867
$as_unset lt_cv_prog_gnu_ld
5869
if test -n "${lt_cv_path_LDCXX+set}"; then
5870
lt_cv_path_LD=$lt_cv_path_LDCXX
5872
$as_unset lt_cv_path_LD
5874
test -z "${LDCXX+set}" || LD=$LDCXX
5877
_LT_TAGVAR(compiler, $1)=$CC
5878
_LT_CC_BASENAME([$compiler])
5880
if test -n "$compiler"; then
5881
# We don't want -fno-exception when compiling C++ code, so set the
5882
# no_builtin_flag separately
5883
if test "$GXX" = yes; then
5884
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5886
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5889
if test "$GXX" = yes; then
5890
# Set up default GNU C++ configuration
5894
# Check if GNU C++ uses GNU ld as the underlying linker, since the
5895
# archiving commands below assume that GNU ld is being used.
5896
if test "$with_gnu_ld" = yes; then
5897
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898
_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'
5900
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5901
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5903
# If archive_cmds runs LD, not CC, wlarc should be empty
5904
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5905
# investigate it a little bit more. (MM)
5908
# ancient GNU ld didn't support --whole-archive et. al.
5909
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5910
$GREP 'no-whole-archive' > /dev/null; then
5911
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5913
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5919
# A generic and very simple default shared library creation
5920
# command for GNU C++ for the case where it uses the native
5921
# linker, instead of GNU ld. If possible, this setting should
5922
# overridden to take advantage of the native linker features on
5923
# the platform it is being used on.
5924
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5927
# Commands to make compiler produce verbose output that lists
5928
# what "hidden" libraries, object files and flags are used when
5929
# linking a shared library.
5930
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5938
# PORTME: fill in a description of your system's C++ link characteristics
5939
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5940
_LT_TAGVAR(ld_shlibs, $1)=yes
5943
# FIXME: insert proper C++ library support
5944
_LT_TAGVAR(ld_shlibs, $1)=no
5947
if test "$host_cpu" = ia64; then
5948
# On IA64, the linker does run time linking by default, so we don't
5949
# have to do anything special.
5950
aix_use_runtimelinking=no
5951
exp_sym_flag='-Bexport'
5954
aix_use_runtimelinking=no
5956
# Test if we are trying to use run time linking or normal
5957
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5958
# need to do runtime linking.
5959
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5960
for ld_flag in $LDFLAGS; do
5963
aix_use_runtimelinking=yes
5971
exp_sym_flag='-bexport'
5972
no_entry_flag='-bnoentry'
5975
# When large executables or shared objects are built, AIX ld can
5976
# have problems creating the table of contents. If linking a library
5977
# or program results in "error TOC overflow" add -mminimal-toc to
5978
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5979
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5981
_LT_TAGVAR(archive_cmds, $1)=''
5982
_LT_TAGVAR(hardcode_direct, $1)=yes
5983
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5984
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5985
_LT_TAGVAR(link_all_deplibs, $1)=yes
5986
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5988
if test "$GXX" = yes; then
5989
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5990
# We only want to do this on AIX 4.2 and lower, the check
5991
# below for broken collect2 doesn't work under 4.3+
5992
collect2name=`${CC} -print-prog-name=collect2`
5993
if test -f "$collect2name" &&
5994
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5996
# We have reworked collect2
5999
# We have old collect2
6000
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6001
# It fails to find uninstalled libraries when the uninstalled
6002
# path is not listed in the libpath. Setting hardcode_minus_L
6003
# to unsupported forces relinking
6004
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6005
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6006
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6009
shared_flag='-shared'
6010
if test "$aix_use_runtimelinking" = yes; then
6011
shared_flag="$shared_flag "'${wl}-G'
6015
if test "$host_cpu" = ia64; then
6016
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6017
# chokes on -Wl,-G. The following line is correct:
6020
if test "$aix_use_runtimelinking" = yes; then
6021
shared_flag='${wl}-G'
6023
shared_flag='${wl}-bM:SRE'
6028
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6029
# It seems that -bexpall does not export symbols beginning with
6030
# underscore (_), so it is better to generate a list of symbols to
6032
_LT_TAGVAR(always_export_symbols, $1)=yes
6033
if test "$aix_use_runtimelinking" = yes; then
6034
# Warning - without using the other runtime loading flags (-brtl),
6035
# -berok will link without error, but may produce a broken library.
6036
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6037
# Determine the default libpath from the value encoded in an empty
6039
_LT_SYS_MODULE_PATH_AIX
6040
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6042
_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"
6044
if test "$host_cpu" = ia64; then
6045
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6046
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6047
_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"
6049
# Determine the default libpath from the value encoded in an
6051
_LT_SYS_MODULE_PATH_AIX
6052
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6053
# Warning - without using the other run time loading flags,
6054
# -berok will link without error, but may produce a broken library.
6055
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6056
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6057
# Exported symbols can be pulled into shared objects from archives
6058
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6059
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6060
# This is similar to how AIX traditionally builds its shared
6062
_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'
6068
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6069
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6070
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6071
# support --undefined. This deserves some investigation. FIXME
6072
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6074
_LT_TAGVAR(ld_shlibs, $1)=no
6079
case $cc_basename in
6081
# FIXME: insert proper C++ library support
6082
_LT_TAGVAR(ld_shlibs, $1)=no
6087
cygwin* | mingw* | pw32* | cegcc*)
6088
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6089
# as there is no search path for DLLs.
6090
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6091
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6092
_LT_TAGVAR(always_export_symbols, $1)=no
6093
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6095
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6096
_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'
6097
# If the export-symbols file already is a .def file (1st line
6098
# is EXPORTS), use it as is; otherwise, prepend...
6099
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6100
cp $export_symbols $output_objdir/$soname.def;
6102
echo EXPORTS > $output_objdir/$soname.def;
6103
cat $export_symbols >> $output_objdir/$soname.def;
6105
$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'
6107
_LT_TAGVAR(ld_shlibs, $1)=no
6110
darwin* | rhapsody*)
6111
_LT_DARWIN_LINKER_FEATURES($1)
6115
case $cc_basename in
6117
# FIXME: insert proper C++ library support
6118
_LT_TAGVAR(ld_shlibs, $1)=no
6121
# Green Hills C++ Compiler
6122
# FIXME: insert proper C++ library support
6123
_LT_TAGVAR(ld_shlibs, $1)=no
6126
# FIXME: insert proper C++ library support
6127
_LT_TAGVAR(ld_shlibs, $1)=no
6133
# C++ shared libraries reported to be fairly broken before
6135
_LT_TAGVAR(ld_shlibs, $1)=no
6139
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6142
freebsd* | dragonfly*)
6143
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6145
_LT_TAGVAR(ld_shlibs, $1)=yes
6152
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6153
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6154
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6155
_LT_TAGVAR(hardcode_direct, $1)=yes
6156
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6157
# but as the default
6158
# location of the library.
6160
case $cc_basename in
6162
# FIXME: insert proper C++ library support
6163
_LT_TAGVAR(ld_shlibs, $1)=no
6166
_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'
6167
# Commands to make compiler produce verbose output that lists
6168
# what "hidden" libraries, object files and flags are used when
6169
# linking a shared library.
6171
# There doesn't appear to be a way to prevent this compiler from
6172
# explicitly linking system object files so we need to strip them
6173
# from the output so that they don't get included in the library
6175
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'
6178
if test "$GXX" = yes; then
6179
_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'
6181
# FIXME: insert proper C++ library support
6182
_LT_TAGVAR(ld_shlibs, $1)=no
6189
if test $with_gnu_ld = no; then
6190
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6191
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6197
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6203
_LT_TAGVAR(hardcode_direct, $1)=no
6204
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6207
_LT_TAGVAR(hardcode_direct, $1)=yes
6208
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6209
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6210
# but as the default
6211
# location of the library.
6215
case $cc_basename in
6217
# FIXME: insert proper C++ library support
6218
_LT_TAGVAR(ld_shlibs, $1)=no
6223
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6226
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6229
_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'
6232
# Commands to make compiler produce verbose output that lists
6233
# what "hidden" libraries, object files and flags are used when
6234
# linking a shared library.
6236
# There doesn't appear to be a way to prevent this compiler from
6237
# explicitly linking system object files so we need to strip them
6238
# from the output so that they don't get included in the library
6240
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'
6243
if test "$GXX" = yes; then
6244
if test $with_gnu_ld = no; then
6247
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6250
_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'
6253
_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'
6258
# FIXME: insert proper C++ library support
6259
_LT_TAGVAR(ld_shlibs, $1)=no
6266
_LT_TAGVAR(hardcode_direct, $1)=no
6267
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6268
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6269
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6270
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6271
# Instead, shared libraries are loaded at an image base (0x10000000 by
6272
# default) and relocated if they conflict, which is a slow very memory
6273
# consuming and fragmenting process. To avoid this, we pick a random,
6274
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6275
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6276
_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'
6277
_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'
6280
case $cc_basename in
6283
_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'
6285
# Archives containing C++ object files must be created using
6286
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6287
# necessary to make sure instantiated templates are included
6289
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6292
if test "$GXX" = yes; then
6293
if test "$with_gnu_ld" = no; then
6294
_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'
6296
_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'
6299
_LT_TAGVAR(link_all_deplibs, $1)=yes
6302
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6303
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6304
_LT_TAGVAR(inherit_rpath, $1)=yes
6307
linux* | k*bsd*-gnu)
6308
case $cc_basename in
6310
# Kuck and Associates, Inc. (KAI) C++ Compiler
6312
# KCC will only create a shared library if the output file
6313
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6314
# to its proper name (with version) after linking.
6315
_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'
6316
_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'
6317
# Commands to make compiler produce verbose output that lists
6318
# what "hidden" libraries, object files and flags are used when
6319
# linking a shared library.
6321
# There doesn't appear to be a way to prevent this compiler from
6322
# explicitly linking system object files so we need to strip them
6323
# from the output so that they don't get included in the library
6325
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'
6327
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6328
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6330
# Archives containing C++ object files must be created using
6331
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6332
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6337
# version 8.0 and above of icpc choke on multiply defined symbols
6338
# if we add $predep_objects and $postdep_objects, however 7.1 and
6339
# earlier do not add the objects themselves.
6340
case `$CC -V 2>&1` in
6342
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343
_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'
6345
*) # Version 8.0 or newer
6348
ia64*) tmp_idyn=' -i_dynamic';;
6350
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6351
_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'
6354
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6355
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6356
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6357
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6360
# Portland Group C++ compiler
6362
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6363
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6365
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6366
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6367
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6369
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6370
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6372
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6374
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6375
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6376
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6378
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6379
$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'
6381
*) # Version 6 will use weak symbols
6382
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6383
_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'
6387
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6388
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6389
_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'
6393
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6394
_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'
6396
runpath_var=LD_RUN_PATH
6397
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6398
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6400
# Commands to make compiler produce verbose output that lists
6401
# what "hidden" libraries, object files and flags are used when
6402
# linking a shared library.
6404
# There doesn't appear to be a way to prevent this compiler from
6405
# explicitly linking system object files so we need to strip them
6406
# from the output so that they don't get included in the library
6408
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'
6411
# IBM XL 8.0 on PPC, with GNU ld
6412
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6413
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6414
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415
if test "x$supports_anon_versioning" = xyes; then
6416
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6417
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6418
echo "local: *; };" >> $output_objdir/$libname.ver~
6419
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6423
case `$CC -V 2>&1 | sed 5q` in
6426
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6427
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6428
_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'
6429
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6430
_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'
6431
_LT_TAGVAR(compiler_needs_object, $1)=yes
6433
# Not sure whether something based on
6434
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6436
output_verbose_link_cmd='echo'
6438
# Archives containing C++ object files must be created using
6439
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6440
# necessary to make sure instantiated templates are included
6442
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6450
# FIXME: insert proper C++ library support
6451
_LT_TAGVAR(ld_shlibs, $1)=no
6455
# FIXME: insert proper C++ library support
6456
_LT_TAGVAR(ld_shlibs, $1)=no
6460
case $cc_basename in
6462
# FIXME: insert proper C++ library support
6463
_LT_TAGVAR(ld_shlibs, $1)=no
6466
# FIXME: insert proper C++ library support
6467
_LT_TAGVAR(ld_shlibs, $1)=no
6473
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6474
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6476
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6477
_LT_TAGVAR(hardcode_direct, $1)=yes
6478
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6480
# Workaround some broken pre-1.5 toolchains
6481
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6485
_LT_TAGVAR(ld_shlibs, $1)=yes
6489
# C++ shared libraries are fairly broken
6490
_LT_TAGVAR(ld_shlibs, $1)=no
6494
if test -f /usr/libexec/ld.so; then
6495
_LT_TAGVAR(hardcode_direct, $1)=yes
6496
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6497
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6498
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6499
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6500
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501
_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'
6502
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6503
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6505
output_verbose_link_cmd=echo
6507
_LT_TAGVAR(ld_shlibs, $1)=no
6511
osf3* | osf4* | osf5*)
6512
case $cc_basename in
6514
# Kuck and Associates, Inc. (KAI) C++ Compiler
6516
# KCC will only create a shared library if the output file
6517
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6518
# to its proper name (with version) after linking.
6519
_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'
6521
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6522
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6524
# Archives containing C++ object files must be created using
6525
# the KAI C++ compiler.
6527
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6528
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6532
# Rational C++ 2.4.1
6533
# FIXME: insert proper C++ library support
6534
_LT_TAGVAR(ld_shlibs, $1)=no
6539
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6540
_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'
6541
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6544
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6545
_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'
6546
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6547
echo "-hidden">> $lib.exp~
6548
$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~
6550
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6554
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
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 -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'
6567
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6568
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6571
_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'
6574
_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'
6578
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6579
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6581
# Commands to make compiler produce verbose output that lists
6582
# what "hidden" libraries, object files and flags are used when
6583
# linking a shared library.
6584
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6587
# FIXME: insert proper C++ library support
6588
_LT_TAGVAR(ld_shlibs, $1)=no
6595
# FIXME: insert proper C++ library support
6596
_LT_TAGVAR(ld_shlibs, $1)=no
6600
case $cc_basename in
6603
# FIXME: insert proper C++ library support
6604
_LT_TAGVAR(ld_shlibs, $1)=no
6608
# FIXME: insert proper C++ library support
6609
_LT_TAGVAR(ld_shlibs, $1)=no
6612
# FIXME: insert proper C++ library support
6613
_LT_TAGVAR(ld_shlibs, $1)=no
6619
case $cc_basename in
6621
# Sun C++ 4.2, 5.x and Centerline C++
6622
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6623
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6624
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6625
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6626
$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'
6628
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6629
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6631
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6633
# The compiler driver will combine and reorder linker options,
6634
# but understands `-z linker_flag'.
6635
# Supported since Solaris 2.6 (maybe 2.5.1?)
6636
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6639
_LT_TAGVAR(link_all_deplibs, $1)=yes
6641
output_verbose_link_cmd='echo'
6643
# Archives containing C++ object files must be created using
6644
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6645
# necessary to make sure instantiated templates are included
6647
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6650
# Green Hills C++ Compiler
6651
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6653
# The C++ compiler must be used to create the archive.
6654
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6657
# GNU C++ compiler with Solaris linker
6658
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6660
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6661
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6662
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6663
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6665
# Commands to make compiler produce verbose output that lists
6666
# what "hidden" libraries, object files and flags are used when
6667
# linking a shared library.
6668
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6670
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6672
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6673
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6674
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6676
# Commands to make compiler produce verbose output that lists
6677
# what "hidden" libraries, object files and flags are used when
6678
# linking a shared library.
6679
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6682
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6684
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6686
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6694
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6695
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6696
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6697
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6698
runpath_var='LD_RUN_PATH'
6700
case $cc_basename in
6702
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6703
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6706
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6707
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6712
sysv5* | sco3.2v5* | sco5v6*)
6713
# Note: We can NOT use -z defs as we might desire, because we do not
6714
# link with -lc, and that would cause any symbols used from libc to
6715
# always be unresolved, which means just about no library would
6716
# ever link correctly. If we're not using GNU ld we use -z text
6717
# though, which does catch some bad symbols but isn't as heavy-handed
6719
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6720
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6721
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6722
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6723
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6724
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6725
_LT_TAGVAR(link_all_deplibs, $1)=yes
6726
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6727
runpath_var='LD_RUN_PATH'
6729
case $cc_basename in
6731
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6732
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6735
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6736
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6742
case $cc_basename in
6744
# NonStop-UX NCC 3.20
6745
# FIXME: insert proper C++ library support
6746
_LT_TAGVAR(ld_shlibs, $1)=no
6749
# FIXME: insert proper C++ library support
6750
_LT_TAGVAR(ld_shlibs, $1)=no
6756
# FIXME: insert proper C++ library support
6757
_LT_TAGVAR(ld_shlibs, $1)=no
6761
# FIXME: insert proper C++ library support
6762
_LT_TAGVAR(ld_shlibs, $1)=no
6766
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6767
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6769
_LT_TAGVAR(GCC, $1)="$GXX"
6770
_LT_TAGVAR(LD, $1)="$LD"
6773
## There is no encapsulation within the following macros, do not change
6774
## the running order or otherwise move them around unless you know exactly
6775
## what you are doing...
6776
_LT_SYS_HIDDEN_LIBDEPS($1)
6777
_LT_COMPILER_PIC($1)
6778
_LT_COMPILER_C_O($1)
6779
_LT_COMPILER_FILE_LOCKS($1)
6780
_LT_LINKER_SHLIBS($1)
6781
_LT_SYS_DYNAMIC_LINKER($1)
6782
_LT_LINKER_HARDCODE_LIBPATH($1)
6785
fi # test -n "$compiler"
6791
with_gnu_ld=$lt_save_with_gnu_ld
6792
lt_cv_path_LDCXX=$lt_cv_path_LD
6793
lt_cv_path_LD=$lt_save_path_LD
6794
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6795
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6796
fi # test "$_lt_caught_CXX_error" != yes
6799
])# _LT_LANG_CXX_CONFIG
6802
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6803
# ---------------------------------
6804
# Figure out "hidden" library dependencies from verbose
6805
# compiler output when linking a shared library.
6806
# Parse the compiler output and extract the necessary
6807
# objects, libraries and library flags.
6808
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6809
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6810
# Dependencies to place before and after the object being linked:
6811
_LT_TAGVAR(predep_objects, $1)=
6812
_LT_TAGVAR(postdep_objects, $1)=
6813
_LT_TAGVAR(predeps, $1)=
6814
_LT_TAGVAR(postdeps, $1)=
6815
_LT_TAGVAR(compiler_lib_search_path, $1)=
6817
dnl we can't use the lt_simple_compile_test_code here,
6818
dnl because it contains code intended for an executable,
6819
dnl not a library. It's possible we should let each
6820
dnl tag define a new lt_????_link_test_code variable,
6821
dnl but it's only used here...
6822
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6824
void foo (void) { a = 0; }
6826
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6830
Foo (void) { a = 0; }
6835
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6843
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6851
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6854
public void bar (void) {
6860
dnl Parse the compiler output and extract the necessary
6861
dnl objects, libraries and library flags.
6862
if AC_TRY_EVAL(ac_compile); then
6863
# Parse the compiler output and extract the necessary
6864
# objects, libraries and library flags.
6866
# Sentinel used to keep track of whether or not we are before
6867
# the conftest object file.
6868
pre_test_object_deps_done=no
6870
for p in `eval "$output_verbose_link_cmd"`; do
6874
# Some compilers place space between "-{L,R}" and the path.
6876
if test $p = "-L" ||
6877
test $p = "-R"; then
6884
if test "$pre_test_object_deps_done" = no; then
6887
# Internal compiler library paths should come after those
6888
# provided the user. The postdeps already come after the
6889
# user supplied libs so there is no need to process them.
6890
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6891
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6893
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6896
# The "-l" case would never come before the object being
6897
# linked, so don't bother handling this case.
6900
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6901
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
6903
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6909
# This assumes that the test object file only shows up
6910
# once in the compiler output.
6911
if test "$p" = "conftest.$objext"; then
6912
pre_test_object_deps_done=yes
6916
if test "$pre_test_object_deps_done" = no; then
6917
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6918
_LT_TAGVAR(predep_objects, $1)="$p"
6920
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6923
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6924
_LT_TAGVAR(postdep_objects, $1)="$p"
6926
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6931
*) ;; # Ignore the rest.
6939
echo "libtool.m4: error: problem compiling $1 test program"
6942
$RM -f confest.$objext
6944
# PORTME: override above test on systems where it is broken
6948
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6949
# hack all around it, let's just trust "g++" to DTRT.
6950
_LT_TAGVAR(predep_objects,$1)=
6951
_LT_TAGVAR(postdep_objects,$1)=
6952
_LT_TAGVAR(postdeps,$1)=
6956
case `$CC -V 2>&1 | sed 5q` in
6960
# The more standards-conforming stlport4 library is
6961
# incompatible with the Cstd library. Avoid specifying
6962
# it if it's in CXXFLAGS. Ignore libCrun as
6963
# -library=stlport4 depends on it.
6964
case " $CXX $CXXFLAGS " in
6965
*" -library=stlport4 "*)
6966
solaris_use_stlport4=yes
6970
if test "$solaris_use_stlport4" != yes; then
6971
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6978
case $cc_basename in
6980
# The more standards-conforming stlport4 library is
6981
# incompatible with the Cstd library. Avoid specifying
6982
# it if it's in CXXFLAGS. Ignore libCrun as
6983
# -library=stlport4 depends on it.
6984
case " $CXX $CXXFLAGS " in
6985
*" -library=stlport4 "*)
6986
solaris_use_stlport4=yes
6990
# Adding this requires a known-good setup of shared libraries for
6991
# Sun compiler versions before 5.6, else PIC objects from an old
6992
# archive will be linked into the output, leading to subtle bugs.
6993
if test "$solaris_use_stlport4" != yes; then
6994
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7002
case " $_LT_TAGVAR(postdeps, $1) " in
7003
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7005
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7006
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7007
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7009
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7010
[The directories searched by this compiler when creating a shared library])
7011
_LT_TAGDECL([], [predep_objects], [1],
7012
[Dependencies to place before and after the objects being linked to
7013
create a shared library])
7014
_LT_TAGDECL([], [postdep_objects], [1])
7015
_LT_TAGDECL([], [predeps], [1])
7016
_LT_TAGDECL([], [postdeps], [1])
7017
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7018
[The library search path used internally by the compiler when linking
7020
])# _LT_SYS_HIDDEN_LIBDEPS
7025
# Since AC_PROG_F77 is broken, in that it returns the empty string
7026
# if there is no fortran compiler, we have our own version here.
7027
m4_defun([_LT_PROG_F77],
7029
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7031
if test -z "$F77" || test "X$F77" = "Xno"; then
7034
popdef([AC_MSG_ERROR])
7037
dnl aclocal-1.4 backwards compatibility:
7038
dnl AC_DEFUN([_LT_PROG_F77], [])
7041
# _LT_LANG_F77_CONFIG([TAG])
7042
# --------------------------
7043
# Ensure that the configuration variables for a Fortran 77 compiler are
7044
# suitably defined. These variables are subsequently used by _LT_CONFIG
7045
# to write the compiler configuration to `libtool'.
7046
m4_defun([_LT_LANG_F77_CONFIG],
7047
[AC_REQUIRE([_LT_PROG_F77])dnl
7048
AC_LANG_PUSH(Fortran 77)
7050
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7051
_LT_TAGVAR(allow_undefined_flag, $1)=
7052
_LT_TAGVAR(always_export_symbols, $1)=no
7053
_LT_TAGVAR(archive_expsym_cmds, $1)=
7054
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7055
_LT_TAGVAR(hardcode_direct, $1)=no
7056
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7057
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7058
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7059
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7060
_LT_TAGVAR(hardcode_minus_L, $1)=no
7061
_LT_TAGVAR(hardcode_automatic, $1)=no
7062
_LT_TAGVAR(inherit_rpath, $1)=no
7063
_LT_TAGVAR(module_cmds, $1)=
7064
_LT_TAGVAR(module_expsym_cmds, $1)=
7065
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7066
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7067
_LT_TAGVAR(no_undefined_flag, $1)=
7068
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7069
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7071
# Source file extension for f77 test sources.
7074
# Object file extension for compiled f77 test sources.
7076
_LT_TAGVAR(objext, $1)=$objext
7078
# No sense in running all these tests if we already determined that
7079
# the F77 compiler isn't working. Some variables (like enable_shared)
7080
# are currently assumed to apply to all compilers on this platform,
7081
# and will be corrupted by setting them based on a non-working compiler.
7082
if test "$_lt_disable_F77" != yes; then
7083
# Code to be used in simple compile tests
7084
lt_simple_compile_test_code="\
7090
# Code to be used in simple link tests
7091
lt_simple_link_test_code="\
7096
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7099
# save warnings/boilerplate of simple test code
7100
_LT_COMPILER_BOILERPLATE
7101
_LT_LINKER_BOILERPLATE
7103
# Allow CC to be a program name with arguments.
7108
_LT_TAGVAR(compiler, $1)=$CC
7109
_LT_CC_BASENAME([$compiler])
7111
if test -n "$compiler"; then
7112
AC_MSG_CHECKING([if libtool supports shared libraries])
7113
AC_MSG_RESULT([$can_build_shared])
7115
AC_MSG_CHECKING([whether to build shared libraries])
7116
test "$can_build_shared" = "no" && enable_shared=no
7118
# On AIX, shared libraries and static libraries use the same namespace, and
7119
# are all built from PIC.
7122
test "$enable_shared" = yes && enable_static=no
7123
if test -n "$RANLIB"; then
7124
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7125
postinstall_cmds='$RANLIB $lib'
7129
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7130
test "$enable_shared" = yes && enable_static=no
7134
AC_MSG_RESULT([$enable_shared])
7136
AC_MSG_CHECKING([whether to build static libraries])
7137
# Make sure either enable_shared or enable_static is yes.
7138
test "$enable_shared" = yes || enable_static=yes
7139
AC_MSG_RESULT([$enable_static])
7141
_LT_TAGVAR(GCC, $1)="$G77"
7142
_LT_TAGVAR(LD, $1)="$LD"
7145
## There is no encapsulation within the following macros, do not change
7146
## the running order or otherwise move them around unless you know exactly
7147
## what you are doing...
7148
_LT_COMPILER_PIC($1)
7149
_LT_COMPILER_C_O($1)
7150
_LT_COMPILER_FILE_LOCKS($1)
7151
_LT_LINKER_SHLIBS($1)
7152
_LT_SYS_DYNAMIC_LINKER($1)
7153
_LT_LINKER_HARDCODE_LIBPATH($1)
7156
fi # test -n "$compiler"
7160
fi # test "$_lt_disable_F77" != yes
7163
])# _LT_LANG_F77_CONFIG
7168
# Since AC_PROG_FC is broken, in that it returns the empty string
7169
# if there is no fortran compiler, we have our own version here.
7170
m4_defun([_LT_PROG_FC],
7172
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7174
if test -z "$FC" || test "X$FC" = "Xno"; then
7177
popdef([AC_MSG_ERROR])
7180
dnl aclocal-1.4 backwards compatibility:
7181
dnl AC_DEFUN([_LT_PROG_FC], [])
7184
# _LT_LANG_FC_CONFIG([TAG])
7185
# -------------------------
7186
# Ensure that the configuration variables for a Fortran compiler are
7187
# suitably defined. These variables are subsequently used by _LT_CONFIG
7188
# to write the compiler configuration to `libtool'.
7189
m4_defun([_LT_LANG_FC_CONFIG],
7190
[AC_REQUIRE([_LT_PROG_FC])dnl
7191
AC_LANG_PUSH(Fortran)
7193
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7194
_LT_TAGVAR(allow_undefined_flag, $1)=
7195
_LT_TAGVAR(always_export_symbols, $1)=no
7196
_LT_TAGVAR(archive_expsym_cmds, $1)=
7197
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7198
_LT_TAGVAR(hardcode_direct, $1)=no
7199
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7200
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7201
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7202
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7203
_LT_TAGVAR(hardcode_minus_L, $1)=no
7204
_LT_TAGVAR(hardcode_automatic, $1)=no
7205
_LT_TAGVAR(inherit_rpath, $1)=no
7206
_LT_TAGVAR(module_cmds, $1)=
7207
_LT_TAGVAR(module_expsym_cmds, $1)=
7208
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7209
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7210
_LT_TAGVAR(no_undefined_flag, $1)=
7211
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7212
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7214
# Source file extension for fc test sources.
7215
ac_ext=${ac_fc_srcext-f}
7217
# Object file extension for compiled fc test sources.
7219
_LT_TAGVAR(objext, $1)=$objext
7221
# No sense in running all these tests if we already determined that
7222
# the FC compiler isn't working. Some variables (like enable_shared)
7223
# are currently assumed to apply to all compilers on this platform,
7224
# and will be corrupted by setting them based on a non-working compiler.
7225
if test "$_lt_disable_FC" != yes; then
7226
# Code to be used in simple compile tests
7227
lt_simple_compile_test_code="\
7233
# Code to be used in simple link tests
7234
lt_simple_link_test_code="\
7239
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7242
# save warnings/boilerplate of simple test code
7243
_LT_COMPILER_BOILERPLATE
7244
_LT_LINKER_BOILERPLATE
7246
# Allow CC to be a program name with arguments.
7251
GCC=$ac_cv_fc_compiler_gnu
7253
_LT_TAGVAR(compiler, $1)=$CC
7254
_LT_CC_BASENAME([$compiler])
7256
if test -n "$compiler"; then
7257
AC_MSG_CHECKING([if libtool supports shared libraries])
7258
AC_MSG_RESULT([$can_build_shared])
7260
AC_MSG_CHECKING([whether to build shared libraries])
7261
test "$can_build_shared" = "no" && enable_shared=no
7263
# On AIX, shared libraries and static libraries use the same namespace, and
7264
# are all built from PIC.
7267
test "$enable_shared" = yes && enable_static=no
7268
if test -n "$RANLIB"; then
7269
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7270
postinstall_cmds='$RANLIB $lib'
7274
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7275
test "$enable_shared" = yes && enable_static=no
7279
AC_MSG_RESULT([$enable_shared])
7281
AC_MSG_CHECKING([whether to build static libraries])
7282
# Make sure either enable_shared or enable_static is yes.
7283
test "$enable_shared" = yes || enable_static=yes
7284
AC_MSG_RESULT([$enable_static])
7286
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7287
_LT_TAGVAR(LD, $1)="$LD"
7290
## There is no encapsulation within the following macros, do not change
7291
## the running order or otherwise move them around unless you know exactly
7292
## what you are doing...
7293
_LT_SYS_HIDDEN_LIBDEPS($1)
7294
_LT_COMPILER_PIC($1)
7295
_LT_COMPILER_C_O($1)
7296
_LT_COMPILER_FILE_LOCKS($1)
7297
_LT_LINKER_SHLIBS($1)
7298
_LT_SYS_DYNAMIC_LINKER($1)
7299
_LT_LINKER_HARDCODE_LIBPATH($1)
7302
fi # test -n "$compiler"
7306
fi # test "$_lt_disable_FC" != yes
7309
])# _LT_LANG_FC_CONFIG
7312
# _LT_LANG_GCJ_CONFIG([TAG])
7313
# --------------------------
7314
# Ensure that the configuration variables for the GNU Java Compiler compiler
7315
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7316
# to write the compiler configuration to `libtool'.
7317
m4_defun([_LT_LANG_GCJ_CONFIG],
7318
[AC_REQUIRE([LT_PROG_GCJ])dnl
7321
# Source file extension for Java test sources.
7324
# Object file extension for compiled Java test sources.
7326
_LT_TAGVAR(objext, $1)=$objext
7328
# Code to be used in simple compile tests
7329
lt_simple_compile_test_code="class foo {}"
7331
# Code to be used in simple link tests
7332
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7334
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7337
# save warnings/boilerplate of simple test code
7338
_LT_COMPILER_BOILERPLATE
7339
_LT_LINKER_BOILERPLATE
7341
# Allow CC to be a program name with arguments.
7347
_LT_TAGVAR(compiler, $1)=$CC
7348
_LT_TAGVAR(LD, $1)="$LD"
7349
_LT_CC_BASENAME([$compiler])
7351
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7352
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7354
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7356
if test -n "$compiler"; then
7357
_LT_COMPILER_NO_RTTI($1)
7358
_LT_COMPILER_PIC($1)
7359
_LT_COMPILER_C_O($1)
7360
_LT_COMPILER_FILE_LOCKS($1)
7361
_LT_LINKER_SHLIBS($1)
7362
_LT_LINKER_HARDCODE_LIBPATH($1)
7371
])# _LT_LANG_GCJ_CONFIG
7374
# _LT_LANG_RC_CONFIG([TAG])
7375
# -------------------------
7376
# Ensure that the configuration variables for the Windows resource compiler
7377
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7378
# to write the compiler configuration to `libtool'.
7379
m4_defun([_LT_LANG_RC_CONFIG],
7380
[AC_REQUIRE([LT_PROG_RC])dnl
7383
# Source file extension for RC test sources.
7386
# Object file extension for compiled RC test sources.
7388
_LT_TAGVAR(objext, $1)=$objext
7390
# Code to be used in simple compile tests
7391
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7393
# Code to be used in simple link tests
7394
lt_simple_link_test_code="$lt_simple_compile_test_code"
7396
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7399
# save warnings/boilerplate of simple test code
7400
_LT_COMPILER_BOILERPLATE
7401
_LT_LINKER_BOILERPLATE
7403
# Allow CC to be a program name with arguments.
7409
_LT_TAGVAR(compiler, $1)=$CC
7410
_LT_CC_BASENAME([$compiler])
7411
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7413
if test -n "$compiler"; then
7421
])# _LT_LANG_RC_CONFIG
7426
AC_DEFUN([LT_PROG_GCJ],
7427
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7428
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7429
[AC_CHECK_TOOL(GCJ, gcj,)
7430
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7431
AC_SUBST(GCJFLAGS)])])[]dnl
7435
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7436
dnl aclocal-1.4 backwards compatibility:
7437
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7442
AC_DEFUN([LT_PROG_RC],
7443
[AC_CHECK_TOOL(RC, windres,)
7447
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7448
dnl aclocal-1.4 backwards compatibility:
7449
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7454
# If we don't have a new enough Autoconf to choose the best grep
7455
# available, choose the one first in the user's PATH.
7456
m4_defun([_LT_DECL_EGREP],
7457
[AC_REQUIRE([AC_PROG_EGREP])dnl
7458
AC_REQUIRE([AC_PROG_FGREP])dnl
7459
test -z "$GREP" && GREP=grep
7460
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7461
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7462
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7463
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7470
# If we don't have a new enough Autoconf to choose the best objdump
7471
# available, choose the one first in the user's PATH.
7472
m4_defun([_LT_DECL_OBJDUMP],
7473
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7474
test -z "$OBJDUMP" && OBJDUMP=objdump
7475
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7482
# Check for a fully-functional sed program, that truncates
7483
# as few characters as possible. Prefer GNU sed if found.
7484
m4_defun([_LT_DECL_SED],
7486
test -z "$SED" && SED=sed
7487
Xsed="$SED -e 1s/^X//"
7488
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7489
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7490
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7493
m4_ifndef([AC_PROG_SED], [
7494
# NOTE: This macro has been submitted for inclusion into #
7495
# GNU Autoconf as AC_PROG_SED. When it is available in #
7496
# a released version of Autoconf we should remove this #
7497
# macro and use it instead. #
7499
m4_defun([AC_PROG_SED],
7500
[AC_MSG_CHECKING([for a sed that does not truncate output])
7501
AC_CACHE_VAL(lt_cv_path_SED,
7502
[# Loop through the user's path and test for sed and gsed.
7503
# Then use that list of sed's as ones to test for truncation.
7504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508
test -z "$as_dir" && as_dir=.
7509
for lt_ac_prog in sed gsed; do
7510
for ac_exec_ext in '' $ac_executable_extensions; do
7511
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7512
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7520
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7521
# along with /bin/sed that truncates output.
7522
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7523
test ! -f $lt_ac_sed && continue
7524
cat /dev/null > conftest.in
7526
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7527
# Check for GNU sed and select it if it is found.
7528
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7529
lt_cv_path_SED=$lt_ac_sed
7533
cat conftest.in conftest.in >conftest.tmp
7534
mv conftest.tmp conftest.in
7535
cp conftest.in conftest.nl
7537
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7538
cmp -s conftest.out conftest.nl || break
7539
# 10000 chars as input seems more than enough
7540
test $lt_ac_count -gt 10 && break
7541
lt_ac_count=`expr $lt_ac_count + 1`
7542
if test $lt_ac_count -gt $lt_ac_max; then
7543
lt_ac_max=$lt_ac_count
7544
lt_cv_path_SED=$lt_ac_sed
7551
AC_MSG_RESULT([$SED])
7556
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7557
dnl aclocal-1.4 backwards compatibility:
7558
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7561
# _LT_CHECK_SHELL_FEATURES
7562
# ------------------------
7563
# Find out whether the shell is Bourne or XSI compatible,
7564
# or has some other useful features.
7565
m4_defun([_LT_CHECK_SHELL_FEATURES],
7566
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7567
# Try some XSI features
7570
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7572
&& eval 'test $(( 1 + 1 )) -eq 2 \
7573
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7575
AC_MSG_RESULT([$xsi_shell])
7576
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7578
AC_MSG_CHECKING([whether the shell understands "+="])
7580
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7582
&& lt_shell_append=yes
7583
AC_MSG_RESULT([$lt_shell_append])
7584
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7586
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7591
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7593
# test EBCDIC or ASCII
7594
case `echo X|tr X '\101'` in
7595
A) # ASCII based system
7596
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7597
lt_SP2NL='tr \040 \012'
7598
lt_NL2SP='tr \015\012 \040\040'
7600
*) # EBCDIC based system
7601
lt_SP2NL='tr \100 \n'
7602
lt_NL2SP='tr \r\n \100\100'
7605
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7606
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7607
])# _LT_CHECK_SHELL_FEATURES
7610
# _LT_PROG_XSI_SHELLFNS
7611
# ---------------------
7612
# Bourne and XSI compatible variants of some useful shell functions.
7613
m4_defun([_LT_PROG_XSI_SHELLFNS],
7616
cat << \_LT_EOF >> "$cfgfile"
7618
# func_dirname file append nondir_replacement
7619
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7620
# otherwise set result to NONDIR_REPLACEMENT.
7624
*/*) func_dirname_result="${1%/*}${2}" ;;
7625
* ) func_dirname_result="${3}" ;;
7629
# func_basename file
7632
func_basename_result="${1##*/}"
7635
# func_dirname_and_basename file append nondir_replacement
7636
# perform func_basename and func_dirname in a single function
7638
# dirname: Compute the dirname of FILE. If nonempty,
7639
# add APPEND to the result, otherwise set result
7640
# to NONDIR_REPLACEMENT.
7641
# value returned in "$func_dirname_result"
7642
# basename: Compute filename of FILE.
7643
# value retuned in "$func_basename_result"
7644
# Implementation must be kept synchronized with func_dirname
7645
# and func_basename. For efficiency, we do not delegate to
7646
# those functions but instead duplicate the functionality here.
7647
func_dirname_and_basename ()
7650
*/*) func_dirname_result="${1%/*}${2}" ;;
7651
* ) func_dirname_result="${3}" ;;
7653
func_basename_result="${1##*/}"
7656
# func_stripname prefix suffix name
7657
# strip PREFIX and SUFFIX off of NAME.
7658
# PREFIX and SUFFIX must not contain globbing or regex special
7659
# characters, hashes, percent signs, but SUFFIX may contain a leading
7660
# dot (in which case that matches only a dot).
7663
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7664
# positional parameters, so assign one to ordinary parameter first.
7665
func_stripname_result=${3}
7666
func_stripname_result=${func_stripname_result#"${1}"}
7667
func_stripname_result=${func_stripname_result%"${2}"}
7673
func_opt_split_opt=${1%%=*}
7674
func_opt_split_arg=${1#*=}
7681
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7682
*) func_lo2o_result=${1} ;;
7686
# func_xform libobj-or-source
7689
func_xform_result=${1%.*}.lo
7692
# func_arith arithmetic-term...
7695
func_arith_result=$(( $[*] ))
7699
# STRING may not start with a hyphen.
7702
func_len_result=${#1}
7707
*) # Bourne compatible functions.
7708
cat << \_LT_EOF >> "$cfgfile"
7710
# func_dirname file append nondir_replacement
7711
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7712
# otherwise set result to NONDIR_REPLACEMENT.
7715
# Extract subdirectory from the argument.
7716
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7717
if test "X$func_dirname_result" = "X${1}"; then
7718
func_dirname_result="${3}"
7720
func_dirname_result="$func_dirname_result${2}"
7724
# func_basename file
7727
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7730
dnl func_dirname_and_basename
7731
dnl A portable version of this function is already defined in general.m4sh
7732
dnl so there is no need for it here.
7734
# func_stripname prefix suffix name
7735
# strip PREFIX and SUFFIX off of NAME.
7736
# PREFIX and SUFFIX must not contain globbing or regex special
7737
# characters, hashes, percent signs, but SUFFIX may contain a leading
7738
# dot (in which case that matches only a dot).
7739
# func_strip_suffix prefix name
7743
.*) func_stripname_result=`$ECHO "X${3}" \
7744
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7745
*) func_stripname_result=`$ECHO "X${3}" \
7746
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7751
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7752
my_sed_long_arg='1s/^-[[^=]]*=//'
7757
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7758
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7764
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7767
# func_xform libobj-or-source
7770
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7773
# func_arith arithmetic-term...
7776
func_arith_result=`expr "$[@]"`
7780
# STRING may not start with a hyphen.
7783
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7789
case $lt_shell_append in
7791
cat << \_LT_EOF >> "$cfgfile"
7793
# func_append var value
7794
# Append VALUE to the end of shell variable VAR.
7802
cat << \_LT_EOF >> "$cfgfile"
7804
# func_append var value
7805
# Append VALUE to the end of shell variable VAR.
7808
eval "$[1]=\$$[1]\$[2]"
7816
# Helper functions for option handling. -*- Autoconf -*-
7818
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7819
# Written by Gary V. Vaughan, 2004
7821
# This file is free software; the Free Software Foundation gives
7822
# unlimited permission to copy and/or distribute it, with or without
7823
# modifications, as long as this notice is preserved.
7825
# serial 6 ltoptions.m4
7827
# This is to help aclocal find these macros, as it can't see m4_define.
7828
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7831
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7832
# ------------------------------------------
7833
m4_define([_LT_MANGLE_OPTION],
7834
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7837
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7838
# ---------------------------------------
7839
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7840
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
7842
m4_define([_LT_SET_OPTION],
7843
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7844
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7845
_LT_MANGLE_DEFUN([$1], [$2]),
7846
[m4_warning([Unknown $1 option `$2'])])[]dnl
7850
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7851
# ------------------------------------------------------------
7852
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7853
m4_define([_LT_IF_OPTION],
7854
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7857
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7858
# -------------------------------------------------------
7859
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7861
m4_define([_LT_UNLESS_OPTIONS],
7862
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7863
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7864
[m4_define([$0_found])])])[]dnl
7865
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7870
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7871
# ----------------------------------------
7872
# OPTION-LIST is a space-separated list of Libtool options associated
7873
# with MACRO-NAME. If any OPTION has a matching handler declared with
7874
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7875
# the unknown option and exit.
7876
m4_defun([_LT_SET_OPTIONS],
7878
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7879
[_LT_SET_OPTION([$1], _LT_Option)])
7881
m4_if([$1],[LT_INIT],[
7883
dnl Simply set some default values (i.e off) if boolean options were not
7885
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7887
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7890
dnl If no reference was made to various pairs of opposing options, then
7891
dnl we run the default mode handler for the pair. For example, if neither
7892
dnl `shared' nor `disable-shared' was passed, we enable building of shared
7893
dnl archives by default:
7894
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7895
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7896
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7897
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7898
[_LT_ENABLE_FAST_INSTALL])
7904
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7905
# -----------------------------------------
7906
m4_define([_LT_MANGLE_DEFUN],
7907
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7910
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7911
# -----------------------------------------------
7912
m4_define([LT_OPTION_DEFINE],
7913
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7914
])# LT_OPTION_DEFINE
7919
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7922
AU_DEFUN([AC_LIBTOOL_DLOPEN],
7923
[_LT_SET_OPTION([LT_INIT], [dlopen])
7924
AC_DIAGNOSE([obsolete],
7925
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7926
put the `dlopen' option into LT_INIT's first parameter.])
7929
dnl aclocal-1.4 backwards compatibility:
7930
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7935
# Declare package support for building win32 dll's.
7936
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7937
[enable_win32_dll=yes
7940
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7941
AC_CHECK_TOOL(AS, as, false)
7942
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7943
AC_CHECK_TOOL(OBJDUMP, objdump, false)
7947
test -z "$AS" && AS=as
7948
_LT_DECL([], [AS], [0], [Assembler program])dnl
7950
test -z "$DLLTOOL" && DLLTOOL=dlltool
7951
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7953
test -z "$OBJDUMP" && OBJDUMP=objdump
7954
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7957
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7958
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7959
_LT_SET_OPTION([LT_INIT], [win32-dll])
7960
AC_DIAGNOSE([obsolete],
7961
[$0: Remove this warning and the call to _LT_SET_OPTION when you
7962
put the `win32-dll' option into LT_INIT's first parameter.])
7965
dnl aclocal-1.4 backwards compatibility:
7966
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7969
# _LT_ENABLE_SHARED([DEFAULT])
7970
# ----------------------------
7971
# implement the --enable-shared flag, and supports the `shared' and
7972
# `disable-shared' LT_INIT options.
7973
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7974
m4_define([_LT_ENABLE_SHARED],
7975
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7976
AC_ARG_ENABLE([shared],
7977
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7978
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7979
[p=${PACKAGE-default}
7981
yes) enable_shared=yes ;;
7982
no) enable_shared=no ;;
7985
# Look at the argument we got. We use all the common list separators.
7986
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7987
for pkg in $enableval; do
7989
if test "X$pkg" = "X$p"; then
7996
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7998
_LT_DECL([build_libtool_libs], [enable_shared], [0],
7999
[Whether or not to build shared libraries])
8000
])# _LT_ENABLE_SHARED
8002
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8003
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8006
AC_DEFUN([AC_ENABLE_SHARED],
8007
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8010
AC_DEFUN([AC_DISABLE_SHARED],
8011
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8014
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8015
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8017
dnl aclocal-1.4 backwards compatibility:
8018
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8019
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8023
# _LT_ENABLE_STATIC([DEFAULT])
8024
# ----------------------------
8025
# implement the --enable-static flag, and support the `static' and
8026
# `disable-static' LT_INIT options.
8027
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8028
m4_define([_LT_ENABLE_STATIC],
8029
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8030
AC_ARG_ENABLE([static],
8031
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8032
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8033
[p=${PACKAGE-default}
8035
yes) enable_static=yes ;;
8036
no) enable_static=no ;;
8039
# Look at the argument we got. We use all the common list separators.
8040
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041
for pkg in $enableval; do
8043
if test "X$pkg" = "X$p"; then
8050
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8052
_LT_DECL([build_old_libs], [enable_static], [0],
8053
[Whether or not to build static libraries])
8054
])# _LT_ENABLE_STATIC
8056
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8057
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8060
AC_DEFUN([AC_ENABLE_STATIC],
8061
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8064
AC_DEFUN([AC_DISABLE_STATIC],
8065
[_LT_SET_OPTION([LT_INIT], [disable-static])
8068
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8069
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8071
dnl aclocal-1.4 backwards compatibility:
8072
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8073
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8077
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8078
# ----------------------------------
8079
# implement the --enable-fast-install flag, and support the `fast-install'
8080
# and `disable-fast-install' LT_INIT options.
8081
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8082
m4_define([_LT_ENABLE_FAST_INSTALL],
8083
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8084
AC_ARG_ENABLE([fast-install],
8085
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8086
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8087
[p=${PACKAGE-default}
8089
yes) enable_fast_install=yes ;;
8090
no) enable_fast_install=no ;;
8092
enable_fast_install=no
8093
# Look at the argument we got. We use all the common list separators.
8094
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8095
for pkg in $enableval; do
8097
if test "X$pkg" = "X$p"; then
8098
enable_fast_install=yes
8104
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8106
_LT_DECL([fast_install], [enable_fast_install], [0],
8107
[Whether or not to optimize for fast installation])dnl
8108
])# _LT_ENABLE_FAST_INSTALL
8110
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8111
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8114
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8115
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8116
AC_DIAGNOSE([obsolete],
8117
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8118
the `fast-install' option into LT_INIT's first parameter.])
8121
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8122
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8123
AC_DIAGNOSE([obsolete],
8124
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8125
the `disable-fast-install' option into LT_INIT's first parameter.])
8128
dnl aclocal-1.4 backwards compatibility:
8129
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8130
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8133
# _LT_WITH_PIC([MODE])
8134
# --------------------
8135
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8137
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8138
m4_define([_LT_WITH_PIC],
8140
[AS_HELP_STRING([--with-pic],
8141
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8142
[pic_mode="$withval"],
8145
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8147
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8150
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8151
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8154
AU_DEFUN([AC_LIBTOOL_PICMODE],
8155
[_LT_SET_OPTION([LT_INIT], [pic-only])
8156
AC_DIAGNOSE([obsolete],
8157
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8158
put the `pic-only' option into LT_INIT's first parameter.])
8161
dnl aclocal-1.4 backwards compatibility:
8162
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8165
m4_define([_LTDL_MODE], [])
8166
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8167
[m4_define([_LTDL_MODE], [nonrecursive])])
8168
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8169
[m4_define([_LTDL_MODE], [recursive])])
8170
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8171
[m4_define([_LTDL_MODE], [subproject])])
8173
m4_define([_LTDL_TYPE], [])
8174
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8175
[m4_define([_LTDL_TYPE], [installable])])
8176
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8177
[m4_define([_LTDL_TYPE], [convenience])])
8179
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8181
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8182
# Written by Gary V. Vaughan, 2004
8184
# This file is free software; the Free Software Foundation gives
8185
# unlimited permission to copy and/or distribute it, with or without
8186
# modifications, as long as this notice is preserved.
8188
# serial 6 ltsugar.m4
8190
# This is to help aclocal find these macros, as it can't see m4_define.
8191
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8194
# lt_join(SEP, ARG1, [ARG2...])
8195
# -----------------------------
8196
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8197
# associated separator.
8198
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8199
# versions in m4sugar had bugs.
8200
m4_define([lt_join],
8201
[m4_if([$#], [1], [],
8203
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8204
m4_define([_lt_join],
8205
[m4_if([$#$2], [2], [],
8206
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8212
# Manipulate m4 lists.
8213
# These macros are necessary as long as will still need to support
8214
# Autoconf-2.59 which quotes differently.
8215
m4_define([lt_car], [[$1]])
8217
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8219
[m4_dquote(m4_shift($@))])])
8220
m4_define([lt_unquote], $1)
8223
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8224
# ------------------------------------------
8225
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8226
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8227
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8228
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8229
# than defined and empty).
8231
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8232
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8233
m4_define([lt_append],
8235
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8239
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8240
# ----------------------------------------------------------
8241
# Produce a SEP delimited list of all paired combinations of elements of
8242
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8243
# has the form PREFIXmINFIXSUFFIXn.
8244
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8245
m4_define([lt_combine],
8246
[m4_if(m4_eval([$# > 3]), [1],
8247
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8248
[[m4_foreach([_Lt_prefix], [$2],
8249
[m4_foreach([_Lt_suffix],
8250
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8251
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8254
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8255
# -----------------------------------------------------------------------
8256
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8257
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8258
m4_define([lt_if_append_uniq],
8260
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8261
[lt_append([$1], [$2], [$3])$4],
8263
[lt_append([$1], [$2], [$3])$4])])
8266
# lt_dict_add(DICT, KEY, VALUE)
8267
# -----------------------------
8268
m4_define([lt_dict_add],
8269
[m4_define([$1($2)], [$3])])
8272
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8273
# --------------------------------------------
8274
m4_define([lt_dict_add_subkey],
8275
[m4_define([$1($2:$3)], [$4])])
8278
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8279
# ----------------------------------
8280
m4_define([lt_dict_fetch],
8282
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8283
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8286
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8287
# -----------------------------------------------------------------
8288
m4_define([lt_if_dict_fetch],
8289
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8294
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8295
# --------------------------------------------------------------
8296
m4_define([lt_dict_filter],
8297
[m4_if([$5], [], [],
8298
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8299
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8300
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8303
# ltversion.m4 -- version numbers -*- Autoconf -*-
8305
# Copyright (C) 2004 Free Software Foundation, Inc.
8306
# Written by Scott James Remnant, 2004
8308
# This file is free software; the Free Software Foundation gives
8309
# unlimited permission to copy and/or distribute it, with or without
8310
# modifications, as long as this notice is preserved.
8312
# Generated from ltversion.in.
8314
# serial 3012 ltversion.m4
8315
# This file is part of GNU Libtool
8317
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8318
m4_define([LT_PACKAGE_REVISION], [1.3012])
8320
AC_DEFUN([LTVERSION_VERSION],
8321
[macro_version='2.2.6'
8322
macro_revision='1.3012'
8323
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8324
_LT_DECL(, macro_revision, 0)
8327
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8329
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8330
# Written by Scott James Remnant, 2004.
8332
# This file is free software; the Free Software Foundation gives
8333
# unlimited permission to copy and/or distribute it, with or without
8334
# modifications, as long as this notice is preserved.
8336
# serial 4 lt~obsolete.m4
8338
# These exist entirely to fool aclocal when bootstrapping libtool.
8340
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8341
# which have later been changed to m4_define as they aren't part of the
8342
# exported API, or moved to Autoconf or Automake where they belong.
8344
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8345
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8346
# using a macro with the same name in our local m4/libtool.m4 it'll
8347
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8348
# and doesn't know about Autoconf macros at all.)
8350
# So we provide this file, which has a silly filename so it's always
8351
# included after everything else. This provides aclocal with the
8352
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8353
# because those macros already exist, or will be overwritten later.
8354
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8356
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8357
# Yes, that means every name once taken will need to remain here until
8358
# we give up compatibility with versions before 1.7, at which point
8359
# we need to keep only those names which we still refer to.
8361
# This is to help aclocal find these macros, as it can't see m4_define.
8362
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8364
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8365
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8366
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8367
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8368
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8369
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8370
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8371
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8372
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8373
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8374
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8375
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8376
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8377
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8378
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8379
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8380
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8381
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8382
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8383
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8384
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8385
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8386
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8387
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8388
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8389
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8390
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8391
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8392
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8393
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8394
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8395
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8396
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8397
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8398
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8399
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8400
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8401
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8402
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8403
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8404
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8405
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8406
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8407
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8408
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8409
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8410
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8411
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8412
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8413
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8414
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8415
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8416
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8417
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8418
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8420
455
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8422
457
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.