~ubuntu-branches/ubuntu/precise/gnome-bluetooth/precise-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-05 13:34:38 UTC
  • mto: (2.2.1 experimental) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090805133438-791u4ywsppj71d9y
Tags: upstream-2.27.8
ImportĀ upstreamĀ versionĀ 2.27.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.63],,
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
55
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
56
 
57
57
  AC_ARG_ENABLE(schemas-install,
58
 
     [  --disable-schemas-install       Disable the schemas installation],
 
58
        AC_HELP_STRING([--disable-schemas-install],
 
59
                       [Disable the schemas installation]),
59
60
     [case ${enableval} in
60
61
       yes|no) ;;
61
 
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
 
62
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
62
63
      esac])
63
64
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
64
65
])
724
725
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
725
726
#
726
727
AC_DEFUN([GNOME_DOC_INIT],
727
 
[
 
728
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
729
 
728
730
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
729
731
 
730
732
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
749
751
[
750
752
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
751
753
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
752
 
 
753
754
  dnl for overriding the documentation installation directory
754
755
  AC_ARG_WITH([html-dir],
755
756
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
768
769
      [PKG_CHECK_EXISTS([gtk-doc],,
769
770
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
770
771
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
771
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
772
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
772
773
  fi
773
774
 
774
775
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
775
776
  AC_MSG_RESULT($enable_gtk_doc)
776
777
 
777
 
  dnl check for tools we added during development
778
 
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
779
 
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
778
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
780
779
 
781
780
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
782
781
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
783
 
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
784
782
])
785
783
 
786
784
 
837
835
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
838
836
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
839
837
 
840
 
AC_SUBST(INTLTOOL_DESKTOP_RULE)
841
 
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
842
 
AC_SUBST(INTLTOOL_KEYS_RULE)
843
 
AC_SUBST(INTLTOOL_PROP_RULE)
844
 
AC_SUBST(INTLTOOL_OAF_RULE)
845
 
AC_SUBST(INTLTOOL_PONG_RULE)
846
 
AC_SUBST(INTLTOOL_SERVER_RULE)
847
 
AC_SUBST(INTLTOOL_SHEET_RULE)
848
 
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
849
 
AC_SUBST(INTLTOOL_UI_RULE)
850
 
AC_SUBST(INTLTOOL_XAM_RULE)
851
 
AC_SUBST(INTLTOOL_KBD_RULE)
852
 
AC_SUBST(INTLTOOL_XML_RULE)
853
 
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
854
 
AC_SUBST(INTLTOOL_CAVES_RULE)
855
 
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
856
 
AC_SUBST(INTLTOOL_THEME_RULE)
857
 
AC_SUBST(INTLTOOL_SERVICE_RULE)
858
 
AC_SUBST(INTLTOOL_POLICY_RULE)
 
838
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
839
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
840
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
841
_IT_SUBST(INTLTOOL_PROP_RULE)
 
842
_IT_SUBST(INTLTOOL_OAF_RULE)
 
843
_IT_SUBST(INTLTOOL_PONG_RULE)
 
844
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
845
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
846
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
847
_IT_SUBST(INTLTOOL_UI_RULE)
 
848
_IT_SUBST(INTLTOOL_XAM_RULE)
 
849
_IT_SUBST(INTLTOOL_KBD_RULE)
 
850
_IT_SUBST(INTLTOOL_XML_RULE)
 
851
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
852
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
853
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
854
_IT_SUBST(INTLTOOL_THEME_RULE)
 
855
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
856
_IT_SUBST(INTLTOOL_POLICY_RULE)
859
857
 
860
858
# Check the gettext tools to make sure they are GNU
861
859
AC_PATH_PROG(XGETTEXT, xgettext)
872
870
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
873
871
fi
874
872
 
875
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
873
AC_PATH_PROG(INTLTOOL_PERL, perl)
876
874
if test -z "$INTLTOOL_PERL"; then
877
 
   AC_MSG_ERROR([perl not found; required for intltool])
 
875
   AC_MSG_ERROR([perl not found])
878
876
fi
879
 
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
880
 
   AC_MSG_ERROR([perl 5.x required for intltool])
 
877
AC_MSG_CHECKING([for perl >= 5.8.1])
 
878
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
879
if test $? -ne 0; then
 
880
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
881
else
 
882
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
883
   AC_MSG_RESULT([$IT_PERL_VERSION])
881
884
fi
882
885
if test "x$2" != "xno-xml"; then
883
886
   AC_MSG_CHECKING([for XML::Parser])
933
936
dnl of config.status.
934
937
AC_CONFIG_COMMANDS_PRE([
935
938
  AC_CONFIG_COMMANDS([$1/stamp-it], [
936
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
 
939
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
937
940
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
938
941
    fi
939
942
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
955
958
])dnl
956
959
])
957
960
 
 
961
# _IT_SUBST(VARIABLE)
 
962
# -------------------
 
963
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
964
#
 
965
AC_DEFUN([_IT_SUBST],
 
966
[
 
967
AC_SUBST([$1])
 
968
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
969
]
 
970
)
 
971
 
958
972
# deprecated macros
959
973
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
960
974
# A hint is needed for aclocal from Automake <= 1.9.4:
962
976
 
963
977
 
964
978
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
965
 
 
966
 
# serial 52 AC_PROG_LIBTOOL
967
 
 
968
 
 
969
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
970
 
# -----------------------------------------------------------
971
 
# If this macro is not defined by Autoconf, define it here.
972
 
m4_ifdef([AC_PROVIDE_IFELSE],
973
 
         [],
974
 
         [m4_define([AC_PROVIDE_IFELSE],
975
 
                 [m4_ifdef([AC_PROVIDE_$1],
976
 
                           [$2], [$3])])])
977
 
 
978
 
 
979
 
# AC_PROG_LIBTOOL
980
 
# ---------------
981
 
AC_DEFUN([AC_PROG_LIBTOOL],
982
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
983
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
984
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
985
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
986
 
    [AC_LIBTOOL_CXX],
987
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
988
 
  ])])
989
 
dnl And a similar setup for Fortran 77 support
990
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
991
 
    [AC_LIBTOOL_F77],
992
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
993
 
])])
994
 
 
995
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
996
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
997
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
998
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
999
 
    [AC_LIBTOOL_GCJ],
1000
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1001
 
      [AC_LIBTOOL_GCJ],
1002
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1003
 
        [AC_LIBTOOL_GCJ],
1004
 
      [ifdef([AC_PROG_GCJ],
1005
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1006
 
       ifdef([A][M_PROG_GCJ],
1007
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1008
 
       ifdef([LT_AC_PROG_GCJ],
1009
 
             [define([LT_AC_PROG_GCJ],
1010
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1011
 
])])# AC_PROG_LIBTOOL
1012
 
 
1013
 
 
1014
 
# _AC_PROG_LIBTOOL
1015
 
# ----------------
1016
 
AC_DEFUN([_AC_PROG_LIBTOOL],
1017
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1018
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1019
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1020
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
979
#
 
980
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
981
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
982
#   Written by Gordon Matzigkeit, 1996
 
983
#
 
984
# This file is free software; the Free Software Foundation gives
 
985
# unlimited permission to copy and/or distribute it, with or without
 
986
# modifications, as long as this notice is preserved.
 
987
 
 
988
m4_define([_LT_COPYING], [dnl
 
989
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
990
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
991
#   Written by Gordon Matzigkeit, 1996
 
992
#
 
993
#   This file is part of GNU Libtool.
 
994
#
 
995
# GNU Libtool is free software; you can redistribute it and/or
 
996
# modify it under the terms of the GNU General Public License as
 
997
# published by the Free Software Foundation; either version 2 of
 
998
# the License, or (at your option) any later version.
 
999
#
 
1000
# As a special exception to the GNU General Public License,
 
1001
# if you distribute this file as part of a program or library that
 
1002
# is built using GNU Libtool, you may include this file under the
 
1003
# same distribution terms that you use for the rest of that program.
 
1004
#
 
1005
# GNU Libtool is distributed in the hope that it will be useful,
 
1006
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1007
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1008
# GNU General Public License for more details.
 
1009
#
 
1010
# You should have received a copy of the GNU General Public License
 
1011
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
1012
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
1013
# obtained by writing to the Free Software Foundation, Inc.,
 
1014
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
1015
])
 
1016
 
 
1017
# serial 56 LT_INIT
 
1018
 
 
1019
 
 
1020
# LT_PREREQ(VERSION)
 
1021
# ------------------
 
1022
# Complain and exit if this libtool version is less that VERSION.
 
1023
m4_defun([LT_PREREQ],
 
1024
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1025
       [m4_default([$3],
 
1026
                   [m4_fatal([Libtool version $1 or higher is required],
 
1027
                             63)])],
 
1028
       [$2])])
 
1029
 
 
1030
 
 
1031
# _LT_CHECK_BUILDDIR
 
1032
# ------------------
 
1033
# Complain if the absolute build directory name contains unusual characters
 
1034
m4_defun([_LT_CHECK_BUILDDIR],
 
1035
[case `pwd` in
 
1036
  *\ * | *\     *)
 
1037
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1038
esac
 
1039
])
 
1040
 
 
1041
 
 
1042
# LT_INIT([OPTIONS])
 
1043
# ------------------
 
1044
AC_DEFUN([LT_INIT],
 
1045
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1046
AC_BEFORE([$0], [LT_LANG])dnl
 
1047
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1048
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1049
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1050
 
 
1051
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1052
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1053
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1054
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1055
dnl unless we require an AC_DEFUNed macro:
 
1056
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1057
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1058
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1059
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1060
m4_require([_LT_PROG_LTMAIN])dnl
 
1061
 
 
1062
dnl Parse OPTIONS
 
1063
_LT_SET_OPTIONS([$0], [$1])
1021
1064
 
1022
1065
# This can be used to rebuild libtool when needed
1023
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1066
LIBTOOL_DEPS="$ltmain"
1024
1067
 
1025
1068
# Always use our own libtool.
1026
1069
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1027
1070
AC_SUBST(LIBTOOL)dnl
1028
1071
 
1029
 
# Prevent multiple expansion
1030
 
define([AC_PROG_LIBTOOL], [])
1031
 
])# _AC_PROG_LIBTOOL
1032
 
 
1033
 
 
1034
 
# AC_LIBTOOL_SETUP
1035
 
# ----------------
1036
 
AC_DEFUN([AC_LIBTOOL_SETUP],
1037
 
[AC_PREREQ(2.50)dnl
1038
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1039
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1040
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1041
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1072
_LT_SETUP
 
1073
 
 
1074
# Only expand once:
 
1075
m4_define([LT_INIT])
 
1076
])# LT_INIT
 
1077
 
 
1078
# Old names:
 
1079
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1080
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1081
dnl aclocal-1.4 backwards compatibility:
 
1082
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1083
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1084
 
 
1085
 
 
1086
# _LT_CC_BASENAME(CC)
 
1087
# -------------------
 
1088
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1089
m4_defun([_LT_CC_BASENAME],
 
1090
[for cc_temp in $1""; do
 
1091
  case $cc_temp in
 
1092
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1093
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1094
    \-*) ;;
 
1095
    *) break;;
 
1096
  esac
 
1097
done
 
1098
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1099
])
 
1100
 
 
1101
 
 
1102
# _LT_FILEUTILS_DEFAULTS
 
1103
# ----------------------
 
1104
# It is okay to use these file commands and assume they have been set
 
1105
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1106
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1107
[: ${CP="cp -f"}
 
1108
: ${MV="mv -f"}
 
1109
: ${RM="rm -f"}
 
1110
])# _LT_FILEUTILS_DEFAULTS
 
1111
 
 
1112
 
 
1113
# _LT_SETUP
 
1114
# ---------
 
1115
m4_defun([_LT_SETUP],
 
1116
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1042
1117
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1118
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1119
_LT_DECL([], [host], [0])dnl
 
1120
_LT_DECL([], [host_os], [0])dnl
 
1121
dnl
 
1122
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1123
_LT_DECL([], [build], [0])dnl
 
1124
_LT_DECL([], [build_os], [0])dnl
 
1125
dnl
1043
1126
AC_REQUIRE([AC_PROG_CC])dnl
1044
 
AC_REQUIRE([AC_PROG_LD])dnl
1045
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1046
 
AC_REQUIRE([AC_PROG_NM])dnl
1047
 
 
 
1127
AC_REQUIRE([LT_PATH_LD])dnl
 
1128
AC_REQUIRE([LT_PATH_NM])dnl
 
1129
dnl
1048
1130
AC_REQUIRE([AC_PROG_LN_S])dnl
1049
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1050
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1051
 
AC_REQUIRE([AC_OBJEXT])dnl
1052
 
AC_REQUIRE([AC_EXEEXT])dnl
1053
 
dnl
1054
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
1055
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1056
 
AC_LIBTOOL_OBJDIR
1057
 
 
1058
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1059
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1131
test -z "$LN_S" && LN_S="ln -s"
 
1132
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1133
dnl
 
1134
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1135
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1136
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1137
dnl
 
1138
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1139
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1140
m4_require([_LT_CMD_RELOAD])dnl
 
1141
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1142
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1143
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1144
 
 
1145
_LT_CONFIG_LIBTOOL_INIT([
 
1146
# See if we are running on zsh, and set the options which allow our
 
1147
# commands through without removal of \ escapes INIT.
 
1148
if test -n "\${ZSH_VERSION+set}" ; then
 
1149
   setopt NO_GLOB_SUBST
 
1150
fi
 
1151
])
 
1152
if test -n "${ZSH_VERSION+set}" ; then
 
1153
   setopt NO_GLOB_SUBST
 
1154
fi
 
1155
 
 
1156
_LT_CHECK_OBJDIR
 
1157
 
 
1158
m4_require([_LT_TAG_COMPILER])dnl
 
1159
_LT_PROG_ECHO_BACKSLASH
1060
1160
 
1061
1161
case $host_os in
1062
1162
aix3*)
1072
1172
 
1073
1173
# Sed substitution that helps us do robust quoting.  It backslashifies
1074
1174
# metacharacters that are still active within double-quoted strings.
1075
 
Xsed='sed -e 1s/^X//'
1076
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1175
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1077
1176
 
1078
1177
# Same as above, but do not quote variable references.
1079
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1178
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1080
1179
 
1081
1180
# Sed substitution to delay expansion of an escaped shell variable in a
1082
1181
# double_quote_subst'ed string.
1083
1182
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1084
1183
 
 
1184
# Sed substitution to delay expansion of an escaped single quote.
 
1185
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1186
 
1085
1187
# Sed substitution to avoid accidental globbing in evaled expressions
1086
1188
no_glob_subst='s/\*/\\\*/g'
1087
1189
 
1088
 
# Constants:
1089
 
rm="rm -f"
1090
 
 
1091
1190
# Global variables:
1092
 
default_ofile=libtool
 
1191
ofile=libtool
1093
1192
can_build_shared=yes
1094
1193
 
1095
1194
# All known linkers require a `.a' archive for static linking (except MSVC,
1096
1195
# which needs '.lib').
1097
1196
libext=a
1098
 
ltmain="$ac_aux_dir/ltmain.sh"
1099
 
ofile="$default_ofile"
 
1197
 
1100
1198
with_gnu_ld="$lt_cv_prog_gnu_ld"
1101
1199
 
1102
 
AC_CHECK_TOOL(AR, ar, false)
1103
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1104
 
AC_CHECK_TOOL(STRIP, strip, :)
1105
 
 
1106
1200
old_CC="$CC"
1107
1201
old_CFLAGS="$CFLAGS"
1108
1202
 
1109
1203
# Set sane defaults for various variables
1110
 
test -z "$AR" && AR=ar
1111
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1112
 
test -z "$AS" && AS=as
1113
1204
test -z "$CC" && CC=cc
1114
1205
test -z "$LTCC" && LTCC=$CC
1115
1206
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1116
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1117
1207
test -z "$LD" && LD=ld
1118
 
test -z "$LN_S" && LN_S="ln -s"
1119
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1120
 
test -z "$NM" && NM=nm
1121
 
test -z "$SED" && SED=sed
1122
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1123
 
test -z "$RANLIB" && RANLIB=:
1124
 
test -z "$STRIP" && STRIP=:
1125
1208
test -z "$ac_objext" && ac_objext=o
1126
1209
 
1127
 
# Determine commands to create old-style static archives.
1128
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1129
 
old_postinstall_cmds='chmod 644 $oldlib'
1130
 
old_postuninstall_cmds=
1131
 
 
1132
 
if test -n "$RANLIB"; then
1133
 
  case $host_os in
1134
 
  openbsd*)
1135
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1136
 
    ;;
1137
 
  *)
1138
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1139
 
    ;;
1140
 
  esac
1141
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1142
 
fi
1143
 
 
1144
1210
_LT_CC_BASENAME([$compiler])
1145
1211
 
1146
1212
# Only perform the check for file, if the check method requires it
 
1213
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1147
1214
case $deplibs_check_method in
1148
1215
file_magic*)
1149
1216
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1150
 
    AC_PATH_MAGIC
 
1217
    _LT_PATH_MAGIC
1151
1218
  fi
1152
1219
  ;;
1153
1220
esac
1154
1221
 
1155
 
_LT_REQUIRED_DARWIN_CHECKS
1156
 
 
1157
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1158
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1159
 
enable_win32_dll=yes, enable_win32_dll=no)
1160
 
 
1161
 
AC_ARG_ENABLE([libtool-lock],
1162
 
    [AC_HELP_STRING([--disable-libtool-lock],
1163
 
        [avoid locking (might break parallel builds)])])
1164
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1165
 
 
1166
 
AC_ARG_WITH([pic],
1167
 
    [AC_HELP_STRING([--with-pic],
1168
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1169
 
    [pic_mode="$withval"],
1170
 
    [pic_mode=default])
1171
 
test -z "$pic_mode" && pic_mode=default
1172
 
 
1173
1222
# Use C for the default configuration in the libtool script
1174
 
tagname=
1175
 
AC_LIBTOOL_LANG_C_CONFIG
1176
 
_LT_AC_TAGCONFIG
1177
 
])# AC_LIBTOOL_SETUP
1178
 
 
1179
 
 
1180
 
# _LT_AC_SYS_COMPILER
 
1223
LT_SUPPORTED_TAG([CC])
 
1224
_LT_LANG_C_CONFIG
 
1225
_LT_LANG_DEFAULT_CONFIG
 
1226
_LT_CONFIG_COMMANDS
 
1227
])# _LT_SETUP
 
1228
 
 
1229
 
 
1230
# _LT_PROG_LTMAIN
 
1231
# ---------------
 
1232
# Note that this code is called both from `configure', and `config.status'
 
1233
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1234
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1235
# so we pass a copy along to make sure it has a sensible value anyway.
 
1236
m4_defun([_LT_PROG_LTMAIN],
 
1237
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1238
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1239
ltmain="$ac_aux_dir/ltmain.sh"
 
1240
])# _LT_PROG_LTMAIN
 
1241
 
 
1242
 
 
1243
 
 
1244
# So that we can recreate a full libtool script including additional
 
1245
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1246
# in macros and then make a single call at the end using the `libtool'
 
1247
# label.
 
1248
 
 
1249
 
 
1250
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1251
# ----------------------------------------
 
1252
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1253
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1254
[m4_ifval([$1],
 
1255
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1256
                     [$1
 
1257
])])])
 
1258
 
 
1259
# Initialize.
 
1260
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1261
 
 
1262
 
 
1263
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1264
# ------------------------------
 
1265
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1266
m4_define([_LT_CONFIG_LIBTOOL],
 
1267
[m4_ifval([$1],
 
1268
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1269
                     [$1
 
1270
])])])
 
1271
 
 
1272
# Initialize.
 
1273
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1274
 
 
1275
 
 
1276
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1277
# -----------------------------------------------------
 
1278
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1279
[_LT_CONFIG_LIBTOOL([$1])
 
1280
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1281
])
 
1282
 
 
1283
 
 
1284
# _LT_FORMAT_COMMENT([COMMENT])
 
1285
# -----------------------------
 
1286
# Add leading comment marks to the start of each line, and a trailing
 
1287
# full-stop to the whole comment if one is not present already.
 
1288
m4_define([_LT_FORMAT_COMMENT],
 
1289
[m4_ifval([$1], [
 
1290
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1291
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1292
)])
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1299
# -------------------------------------------------------------------
 
1300
# CONFIGNAME is the name given to the value in the libtool script.
 
1301
# VARNAME is the (base) name used in the configure script.
 
1302
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1303
# VARNAME.  Any other value will be used directly.
 
1304
m4_define([_LT_DECL],
 
1305
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1306
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1307
        [m4_ifval([$1], [$1], [$2])])
 
1308
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1309
    m4_ifval([$4],
 
1310
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1311
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1312
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1313
])
 
1314
 
 
1315
 
 
1316
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1317
# --------------------------------------------------------
 
1318
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1319
 
 
1320
 
 
1321
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1322
# ------------------------------------------------
 
1323
m4_define([lt_decl_tag_varnames],
 
1324
[_lt_decl_filter([tagged?], [yes], $@)])
 
1325
 
 
1326
 
 
1327
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1328
# ---------------------------------------------------------
 
1329
m4_define([_lt_decl_filter],
 
1330
[m4_case([$#],
 
1331
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1332
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1333
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1334
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1335
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1336
])
 
1337
 
 
1338
 
 
1339
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1340
# --------------------------------------------------
 
1341
m4_define([lt_decl_quote_varnames],
 
1342
[_lt_decl_filter([value], [1], $@)])
 
1343
 
 
1344
 
 
1345
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1346
# ---------------------------------------------------
 
1347
m4_define([lt_decl_dquote_varnames],
 
1348
[_lt_decl_filter([value], [2], $@)])
 
1349
 
 
1350
 
 
1351
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1352
# ---------------------------------------------------
 
1353
m4_define([lt_decl_varnames_tagged],
 
1354
[m4_assert([$# <= 2])dnl
 
1355
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1356
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1357
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1358
m4_define([_lt_decl_varnames_tagged],
 
1359
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1360
 
 
1361
 
 
1362
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1363
# ------------------------------------------------
 
1364
m4_define([lt_decl_all_varnames],
 
1365
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1366
     m4_if([$2], [],
 
1367
           m4_quote(lt_decl_varnames),
 
1368
        m4_quote(m4_shift($@))))[]dnl
 
1369
])
 
1370
m4_define([_lt_decl_all_varnames],
 
1371
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1372
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1373
])
 
1374
 
 
1375
 
 
1376
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1377
# ------------------------------------
 
1378
# Quote a variable value, and forward it to `config.status' so that its
 
1379
# declaration there will have the same value as in `configure'.  VARNAME
 
1380
# must have a single quote delimited value for this to work.
 
1381
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1382
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1383
 
 
1384
 
 
1385
# _LT_CONFIG_STATUS_DECLARATIONS
 
1386
# ------------------------------
 
1387
# We delimit libtool config variables with single quotes, so when
 
1388
# we write them to config.status, we have to be sure to quote all
 
1389
# embedded single quotes properly.  In configure, this macro expands
 
1390
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1391
#
 
1392
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1393
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1394
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1395
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1396
 
 
1397
 
 
1398
# _LT_LIBTOOL_TAGS
 
1399
# ----------------
 
1400
# Output comment and list of tags supported by the script
 
1401
m4_defun([_LT_LIBTOOL_TAGS],
 
1402
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1403
available_tags="_LT_TAGS"dnl
 
1404
])
 
1405
 
 
1406
 
 
1407
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1408
# -----------------------------------
 
1409
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1410
# expand to a commented shell variable setting:
 
1411
#
 
1412
#    # Some comment about what VAR is for.
 
1413
#    visible_name=$lt_internal_name
 
1414
m4_define([_LT_LIBTOOL_DECLARE],
 
1415
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1416
                                           [description])))[]dnl
 
1417
m4_pushdef([_libtool_name],
 
1418
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1419
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1420
    [0], [_libtool_name=[$]$1],
 
1421
    [1], [_libtool_name=$lt_[]$1],
 
1422
    [2], [_libtool_name=$lt_[]$1],
 
1423
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1424
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1425
])
 
1426
 
 
1427
 
 
1428
# _LT_LIBTOOL_CONFIG_VARS
 
1429
# -----------------------
 
1430
# Produce commented declarations of non-tagged libtool config variables
 
1431
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1432
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1433
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1434
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1435
[m4_foreach([_lt_var],
 
1436
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1437
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1438
 
 
1439
 
 
1440
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1441
# -------------------------
 
1442
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1443
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1444
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1445
 
 
1446
 
 
1447
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1448
# ------------------------------
 
1449
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1450
 
 
1451
 
 
1452
# _LT_CONFIG_COMMANDS
1181
1453
# -------------------
1182
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1454
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1455
# variables for single and double quote escaping we saved from calls
 
1456
# to _LT_DECL, we can put quote escaped variables declarations
 
1457
# into `config.status', and then the shell code to quote escape them in
 
1458
# for loops in `config.status'.  Finally, any additional code accumulated
 
1459
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1460
m4_defun([_LT_CONFIG_COMMANDS],
 
1461
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1462
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1463
        dnl instead of duplicating it all over again into config.status,
 
1464
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1465
        dnl needs to know what name is stored there:
 
1466
        [AC_CONFIG_COMMANDS([libtool],
 
1467
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1468
    dnl If the libtool generation code is destined for config.status,
 
1469
    dnl expand the accumulated commands and init code now:
 
1470
    [AC_CONFIG_COMMANDS([libtool],
 
1471
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1472
])#_LT_CONFIG_COMMANDS
 
1473
 
 
1474
 
 
1475
# Initialize.
 
1476
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1477
[
 
1478
 
 
1479
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1480
# if CDPATH is set.
 
1481
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1482
 
 
1483
sed_quote_subst='$sed_quote_subst'
 
1484
double_quote_subst='$double_quote_subst'
 
1485
delay_variable_subst='$delay_variable_subst'
 
1486
_LT_CONFIG_STATUS_DECLARATIONS
 
1487
LTCC='$LTCC'
 
1488
LTCFLAGS='$LTCFLAGS'
 
1489
compiler='$compiler_DEFAULT'
 
1490
 
 
1491
# Quote evaled strings.
 
1492
for var in lt_decl_all_varnames([[ \
 
1493
]], lt_decl_quote_varnames); do
 
1494
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1495
    *[[\\\\\\\`\\"\\\$]]*)
 
1496
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1497
      ;;
 
1498
    *)
 
1499
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1500
      ;;
 
1501
    esac
 
1502
done
 
1503
 
 
1504
# Double-quote double-evaled strings.
 
1505
for var in lt_decl_all_varnames([[ \
 
1506
]], lt_decl_dquote_varnames); do
 
1507
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1508
    *[[\\\\\\\`\\"\\\$]]*)
 
1509
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1510
      ;;
 
1511
    *)
 
1512
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1513
      ;;
 
1514
    esac
 
1515
done
 
1516
 
 
1517
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1518
case \$lt_ECHO in
 
1519
*'\\\[$]0 --fallback-echo"')dnl "
 
1520
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1521
  ;;
 
1522
esac
 
1523
 
 
1524
_LT_OUTPUT_LIBTOOL_INIT
 
1525
])
 
1526
 
 
1527
 
 
1528
# LT_OUTPUT
 
1529
# ---------
 
1530
# This macro allows early generation of the libtool script (before
 
1531
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1532
# tests.
 
1533
AC_DEFUN([LT_OUTPUT],
 
1534
[: ${CONFIG_LT=./config.lt}
 
1535
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1536
cat >"$CONFIG_LT" <<_LTEOF
 
1537
#! $SHELL
 
1538
# Generated by $as_me.
 
1539
# Run this file to recreate a libtool stub with the current configuration.
 
1540
 
 
1541
lt_cl_silent=false
 
1542
SHELL=\${CONFIG_SHELL-$SHELL}
 
1543
_LTEOF
 
1544
 
 
1545
cat >>"$CONFIG_LT" <<\_LTEOF
 
1546
AS_SHELL_SANITIZE
 
1547
_AS_PREPARE
 
1548
 
 
1549
exec AS_MESSAGE_FD>&1
 
1550
exec AS_MESSAGE_LOG_FD>>config.log
 
1551
{
 
1552
  echo
 
1553
  AS_BOX([Running $as_me.])
 
1554
} >&AS_MESSAGE_LOG_FD
 
1555
 
 
1556
lt_cl_help="\
 
1557
\`$as_me' creates a local libtool stub from the current configuration,
 
1558
for use in further configure time tests before the real libtool is
 
1559
generated.
 
1560
 
 
1561
Usage: $[0] [[OPTIONS]]
 
1562
 
 
1563
  -h, --help      print this help, then exit
 
1564
  -V, --version   print version number, then exit
 
1565
  -q, --quiet     do not print progress messages
 
1566
  -d, --debug     don't remove temporary files
 
1567
 
 
1568
Report bugs to <bug-libtool@gnu.org>."
 
1569
 
 
1570
lt_cl_version="\
 
1571
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1572
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1573
configured by $[0], generated by m4_PACKAGE_STRING.
 
1574
 
 
1575
Copyright (C) 2008 Free Software Foundation, Inc.
 
1576
This config.lt script is free software; the Free Software Foundation
 
1577
gives unlimited permision to copy, distribute and modify it."
 
1578
 
 
1579
while test $[#] != 0
 
1580
do
 
1581
  case $[1] in
 
1582
    --version | --v* | -V )
 
1583
      echo "$lt_cl_version"; exit 0 ;;
 
1584
    --help | --h* | -h )
 
1585
      echo "$lt_cl_help"; exit 0 ;;
 
1586
    --debug | --d* | -d )
 
1587
      debug=: ;;
 
1588
    --quiet | --q* | --silent | --s* | -q )
 
1589
      lt_cl_silent=: ;;
 
1590
 
 
1591
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1592
Try \`$[0] --help' for more information.]) ;;
 
1593
 
 
1594
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1595
Try \`$[0] --help' for more information.]) ;;
 
1596
  esac
 
1597
  shift
 
1598
done
 
1599
 
 
1600
if $lt_cl_silent; then
 
1601
  exec AS_MESSAGE_FD>/dev/null
 
1602
fi
 
1603
_LTEOF
 
1604
 
 
1605
cat >>"$CONFIG_LT" <<_LTEOF
 
1606
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1607
_LTEOF
 
1608
 
 
1609
cat >>"$CONFIG_LT" <<\_LTEOF
 
1610
AC_MSG_NOTICE([creating $ofile])
 
1611
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1612
AS_EXIT(0)
 
1613
_LTEOF
 
1614
chmod +x "$CONFIG_LT"
 
1615
 
 
1616
# configure is writing to config.log, but config.lt does its own redirection,
 
1617
# appending to config.log, which fails on DOS, as config.log is still kept
 
1618
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1619
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1620
if test "$no_create" != yes; then
 
1621
  lt_cl_success=:
 
1622
  test "$silent" = yes &&
 
1623
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1624
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1625
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1626
  exec AS_MESSAGE_LOG_FD>>config.log
 
1627
  $lt_cl_success || AS_EXIT(1)
 
1628
fi
 
1629
])# LT_OUTPUT
 
1630
 
 
1631
 
 
1632
# _LT_CONFIG(TAG)
 
1633
# ---------------
 
1634
# If TAG is the built-in tag, create an initial libtool script with a
 
1635
# default configuration from the untagged config vars.  Otherwise add code
 
1636
# to config.status for appending the configuration named by TAG from the
 
1637
# matching tagged config vars.
 
1638
m4_defun([_LT_CONFIG],
 
1639
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1640
_LT_CONFIG_SAVE_COMMANDS([
 
1641
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1642
  m4_if(_LT_TAG, [C], [
 
1643
    # See if we are running on zsh, and set the options which allow our
 
1644
    # commands through without removal of \ escapes.
 
1645
    if test -n "${ZSH_VERSION+set}" ; then
 
1646
      setopt NO_GLOB_SUBST
 
1647
    fi
 
1648
 
 
1649
    cfgfile="${ofile}T"
 
1650
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1651
    $RM "$cfgfile"
 
1652
 
 
1653
    cat <<_LT_EOF >> "$cfgfile"
 
1654
#! $SHELL
 
1655
 
 
1656
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1657
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1658
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1659
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1660
#
 
1661
_LT_COPYING
 
1662
_LT_LIBTOOL_TAGS
 
1663
 
 
1664
# ### BEGIN LIBTOOL CONFIG
 
1665
_LT_LIBTOOL_CONFIG_VARS
 
1666
_LT_LIBTOOL_TAG_VARS
 
1667
# ### END LIBTOOL CONFIG
 
1668
 
 
1669
_LT_EOF
 
1670
 
 
1671
  case $host_os in
 
1672
  aix3*)
 
1673
    cat <<\_LT_EOF >> "$cfgfile"
 
1674
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1675
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1676
# vanish in a puff of smoke.
 
1677
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1678
  COLLECT_NAMES=
 
1679
  export COLLECT_NAMES
 
1680
fi
 
1681
_LT_EOF
 
1682
    ;;
 
1683
  esac
 
1684
 
 
1685
  _LT_PROG_LTMAIN
 
1686
 
 
1687
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1688
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1689
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1690
  # is reportedly fixed, but why not run on old versions too?
 
1691
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1692
    || (rm -f "$cfgfile"; exit 1)
 
1693
 
 
1694
  _LT_PROG_XSI_SHELLFNS
 
1695
 
 
1696
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1697
    || (rm -f "$cfgfile"; exit 1)
 
1698
 
 
1699
  mv -f "$cfgfile" "$ofile" ||
 
1700
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1701
  chmod +x "$ofile"
 
1702
],
 
1703
[cat <<_LT_EOF >> "$ofile"
 
1704
 
 
1705
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1706
dnl in a comment (ie after a #).
 
1707
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1708
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1709
# ### END LIBTOOL TAG CONFIG: $1
 
1710
_LT_EOF
 
1711
])dnl /m4_if
 
1712
],
 
1713
[m4_if([$1], [], [
 
1714
    PACKAGE='$PACKAGE'
 
1715
    VERSION='$VERSION'
 
1716
    TIMESTAMP='$TIMESTAMP'
 
1717
    RM='$RM'
 
1718
    ofile='$ofile'], [])
 
1719
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1720
])# _LT_CONFIG
 
1721
 
 
1722
 
 
1723
# LT_SUPPORTED_TAG(TAG)
 
1724
# ---------------------
 
1725
# Trace this macro to discover what tags are supported by the libtool
 
1726
# --tag option, using:
 
1727
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1728
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1729
 
 
1730
 
 
1731
# C support is built-in for now
 
1732
m4_define([_LT_LANG_C_enabled], [])
 
1733
m4_define([_LT_TAGS], [])
 
1734
 
 
1735
 
 
1736
# LT_LANG(LANG)
 
1737
# -------------
 
1738
# Enable libtool support for the given language if not already enabled.
 
1739
AC_DEFUN([LT_LANG],
 
1740
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1741
m4_case([$1],
 
1742
  [C],                  [_LT_LANG(C)],
 
1743
  [C++],                [_LT_LANG(CXX)],
 
1744
  [Java],               [_LT_LANG(GCJ)],
 
1745
  [Fortran 77],         [_LT_LANG(F77)],
 
1746
  [Fortran],            [_LT_LANG(FC)],
 
1747
  [Windows Resource],   [_LT_LANG(RC)],
 
1748
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1749
    [_LT_LANG($1)],
 
1750
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1751
])# LT_LANG
 
1752
 
 
1753
 
 
1754
# _LT_LANG(LANGNAME)
 
1755
# ------------------
 
1756
m4_defun([_LT_LANG],
 
1757
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1758
  [LT_SUPPORTED_TAG([$1])dnl
 
1759
  m4_append([_LT_TAGS], [$1 ])dnl
 
1760
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1761
  _LT_LANG_$1_CONFIG($1)])dnl
 
1762
])# _LT_LANG
 
1763
 
 
1764
 
 
1765
# _LT_LANG_DEFAULT_CONFIG
 
1766
# -----------------------
 
1767
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1768
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1769
  [LT_LANG(CXX)],
 
1770
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1771
 
 
1772
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1773
  [LT_LANG(F77)],
 
1774
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1775
 
 
1776
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1777
  [LT_LANG(FC)],
 
1778
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1779
 
 
1780
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1781
dnl pulling things in needlessly.
 
1782
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1783
  [LT_LANG(GCJ)],
 
1784
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1785
    [LT_LANG(GCJ)],
 
1786
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1787
      [LT_LANG(GCJ)],
 
1788
      [m4_ifdef([AC_PROG_GCJ],
 
1789
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1790
       m4_ifdef([A][M_PROG_GCJ],
 
1791
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1792
       m4_ifdef([LT_PROG_GCJ],
 
1793
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1794
 
 
1795
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1796
  [LT_LANG(RC)],
 
1797
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1798
])# _LT_LANG_DEFAULT_CONFIG
 
1799
 
 
1800
# Obsolete macros:
 
1801
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1802
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1803
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1804
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1805
dnl aclocal-1.4 backwards compatibility:
 
1806
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1807
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1808
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1809
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1810
 
 
1811
 
 
1812
# _LT_TAG_COMPILER
 
1813
# ----------------
 
1814
m4_defun([_LT_TAG_COMPILER],
1183
1815
[AC_REQUIRE([AC_PROG_CC])dnl
1184
1816
 
 
1817
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1818
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1819
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1820
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1821
 
1185
1822
# If no C compiler was specified, use CC.
1186
1823
LTCC=${LTCC-"$CC"}
1187
1824
 
1190
1827
 
1191
1828
# Allow CC to be a program name with arguments.
1192
1829
compiler=$CC
1193
 
])# _LT_AC_SYS_COMPILER
1194
 
 
1195
 
 
1196
 
# _LT_CC_BASENAME(CC)
1197
 
# -------------------
1198
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1199
 
AC_DEFUN([_LT_CC_BASENAME],
1200
 
[for cc_temp in $1""; do
1201
 
  case $cc_temp in
1202
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1203
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1204
 
    \-*) ;;
1205
 
    *) break;;
1206
 
  esac
1207
 
done
1208
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1209
 
])
 
1830
])# _LT_TAG_COMPILER
1210
1831
 
1211
1832
 
1212
1833
# _LT_COMPILER_BOILERPLATE
1213
1834
# ------------------------
1214
1835
# Check for compiler boilerplate output or warnings with
1215
1836
# the simple compiler test code.
1216
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1217
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1837
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1838
[m4_require([_LT_DECL_SED])dnl
1218
1839
ac_outfile=conftest.$ac_objext
1219
1840
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1220
1841
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1221
1842
_lt_compiler_boilerplate=`cat conftest.err`
1222
 
$rm conftest*
 
1843
$RM conftest*
1223
1844
])# _LT_COMPILER_BOILERPLATE
1224
1845
 
1225
1846
 
1227
1848
# ----------------------
1228
1849
# Check for linker boilerplate output or warnings with
1229
1850
# the simple link test code.
1230
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1231
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1851
m4_defun([_LT_LINKER_BOILERPLATE],
 
1852
[m4_require([_LT_DECL_SED])dnl
1232
1853
ac_outfile=conftest.$ac_objext
1233
1854
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1234
1855
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1235
1856
_lt_linker_boilerplate=`cat conftest.err`
1236
 
$rm -r conftest*
 
1857
$RM -r conftest*
1237
1858
])# _LT_LINKER_BOILERPLATE
1238
1859
 
1239
1860
# _LT_REQUIRED_DARWIN_CHECKS
1240
 
# --------------------------
1241
 
# Check for some things on darwin
1242
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
1861
# -------------------------
 
1862
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1243
1863
  case $host_os in
1244
1864
    rhapsody* | darwin*)
1245
1865
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1246
1866
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1867
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1868
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1869
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1870
    _LT_DECL([], [DSYMUTIL], [1],
 
1871
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1872
    _LT_DECL([], [NMEDIT], [1],
 
1873
      [Tool to change global to local symbols on Mac OS X])
 
1874
    _LT_DECL([], [LIPO], [1],
 
1875
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1876
    _LT_DECL([], [OTOOL], [1],
 
1877
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1878
    _LT_DECL([], [OTOOL64], [1],
 
1879
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1247
1880
 
1248
1881
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1249
1882
      [lt_cv_apple_cc_single_mod=no
1250
1883
      if test -z "${LT_MULTI_MODULE}"; then
1251
 
   # By default we will add the -single_module flag. You can override
1252
 
   # by either setting the environment variable LT_MULTI_MODULE
1253
 
   # non-empty at configure time, or by adding -multi_module to the
1254
 
   # link flags.
1255
 
   echo "int foo(void){return 1;}" > conftest.c
1256
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1257
 
     -dynamiclib ${wl}-single_module conftest.c
1258
 
   if test -f libconftest.dylib; then
1259
 
     lt_cv_apple_cc_single_mod=yes
1260
 
     rm -rf libconftest.dylib*
1261
 
   fi
1262
 
   rm conftest.c
 
1884
        # By default we will add the -single_module flag. You can override
 
1885
        # by either setting the environment variable LT_MULTI_MODULE
 
1886
        # non-empty at configure time, or by adding -multi_module to the
 
1887
        # link flags.
 
1888
        rm -rf libconftest.dylib*
 
1889
        echo "int foo(void){return 1;}" > conftest.c
 
1890
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1891
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1892
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1893
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1894
        _lt_result=$?
 
1895
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1896
          lt_cv_apple_cc_single_mod=yes
 
1897
        else
 
1898
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1899
        fi
 
1900
        rm -rf libconftest.dylib*
 
1901
        rm -f conftest.*
1263
1902
      fi])
1264
1903
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1265
1904
      [lt_cv_ld_exported_symbols_list],
1268
1907
      echo "_main" > conftest.sym
1269
1908
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1270
1909
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1271
 
   [lt_cv_ld_exported_symbols_list=yes],
1272
 
   [lt_cv_ld_exported_symbols_list=no])
1273
 
   LDFLAGS="$save_LDFLAGS"
 
1910
        [lt_cv_ld_exported_symbols_list=yes],
 
1911
        [lt_cv_ld_exported_symbols_list=no])
 
1912
        LDFLAGS="$save_LDFLAGS"
1274
1913
    ])
1275
1914
    case $host_os in
1276
 
    rhapsody* | darwin1.[[0123]])
 
1915
    rhapsody* | darwin1.[[012]])
1277
1916
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1278
1917
    darwin1.*)
1279
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1280
 
    darwin*)
 
1918
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1919
    darwin*) # darwin 5.x on
1281
1920
      # if running on 10.5 or later, the deployment target defaults
1282
1921
      # to the OS version, if on x86, and 10.4, the deployment
1283
1922
      # target defaults to 10.4. Don't you love it?
1284
1923
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1285
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1286
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1287
 
   10.[[012]]*)
1288
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1289
 
   10.*)
1290
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1924
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1925
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1926
        10.[[012]]*)
 
1927
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1928
        10.*)
 
1929
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1291
1930
      esac
1292
1931
    ;;
1293
1932
  esac
1297
1936
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1298
1937
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1299
1938
    else
1300
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1939
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1301
1940
    fi
1302
1941
    if test "$DSYMUTIL" != ":"; then
1303
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1942
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1304
1943
    else
1305
1944
      _lt_dsymutil=
1306
1945
    fi
1308
1947
  esac
1309
1948
])
1310
1949
 
1311
 
# _LT_AC_SYS_LIBPATH_AIX
1312
 
# ----------------------
 
1950
 
 
1951
# _LT_DARWIN_LINKER_FEATURES
 
1952
# --------------------------
 
1953
# Checks for linker and compiler features on darwin
 
1954
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1955
[
 
1956
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1957
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1958
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1959
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1960
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1961
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1962
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1963
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1964
  case $cc_basename in
 
1965
     ifort*) _lt_dar_can_shared=yes ;;
 
1966
     *) _lt_dar_can_shared=$GCC ;;
 
1967
  esac
 
1968
  if test "$_lt_dar_can_shared" = "yes"; then
 
1969
    output_verbose_link_cmd=echo
 
1970
    _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}"
 
1971
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1972
    _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}"
 
1973
    _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}"
 
1974
    m4_if([$1], [CXX],
 
1975
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1976
      _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}"
 
1977
      _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}"
 
1978
    fi
 
1979
],[])
 
1980
  else
 
1981
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1982
  fi
 
1983
])
 
1984
 
 
1985
# _LT_SYS_MODULE_PATH_AIX
 
1986
# -----------------------
1313
1987
# Links a minimal program and checks the executable
1314
1988
# for the system default hardcoded library path. In most cases,
1315
1989
# this is /usr/lib:/lib, but when the MPI compilers are used
1316
1990
# the location of the communication and MPI libs are included too.
1317
1991
# If we don't find anything, use the default library path according
1318
1992
# to the aix ld manual.
1319
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1320
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1993
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1994
[m4_require([_LT_DECL_SED])dnl
1321
1995
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1322
1996
lt_aix_libpath_sed='
1323
1997
    /Import File Strings/,/^$/ {
1332
2006
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1333
2007
fi],[])
1334
2008
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1335
 
])# _LT_AC_SYS_LIBPATH_AIX
1336
 
 
1337
 
 
1338
 
# _LT_AC_SHELL_INIT(ARG)
1339
 
# ----------------------
1340
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
2009
])# _LT_SYS_MODULE_PATH_AIX
 
2010
 
 
2011
 
 
2012
# _LT_SHELL_INIT(ARG)
 
2013
# -------------------
 
2014
m4_define([_LT_SHELL_INIT],
1341
2015
[ifdef([AC_DIVERSION_NOTICE],
1342
2016
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1343
2017
         [AC_DIVERT_PUSH(NOTICE)])
1344
2018
$1
1345
2019
AC_DIVERT_POP
1346
 
])# _LT_AC_SHELL_INIT
1347
 
 
1348
 
 
1349
 
# _LT_AC_PROG_ECHO_BACKSLASH
1350
 
# --------------------------
 
2020
])# _LT_SHELL_INIT
 
2021
 
 
2022
 
 
2023
# _LT_PROG_ECHO_BACKSLASH
 
2024
# -----------------------
1351
2025
# Add some code to the start of the generated configure script which
1352
2026
# will find an echo command which doesn't interpret backslashes.
1353
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1354
 
[_LT_AC_SHELL_INIT([
 
2027
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2028
[_LT_SHELL_INIT([
1355
2029
# Check that we are running under the correct shell.
1356
2030
SHELL=${CONFIG_SHELL-/bin/sh}
1357
2031
 
1358
 
case X$ECHO in
 
2032
case X$lt_ECHO in
1359
2033
X*--fallback-echo)
1360
2034
  # Remove one level of quotation (which was required for Make).
1361
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2035
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1362
2036
  ;;
1363
2037
esac
1364
2038
 
1365
 
echo=${ECHO-echo}
 
2039
ECHO=${lt_ECHO-echo}
1366
2040
if test "X[$]1" = X--no-reexec; then
1367
2041
  # Discard the --no-reexec flag, and continue.
1368
2042
  shift
1369
2043
elif test "X[$]1" = X--fallback-echo; then
1370
2044
  # Avoid inline document here, it may be left over
1371
2045
  :
1372
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1373
 
  # Yippee, $echo works!
 
2046
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2047
  # Yippee, $ECHO works!
1374
2048
  :
1375
2049
else
1376
2050
  # Restart under the correct shell.
1380
2054
if test "X[$]1" = X--fallback-echo; then
1381
2055
  # used as fallback echo
1382
2056
  shift
1383
 
  cat <<EOF
 
2057
  cat <<_LT_EOF
1384
2058
[$]*
1385
 
EOF
 
2059
_LT_EOF
1386
2060
  exit 0
1387
2061
fi
1388
2062
 
1390
2064
# if CDPATH is set.
1391
2065
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1392
2066
 
1393
 
if test -z "$ECHO"; then
1394
 
if test "X${echo_test_string+set}" != Xset; then
1395
 
# find a string as large as possible, as long as the shell can cope with it
1396
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1397
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1398
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1399
 
       echo_test_string=`eval $cmd` &&
1400
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1401
 
    then
1402
 
      break
1403
 
    fi
1404
 
  done
1405
 
fi
1406
 
 
1407
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1408
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1409
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1410
 
  :
1411
 
else
1412
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1413
 
  # backslashes.  This makes it impossible to quote backslashes using
1414
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1415
 
  #
1416
 
  # So, first we look for a working echo in the user's PATH.
1417
 
 
1418
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1419
 
  for dir in $PATH /usr/ucb; do
 
2067
if test -z "$lt_ECHO"; then
 
2068
  if test "X${echo_test_string+set}" != Xset; then
 
2069
    # find a string as large as possible, as long as the shell can cope with it
 
2070
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2071
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2072
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2073
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2074
      then
 
2075
        break
 
2076
      fi
 
2077
    done
 
2078
  fi
 
2079
 
 
2080
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2081
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2082
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2083
    :
 
2084
  else
 
2085
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2086
    # backslashes.  This makes it impossible to quote backslashes using
 
2087
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2088
    #
 
2089
    # So, first we look for a working echo in the user's PATH.
 
2090
 
 
2091
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2092
    for dir in $PATH /usr/ucb; do
 
2093
      IFS="$lt_save_ifs"
 
2094
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2095
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2096
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2097
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2098
        ECHO="$dir/echo"
 
2099
        break
 
2100
      fi
 
2101
    done
1420
2102
    IFS="$lt_save_ifs"
1421
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1422
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1423
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1424
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1425
 
      echo="$dir/echo"
1426
 
      break
1427
 
    fi
1428
 
  done
1429
 
  IFS="$lt_save_ifs"
1430
2103
 
1431
 
  if test "X$echo" = Xecho; then
1432
 
    # We didn't find a better echo, so look for alternatives.
1433
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1434
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1435
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1436
 
      # This shell has a builtin print -r that does the trick.
1437
 
      echo='print -r'
1438
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1439
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1440
 
      # If we have ksh, try running configure again with it.
1441
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1442
 
      export ORIGINAL_CONFIG_SHELL
1443
 
      CONFIG_SHELL=/bin/ksh
1444
 
      export CONFIG_SHELL
1445
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1446
 
    else
1447
 
      # Try using printf.
1448
 
      echo='printf %s\n'
1449
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1450
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1451
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1452
 
        # Cool, printf works
1453
 
        :
1454
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1455
 
           test "X$echo_testing_string" = 'X\t' &&
1456
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1457
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1458
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1459
 
        export CONFIG_SHELL
1460
 
        SHELL="$CONFIG_SHELL"
1461
 
        export SHELL
1462
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1463
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1464
 
           test "X$echo_testing_string" = 'X\t' &&
1465
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1466
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1467
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2104
    if test "X$ECHO" = Xecho; then
 
2105
      # We didn't find a better echo, so look for alternatives.
 
2106
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2107
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2108
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2109
        # This shell has a builtin print -r that does the trick.
 
2110
        ECHO='print -r'
 
2111
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2112
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2113
        # If we have ksh, try running configure again with it.
 
2114
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2115
        export ORIGINAL_CONFIG_SHELL
 
2116
        CONFIG_SHELL=/bin/ksh
 
2117
        export CONFIG_SHELL
 
2118
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1468
2119
      else
1469
 
        # maybe with a smaller string...
1470
 
        prev=:
1471
 
 
1472
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1473
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1474
 
          then
1475
 
            break
 
2120
        # Try using printf.
 
2121
        ECHO='printf %s\n'
 
2122
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2123
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2124
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2125
          # Cool, printf works
 
2126
          :
 
2127
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2128
             test "X$echo_testing_string" = 'X\t' &&
 
2129
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2130
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2131
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2132
          export CONFIG_SHELL
 
2133
          SHELL="$CONFIG_SHELL"
 
2134
          export SHELL
 
2135
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2136
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2137
             test "X$echo_testing_string" = 'X\t' &&
 
2138
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2139
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2140
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2141
        else
 
2142
          # maybe with a smaller string...
 
2143
          prev=:
 
2144
 
 
2145
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2146
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2147
            then
 
2148
              break
 
2149
            fi
 
2150
            prev="$cmd"
 
2151
          done
 
2152
 
 
2153
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2154
            echo_test_string=`eval $prev`
 
2155
            export echo_test_string
 
2156
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2157
          else
 
2158
            # Oops.  We lost completely, so just stick with echo.
 
2159
            ECHO=echo
1476
2160
          fi
1477
 
          prev="$cmd"
1478
 
        done
1479
 
 
1480
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1481
 
          echo_test_string=`eval $prev`
1482
 
          export echo_test_string
1483
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1484
 
        else
1485
 
          # Oops.  We lost completely, so just stick with echo.
1486
 
          echo=echo
1487
 
        fi
 
2161
        fi
1488
2162
      fi
1489
2163
    fi
1490
2164
  fi
1491
2165
fi
1492
 
fi
1493
2166
 
1494
2167
# Copy echo and quote the copy suitably for passing to libtool from
1495
2168
# the Makefile, instead of quoting the original, which is used later.
1496
 
ECHO=$echo
1497
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1498
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2169
lt_ECHO=$ECHO
 
2170
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2171
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1499
2172
fi
1500
2173
 
1501
 
AC_SUBST(ECHO)
1502
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1503
 
 
1504
 
 
1505
 
# _LT_AC_LOCK
1506
 
# -----------
1507
 
AC_DEFUN([_LT_AC_LOCK],
 
2174
AC_SUBST(lt_ECHO)
 
2175
])
 
2176
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2177
_LT_DECL([], [ECHO], [1],
 
2178
    [An echo program that does not interpret backslashes])
 
2179
])# _LT_PROG_ECHO_BACKSLASH
 
2180
 
 
2181
 
 
2182
# _LT_ENABLE_LOCK
 
2183
# ---------------
 
2184
m4_defun([_LT_ENABLE_LOCK],
1508
2185
[AC_ARG_ENABLE([libtool-lock],
1509
 
    [AC_HELP_STRING([--disable-libtool-lock],
1510
 
        [avoid locking (might break parallel builds)])])
 
2186
  [AS_HELP_STRING([--disable-libtool-lock],
 
2187
    [avoid locking (might break parallel builds)])])
1511
2188
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1512
2189
 
1513
2190
# Some flags need to be propagated to the compiler or linker for good
1518
2195
  echo 'int i;' > conftest.$ac_ext
1519
2196
  if AC_TRY_EVAL(ac_compile); then
1520
2197
    case `/usr/bin/file conftest.$ac_objext` in
1521
 
    *ELF-32*)
1522
 
      HPUX_IA64_MODE="32"
1523
 
      ;;
1524
 
    *ELF-64*)
1525
 
      HPUX_IA64_MODE="64"
1526
 
      ;;
 
2198
      *ELF-32*)
 
2199
        HPUX_IA64_MODE="32"
 
2200
        ;;
 
2201
      *ELF-64*)
 
2202
        HPUX_IA64_MODE="64"
 
2203
        ;;
1527
2204
    esac
1528
2205
  fi
1529
2206
  rm -rf conftest*
1532
2209
  # Find out which ABI we are using.
1533
2210
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1534
2211
  if AC_TRY_EVAL(ac_compile); then
1535
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1536
 
    case `/usr/bin/file conftest.$ac_objext` in
1537
 
    *32-bit*)
1538
 
      LD="${LD-ld} -melf32bsmip"
1539
 
      ;;
1540
 
    *N32*)
1541
 
      LD="${LD-ld} -melf32bmipn32"
1542
 
      ;;
1543
 
    *64-bit*)
1544
 
      LD="${LD-ld} -melf64bmip"
1545
 
      ;;
1546
 
    esac
1547
 
   else
1548
 
    case `/usr/bin/file conftest.$ac_objext` in
1549
 
    *32-bit*)
1550
 
      LD="${LD-ld} -32"
1551
 
      ;;
1552
 
    *N32*)
1553
 
      LD="${LD-ld} -n32"
1554
 
      ;;
1555
 
    *64-bit*)
1556
 
      LD="${LD-ld} -64"
1557
 
      ;;
1558
 
    esac
1559
 
   fi
 
2212
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2213
      case `/usr/bin/file conftest.$ac_objext` in
 
2214
        *32-bit*)
 
2215
          LD="${LD-ld} -melf32bsmip"
 
2216
          ;;
 
2217
        *N32*)
 
2218
          LD="${LD-ld} -melf32bmipn32"
 
2219
          ;;
 
2220
        *64-bit*)
 
2221
          LD="${LD-ld} -melf64bmip"
 
2222
        ;;
 
2223
      esac
 
2224
    else
 
2225
      case `/usr/bin/file conftest.$ac_objext` in
 
2226
        *32-bit*)
 
2227
          LD="${LD-ld} -32"
 
2228
          ;;
 
2229
        *N32*)
 
2230
          LD="${LD-ld} -n32"
 
2231
          ;;
 
2232
        *64-bit*)
 
2233
          LD="${LD-ld} -64"
 
2234
          ;;
 
2235
      esac
 
2236
    fi
1560
2237
  fi
1561
2238
  rm -rf conftest*
1562
2239
  ;;
1563
2240
 
1564
2241
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1565
 
s390*-*linux*|sparc*-*linux*)
 
2242
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1566
2243
  # Find out which ABI we are using.
1567
2244
  echo 'int i;' > conftest.$ac_ext
1568
2245
  if AC_TRY_EVAL(ac_compile); then
1569
2246
    case `/usr/bin/file conftest.o` in
1570
 
    *32-bit*)
1571
 
      case $host in
1572
 
        x86_64-*kfreebsd*-gnu)
1573
 
          LD="${LD-ld} -m elf_i386_fbsd"
1574
 
          ;;
1575
 
        x86_64-*linux*)
1576
 
          LD="${LD-ld} -m elf_i386"
1577
 
          ;;
1578
 
        ppc64-*linux*|powerpc64-*linux*)
1579
 
          LD="${LD-ld} -m elf32ppclinux"
1580
 
          ;;
1581
 
        s390x-*linux*)
1582
 
          LD="${LD-ld} -m elf_s390"
1583
 
          ;;
1584
 
        sparc64-*linux*)
1585
 
          LD="${LD-ld} -m elf32_sparc"
1586
 
          ;;
1587
 
      esac
1588
 
      ;;
1589
 
    *64-bit*)
1590
 
      libsuff=64
1591
 
      case $host in
1592
 
        x86_64-*kfreebsd*-gnu)
1593
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1594
 
          ;;
1595
 
        x86_64-*linux*)
1596
 
          LD="${LD-ld} -m elf_x86_64"
1597
 
          ;;
1598
 
        ppc*-*linux*|powerpc*-*linux*)
1599
 
          LD="${LD-ld} -m elf64ppc"
1600
 
          ;;
1601
 
        s390*-*linux*)
1602
 
          LD="${LD-ld} -m elf64_s390"
1603
 
          ;;
1604
 
        sparc*-*linux*)
1605
 
          LD="${LD-ld} -m elf64_sparc"
1606
 
          ;;
1607
 
      esac
1608
 
      ;;
 
2247
      *32-bit*)
 
2248
        case $host in
 
2249
          x86_64-*kfreebsd*-gnu)
 
2250
            LD="${LD-ld} -m elf_i386_fbsd"
 
2251
            ;;
 
2252
          x86_64-*linux*)
 
2253
            LD="${LD-ld} -m elf_i386"
 
2254
            ;;
 
2255
          ppc64-*linux*|powerpc64-*linux*)
 
2256
            LD="${LD-ld} -m elf32ppclinux"
 
2257
            ;;
 
2258
          s390x-*linux*)
 
2259
            LD="${LD-ld} -m elf_s390"
 
2260
            ;;
 
2261
          sparc64-*linux*)
 
2262
            LD="${LD-ld} -m elf32_sparc"
 
2263
            ;;
 
2264
        esac
 
2265
        ;;
 
2266
      *64-bit*)
 
2267
        case $host in
 
2268
          x86_64-*kfreebsd*-gnu)
 
2269
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2270
            ;;
 
2271
          x86_64-*linux*)
 
2272
            LD="${LD-ld} -m elf_x86_64"
 
2273
            ;;
 
2274
          ppc*-*linux*|powerpc*-*linux*)
 
2275
            LD="${LD-ld} -m elf64ppc"
 
2276
            ;;
 
2277
          s390*-*linux*|s390*-*tpf*)
 
2278
            LD="${LD-ld} -m elf64_s390"
 
2279
            ;;
 
2280
          sparc*-*linux*)
 
2281
            LD="${LD-ld} -m elf64_sparc"
 
2282
            ;;
 
2283
        esac
 
2284
        ;;
1609
2285
    esac
1610
2286
  fi
1611
2287
  rm -rf conftest*
1617
2293
  CFLAGS="$CFLAGS -belf"
1618
2294
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1619
2295
    [AC_LANG_PUSH(C)
1620
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2296
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1621
2297
     AC_LANG_POP])
1622
2298
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1623
2299
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1633
2309
      case $lt_cv_prog_gnu_ld in
1634
2310
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1635
2311
      *)
1636
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2312
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1637
2313
          LD="${LD-ld} -64"
1638
2314
        fi
1639
2315
        ;;
1643
2319
  fi
1644
2320
  rm -rf conftest*
1645
2321
  ;;
1646
 
 
1647
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1648
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1649
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1650
 
  AC_CHECK_TOOL(AS, as, false)
1651
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1652
 
  ;;
1653
 
  ])
1654
2322
esac
1655
2323
 
1656
2324
need_locks="$enable_libtool_lock"
1657
 
 
1658
 
])# _LT_AC_LOCK
1659
 
 
1660
 
 
1661
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2325
])# _LT_ENABLE_LOCK
 
2326
 
 
2327
 
 
2328
# _LT_CMD_OLD_ARCHIVE
 
2329
# -------------------
 
2330
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2331
[AC_CHECK_TOOL(AR, ar, false)
 
2332
test -z "$AR" && AR=ar
 
2333
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2334
_LT_DECL([], [AR], [1], [The archiver])
 
2335
_LT_DECL([], [AR_FLAGS], [1])
 
2336
 
 
2337
AC_CHECK_TOOL(STRIP, strip, :)
 
2338
test -z "$STRIP" && STRIP=:
 
2339
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2340
 
 
2341
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2342
test -z "$RANLIB" && RANLIB=:
 
2343
_LT_DECL([], [RANLIB], [1],
 
2344
    [Commands used to install an old-style archive])
 
2345
 
 
2346
# Determine commands to create old-style static archives.
 
2347
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2348
old_postinstall_cmds='chmod 644 $oldlib'
 
2349
old_postuninstall_cmds=
 
2350
 
 
2351
if test -n "$RANLIB"; then
 
2352
  case $host_os in
 
2353
  openbsd*)
 
2354
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2355
    ;;
 
2356
  *)
 
2357
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2358
    ;;
 
2359
  esac
 
2360
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2361
fi
 
2362
_LT_DECL([], [old_postinstall_cmds], [2])
 
2363
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2364
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2365
    [Commands used to build an old-style archive])
 
2366
])# _LT_CMD_OLD_ARCHIVE
 
2367
 
 
2368
 
 
2369
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1662
2370
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1663
2371
# ----------------------------------------------------------------
1664
2372
# Check whether the given compiler option works
1665
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1666
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2373
AC_DEFUN([_LT_COMPILER_OPTION],
 
2374
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2375
m4_require([_LT_DECL_SED])dnl
1667
2376
AC_CACHE_CHECK([$1], [$2],
1668
2377
  [$2=no
1669
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2378
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1670
2379
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1671
2380
   lt_compiler_flag="$3"
1672
2381
   # Insert the option either (1) after the last *FLAGS variable, or
1686
2395
   if (exit $ac_status) && test -s "$ac_outfile"; then
1687
2396
     # The compiler can only warn and ignore the option if not recognized
1688
2397
     # So say no if there are warnings other than the usual output.
1689
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2398
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1690
2399
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1691
2400
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1692
2401
       $2=yes
1693
2402
     fi
1694
2403
   fi
1695
 
   $rm conftest*
 
2404
   $RM conftest*
1696
2405
])
1697
2406
 
1698
2407
if test x"[$]$2" = xyes; then
1699
 
    ifelse([$5], , :, [$5])
 
2408
    m4_if([$5], , :, [$5])
1700
2409
else
1701
 
    ifelse([$6], , :, [$6])
 
2410
    m4_if([$6], , :, [$6])
1702
2411
fi
1703
 
])# AC_LIBTOOL_COMPILER_OPTION
1704
 
 
1705
 
 
1706
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1707
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1708
 
# ------------------------------------------------------------
1709
 
# Check whether the given compiler option works
1710
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1711
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2412
])# _LT_COMPILER_OPTION
 
2413
 
 
2414
# Old name:
 
2415
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2416
dnl aclocal-1.4 backwards compatibility:
 
2417
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2418
 
 
2419
 
 
2420
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2421
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2422
# ----------------------------------------------------
 
2423
# Check whether the given linker option works
 
2424
AC_DEFUN([_LT_LINKER_OPTION],
 
2425
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2426
m4_require([_LT_DECL_SED])dnl
1712
2427
AC_CACHE_CHECK([$1], [$2],
1713
2428
  [$2=no
1714
2429
   save_LDFLAGS="$LDFLAGS"
1720
2435
     if test -s conftest.err; then
1721
2436
       # Append any errors to the config.log.
1722
2437
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1723
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2438
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1724
2439
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1725
2440
       if diff conftest.exp conftest.er2 >/dev/null; then
1726
2441
         $2=yes
1729
2444
       $2=yes
1730
2445
     fi
1731
2446
   fi
1732
 
   $rm -r conftest*
 
2447
   $RM -r conftest*
1733
2448
   LDFLAGS="$save_LDFLAGS"
1734
2449
])
1735
2450
 
1736
2451
if test x"[$]$2" = xyes; then
1737
 
    ifelse([$4], , :, [$4])
 
2452
    m4_if([$4], , :, [$4])
1738
2453
else
1739
 
    ifelse([$5], , :, [$5])
 
2454
    m4_if([$5], , :, [$5])
1740
2455
fi
1741
 
])# AC_LIBTOOL_LINKER_OPTION
1742
 
 
1743
 
 
1744
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1745
 
# --------------------------
1746
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1747
 
[# find the maximum length of command line arguments
 
2456
])# _LT_LINKER_OPTION
 
2457
 
 
2458
# Old name:
 
2459
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2460
dnl aclocal-1.4 backwards compatibility:
 
2461
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2462
 
 
2463
 
 
2464
# LT_CMD_MAX_LEN
 
2465
#---------------
 
2466
AC_DEFUN([LT_CMD_MAX_LEN],
 
2467
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2468
# find the maximum length of command line arguments
1748
2469
AC_MSG_CHECKING([the maximum length of command line arguments])
1749
2470
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1750
2471
  i=0
1766
2487
    lt_cv_sys_max_cmd_len=-1;
1767
2488
    ;;
1768
2489
 
1769
 
  cygwin* | mingw*)
 
2490
  cygwin* | mingw* | cegcc*)
1770
2491
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1771
2492
    # about 5 minutes as the teststring grows exponentially.
1772
2493
    # Worse, since 9x/ME are not pre-emptively multitasking,
1821
2542
  sysv5* | sco5v6* | sysv4.2uw2*)
1822
2543
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1823
2544
    if test -n "$kargmax"; then
1824
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2545
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1825
2546
    else
1826
2547
      lt_cv_sys_max_cmd_len=32768
1827
2548
    fi
1832
2553
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1833
2554
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1834
2555
    else
 
2556
      # Make teststring a little bigger before we do anything with it.
 
2557
      # a 1K string should be a reasonable start.
 
2558
      for i in 1 2 3 4 5 6 7 8 ; do
 
2559
        teststring=$teststring$teststring
 
2560
      done
1835
2561
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1836
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1837
 
               = "XX$teststring") >/dev/null 2>&1 &&
1838
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1839
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
2562
      # If test is not a shell built-in, we'll probably end up computing a
 
2563
      # maximum length that is only half of the actual maximum length, but
 
2564
      # we can't tell.
 
2565
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2566
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1840
2567
              test $i != 17 # 1/2 MB should be enough
1841
2568
      do
1842
2569
        i=`expr $i + 1`
1843
2570
        teststring=$teststring$teststring
1844
2571
      done
 
2572
      # Only check the string length outside the loop.
 
2573
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1845
2574
      teststring=
1846
 
      # Add a significant safety factor because C++ compilers can tack on massive
1847
 
      # amounts of additional arguments before passing them to the linker.
1848
 
      # It appears as though 1/2 is a usable value.
 
2575
      # Add a significant safety factor because C++ compilers can tack on
 
2576
      # massive amounts of additional arguments before passing them to the
 
2577
      # linker.  It appears as though 1/2 is a usable value.
1849
2578
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1850
2579
    fi
1851
2580
    ;;
1856
2585
else
1857
2586
  AC_MSG_RESULT(none)
1858
2587
fi
1859
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1860
 
 
1861
 
 
1862
 
# _LT_AC_CHECK_DLFCN
1863
 
# ------------------
1864
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1865
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1866
 
])# _LT_AC_CHECK_DLFCN
1867
 
 
1868
 
 
1869
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1870
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1871
 
# ---------------------------------------------------------------------
1872
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1873
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2588
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2589
_LT_DECL([], [max_cmd_len], [0],
 
2590
    [What is the maximum length of a command?])
 
2591
])# LT_CMD_MAX_LEN
 
2592
 
 
2593
# Old name:
 
2594
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2595
dnl aclocal-1.4 backwards compatibility:
 
2596
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2597
 
 
2598
 
 
2599
# _LT_HEADER_DLFCN
 
2600
# ----------------
 
2601
m4_defun([_LT_HEADER_DLFCN],
 
2602
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2603
])# _LT_HEADER_DLFCN
 
2604
 
 
2605
 
 
2606
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2607
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2608
# ----------------------------------------------------------------
 
2609
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2610
[m4_require([_LT_HEADER_DLFCN])dnl
1874
2611
if test "$cross_compiling" = yes; then :
1875
2612
  [$4]
1876
2613
else
1877
2614
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1878
2615
  lt_status=$lt_dlunknown
1879
 
  cat > conftest.$ac_ext <<EOF
 
2616
  cat > conftest.$ac_ext <<_LT_EOF
1880
2617
[#line __oline__ "configure"
1881
2618
#include "confdefs.h"
1882
2619
 
1918
2655
#  endif
1919
2656
#endif
1920
2657
 
1921
 
#ifdef __cplusplus
1922
 
extern "C" void exit (int);
1923
 
#endif
1924
 
 
1925
2658
void fnord() { int i=42;}
1926
2659
int main ()
1927
2660
{
1937
2670
  else
1938
2671
    puts (dlerror ());
1939
2672
 
1940
 
    exit (status);
 
2673
  return status;
1941
2674
}]
1942
 
EOF
 
2675
_LT_EOF
1943
2676
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1944
2677
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1945
2678
    lt_status=$?
1954
2687
  fi
1955
2688
fi
1956
2689
rm -fr conftest*
1957
 
])# _LT_AC_TRY_DLOPEN_SELF
1958
 
 
1959
 
 
1960
 
# AC_LIBTOOL_DLOPEN_SELF
1961
 
# ----------------------
1962
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1963
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2690
])# _LT_TRY_DLOPEN_SELF
 
2691
 
 
2692
 
 
2693
# LT_SYS_DLOPEN_SELF
 
2694
# ------------------
 
2695
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2696
[m4_require([_LT_HEADER_DLFCN])dnl
1964
2697
if test "x$enable_dlopen" != xyes; then
1965
2698
  enable_dlopen=unknown
1966
2699
  enable_dlopen_self=unknown
1976
2709
    lt_cv_dlopen_self=yes
1977
2710
    ;;
1978
2711
 
1979
 
  mingw* | pw32*)
 
2712
  mingw* | pw32* | cegcc*)
1980
2713
    lt_cv_dlopen="LoadLibrary"
1981
2714
    lt_cv_dlopen_libs=
1982
 
   ;;
 
2715
    ;;
1983
2716
 
1984
2717
  cygwin*)
1985
2718
    lt_cv_dlopen="dlopen"
1986
2719
    lt_cv_dlopen_libs=
1987
 
   ;;
 
2720
    ;;
1988
2721
 
1989
2722
  darwin*)
1990
2723
  # if libdl is installed we need to link against it
1994
2727
    lt_cv_dlopen_libs=
1995
2728
    lt_cv_dlopen_self=yes
1996
2729
    ])
1997
 
   ;;
 
2730
    ;;
1998
2731
 
1999
2732
  *)
2000
2733
    AC_CHECK_FUNC([shl_load],
2036
2769
 
2037
2770
    AC_CACHE_CHECK([whether a program can dlopen itself],
2038
2771
          lt_cv_dlopen_self, [dnl
2039
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2772
          _LT_TRY_DLOPEN_SELF(
2040
2773
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2041
2774
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2042
2775
    ])
2044
2777
    if test "x$lt_cv_dlopen_self" = xyes; then
2045
2778
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2046
2779
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2047
 
          lt_cv_dlopen_self_static, [dnl
2048
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2780
          lt_cv_dlopen_self_static, [dnl
 
2781
          _LT_TRY_DLOPEN_SELF(
2049
2782
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2050
2783
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2051
2784
      ])
2067
2800
  *) enable_dlopen_self_static=unknown ;;
2068
2801
  esac
2069
2802
fi
2070
 
])# AC_LIBTOOL_DLOPEN_SELF
2071
 
 
2072
 
 
2073
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2074
 
# ---------------------------------
2075
 
# Check to see if options -c and -o are simultaneously supported by compiler
2076
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2077
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2078
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2803
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2804
         [Whether dlopen is supported])
 
2805
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2806
         [Whether dlopen of programs is supported])
 
2807
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2808
         [Whether dlopen of statically linked programs is supported])
 
2809
])# LT_SYS_DLOPEN_SELF
 
2810
 
 
2811
# Old name:
 
2812
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2813
dnl aclocal-1.4 backwards compatibility:
 
2814
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2815
 
 
2816
 
 
2817
# _LT_COMPILER_C_O([TAGNAME])
 
2818
# ---------------------------
 
2819
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2820
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2821
m4_defun([_LT_COMPILER_C_O],
 
2822
[m4_require([_LT_DECL_SED])dnl
 
2823
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2824
m4_require([_LT_TAG_COMPILER])dnl
2079
2825
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2080
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2081
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2082
 
   $rm -r conftest 2>/dev/null
 
2826
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2827
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2828
   $RM -r conftest 2>/dev/null
2083
2829
   mkdir conftest
2084
2830
   cd conftest
2085
2831
   mkdir out
2103
2849
   then
2104
2850
     # The compiler can only warn and ignore the option if not recognized
2105
2851
     # So say no if there are warnings
2106
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2852
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2107
2853
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2108
2854
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2109
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2855
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2110
2856
     fi
2111
2857
   fi
2112
2858
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2113
 
   $rm conftest*
 
2859
   $RM conftest*
2114
2860
   # SGI C++ compiler will create directory out/ii_files/ for
2115
2861
   # template instantiation
2116
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2117
 
   $rm out/* && rmdir out
 
2862
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2863
   $RM out/* && rmdir out
2118
2864
   cd ..
2119
 
   rmdir conftest
2120
 
   $rm conftest*
 
2865
   $RM -r conftest
 
2866
   $RM conftest*
2121
2867
])
2122
 
])# AC_LIBTOOL_PROG_CC_C_O
2123
 
 
2124
 
 
2125
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2126
 
# -----------------------------------------
 
2868
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2869
        [Does compiler simultaneously support -c and -o options?])
 
2870
])# _LT_COMPILER_C_O
 
2871
 
 
2872
 
 
2873
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2874
# ----------------------------------
2127
2875
# Check to see if we can do hard links to lock some files if needed
2128
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2129
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2876
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2877
[m4_require([_LT_ENABLE_LOCK])dnl
 
2878
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2879
_LT_COMPILER_C_O([$1])
2130
2880
 
2131
2881
hard_links="nottested"
2132
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2882
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2133
2883
  # do not overwrite the value of need_locks provided by the user
2134
2884
  AC_MSG_CHECKING([if we can lock with hard links])
2135
2885
  hard_links=yes
2136
 
  $rm conftest*
 
2886
  $RM conftest*
2137
2887
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2138
2888
  touch conftest.a
2139
2889
  ln conftest.a conftest.b 2>&5 || hard_links=no
2146
2896
else
2147
2897
  need_locks=no
2148
2898
fi
2149
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2150
 
 
2151
 
 
2152
 
# AC_LIBTOOL_OBJDIR
2153
 
# -----------------
2154
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
2899
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
2900
])# _LT_COMPILER_FILE_LOCKS
 
2901
 
 
2902
 
 
2903
# _LT_CHECK_OBJDIR
 
2904
# ----------------
 
2905
m4_defun([_LT_CHECK_OBJDIR],
2155
2906
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2156
2907
[rm -f .libs 2>/dev/null
2157
2908
mkdir .libs 2>/dev/null
2163
2914
fi
2164
2915
rmdir .libs 2>/dev/null])
2165
2916
objdir=$lt_cv_objdir
2166
 
])# AC_LIBTOOL_OBJDIR
2167
 
 
2168
 
 
2169
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2170
 
# ----------------------------------------------
 
2917
_LT_DECL([], [objdir], [0],
 
2918
         [The name of the directory that contains temporary libtool files])dnl
 
2919
m4_pattern_allow([LT_OBJDIR])dnl
 
2920
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2921
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2922
])# _LT_CHECK_OBJDIR
 
2923
 
 
2924
 
 
2925
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2926
# --------------------------------------
2171
2927
# Check hardcoding attributes.
2172
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2928
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2173
2929
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2174
 
_LT_AC_TAGVAR(hardcode_action, $1)=
2175
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2176
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2177
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2930
_LT_TAGVAR(hardcode_action, $1)=
 
2931
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2932
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2933
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2178
2934
 
2179
 
  # We can hardcode non-existant directories.
2180
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2935
  # We can hardcode non-existent directories.
 
2936
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2181
2937
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2182
2938
     # have to relink, otherwise we might link with an installed library
2183
2939
     # when we should be linking with a yet-to-be-installed one
2184
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2185
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2940
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2941
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2186
2942
    # Linking always hardcodes the temporary library directory.
2187
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2943
    _LT_TAGVAR(hardcode_action, $1)=relink
2188
2944
  else
2189
2945
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2190
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2946
    _LT_TAGVAR(hardcode_action, $1)=immediate
2191
2947
  fi
2192
2948
else
2193
2949
  # We cannot hardcode anything, or else we can only hardcode existing
2194
2950
  # directories.
2195
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2951
  _LT_TAGVAR(hardcode_action, $1)=unsupported
2196
2952
fi
2197
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2953
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2198
2954
 
2199
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2955
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2956
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2200
2957
  # Fast installation is not supported
2201
2958
  enable_fast_install=no
2202
2959
elif test "$shlibpath_overrides_runpath" = yes ||
2204
2961
  # Fast installation is not necessary
2205
2962
  enable_fast_install=needless
2206
2963
fi
2207
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2208
 
 
2209
 
 
2210
 
# AC_LIBTOOL_SYS_LIB_STRIP
2211
 
# ------------------------
2212
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2213
 
[striplib=
 
2964
_LT_TAGDECL([], [hardcode_action], [0],
 
2965
    [How to hardcode a shared library path into an executable])
 
2966
])# _LT_LINKER_HARDCODE_LIBPATH
 
2967
 
 
2968
 
 
2969
# _LT_CMD_STRIPLIB
 
2970
# ----------------
 
2971
m4_defun([_LT_CMD_STRIPLIB],
 
2972
[m4_require([_LT_DECL_EGREP])
 
2973
striplib=
2214
2974
old_striplib=
2215
2975
AC_MSG_CHECKING([whether stripping libraries is possible])
2216
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2976
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2217
2977
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2218
2978
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2219
2979
  AC_MSG_RESULT([yes])
2220
2980
else
2221
2981
# FIXME - insert some real tests, host_os isn't really good enough
2222
2982
  case $host_os in
2223
 
   darwin*)
2224
 
       if test -n "$STRIP" ; then
2225
 
         striplib="$STRIP -x"
2226
 
         old_striplib="$STRIP -S"
2227
 
         AC_MSG_RESULT([yes])
2228
 
       else
2229
 
  AC_MSG_RESULT([no])
2230
 
fi
2231
 
       ;;
2232
 
   *)
2233
 
  AC_MSG_RESULT([no])
 
2983
  darwin*)
 
2984
    if test -n "$STRIP" ; then
 
2985
      striplib="$STRIP -x"
 
2986
      old_striplib="$STRIP -S"
 
2987
      AC_MSG_RESULT([yes])
 
2988
    else
 
2989
      AC_MSG_RESULT([no])
 
2990
    fi
 
2991
    ;;
 
2992
  *)
 
2993
    AC_MSG_RESULT([no])
2234
2994
    ;;
2235
2995
  esac
2236
2996
fi
2237
 
])# AC_LIBTOOL_SYS_LIB_STRIP
2238
 
 
2239
 
 
2240
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2997
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2998
_LT_DECL([], [striplib], [1])
 
2999
])# _LT_CMD_STRIPLIB
 
3000
 
 
3001
 
 
3002
# _LT_SYS_DYNAMIC_LINKER([TAG])
2241
3003
# -----------------------------
2242
3004
# PORTME Fill in your ld.so characteristics
2243
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2244
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3005
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
3006
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3007
m4_require([_LT_DECL_EGREP])dnl
 
3008
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3009
m4_require([_LT_DECL_OBJDUMP])dnl
 
3010
m4_require([_LT_DECL_SED])dnl
2245
3011
AC_MSG_CHECKING([dynamic linker characteristics])
2246
 
library_names_spec=
2247
 
libname_spec='lib$name'
2248
 
soname_spec=
2249
 
shrext_cmds=".so"
2250
 
postinstall_cmds=
2251
 
postuninstall_cmds=
2252
 
finish_cmds=
2253
 
finish_eval=
2254
 
shlibpath_var=
2255
 
shlibpath_overrides_runpath=unknown
2256
 
version_type=none
2257
 
dynamic_linker="$host_os ld.so"
2258
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2259
 
m4_if($1,[],[
 
3012
m4_if([$1],
 
3013
        [], [
2260
3014
if test "$GCC" = yes; then
2261
3015
  case $host_os in
2262
3016
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2263
3017
    *) lt_awk_arg="/^libraries:/" ;;
2264
3018
  esac
2265
3019
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2266
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
3020
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2267
3021
    # if the path contains ";" then we assume it to be the separator
2268
3022
    # otherwise default to the standard path separator (i.e. ":") - it is
2269
3023
    # assumed that no part of a normal pathname contains ";" but that should
2270
3024
    # okay in the real world where ";" in dirpaths is itself problematic.
2271
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3025
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2272
3026
  else
2273
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3027
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2274
3028
  fi
2275
3029
  # Ok, now we have the path, separated by spaces, we can step through it
2276
3030
  # and add multilib dir if necessary.
2284
3038
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2285
3039
    fi
2286
3040
  done
2287
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
3041
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2288
3042
BEGIN {RS=" "; FS="/|\n";} {
2289
3043
  lt_foo="";
2290
3044
  lt_count=0;
2304
3058
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2305
3059
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2306
3060
}'`
2307
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
3061
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2308
3062
else
2309
3063
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2310
3064
fi])
 
3065
library_names_spec=
 
3066
libname_spec='lib$name'
 
3067
soname_spec=
 
3068
shrext_cmds=".so"
 
3069
postinstall_cmds=
 
3070
postuninstall_cmds=
 
3071
finish_cmds=
 
3072
finish_eval=
 
3073
shlibpath_var=
 
3074
shlibpath_overrides_runpath=unknown
 
3075
version_type=none
 
3076
dynamic_linker="$host_os ld.so"
 
3077
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2311
3078
need_lib_prefix=unknown
2312
3079
hardcode_into_libs=no
2313
3080
 
2344
3111
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2345
3112
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2346
3113
           echo ' yes '
2347
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3114
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2348
3115
        :
2349
3116
      else
2350
3117
        can_build_shared=no
2370
3137
  ;;
2371
3138
 
2372
3139
amigaos*)
2373
 
  library_names_spec='$libname.ixlibrary $libname.a'
2374
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2375
 
  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'
 
3140
  case $host_cpu in
 
3141
  powerpc)
 
3142
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3143
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3144
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3145
    ;;
 
3146
  m68k)
 
3147
    library_names_spec='$libname.ixlibrary $libname.a'
 
3148
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3149
    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'
 
3150
    ;;
 
3151
  esac
2376
3152
  ;;
2377
3153
 
2378
3154
beos*)
2395
3171
  # libtool to hard-code these into programs
2396
3172
  ;;
2397
3173
 
2398
 
cygwin* | mingw* | pw32*)
 
3174
cygwin* | mingw* | pw32* | cegcc*)
2399
3175
  version_type=windows
2400
3176
  shrext_cmds=".dll"
2401
3177
  need_version=no
2402
3178
  need_lib_prefix=no
2403
3179
 
2404
3180
  case $GCC,$host_os in
2405
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3181
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2406
3182
    library_names_spec='$libname.dll.a'
2407
3183
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2408
3184
    postinstall_cmds='base_file=`basename \${file}`~
2409
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3185
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2410
3186
      dldir=$destdir/`dirname \$dlpath`~
2411
3187
      test -d \$dldir || mkdir -p \$dldir~
2412
3188
      $install_prog $dir/$dlname \$dldir/$dlname~
2413
 
      chmod a+x \$dldir/$dlname'
 
3189
      chmod a+x \$dldir/$dlname~
 
3190
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3191
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3192
      fi'
2414
3193
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2415
3194
      dlpath=$dir/\$dldll~
2416
 
       $rm \$dlpath'
 
3195
       $RM \$dlpath'
2417
3196
    shlibpath_overrides_runpath=yes
2418
3197
 
2419
3198
    case $host_os in
2422
3201
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2423
3202
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2424
3203
      ;;
2425
 
    mingw*)
 
3204
    mingw* | cegcc*)
2426
3205
      # MinGW DLLs use traditional 'lib' prefix
2427
3206
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2428
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2429
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3207
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3208
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2430
3209
        # It is most probably a Windows format PATH printed by
2431
3210
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2432
3211
        # path with ; separators, and with drive letters. We can handle the
2433
3212
        # drive letters (cygwin fileutils understands them), so leave them,
2434
3213
        # especially as we might pass files found there to a mingw objdump,
2435
3214
        # which wouldn't understand a cygwinified path. Ahh.
2436
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3215
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2437
3216
      else
2438
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3217
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2439
3218
      fi
2440
3219
      ;;
2441
3220
    pw32*)
2459
3238
  version_type=darwin
2460
3239
  need_lib_prefix=no
2461
3240
  need_version=no
2462
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3241
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2463
3242
  soname_spec='${libname}${release}${major}$shared_ext'
2464
3243
  shlibpath_overrides_runpath=yes
2465
3244
  shlibpath_var=DYLD_LIBRARY_PATH
2466
3245
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2467
 
  m4_if([$1], [],[
2468
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
3246
m4_if([$1], [],[
 
3247
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2469
3248
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2470
3249
  ;;
2471
3250
 
2558
3337
    fi
2559
3338
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2560
3339
    ;;
2561
 
   hppa*64*)
2562
 
     shrext_cmds='.sl'
2563
 
     hardcode_into_libs=yes
2564
 
     dynamic_linker="$host_os dld.sl"
2565
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2566
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2567
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2568
 
     soname_spec='${libname}${release}${shared_ext}$major'
2569
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2570
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2571
 
     ;;
2572
 
   *)
 
3340
  hppa*64*)
 
3341
    shrext_cmds='.sl'
 
3342
    hardcode_into_libs=yes
 
3343
    dynamic_linker="$host_os dld.sl"
 
3344
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3345
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3346
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3347
    soname_spec='${libname}${release}${shared_ext}$major'
 
3348
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3349
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3350
    ;;
 
3351
  *)
2573
3352
    shrext_cmds='.sl'
2574
3353
    dynamic_linker="$host_os dld.sl"
2575
3354
    shlibpath_var=SHLIB_PATH
2646
3425
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2647
3426
  shlibpath_var=LD_LIBRARY_PATH
2648
3427
  shlibpath_overrides_runpath=no
 
3428
  # Some binutils ld are patched to set DT_RUNPATH
 
3429
  save_LDFLAGS=$LDFLAGS
 
3430
  save_libdir=$libdir
 
3431
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3432
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3433
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3434
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3435
       [shlibpath_overrides_runpath=yes])])
 
3436
  LDFLAGS=$save_LDFLAGS
 
3437
  libdir=$save_libdir
 
3438
 
2649
3439
  # This implies no fast_install, which is unacceptable.
2650
3440
  # Some rework will be needed to allow for fast_install
2651
3441
  # before this can be enabled.
2652
3442
  hardcode_into_libs=yes
2653
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2654
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
3443
 
 
3444
  # Add ABI-specific directories to the system library path.
 
3445
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2655
3446
 
2656
3447
  # Append ld.so.conf contents to the search path
2657
3448
  if test -f /etc/ld.so.conf; then
2658
 
    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' ' '`
 
3449
    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' ' '`
2659
3450
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2660
3451
  fi
2661
3452
 
2672
3463
  version_type=sunos
2673
3464
  need_lib_prefix=no
2674
3465
  need_version=no
2675
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3466
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2676
3467
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2677
3468
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2678
3469
    dynamic_linker='NetBSD (a.out) ld.so'
2693
3484
  shlibpath_overrides_runpath=yes
2694
3485
  ;;
2695
3486
 
2696
 
nto-qnx*)
2697
 
  version_type=linux
 
3487
*nto* | *qnx*)
 
3488
  version_type=qnx
2698
3489
  need_lib_prefix=no
2699
3490
  need_version=no
2700
3491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2701
3492
  soname_spec='${libname}${release}${shared_ext}$major'
2702
3493
  shlibpath_var=LD_LIBRARY_PATH
2703
 
  shlibpath_overrides_runpath=yes
 
3494
  shlibpath_overrides_runpath=no
 
3495
  hardcode_into_libs=yes
 
3496
  dynamic_linker='ldqnx.so'
2704
3497
  ;;
2705
3498
 
2706
3499
openbsd*)
2709
3502
  need_lib_prefix=no
2710
3503
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2711
3504
  case $host_os in
2712
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2713
 
    *)                         need_version=no  ;;
 
3505
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3506
    *)                          need_version=no  ;;
2714
3507
  esac
2715
3508
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2716
3509
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2717
3510
  shlibpath_var=LD_LIBRARY_PATH
2718
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3511
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2719
3512
    case $host_os in
2720
3513
      openbsd2.[[89]] | openbsd2.[[89]].*)
2721
3514
        shlibpath_overrides_runpath=no
2787
3580
    sni)
2788
3581
      shlibpath_overrides_runpath=no
2789
3582
      need_lib_prefix=no
2790
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2791
3583
      runpath_var=LD_RUN_PATH
2792
3584
      ;;
2793
3585
    siemens)
2818
3610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2819
3611
  soname_spec='${libname}${release}${shared_ext}$major'
2820
3612
  shlibpath_var=LD_LIBRARY_PATH
 
3613
  shlibpath_overrides_runpath=yes
2821
3614
  hardcode_into_libs=yes
2822
3615
  if test "$with_gnu_ld" = yes; then
2823
3616
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2824
 
    shlibpath_overrides_runpath=no
2825
3617
  else
2826
3618
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2827
 
    shlibpath_overrides_runpath=yes
2828
3619
    case $host_os in
2829
3620
      sco3.2v5*)
2830
3621
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2834
3625
  sys_lib_dlsearch_path_spec='/usr/lib'
2835
3626
  ;;
2836
3627
 
 
3628
tpf*)
 
3629
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3630
  version_type=linux
 
3631
  need_lib_prefix=no
 
3632
  need_version=no
 
3633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3634
  shlibpath_var=LD_LIBRARY_PATH
 
3635
  shlibpath_overrides_runpath=no
 
3636
  hardcode_into_libs=yes
 
3637
  ;;
 
3638
 
2837
3639
uts4*)
2838
3640
  version_type=linux
2839
3641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2848
3650
AC_MSG_RESULT([$dynamic_linker])
2849
3651
test "$dynamic_linker" = no && can_build_shared=no
2850
3652
 
2851
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2852
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2853
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2854
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2855
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2856
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2857
 
 
2858
3653
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2859
3654
if test "$GCC" = yes; then
2860
3655
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2861
3656
fi
2862
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2863
 
 
2864
 
 
2865
 
# _LT_AC_TAGCONFIG
2866
 
# ----------------
2867
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2868
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2869
 
AC_ARG_WITH([tags],
2870
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2871
 
        [include additional configurations @<:@automatic@:>@])],
2872
 
    [tagnames="$withval"])
2873
 
 
2874
 
if test -f "$ltmain" && test -n "$tagnames"; then
2875
 
  if test ! -f "${ofile}"; then
2876
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2877
 
  fi
2878
 
 
2879
 
  if test -z "$LTCC"; then
2880
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2881
 
    if test -z "$LTCC"; then
2882
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2883
 
    else
2884
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2885
 
    fi
2886
 
  fi
2887
 
  if test -z "$LTCFLAGS"; then
2888
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2889
 
  fi
2890
 
 
2891
 
  # Extract list of available tagged configurations in $ofile.
2892
 
  # Note that this assumes the entire list is on one line.
2893
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2894
 
 
2895
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2896
 
  for tagname in $tagnames; do
2897
 
    IFS="$lt_save_ifs"
2898
 
    # Check whether tagname contains only valid characters
2899
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2900
 
    "") ;;
2901
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2902
 
        ;;
2903
 
    esac
2904
 
 
2905
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2906
 
    then
2907
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2908
 
    fi
2909
 
 
2910
 
    # Update the list of available tags.
2911
 
    if test -n "$tagname"; then
2912
 
      echo appending configuration tag \"$tagname\" to $ofile
2913
 
 
2914
 
      case $tagname in
2915
 
      CXX)
2916
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2917
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2918
 
            (test "X$CXX" != "Xg++"))) ; then
2919
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2920
 
        else
2921
 
          tagname=""
2922
 
        fi
2923
 
        ;;
2924
 
 
2925
 
      F77)
2926
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2927
 
          AC_LIBTOOL_LANG_F77_CONFIG
2928
 
        else
2929
 
          tagname=""
2930
 
        fi
2931
 
        ;;
2932
 
 
2933
 
      GCJ)
2934
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2935
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2936
 
        else
2937
 
          tagname=""
2938
 
        fi
2939
 
        ;;
2940
 
 
2941
 
      RC)
2942
 
        AC_LIBTOOL_LANG_RC_CONFIG
2943
 
        ;;
2944
 
 
2945
 
      *)
2946
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2947
 
        ;;
2948
 
      esac
2949
 
 
2950
 
      # Append the new tag name to the list of available tags.
2951
 
      if test -n "$tagname" ; then
2952
 
      available_tags="$available_tags $tagname"
2953
 
    fi
2954
 
    fi
2955
 
  done
2956
 
  IFS="$lt_save_ifs"
2957
 
 
2958
 
  # Now substitute the updated list of available tags.
2959
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2960
 
    mv "${ofile}T" "$ofile"
2961
 
    chmod +x "$ofile"
2962
 
  else
2963
 
    rm -f "${ofile}T"
2964
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2965
 
  fi
2966
 
fi
2967
 
])# _LT_AC_TAGCONFIG
2968
 
 
2969
 
 
2970
 
# AC_LIBTOOL_DLOPEN
2971
 
# -----------------
2972
 
# enable checks for dlopen support
2973
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2974
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2975
 
])# AC_LIBTOOL_DLOPEN
2976
 
 
2977
 
 
2978
 
# AC_LIBTOOL_WIN32_DLL
2979
 
# --------------------
2980
 
# declare package support for building win32 DLLs
2981
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2982
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2983
 
])# AC_LIBTOOL_WIN32_DLL
2984
 
 
2985
 
 
2986
 
# AC_ENABLE_SHARED([DEFAULT])
2987
 
# ---------------------------
2988
 
# implement the --enable-shared flag
2989
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2990
 
AC_DEFUN([AC_ENABLE_SHARED],
2991
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2992
 
AC_ARG_ENABLE([shared],
2993
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2994
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2995
 
    [p=${PACKAGE-default}
2996
 
    case $enableval in
2997
 
    yes) enable_shared=yes ;;
2998
 
    no) enable_shared=no ;;
2999
 
    *)
3000
 
      enable_shared=no
3001
 
      # Look at the argument we got.  We use all the common list separators.
3002
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3003
 
      for pkg in $enableval; do
3004
 
        IFS="$lt_save_ifs"
3005
 
        if test "X$pkg" = "X$p"; then
3006
 
          enable_shared=yes
3007
 
        fi
3008
 
      done
3009
 
      IFS="$lt_save_ifs"
3010
 
      ;;
3011
 
    esac],
3012
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3013
 
])# AC_ENABLE_SHARED
3014
 
 
3015
 
 
3016
 
# AC_DISABLE_SHARED
3017
 
# -----------------
3018
 
# set the default shared flag to --disable-shared
3019
 
AC_DEFUN([AC_DISABLE_SHARED],
3020
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3021
 
AC_ENABLE_SHARED(no)
3022
 
])# AC_DISABLE_SHARED
3023
 
 
3024
 
 
3025
 
# AC_ENABLE_STATIC([DEFAULT])
3026
 
# ---------------------------
3027
 
# implement the --enable-static flag
3028
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3029
 
AC_DEFUN([AC_ENABLE_STATIC],
3030
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3031
 
AC_ARG_ENABLE([static],
3032
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3033
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3034
 
    [p=${PACKAGE-default}
3035
 
    case $enableval in
3036
 
    yes) enable_static=yes ;;
3037
 
    no) enable_static=no ;;
3038
 
    *)
3039
 
     enable_static=no
3040
 
      # Look at the argument we got.  We use all the common list separators.
3041
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3042
 
      for pkg in $enableval; do
3043
 
        IFS="$lt_save_ifs"
3044
 
        if test "X$pkg" = "X$p"; then
3045
 
          enable_static=yes
3046
 
        fi
3047
 
      done
3048
 
      IFS="$lt_save_ifs"
3049
 
      ;;
3050
 
    esac],
3051
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3052
 
])# AC_ENABLE_STATIC
3053
 
 
3054
 
 
3055
 
# AC_DISABLE_STATIC
3056
 
# -----------------
3057
 
# set the default static flag to --disable-static
3058
 
AC_DEFUN([AC_DISABLE_STATIC],
3059
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3060
 
AC_ENABLE_STATIC(no)
3061
 
])# AC_DISABLE_STATIC
3062
 
 
3063
 
 
3064
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
3065
 
# ---------------------------------
3066
 
# implement the --enable-fast-install flag
3067
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3068
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3069
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3070
 
AC_ARG_ENABLE([fast-install],
3071
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3072
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3073
 
    [p=${PACKAGE-default}
3074
 
    case $enableval in
3075
 
    yes) enable_fast_install=yes ;;
3076
 
    no) enable_fast_install=no ;;
3077
 
    *)
3078
 
      enable_fast_install=no
3079
 
      # Look at the argument we got.  We use all the common list separators.
3080
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3081
 
      for pkg in $enableval; do
3082
 
        IFS="$lt_save_ifs"
3083
 
        if test "X$pkg" = "X$p"; then
3084
 
          enable_fast_install=yes
3085
 
        fi
3086
 
      done
3087
 
      IFS="$lt_save_ifs"
3088
 
      ;;
3089
 
    esac],
3090
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3091
 
])# AC_ENABLE_FAST_INSTALL
3092
 
 
3093
 
 
3094
 
# AC_DISABLE_FAST_INSTALL
3095
 
# -----------------------
3096
 
# set the default to --disable-fast-install
3097
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3098
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3099
 
AC_ENABLE_FAST_INSTALL(no)
3100
 
])# AC_DISABLE_FAST_INSTALL
3101
 
 
3102
 
 
3103
 
# AC_LIBTOOL_PICMODE([MODE])
 
3657
 
 
3658
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3659
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3660
fi
 
3661
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3662
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3663
fi
 
3664
 
 
3665
_LT_DECL([], [variables_saved_for_relink], [1],
 
3666
    [Variables whose values should be saved in libtool wrapper scripts and
 
3667
    restored at link time])
 
3668
_LT_DECL([], [need_lib_prefix], [0],
 
3669
    [Do we need the "lib" prefix for modules?])
 
3670
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3671
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3672
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3673
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3674
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3675
    [Is shlibpath searched before the hard-coded library search path?])
 
3676
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3677
_LT_DECL([], [library_names_spec], [1],
 
3678
    [[List of archive names.  First name is the real one, the rest are links.
 
3679
    The last name is the one that the linker finds with -lNAME]])
 
3680
_LT_DECL([], [soname_spec], [1],
 
3681
    [[The coded name of the library, if different from the real name]])
 
3682
_LT_DECL([], [postinstall_cmds], [2],
 
3683
    [Command to use after installation of a shared archive])
 
3684
_LT_DECL([], [postuninstall_cmds], [2],
 
3685
    [Command to use after uninstallation of a shared archive])
 
3686
_LT_DECL([], [finish_cmds], [2],
 
3687
    [Commands used to finish a libtool library installation in a directory])
 
3688
_LT_DECL([], [finish_eval], [1],
 
3689
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3690
    not shown]])
 
3691
_LT_DECL([], [hardcode_into_libs], [0],
 
3692
    [Whether we should hardcode library paths into libraries])
 
3693
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3694
    [Compile-time system search path for libraries])
 
3695
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3696
    [Run-time system search path for libraries])
 
3697
])# _LT_SYS_DYNAMIC_LINKER
 
3698
 
 
3699
 
 
3700
# _LT_PATH_TOOL_PREFIX(TOOL)
3104
3701
# --------------------------
3105
 
# implement the --with-pic flag
3106
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3107
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
3108
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3109
 
pic_mode=ifelse($#,1,$1,default)
3110
 
])# AC_LIBTOOL_PICMODE
3111
 
 
3112
 
 
3113
 
# AC_PROG_EGREP
3114
 
# -------------
3115
 
# This is predefined starting with Autoconf 2.54, so this conditional
3116
 
# definition can be removed once we require Autoconf 2.54 or later.
3117
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3118
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3119
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3120
 
    then ac_cv_prog_egrep='grep -E'
3121
 
    else ac_cv_prog_egrep='egrep'
3122
 
    fi])
3123
 
 EGREP=$ac_cv_prog_egrep
3124
 
 AC_SUBST([EGREP])
3125
 
])])
3126
 
 
3127
 
 
3128
 
# AC_PATH_TOOL_PREFIX
3129
 
# -------------------
3130
3702
# find a file program which can recognize shared library
3131
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3132
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3703
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3704
[m4_require([_LT_DECL_EGREP])dnl
3133
3705
AC_MSG_CHECKING([for $1])
3134
3706
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3135
3707
[case $MAGIC_CMD in
3142
3714
dnl $ac_dummy forces splitting on constant user-supplied paths.
3143
3715
dnl POSIX.2 word splitting is done only on the output of word expansions,
3144
3716
dnl not every word.  This closes a longstanding sh security hole.
3145
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3717
  ac_dummy="m4_if([$2], , $PATH, [$2])"
3146
3718
  for ac_dir in $ac_dummy; do
3147
3719
    IFS="$lt_save_ifs"
3148
3720
    test -z "$ac_dir" && ac_dir=.
3157
3729
            $EGREP "$file_magic_regex" > /dev/null; then
3158
3730
            :
3159
3731
          else
3160
 
            cat <<EOF 1>&2
 
3732
            cat <<_LT_EOF 1>&2
3161
3733
 
3162
3734
*** Warning: the command libtool uses to detect shared libraries,
3163
3735
*** $file_magic_cmd, produces output that libtool cannot recognize.
3168
3740
*** may want to report the problem to your system manager and/or to
3169
3741
*** bug-libtool@gnu.org
3170
3742
 
3171
 
EOF
 
3743
_LT_EOF
3172
3744
          fi ;;
3173
3745
        esac
3174
3746
      fi
3185
3757
else
3186
3758
  AC_MSG_RESULT(no)
3187
3759
fi
3188
 
])# AC_PATH_TOOL_PREFIX
3189
 
 
3190
 
 
3191
 
# AC_PATH_MAGIC
3192
 
# -------------
 
3760
_LT_DECL([], [MAGIC_CMD], [0],
 
3761
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3762
])# _LT_PATH_TOOL_PREFIX
 
3763
 
 
3764
# Old name:
 
3765
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3766
dnl aclocal-1.4 backwards compatibility:
 
3767
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3768
 
 
3769
 
 
3770
# _LT_PATH_MAGIC
 
3771
# --------------
3193
3772
# find a file program which can recognize a shared library
3194
 
AC_DEFUN([AC_PATH_MAGIC],
3195
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3773
m4_defun([_LT_PATH_MAGIC],
 
3774
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3196
3775
if test -z "$lt_cv_path_MAGIC_CMD"; then
3197
3776
  if test -n "$ac_tool_prefix"; then
3198
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3777
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3199
3778
  else
3200
3779
    MAGIC_CMD=:
3201
3780
  fi
3202
3781
fi
3203
 
])# AC_PATH_MAGIC
3204
 
 
3205
 
 
3206
 
# AC_PROG_LD
 
3782
])# _LT_PATH_MAGIC
 
3783
 
 
3784
 
 
3785
# LT_PATH_LD
3207
3786
# ----------
3208
3787
# find the pathname to the GNU or non-GNU linker
3209
 
AC_DEFUN([AC_PROG_LD],
3210
 
[AC_ARG_WITH([gnu-ld],
3211
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3788
AC_DEFUN([LT_PATH_LD],
 
3789
[AC_REQUIRE([AC_PROG_CC])dnl
 
3790
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3791
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3792
m4_require([_LT_DECL_SED])dnl
 
3793
m4_require([_LT_DECL_EGREP])dnl
 
3794
 
 
3795
AC_ARG_WITH([gnu-ld],
 
3796
    [AS_HELP_STRING([--with-gnu-ld],
3212
3797
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3213
3798
    [test "$withval" = no || with_gnu_ld=yes],
3214
 
    [with_gnu_ld=no])
3215
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
3216
 
AC_REQUIRE([AC_PROG_CC])dnl
3217
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3218
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3799
    [with_gnu_ld=no])dnl
 
3800
 
3219
3801
ac_prog=ld
3220
3802
if test "$GCC" = yes; then
3221
3803
  # Check if gcc -print-prog-name=ld gives a path.
3232
3814
    [[\\/]]* | ?:[[\\/]]*)
3233
3815
      re_direlt='/[[^/]][[^/]]*/\.\./'
3234
3816
      # Canonicalize the pathname of ld
3235
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3236
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3237
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3817
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3818
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3819
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3238
3820
      done
3239
3821
      test -z "$LD" && LD="$ac_prog"
3240
3822
      ;;
3284
3866
  AC_MSG_RESULT(no)
3285
3867
fi
3286
3868
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3287
 
AC_PROG_LD_GNU
3288
 
])# AC_PROG_LD
3289
 
 
3290
 
 
3291
 
# AC_PROG_LD_GNU
3292
 
# --------------
3293
 
AC_DEFUN([AC_PROG_LD_GNU],
3294
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3295
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3869
_LT_PATH_LD_GNU
 
3870
AC_SUBST([LD])
 
3871
 
 
3872
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3873
])# LT_PATH_LD
 
3874
 
 
3875
# Old names:
 
3876
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3877
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3878
dnl aclocal-1.4 backwards compatibility:
 
3879
dnl AC_DEFUN([AM_PROG_LD], [])
 
3880
dnl AC_DEFUN([AC_PROG_LD], [])
 
3881
 
 
3882
 
 
3883
# _LT_PATH_LD_GNU
 
3884
#- --------------
 
3885
m4_defun([_LT_PATH_LD_GNU],
 
3886
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3296
3887
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3297
3888
case `$LD -v 2>&1 </dev/null` in
3298
3889
*GNU* | *'with BFD'*)
3303
3894
  ;;
3304
3895
esac])
3305
3896
with_gnu_ld=$lt_cv_prog_gnu_ld
3306
 
])# AC_PROG_LD_GNU
3307
 
 
3308
 
 
3309
 
# AC_PROG_LD_RELOAD_FLAG
3310
 
# ----------------------
 
3897
])# _LT_PATH_LD_GNU
 
3898
 
 
3899
 
 
3900
# _LT_CMD_RELOAD
 
3901
# --------------
3311
3902
# find reload flag for linker
3312
3903
#   -- PORTME Some linkers may need a different reload flag.
3313
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
3904
m4_defun([_LT_CMD_RELOAD],
3314
3905
[AC_CACHE_CHECK([for $LD option to reload object files],
3315
3906
  lt_cv_ld_reload_flag,
3316
3907
  [lt_cv_ld_reload_flag='-r'])
3329
3920
    fi
3330
3921
    ;;
3331
3922
esac
3332
 
])# AC_PROG_LD_RELOAD_FLAG
3333
 
 
3334
 
 
3335
 
# AC_DEPLIBS_CHECK_METHOD
3336
 
# -----------------------
 
3923
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3924
_LT_DECL([], [reload_cmds], [2])dnl
 
3925
])# _LT_CMD_RELOAD
 
3926
 
 
3927
 
 
3928
# _LT_CHECK_MAGIC_METHOD
 
3929
# ----------------------
3337
3930
# how to check for library dependencies
3338
3931
#  -- PORTME fill in with the dynamic library characteristics
3339
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3340
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3932
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3933
[m4_require([_LT_DECL_EGREP])
 
3934
m4_require([_LT_DECL_OBJDUMP])
 
3935
AC_CACHE_CHECK([how to recognize dependent libraries],
3341
3936
lt_cv_deplibs_check_method,
3342
3937
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3343
3938
lt_cv_file_magic_test_file=
3387
3982
  fi
3388
3983
  ;;
3389
3984
 
 
3985
cegcc)
 
3986
  # use the weaker test based on 'objdump'. See mingw*.
 
3987
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3988
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3989
  ;;
 
3990
 
3390
3991
darwin* | rhapsody*)
3391
3992
  lt_cv_deplibs_check_method=pass_all
3392
3993
  ;;
3393
3994
 
3394
3995
freebsd* | dragonfly*)
3395
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3996
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3396
3997
    case $host_cpu in
3397
3998
    i*86 )
3398
3999
      # Not sure whether the presence of OpenBSD here was a mistake.
3450
4051
  ;;
3451
4052
 
3452
4053
netbsd*)
3453
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4054
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3454
4055
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3455
4056
  else
3456
4057
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3463
4064
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3464
4065
  ;;
3465
4066
 
3466
 
nto-qnx*)
3467
 
  lt_cv_deplibs_check_method=unknown
 
4067
*nto* | *qnx*)
 
4068
  lt_cv_deplibs_check_method=pass_all
3468
4069
  ;;
3469
4070
 
3470
4071
openbsd*)
3471
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4072
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3472
4073
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3473
4074
  else
3474
4075
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3487
4088
  lt_cv_deplibs_check_method=pass_all
3488
4089
  ;;
3489
4090
 
 
4091
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4092
  lt_cv_deplibs_check_method=pass_all
 
4093
  ;;
 
4094
 
3490
4095
sysv4 | sysv4.3*)
3491
4096
  case $host_vendor in
3492
4097
  motorola)
3514
4119
  esac
3515
4120
  ;;
3516
4121
 
3517
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4122
tpf*)
3518
4123
  lt_cv_deplibs_check_method=pass_all
3519
4124
  ;;
3520
4125
esac
3522
4127
file_magic_cmd=$lt_cv_file_magic_cmd
3523
4128
deplibs_check_method=$lt_cv_deplibs_check_method
3524
4129
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3525
 
])# AC_DEPLIBS_CHECK_METHOD
3526
 
 
3527
 
 
3528
 
# AC_PROG_NM
 
4130
 
 
4131
_LT_DECL([], [deplibs_check_method], [1],
 
4132
    [Method to check whether dependent libraries are shared objects])
 
4133
_LT_DECL([], [file_magic_cmd], [1],
 
4134
    [Command to use when deplibs_check_method == "file_magic"])
 
4135
])# _LT_CHECK_MAGIC_METHOD
 
4136
 
 
4137
 
 
4138
# LT_PATH_NM
3529
4139
# ----------
3530
 
# find the pathname to a BSD-compatible name lister
3531
 
AC_DEFUN([AC_PROG_NM],
3532
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4140
# find the pathname to a BSD- or MS-compatible name lister
 
4141
AC_DEFUN([LT_PATH_NM],
 
4142
[AC_REQUIRE([AC_PROG_CC])dnl
 
4143
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3533
4144
[if test -n "$NM"; then
3534
4145
  # Let the user override the test.
3535
4146
  lt_cv_path_NM="$NM"
3571
4182
    done
3572
4183
    IFS="$lt_save_ifs"
3573
4184
  done
3574
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4185
  : ${lt_cv_path_NM=no}
3575
4186
fi])
3576
 
NM="$lt_cv_path_NM"
3577
 
])# AC_PROG_NM
3578
 
 
3579
 
 
3580
 
# AC_CHECK_LIBM
3581
 
# -------------
 
4187
if test "$lt_cv_path_NM" != "no"; then
 
4188
  NM="$lt_cv_path_NM"
 
4189
else
 
4190
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4191
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4192
  AC_SUBST([DUMPBIN])
 
4193
  if test "$DUMPBIN" != ":"; then
 
4194
    NM="$DUMPBIN"
 
4195
  fi
 
4196
fi
 
4197
test -z "$NM" && NM=nm
 
4198
AC_SUBST([NM])
 
4199
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4200
 
 
4201
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4202
  [lt_cv_nm_interface="BSD nm"
 
4203
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4204
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4205
  (eval "$ac_compile" 2>conftest.err)
 
4206
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4207
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4208
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4209
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4210
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4211
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4212
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4213
    lt_cv_nm_interface="MS dumpbin"
 
4214
  fi
 
4215
  rm -f conftest*])
 
4216
])# LT_PATH_NM
 
4217
 
 
4218
# Old names:
 
4219
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4220
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4221
dnl aclocal-1.4 backwards compatibility:
 
4222
dnl AC_DEFUN([AM_PROG_NM], [])
 
4223
dnl AC_DEFUN([AC_PROG_NM], [])
 
4224
 
 
4225
 
 
4226
# LT_LIB_M
 
4227
# --------
3582
4228
# check for math library
3583
 
AC_DEFUN([AC_CHECK_LIBM],
 
4229
AC_DEFUN([LT_LIB_M],
3584
4230
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3585
4231
LIBM=
3586
4232
case $host in
3595
4241
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3596
4242
  ;;
3597
4243
esac
3598
 
])# AC_CHECK_LIBM
3599
 
 
3600
 
 
3601
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3602
 
# -----------------------------------
3603
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3604
 
# LTDLINCL to the include flags for the libltdl header and adds
3605
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3606
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3607
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3608
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3609
 
# (note the single quotes!).  If your package is not flat and you're not
3610
 
# using automake, define top_builddir and top_srcdir appropriately in
3611
 
# the Makefiles.
3612
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3613
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3614
 
  case $enable_ltdl_convenience in
3615
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3616
 
  "") enable_ltdl_convenience=yes
3617
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3618
 
  esac
3619
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3620
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3621
 
  # For backwards non-gettext consistent compatibility...
3622
 
  INCLTDL="$LTDLINCL"
3623
 
])# AC_LIBLTDL_CONVENIENCE
3624
 
 
3625
 
 
3626
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3627
 
# -----------------------------------
3628
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3629
 
# LTDLINCL to the include flags for the libltdl header and adds
3630
 
# --enable-ltdl-install to the configure arguments.  Note that
3631
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3632
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3633
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3634
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3635
 
# flat and you're not using automake, define top_builddir and top_srcdir
3636
 
# appropriately in the Makefiles.
3637
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3638
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3639
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3640
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3641
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3642
 
  [if test x"$enable_ltdl_install" = xno; then
3643
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3644
 
   else
3645
 
     enable_ltdl_install=yes
3646
 
   fi
3647
 
  ])
3648
 
  if test x"$enable_ltdl_install" = x"yes"; then
3649
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3650
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3651
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3652
 
  else
3653
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3654
 
    LIBLTDL="-lltdl"
3655
 
    LTDLINCL=
3656
 
  fi
3657
 
  # For backwards non-gettext consistent compatibility...
3658
 
  INCLTDL="$LTDLINCL"
3659
 
])# AC_LIBLTDL_INSTALLABLE
3660
 
 
3661
 
 
3662
 
# AC_LIBTOOL_CXX
3663
 
# --------------
3664
 
# enable support for C++ libraries
3665
 
AC_DEFUN([AC_LIBTOOL_CXX],
3666
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3667
 
])# AC_LIBTOOL_CXX
3668
 
 
3669
 
 
3670
 
# _LT_AC_LANG_CXX
3671
 
# ---------------
3672
 
AC_DEFUN([_LT_AC_LANG_CXX],
3673
 
[AC_REQUIRE([AC_PROG_CXX])
3674
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3675
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3676
 
])# _LT_AC_LANG_CXX
3677
 
 
3678
 
# _LT_AC_PROG_CXXCPP
3679
 
# ------------------
3680
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3681
 
[
3682
 
AC_REQUIRE([AC_PROG_CXX])
3683
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3684
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3685
 
    (test "X$CXX" != "Xg++"))) ; then
3686
 
  AC_PROG_CXXCPP
3687
 
fi
3688
 
])# _LT_AC_PROG_CXXCPP
3689
 
 
3690
 
# AC_LIBTOOL_F77
3691
 
# --------------
3692
 
# enable support for Fortran 77 libraries
3693
 
AC_DEFUN([AC_LIBTOOL_F77],
3694
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3695
 
])# AC_LIBTOOL_F77
3696
 
 
3697
 
 
3698
 
# _LT_AC_LANG_F77
3699
 
# ---------------
3700
 
AC_DEFUN([_LT_AC_LANG_F77],
3701
 
[AC_REQUIRE([AC_PROG_F77])
3702
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3703
 
])# _LT_AC_LANG_F77
3704
 
 
3705
 
 
3706
 
# AC_LIBTOOL_GCJ
3707
 
# --------------
3708
 
# enable support for GCJ libraries
3709
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3710
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3711
 
])# AC_LIBTOOL_GCJ
3712
 
 
3713
 
 
3714
 
# _LT_AC_LANG_GCJ
3715
 
# ---------------
3716
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3717
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3718
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3719
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3720
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3721
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3722
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3723
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3724
 
])# _LT_AC_LANG_GCJ
3725
 
 
3726
 
 
3727
 
# AC_LIBTOOL_RC
3728
 
# -------------
3729
 
# enable support for Windows resource files
3730
 
AC_DEFUN([AC_LIBTOOL_RC],
3731
 
[AC_REQUIRE([LT_AC_PROG_RC])
3732
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3733
 
])# AC_LIBTOOL_RC
3734
 
 
3735
 
 
3736
 
# AC_LIBTOOL_LANG_C_CONFIG
3737
 
# ------------------------
3738
 
# Ensure that the configuration vars for the C compiler are
3739
 
# suitably defined.  Those variables are subsequently used by
3740
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3741
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3742
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3743
 
[lt_save_CC="$CC"
3744
 
AC_LANG_PUSH(C)
3745
 
 
3746
 
# Source file extension for C test sources.
3747
 
ac_ext=c
3748
 
 
3749
 
# Object file extension for compiled C test sources.
3750
 
objext=o
3751
 
_LT_AC_TAGVAR(objext, $1)=$objext
3752
 
 
3753
 
# Code to be used in simple compile tests
3754
 
lt_simple_compile_test_code="int some_variable = 0;"
3755
 
 
3756
 
# Code to be used in simple link tests
3757
 
lt_simple_link_test_code='int main(){return(0);}'
3758
 
 
3759
 
_LT_AC_SYS_COMPILER
3760
 
 
3761
 
# save warnings/boilerplate of simple test code
3762
 
_LT_COMPILER_BOILERPLATE
3763
 
_LT_LINKER_BOILERPLATE
3764
 
 
3765
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3766
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3767
 
AC_LIBTOOL_PROG_CC_C_O($1)
3768
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3769
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3770
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3771
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3772
 
AC_LIBTOOL_SYS_LIB_STRIP
3773
 
AC_LIBTOOL_DLOPEN_SELF
3774
 
 
3775
 
# Report which library types will actually be built
3776
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3777
 
AC_MSG_RESULT([$can_build_shared])
3778
 
 
3779
 
AC_MSG_CHECKING([whether to build shared libraries])
3780
 
test "$can_build_shared" = "no" && enable_shared=no
3781
 
 
3782
 
# On AIX, shared libraries and static libraries use the same namespace, and
3783
 
# are all built from PIC.
3784
 
case $host_os in
3785
 
aix3*)
3786
 
  test "$enable_shared" = yes && enable_static=no
3787
 
  if test -n "$RANLIB"; then
3788
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3789
 
    postinstall_cmds='$RANLIB $lib'
3790
 
  fi
3791
 
  ;;
3792
 
 
3793
 
aix[[4-9]]*)
3794
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3795
 
    test "$enable_shared" = yes && enable_static=no
3796
 
  fi
3797
 
    ;;
3798
 
esac
3799
 
AC_MSG_RESULT([$enable_shared])
3800
 
 
3801
 
AC_MSG_CHECKING([whether to build static libraries])
3802
 
# Make sure either enable_shared or enable_static is yes.
3803
 
test "$enable_shared" = yes || enable_static=yes
3804
 
AC_MSG_RESULT([$enable_static])
3805
 
 
3806
 
AC_LIBTOOL_CONFIG($1)
3807
 
 
3808
 
AC_LANG_POP
3809
 
CC="$lt_save_CC"
3810
 
])# AC_LIBTOOL_LANG_C_CONFIG
3811
 
 
3812
 
 
3813
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3814
 
# --------------------------
3815
 
# Ensure that the configuration vars for the C compiler are
3816
 
# suitably defined.  Those variables are subsequently used by
3817
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3818
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3819
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3820
 
[AC_LANG_PUSH(C++)
3821
 
AC_REQUIRE([AC_PROG_CXX])
3822
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3823
 
 
3824
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3825
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3826
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3827
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3828
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3829
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3830
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3831
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3832
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3833
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3834
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3835
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3836
 
_LT_AC_TAGVAR(module_cmds, $1)=
3837
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3838
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3839
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3840
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3841
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3842
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3843
 
 
3844
 
# Dependencies to place before and after the object being linked:
3845
 
_LT_AC_TAGVAR(predep_objects, $1)=
3846
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3847
 
_LT_AC_TAGVAR(predeps, $1)=
3848
 
_LT_AC_TAGVAR(postdeps, $1)=
3849
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3850
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3851
 
 
3852
 
# Source file extension for C++ test sources.
3853
 
ac_ext=cpp
3854
 
 
3855
 
# Object file extension for compiled C++ test sources.
3856
 
objext=o
3857
 
_LT_AC_TAGVAR(objext, $1)=$objext
3858
 
 
3859
 
# Code to be used in simple compile tests
3860
 
lt_simple_compile_test_code="int some_variable = 0;"
3861
 
 
3862
 
# Code to be used in simple link tests
3863
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3864
 
 
3865
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3866
 
_LT_AC_SYS_COMPILER
3867
 
 
3868
 
# save warnings/boilerplate of simple test code
3869
 
_LT_COMPILER_BOILERPLATE
3870
 
_LT_LINKER_BOILERPLATE
3871
 
 
3872
 
# Allow CC to be a program name with arguments.
3873
 
lt_save_CC=$CC
3874
 
lt_save_LD=$LD
3875
 
lt_save_GCC=$GCC
3876
 
GCC=$GXX
3877
 
lt_save_with_gnu_ld=$with_gnu_ld
3878
 
lt_save_path_LD=$lt_cv_path_LD
3879
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3880
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3881
 
else
3882
 
  $as_unset lt_cv_prog_gnu_ld
3883
 
fi
3884
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3885
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3886
 
else
3887
 
  $as_unset lt_cv_path_LD
3888
 
fi
3889
 
test -z "${LDCXX+set}" || LD=$LDCXX
3890
 
CC=${CXX-"c++"}
3891
 
compiler=$CC
3892
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3893
 
_LT_CC_BASENAME([$compiler])
3894
 
 
3895
 
# We don't want -fno-exception wen compiling C++ code, so set the
3896
 
# no_builtin_flag separately
3897
 
if test "$GXX" = yes; then
3898
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3899
 
else
3900
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3901
 
fi
3902
 
 
3903
 
if test "$GXX" = yes; then
3904
 
  # Set up default GNU C++ configuration
3905
 
 
3906
 
  AC_PROG_LD
3907
 
 
3908
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3909
 
  # archiving commands below assume that GNU ld is being used.
3910
 
  if test "$with_gnu_ld" = yes; then
3911
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3912
 
    _LT_AC_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'
3913
 
 
3914
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3915
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3916
 
 
3917
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3918
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3919
 
    #     investigate it a little bit more. (MM)
3920
 
    wlarc='${wl}'
3921
 
 
3922
 
    # ancient GNU ld didn't support --whole-archive et. al.
3923
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3924
 
        grep 'no-whole-archive' > /dev/null; then
3925
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3926
 
    else
3927
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3928
 
    fi
3929
 
  else
3930
 
    with_gnu_ld=no
3931
 
    wlarc=
3932
 
 
3933
 
    # A generic and very simple default shared library creation
3934
 
    # command for GNU C++ for the case where it uses the native
3935
 
    # linker, instead of GNU ld.  If possible, this setting should
3936
 
    # overridden to take advantage of the native linker features on
3937
 
    # the platform it is being used on.
3938
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3939
 
  fi
3940
 
 
3941
 
  # Commands to make compiler produce verbose output that lists
3942
 
  # what "hidden" libraries, object files and flags are used when
3943
 
  # linking a shared library.
3944
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3945
 
 
3946
 
else
3947
 
  GXX=no
3948
 
  with_gnu_ld=no
3949
 
  wlarc=
3950
 
fi
3951
 
 
3952
 
# PORTME: fill in a description of your system's C++ link characteristics
3953
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3954
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3955
 
case $host_os in
3956
 
  aix3*)
3957
 
    # FIXME: insert proper C++ library support
3958
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3959
 
    ;;
3960
 
  aix[[4-9]]*)
3961
 
    if test "$host_cpu" = ia64; then
3962
 
      # On IA64, the linker does run time linking by default, so we don't
3963
 
      # have to do anything special.
3964
 
      aix_use_runtimelinking=no
3965
 
      exp_sym_flag='-Bexport'
3966
 
      no_entry_flag=""
3967
 
    else
3968
 
      aix_use_runtimelinking=no
3969
 
 
3970
 
      # Test if we are trying to use run time linking or normal
3971
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3972
 
      # need to do runtime linking.
3973
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3974
 
        for ld_flag in $LDFLAGS; do
3975
 
          case $ld_flag in
3976
 
          *-brtl*)
3977
 
            aix_use_runtimelinking=yes
3978
 
            break
3979
 
            ;;
3980
 
          esac
3981
 
        done
3982
 
        ;;
3983
 
      esac
3984
 
 
3985
 
      exp_sym_flag='-bexport'
3986
 
      no_entry_flag='-bnoentry'
3987
 
    fi
3988
 
 
3989
 
    # When large executables or shared objects are built, AIX ld can
3990
 
    # have problems creating the table of contents.  If linking a library
3991
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3992
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3993
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3994
 
 
3995
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3996
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3997
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3998
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3999
 
 
4000
 
    if test "$GXX" = yes; then
4001
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
4002
 
      # We only want to do this on AIX 4.2 and lower, the check
4003
 
      # below for broken collect2 doesn't work under 4.3+
4004
 
        collect2name=`${CC} -print-prog-name=collect2`
4005
 
        if test -f "$collect2name" && \
4006
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4007
 
        then
4008
 
          # We have reworked collect2
4009
 
          :
4010
 
        else
4011
 
          # We have old collect2
4012
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4013
 
          # It fails to find uninstalled libraries when the uninstalled
4014
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
4015
 
          # to unsupported forces relinking
4016
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4017
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4018
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4019
 
        fi
4020
 
        ;;
4021
 
      esac
4022
 
      shared_flag='-shared'
4023
 
      if test "$aix_use_runtimelinking" = yes; then
4024
 
        shared_flag="$shared_flag "'${wl}-G'
4025
 
      fi
4026
 
    else
4027
 
      # not using gcc
4028
 
      if test "$host_cpu" = ia64; then
4029
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4030
 
        # chokes on -Wl,-G. The following line is correct:
4031
 
        shared_flag='-G'
4032
 
      else
4033
 
        if test "$aix_use_runtimelinking" = yes; then
4034
 
          shared_flag='${wl}-G'
4035
 
        else
4036
 
          shared_flag='${wl}-bM:SRE'
4037
 
        fi
4038
 
      fi
4039
 
    fi
4040
 
 
4041
 
    # It seems that -bexpall does not export symbols beginning with
4042
 
    # underscore (_), so it is better to generate a list of symbols to export.
4043
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4044
 
    if test "$aix_use_runtimelinking" = yes; then
4045
 
      # Warning - without using the other runtime loading flags (-brtl),
4046
 
      # -berok will link without error, but may produce a broken library.
4047
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4048
 
      # Determine the default libpath from the value encoded in an empty executable.
4049
 
      _LT_AC_SYS_LIBPATH_AIX
4050
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4051
 
 
4052
 
      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4053
 
     else
4054
 
      if test "$host_cpu" = ia64; then
4055
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4056
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4057
 
        _LT_AC_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"
4058
 
      else
4059
 
        # Determine the default libpath from the value encoded in an empty executable.
4060
 
        _LT_AC_SYS_LIBPATH_AIX
4061
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4062
 
        # Warning - without using the other run time loading flags,
4063
 
        # -berok will link without error, but may produce a broken library.
4064
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4065
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4066
 
        # Exported symbols can be pulled into shared objects from archives
4067
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4068
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4069
 
        # This is similar to how AIX traditionally builds its shared libraries.
4070
 
        _LT_AC_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'
4071
 
      fi
4072
 
    fi
4073
 
    ;;
4074
 
 
4075
 
  beos*)
4076
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4077
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4078
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4079
 
      # support --undefined.  This deserves some investigation.  FIXME
4080
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4081
 
    else
4082
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4083
 
    fi
4084
 
    ;;
4085
 
 
4086
 
  chorus*)
4087
 
    case $cc_basename in
4088
 
      *)
4089
 
        # FIXME: insert proper C++ library support
4090
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4091
 
        ;;
4092
 
    esac
4093
 
    ;;
4094
 
 
4095
 
  cygwin* | mingw* | pw32*)
4096
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4097
 
    # as there is no search path for DLLs.
4098
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4099
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4100
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
4101
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4102
 
 
4103
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4104
 
      _LT_AC_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'
4105
 
      # If the export-symbols file already is a .def file (1st line
4106
 
      # is EXPORTS), use it as is; otherwise, prepend...
4107
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4108
 
        cp $export_symbols $output_objdir/$soname.def;
4109
 
      else
4110
 
        echo EXPORTS > $output_objdir/$soname.def;
4111
 
        cat $export_symbols >> $output_objdir/$soname.def;
4112
 
      fi~
4113
 
      $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'
4114
 
    else
4115
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4116
 
    fi
4117
 
  ;;
4118
 
      darwin* | rhapsody*)
4119
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4120
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4121
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4122
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4123
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4124
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4125
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4126
 
      if test "$GXX" = yes ; then
4127
 
      output_verbose_link_cmd='echo'
4128
 
      _LT_AC_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}"
4129
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4130
 
      _LT_AC_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}"
4131
 
      _LT_AC_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}"
4132
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4133
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4134
 
        _LT_AC_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}"
4135
 
      fi
4136
 
      else
4137
 
      case $cc_basename in
4138
 
        xlc*)
4139
 
         output_verbose_link_cmd='echo'
4140
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
4141
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4142
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4143
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4144
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4145
 
          ;;
4146
 
       *)
4147
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4148
 
          ;;
4149
 
      esac
4150
 
      fi
4151
 
        ;;
4152
 
 
4153
 
  dgux*)
4154
 
    case $cc_basename in
4155
 
      ec++*)
4156
 
        # FIXME: insert proper C++ library support
4157
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4158
 
        ;;
4159
 
      ghcx*)
4160
 
        # Green Hills C++ Compiler
4161
 
        # FIXME: insert proper C++ library support
4162
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4163
 
        ;;
4164
 
      *)
4165
 
        # FIXME: insert proper C++ library support
4166
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4167
 
        ;;
4168
 
    esac
4169
 
    ;;
4170
 
  freebsd[[12]]*)
4171
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
4172
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4173
 
    ;;
4174
 
  freebsd-elf*)
4175
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4176
 
    ;;
4177
 
  freebsd* | dragonfly*)
4178
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4179
 
    # conventions
4180
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4181
 
    ;;
4182
 
  gnu*)
4183
 
    ;;
4184
 
  hpux9*)
4185
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4186
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4187
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4188
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4189
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4190
 
                                # but as the default
4191
 
                                # location of the library.
4192
 
 
4193
 
    case $cc_basename in
4194
 
    CC*)
4195
 
      # FIXME: insert proper C++ library support
4196
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4197
 
      ;;
4198
 
    aCC*)
4199
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4200
 
      # Commands to make compiler produce verbose output that lists
4201
 
      # what "hidden" libraries, object files and flags are used when
4202
 
      # linking a shared library.
4203
 
      #
4204
 
      # There doesn't appear to be a way to prevent this compiler from
4205
 
      # explicitly linking system object files so we need to strip them
4206
 
      # from the output so that they don't get included in the library
4207
 
      # dependencies.
4208
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4209
 
      ;;
4210
 
    *)
4211
 
      if test "$GXX" = yes; then
4212
 
        _LT_AC_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'
4213
 
      else
4214
 
        # FIXME: insert proper C++ library support
4215
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4216
 
      fi
4217
 
      ;;
4218
 
    esac
4219
 
    ;;
4220
 
  hpux10*|hpux11*)
4221
 
    if test $with_gnu_ld = no; then
4222
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4223
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4224
 
 
4225
 
      case $host_cpu in
4226
 
      hppa*64*|ia64*) ;;
4227
 
      *)
4228
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4229
 
        ;;
4230
 
      esac
4231
 
    fi
4232
 
    case $host_cpu in
4233
 
    hppa*64*|ia64*)
4234
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4235
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4236
 
      ;;
4237
 
    *)
4238
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4239
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4240
 
                                              # but as the default
4241
 
                                              # location of the library.
4242
 
      ;;
4243
 
    esac
4244
 
 
4245
 
    case $cc_basename in
4246
 
      CC*)
4247
 
        # FIXME: insert proper C++ library support
4248
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4249
 
        ;;
4250
 
      aCC*)
4251
 
        case $host_cpu in
4252
 
        hppa*64*)
4253
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4254
 
          ;;
4255
 
        ia64*)
4256
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4257
 
          ;;
4258
 
        *)
4259
 
          _LT_AC_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'
4260
 
          ;;
4261
 
        esac
4262
 
        # Commands to make compiler produce verbose output that lists
4263
 
        # what "hidden" libraries, object files and flags are used when
4264
 
        # linking a shared library.
4265
 
        #
4266
 
        # There doesn't appear to be a way to prevent this compiler from
4267
 
        # explicitly linking system object files so we need to strip them
4268
 
        # from the output so that they don't get included in the library
4269
 
        # dependencies.
4270
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4271
 
        ;;
4272
 
      *)
4273
 
        if test "$GXX" = yes; then
4274
 
          if test $with_gnu_ld = no; then
4275
 
            case $host_cpu in
4276
 
            hppa*64*)
4277
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4278
 
              ;;
4279
 
            ia64*)
4280
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4281
 
              ;;
4282
 
            *)
4283
 
              _LT_AC_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'
4284
 
              ;;
4285
 
            esac
4286
 
          fi
4287
 
        else
4288
 
          # FIXME: insert proper C++ library support
4289
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4290
 
        fi
4291
 
        ;;
4292
 
    esac
4293
 
    ;;
4294
 
  interix[[3-9]]*)
4295
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4296
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4297
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4298
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4299
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4300
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4301
 
    # default) and relocated if they conflict, which is a slow very memory
4302
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4303
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4304
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4305
 
    _LT_AC_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'
4306
 
    _LT_AC_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'
4307
 
    ;;
4308
 
  irix5* | irix6*)
4309
 
    case $cc_basename in
4310
 
      CC*)
4311
 
        # SGI C++
4312
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4313
 
 
4314
 
        # Archives containing C++ object files must be created using
4315
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4316
 
        # necessary to make sure instantiated templates are included
4317
 
        # in the archive.
4318
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4319
 
        ;;
4320
 
      *)
4321
 
        if test "$GXX" = yes; then
4322
 
          if test "$with_gnu_ld" = no; then
4323
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4324
 
          else
4325
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4326
 
          fi
4327
 
        fi
4328
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4329
 
        ;;
4330
 
    esac
4331
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4332
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4333
 
    ;;
4334
 
  linux* | k*bsd*-gnu)
4335
 
    case $cc_basename in
4336
 
      KCC*)
4337
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4338
 
 
4339
 
        # KCC will only create a shared library if the output file
4340
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4341
 
        # to its proper name (with version) after linking.
4342
 
        _LT_AC_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'
4343
 
        _LT_AC_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'
4344
 
        # Commands to make compiler produce verbose output that lists
4345
 
        # what "hidden" libraries, object files and flags are used when
4346
 
        # linking a shared library.
4347
 
        #
4348
 
        # There doesn't appear to be a way to prevent this compiler from
4349
 
        # explicitly linking system object files so we need to strip them
4350
 
        # from the output so that they don't get included in the library
4351
 
        # dependencies.
4352
 
        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 $list'
4353
 
 
4354
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4355
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4356
 
 
4357
 
        # Archives containing C++ object files must be created using
4358
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4359
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4360
 
        ;;
4361
 
      icpc*)
4362
 
        # Intel C++
4363
 
        with_gnu_ld=yes
4364
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4365
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4366
 
        # earlier do not add the objects themselves.
4367
 
        case `$CC -V 2>&1` in
4368
 
        *"Version 7."*)
4369
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4370
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4371
 
          ;;
4372
 
        *)  # Version 8.0 or newer
4373
 
          tmp_idyn=
4374
 
          case $host_cpu in
4375
 
            ia64*) tmp_idyn=' -i_dynamic';;
4376
 
          esac
4377
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4378
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4379
 
          ;;
4380
 
        esac
4381
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4382
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4383
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4384
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4385
 
        ;;
4386
 
      pgCC* | pgcpp*)
4387
 
        # Portland Group C++ compiler
4388
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4389
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4390
 
 
4391
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4392
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4393
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4394
 
        ;;
4395
 
      cxx*)
4396
 
        # Compaq C++
4397
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4398
 
        _LT_AC_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'
4399
 
 
4400
 
        runpath_var=LD_RUN_PATH
4401
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4402
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4403
 
 
4404
 
        # Commands to make compiler produce verbose output that lists
4405
 
        # what "hidden" libraries, object files and flags are used when
4406
 
        # linking a shared library.
4407
 
        #
4408
 
        # There doesn't appear to be a way to prevent this compiler from
4409
 
        # explicitly linking system object files so we need to strip them
4410
 
        # from the output so that they don't get included in the library
4411
 
        # dependencies.
4412
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4413
 
        ;;
4414
 
      *)
4415
 
        case `$CC -V 2>&1 | sed 5q` in
4416
 
        *Sun\ C*)
4417
 
          # Sun C++ 5.9
4418
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4419
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4420
 
          _LT_AC_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'
4421
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4422
 
          _LT_AC_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'
4423
 
 
4424
 
          # Not sure whether something based on
4425
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4426
 
          # would be better.
4427
 
          output_verbose_link_cmd='echo'
4428
 
 
4429
 
          # Archives containing C++ object files must be created using
4430
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4431
 
          # necessary to make sure instantiated templates are included
4432
 
          # in the archive.
4433
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4434
 
          ;;
4435
 
        esac
4436
 
        ;;
4437
 
    esac
4438
 
    ;;
4439
 
  lynxos*)
4440
 
    # FIXME: insert proper C++ library support
4441
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4442
 
    ;;
4443
 
  m88k*)
4444
 
    # FIXME: insert proper C++ library support
4445
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4446
 
    ;;
4447
 
  mvs*)
4448
 
    case $cc_basename in
4449
 
      cxx*)
4450
 
        # FIXME: insert proper C++ library support
4451
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4452
 
        ;;
4453
 
      *)
4454
 
        # FIXME: insert proper C++ library support
4455
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4456
 
        ;;
4457
 
    esac
4458
 
    ;;
4459
 
  netbsd*)
4460
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4461
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4462
 
      wlarc=
4463
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4464
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4465
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4466
 
    fi
4467
 
    # Workaround some broken pre-1.5 toolchains
4468
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4469
 
    ;;
4470
 
  openbsd2*)
4471
 
    # C++ shared libraries are fairly broken
4472
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4473
 
    ;;
4474
 
  openbsd*)
4475
 
    if test -f /usr/libexec/ld.so; then
4476
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4477
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4478
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4479
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4480
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4482
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4483
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4484
 
      fi
4485
 
      output_verbose_link_cmd='echo'
4486
 
    else
4487
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4488
 
    fi
4489
 
    ;;
4490
 
  osf3*)
4491
 
    case $cc_basename in
4492
 
      KCC*)
4493
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4494
 
 
4495
 
        # KCC will only create a shared library if the output file
4496
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4497
 
        # to its proper name (with version) after linking.
4498
 
        _LT_AC_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'
4499
 
 
4500
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4501
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4502
 
 
4503
 
        # Archives containing C++ object files must be created using
4504
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4505
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4506
 
 
4507
 
        ;;
4508
 
      RCC*)
4509
 
        # Rational C++ 2.4.1
4510
 
        # FIXME: insert proper C++ library support
4511
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4512
 
        ;;
4513
 
      cxx*)
4514
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4515
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4516
 
 
4517
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4518
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4519
 
 
4520
 
        # Commands to make compiler produce verbose output that lists
4521
 
        # what "hidden" libraries, object files and flags are used when
4522
 
        # linking a shared library.
4523
 
        #
4524
 
        # There doesn't appear to be a way to prevent this compiler from
4525
 
        # explicitly linking system object files so we need to strip them
4526
 
        # from the output so that they don't get included in the library
4527
 
        # dependencies.
4528
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4529
 
        ;;
4530
 
      *)
4531
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4532
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4533
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4534
 
 
4535
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4536
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4537
 
 
4538
 
          # Commands to make compiler produce verbose output that lists
4539
 
          # what "hidden" libraries, object files and flags are used when
4540
 
          # linking a shared library.
4541
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4542
 
 
4543
 
        else
4544
 
          # FIXME: insert proper C++ library support
4545
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4546
 
        fi
4547
 
        ;;
4548
 
    esac
4549
 
    ;;
4550
 
  osf4* | osf5*)
4551
 
    case $cc_basename in
4552
 
      KCC*)
4553
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4554
 
 
4555
 
        # KCC will only create a shared library if the output file
4556
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4557
 
        # to its proper name (with version) after linking.
4558
 
        _LT_AC_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'
4559
 
 
4560
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4561
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4562
 
 
4563
 
        # Archives containing C++ object files must be created using
4564
 
        # the KAI C++ compiler.
4565
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4566
 
        ;;
4567
 
      RCC*)
4568
 
        # Rational C++ 2.4.1
4569
 
        # FIXME: insert proper C++ library support
4570
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4571
 
        ;;
4572
 
      cxx*)
4573
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4574
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4575
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4576
 
          echo "-hidden">> $lib.exp~
4577
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4578
 
          $rm $lib.exp'
4579
 
 
4580
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4581
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4582
 
 
4583
 
        # Commands to make compiler produce verbose output that lists
4584
 
        # what "hidden" libraries, object files and flags are used when
4585
 
        # linking a shared library.
4586
 
        #
4587
 
        # There doesn't appear to be a way to prevent this compiler from
4588
 
        # explicitly linking system object files so we need to strip them
4589
 
        # from the output so that they don't get included in the library
4590
 
        # dependencies.
4591
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4592
 
        ;;
4593
 
      *)
4594
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4595
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4596
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4597
 
 
4598
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4599
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4600
 
 
4601
 
          # Commands to make compiler produce verbose output that lists
4602
 
          # what "hidden" libraries, object files and flags are used when
4603
 
          # linking a shared library.
4604
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4605
 
 
4606
 
        else
4607
 
          # FIXME: insert proper C++ library support
4608
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4609
 
        fi
4610
 
        ;;
4611
 
    esac
4612
 
    ;;
4613
 
  psos*)
4614
 
    # FIXME: insert proper C++ library support
4615
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4616
 
    ;;
4617
 
  sunos4*)
4618
 
    case $cc_basename in
4619
 
      CC*)
4620
 
        # Sun C++ 4.x
4621
 
        # FIXME: insert proper C++ library support
4622
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4623
 
        ;;
4624
 
      lcc*)
4625
 
        # Lucid
4626
 
        # FIXME: insert proper C++ library support
4627
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4628
 
        ;;
4629
 
      *)
4630
 
        # FIXME: insert proper C++ library support
4631
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4632
 
        ;;
4633
 
    esac
4634
 
    ;;
4635
 
  solaris*)
4636
 
    case $cc_basename in
4637
 
      CC*)
4638
 
        # Sun C++ 4.2, 5.x and Centerline C++
4639
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4640
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4641
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4642
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4643
 
        $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'
4644
 
 
4645
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4646
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4647
 
        case $host_os in
4648
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4649
 
          *)
4650
 
            # The compiler driver will combine and reorder linker options,
4651
 
            # but understands `-z linker_flag'.
4652
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4653
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4654
 
            ;;
4655
 
        esac
4656
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4657
 
 
4658
 
        output_verbose_link_cmd='echo'
4659
 
 
4660
 
        # Archives containing C++ object files must be created using
4661
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4662
 
        # necessary to make sure instantiated templates are included
4663
 
        # in the archive.
4664
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4665
 
        ;;
4666
 
      gcx*)
4667
 
        # Green Hills C++ Compiler
4668
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4669
 
 
4670
 
        # The C++ compiler must be used to create the archive.
4671
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4672
 
        ;;
4673
 
      *)
4674
 
        # GNU C++ compiler with Solaris linker
4675
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4676
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4677
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4678
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4679
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4680
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4681
 
 
4682
 
            # Commands to make compiler produce verbose output that lists
4683
 
            # what "hidden" libraries, object files and flags are used when
4684
 
            # linking a shared library.
4685
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4686
 
          else
4687
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4688
 
            # platform.
4689
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4690
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4691
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4692
 
 
4693
 
            # Commands to make compiler produce verbose output that lists
4694
 
            # what "hidden" libraries, object files and flags are used when
4695
 
            # linking a shared library.
4696
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4697
 
          fi
4698
 
 
4699
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4700
 
          case $host_os in
4701
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4702
 
          *)
4703
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4704
 
            ;;
4705
 
          esac
4706
 
        fi
4707
 
        ;;
4708
 
    esac
4709
 
    ;;
4710
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4711
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4712
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4713
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4714
 
    runpath_var='LD_RUN_PATH'
4715
 
 
4716
 
    case $cc_basename in
4717
 
      CC*)
4718
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4719
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4720
 
        ;;
4721
 
      *)
4722
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4723
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4724
 
        ;;
4725
 
    esac
4726
 
    ;;
4727
 
  sysv5* | sco3.2v5* | sco5v6*)
4728
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4729
 
    # link with -lc, and that would cause any symbols used from libc to
4730
 
    # always be unresolved, which means just about no library would
4731
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4732
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4733
 
    # as -z defs.
4734
 
    # For security reasons, it is highly recommended that you always
4735
 
    # use absolute paths for naming shared libraries, and exclude the
4736
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4737
 
    # requires that you compile everything twice, which is a pain.
4738
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4739
 
    # non-empty value in the environment.  Most likely only useful for
4740
 
    # creating official distributions of packages.
4741
 
    # This is a hack until libtool officially supports absolute path
4742
 
    # names for shared libraries.
4743
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4744
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4745
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4746
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4747
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4748
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4749
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4750
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4751
 
    runpath_var='LD_RUN_PATH'
4752
 
 
4753
 
    case $cc_basename in
4754
 
      CC*)
4755
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4756
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4757
 
        ;;
4758
 
      *)
4759
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4760
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4761
 
        ;;
4762
 
    esac
4763
 
    ;;
4764
 
  tandem*)
4765
 
    case $cc_basename in
4766
 
      NCC*)
4767
 
        # NonStop-UX NCC 3.20
4768
 
        # FIXME: insert proper C++ library support
4769
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4770
 
        ;;
4771
 
      *)
4772
 
        # FIXME: insert proper C++ library support
4773
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4774
 
        ;;
4775
 
    esac
4776
 
    ;;
4777
 
  vxworks*)
4778
 
    # FIXME: insert proper C++ library support
4779
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4780
 
    ;;
4781
 
  *)
4782
 
    # FIXME: insert proper C++ library support
4783
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4784
 
    ;;
4785
 
esac
4786
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4787
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4788
 
 
4789
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4790
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4791
 
 
4792
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4793
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4794
 
AC_LIBTOOL_PROG_CC_C_O($1)
4795
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4796
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4797
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4798
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4799
 
 
4800
 
AC_LIBTOOL_CONFIG($1)
4801
 
 
4802
 
AC_LANG_POP
4803
 
CC=$lt_save_CC
4804
 
LDCXX=$LD
4805
 
LD=$lt_save_LD
4806
 
GCC=$lt_save_GCC
4807
 
with_gnu_ldcxx=$with_gnu_ld
4808
 
with_gnu_ld=$lt_save_with_gnu_ld
4809
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4810
 
lt_cv_path_LD=$lt_save_path_LD
4811
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4812
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4813
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4814
 
 
4815
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4816
 
# ------------------------------------
4817
 
# Figure out "hidden" library dependencies from verbose
4818
 
# compiler output when linking a shared library.
4819
 
# Parse the compiler output and extract the necessary
4820
 
# objects, libraries and library flags.
4821
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4822
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4823
 
dnl we can't use the lt_simple_compile_test_code here,
4824
 
dnl because it contains code intended for an executable,
4825
 
dnl not a library.  It's possible we should let each
4826
 
dnl tag define a new lt_????_link_test_code variable,
4827
 
dnl but it's only used here...
4828
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4829
 
int a;
4830
 
void foo (void) { a = 0; }
4831
 
EOF
4832
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4833
 
class Foo
4834
 
{
4835
 
public:
4836
 
  Foo (void) { a = 0; }
4837
 
private:
4838
 
  int a;
4839
 
};
4840
 
EOF
4841
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4842
 
      subroutine foo
4843
 
      implicit none
4844
 
      integer*4 a
4845
 
      a=0
4846
 
      return
4847
 
      end
4848
 
EOF
4849
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4850
 
public class foo {
4851
 
  private int a;
4852
 
  public void bar (void) {
4853
 
    a = 0;
4854
 
  }
4855
 
};
4856
 
EOF
4857
 
])
4858
 
dnl Parse the compiler output and extract the necessary
4859
 
dnl objects, libraries and library flags.
4860
 
if AC_TRY_EVAL(ac_compile); then
4861
 
  # Parse the compiler output and extract the necessary
4862
 
  # objects, libraries and library flags.
4863
 
 
4864
 
  # Sentinel used to keep track of whether or not we are before
4865
 
  # the conftest object file.
4866
 
  pre_test_object_deps_done=no
4867
 
 
4868
 
  # The `*' in the case matches for architectures that use `case' in
4869
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4870
 
  # eval without this substitution.
4871
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4872
 
 
4873
 
  for p in `eval $output_verbose_link_cmd`; do
4874
 
    case $p in
4875
 
 
4876
 
    -L* | -R* | -l*)
4877
 
       # Some compilers place space between "-{L,R}" and the path.
4878
 
       # Remove the space.
4879
 
       if test $p = "-L" \
4880
 
          || test $p = "-R"; then
4881
 
         prev=$p
4882
 
         continue
4883
 
       else
4884
 
         prev=
4885
 
       fi
4886
 
 
4887
 
       if test "$pre_test_object_deps_done" = no; then
4888
 
         case $p in
4889
 
         -L* | -R*)
4890
 
           # Internal compiler library paths should come after those
4891
 
           # provided the user.  The postdeps already come after the
4892
 
           # user supplied libs so there is no need to process them.
4893
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4894
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4895
 
           else
4896
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4897
 
           fi
4898
 
           ;;
4899
 
         # The "-l" case would never come before the object being
4900
 
         # linked, so don't bother handling this case.
4901
 
         esac
4902
 
       else
4903
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4904
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4905
 
         else
4906
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4907
 
         fi
4908
 
       fi
4909
 
       ;;
4910
 
 
4911
 
    *.$objext)
4912
 
       # This assumes that the test object file only shows up
4913
 
       # once in the compiler output.
4914
 
       if test "$p" = "conftest.$objext"; then
4915
 
         pre_test_object_deps_done=yes
4916
 
         continue
4917
 
       fi
4918
 
 
4919
 
       if test "$pre_test_object_deps_done" = no; then
4920
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4921
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4922
 
         else
4923
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4924
 
         fi
4925
 
       else
4926
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4927
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4928
 
         else
4929
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4930
 
         fi
4931
 
       fi
4932
 
       ;;
4933
 
 
4934
 
    *) ;; # Ignore the rest.
4935
 
 
4936
 
    esac
4937
 
  done
4938
 
 
4939
 
  # Clean up.
4940
 
  rm -f a.out a.exe
4941
 
else
4942
 
  echo "libtool.m4: error: problem compiling $1 test program"
4943
 
fi
4944
 
 
4945
 
$rm -f confest.$objext
4946
 
 
4947
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4948
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4949
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4950
 
fi
4951
 
 
4952
 
# PORTME: override above test on systems where it is broken
4953
 
ifelse([$1],[CXX],
4954
 
[case $host_os in
4955
 
interix[[3-9]]*)
4956
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4957
 
  # hack all around it, let's just trust "g++" to DTRT.
4958
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4959
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4960
 
  _LT_AC_TAGVAR(postdeps,$1)=
4961
 
  ;;
4962
 
 
4963
 
linux*)
4964
 
  case `$CC -V 2>&1 | sed 5q` in
4965
 
  *Sun\ C*)
4966
 
    # Sun C++ 5.9
4967
 
    #
4968
 
    # The more standards-conforming stlport4 library is
4969
 
    # incompatible with the Cstd library. Avoid specifying
4970
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4971
 
    # -library=stlport4 depends on it.
4972
 
    case " $CXX $CXXFLAGS " in
4973
 
    *" -library=stlport4 "*)
4974
 
      solaris_use_stlport4=yes
4975
 
      ;;
4976
 
    esac
4977
 
    if test "$solaris_use_stlport4" != yes; then
4978
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4979
 
    fi
4980
 
    ;;
4981
 
  esac
4982
 
  ;;
4983
 
 
4984
 
solaris*)
4985
 
  case $cc_basename in
4986
 
  CC*)
4987
 
    # The more standards-conforming stlport4 library is
4988
 
    # incompatible with the Cstd library. Avoid specifying
4989
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4990
 
    # -library=stlport4 depends on it.
4991
 
    case " $CXX $CXXFLAGS " in
4992
 
    *" -library=stlport4 "*)
4993
 
      solaris_use_stlport4=yes
4994
 
      ;;
4995
 
    esac
4996
 
 
4997
 
    # Adding this requires a known-good setup of shared libraries for
4998
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4999
 
    # archive will be linked into the output, leading to subtle bugs.
5000
 
    if test "$solaris_use_stlport4" != yes; then
5001
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5002
 
    fi
5003
 
    ;;
5004
 
  esac
5005
 
  ;;
5006
 
esac
5007
 
])
5008
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5009
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5010
 
esac
5011
 
])# AC_LIBTOOL_POSTDEP_PREDEP
5012
 
 
5013
 
# AC_LIBTOOL_LANG_F77_CONFIG
5014
 
# --------------------------
5015
 
# Ensure that the configuration vars for the C compiler are
5016
 
# suitably defined.  Those variables are subsequently used by
5017
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5018
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5019
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5020
 
[AC_REQUIRE([AC_PROG_F77])
5021
 
AC_LANG_PUSH(Fortran 77)
5022
 
 
5023
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5024
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5025
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5026
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5027
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5028
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5029
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5030
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5031
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5032
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5033
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5034
 
_LT_AC_TAGVAR(module_cmds, $1)=
5035
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5036
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5037
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5038
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5039
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5040
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5041
 
 
5042
 
# Source file extension for f77 test sources.
5043
 
ac_ext=f
5044
 
 
5045
 
# Object file extension for compiled f77 test sources.
5046
 
objext=o
5047
 
_LT_AC_TAGVAR(objext, $1)=$objext
5048
 
 
5049
 
# Code to be used in simple compile tests
5050
 
lt_simple_compile_test_code="\
5051
 
      subroutine t
5052
 
      return
5053
 
      end
5054
 
"
5055
 
 
5056
 
# Code to be used in simple link tests
5057
 
lt_simple_link_test_code="\
5058
 
      program t
5059
 
      end
5060
 
"
5061
 
 
5062
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5063
 
_LT_AC_SYS_COMPILER
5064
 
 
5065
 
# save warnings/boilerplate of simple test code
5066
 
_LT_COMPILER_BOILERPLATE
5067
 
_LT_LINKER_BOILERPLATE
5068
 
 
5069
 
# Allow CC to be a program name with arguments.
5070
 
lt_save_CC="$CC"
5071
 
CC=${F77-"f77"}
5072
 
compiler=$CC
5073
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5074
 
_LT_CC_BASENAME([$compiler])
5075
 
 
5076
 
AC_MSG_CHECKING([if libtool supports shared libraries])
5077
 
AC_MSG_RESULT([$can_build_shared])
5078
 
 
5079
 
AC_MSG_CHECKING([whether to build shared libraries])
5080
 
test "$can_build_shared" = "no" && enable_shared=no
5081
 
 
5082
 
# On AIX, shared libraries and static libraries use the same namespace, and
5083
 
# are all built from PIC.
5084
 
case $host_os in
5085
 
aix3*)
5086
 
  test "$enable_shared" = yes && enable_static=no
5087
 
  if test -n "$RANLIB"; then
5088
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5089
 
    postinstall_cmds='$RANLIB $lib'
5090
 
  fi
5091
 
  ;;
5092
 
aix[[4-9]]*)
5093
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5094
 
    test "$enable_shared" = yes && enable_static=no
5095
 
  fi
5096
 
  ;;
5097
 
esac
5098
 
AC_MSG_RESULT([$enable_shared])
5099
 
 
5100
 
AC_MSG_CHECKING([whether to build static libraries])
5101
 
# Make sure either enable_shared or enable_static is yes.
5102
 
test "$enable_shared" = yes || enable_static=yes
5103
 
AC_MSG_RESULT([$enable_static])
5104
 
 
5105
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
5106
 
_LT_AC_TAGVAR(LD, $1)="$LD"
5107
 
 
5108
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5109
 
AC_LIBTOOL_PROG_CC_C_O($1)
5110
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5111
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5112
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5113
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5114
 
 
5115
 
AC_LIBTOOL_CONFIG($1)
5116
 
 
5117
 
AC_LANG_POP
5118
 
CC="$lt_save_CC"
5119
 
])# AC_LIBTOOL_LANG_F77_CONFIG
5120
 
 
5121
 
 
5122
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
5123
 
# --------------------------
5124
 
# Ensure that the configuration vars for the C compiler are
5125
 
# suitably defined.  Those variables are subsequently used by
5126
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5127
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5128
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5129
 
[AC_LANG_SAVE
5130
 
 
5131
 
# Source file extension for Java test sources.
5132
 
ac_ext=java
5133
 
 
5134
 
# Object file extension for compiled Java test sources.
5135
 
objext=o
5136
 
_LT_AC_TAGVAR(objext, $1)=$objext
5137
 
 
5138
 
# Code to be used in simple compile tests
5139
 
lt_simple_compile_test_code="class foo {}"
5140
 
 
5141
 
# Code to be used in simple link tests
5142
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5143
 
 
5144
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5145
 
_LT_AC_SYS_COMPILER
5146
 
 
5147
 
# save warnings/boilerplate of simple test code
5148
 
_LT_COMPILER_BOILERPLATE
5149
 
_LT_LINKER_BOILERPLATE
5150
 
 
5151
 
# Allow CC to be a program name with arguments.
5152
 
lt_save_CC="$CC"
5153
 
CC=${GCJ-"gcj"}
5154
 
compiler=$CC
5155
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5156
 
_LT_CC_BASENAME([$compiler])
5157
 
 
5158
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5159
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5160
 
 
5161
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5162
 
 
5163
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5164
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5165
 
AC_LIBTOOL_PROG_CC_C_O($1)
5166
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5167
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5168
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5169
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5170
 
 
5171
 
AC_LIBTOOL_CONFIG($1)
5172
 
 
5173
 
AC_LANG_RESTORE
5174
 
CC="$lt_save_CC"
5175
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5176
 
 
5177
 
 
5178
 
# AC_LIBTOOL_LANG_RC_CONFIG
5179
 
# -------------------------
5180
 
# Ensure that the configuration vars for the Windows resource compiler are
5181
 
# suitably defined.  Those variables are subsequently used by
5182
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5183
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5184
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5185
 
[AC_LANG_SAVE
5186
 
 
5187
 
# Source file extension for RC test sources.
5188
 
ac_ext=rc
5189
 
 
5190
 
# Object file extension for compiled RC test sources.
5191
 
objext=o
5192
 
_LT_AC_TAGVAR(objext, $1)=$objext
5193
 
 
5194
 
# Code to be used in simple compile tests
5195
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5196
 
 
5197
 
# Code to be used in simple link tests
5198
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
5199
 
 
5200
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5201
 
_LT_AC_SYS_COMPILER
5202
 
 
5203
 
# save warnings/boilerplate of simple test code
5204
 
_LT_COMPILER_BOILERPLATE
5205
 
_LT_LINKER_BOILERPLATE
5206
 
 
5207
 
# Allow CC to be a program name with arguments.
5208
 
lt_save_CC="$CC"
5209
 
CC=${RC-"windres"}
5210
 
compiler=$CC
5211
 
_LT_AC_TAGVAR(compiler, $1)=$CC
5212
 
_LT_CC_BASENAME([$compiler])
5213
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5214
 
 
5215
 
AC_LIBTOOL_CONFIG($1)
5216
 
 
5217
 
AC_LANG_RESTORE
5218
 
CC="$lt_save_CC"
5219
 
])# AC_LIBTOOL_LANG_RC_CONFIG
5220
 
 
5221
 
 
5222
 
# AC_LIBTOOL_CONFIG([TAGNAME])
5223
 
# ----------------------------
5224
 
# If TAGNAME is not passed, then create an initial libtool script
5225
 
# with a default configuration from the untagged config vars.  Otherwise
5226
 
# add code to config.status for appending the configuration named by
5227
 
# TAGNAME from the matching tagged config vars.
5228
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
5229
 
[# The else clause should only fire when bootstrapping the
5230
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
5231
 
# with your package, and you will get complaints that there are
5232
 
# no rules to generate ltmain.sh.
5233
 
if test -f "$ltmain"; then
5234
 
  # See if we are running on zsh, and set the options which allow our commands through
5235
 
  # without removal of \ escapes.
5236
 
  if test -n "${ZSH_VERSION+set}" ; then
5237
 
    setopt NO_GLOB_SUBST
5238
 
  fi
5239
 
  # Now quote all the things that may contain metacharacters while being
5240
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5241
 
  # variables and quote the copies for generation of the libtool script.
5242
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5243
 
    SED SHELL STRIP \
5244
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5245
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5246
 
    deplibs_check_method reload_flag reload_cmds need_locks \
5247
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5248
 
    lt_cv_sys_global_symbol_to_c_name_address \
5249
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5250
 
    old_postinstall_cmds old_postuninstall_cmds \
5251
 
    _LT_AC_TAGVAR(compiler, $1) \
5252
 
    _LT_AC_TAGVAR(CC, $1) \
5253
 
    _LT_AC_TAGVAR(LD, $1) \
5254
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5255
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5256
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5257
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5258
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5259
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5260
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5261
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5262
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
5263
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5264
 
    _LT_AC_TAGVAR(predep_objects, $1) \
5265
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
5266
 
    _LT_AC_TAGVAR(predeps, $1) \
5267
 
    _LT_AC_TAGVAR(postdeps, $1) \
5268
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5269
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5270
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
5271
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5272
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5273
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5274
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5275
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5276
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
5277
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5278
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5279
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5280
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5281
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5282
 
    _LT_AC_TAGVAR(module_cmds, $1) \
5283
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5284
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5285
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
5286
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5287
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
5288
 
 
5289
 
    case $var in
5290
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5291
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5292
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5293
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5294
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
5295
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5296
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5297
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5298
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5299
 
    postinstall_cmds | postuninstall_cmds | \
5300
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5301
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5302
 
      # Double-quote double-evaled strings.
5303
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5304
 
      ;;
5305
 
    *)
5306
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5307
 
      ;;
5308
 
    esac
5309
 
  done
5310
 
 
5311
 
  case $lt_echo in
5312
 
  *'\[$]0 --fallback-echo"')
5313
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5314
 
    ;;
5315
 
  esac
5316
 
 
5317
 
ifelse([$1], [],
5318
 
  [cfgfile="${ofile}T"
5319
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5320
 
  $rm -f "$cfgfile"
5321
 
  AC_MSG_NOTICE([creating $ofile])],
5322
 
  [cfgfile="$ofile"])
5323
 
 
5324
 
  cat <<__EOF__ >> "$cfgfile"
5325
 
ifelse([$1], [],
5326
 
[#! $SHELL
5327
 
 
5328
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5329
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5330
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5331
 
#
5332
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5333
 
# Free Software Foundation, Inc.
5334
 
#
5335
 
# This file is part of GNU Libtool:
5336
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5337
 
#
5338
 
# This program is free software; you can redistribute it and/or modify
5339
 
# it under the terms of the GNU General Public License as published by
5340
 
# the Free Software Foundation; either version 2 of the License, or
5341
 
# (at your option) any later version.
5342
 
#
5343
 
# This program is distributed in the hope that it will be useful, but
5344
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5345
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5346
 
# General Public License for more details.
5347
 
#
5348
 
# You should have received a copy of the GNU General Public License
5349
 
# along with this program; if not, write to the Free Software
5350
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5351
 
#
5352
 
# As a special exception to the GNU General Public License, if you
5353
 
# distribute this file as part of a program that contains a
5354
 
# configuration script generated by Autoconf, you may include it under
5355
 
# the same distribution terms that you use for the rest of that program.
5356
 
 
5357
 
# A sed program that does not truncate output.
5358
 
SED=$lt_SED
5359
 
 
5360
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5361
 
Xsed="$SED -e 1s/^X//"
5362
 
 
5363
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5364
 
# if CDPATH is set.
5365
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5366
 
 
5367
 
# The names of the tagged configurations supported by this script.
5368
 
available_tags=
5369
 
 
5370
 
# ### BEGIN LIBTOOL CONFIG],
5371
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5372
 
 
5373
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5374
 
 
5375
 
# Shell to use when invoking shell scripts.
5376
 
SHELL=$lt_SHELL
5377
 
 
5378
 
# Whether or not to build shared libraries.
5379
 
build_libtool_libs=$enable_shared
5380
 
 
5381
 
# Whether or not to build static libraries.
5382
 
build_old_libs=$enable_static
5383
 
 
5384
 
# Whether or not to add -lc for building shared libraries.
5385
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5386
 
 
5387
 
# Whether or not to disallow shared libs when runtime libs are static
5388
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5389
 
 
5390
 
# Whether or not to optimize for fast installation.
5391
 
fast_install=$enable_fast_install
5392
 
 
5393
 
# The host system.
5394
 
host_alias=$host_alias
5395
 
host=$host
5396
 
host_os=$host_os
5397
 
 
5398
 
# The build system.
5399
 
build_alias=$build_alias
5400
 
build=$build
5401
 
build_os=$build_os
5402
 
 
5403
 
# An echo program that does not interpret backslashes.
5404
 
echo=$lt_echo
5405
 
 
5406
 
# The archiver.
5407
 
AR=$lt_AR
5408
 
AR_FLAGS=$lt_AR_FLAGS
5409
 
 
5410
 
# A C compiler.
5411
 
LTCC=$lt_LTCC
5412
 
 
5413
 
# LTCC compiler flags.
5414
 
LTCFLAGS=$lt_LTCFLAGS
5415
 
 
5416
 
# A language-specific compiler.
5417
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5418
 
 
5419
 
# Is the compiler the GNU C compiler?
5420
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5421
 
 
5422
 
# An ERE matcher.
5423
 
EGREP=$lt_EGREP
5424
 
 
5425
 
# The linker used to build libraries.
5426
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5427
 
 
5428
 
# Whether we need hard or soft links.
5429
 
LN_S=$lt_LN_S
5430
 
 
5431
 
# A BSD-compatible nm program.
5432
 
NM=$lt_NM
5433
 
 
5434
 
# A symbol stripping program
5435
 
STRIP=$lt_STRIP
5436
 
 
5437
 
# Used to examine libraries when file_magic_cmd begins "file"
5438
 
MAGIC_CMD=$MAGIC_CMD
5439
 
 
5440
 
# Used on cygwin: DLL creation program.
5441
 
DLLTOOL="$DLLTOOL"
5442
 
 
5443
 
# Used on cygwin: object dumper.
5444
 
OBJDUMP="$OBJDUMP"
5445
 
 
5446
 
# Used on cygwin: assembler.
5447
 
AS="$AS"
5448
 
 
5449
 
# The name of the directory that contains temporary libtool files.
5450
 
objdir=$objdir
5451
 
 
5452
 
# How to create reloadable object files.
5453
 
reload_flag=$lt_reload_flag
5454
 
reload_cmds=$lt_reload_cmds
5455
 
 
5456
 
# How to pass a linker flag through the compiler.
5457
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5458
 
 
5459
 
# Object file suffix (normally "o").
5460
 
objext="$ac_objext"
5461
 
 
5462
 
# Old archive suffix (normally "a").
5463
 
libext="$libext"
5464
 
 
5465
 
# Shared library suffix (normally ".so").
5466
 
shrext_cmds='$shrext_cmds'
5467
 
 
5468
 
# Executable file suffix (normally "").
5469
 
exeext="$exeext"
5470
 
 
5471
 
# Additional compiler flags for building library objects.
5472
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5473
 
pic_mode=$pic_mode
5474
 
 
5475
 
# What is the maximum length of a command?
5476
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5477
 
 
5478
 
# Does compiler simultaneously support -c and -o options?
5479
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5480
 
 
5481
 
# Must we lock files when doing compilation?
5482
 
need_locks=$lt_need_locks
5483
 
 
5484
 
# Do we need the lib prefix for modules?
5485
 
need_lib_prefix=$need_lib_prefix
5486
 
 
5487
 
# Do we need a version for libraries?
5488
 
need_version=$need_version
5489
 
 
5490
 
# Whether dlopen is supported.
5491
 
dlopen_support=$enable_dlopen
5492
 
 
5493
 
# Whether dlopen of programs is supported.
5494
 
dlopen_self=$enable_dlopen_self
5495
 
 
5496
 
# Whether dlopen of statically linked programs is supported.
5497
 
dlopen_self_static=$enable_dlopen_self_static
5498
 
 
5499
 
# Compiler flag to prevent dynamic linking.
5500
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5501
 
 
5502
 
# Compiler flag to turn off builtin functions.
5503
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5504
 
 
5505
 
# Compiler flag to allow reflexive dlopens.
5506
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5507
 
 
5508
 
# Compiler flag to generate shared objects directly from archives.
5509
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5510
 
 
5511
 
# Compiler flag to generate thread-safe objects.
5512
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5513
 
 
5514
 
# Library versioning type.
5515
 
version_type=$version_type
5516
 
 
5517
 
# Format of library name prefix.
5518
 
libname_spec=$lt_libname_spec
5519
 
 
5520
 
# List of archive names.  First name is the real one, the rest are links.
5521
 
# The last name is the one that the linker finds with -lNAME.
5522
 
library_names_spec=$lt_library_names_spec
5523
 
 
5524
 
# The coded name of the library, if different from the real name.
5525
 
soname_spec=$lt_soname_spec
5526
 
 
5527
 
# Commands used to build and install an old-style archive.
5528
 
RANLIB=$lt_RANLIB
5529
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5530
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5531
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5532
 
 
5533
 
# Create an old-style archive from a shared archive.
5534
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5535
 
 
5536
 
# Create a temporary old-style archive to link instead of a shared archive.
5537
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5538
 
 
5539
 
# Commands used to build and install a shared archive.
5540
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5541
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5542
 
postinstall_cmds=$lt_postinstall_cmds
5543
 
postuninstall_cmds=$lt_postuninstall_cmds
5544
 
 
5545
 
# Commands used to build a loadable module (assumed same as above if empty)
5546
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5547
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5548
 
 
5549
 
# Commands to strip libraries.
5550
 
old_striplib=$lt_old_striplib
5551
 
striplib=$lt_striplib
5552
 
 
5553
 
# Dependencies to place before the objects being linked to create a
5554
 
# shared library.
5555
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5556
 
 
5557
 
# Dependencies to place after the objects being linked to create a
5558
 
# shared library.
5559
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5560
 
 
5561
 
# Dependencies to place before the objects being linked to create a
5562
 
# shared library.
5563
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5564
 
 
5565
 
# Dependencies to place after the objects being linked to create a
5566
 
# shared library.
5567
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5568
 
 
5569
 
# The directories searched by this compiler when creating a shared
5570
 
# library
5571
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5572
 
 
5573
 
# The library search path used internally by the compiler when linking
5574
 
# a shared library.
5575
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5576
 
 
5577
 
# Method to check whether dependent libraries are shared objects.
5578
 
deplibs_check_method=$lt_deplibs_check_method
5579
 
 
5580
 
# Command to use when deplibs_check_method == file_magic.
5581
 
file_magic_cmd=$lt_file_magic_cmd
5582
 
 
5583
 
# Flag that allows shared libraries with undefined symbols to be built.
5584
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5585
 
 
5586
 
# Flag that forces no undefined symbols.
5587
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5588
 
 
5589
 
# Commands used to finish a libtool library installation in a directory.
5590
 
finish_cmds=$lt_finish_cmds
5591
 
 
5592
 
# Same as above, but a single script fragment to be evaled but not shown.
5593
 
finish_eval=$lt_finish_eval
5594
 
 
5595
 
# Take the output of nm and produce a listing of raw symbols and C names.
5596
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5597
 
 
5598
 
# Transform the output of nm in a proper C declaration
5599
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5600
 
 
5601
 
# Transform the output of nm in a C name address pair
5602
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5603
 
 
5604
 
# This is the shared library runtime path variable.
5605
 
runpath_var=$runpath_var
5606
 
 
5607
 
# This is the shared library path variable.
5608
 
shlibpath_var=$shlibpath_var
5609
 
 
5610
 
# Is shlibpath searched before the hard-coded library search path?
5611
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5612
 
 
5613
 
# How to hardcode a shared library path into an executable.
5614
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5615
 
 
5616
 
# Whether we should hardcode library paths into libraries.
5617
 
hardcode_into_libs=$hardcode_into_libs
5618
 
 
5619
 
# Flag to hardcode \$libdir into a binary during linking.
5620
 
# This must work even if \$libdir does not exist.
5621
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5622
 
 
5623
 
# If ld is used when linking, flag to hardcode \$libdir into
5624
 
# a binary during linking. This must work even if \$libdir does
5625
 
# not exist.
5626
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5627
 
 
5628
 
# Whether we need a single -rpath flag with a separated argument.
5629
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5630
 
 
5631
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5632
 
# resulting binary.
5633
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5634
 
 
5635
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5636
 
# resulting binary.
5637
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5638
 
 
5639
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5640
 
# the resulting binary.
5641
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5642
 
 
5643
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5644
 
# and all subsequent libraries and executables linked against it.
5645
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5646
 
 
5647
 
# Variables whose values should be saved in libtool wrapper scripts and
5648
 
# restored at relink time.
5649
 
variables_saved_for_relink="$variables_saved_for_relink"
5650
 
 
5651
 
# Whether libtool must link a program against all its dependency libraries.
5652
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5653
 
 
5654
 
# Compile-time system search path for libraries
5655
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5656
 
 
5657
 
# Run-time system search path for libraries
5658
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5659
 
 
5660
 
# Fix the shell variable \$srcfile for the compiler.
5661
 
fix_srcfile_path=$lt_fix_srcfile_path
5662
 
 
5663
 
# Set to yes if exported symbols are required.
5664
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5665
 
 
5666
 
# The commands to list exported symbols.
5667
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5668
 
 
5669
 
# The commands to extract the exported symbol list from a shared archive.
5670
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5671
 
 
5672
 
# Symbols that should not be listed in the preloaded symbols.
5673
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5674
 
 
5675
 
# Symbols that must always be exported.
5676
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5677
 
 
5678
 
ifelse([$1],[],
5679
 
[# ### END LIBTOOL CONFIG],
5680
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5681
 
 
5682
 
__EOF__
5683
 
 
5684
 
ifelse([$1],[], [
5685
 
  case $host_os in
5686
 
  aix3*)
5687
 
    cat <<\EOF >> "$cfgfile"
5688
 
 
5689
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5690
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5691
 
# vanish in a puff of smoke.
5692
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5693
 
  COLLECT_NAMES=
5694
 
  export COLLECT_NAMES
5695
 
fi
5696
 
EOF
5697
 
    ;;
5698
 
  esac
5699
 
 
5700
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5701
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5702
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5703
 
  # is reportedly fixed, but why not run on old versions too?
5704
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5705
 
 
5706
 
  mv -f "$cfgfile" "$ofile" || \
5707
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5708
 
  chmod +x "$ofile"
5709
 
])
5710
 
else
5711
 
  # If there is no Makefile yet, we rely on a make rule to execute
5712
 
  # `config.status --recheck' to rerun these tests and create the
5713
 
  # libtool script then.
5714
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5715
 
  if test -f "$ltmain_in"; then
5716
 
    test -f Makefile && make "$ltmain"
5717
 
  fi
5718
 
fi
5719
 
])# AC_LIBTOOL_CONFIG
5720
 
 
5721
 
 
5722
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5723
 
# -------------------------------------------
5724
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5725
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5726
 
 
5727
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4244
AC_SUBST([LIBM])
 
4245
])# LT_LIB_M
 
4246
 
 
4247
# Old name:
 
4248
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4249
dnl aclocal-1.4 backwards compatibility:
 
4250
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4251
 
 
4252
 
 
4253
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4254
# -------------------------------
 
4255
m4_defun([_LT_COMPILER_NO_RTTI],
 
4256
[m4_require([_LT_TAG_COMPILER])dnl
 
4257
 
 
4258
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5728
4259
 
5729
4260
if test "$GCC" = yes; then
5730
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4261
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5731
4262
 
5732
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4263
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5733
4264
    lt_cv_prog_compiler_rtti_exceptions,
5734
4265
    [-fno-rtti -fno-exceptions], [],
5735
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4266
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5736
4267
fi
5737
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5738
 
 
5739
 
 
5740
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5741
 
# ---------------------------------
5742
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5743
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5744
 
AC_REQUIRE([LT_AC_PROG_SED])
5745
 
AC_REQUIRE([AC_PROG_NM])
5746
 
AC_REQUIRE([AC_OBJEXT])
 
4268
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4269
        [Compiler flag to turn off builtin functions])
 
4270
])# _LT_COMPILER_NO_RTTI
 
4271
 
 
4272
 
 
4273
# _LT_CMD_GLOBAL_SYMBOLS
 
4274
# ----------------------
 
4275
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4276
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4277
AC_REQUIRE([AC_PROG_CC])dnl
 
4278
AC_REQUIRE([LT_PATH_NM])dnl
 
4279
AC_REQUIRE([LT_PATH_LD])dnl
 
4280
m4_require([_LT_DECL_SED])dnl
 
4281
m4_require([_LT_DECL_EGREP])dnl
 
4282
m4_require([_LT_TAG_COMPILER])dnl
 
4283
 
5747
4284
# Check for command to grab the raw symbol name followed by C symbol from nm.
5748
4285
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5749
4286
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5757
4294
# Regexp to match symbols that can be accessed directly from C.
5758
4295
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5759
4296
 
5760
 
# Transform an extracted symbol line into a proper C declaration
5761
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5762
 
 
5763
 
# Transform an extracted symbol line into symbol name and symbol address
5764
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5765
 
 
5766
4297
# Define system-specific variables.
5767
4298
case $host_os in
5768
4299
aix*)
5769
4300
  symcode='[[BCDT]]'
5770
4301
  ;;
5771
 
cygwin* | mingw* | pw32*)
 
4302
cygwin* | mingw* | pw32* | cegcc*)
5772
4303
  symcode='[[ABCDGISTW]]'
5773
4304
  ;;
5774
 
hpux*) # Its linker distinguishes data from code symbols
 
4305
hpux*)
5775
4306
  if test "$host_cpu" = ia64; then
5776
4307
    symcode='[[ABCDEGRST]]'
5777
4308
  fi
5778
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5779
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5780
 
  ;;
5781
 
linux* | k*bsd*-gnu)
5782
 
  if test "$host_cpu" = ia64; then
5783
 
    symcode='[[ABCDGIRSTW]]'
5784
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5785
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5786
 
  fi
5787
4309
  ;;
5788
4310
irix* | nonstopux*)
5789
4311
  symcode='[[BCDEGRST]]'
5808
4330
  ;;
5809
4331
esac
5810
4332
 
 
4333
# If we're using GNU nm, then use its standard symbol codes.
 
4334
case `$NM -V 2>&1` in
 
4335
*GNU* | *'with BFD'*)
 
4336
  symcode='[[ABCDGIRSTW]]' ;;
 
4337
esac
 
4338
 
 
4339
# Transform an extracted symbol line into a proper C declaration.
 
4340
# Some systems (esp. on ia64) link data and code symbols differently,
 
4341
# so use this general approach.
 
4342
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4343
 
 
4344
# Transform an extracted symbol line into symbol name and symbol address
 
4345
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4346
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'"
 
4347
 
5811
4348
# Handle CRLF in mingw tool chain
5812
4349
opt_cr=
5813
4350
case $build_os in
5814
4351
mingw*)
5815
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4352
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5816
4353
  ;;
5817
4354
esac
5818
4355
 
5819
 
# If we're using GNU nm, then use its standard symbol codes.
5820
 
case `$NM -V 2>&1` in
5821
 
*GNU* | *'with BFD'*)
5822
 
  symcode='[[ABCDGIRSTW]]' ;;
5823
 
esac
5824
 
 
5825
 
# Try without a prefix undercore, then with it.
 
4356
# Try without a prefix underscore, then with it.
5826
4357
for ac_symprfx in "" "_"; do
5827
4358
 
5828
4359
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5829
4360
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5830
4361
 
5831
4362
  # Write the raw and C identifiers.
5832
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4363
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4364
    # Fake it for dumpbin and say T for any non-static function
 
4365
    # and D for any global variable.
 
4366
    # Also find C++ and __fastcall symbols from MSVC++,
 
4367
    # which start with @ or ?.
 
4368
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4369
"     {last_section=section; section=\$ 3};"\
 
4370
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4371
"     \$ 0!~/External *\|/{next};"\
 
4372
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4373
"     {if(hide[section]) next};"\
 
4374
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4375
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4376
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4377
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4378
"     ' prfx=^$ac_symprfx]"
 
4379
  else
 
4380
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4381
  fi
5833
4382
 
5834
4383
  # Check to see that the pipe works correctly.
5835
4384
  pipe_works=no
5836
4385
 
5837
4386
  rm -f conftest*
5838
 
  cat > conftest.$ac_ext <<EOF
 
4387
  cat > conftest.$ac_ext <<_LT_EOF
5839
4388
#ifdef __cplusplus
5840
4389
extern "C" {
5841
4390
#endif
5842
4391
char nm_test_var;
5843
 
void nm_test_func(){}
 
4392
void nm_test_func(void);
 
4393
void nm_test_func(void){}
5844
4394
#ifdef __cplusplus
5845
4395
}
5846
4396
#endif
5847
4397
int main(){nm_test_var='a';nm_test_func();return(0);}
5848
 
EOF
 
4398
_LT_EOF
5849
4399
 
5850
4400
  if AC_TRY_EVAL(ac_compile); then
5851
4401
    # Now try to grab the symbols.
5859
4409
      fi
5860
4410
 
5861
4411
      # Make sure that we snagged all the symbols we need.
5862
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5863
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5864
 
          cat <<EOF > conftest.$ac_ext
 
4412
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4413
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4414
          cat <<_LT_EOF > conftest.$ac_ext
5865
4415
#ifdef __cplusplus
5866
4416
extern "C" {
5867
4417
#endif
5868
4418
 
5869
 
EOF
 
4419
_LT_EOF
5870
4420
          # Now generate the symbol file.
5871
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5872
 
 
5873
 
          cat <<EOF >> conftest.$ac_ext
5874
 
#if defined (__STDC__) && __STDC__
5875
 
# define lt_ptr_t void *
5876
 
#else
5877
 
# define lt_ptr_t char *
5878
 
# define const
5879
 
#endif
5880
 
 
5881
 
/* The mapping between symbol names and symbols. */
 
4421
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4422
 
 
4423
          cat <<_LT_EOF >> conftest.$ac_ext
 
4424
 
 
4425
/* The mapping between symbol names and symbols.  */
5882
4426
const struct {
5883
4427
  const char *name;
5884
 
  lt_ptr_t address;
 
4428
  void       *address;
5885
4429
}
5886
 
lt_preloaded_symbols[[]] =
 
4430
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5887
4431
{
5888
 
EOF
5889
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5890
 
          cat <<\EOF >> conftest.$ac_ext
5891
 
  {0, (lt_ptr_t) 0}
 
4432
  { "@PROGRAM@", (void *) 0 },
 
4433
_LT_EOF
 
4434
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4435
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4436
  {0, (void *) 0}
5892
4437
};
5893
4438
 
 
4439
/* This works around a problem in FreeBSD linker */
 
4440
#ifdef FREEBSD_WORKAROUND
 
4441
static const void *lt_preloaded_setup() {
 
4442
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4443
}
 
4444
#endif
 
4445
 
5894
4446
#ifdef __cplusplus
5895
4447
}
5896
4448
#endif
5897
 
EOF
 
4449
_LT_EOF
5898
4450
          # Now try linking the two files.
5899
4451
          mv conftest.$ac_objext conftstm.$ac_objext
5900
4452
          lt_save_LIBS="$LIBS"
5901
4453
          lt_save_CFLAGS="$CFLAGS"
5902
4454
          LIBS="conftstm.$ac_objext"
5903
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4455
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5904
4456
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5905
4457
            pipe_works=yes
5906
4458
          fi
5937
4489
else
5938
4490
  AC_MSG_RESULT(ok)
5939
4491
fi
5940
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5941
 
 
5942
 
 
5943
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5944
 
# ---------------------------------------
5945
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5946
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5947
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5948
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4492
 
 
4493
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4494
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4495
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4496
    [Transform the output of nm in a proper C declaration])
 
4497
_LT_DECL([global_symbol_to_c_name_address],
 
4498
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4499
    [Transform the output of nm in a C name address pair])
 
4500
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4501
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4502
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4503
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4504
 
 
4505
 
 
4506
# _LT_COMPILER_PIC([TAGNAME])
 
4507
# ---------------------------
 
4508
m4_defun([_LT_COMPILER_PIC],
 
4509
[m4_require([_LT_TAG_COMPILER])dnl
 
4510
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4511
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4512
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5949
4513
 
5950
4514
AC_MSG_CHECKING([for $compiler option to produce PIC])
5951
 
 ifelse([$1],[CXX],[
 
4515
m4_if([$1], [CXX], [
5952
4516
  # C++ specific cases for pic, static, wl, etc.
5953
4517
  if test "$GXX" = yes; then
5954
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5955
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4518
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4519
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5956
4520
 
5957
4521
    case $host_os in
5958
4522
    aix*)
5959
4523
      # All AIX code is PIC.
5960
4524
      if test "$host_cpu" = ia64; then
5961
4525
        # AIX 5 now supports IA64 processor
5962
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4526
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5963
4527
      fi
5964
4528
      ;;
 
4529
 
5965
4530
    amigaos*)
5966
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5967
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5968
 
      # like `-m68040'.
5969
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4531
      case $host_cpu in
 
4532
      powerpc)
 
4533
            # see comment about AmigaOS4 .so support
 
4534
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4535
        ;;
 
4536
      m68k)
 
4537
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4538
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4539
            # like `-m68040'.
 
4540
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4541
        ;;
 
4542
      esac
5970
4543
      ;;
 
4544
 
5971
4545
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5972
4546
      # PIC is the default for these OSes.
5973
4547
      ;;
5974
 
    mingw* | cygwin* | os2* | pw32*)
 
4548
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5975
4549
      # This hack is so that the source file can tell whether it is being
5976
4550
      # built for inclusion in a dll (and should export symbols for example).
5977
4551
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5978
4552
      # (--disable-auto-import) libraries
5979
4553
      m4_if([$1], [GCJ], [],
5980
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4554
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5981
4555
      ;;
5982
4556
    darwin* | rhapsody*)
5983
4557
      # PIC is the default on this platform
5984
4558
      # Common symbols not allowed in MH_DYLIB files
5985
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4559
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5986
4560
      ;;
5987
4561
    *djgpp*)
5988
4562
      # DJGPP does not support shared libraries at all
5989
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4563
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5990
4564
      ;;
5991
4565
    interix[[3-9]]*)
5992
4566
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5994
4568
      ;;
5995
4569
    sysv4*MP*)
5996
4570
      if test -d /usr/nec; then
5997
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4571
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5998
4572
      fi
5999
4573
      ;;
6000
4574
    hpux*)
6001
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6002
 
      # not for PA HP-UX.
 
4575
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4576
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4577
      # sets the default TLS model and affects inlining.
6003
4578
      case $host_cpu in
6004
 
      hppa*64*|ia64*)
 
4579
      hppa*64*)
6005
4580
        ;;
6006
4581
      *)
6007
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4582
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6008
4583
        ;;
6009
4584
      esac
6010
4585
      ;;
 
4586
    *qnx* | *nto*)
 
4587
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4588
      # it will coredump.
 
4589
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4590
      ;;
6011
4591
    *)
6012
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4592
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6013
4593
      ;;
6014
4594
    esac
6015
4595
  else
6018
4598
        # All AIX code is PIC.
6019
4599
        if test "$host_cpu" = ia64; then
6020
4600
          # AIX 5 now supports IA64 processor
6021
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4601
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6022
4602
        else
6023
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4603
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6024
4604
        fi
6025
4605
        ;;
6026
4606
      chorus*)
6027
4607
        case $cc_basename in
6028
4608
        cxch68*)
6029
4609
          # Green Hills C++ Compiler
6030
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
4610
          # _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"
6031
4611
          ;;
6032
4612
        esac
6033
4613
        ;;
6034
 
       darwin*)
6035
 
         # PIC is the default on this platform
6036
 
         # Common symbols not allowed in MH_DYLIB files
6037
 
         case $cc_basename in
6038
 
           xlc*)
6039
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6040
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6041
 
           ;;
6042
 
         esac
6043
 
       ;;
6044
4614
      dgux*)
6045
4615
        case $cc_basename in
6046
4616
          ec++*)
6047
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4617
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6048
4618
            ;;
6049
4619
          ghcx*)
6050
4620
            # Green Hills C++ Compiler
6051
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4621
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6052
4622
            ;;
6053
4623
          *)
6054
4624
            ;;
6060
4630
      hpux9* | hpux10* | hpux11*)
6061
4631
        case $cc_basename in
6062
4632
          CC*)
6063
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6064
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4633
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4634
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6065
4635
            if test "$host_cpu" != ia64; then
6066
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4636
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6067
4637
            fi
6068
4638
            ;;
6069
4639
          aCC*)
6070
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6071
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4640
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4641
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6072
4642
            case $host_cpu in
6073
4643
            hppa*64*|ia64*)
6074
4644
              # +Z the default
6075
4645
              ;;
6076
4646
            *)
6077
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4647
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6078
4648
              ;;
6079
4649
            esac
6080
4650
            ;;
6089
4659
      irix5* | irix6* | nonstopux*)
6090
4660
        case $cc_basename in
6091
4661
          CC*)
6092
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6093
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4662
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4663
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6094
4664
            # CC pic flag -KPIC is the default.
6095
4665
            ;;
6096
4666
          *)
6101
4671
        case $cc_basename in
6102
4672
          KCC*)
6103
4673
            # KAI C++ Compiler
6104
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6105
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6106
 
            ;;
6107
 
          icpc* | ecpc*)
6108
 
            # Intel C++
6109
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6111
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4674
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4675
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4676
            ;;
 
4677
          ecpc* )
 
4678
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4679
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4680
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4681
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4682
            ;;
 
4683
          icpc* )
 
4684
            # Intel C++, used to be incompatible with GCC.
 
4685
            # ICC 10 doesn't accept -KPIC any more.
 
4686
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4687
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4688
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6112
4689
            ;;
6113
4690
          pgCC* | pgcpp*)
6114
 
            # Portland Group C++ compiler.
6115
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6116
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6117
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4691
            # Portland Group C++ compiler
 
4692
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4693
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4694
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6118
4695
            ;;
6119
4696
          cxx*)
6120
4697
            # Compaq C++
6121
4698
            # Make sure the PIC flag is empty.  It appears that all Alpha
6122
4699
            # Linux and Compaq Tru64 Unix objects are PIC.
6123
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6124
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4700
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4701
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4702
            ;;
 
4703
          xlc* | xlC*)
 
4704
            # IBM XL 8.0 on PPC
 
4705
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4706
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4707
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6125
4708
            ;;
6126
4709
          *)
6127
4710
            case `$CC -V 2>&1 | sed 5q` in
6128
4711
            *Sun\ C*)
6129
4712
              # Sun C++ 5.9
6130
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6131
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6132
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4713
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4714
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4715
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6133
4716
              ;;
6134
4717
            esac
6135
4718
            ;;
6142
4725
      mvs*)
6143
4726
        case $cc_basename in
6144
4727
          cxx*)
6145
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4728
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6146
4729
            ;;
6147
4730
          *)
6148
4731
            ;;
6150
4733
        ;;
6151
4734
      netbsd*)
6152
4735
        ;;
 
4736
      *qnx* | *nto*)
 
4737
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4738
        # it will coredump.
 
4739
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4740
        ;;
6153
4741
      osf3* | osf4* | osf5*)
6154
4742
        case $cc_basename in
6155
4743
          KCC*)
6156
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4744
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6157
4745
            ;;
6158
4746
          RCC*)
6159
4747
            # Rational C++ 2.4.1
6160
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4748
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6161
4749
            ;;
6162
4750
          cxx*)
6163
4751
            # Digital/Compaq C++
6164
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4752
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6165
4753
            # Make sure the PIC flag is empty.  It appears that all Alpha
6166
4754
            # Linux and Compaq Tru64 Unix objects are PIC.
6167
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6168
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4755
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4756
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6169
4757
            ;;
6170
4758
          *)
6171
4759
            ;;
6177
4765
        case $cc_basename in
6178
4766
          CC*)
6179
4767
            # Sun C++ 4.2, 5.x and Centerline C++
6180
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6181
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6182
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4768
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4769
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4770
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6183
4771
            ;;
6184
4772
          gcx*)
6185
4773
            # Green Hills C++ Compiler
6186
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4774
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6187
4775
            ;;
6188
4776
          *)
6189
4777
            ;;
6193
4781
        case $cc_basename in
6194
4782
          CC*)
6195
4783
            # Sun C++ 4.x
6196
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6197
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4784
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4785
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6198
4786
            ;;
6199
4787
          lcc*)
6200
4788
            # Lucid
6201
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4789
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6202
4790
            ;;
6203
4791
          *)
6204
4792
            ;;
6205
4793
        esac
6206
4794
        ;;
 
4795
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4796
        case $cc_basename in
 
4797
          CC*)
 
4798
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4799
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4800
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4801
            ;;
 
4802
        esac
 
4803
        ;;
6207
4804
      tandem*)
6208
4805
        case $cc_basename in
6209
4806
          NCC*)
6210
4807
            # NonStop-UX NCC 3.20
6211
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4808
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6212
4809
            ;;
6213
4810
          *)
6214
4811
            ;;
6215
4812
        esac
6216
4813
        ;;
6217
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6218
 
        case $cc_basename in
6219
 
          CC*)
6220
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6221
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6222
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6223
 
            ;;
6224
 
        esac
6225
 
        ;;
6226
4814
      vxworks*)
6227
4815
        ;;
6228
4816
      *)
6229
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4817
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6230
4818
        ;;
6231
4819
    esac
6232
4820
  fi
6233
4821
],
6234
4822
[
6235
4823
  if test "$GCC" = yes; then
6236
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6237
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4824
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4825
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6238
4826
 
6239
4827
    case $host_os in
6240
4828
      aix*)
6241
4829
      # All AIX code is PIC.
6242
4830
      if test "$host_cpu" = ia64; then
6243
4831
        # AIX 5 now supports IA64 processor
6244
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4832
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6245
4833
      fi
6246
4834
      ;;
6247
4835
 
6248
4836
    amigaos*)
6249
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6250
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6251
 
      # like `-m68040'.
6252
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4837
      case $host_cpu in
 
4838
      powerpc)
 
4839
            # see comment about AmigaOS4 .so support
 
4840
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4841
        ;;
 
4842
      m68k)
 
4843
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4844
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4845
            # like `-m68040'.
 
4846
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4847
        ;;
 
4848
      esac
6253
4849
      ;;
6254
4850
 
6255
4851
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6256
4852
      # PIC is the default for these OSes.
6257
4853
      ;;
6258
4854
 
6259
 
    mingw* | cygwin* | pw32* | os2*)
 
4855
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6260
4856
      # This hack is so that the source file can tell whether it is being
6261
4857
      # built for inclusion in a dll (and should export symbols for example).
6262
4858
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6263
4859
      # (--disable-auto-import) libraries
6264
4860
      m4_if([$1], [GCJ], [],
6265
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4861
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6266
4862
      ;;
6267
4863
 
6268
4864
    darwin* | rhapsody*)
6269
4865
      # PIC is the default on this platform
6270
4866
      # Common symbols not allowed in MH_DYLIB files
6271
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4867
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4868
      ;;
 
4869
 
 
4870
    hpux*)
 
4871
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4872
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4873
      # sets the default TLS model and affects inlining.
 
4874
      case $host_cpu in
 
4875
      hppa*64*)
 
4876
        # +Z the default
 
4877
        ;;
 
4878
      *)
 
4879
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4880
        ;;
 
4881
      esac
6272
4882
      ;;
6273
4883
 
6274
4884
    interix[[3-9]]*)
6279
4889
    msdosdjgpp*)
6280
4890
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6281
4891
      # on systems that don't support them.
6282
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4892
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6283
4893
      enable_shared=no
6284
4894
      ;;
6285
4895
 
 
4896
    *nto* | *qnx*)
 
4897
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4898
      # it will coredump.
 
4899
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4900
      ;;
 
4901
 
6286
4902
    sysv4*MP*)
6287
4903
      if test -d /usr/nec; then
6288
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4904
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6289
4905
      fi
6290
4906
      ;;
6291
4907
 
6292
 
    hpux*)
6293
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6294
 
      # not for PA HP-UX.
6295
 
      case $host_cpu in
6296
 
      hppa*64*|ia64*)
6297
 
        # +Z the default
6298
 
        ;;
6299
 
      *)
6300
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6301
 
        ;;
6302
 
      esac
6303
 
      ;;
6304
 
 
6305
4908
    *)
6306
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4909
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6307
4910
      ;;
6308
4911
    esac
6309
4912
  else
6310
4913
    # PORTME Check for flag to pass linker flags through the system compiler.
6311
4914
    case $host_os in
6312
4915
    aix*)
6313
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4916
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6314
4917
      if test "$host_cpu" = ia64; then
6315
4918
        # AIX 5 now supports IA64 processor
6316
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4919
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6317
4920
      else
6318
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4921
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6319
4922
      fi
6320
4923
      ;;
6321
 
      darwin*)
6322
 
        # PIC is the default on this platform
6323
 
        # Common symbols not allowed in MH_DYLIB files
6324
 
       case $cc_basename in
6325
 
         xlc*)
6326
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6327
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6328
 
         ;;
6329
 
       esac
6330
 
       ;;
6331
4924
 
6332
 
    mingw* | cygwin* | pw32* | os2*)
 
4925
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6333
4926
      # This hack is so that the source file can tell whether it is being
6334
4927
      # built for inclusion in a dll (and should export symbols for example).
6335
4928
      m4_if([$1], [GCJ], [],
6336
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4929
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6337
4930
      ;;
6338
4931
 
6339
4932
    hpux9* | hpux10* | hpux11*)
6340
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4933
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6341
4934
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6342
4935
      # not for PA HP-UX.
6343
4936
      case $host_cpu in
6345
4938
        # +Z the default
6346
4939
        ;;
6347
4940
      *)
6348
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4941
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6349
4942
        ;;
6350
4943
      esac
6351
4944
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6352
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4945
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6353
4946
      ;;
6354
4947
 
6355
4948
    irix5* | irix6* | nonstopux*)
6356
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4949
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6357
4950
      # PIC (with -KPIC) is the default.
6358
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6359
 
      ;;
6360
 
 
6361
 
    newsos6)
6362
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6363
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4951
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6364
4952
      ;;
6365
4953
 
6366
4954
    linux* | k*bsd*-gnu)
6367
4955
      case $cc_basename in
6368
 
      icc* | ecc*)
6369
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6370
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6371
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6372
 
        ;;
 
4956
      # old Intel for x86_64 which still supported -KPIC.
 
4957
      ecc*)
 
4958
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4959
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4960
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4961
        ;;
 
4962
      # icc used to be incompatible with GCC.
 
4963
      # ICC 10 doesn't accept -KPIC any more.
 
4964
      icc* | ifort*)
 
4965
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4966
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4967
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4968
        ;;
 
4969
      # Lahey Fortran 8.1.
 
4970
      lf95*)
 
4971
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4972
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4973
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4974
        ;;
6373
4975
      pgcc* | pgf77* | pgf90* | pgf95*)
6374
4976
        # Portland Group compilers (*not* the Pentium gcc compiler,
6375
4977
        # which looks to be a dead project)
6376
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6377
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6378
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4978
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4979
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4980
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6379
4981
        ;;
6380
4982
      ccc*)
6381
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4983
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6382
4984
        # All Alpha code is PIC.
6383
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4985
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6384
4986
        ;;
 
4987
      xl*)
 
4988
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4989
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4990
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4991
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4992
        ;;
6385
4993
      *)
6386
 
        case `$CC -V 2>&1 | sed 5q` in
 
4994
        case `$CC -V 2>&1 | sed 5q` in
6387
4995
        *Sun\ C*)
6388
4996
          # Sun C 5.9
6389
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6390
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6391
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4997
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4998
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4999
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6392
5000
          ;;
6393
5001
        *Sun\ F*)
6394
5002
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6395
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6396
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6397
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5003
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5004
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5005
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6398
5006
          ;;
6399
5007
        esac
6400
5008
        ;;
6401
5009
      esac
6402
5010
      ;;
6403
5011
 
 
5012
    newsos6)
 
5013
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5014
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5015
      ;;
 
5016
 
 
5017
    *nto* | *qnx*)
 
5018
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5019
      # it will coredump.
 
5020
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5021
      ;;
 
5022
 
6404
5023
    osf3* | osf4* | osf5*)
6405
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5024
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6406
5025
      # All OSF/1 code is PIC.
6407
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5026
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6408
5027
      ;;
6409
5028
 
6410
5029
    rdos*)
6411
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5030
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6412
5031
      ;;
6413
5032
 
6414
5033
    solaris*)
6415
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6416
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5034
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5035
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6417
5036
      case $cc_basename in
6418
5037
      f77* | f90* | f95*)
6419
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5038
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6420
5039
      *)
6421
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5040
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6422
5041
      esac
6423
5042
      ;;
6424
5043
 
6425
5044
    sunos4*)
6426
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6427
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6428
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5045
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5046
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5047
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6429
5048
      ;;
6430
5049
 
6431
5050
    sysv4 | sysv4.2uw2* | sysv4.3*)
6432
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6433
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6434
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5051
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5052
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5053
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6435
5054
      ;;
6436
5055
 
6437
5056
    sysv4*MP*)
6438
5057
      if test -d /usr/nec ;then
6439
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6440
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5058
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5059
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6441
5060
      fi
6442
5061
      ;;
6443
5062
 
6444
5063
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6445
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6446
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6447
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5064
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5065
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5066
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6448
5067
      ;;
6449
5068
 
6450
5069
    unicos*)
6451
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6452
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5070
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5071
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6453
5072
      ;;
6454
5073
 
6455
5074
    uts4*)
6456
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6457
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5075
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5076
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6458
5077
      ;;
6459
5078
 
6460
5079
    *)
6461
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5080
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6462
5081
      ;;
6463
5082
    esac
6464
5083
  fi
6465
5084
])
6466
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5085
case $host_os in
 
5086
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5087
  *djgpp*)
 
5088
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5089
    ;;
 
5090
  *)
 
5091
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5092
    ;;
 
5093
esac
 
5094
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5095
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5096
        [How to pass a linker flag through the compiler])
6467
5097
 
6468
5098
#
6469
5099
# Check to make sure the PIC flag actually works.
6470
5100
#
6471
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6472
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6473
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6474
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6475
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5101
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5102
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5103
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5104
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5105
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6476
5106
     "" | " "*) ;;
6477
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5107
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6478
5108
     esac],
6479
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6480
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5109
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5110
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6481
5111
fi
6482
 
case $host_os in
6483
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6484
 
  *djgpp*)
6485
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6486
 
    ;;
6487
 
  *)
6488
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6489
 
    ;;
6490
 
esac
 
5112
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5113
        [Additional compiler flags for building library objects])
6491
5114
 
6492
5115
#
6493
5116
# Check to make sure the static flag actually works.
6494
5117
#
6495
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6496
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6497
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5118
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5119
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5120
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6498
5121
  $lt_tmp_static_flag,
6499
5122
  [],
6500
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6501
 
])
6502
 
 
6503
 
 
6504
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6505
 
# ------------------------------------
 
5123
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5124
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5125
        [Compiler flag to prevent dynamic linking])
 
5126
])# _LT_COMPILER_PIC
 
5127
 
 
5128
 
 
5129
# _LT_LINKER_SHLIBS([TAGNAME])
 
5130
# ----------------------------
6506
5131
# See if the linker supports building shared libraries.
6507
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6508
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5132
m4_defun([_LT_LINKER_SHLIBS],
 
5133
[AC_REQUIRE([LT_PATH_LD])dnl
 
5134
AC_REQUIRE([LT_PATH_NM])dnl
 
5135
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5136
m4_require([_LT_DECL_EGREP])dnl
 
5137
m4_require([_LT_DECL_SED])dnl
 
5138
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5139
m4_require([_LT_TAG_COMPILER])dnl
6509
5140
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6510
 
ifelse([$1],[CXX],[
6511
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5141
m4_if([$1], [CXX], [
 
5142
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6512
5143
  case $host_os in
6513
5144
  aix[[4-9]]*)
6514
5145
    # If we're using GNU nm, then we don't want the "-C" option.
6515
5146
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6516
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6517
 
      _LT_AC_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'
 
5147
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5148
      _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'
6518
5149
    else
6519
 
      _LT_AC_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'
 
5150
      _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'
6520
5151
    fi
6521
5152
    ;;
6522
5153
  pw32*)
6523
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5154
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6524
5155
  ;;
6525
 
  cygwin* | mingw*)
6526
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5156
  cygwin* | mingw* | cegcc*)
 
5157
    _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'
6527
5158
  ;;
6528
5159
  *)
6529
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5160
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6530
5161
  ;;
6531
5162
  esac
6532
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6533
 
],[
 
5163
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5164
], [
6534
5165
  runpath_var=
6535
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6536
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6537
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6538
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6539
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6540
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6541
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6542
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6543
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6544
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6545
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6546
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6547
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6548
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6549
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6550
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6551
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6552
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6553
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6554
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6555
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5166
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5167
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5168
  _LT_TAGVAR(archive_cmds, $1)=
 
5169
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5170
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5171
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5172
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5173
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5174
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5175
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5176
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5177
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5178
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5179
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5180
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5181
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5182
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5183
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5184
  _LT_TAGVAR(module_cmds, $1)=
 
5185
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5186
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5187
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5188
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5189
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6556
5190
  # include_expsyms should be a list of space-separated symbols to be *always*
6557
5191
  # included in the symbol list
6558
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5192
  _LT_TAGVAR(include_expsyms, $1)=
6559
5193
  # exclude_expsyms can be an extended regexp of symbols to exclude
6560
5194
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6561
5195
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6562
5196
  # as well as any symbol that contains `d'.
6563
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5197
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6564
5198
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6565
5199
  # platforms (ab)use it in PIC code, but their linkers get confused if
6566
5200
  # the symbol is explicitly referenced.  Since portable code cannot
6569
5203
  # Exclude shared library initialization/finalization symbols.
6570
5204
dnl Note also adjust exclude_expsyms for C++ above.
6571
5205
  extract_expsyms_cmds=
6572
 
  # Just being paranoid about ensuring that cc_basename is set.
6573
 
  _LT_CC_BASENAME([$compiler])
 
5206
 
6574
5207
  case $host_os in
6575
 
  cygwin* | mingw* | pw32*)
 
5208
  cygwin* | mingw* | pw32* | cegcc*)
6576
5209
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6577
5210
    # When not using gcc, we currently assume that we are using
6578
5211
    # Microsoft Visual C++.
6589
5222
    ;;
6590
5223
  esac
6591
5224
 
6592
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5225
  _LT_TAGVAR(ld_shlibs, $1)=yes
6593
5226
  if test "$with_gnu_ld" = yes; then
6594
5227
    # If archive_cmds runs LD, not CC, wlarc should be empty
6595
5228
    wlarc='${wl}'
6598
5231
    # are reset later if shared libraries are not supported. Putting them
6599
5232
    # here allows them to be overridden if necessary.
6600
5233
    runpath_var=LD_RUN_PATH
6601
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6602
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5234
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5235
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6603
5236
    # ancient GNU ld didn't support --whole-archive et. al.
6604
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6605
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6606
 
      else
6607
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5237
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5238
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5239
    else
 
5240
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6608
5241
    fi
6609
5242
    supports_anon_versioning=no
6610
 
    case `$LD -v 2>/dev/null` in
 
5243
    case `$LD -v 2>&1` in
6611
5244
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6612
5245
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6613
5246
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6620
5253
    aix[[3-9]]*)
6621
5254
      # On AIX/PPC, the GNU linker is very broken
6622
5255
      if test "$host_cpu" != ia64; then
6623
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6624
 
        cat <<EOF 1>&2
 
5256
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5257
        cat <<_LT_EOF 1>&2
6625
5258
 
6626
5259
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6627
5260
*** to be unable to reliably create shared libraries on AIX.
6629
5262
*** really care for shared libraries, you may want to modify your PATH
6630
5263
*** so that a non-GNU linker is found, and then restart.
6631
5264
 
6632
 
EOF
 
5265
_LT_EOF
6633
5266
      fi
6634
5267
      ;;
6635
5268
 
6636
5269
    amigaos*)
6637
 
      _LT_AC_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)'
6638
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6639
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6640
 
 
6641
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6642
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6643
 
      # to version 4, is to share data among multiple programs linked
6644
 
      # with the same dynamic library.  Since this doesn't match the
6645
 
      # behavior of shared libraries on other platforms, we can't use
6646
 
      # them.
6647
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5270
      case $host_cpu in
 
5271
      powerpc)
 
5272
            # see comment about AmigaOS4 .so support
 
5273
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5274
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5275
        ;;
 
5276
      m68k)
 
5277
            _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)'
 
5278
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5279
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5280
        ;;
 
5281
      esac
6648
5282
      ;;
6649
5283
 
6650
5284
    beos*)
6651
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6652
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5285
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5286
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6653
5287
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6654
5288
        # support --undefined.  This deserves some investigation.  FIXME
6655
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5289
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6656
5290
      else
6657
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5291
        _LT_TAGVAR(ld_shlibs, $1)=no
6658
5292
      fi
6659
5293
      ;;
6660
5294
 
6661
 
    cygwin* | mingw* | pw32*)
6662
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5295
    cygwin* | mingw* | pw32* | cegcc*)
 
5296
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6663
5297
      # as there is no search path for DLLs.
6664
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6665
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6666
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6667
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6668
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5298
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5299
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5300
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5301
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5302
      _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'
6669
5303
 
6670
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6671
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5304
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5305
        _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'
6672
5306
        # If the export-symbols file already is a .def file (1st line
6673
5307
        # is EXPORTS), use it as is; otherwise, prepend...
6674
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5308
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6675
5309
          cp $export_symbols $output_objdir/$soname.def;
6676
5310
        else
6677
5311
          echo EXPORTS > $output_objdir/$soname.def;
6679
5313
        fi~
6680
5314
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6681
5315
      else
6682
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5316
        _LT_TAGVAR(ld_shlibs, $1)=no
6683
5317
      fi
6684
5318
      ;;
6685
5319
 
6686
5320
    interix[[3-9]]*)
6687
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6688
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6689
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6690
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5321
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5322
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5323
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5324
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6691
5325
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6692
5326
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6693
5327
      # default) and relocated if they conflict, which is a slow very memory
6694
5328
      # consuming and fragmenting process.  To avoid this, we pick a random,
6695
5329
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6696
5330
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6697
 
      _LT_AC_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'
6698
 
      _LT_AC_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'
 
5331
      _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'
 
5332
      _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'
6699
5333
      ;;
6700
5334
 
6701
 
    gnu* | linux* | k*bsd*-gnu)
6702
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5335
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5336
      tmp_diet=no
 
5337
      if test "$host_os" = linux-dietlibc; then
 
5338
        case $cc_basename in
 
5339
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5340
        esac
 
5341
      fi
 
5342
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5343
         && test "$tmp_diet" = no
 
5344
      then
6703
5345
        tmp_addflag=
 
5346
        tmp_sharedflag='-shared'
6704
5347
        case $cc_basename,$host_cpu in
6705
 
        pgcc*)                          # Portland Group C compiler
6706
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5348
        pgcc*)                          # Portland Group C compiler
 
5349
          _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'
6707
5350
          tmp_addflag=' $pic_flag'
6708
5351
          ;;
6709
5352
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6710
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5353
          _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'
6711
5354
          tmp_addflag=' $pic_flag -Mnomain' ;;
6712
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5355
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6713
5356
          tmp_addflag=' -i_dynamic' ;;
6714
5357
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6715
5358
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6716
5359
        ifc* | ifort*)                  # Intel Fortran compiler
6717
5360
          tmp_addflag=' -nofor_main' ;;
 
5361
        lf95*)                          # Lahey Fortran 8.1
 
5362
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5363
          tmp_sharedflag='--shared' ;;
 
5364
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5365
          tmp_sharedflag='-qmkshrobj'
 
5366
          tmp_addflag= ;;
6718
5367
        esac
6719
5368
        case `$CC -V 2>&1 | sed 5q` in
6720
5369
        *Sun\ C*)                       # Sun C 5.9
6721
 
          _LT_AC_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'
 
5370
          _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'
 
5371
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6722
5372
          tmp_sharedflag='-G' ;;
6723
5373
        *Sun\ F*)                       # Sun Fortran 8.3
6724
5374
          tmp_sharedflag='-G' ;;
6725
 
        *)
6726
 
          tmp_sharedflag='-shared' ;;
6727
 
        esac
6728
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6729
 
 
6730
 
        if test $supports_anon_versioning = yes; then
6731
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6732
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6733
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6734
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6735
 
        fi
 
5375
        esac
 
5376
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5377
 
 
5378
        if test "x$supports_anon_versioning" = xyes; then
 
5379
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5380
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5381
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5382
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5383
        fi
 
5384
 
 
5385
        case $cc_basename in
 
5386
        xlf*)
 
5387
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5388
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5389
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5390
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5391
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5392
          if test "x$supports_anon_versioning" = xyes; then
 
5393
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5394
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5395
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5396
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5397
          fi
 
5398
          ;;
 
5399
        esac
6736
5400
      else
6737
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5401
        _LT_TAGVAR(ld_shlibs, $1)=no
6738
5402
      fi
6739
5403
      ;;
6740
5404
 
6741
5405
    netbsd*)
6742
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6743
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5406
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5407
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6744
5408
        wlarc=
6745
5409
      else
6746
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5410
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5411
        _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'
6748
5412
      fi
6749
5413
      ;;
6750
5414
 
6751
5415
    solaris*)
6752
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6753
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6754
 
        cat <<EOF 1>&2
 
5416
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5417
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5418
        cat <<_LT_EOF 1>&2
6755
5419
 
6756
5420
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6757
5421
*** create shared libraries on Solaris systems.  Therefore, libtool
6760
5424
*** your PATH or compiler configuration so that the native linker is
6761
5425
*** used, and then restart.
6762
5426
 
6763
 
EOF
6764
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6765
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6766
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5427
_LT_EOF
 
5428
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5429
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5430
        _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'
6767
5431
      else
6768
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5432
        _LT_TAGVAR(ld_shlibs, $1)=no
6769
5433
      fi
6770
5434
      ;;
6771
5435
 
6772
5436
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6773
5437
      case `$LD -v 2>&1` in
6774
5438
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6775
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5439
        _LT_TAGVAR(ld_shlibs, $1)=no
6776
5440
        cat <<_LT_EOF 1>&2
6777
5441
 
6778
5442
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6785
5449
_LT_EOF
6786
5450
        ;;
6787
5451
        *)
6788
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6789
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6790
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6791
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5452
          # For security reasons, it is highly recommended that you always
 
5453
          # use absolute paths for naming shared libraries, and exclude the
 
5454
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5455
          # requires that you compile everything twice, which is a pain.
 
5456
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5457
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5458
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5459
            _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'
6792
5460
          else
6793
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5461
            _LT_TAGVAR(ld_shlibs, $1)=no
6794
5462
          fi
6795
5463
        ;;
6796
5464
      esac
6797
5465
      ;;
6798
5466
 
6799
5467
    sunos4*)
6800
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5468
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6801
5469
      wlarc=
6802
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6803
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5470
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5471
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6804
5472
      ;;
6805
5473
 
6806
5474
    *)
6807
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6808
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5475
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5476
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5477
        _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'
6810
5478
      else
6811
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5479
        _LT_TAGVAR(ld_shlibs, $1)=no
6812
5480
      fi
6813
5481
      ;;
6814
5482
    esac
6815
5483
 
6816
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5484
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6817
5485
      runpath_var=
6818
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6819
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6820
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5486
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5487
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5488
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6821
5489
    fi
6822
5490
  else
6823
5491
    # PORTME fill in a description of your system's linker (not GNU ld)
6824
5492
    case $host_os in
6825
5493
    aix3*)
6826
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6827
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6828
 
      _LT_AC_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'
 
5494
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5495
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5496
      _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'
6829
5497
      # Note: this linker hardcodes the directories in LIBPATH if there
6830
5498
      # are no directories specified by -L.
6831
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5499
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6832
5500
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6833
5501
        # Neither direct hardcoding nor static linking is supported with a
6834
5502
        # broken collect2.
6835
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5503
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6836
5504
      fi
6837
5505
      ;;
6838
5506
 
6846
5514
      else
6847
5515
        # If we're using GNU nm, then we don't want the "-C" option.
6848
5516
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6849
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6850
 
          _LT_AC_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'
 
5517
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5518
          _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'
6851
5519
        else
6852
 
          _LT_AC_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'
 
5520
          _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'
6853
5521
        fi
6854
5522
        aix_use_runtimelinking=no
6855
5523
 
6858
5526
        # need to do runtime linking.
6859
5527
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6860
5528
          for ld_flag in $LDFLAGS; do
6861
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6862
 
            aix_use_runtimelinking=yes
6863
 
            break
6864
 
          fi
 
5529
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5530
            aix_use_runtimelinking=yes
 
5531
            break
 
5532
          fi
6865
5533
          done
6866
5534
          ;;
6867
5535
        esac
6876
5544
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6877
5545
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6878
5546
 
6879
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6880
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6881
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6882
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5547
      _LT_TAGVAR(archive_cmds, $1)=''
 
5548
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5549
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5550
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5551
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5552
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6883
5553
 
6884
5554
      if test "$GCC" = yes; then
6885
5555
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6886
5556
        # We only want to do this on AIX 4.2 and lower, the check
6887
5557
        # below for broken collect2 doesn't work under 4.3+
6888
5558
          collect2name=`${CC} -print-prog-name=collect2`
6889
 
          if test -f "$collect2name" && \
6890
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5559
          if test -f "$collect2name" &&
 
5560
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6891
5561
          then
6892
 
          # We have reworked collect2
6893
 
          :
 
5562
          # We have reworked collect2
 
5563
          :
6894
5564
          else
6895
 
          # We have old collect2
6896
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6897
 
          # It fails to find uninstalled libraries when the uninstalled
6898
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6899
 
          # to unsupported forces relinking
6900
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6901
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6902
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5565
          # We have old collect2
 
5566
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5567
          # It fails to find uninstalled libraries when the uninstalled
 
5568
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5569
          # to unsupported forces relinking
 
5570
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5571
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5572
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6903
5573
          fi
6904
5574
          ;;
6905
5575
        esac
6910
5580
      else
6911
5581
        # not using gcc
6912
5582
        if test "$host_cpu" = ia64; then
6913
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6914
 
        # chokes on -Wl,-G. The following line is correct:
 
5583
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5584
        # chokes on -Wl,-G. The following line is correct:
6915
5585
          shared_flag='-G'
6916
5586
        else
6917
5587
          if test "$aix_use_runtimelinking" = yes; then
6922
5592
        fi
6923
5593
      fi
6924
5594
 
 
5595
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6925
5596
      # It seems that -bexpall does not export symbols beginning with
6926
5597
      # underscore (_), so it is better to generate a list of symbols to export.
6927
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5598
      _LT_TAGVAR(always_export_symbols, $1)=yes
6928
5599
      if test "$aix_use_runtimelinking" = yes; then
6929
5600
        # Warning - without using the other runtime loading flags (-brtl),
6930
5601
        # -berok will link without error, but may produce a broken library.
6931
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6932
 
       # Determine the default libpath from the value encoded in an empty executable.
6933
 
       _LT_AC_SYS_LIBPATH_AIX
6934
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6935
 
        _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6936
 
       else
 
5602
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5603
        # Determine the default libpath from the value encoded in an
 
5604
        # empty executable.
 
5605
        _LT_SYS_MODULE_PATH_AIX
 
5606
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5607
        _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"
 
5608
      else
6937
5609
        if test "$host_cpu" = ia64; then
6938
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6939
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6940
 
          _LT_AC_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"
 
5610
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5611
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5612
          _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"
6941
5613
        else
6942
 
         # Determine the default libpath from the value encoded in an empty executable.
6943
 
         _LT_AC_SYS_LIBPATH_AIX
6944
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5614
         # Determine the default libpath from the value encoded in an
 
5615
         # empty executable.
 
5616
         _LT_SYS_MODULE_PATH_AIX
 
5617
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6945
5618
          # Warning - without using the other run time loading flags,
6946
5619
          # -berok will link without error, but may produce a broken library.
6947
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6948
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5620
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5621
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6949
5622
          # Exported symbols can be pulled into shared objects from archives
6950
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6951
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5623
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5624
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6952
5625
          # This is similar to how AIX traditionally builds its shared libraries.
6953
 
          _LT_AC_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'
 
5626
          _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'
6954
5627
        fi
6955
5628
      fi
6956
5629
      ;;
6957
5630
 
6958
5631
    amigaos*)
6959
 
      _LT_AC_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)'
6960
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6961
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6962
 
      # see comment about different semantics on the GNU ld section
6963
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5632
      case $host_cpu in
 
5633
      powerpc)
 
5634
            # see comment about AmigaOS4 .so support
 
5635
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5636
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5637
        ;;
 
5638
      m68k)
 
5639
            _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)'
 
5640
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5641
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5642
        ;;
 
5643
      esac
6964
5644
      ;;
6965
5645
 
6966
5646
    bsdi[[45]]*)
6967
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5647
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6968
5648
      ;;
6969
5649
 
6970
 
    cygwin* | mingw* | pw32*)
 
5650
    cygwin* | mingw* | pw32* | cegcc*)
6971
5651
      # When not using gcc, we currently assume that we are using
6972
5652
      # Microsoft Visual C++.
6973
5653
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6974
5654
      # no search path for DLLs.
6975
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6976
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5655
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5656
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6977
5657
      # Tell ltmain to make .lib files, not .a files.
6978
5658
      libext=lib
6979
5659
      # Tell ltmain to make .dll files, not .so files.
6980
5660
      shrext_cmds=".dll"
6981
5661
      # FIXME: Setting linknames here is a bad hack.
6982
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5662
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6983
5663
      # The linker will automatically build a .lib file if we build a DLL.
6984
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5664
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6985
5665
      # FIXME: Should let the user specify the lib program.
6986
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6987
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6988
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5666
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5667
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5668
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6989
5669
      ;;
6990
5670
 
6991
5671
    darwin* | rhapsody*)
6992
 
      case $host_os in
6993
 
        rhapsody* | darwin1.[[012]])
6994
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6995
 
         ;;
6996
 
       *) # Darwin 1.3 on
6997
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6998
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6999
 
         else
7000
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
7001
 
             10.[[012]])
7002
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7003
 
               ;;
7004
 
             10.*)
7005
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7006
 
               ;;
7007
 
           esac
7008
 
         fi
7009
 
         ;;
7010
 
      esac
7011
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7012
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
7013
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7014
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7015
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7016
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7017
 
    if test "$GCC" = yes ; then
7018
 
        output_verbose_link_cmd='echo'
7019
 
        _LT_AC_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}"
7020
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7021
 
        _LT_AC_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}"
7022
 
        _LT_AC_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}"
7023
 
    else
7024
 
      case $cc_basename in
7025
 
        xlc*)
7026
 
         output_verbose_link_cmd='echo'
7027
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7028
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7029
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7030
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7031
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7032
 
          ;;
7033
 
       *)
7034
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
7035
 
          ;;
7036
 
      esac
7037
 
    fi
 
5672
      _LT_DARWIN_LINKER_FEATURES($1)
7038
5673
      ;;
7039
5674
 
7040
5675
    dgux*)
7041
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7042
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7043
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5676
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5677
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5678
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7044
5679
      ;;
7045
5680
 
7046
5681
    freebsd1*)
7047
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5682
      _LT_TAGVAR(ld_shlibs, $1)=no
7048
5683
      ;;
7049
5684
 
7050
5685
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7052
5687
    # does not break anything, and helps significantly (at the cost of a little
7053
5688
    # extra space).
7054
5689
    freebsd2.2*)
7055
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7056
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7057
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7058
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5690
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5691
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5692
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5693
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7059
5694
      ;;
7060
5695
 
7061
5696
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7062
5697
    freebsd2*)
7063
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7064
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7065
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7066
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5698
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5699
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5700
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5701
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7067
5702
      ;;
7068
5703
 
7069
5704
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7070
5705
    freebsd* | dragonfly*)
7071
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7072
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7073
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7074
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5706
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5707
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5708
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5709
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7075
5710
      ;;
7076
5711
 
7077
5712
    hpux9*)
7078
5713
      if test "$GCC" = yes; then
7079
 
        _LT_AC_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'
 
5714
        _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'
7080
5715
      else
7081
 
        _LT_AC_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'
 
5716
        _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'
7082
5717
      fi
7083
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7084
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7085
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5718
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5719
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5720
      _LT_TAGVAR(hardcode_direct, $1)=yes
7086
5721
 
7087
5722
      # hardcode_minus_L: Not really in the search PATH,
7088
5723
      # but as the default location of the library.
7089
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7090
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5724
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5725
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7091
5726
      ;;
7092
5727
 
7093
5728
    hpux10*)
7094
5729
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7095
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5730
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7096
5731
      else
7097
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5732
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7098
5733
      fi
7099
5734
      if test "$with_gnu_ld" = no; then
7100
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7101
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7102
 
 
7103
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7104
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7105
 
 
 
5735
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5736
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5737
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5738
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5739
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5740
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7106
5741
        # hardcode_minus_L: Not really in the search PATH,
7107
5742
        # but as the default location of the library.
7108
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5743
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
7109
5744
      fi
7110
5745
      ;;
7111
5746
 
7113
5748
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7114
5749
        case $host_cpu in
7115
5750
        hppa*64*)
7116
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5751
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7117
5752
          ;;
7118
5753
        ia64*)
7119
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5754
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7120
5755
          ;;
7121
5756
        *)
7122
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5757
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7123
5758
          ;;
7124
5759
        esac
7125
5760
      else
7126
5761
        case $host_cpu in
7127
5762
        hppa*64*)
7128
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5763
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7129
5764
          ;;
7130
5765
        ia64*)
7131
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5766
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7132
5767
          ;;
7133
5768
        *)
7134
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5769
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7135
5770
          ;;
7136
5771
        esac
7137
5772
      fi
7138
5773
      if test "$with_gnu_ld" = no; then
7139
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7140
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5774
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5775
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7141
5776
 
7142
5777
        case $host_cpu in
7143
5778
        hppa*64*|ia64*)
7144
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7145
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
7146
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5779
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5780
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7147
5781
          ;;
7148
5782
        *)
7149
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7150
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5783
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5784
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5785
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7151
5786
 
7152
5787
          # hardcode_minus_L: Not really in the search PATH,
7153
5788
          # but as the default location of the library.
7154
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5789
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
7155
5790
          ;;
7156
5791
        esac
7157
5792
      fi
7159
5794
 
7160
5795
    irix5* | irix6* | nonstopux*)
7161
5796
      if test "$GCC" = yes; then
7162
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5797
        _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'
 
5798
        # Try to use the -exported_symbol ld option, if it does not
 
5799
        # work, assume that -exports_file does not work either and
 
5800
        # implicitly export all symbols.
 
5801
        save_LDFLAGS="$LDFLAGS"
 
5802
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5803
        AC_LINK_IFELSE(int foo(void) {},
 
5804
          _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'
 
5805
        )
 
5806
        LDFLAGS="$save_LDFLAGS"
7163
5807
      else
7164
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7165
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5808
        _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'
 
5809
        _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'
7166
5810
      fi
7167
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7168
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7169
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5811
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5812
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5813
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5814
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5815
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7170
5816
      ;;
7171
5817
 
7172
5818
    netbsd*)
7173
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7174
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5819
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5820
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7175
5821
      else
7176
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5822
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7177
5823
      fi
7178
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7179
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7180
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5824
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5825
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5826
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7181
5827
      ;;
7182
5828
 
7183
5829
    newsos6)
7184
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7186
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7187
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7188
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5830
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5831
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5832
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5833
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5834
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5835
      ;;
 
5836
 
 
5837
    *nto* | *qnx*)
7189
5838
      ;;
7190
5839
 
7191
5840
    openbsd*)
7192
5841
      if test -f /usr/libexec/ld.so; then
7193
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7194
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7195
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7196
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7197
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7198
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7199
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5842
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5843
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5844
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5845
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5846
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5847
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5848
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5849
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7200
5850
        else
7201
5851
          case $host_os in
7202
5852
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7203
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5853
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5854
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7205
5855
             ;;
7206
5856
           *)
7207
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5857
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5858
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7209
5859
             ;;
7210
5860
          esac
7211
 
        fi
 
5861
        fi
7212
5862
      else
7213
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5863
        _LT_TAGVAR(ld_shlibs, $1)=no
7214
5864
      fi
7215
5865
      ;;
7216
5866
 
7217
5867
    os2*)
7218
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7219
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7220
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7221
 
      _LT_AC_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'
7222
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5868
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5869
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5870
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5871
      _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'
 
5872
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7223
5873
      ;;
7224
5874
 
7225
5875
    osf3*)
7226
5876
      if test "$GCC" = yes; then
7227
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7228
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5877
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5878
        _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'
7229
5879
      else
7230
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7231
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5880
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5881
        _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'
7232
5882
      fi
7233
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7234
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5883
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5884
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5885
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7235
5886
      ;;
7236
5887
 
7237
5888
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7238
5889
      if test "$GCC" = yes; then
7239
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7240
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7241
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5890
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5891
        _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'
 
5892
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7242
5893
      else
7243
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7244
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7245
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7246
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5894
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5895
        _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'
 
5896
        _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~
 
5897
        $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'
7247
5898
 
7248
5899
        # Both c and cxx compiler support -rpath directly
7249
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5900
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7250
5901
      fi
7251
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5902
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5903
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7252
5904
      ;;
7253
5905
 
7254
5906
    solaris*)
7255
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
5907
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7256
5908
      if test "$GCC" = yes; then
7257
5909
        wlarc='${wl}'
7258
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7259
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7260
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
5910
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5911
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5912
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7261
5913
      else
7262
 
        wlarc=''
7263
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7265
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
5914
        case `$CC -V 2>&1` in
 
5915
        *"Compilers 5.0"*)
 
5916
          wlarc=''
 
5917
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5918
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5919
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5920
          ;;
 
5921
        *)
 
5922
          wlarc='${wl}'
 
5923
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5924
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5925
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5926
          ;;
 
5927
        esac
7266
5928
      fi
7267
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7268
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5929
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5930
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7269
5931
      case $host_os in
7270
5932
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7271
5933
      *)
7272
5934
        # The compiler driver will combine and reorder linker options,
7273
5935
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7274
5936
        # but is careful enough not to reorder.
7275
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5937
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7276
5938
        if test "$GCC" = yes; then
7277
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5939
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7278
5940
        else
7279
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5941
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7280
5942
        fi
7281
5943
        ;;
7282
5944
      esac
7283
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5945
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7284
5946
      ;;
7285
5947
 
7286
5948
    sunos4*)
7287
5949
      if test "x$host_vendor" = xsequent; then
7288
5950
        # Use $CC to link under sequent, because it throws in some extra .o
7289
5951
        # files that make .init and .fini sections work.
7290
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5952
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7291
5953
      else
7292
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5954
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7293
5955
      fi
7294
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7295
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7296
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7297
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5956
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5957
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5958
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5959
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7298
5960
      ;;
7299
5961
 
7300
5962
    sysv4)
7301
5963
      case $host_vendor in
7302
5964
        sni)
7303
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5965
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5966
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7305
5967
        ;;
7306
5968
        siemens)
7307
5969
          ## LD is ld it makes a PLAMLIB
7308
5970
          ## CC just makes a GrossModule.
7309
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7310
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7311
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5971
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5972
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5973
          _LT_TAGVAR(hardcode_direct, $1)=no
7312
5974
        ;;
7313
5975
        motorola)
7314
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7315
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5976
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5977
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7316
5978
        ;;
7317
5979
      esac
7318
5980
      runpath_var='LD_RUN_PATH'
7319
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5981
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7320
5982
      ;;
7321
5983
 
7322
5984
    sysv4.3*)
7323
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7325
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5985
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5986
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5987
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7326
5988
      ;;
7327
5989
 
7328
5990
    sysv4*MP*)
7329
5991
      if test -d /usr/nec; then
7330
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5992
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5993
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7332
5994
        runpath_var=LD_RUN_PATH
7333
5995
        hardcode_runpath_var=yes
7334
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5996
        _LT_TAGVAR(ld_shlibs, $1)=yes
7335
5997
      fi
7336
5998
      ;;
7337
5999
 
7338
6000
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7339
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7340
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7341
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6001
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6002
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6003
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7342
6004
      runpath_var='LD_RUN_PATH'
7343
6005
 
7344
6006
      if test "$GCC" = yes; then
7345
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7346
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6007
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6008
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347
6009
      else
7348
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6010
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6011
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7350
6012
      fi
7351
6013
      ;;
7352
6014
 
7357
6019
      # ever link correctly.  If we're not using GNU ld we use -z text
7358
6020
      # though, which does catch some bad symbols but isn't as heavy-handed
7359
6021
      # as -z defs.
7360
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7361
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7362
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7363
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7364
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7365
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7366
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7367
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6022
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6023
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6024
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6025
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6026
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6027
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6028
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6029
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7368
6030
      runpath_var='LD_RUN_PATH'
7369
6031
 
7370
6032
      if test "$GCC" = yes; then
7371
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7372
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6033
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6034
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7373
6035
      else
7374
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6036
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6037
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376
6038
      fi
7377
6039
      ;;
7378
6040
 
7379
6041
    uts4*)
7380
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7382
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6042
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6043
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6044
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7383
6045
      ;;
7384
6046
 
7385
6047
    *)
7386
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6048
      _LT_TAGVAR(ld_shlibs, $1)=no
7387
6049
      ;;
7388
6050
    esac
 
6051
 
 
6052
    if test x$host_vendor = xsni; then
 
6053
      case $host in
 
6054
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6055
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6056
        ;;
 
6057
      esac
 
6058
    fi
7389
6059
  fi
7390
6060
])
7391
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7392
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6061
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6062
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6063
 
 
6064
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6065
 
 
6066
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6067
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6068
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6069
    [The commands to extract the exported symbol list from a shared archive])
7393
6070
 
7394
6071
#
7395
6072
# Do we need to explicitly link libc?
7396
6073
#
7397
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6074
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7398
6075
x|xyes)
7399
6076
  # Assume -lc should be added
7400
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6077
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7401
6078
 
7402
6079
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7403
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6080
    case $_LT_TAGVAR(archive_cmds, $1) in
7404
6081
    *'~'*)
7405
6082
      # FIXME: we may have to deal with multi-command sequences.
7406
6083
      ;;
7409
6086
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7410
6087
      # to ld, don't add -lc before -lgcc.
7411
6088
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7412
 
      $rm conftest*
 
6089
      $RM conftest*
7413
6090
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
6091
 
7415
6092
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7417
6094
        lib=conftest
7418
6095
        libobjs=conftest.$ac_objext
7419
6096
        deplibs=
7420
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7421
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6097
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6098
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7422
6099
        compiler_flags=-v
7423
6100
        linker_flags=-v
7424
6101
        verstring=
7425
6102
        output_objdir=.
7426
6103
        libname=conftest
7427
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7428
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7429
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6104
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6105
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6106
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7430
6107
        then
7431
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6108
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7432
6109
        else
7433
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6110
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7434
6111
        fi
7435
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6112
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7436
6113
      else
7437
6114
        cat conftest.err 1>&5
7438
6115
      fi
7439
 
      $rm conftest*
7440
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6116
      $RM conftest*
 
6117
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7441
6118
      ;;
7442
6119
    esac
7443
6120
  fi
7444
6121
  ;;
7445
6122
esac
7446
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7447
 
 
7448
 
 
7449
 
# _LT_AC_FILE_LTDLL_C
7450
 
# -------------------
7451
 
# Be careful that the start marker always follows a newline.
7452
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7453
 
# /* ltdll.c starts here */
7454
 
# #define WIN32_LEAN_AND_MEAN
7455
 
# #include <windows.h>
7456
 
# #undef WIN32_LEAN_AND_MEAN
7457
 
# #include <stdio.h>
7458
 
#
7459
 
# #ifndef __CYGWIN__
7460
 
# #  ifdef __CYGWIN32__
7461
 
# #    define __CYGWIN__ __CYGWIN32__
7462
 
# #  endif
7463
 
# #endif
7464
 
#
7465
 
# #ifdef __cplusplus
7466
 
# extern "C" {
7467
 
# #endif
7468
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7469
 
# #ifdef __cplusplus
7470
 
# }
7471
 
# #endif
7472
 
#
7473
 
# #ifdef __CYGWIN__
7474
 
# #include <cygwin/cygwin_dll.h>
7475
 
# DECLARE_CYGWIN_DLL( DllMain );
7476
 
# #endif
7477
 
# HINSTANCE __hDllInstance_base;
7478
 
#
7479
 
# BOOL APIENTRY
7480
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7481
 
# {
7482
 
#   __hDllInstance_base = hInst;
7483
 
#   return TRUE;
7484
 
# }
7485
 
# /* ltdll.c ends here */
7486
 
])# _LT_AC_FILE_LTDLL_C
7487
 
 
7488
 
 
7489
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6123
 
 
6124
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6125
    [Whether or not to add -lc for building shared libraries])
 
6126
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6127
    [enable_shared_with_static_runtimes], [0],
 
6128
    [Whether or not to disallow shared libs when runtime libs are static])
 
6129
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6130
    [Compiler flag to allow reflexive dlopens])
 
6131
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6132
    [Compiler flag to generate shared objects directly from archives])
 
6133
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6134
    [Whether the compiler copes with passing no objects directly])
 
6135
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6136
    [Create an old-style archive from a shared archive])
 
6137
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6138
    [Create a temporary old-style archive to link instead of a shared archive])
 
6139
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6140
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6141
_LT_TAGDECL([], [module_cmds], [2],
 
6142
    [Commands used to build a loadable module if different from building
 
6143
    a shared archive.])
 
6144
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6145
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6146
    [Whether we are building with GNU ld or not])
 
6147
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6148
    [Flag that allows shared libraries with undefined symbols to be built])
 
6149
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6150
    [Flag that enforces no undefined symbols])
 
6151
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6152
    [Flag to hardcode $libdir into a binary during linking.
 
6153
    This must work even if $libdir does not exist])
 
6154
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6155
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6156
    during linking.  This must work even if $libdir does not exist]])
 
6157
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6158
    [Whether we need a single "-rpath" flag with a separated argument])
 
6159
_LT_TAGDECL([], [hardcode_direct], [0],
 
6160
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6161
    DIR into the resulting binary])
 
6162
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6163
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6164
    DIR into the resulting binary and the resulting library dependency is
 
6165
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6166
    library is relocated])
 
6167
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6168
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6169
    into the resulting binary])
 
6170
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6171
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6172
    into the resulting binary])
 
6173
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6174
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6175
    into the library and all subsequent libraries and executables linked
 
6176
    against it])
 
6177
_LT_TAGDECL([], [inherit_rpath], [0],
 
6178
    [Set to yes if linker adds runtime paths of dependent libraries
 
6179
    to runtime path list])
 
6180
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6181
    [Whether libtool must link a program against all its dependency libraries])
 
6182
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6183
    [Fix the shell variable $srcfile for the compiler])
 
6184
_LT_TAGDECL([], [always_export_symbols], [0],
 
6185
    [Set to "yes" if exported symbols are required])
 
6186
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6187
    [The commands to list exported symbols])
 
6188
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6189
    [Symbols that should not be listed in the preloaded symbols])
 
6190
_LT_TAGDECL([], [include_expsyms], [1],
 
6191
    [Symbols that must always be exported])
 
6192
_LT_TAGDECL([], [prelink_cmds], [2],
 
6193
    [Commands necessary for linking programs (against libraries) with templates])
 
6194
_LT_TAGDECL([], [file_list_spec], [1],
 
6195
    [Specify filename containing input files])
 
6196
dnl FIXME: Not yet implemented
 
6197
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6198
dnl    [Compiler flag to generate thread safe objects])
 
6199
])# _LT_LINKER_SHLIBS
 
6200
 
 
6201
 
 
6202
# _LT_LANG_C_CONFIG([TAG])
 
6203
# ------------------------
 
6204
# Ensure that the configuration variables for a C compiler are suitably
 
6205
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6206
# the compiler configuration to `libtool'.
 
6207
m4_defun([_LT_LANG_C_CONFIG],
 
6208
[m4_require([_LT_DECL_EGREP])dnl
 
6209
lt_save_CC="$CC"
 
6210
AC_LANG_PUSH(C)
 
6211
 
 
6212
# Source file extension for C test sources.
 
6213
ac_ext=c
 
6214
 
 
6215
# Object file extension for compiled C test sources.
 
6216
objext=o
 
6217
_LT_TAGVAR(objext, $1)=$objext
 
6218
 
 
6219
# Code to be used in simple compile tests
 
6220
lt_simple_compile_test_code="int some_variable = 0;"
 
6221
 
 
6222
# Code to be used in simple link tests
 
6223
lt_simple_link_test_code='int main(){return(0);}'
 
6224
 
 
6225
_LT_TAG_COMPILER
 
6226
# Save the default compiler, since it gets overwritten when the other
 
6227
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6228
compiler_DEFAULT=$CC
 
6229
 
 
6230
# save warnings/boilerplate of simple test code
 
6231
_LT_COMPILER_BOILERPLATE
 
6232
_LT_LINKER_BOILERPLATE
 
6233
 
 
6234
if test -n "$compiler"; then
 
6235
  _LT_COMPILER_NO_RTTI($1)
 
6236
  _LT_COMPILER_PIC($1)
 
6237
  _LT_COMPILER_C_O($1)
 
6238
  _LT_COMPILER_FILE_LOCKS($1)
 
6239
  _LT_LINKER_SHLIBS($1)
 
6240
  _LT_SYS_DYNAMIC_LINKER($1)
 
6241
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6242
  LT_SYS_DLOPEN_SELF
 
6243
  _LT_CMD_STRIPLIB
 
6244
 
 
6245
  # Report which library types will actually be built
 
6246
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6247
  AC_MSG_RESULT([$can_build_shared])
 
6248
 
 
6249
  AC_MSG_CHECKING([whether to build shared libraries])
 
6250
  test "$can_build_shared" = "no" && enable_shared=no
 
6251
 
 
6252
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6253
  # are all built from PIC.
 
6254
  case $host_os in
 
6255
  aix3*)
 
6256
    test "$enable_shared" = yes && enable_static=no
 
6257
    if test -n "$RANLIB"; then
 
6258
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6259
      postinstall_cmds='$RANLIB $lib'
 
6260
    fi
 
6261
    ;;
 
6262
 
 
6263
  aix[[4-9]]*)
 
6264
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6265
      test "$enable_shared" = yes && enable_static=no
 
6266
    fi
 
6267
    ;;
 
6268
  esac
 
6269
  AC_MSG_RESULT([$enable_shared])
 
6270
 
 
6271
  AC_MSG_CHECKING([whether to build static libraries])
 
6272
  # Make sure either enable_shared or enable_static is yes.
 
6273
  test "$enable_shared" = yes || enable_static=yes
 
6274
  AC_MSG_RESULT([$enable_static])
 
6275
 
 
6276
  _LT_CONFIG($1)
 
6277
fi
 
6278
AC_LANG_POP
 
6279
CC="$lt_save_CC"
 
6280
])# _LT_LANG_C_CONFIG
 
6281
 
 
6282
 
 
6283
# _LT_PROG_CXX
 
6284
# ------------
 
6285
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6286
# compiler, we have our own version here.
 
6287
m4_defun([_LT_PROG_CXX],
 
6288
[
 
6289
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6290
AC_PROG_CXX
 
6291
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6292
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6293
    (test "X$CXX" != "Xg++"))) ; then
 
6294
  AC_PROG_CXXCPP
 
6295
else
 
6296
  _lt_caught_CXX_error=yes
 
6297
fi
 
6298
popdef([AC_MSG_ERROR])
 
6299
])# _LT_PROG_CXX
 
6300
 
 
6301
dnl aclocal-1.4 backwards compatibility:
 
6302
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6303
 
 
6304
 
 
6305
# _LT_LANG_CXX_CONFIG([TAG])
 
6306
# --------------------------
 
6307
# Ensure that the configuration variables for a C++ compiler are suitably
 
6308
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6309
# the compiler configuration to `libtool'.
 
6310
m4_defun([_LT_LANG_CXX_CONFIG],
 
6311
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6312
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6313
m4_require([_LT_DECL_EGREP])dnl
 
6314
 
 
6315
AC_LANG_PUSH(C++)
 
6316
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6317
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6318
_LT_TAGVAR(always_export_symbols, $1)=no
 
6319
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6320
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6321
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6322
_LT_TAGVAR(hardcode_direct, $1)=no
 
6323
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6324
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6325
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6326
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6327
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6328
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6329
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6330
_LT_TAGVAR(inherit_rpath, $1)=no
 
6331
_LT_TAGVAR(module_cmds, $1)=
 
6332
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6333
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6334
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6335
_LT_TAGVAR(no_undefined_flag, $1)=
 
6336
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6337
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6338
 
 
6339
# Source file extension for C++ test sources.
 
6340
ac_ext=cpp
 
6341
 
 
6342
# Object file extension for compiled C++ test sources.
 
6343
objext=o
 
6344
_LT_TAGVAR(objext, $1)=$objext
 
6345
 
 
6346
# No sense in running all these tests if we already determined that
 
6347
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6348
# are currently assumed to apply to all compilers on this platform,
 
6349
# and will be corrupted by setting them based on a non-working compiler.
 
6350
if test "$_lt_caught_CXX_error" != yes; then
 
6351
  # Code to be used in simple compile tests
 
6352
  lt_simple_compile_test_code="int some_variable = 0;"
 
6353
 
 
6354
  # Code to be used in simple link tests
 
6355
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6356
 
 
6357
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6358
  _LT_TAG_COMPILER
 
6359
 
 
6360
  # save warnings/boilerplate of simple test code
 
6361
  _LT_COMPILER_BOILERPLATE
 
6362
  _LT_LINKER_BOILERPLATE
 
6363
 
 
6364
  # Allow CC to be a program name with arguments.
 
6365
  lt_save_CC=$CC
 
6366
  lt_save_LD=$LD
 
6367
  lt_save_GCC=$GCC
 
6368
  GCC=$GXX
 
6369
  lt_save_with_gnu_ld=$with_gnu_ld
 
6370
  lt_save_path_LD=$lt_cv_path_LD
 
6371
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6372
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6373
  else
 
6374
    $as_unset lt_cv_prog_gnu_ld
 
6375
  fi
 
6376
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6377
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6378
  else
 
6379
    $as_unset lt_cv_path_LD
 
6380
  fi
 
6381
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6382
  CC=${CXX-"c++"}
 
6383
  compiler=$CC
 
6384
  _LT_TAGVAR(compiler, $1)=$CC
 
6385
  _LT_CC_BASENAME([$compiler])
 
6386
 
 
6387
  if test -n "$compiler"; then
 
6388
    # We don't want -fno-exception when compiling C++ code, so set the
 
6389
    # no_builtin_flag separately
 
6390
    if test "$GXX" = yes; then
 
6391
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6392
    else
 
6393
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6394
    fi
 
6395
 
 
6396
    if test "$GXX" = yes; then
 
6397
      # Set up default GNU C++ configuration
 
6398
 
 
6399
      LT_PATH_LD
 
6400
 
 
6401
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6402
      # archiving commands below assume that GNU ld is being used.
 
6403
      if test "$with_gnu_ld" = yes; then
 
6404
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6405
        _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'
 
6406
 
 
6407
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6408
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6409
 
 
6410
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6411
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6412
        #     investigate it a little bit more. (MM)
 
6413
        wlarc='${wl}'
 
6414
 
 
6415
        # ancient GNU ld didn't support --whole-archive et. al.
 
6416
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6417
          $GREP 'no-whole-archive' > /dev/null; then
 
6418
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6419
        else
 
6420
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6421
        fi
 
6422
      else
 
6423
        with_gnu_ld=no
 
6424
        wlarc=
 
6425
 
 
6426
        # A generic and very simple default shared library creation
 
6427
        # command for GNU C++ for the case where it uses the native
 
6428
        # linker, instead of GNU ld.  If possible, this setting should
 
6429
        # overridden to take advantage of the native linker features on
 
6430
        # the platform it is being used on.
 
6431
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6432
      fi
 
6433
 
 
6434
      # Commands to make compiler produce verbose output that lists
 
6435
      # what "hidden" libraries, object files and flags are used when
 
6436
      # linking a shared library.
 
6437
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6438
 
 
6439
    else
 
6440
      GXX=no
 
6441
      with_gnu_ld=no
 
6442
      wlarc=
 
6443
    fi
 
6444
 
 
6445
    # PORTME: fill in a description of your system's C++ link characteristics
 
6446
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6447
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6448
    case $host_os in
 
6449
      aix3*)
 
6450
        # FIXME: insert proper C++ library support
 
6451
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6452
        ;;
 
6453
      aix[[4-9]]*)
 
6454
        if test "$host_cpu" = ia64; then
 
6455
          # On IA64, the linker does run time linking by default, so we don't
 
6456
          # have to do anything special.
 
6457
          aix_use_runtimelinking=no
 
6458
          exp_sym_flag='-Bexport'
 
6459
          no_entry_flag=""
 
6460
        else
 
6461
          aix_use_runtimelinking=no
 
6462
 
 
6463
          # Test if we are trying to use run time linking or normal
 
6464
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6465
          # need to do runtime linking.
 
6466
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6467
            for ld_flag in $LDFLAGS; do
 
6468
              case $ld_flag in
 
6469
              *-brtl*)
 
6470
                aix_use_runtimelinking=yes
 
6471
                break
 
6472
                ;;
 
6473
              esac
 
6474
            done
 
6475
            ;;
 
6476
          esac
 
6477
 
 
6478
          exp_sym_flag='-bexport'
 
6479
          no_entry_flag='-bnoentry'
 
6480
        fi
 
6481
 
 
6482
        # When large executables or shared objects are built, AIX ld can
 
6483
        # have problems creating the table of contents.  If linking a library
 
6484
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6485
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6486
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6487
 
 
6488
        _LT_TAGVAR(archive_cmds, $1)=''
 
6489
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6490
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6491
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6492
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6493
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6494
 
 
6495
        if test "$GXX" = yes; then
 
6496
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6497
          # We only want to do this on AIX 4.2 and lower, the check
 
6498
          # below for broken collect2 doesn't work under 4.3+
 
6499
          collect2name=`${CC} -print-prog-name=collect2`
 
6500
          if test -f "$collect2name" &&
 
6501
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6502
          then
 
6503
            # We have reworked collect2
 
6504
            :
 
6505
          else
 
6506
            # We have old collect2
 
6507
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6508
            # It fails to find uninstalled libraries when the uninstalled
 
6509
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6510
            # to unsupported forces relinking
 
6511
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6512
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6513
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6514
          fi
 
6515
          esac
 
6516
          shared_flag='-shared'
 
6517
          if test "$aix_use_runtimelinking" = yes; then
 
6518
            shared_flag="$shared_flag "'${wl}-G'
 
6519
          fi
 
6520
        else
 
6521
          # not using gcc
 
6522
          if test "$host_cpu" = ia64; then
 
6523
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6524
          # chokes on -Wl,-G. The following line is correct:
 
6525
          shared_flag='-G'
 
6526
          else
 
6527
            if test "$aix_use_runtimelinking" = yes; then
 
6528
              shared_flag='${wl}-G'
 
6529
            else
 
6530
              shared_flag='${wl}-bM:SRE'
 
6531
            fi
 
6532
          fi
 
6533
        fi
 
6534
 
 
6535
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6536
        # It seems that -bexpall does not export symbols beginning with
 
6537
        # underscore (_), so it is better to generate a list of symbols to
 
6538
        # export.
 
6539
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6540
        if test "$aix_use_runtimelinking" = yes; then
 
6541
          # Warning - without using the other runtime loading flags (-brtl),
 
6542
          # -berok will link without error, but may produce a broken library.
 
6543
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6544
          # Determine the default libpath from the value encoded in an empty
 
6545
          # executable.
 
6546
          _LT_SYS_MODULE_PATH_AIX
 
6547
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6548
 
 
6549
          _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"
 
6550
        else
 
6551
          if test "$host_cpu" = ia64; then
 
6552
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6553
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6554
            _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"
 
6555
          else
 
6556
            # Determine the default libpath from the value encoded in an
 
6557
            # empty executable.
 
6558
            _LT_SYS_MODULE_PATH_AIX
 
6559
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6560
            # Warning - without using the other run time loading flags,
 
6561
            # -berok will link without error, but may produce a broken library.
 
6562
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6563
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6564
            # Exported symbols can be pulled into shared objects from archives
 
6565
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6566
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6567
            # This is similar to how AIX traditionally builds its shared
 
6568
            # libraries.
 
6569
            _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'
 
6570
          fi
 
6571
        fi
 
6572
        ;;
 
6573
 
 
6574
      beos*)
 
6575
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6576
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6577
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6578
          # support --undefined.  This deserves some investigation.  FIXME
 
6579
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6580
        else
 
6581
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6582
        fi
 
6583
        ;;
 
6584
 
 
6585
      chorus*)
 
6586
        case $cc_basename in
 
6587
          *)
 
6588
          # FIXME: insert proper C++ library support
 
6589
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6590
          ;;
 
6591
        esac
 
6592
        ;;
 
6593
 
 
6594
      cygwin* | mingw* | pw32* | cegcc*)
 
6595
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6596
        # as there is no search path for DLLs.
 
6597
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6598
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6599
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6600
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6601
 
 
6602
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6603
          _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'
 
6604
          # If the export-symbols file already is a .def file (1st line
 
6605
          # is EXPORTS), use it as is; otherwise, prepend...
 
6606
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6607
            cp $export_symbols $output_objdir/$soname.def;
 
6608
          else
 
6609
            echo EXPORTS > $output_objdir/$soname.def;
 
6610
            cat $export_symbols >> $output_objdir/$soname.def;
 
6611
          fi~
 
6612
          $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'
 
6613
        else
 
6614
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6615
        fi
 
6616
        ;;
 
6617
      darwin* | rhapsody*)
 
6618
        _LT_DARWIN_LINKER_FEATURES($1)
 
6619
        ;;
 
6620
 
 
6621
      dgux*)
 
6622
        case $cc_basename in
 
6623
          ec++*)
 
6624
            # FIXME: insert proper C++ library support
 
6625
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6626
            ;;
 
6627
          ghcx*)
 
6628
            # Green Hills C++ Compiler
 
6629
            # FIXME: insert proper C++ library support
 
6630
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6631
            ;;
 
6632
          *)
 
6633
            # FIXME: insert proper C++ library support
 
6634
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6635
            ;;
 
6636
        esac
 
6637
        ;;
 
6638
 
 
6639
      freebsd[[12]]*)
 
6640
        # C++ shared libraries reported to be fairly broken before
 
6641
        # switch to ELF
 
6642
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6643
        ;;
 
6644
 
 
6645
      freebsd-elf*)
 
6646
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6647
        ;;
 
6648
 
 
6649
      freebsd* | dragonfly*)
 
6650
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6651
        # conventions
 
6652
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6653
        ;;
 
6654
 
 
6655
      gnu*)
 
6656
        ;;
 
6657
 
 
6658
      hpux9*)
 
6659
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6660
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6661
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6662
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6663
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6664
                                             # but as the default
 
6665
                                             # location of the library.
 
6666
 
 
6667
        case $cc_basename in
 
6668
          CC*)
 
6669
            # FIXME: insert proper C++ library support
 
6670
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6671
            ;;
 
6672
          aCC*)
 
6673
            _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'
 
6674
            # Commands to make compiler produce verbose output that lists
 
6675
            # what "hidden" libraries, object files and flags are used when
 
6676
            # linking a shared library.
 
6677
            #
 
6678
            # There doesn't appear to be a way to prevent this compiler from
 
6679
            # explicitly linking system object files so we need to strip them
 
6680
            # from the output so that they don't get included in the library
 
6681
            # dependencies.
 
6682
            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'
 
6683
            ;;
 
6684
          *)
 
6685
            if test "$GXX" = yes; then
 
6686
              _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'
 
6687
            else
 
6688
              # FIXME: insert proper C++ library support
 
6689
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6690
            fi
 
6691
            ;;
 
6692
        esac
 
6693
        ;;
 
6694
 
 
6695
      hpux10*|hpux11*)
 
6696
        if test $with_gnu_ld = no; then
 
6697
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6698
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6699
 
 
6700
          case $host_cpu in
 
6701
            hppa*64*|ia64*)
 
6702
              ;;
 
6703
            *)
 
6704
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6705
              ;;
 
6706
          esac
 
6707
        fi
 
6708
        case $host_cpu in
 
6709
          hppa*64*|ia64*)
 
6710
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6711
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6712
            ;;
 
6713
          *)
 
6714
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6715
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6716
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6717
                                                 # but as the default
 
6718
                                                 # location of the library.
 
6719
            ;;
 
6720
        esac
 
6721
 
 
6722
        case $cc_basename in
 
6723
          CC*)
 
6724
            # FIXME: insert proper C++ library support
 
6725
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6726
            ;;
 
6727
          aCC*)
 
6728
            case $host_cpu in
 
6729
              hppa*64*)
 
6730
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6731
                ;;
 
6732
              ia64*)
 
6733
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6734
                ;;
 
6735
              *)
 
6736
                _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'
 
6737
                ;;
 
6738
            esac
 
6739
            # Commands to make compiler produce verbose output that lists
 
6740
            # what "hidden" libraries, object files and flags are used when
 
6741
            # linking a shared library.
 
6742
            #
 
6743
            # There doesn't appear to be a way to prevent this compiler from
 
6744
            # explicitly linking system object files so we need to strip them
 
6745
            # from the output so that they don't get included in the library
 
6746
            # dependencies.
 
6747
            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'
 
6748
            ;;
 
6749
          *)
 
6750
            if test "$GXX" = yes; then
 
6751
              if test $with_gnu_ld = no; then
 
6752
                case $host_cpu in
 
6753
                  hppa*64*)
 
6754
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6755
                    ;;
 
6756
                  ia64*)
 
6757
                    _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'
 
6758
                    ;;
 
6759
                  *)
 
6760
                    _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'
 
6761
                    ;;
 
6762
                esac
 
6763
              fi
 
6764
            else
 
6765
              # FIXME: insert proper C++ library support
 
6766
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6767
            fi
 
6768
            ;;
 
6769
        esac
 
6770
        ;;
 
6771
 
 
6772
      interix[[3-9]]*)
 
6773
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6774
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6775
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6776
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6777
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6778
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6779
        # default) and relocated if they conflict, which is a slow very memory
 
6780
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6781
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6782
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6783
        _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'
 
6784
        _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'
 
6785
        ;;
 
6786
      irix5* | irix6*)
 
6787
        case $cc_basename in
 
6788
          CC*)
 
6789
            # SGI C++
 
6790
            _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'
 
6791
 
 
6792
            # Archives containing C++ object files must be created using
 
6793
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6794
            # necessary to make sure instantiated templates are included
 
6795
            # in the archive.
 
6796
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6797
            ;;
 
6798
          *)
 
6799
            if test "$GXX" = yes; then
 
6800
              if test "$with_gnu_ld" = no; then
 
6801
                _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'
 
6802
              else
 
6803
                _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'
 
6804
              fi
 
6805
            fi
 
6806
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6807
            ;;
 
6808
        esac
 
6809
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6810
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6811
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6812
        ;;
 
6813
 
 
6814
      linux* | k*bsd*-gnu)
 
6815
        case $cc_basename in
 
6816
          KCC*)
 
6817
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6818
 
 
6819
            # KCC will only create a shared library if the output file
 
6820
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6821
            # to its proper name (with version) after linking.
 
6822
            _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'
 
6823
            _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'
 
6824
            # Commands to make compiler produce verbose output that lists
 
6825
            # what "hidden" libraries, object files and flags are used when
 
6826
            # linking a shared library.
 
6827
            #
 
6828
            # There doesn't appear to be a way to prevent this compiler from
 
6829
            # explicitly linking system object files so we need to strip them
 
6830
            # from the output so that they don't get included in the library
 
6831
            # dependencies.
 
6832
            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'
 
6833
 
 
6834
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6835
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6836
 
 
6837
            # Archives containing C++ object files must be created using
 
6838
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6839
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6840
            ;;
 
6841
          icpc* | ecpc* )
 
6842
            # Intel C++
 
6843
            with_gnu_ld=yes
 
6844
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6845
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6846
            # earlier do not add the objects themselves.
 
6847
            case `$CC -V 2>&1` in
 
6848
              *"Version 7."*)
 
6849
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6850
                _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'
 
6851
                ;;
 
6852
              *)  # Version 8.0 or newer
 
6853
                tmp_idyn=
 
6854
                case $host_cpu in
 
6855
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6856
                esac
 
6857
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6858
                _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'
 
6859
                ;;
 
6860
            esac
 
6861
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6862
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6863
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6864
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6865
            ;;
 
6866
          pgCC* | pgcpp*)
 
6867
            # Portland Group C++ compiler
 
6868
            case `$CC -V` in
 
6869
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6870
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6871
                rm -rf $tpldir~
 
6872
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6873
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6874
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6875
                rm -rf $tpldir~
 
6876
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6877
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6878
                $RANLIB $oldlib'
 
6879
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6880
                rm -rf $tpldir~
 
6881
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6882
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6883
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6884
                rm -rf $tpldir~
 
6885
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6886
                $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'
 
6887
              ;;
 
6888
            *) # Version 6 will use weak symbols
 
6889
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6890
              _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'
 
6891
              ;;
 
6892
            esac
 
6893
 
 
6894
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6895
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6896
            _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'
 
6897
            ;;
 
6898
          cxx*)
 
6899
            # Compaq C++
 
6900
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6901
            _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'
 
6902
 
 
6903
            runpath_var=LD_RUN_PATH
 
6904
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6905
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6906
 
 
6907
            # Commands to make compiler produce verbose output that lists
 
6908
            # what "hidden" libraries, object files and flags are used when
 
6909
            # linking a shared library.
 
6910
            #
 
6911
            # There doesn't appear to be a way to prevent this compiler from
 
6912
            # explicitly linking system object files so we need to strip them
 
6913
            # from the output so that they don't get included in the library
 
6914
            # dependencies.
 
6915
            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'
 
6916
            ;;
 
6917
          xl*)
 
6918
            # IBM XL 8.0 on PPC, with GNU ld
 
6919
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6920
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6921
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6922
            if test "x$supports_anon_versioning" = xyes; then
 
6923
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6924
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6925
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6926
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6927
            fi
 
6928
            ;;
 
6929
          *)
 
6930
            case `$CC -V 2>&1 | sed 5q` in
 
6931
            *Sun\ C*)
 
6932
              # Sun C++ 5.9
 
6933
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6934
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6935
              _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'
 
6936
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6937
              _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'
 
6938
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6939
 
 
6940
              # Not sure whether something based on
 
6941
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6942
              # would be better.
 
6943
              output_verbose_link_cmd='echo'
 
6944
 
 
6945
              # Archives containing C++ object files must be created using
 
6946
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6947
              # necessary to make sure instantiated templates are included
 
6948
              # in the archive.
 
6949
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6950
              ;;
 
6951
            esac
 
6952
            ;;
 
6953
        esac
 
6954
        ;;
 
6955
 
 
6956
      lynxos*)
 
6957
        # FIXME: insert proper C++ library support
 
6958
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6959
        ;;
 
6960
 
 
6961
      m88k*)
 
6962
        # FIXME: insert proper C++ library support
 
6963
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6964
        ;;
 
6965
 
 
6966
      mvs*)
 
6967
        case $cc_basename in
 
6968
          cxx*)
 
6969
            # FIXME: insert proper C++ library support
 
6970
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6971
            ;;
 
6972
          *)
 
6973
            # FIXME: insert proper C++ library support
 
6974
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6975
            ;;
 
6976
        esac
 
6977
        ;;
 
6978
 
 
6979
      netbsd*)
 
6980
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6981
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6982
          wlarc=
 
6983
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6984
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6985
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6986
        fi
 
6987
        # Workaround some broken pre-1.5 toolchains
 
6988
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6989
        ;;
 
6990
 
 
6991
      *nto* | *qnx*)
 
6992
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6993
        ;;
 
6994
 
 
6995
      openbsd2*)
 
6996
        # C++ shared libraries are fairly broken
 
6997
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6998
        ;;
 
6999
 
 
7000
      openbsd*)
 
7001
        if test -f /usr/libexec/ld.so; then
 
7002
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7003
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7004
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7005
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7006
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7007
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7008
            _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'
 
7009
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7010
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7011
          fi
 
7012
          output_verbose_link_cmd=echo
 
7013
        else
 
7014
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7015
        fi
 
7016
        ;;
 
7017
 
 
7018
      osf3* | osf4* | osf5*)
 
7019
        case $cc_basename in
 
7020
          KCC*)
 
7021
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7022
 
 
7023
            # KCC will only create a shared library if the output file
 
7024
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7025
            # to its proper name (with version) after linking.
 
7026
            _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'
 
7027
 
 
7028
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7029
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7030
 
 
7031
            # Archives containing C++ object files must be created using
 
7032
            # the KAI C++ compiler.
 
7033
            case $host in
 
7034
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7035
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7036
            esac
 
7037
            ;;
 
7038
          RCC*)
 
7039
            # Rational C++ 2.4.1
 
7040
            # FIXME: insert proper C++ library support
 
7041
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7042
            ;;
 
7043
          cxx*)
 
7044
            case $host in
 
7045
              osf3*)
 
7046
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7047
                _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'
 
7048
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7049
                ;;
 
7050
              *)
 
7051
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7052
                _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'
 
7053
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7054
                  echo "-hidden">> $lib.exp~
 
7055
                  $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~
 
7056
                  $RM $lib.exp'
 
7057
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7058
                ;;
 
7059
            esac
 
7060
 
 
7061
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7062
 
 
7063
            # Commands to make compiler produce verbose output that lists
 
7064
            # what "hidden" libraries, object files and flags are used when
 
7065
            # linking a shared library.
 
7066
            #
 
7067
            # There doesn't appear to be a way to prevent this compiler from
 
7068
            # explicitly linking system object files so we need to strip them
 
7069
            # from the output so that they don't get included in the library
 
7070
            # dependencies.
 
7071
            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'
 
7072
            ;;
 
7073
          *)
 
7074
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7075
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7076
              case $host in
 
7077
                osf3*)
 
7078
                  _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'
 
7079
                  ;;
 
7080
                *)
 
7081
                  _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'
 
7082
                  ;;
 
7083
              esac
 
7084
 
 
7085
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7086
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7087
 
 
7088
              # Commands to make compiler produce verbose output that lists
 
7089
              # what "hidden" libraries, object files and flags are used when
 
7090
              # linking a shared library.
 
7091
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7092
 
 
7093
            else
 
7094
              # FIXME: insert proper C++ library support
 
7095
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7096
            fi
 
7097
            ;;
 
7098
        esac
 
7099
        ;;
 
7100
 
 
7101
      psos*)
 
7102
        # FIXME: insert proper C++ library support
 
7103
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7104
        ;;
 
7105
 
 
7106
      sunos4*)
 
7107
        case $cc_basename in
 
7108
          CC*)
 
7109
            # Sun C++ 4.x
 
7110
            # FIXME: insert proper C++ library support
 
7111
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7112
            ;;
 
7113
          lcc*)
 
7114
            # Lucid
 
7115
            # FIXME: insert proper C++ library support
 
7116
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7117
            ;;
 
7118
          *)
 
7119
            # FIXME: insert proper C++ library support
 
7120
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7121
            ;;
 
7122
        esac
 
7123
        ;;
 
7124
 
 
7125
      solaris*)
 
7126
        case $cc_basename in
 
7127
          CC*)
 
7128
            # Sun C++ 4.2, 5.x and Centerline C++
 
7129
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7130
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7131
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7132
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7133
              $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'
 
7134
 
 
7135
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7136
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7137
            case $host_os in
 
7138
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7139
              *)
 
7140
                # The compiler driver will combine and reorder linker options,
 
7141
                # but understands `-z linker_flag'.
 
7142
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7143
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7144
                ;;
 
7145
            esac
 
7146
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7147
 
 
7148
            output_verbose_link_cmd='echo'
 
7149
 
 
7150
            # Archives containing C++ object files must be created using
 
7151
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7152
            # necessary to make sure instantiated templates are included
 
7153
            # in the archive.
 
7154
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7155
            ;;
 
7156
          gcx*)
 
7157
            # Green Hills C++ Compiler
 
7158
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7159
 
 
7160
            # The C++ compiler must be used to create the archive.
 
7161
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7162
            ;;
 
7163
          *)
 
7164
            # GNU C++ compiler with Solaris linker
 
7165
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7166
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7167
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7168
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7169
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7170
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7171
 
 
7172
                # Commands to make compiler produce verbose output that lists
 
7173
                # what "hidden" libraries, object files and flags are used when
 
7174
                # linking a shared library.
 
7175
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7176
              else
 
7177
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7178
                # platform.
 
7179
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7180
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7181
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7182
 
 
7183
                # Commands to make compiler produce verbose output that lists
 
7184
                # what "hidden" libraries, object files and flags are used when
 
7185
                # linking a shared library.
 
7186
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7187
              fi
 
7188
 
 
7189
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7190
              case $host_os in
 
7191
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7192
                *)
 
7193
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7194
                  ;;
 
7195
              esac
 
7196
            fi
 
7197
            ;;
 
7198
        esac
 
7199
        ;;
 
7200
 
 
7201
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7202
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7203
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7204
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7205
      runpath_var='LD_RUN_PATH'
 
7206
 
 
7207
      case $cc_basename in
 
7208
        CC*)
 
7209
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7210
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7211
          ;;
 
7212
        *)
 
7213
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7214
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7215
          ;;
 
7216
      esac
 
7217
      ;;
 
7218
 
 
7219
      sysv5* | sco3.2v5* | sco5v6*)
 
7220
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7221
        # link with -lc, and that would cause any symbols used from libc to
 
7222
        # always be unresolved, which means just about no library would
 
7223
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7224
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7225
        # as -z defs.
 
7226
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7227
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7228
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7229
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7230
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7231
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7232
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7233
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7234
        runpath_var='LD_RUN_PATH'
 
7235
 
 
7236
        case $cc_basename in
 
7237
          CC*)
 
7238
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7239
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7240
            ;;
 
7241
          *)
 
7242
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7243
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7244
            ;;
 
7245
        esac
 
7246
      ;;
 
7247
 
 
7248
      tandem*)
 
7249
        case $cc_basename in
 
7250
          NCC*)
 
7251
            # NonStop-UX NCC 3.20
 
7252
            # FIXME: insert proper C++ library support
 
7253
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7254
            ;;
 
7255
          *)
 
7256
            # FIXME: insert proper C++ library support
 
7257
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7258
            ;;
 
7259
        esac
 
7260
        ;;
 
7261
 
 
7262
      vxworks*)
 
7263
        # FIXME: insert proper C++ library support
 
7264
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7265
        ;;
 
7266
 
 
7267
      *)
 
7268
        # FIXME: insert proper C++ library support
 
7269
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7270
        ;;
 
7271
    esac
 
7272
 
 
7273
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7274
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7275
 
 
7276
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7277
    _LT_TAGVAR(LD, $1)="$LD"
 
7278
 
 
7279
    ## CAVEAT EMPTOR:
 
7280
    ## There is no encapsulation within the following macros, do not change
 
7281
    ## the running order or otherwise move them around unless you know exactly
 
7282
    ## what you are doing...
 
7283
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7284
    _LT_COMPILER_PIC($1)
 
7285
    _LT_COMPILER_C_O($1)
 
7286
    _LT_COMPILER_FILE_LOCKS($1)
 
7287
    _LT_LINKER_SHLIBS($1)
 
7288
    _LT_SYS_DYNAMIC_LINKER($1)
 
7289
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7290
 
 
7291
    _LT_CONFIG($1)
 
7292
  fi # test -n "$compiler"
 
7293
 
 
7294
  CC=$lt_save_CC
 
7295
  LDCXX=$LD
 
7296
  LD=$lt_save_LD
 
7297
  GCC=$lt_save_GCC
 
7298
  with_gnu_ld=$lt_save_with_gnu_ld
 
7299
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7300
  lt_cv_path_LD=$lt_save_path_LD
 
7301
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7302
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7303
fi # test "$_lt_caught_CXX_error" != yes
 
7304
 
 
7305
AC_LANG_POP
 
7306
])# _LT_LANG_CXX_CONFIG
 
7307
 
 
7308
 
 
7309
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7490
7310
# ---------------------------------
7491
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7492
 
 
7493
 
 
7494
 
# old names
7495
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7496
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7497
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7498
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7499
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7500
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7501
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7502
 
 
7503
 
# This is just to silence aclocal about the macro not being used
7504
 
ifelse([AC_DISABLE_FAST_INSTALL])
7505
 
 
7506
 
AC_DEFUN([LT_AC_PROG_GCJ],
7507
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7508
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7509
 
  AC_SUBST(GCJFLAGS)
7510
 
])
7511
 
 
7512
 
AC_DEFUN([LT_AC_PROG_RC],
7513
 
[AC_CHECK_TOOL(RC, windres, no)
7514
 
])
7515
 
 
7516
 
 
7517
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7518
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7519
 
 
7520
 
# _AS_TEST_PREPARE
7521
 
# ----------------
7522
 
m4_ifndef([_AS_TEST_PREPARE],
7523
 
[m4_defun([_AS_TEST_PREPARE],
7524
 
[if test -x / >/dev/null 2>&1; then
7525
 
  as_executable_p='test -x'
 
7311
# Figure out "hidden" library dependencies from verbose
 
7312
# compiler output when linking a shared library.
 
7313
# Parse the compiler output and extract the necessary
 
7314
# objects, libraries and library flags.
 
7315
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7316
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7317
# Dependencies to place before and after the object being linked:
 
7318
_LT_TAGVAR(predep_objects, $1)=
 
7319
_LT_TAGVAR(postdep_objects, $1)=
 
7320
_LT_TAGVAR(predeps, $1)=
 
7321
_LT_TAGVAR(postdeps, $1)=
 
7322
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7323
 
 
7324
dnl we can't use the lt_simple_compile_test_code here,
 
7325
dnl because it contains code intended for an executable,
 
7326
dnl not a library.  It's possible we should let each
 
7327
dnl tag define a new lt_????_link_test_code variable,
 
7328
dnl but it's only used here...
 
7329
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7330
int a;
 
7331
void foo (void) { a = 0; }
 
7332
_LT_EOF
 
7333
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7334
class Foo
 
7335
{
 
7336
public:
 
7337
  Foo (void) { a = 0; }
 
7338
private:
 
7339
  int a;
 
7340
};
 
7341
_LT_EOF
 
7342
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7343
      subroutine foo
 
7344
      implicit none
 
7345
      integer*4 a
 
7346
      a=0
 
7347
      return
 
7348
      end
 
7349
_LT_EOF
 
7350
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7351
      subroutine foo
 
7352
      implicit none
 
7353
      integer a
 
7354
      a=0
 
7355
      return
 
7356
      end
 
7357
_LT_EOF
 
7358
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7359
public class foo {
 
7360
  private int a;
 
7361
  public void bar (void) {
 
7362
    a = 0;
 
7363
  }
 
7364
};
 
7365
_LT_EOF
 
7366
])
 
7367
dnl Parse the compiler output and extract the necessary
 
7368
dnl objects, libraries and library flags.
 
7369
if AC_TRY_EVAL(ac_compile); then
 
7370
  # Parse the compiler output and extract the necessary
 
7371
  # objects, libraries and library flags.
 
7372
 
 
7373
  # Sentinel used to keep track of whether or not we are before
 
7374
  # the conftest object file.
 
7375
  pre_test_object_deps_done=no
 
7376
 
 
7377
  for p in `eval "$output_verbose_link_cmd"`; do
 
7378
    case $p in
 
7379
 
 
7380
    -L* | -R* | -l*)
 
7381
       # Some compilers place space between "-{L,R}" and the path.
 
7382
       # Remove the space.
 
7383
       if test $p = "-L" ||
 
7384
          test $p = "-R"; then
 
7385
         prev=$p
 
7386
         continue
 
7387
       else
 
7388
         prev=
 
7389
       fi
 
7390
 
 
7391
       if test "$pre_test_object_deps_done" = no; then
 
7392
         case $p in
 
7393
         -L* | -R*)
 
7394
           # Internal compiler library paths should come after those
 
7395
           # provided the user.  The postdeps already come after the
 
7396
           # user supplied libs so there is no need to process them.
 
7397
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7398
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7399
           else
 
7400
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7401
           fi
 
7402
           ;;
 
7403
         # The "-l" case would never come before the object being
 
7404
         # linked, so don't bother handling this case.
 
7405
         esac
 
7406
       else
 
7407
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7408
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7409
         else
 
7410
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7411
         fi
 
7412
       fi
 
7413
       ;;
 
7414
 
 
7415
    *.$objext)
 
7416
       # This assumes that the test object file only shows up
 
7417
       # once in the compiler output.
 
7418
       if test "$p" = "conftest.$objext"; then
 
7419
         pre_test_object_deps_done=yes
 
7420
         continue
 
7421
       fi
 
7422
 
 
7423
       if test "$pre_test_object_deps_done" = no; then
 
7424
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7425
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7426
         else
 
7427
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7428
         fi
 
7429
       else
 
7430
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7431
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7432
         else
 
7433
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7434
         fi
 
7435
       fi
 
7436
       ;;
 
7437
 
 
7438
    *) ;; # Ignore the rest.
 
7439
 
 
7440
    esac
 
7441
  done
 
7442
 
 
7443
  # Clean up.
 
7444
  rm -f a.out a.exe
7526
7445
else
7527
 
  as_executable_p='test -f'
7528
 
fi
7529
 
])])# _AS_TEST_PREPARE
7530
 
 
7531
 
# AS_EXECUTABLE_P
7532
 
# ---------------
7533
 
# Check whether a file is executable.
7534
 
m4_ifndef([AS_EXECUTABLE_P],
7535
 
[m4_defun([AS_EXECUTABLE_P],
7536
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7537
 
$as_executable_p $1[]dnl
7538
 
])])# AS_EXECUTABLE_P
7539
 
 
 
7446
  echo "libtool.m4: error: problem compiling $1 test program"
 
7447
fi
 
7448
 
 
7449
$RM -f confest.$objext
 
7450
 
 
7451
# PORTME: override above test on systems where it is broken
 
7452
m4_if([$1], [CXX],
 
7453
[case $host_os in
 
7454
interix[[3-9]]*)
 
7455
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7456
  # hack all around it, let's just trust "g++" to DTRT.
 
7457
  _LT_TAGVAR(predep_objects,$1)=
 
7458
  _LT_TAGVAR(postdep_objects,$1)=
 
7459
  _LT_TAGVAR(postdeps,$1)=
 
7460
  ;;
 
7461
 
 
7462
linux*)
 
7463
  case `$CC -V 2>&1 | sed 5q` in
 
7464
  *Sun\ C*)
 
7465
    # Sun C++ 5.9
 
7466
 
 
7467
    # The more standards-conforming stlport4 library is
 
7468
    # incompatible with the Cstd library. Avoid specifying
 
7469
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7470
    # -library=stlport4 depends on it.
 
7471
    case " $CXX $CXXFLAGS " in
 
7472
    *" -library=stlport4 "*)
 
7473
      solaris_use_stlport4=yes
 
7474
      ;;
 
7475
    esac
 
7476
 
 
7477
    if test "$solaris_use_stlport4" != yes; then
 
7478
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7479
    fi
 
7480
    ;;
 
7481
  esac
 
7482
  ;;
 
7483
 
 
7484
solaris*)
 
7485
  case $cc_basename in
 
7486
  CC*)
 
7487
    # The more standards-conforming stlport4 library is
 
7488
    # incompatible with the Cstd library. Avoid specifying
 
7489
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7490
    # -library=stlport4 depends on it.
 
7491
    case " $CXX $CXXFLAGS " in
 
7492
    *" -library=stlport4 "*)
 
7493
      solaris_use_stlport4=yes
 
7494
      ;;
 
7495
    esac
 
7496
 
 
7497
    # Adding this requires a known-good setup of shared libraries for
 
7498
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7499
    # archive will be linked into the output, leading to subtle bugs.
 
7500
    if test "$solaris_use_stlport4" != yes; then
 
7501
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7502
    fi
 
7503
    ;;
 
7504
  esac
 
7505
  ;;
 
7506
esac
 
7507
])
 
7508
 
 
7509
case " $_LT_TAGVAR(postdeps, $1) " in
 
7510
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7511
esac
 
7512
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7513
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7514
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7515
fi
 
7516
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7517
    [The directories searched by this compiler when creating a shared library])
 
7518
_LT_TAGDECL([], [predep_objects], [1],
 
7519
    [Dependencies to place before and after the objects being linked to
 
7520
    create a shared library])
 
7521
_LT_TAGDECL([], [postdep_objects], [1])
 
7522
_LT_TAGDECL([], [predeps], [1])
 
7523
_LT_TAGDECL([], [postdeps], [1])
 
7524
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7525
    [The library search path used internally by the compiler when linking
 
7526
    a shared library])
 
7527
])# _LT_SYS_HIDDEN_LIBDEPS
 
7528
 
 
7529
 
 
7530
# _LT_PROG_F77
 
7531
# ------------
 
7532
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7533
# if there is no fortran compiler, we have our own version here.
 
7534
m4_defun([_LT_PROG_F77],
 
7535
[
 
7536
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7537
AC_PROG_F77
 
7538
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7539
  _lt_disable_F77=yes
 
7540
fi
 
7541
popdef([AC_MSG_ERROR])
 
7542
])# _LT_PROG_F77
 
7543
 
 
7544
dnl aclocal-1.4 backwards compatibility:
 
7545
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7546
 
 
7547
 
 
7548
# _LT_LANG_F77_CONFIG([TAG])
 
7549
# --------------------------
 
7550
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7551
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7552
# to write the compiler configuration to `libtool'.
 
7553
m4_defun([_LT_LANG_F77_CONFIG],
 
7554
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7555
AC_LANG_PUSH(Fortran 77)
 
7556
 
 
7557
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7558
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7559
_LT_TAGVAR(always_export_symbols, $1)=no
 
7560
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7561
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7562
_LT_TAGVAR(hardcode_direct, $1)=no
 
7563
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7564
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7565
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7566
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7567
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7568
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7569
_LT_TAGVAR(inherit_rpath, $1)=no
 
7570
_LT_TAGVAR(module_cmds, $1)=
 
7571
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7572
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7573
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7574
_LT_TAGVAR(no_undefined_flag, $1)=
 
7575
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7576
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7577
 
 
7578
# Source file extension for f77 test sources.
 
7579
ac_ext=f
 
7580
 
 
7581
# Object file extension for compiled f77 test sources.
 
7582
objext=o
 
7583
_LT_TAGVAR(objext, $1)=$objext
 
7584
 
 
7585
# No sense in running all these tests if we already determined that
 
7586
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7587
# are currently assumed to apply to all compilers on this platform,
 
7588
# and will be corrupted by setting them based on a non-working compiler.
 
7589
if test "$_lt_disable_F77" != yes; then
 
7590
  # Code to be used in simple compile tests
 
7591
  lt_simple_compile_test_code="\
 
7592
      subroutine t
 
7593
      return
 
7594
      end
 
7595
"
 
7596
 
 
7597
  # Code to be used in simple link tests
 
7598
  lt_simple_link_test_code="\
 
7599
      program t
 
7600
      end
 
7601
"
 
7602
 
 
7603
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7604
  _LT_TAG_COMPILER
 
7605
 
 
7606
  # save warnings/boilerplate of simple test code
 
7607
  _LT_COMPILER_BOILERPLATE
 
7608
  _LT_LINKER_BOILERPLATE
 
7609
 
 
7610
  # Allow CC to be a program name with arguments.
 
7611
  lt_save_CC="$CC"
 
7612
  lt_save_GCC=$GCC
 
7613
  CC=${F77-"f77"}
 
7614
  compiler=$CC
 
7615
  _LT_TAGVAR(compiler, $1)=$CC
 
7616
  _LT_CC_BASENAME([$compiler])
 
7617
  GCC=$G77
 
7618
  if test -n "$compiler"; then
 
7619
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7620
    AC_MSG_RESULT([$can_build_shared])
 
7621
 
 
7622
    AC_MSG_CHECKING([whether to build shared libraries])
 
7623
    test "$can_build_shared" = "no" && enable_shared=no
 
7624
 
 
7625
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7626
    # are all built from PIC.
 
7627
    case $host_os in
 
7628
      aix3*)
 
7629
        test "$enable_shared" = yes && enable_static=no
 
7630
        if test -n "$RANLIB"; then
 
7631
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7632
          postinstall_cmds='$RANLIB $lib'
 
7633
        fi
 
7634
        ;;
 
7635
      aix[[4-9]]*)
 
7636
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7637
          test "$enable_shared" = yes && enable_static=no
 
7638
        fi
 
7639
        ;;
 
7640
    esac
 
7641
    AC_MSG_RESULT([$enable_shared])
 
7642
 
 
7643
    AC_MSG_CHECKING([whether to build static libraries])
 
7644
    # Make sure either enable_shared or enable_static is yes.
 
7645
    test "$enable_shared" = yes || enable_static=yes
 
7646
    AC_MSG_RESULT([$enable_static])
 
7647
 
 
7648
    _LT_TAGVAR(GCC, $1)="$G77"
 
7649
    _LT_TAGVAR(LD, $1)="$LD"
 
7650
 
 
7651
    ## CAVEAT EMPTOR:
 
7652
    ## There is no encapsulation within the following macros, do not change
 
7653
    ## the running order or otherwise move them around unless you know exactly
 
7654
    ## what you are doing...
 
7655
    _LT_COMPILER_PIC($1)
 
7656
    _LT_COMPILER_C_O($1)
 
7657
    _LT_COMPILER_FILE_LOCKS($1)
 
7658
    _LT_LINKER_SHLIBS($1)
 
7659
    _LT_SYS_DYNAMIC_LINKER($1)
 
7660
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7661
 
 
7662
    _LT_CONFIG($1)
 
7663
  fi # test -n "$compiler"
 
7664
 
 
7665
  GCC=$lt_save_GCC
 
7666
  CC="$lt_save_CC"
 
7667
fi # test "$_lt_disable_F77" != yes
 
7668
 
 
7669
AC_LANG_POP
 
7670
])# _LT_LANG_F77_CONFIG
 
7671
 
 
7672
 
 
7673
# _LT_PROG_FC
 
7674
# -----------
 
7675
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7676
# if there is no fortran compiler, we have our own version here.
 
7677
m4_defun([_LT_PROG_FC],
 
7678
[
 
7679
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7680
AC_PROG_FC
 
7681
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7682
  _lt_disable_FC=yes
 
7683
fi
 
7684
popdef([AC_MSG_ERROR])
 
7685
])# _LT_PROG_FC
 
7686
 
 
7687
dnl aclocal-1.4 backwards compatibility:
 
7688
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7689
 
 
7690
 
 
7691
# _LT_LANG_FC_CONFIG([TAG])
 
7692
# -------------------------
 
7693
# Ensure that the configuration variables for a Fortran compiler are
 
7694
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7695
# to write the compiler configuration to `libtool'.
 
7696
m4_defun([_LT_LANG_FC_CONFIG],
 
7697
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7698
AC_LANG_PUSH(Fortran)
 
7699
 
 
7700
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7701
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7702
_LT_TAGVAR(always_export_symbols, $1)=no
 
7703
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7704
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7705
_LT_TAGVAR(hardcode_direct, $1)=no
 
7706
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7707
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7708
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7709
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7710
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7711
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7712
_LT_TAGVAR(inherit_rpath, $1)=no
 
7713
_LT_TAGVAR(module_cmds, $1)=
 
7714
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7715
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7716
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7717
_LT_TAGVAR(no_undefined_flag, $1)=
 
7718
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7719
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7720
 
 
7721
# Source file extension for fc test sources.
 
7722
ac_ext=${ac_fc_srcext-f}
 
7723
 
 
7724
# Object file extension for compiled fc test sources.
 
7725
objext=o
 
7726
_LT_TAGVAR(objext, $1)=$objext
 
7727
 
 
7728
# No sense in running all these tests if we already determined that
 
7729
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7730
# are currently assumed to apply to all compilers on this platform,
 
7731
# and will be corrupted by setting them based on a non-working compiler.
 
7732
if test "$_lt_disable_FC" != yes; then
 
7733
  # Code to be used in simple compile tests
 
7734
  lt_simple_compile_test_code="\
 
7735
      subroutine t
 
7736
      return
 
7737
      end
 
7738
"
 
7739
 
 
7740
  # Code to be used in simple link tests
 
7741
  lt_simple_link_test_code="\
 
7742
      program t
 
7743
      end
 
7744
"
 
7745
 
 
7746
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7747
  _LT_TAG_COMPILER
 
7748
 
 
7749
  # save warnings/boilerplate of simple test code
 
7750
  _LT_COMPILER_BOILERPLATE
 
7751
  _LT_LINKER_BOILERPLATE
 
7752
 
 
7753
  # Allow CC to be a program name with arguments.
 
7754
  lt_save_CC="$CC"
 
7755
  lt_save_GCC=$GCC
 
7756
  CC=${FC-"f95"}
 
7757
  compiler=$CC
 
7758
  GCC=$ac_cv_fc_compiler_gnu
 
7759
 
 
7760
  _LT_TAGVAR(compiler, $1)=$CC
 
7761
  _LT_CC_BASENAME([$compiler])
 
7762
 
 
7763
  if test -n "$compiler"; then
 
7764
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7765
    AC_MSG_RESULT([$can_build_shared])
 
7766
 
 
7767
    AC_MSG_CHECKING([whether to build shared libraries])
 
7768
    test "$can_build_shared" = "no" && enable_shared=no
 
7769
 
 
7770
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7771
    # are all built from PIC.
 
7772
    case $host_os in
 
7773
      aix3*)
 
7774
        test "$enable_shared" = yes && enable_static=no
 
7775
        if test -n "$RANLIB"; then
 
7776
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7777
          postinstall_cmds='$RANLIB $lib'
 
7778
        fi
 
7779
        ;;
 
7780
      aix[[4-9]]*)
 
7781
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7782
          test "$enable_shared" = yes && enable_static=no
 
7783
        fi
 
7784
        ;;
 
7785
    esac
 
7786
    AC_MSG_RESULT([$enable_shared])
 
7787
 
 
7788
    AC_MSG_CHECKING([whether to build static libraries])
 
7789
    # Make sure either enable_shared or enable_static is yes.
 
7790
    test "$enable_shared" = yes || enable_static=yes
 
7791
    AC_MSG_RESULT([$enable_static])
 
7792
 
 
7793
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7794
    _LT_TAGVAR(LD, $1)="$LD"
 
7795
 
 
7796
    ## CAVEAT EMPTOR:
 
7797
    ## There is no encapsulation within the following macros, do not change
 
7798
    ## the running order or otherwise move them around unless you know exactly
 
7799
    ## what you are doing...
 
7800
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7801
    _LT_COMPILER_PIC($1)
 
7802
    _LT_COMPILER_C_O($1)
 
7803
    _LT_COMPILER_FILE_LOCKS($1)
 
7804
    _LT_LINKER_SHLIBS($1)
 
7805
    _LT_SYS_DYNAMIC_LINKER($1)
 
7806
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7807
 
 
7808
    _LT_CONFIG($1)
 
7809
  fi # test -n "$compiler"
 
7810
 
 
7811
  GCC=$lt_save_GCC
 
7812
  CC="$lt_save_CC"
 
7813
fi # test "$_lt_disable_FC" != yes
 
7814
 
 
7815
AC_LANG_POP
 
7816
])# _LT_LANG_FC_CONFIG
 
7817
 
 
7818
 
 
7819
# _LT_LANG_GCJ_CONFIG([TAG])
 
7820
# --------------------------
 
7821
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7822
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7823
# to write the compiler configuration to `libtool'.
 
7824
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7825
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7826
AC_LANG_SAVE
 
7827
 
 
7828
# Source file extension for Java test sources.
 
7829
ac_ext=java
 
7830
 
 
7831
# Object file extension for compiled Java test sources.
 
7832
objext=o
 
7833
_LT_TAGVAR(objext, $1)=$objext
 
7834
 
 
7835
# Code to be used in simple compile tests
 
7836
lt_simple_compile_test_code="class foo {}"
 
7837
 
 
7838
# Code to be used in simple link tests
 
7839
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7840
 
 
7841
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7842
_LT_TAG_COMPILER
 
7843
 
 
7844
# save warnings/boilerplate of simple test code
 
7845
_LT_COMPILER_BOILERPLATE
 
7846
_LT_LINKER_BOILERPLATE
 
7847
 
 
7848
# Allow CC to be a program name with arguments.
 
7849
lt_save_CC="$CC"
 
7850
lt_save_GCC=$GCC
 
7851
GCC=yes
 
7852
CC=${GCJ-"gcj"}
 
7853
compiler=$CC
 
7854
_LT_TAGVAR(compiler, $1)=$CC
 
7855
_LT_TAGVAR(LD, $1)="$LD"
 
7856
_LT_CC_BASENAME([$compiler])
 
7857
 
 
7858
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7859
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7860
 
 
7861
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7862
 
 
7863
if test -n "$compiler"; then
 
7864
  _LT_COMPILER_NO_RTTI($1)
 
7865
  _LT_COMPILER_PIC($1)
 
7866
  _LT_COMPILER_C_O($1)
 
7867
  _LT_COMPILER_FILE_LOCKS($1)
 
7868
  _LT_LINKER_SHLIBS($1)
 
7869
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7870
 
 
7871
  _LT_CONFIG($1)
 
7872
fi
 
7873
 
 
7874
AC_LANG_RESTORE
 
7875
 
 
7876
GCC=$lt_save_GCC
 
7877
CC="$lt_save_CC"
 
7878
])# _LT_LANG_GCJ_CONFIG
 
7879
 
 
7880
 
 
7881
# _LT_LANG_RC_CONFIG([TAG])
 
7882
# -------------------------
 
7883
# Ensure that the configuration variables for the Windows resource compiler
 
7884
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7885
# to write the compiler configuration to `libtool'.
 
7886
m4_defun([_LT_LANG_RC_CONFIG],
 
7887
[AC_REQUIRE([LT_PROG_RC])dnl
 
7888
AC_LANG_SAVE
 
7889
 
 
7890
# Source file extension for RC test sources.
 
7891
ac_ext=rc
 
7892
 
 
7893
# Object file extension for compiled RC test sources.
 
7894
objext=o
 
7895
_LT_TAGVAR(objext, $1)=$objext
 
7896
 
 
7897
# Code to be used in simple compile tests
 
7898
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
7899
 
 
7900
# Code to be used in simple link tests
 
7901
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
7902
 
 
7903
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7904
_LT_TAG_COMPILER
 
7905
 
 
7906
# save warnings/boilerplate of simple test code
 
7907
_LT_COMPILER_BOILERPLATE
 
7908
_LT_LINKER_BOILERPLATE
 
7909
 
 
7910
# Allow CC to be a program name with arguments.
 
7911
lt_save_CC="$CC"
 
7912
lt_save_GCC=$GCC
 
7913
GCC=
 
7914
CC=${RC-"windres"}
 
7915
compiler=$CC
 
7916
_LT_TAGVAR(compiler, $1)=$CC
 
7917
_LT_CC_BASENAME([$compiler])
 
7918
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7919
 
 
7920
if test -n "$compiler"; then
 
7921
  :
 
7922
  _LT_CONFIG($1)
 
7923
fi
 
7924
 
 
7925
GCC=$lt_save_GCC
 
7926
AC_LANG_RESTORE
 
7927
CC="$lt_save_CC"
 
7928
])# _LT_LANG_RC_CONFIG
 
7929
 
 
7930
 
 
7931
# LT_PROG_GCJ
 
7932
# -----------
 
7933
AC_DEFUN([LT_PROG_GCJ],
 
7934
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7935
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7936
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7937
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7938
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7939
])
 
7940
 
 
7941
# Old name:
 
7942
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7943
dnl aclocal-1.4 backwards compatibility:
 
7944
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7945
 
 
7946
 
 
7947
# LT_PROG_RC
 
7948
# ----------
 
7949
AC_DEFUN([LT_PROG_RC],
 
7950
[AC_CHECK_TOOL(RC, windres,)
 
7951
])
 
7952
 
 
7953
# Old name:
 
7954
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7955
dnl aclocal-1.4 backwards compatibility:
 
7956
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7957
 
 
7958
 
 
7959
# _LT_DECL_EGREP
 
7960
# --------------
 
7961
# If we don't have a new enough Autoconf to choose the best grep
 
7962
# available, choose the one first in the user's PATH.
 
7963
m4_defun([_LT_DECL_EGREP],
 
7964
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7965
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7966
test -z "$GREP" && GREP=grep
 
7967
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7968
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7969
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7970
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7971
AC_SUBST([GREP])
 
7972
])
 
7973
 
 
7974
 
 
7975
# _LT_DECL_OBJDUMP
 
7976
# --------------
 
7977
# If we don't have a new enough Autoconf to choose the best objdump
 
7978
# available, choose the one first in the user's PATH.
 
7979
m4_defun([_LT_DECL_OBJDUMP],
 
7980
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7981
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7982
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7983
AC_SUBST([OBJDUMP])
 
7984
])
 
7985
 
 
7986
 
 
7987
# _LT_DECL_SED
 
7988
# ------------
 
7989
# Check for a fully-functional sed program, that truncates
 
7990
# as few characters as possible.  Prefer GNU sed if found.
 
7991
m4_defun([_LT_DECL_SED],
 
7992
[AC_PROG_SED
 
7993
test -z "$SED" && SED=sed
 
7994
Xsed="$SED -e 1s/^X//"
 
7995
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7996
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7997
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7998
])# _LT_DECL_SED
 
7999
 
 
8000
m4_ifndef([AC_PROG_SED], [
7540
8001
# NOTE: This macro has been submitted for inclusion into   #
7541
8002
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7542
8003
#  a released version of Autoconf we should remove this    #
7543
8004
#  macro and use it instead.                               #
7544
 
# LT_AC_PROG_SED
7545
 
# --------------
7546
 
# Check for a fully-functional sed program, that truncates
7547
 
# as few characters as possible.  Prefer GNU sed if found.
7548
 
AC_DEFUN([LT_AC_PROG_SED],
 
8005
 
 
8006
m4_defun([AC_PROG_SED],
7549
8007
[AC_MSG_CHECKING([for a sed that does not truncate output])
7550
8008
AC_CACHE_VAL(lt_cv_path_SED,
7551
8009
[# Loop through the user's path and test for sed and gsed.
7557
8015
  test -z "$as_dir" && as_dir=.
7558
8016
  for lt_ac_prog in sed gsed; do
7559
8017
    for ac_exec_ext in '' $ac_executable_extensions; do
7560
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
8018
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7561
8019
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7562
8020
      fi
7563
8021
    done
7598
8056
SED=$lt_cv_path_SED
7599
8057
AC_SUBST([SED])
7600
8058
AC_MSG_RESULT([$SED])
7601
 
])
 
8059
])#AC_PROG_SED
 
8060
])#m4_ifndef
 
8061
 
 
8062
# Old name:
 
8063
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8064
dnl aclocal-1.4 backwards compatibility:
 
8065
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8066
 
 
8067
 
 
8068
# _LT_CHECK_SHELL_FEATURES
 
8069
# ------------------------
 
8070
# Find out whether the shell is Bourne or XSI compatible,
 
8071
# or has some other useful features.
 
8072
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8073
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8074
# Try some XSI features
 
8075
xsi_shell=no
 
8076
( _lt_dummy="a/b/c"
 
8077
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8078
      = c,a/b,, \
 
8079
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8080
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8081
  && xsi_shell=yes
 
8082
AC_MSG_RESULT([$xsi_shell])
 
8083
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8084
 
 
8085
AC_MSG_CHECKING([whether the shell understands "+="])
 
8086
lt_shell_append=no
 
8087
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8088
    >/dev/null 2>&1 \
 
8089
  && lt_shell_append=yes
 
8090
AC_MSG_RESULT([$lt_shell_append])
 
8091
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8092
 
 
8093
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8094
  lt_unset=unset
 
8095
else
 
8096
  lt_unset=false
 
8097
fi
 
8098
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8099
 
 
8100
# test EBCDIC or ASCII
 
8101
case `echo X|tr X '\101'` in
 
8102
 A) # ASCII based system
 
8103
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8104
  lt_SP2NL='tr \040 \012'
 
8105
  lt_NL2SP='tr \015\012 \040\040'
 
8106
  ;;
 
8107
 *) # EBCDIC based system
 
8108
  lt_SP2NL='tr \100 \n'
 
8109
  lt_NL2SP='tr \r\n \100\100'
 
8110
  ;;
 
8111
esac
 
8112
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8113
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8114
])# _LT_CHECK_SHELL_FEATURES
 
8115
 
 
8116
 
 
8117
# _LT_PROG_XSI_SHELLFNS
 
8118
# ---------------------
 
8119
# Bourne and XSI compatible variants of some useful shell functions.
 
8120
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8121
[case $xsi_shell in
 
8122
  yes)
 
8123
    cat << \_LT_EOF >> "$cfgfile"
 
8124
 
 
8125
# func_dirname file append nondir_replacement
 
8126
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8127
# otherwise set result to NONDIR_REPLACEMENT.
 
8128
func_dirname ()
 
8129
{
 
8130
  case ${1} in
 
8131
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8132
    *  ) func_dirname_result="${3}" ;;
 
8133
  esac
 
8134
}
 
8135
 
 
8136
# func_basename file
 
8137
func_basename ()
 
8138
{
 
8139
  func_basename_result="${1##*/}"
 
8140
}
 
8141
 
 
8142
# func_dirname_and_basename file append nondir_replacement
 
8143
# perform func_basename and func_dirname in a single function
 
8144
# call:
 
8145
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8146
#             add APPEND to the result, otherwise set result
 
8147
#             to NONDIR_REPLACEMENT.
 
8148
#             value returned in "$func_dirname_result"
 
8149
#   basename: Compute filename of FILE.
 
8150
#             value retuned in "$func_basename_result"
 
8151
# Implementation must be kept synchronized with func_dirname
 
8152
# and func_basename. For efficiency, we do not delegate to
 
8153
# those functions but instead duplicate the functionality here.
 
8154
func_dirname_and_basename ()
 
8155
{
 
8156
  case ${1} in
 
8157
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8158
    *  ) func_dirname_result="${3}" ;;
 
8159
  esac
 
8160
  func_basename_result="${1##*/}"
 
8161
}
 
8162
 
 
8163
# func_stripname prefix suffix name
 
8164
# strip PREFIX and SUFFIX off of NAME.
 
8165
# PREFIX and SUFFIX must not contain globbing or regex special
 
8166
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8167
# dot (in which case that matches only a dot).
 
8168
func_stripname ()
 
8169
{
 
8170
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8171
  # positional parameters, so assign one to ordinary parameter first.
 
8172
  func_stripname_result=${3}
 
8173
  func_stripname_result=${func_stripname_result#"${1}"}
 
8174
  func_stripname_result=${func_stripname_result%"${2}"}
 
8175
}
 
8176
 
 
8177
# func_opt_split
 
8178
func_opt_split ()
 
8179
{
 
8180
  func_opt_split_opt=${1%%=*}
 
8181
  func_opt_split_arg=${1#*=}
 
8182
}
 
8183
 
 
8184
# func_lo2o object
 
8185
func_lo2o ()
 
8186
{
 
8187
  case ${1} in
 
8188
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8189
    *)    func_lo2o_result=${1} ;;
 
8190
  esac
 
8191
}
 
8192
 
 
8193
# func_xform libobj-or-source
 
8194
func_xform ()
 
8195
{
 
8196
  func_xform_result=${1%.*}.lo
 
8197
}
 
8198
 
 
8199
# func_arith arithmetic-term...
 
8200
func_arith ()
 
8201
{
 
8202
  func_arith_result=$(( $[*] ))
 
8203
}
 
8204
 
 
8205
# func_len string
 
8206
# STRING may not start with a hyphen.
 
8207
func_len ()
 
8208
{
 
8209
  func_len_result=${#1}
 
8210
}
 
8211
 
 
8212
_LT_EOF
 
8213
    ;;
 
8214
  *) # Bourne compatible functions.
 
8215
    cat << \_LT_EOF >> "$cfgfile"
 
8216
 
 
8217
# func_dirname file append nondir_replacement
 
8218
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8219
# otherwise set result to NONDIR_REPLACEMENT.
 
8220
func_dirname ()
 
8221
{
 
8222
  # Extract subdirectory from the argument.
 
8223
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8224
  if test "X$func_dirname_result" = "X${1}"; then
 
8225
    func_dirname_result="${3}"
 
8226
  else
 
8227
    func_dirname_result="$func_dirname_result${2}"
 
8228
  fi
 
8229
}
 
8230
 
 
8231
# func_basename file
 
8232
func_basename ()
 
8233
{
 
8234
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8235
}
 
8236
 
 
8237
dnl func_dirname_and_basename
 
8238
dnl A portable version of this function is already defined in general.m4sh
 
8239
dnl so there is no need for it here.
 
8240
 
 
8241
# func_stripname prefix suffix name
 
8242
# strip PREFIX and SUFFIX off of NAME.
 
8243
# PREFIX and SUFFIX must not contain globbing or regex special
 
8244
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8245
# dot (in which case that matches only a dot).
 
8246
# func_strip_suffix prefix name
 
8247
func_stripname ()
 
8248
{
 
8249
  case ${2} in
 
8250
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8251
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8252
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8253
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8254
  esac
 
8255
}
 
8256
 
 
8257
# sed scripts:
 
8258
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8259
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8260
 
 
8261
# func_opt_split
 
8262
func_opt_split ()
 
8263
{
 
8264
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8265
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8266
}
 
8267
 
 
8268
# func_lo2o object
 
8269
func_lo2o ()
 
8270
{
 
8271
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8272
}
 
8273
 
 
8274
# func_xform libobj-or-source
 
8275
func_xform ()
 
8276
{
 
8277
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8278
}
 
8279
 
 
8280
# func_arith arithmetic-term...
 
8281
func_arith ()
 
8282
{
 
8283
  func_arith_result=`expr "$[@]"`
 
8284
}
 
8285
 
 
8286
# func_len string
 
8287
# STRING may not start with a hyphen.
 
8288
func_len ()
 
8289
{
 
8290
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8291
}
 
8292
 
 
8293
_LT_EOF
 
8294
esac
 
8295
 
 
8296
case $lt_shell_append in
 
8297
  yes)
 
8298
    cat << \_LT_EOF >> "$cfgfile"
 
8299
 
 
8300
# func_append var value
 
8301
# Append VALUE to the end of shell variable VAR.
 
8302
func_append ()
 
8303
{
 
8304
  eval "$[1]+=\$[2]"
 
8305
}
 
8306
_LT_EOF
 
8307
    ;;
 
8308
  *)
 
8309
    cat << \_LT_EOF >> "$cfgfile"
 
8310
 
 
8311
# func_append var value
 
8312
# Append VALUE to the end of shell variable VAR.
 
8313
func_append ()
 
8314
{
 
8315
  eval "$[1]=\$$[1]\$[2]"
 
8316
}
 
8317
 
 
8318
_LT_EOF
 
8319
    ;;
 
8320
  esac
 
8321
])
 
8322
 
 
8323
# Helper functions for option handling.                    -*- Autoconf -*-
 
8324
#
 
8325
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8326
#   Written by Gary V. Vaughan, 2004
 
8327
#
 
8328
# This file is free software; the Free Software Foundation gives
 
8329
# unlimited permission to copy and/or distribute it, with or without
 
8330
# modifications, as long as this notice is preserved.
 
8331
 
 
8332
# serial 6 ltoptions.m4
 
8333
 
 
8334
# This is to help aclocal find these macros, as it can't see m4_define.
 
8335
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8336
 
 
8337
 
 
8338
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8339
# ------------------------------------------
 
8340
m4_define([_LT_MANGLE_OPTION],
 
8341
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8342
 
 
8343
 
 
8344
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8345
# ---------------------------------------
 
8346
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8347
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8348
# saved as a flag.
 
8349
m4_define([_LT_SET_OPTION],
 
8350
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8351
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8352
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8353
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8354
])
 
8355
 
 
8356
 
 
8357
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8358
# ------------------------------------------------------------
 
8359
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8360
m4_define([_LT_IF_OPTION],
 
8361
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8362
 
 
8363
 
 
8364
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8365
# -------------------------------------------------------
 
8366
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8367
# are set.
 
8368
m4_define([_LT_UNLESS_OPTIONS],
 
8369
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8370
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8371
                      [m4_define([$0_found])])])[]dnl
 
8372
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8373
])[]dnl
 
8374
])
 
8375
 
 
8376
 
 
8377
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8378
# ----------------------------------------
 
8379
# OPTION-LIST is a space-separated list of Libtool options associated
 
8380
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8381
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8382
# the unknown option and exit.
 
8383
m4_defun([_LT_SET_OPTIONS],
 
8384
[# Set options
 
8385
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8386
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8387
 
 
8388
m4_if([$1],[LT_INIT],[
 
8389
  dnl
 
8390
  dnl Simply set some default values (i.e off) if boolean options were not
 
8391
  dnl specified:
 
8392
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8393
  ])
 
8394
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8395
  ])
 
8396
  dnl
 
8397
  dnl If no reference was made to various pairs of opposing options, then
 
8398
  dnl we run the default mode handler for the pair.  For example, if neither
 
8399
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8400
  dnl archives by default:
 
8401
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8402
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8403
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8404
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8405
                   [_LT_ENABLE_FAST_INSTALL])
 
8406
  ])
 
8407
])# _LT_SET_OPTIONS
 
8408
 
 
8409
 
 
8410
 
 
8411
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8412
# -----------------------------------------
 
8413
m4_define([_LT_MANGLE_DEFUN],
 
8414
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8415
 
 
8416
 
 
8417
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8418
# -----------------------------------------------
 
8419
m4_define([LT_OPTION_DEFINE],
 
8420
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8421
])# LT_OPTION_DEFINE
 
8422
 
 
8423
 
 
8424
# dlopen
 
8425
# ------
 
8426
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8427
])
 
8428
 
 
8429
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8430
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8431
AC_DIAGNOSE([obsolete],
 
8432
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8433
put the `dlopen' option into LT_INIT's first parameter.])
 
8434
])
 
8435
 
 
8436
dnl aclocal-1.4 backwards compatibility:
 
8437
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8438
 
 
8439
 
 
8440
# win32-dll
 
8441
# ---------
 
8442
# Declare package support for building win32 dll's.
 
8443
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8444
[enable_win32_dll=yes
 
8445
 
 
8446
case $host in
 
8447
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8448
  AC_CHECK_TOOL(AS, as, false)
 
8449
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8450
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8451
  ;;
 
8452
esac
 
8453
 
 
8454
test -z "$AS" && AS=as
 
8455
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8456
 
 
8457
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8458
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8459
 
 
8460
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8461
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8462
])# win32-dll
 
8463
 
 
8464
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8465
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8466
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8467
AC_DIAGNOSE([obsolete],
 
8468
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8469
put the `win32-dll' option into LT_INIT's first parameter.])
 
8470
])
 
8471
 
 
8472
dnl aclocal-1.4 backwards compatibility:
 
8473
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8474
 
 
8475
 
 
8476
# _LT_ENABLE_SHARED([DEFAULT])
 
8477
# ----------------------------
 
8478
# implement the --enable-shared flag, and supports the `shared' and
 
8479
# `disable-shared' LT_INIT options.
 
8480
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8481
m4_define([_LT_ENABLE_SHARED],
 
8482
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8483
AC_ARG_ENABLE([shared],
 
8484
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8485
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8486
    [p=${PACKAGE-default}
 
8487
    case $enableval in
 
8488
    yes) enable_shared=yes ;;
 
8489
    no) enable_shared=no ;;
 
8490
    *)
 
8491
      enable_shared=no
 
8492
      # Look at the argument we got.  We use all the common list separators.
 
8493
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8494
      for pkg in $enableval; do
 
8495
        IFS="$lt_save_ifs"
 
8496
        if test "X$pkg" = "X$p"; then
 
8497
          enable_shared=yes
 
8498
        fi
 
8499
      done
 
8500
      IFS="$lt_save_ifs"
 
8501
      ;;
 
8502
    esac],
 
8503
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8504
 
 
8505
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8506
        [Whether or not to build shared libraries])
 
8507
])# _LT_ENABLE_SHARED
 
8508
 
 
8509
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8510
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8511
 
 
8512
# Old names:
 
8513
AC_DEFUN([AC_ENABLE_SHARED],
 
8514
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8515
])
 
8516
 
 
8517
AC_DEFUN([AC_DISABLE_SHARED],
 
8518
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8519
])
 
8520
 
 
8521
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8522
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8523
 
 
8524
dnl aclocal-1.4 backwards compatibility:
 
8525
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8526
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8527
 
 
8528
 
 
8529
 
 
8530
# _LT_ENABLE_STATIC([DEFAULT])
 
8531
# ----------------------------
 
8532
# implement the --enable-static flag, and support the `static' and
 
8533
# `disable-static' LT_INIT options.
 
8534
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8535
m4_define([_LT_ENABLE_STATIC],
 
8536
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8537
AC_ARG_ENABLE([static],
 
8538
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8539
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8540
    [p=${PACKAGE-default}
 
8541
    case $enableval in
 
8542
    yes) enable_static=yes ;;
 
8543
    no) enable_static=no ;;
 
8544
    *)
 
8545
     enable_static=no
 
8546
      # Look at the argument we got.  We use all the common list separators.
 
8547
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8548
      for pkg in $enableval; do
 
8549
        IFS="$lt_save_ifs"
 
8550
        if test "X$pkg" = "X$p"; then
 
8551
          enable_static=yes
 
8552
        fi
 
8553
      done
 
8554
      IFS="$lt_save_ifs"
 
8555
      ;;
 
8556
    esac],
 
8557
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8558
 
 
8559
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8560
        [Whether or not to build static libraries])
 
8561
])# _LT_ENABLE_STATIC
 
8562
 
 
8563
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8564
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8565
 
 
8566
# Old names:
 
8567
AC_DEFUN([AC_ENABLE_STATIC],
 
8568
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8569
])
 
8570
 
 
8571
AC_DEFUN([AC_DISABLE_STATIC],
 
8572
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8573
])
 
8574
 
 
8575
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8576
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8577
 
 
8578
dnl aclocal-1.4 backwards compatibility:
 
8579
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8580
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8581
 
 
8582
 
 
8583
 
 
8584
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8585
# ----------------------------------
 
8586
# implement the --enable-fast-install flag, and support the `fast-install'
 
8587
# and `disable-fast-install' LT_INIT options.
 
8588
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8589
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8590
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8591
AC_ARG_ENABLE([fast-install],
 
8592
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8593
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8594
    [p=${PACKAGE-default}
 
8595
    case $enableval in
 
8596
    yes) enable_fast_install=yes ;;
 
8597
    no) enable_fast_install=no ;;
 
8598
    *)
 
8599
      enable_fast_install=no
 
8600
      # Look at the argument we got.  We use all the common list separators.
 
8601
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8602
      for pkg in $enableval; do
 
8603
        IFS="$lt_save_ifs"
 
8604
        if test "X$pkg" = "X$p"; then
 
8605
          enable_fast_install=yes
 
8606
        fi
 
8607
      done
 
8608
      IFS="$lt_save_ifs"
 
8609
      ;;
 
8610
    esac],
 
8611
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8612
 
 
8613
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8614
         [Whether or not to optimize for fast installation])dnl
 
8615
])# _LT_ENABLE_FAST_INSTALL
 
8616
 
 
8617
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8618
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8619
 
 
8620
# Old names:
 
8621
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8622
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8623
AC_DIAGNOSE([obsolete],
 
8624
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8625
the `fast-install' option into LT_INIT's first parameter.])
 
8626
])
 
8627
 
 
8628
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8629
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8630
AC_DIAGNOSE([obsolete],
 
8631
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8632
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8633
])
 
8634
 
 
8635
dnl aclocal-1.4 backwards compatibility:
 
8636
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8637
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8638
 
 
8639
 
 
8640
# _LT_WITH_PIC([MODE])
 
8641
# --------------------
 
8642
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8643
# LT_INIT options.
 
8644
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8645
m4_define([_LT_WITH_PIC],
 
8646
[AC_ARG_WITH([pic],
 
8647
    [AS_HELP_STRING([--with-pic],
 
8648
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8649
    [pic_mode="$withval"],
 
8650
    [pic_mode=default])
 
8651
 
 
8652
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8653
 
 
8654
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8655
])# _LT_WITH_PIC
 
8656
 
 
8657
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8658
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8659
 
 
8660
# Old name:
 
8661
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8662
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8663
AC_DIAGNOSE([obsolete],
 
8664
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8665
put the `pic-only' option into LT_INIT's first parameter.])
 
8666
])
 
8667
 
 
8668
dnl aclocal-1.4 backwards compatibility:
 
8669
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8670
 
 
8671
 
 
8672
m4_define([_LTDL_MODE], [])
 
8673
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8674
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8675
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8676
                 [m4_define([_LTDL_MODE], [recursive])])
 
8677
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8678
                 [m4_define([_LTDL_MODE], [subproject])])
 
8679
 
 
8680
m4_define([_LTDL_TYPE], [])
 
8681
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8682
                 [m4_define([_LTDL_TYPE], [installable])])
 
8683
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8684
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8685
 
 
8686
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8687
#
 
8688
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8689
# Written by Gary V. Vaughan, 2004
 
8690
#
 
8691
# This file is free software; the Free Software Foundation gives
 
8692
# unlimited permission to copy and/or distribute it, with or without
 
8693
# modifications, as long as this notice is preserved.
 
8694
 
 
8695
# serial 6 ltsugar.m4
 
8696
 
 
8697
# This is to help aclocal find these macros, as it can't see m4_define.
 
8698
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8699
 
 
8700
 
 
8701
# lt_join(SEP, ARG1, [ARG2...])
 
8702
# -----------------------------
 
8703
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8704
# associated separator.
 
8705
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8706
# versions in m4sugar had bugs.
 
8707
m4_define([lt_join],
 
8708
[m4_if([$#], [1], [],
 
8709
       [$#], [2], [[$2]],
 
8710
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8711
m4_define([_lt_join],
 
8712
[m4_if([$#$2], [2], [],
 
8713
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8714
 
 
8715
 
 
8716
# lt_car(LIST)
 
8717
# lt_cdr(LIST)
 
8718
# ------------
 
8719
# Manipulate m4 lists.
 
8720
# These macros are necessary as long as will still need to support
 
8721
# Autoconf-2.59 which quotes differently.
 
8722
m4_define([lt_car], [[$1]])
 
8723
m4_define([lt_cdr],
 
8724
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8725
       [$#], 1, [],
 
8726
       [m4_dquote(m4_shift($@))])])
 
8727
m4_define([lt_unquote], $1)
 
8728
 
 
8729
 
 
8730
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8731
# ------------------------------------------
 
8732
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8733
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8734
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8735
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8736
# than defined and empty).
 
8737
#
 
8738
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8739
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8740
m4_define([lt_append],
 
8741
[m4_define([$1],
 
8742
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8743
 
 
8744
 
 
8745
 
 
8746
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8747
# ----------------------------------------------------------
 
8748
# Produce a SEP delimited list of all paired combinations of elements of
 
8749
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8750
# has the form PREFIXmINFIXSUFFIXn.
 
8751
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8752
m4_define([lt_combine],
 
8753
[m4_if(m4_eval([$# > 3]), [1],
 
8754
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8755
[[m4_foreach([_Lt_prefix], [$2],
 
8756
             [m4_foreach([_Lt_suffix],
 
8757
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8758
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8759
 
 
8760
 
 
8761
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8762
# -----------------------------------------------------------------------
 
8763
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8764
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8765
m4_define([lt_if_append_uniq],
 
8766
[m4_ifdef([$1],
 
8767
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8768
                 [lt_append([$1], [$2], [$3])$4],
 
8769
                 [$5])],
 
8770
          [lt_append([$1], [$2], [$3])$4])])
 
8771
 
 
8772
 
 
8773
# lt_dict_add(DICT, KEY, VALUE)
 
8774
# -----------------------------
 
8775
m4_define([lt_dict_add],
 
8776
[m4_define([$1($2)], [$3])])
 
8777
 
 
8778
 
 
8779
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8780
# --------------------------------------------
 
8781
m4_define([lt_dict_add_subkey],
 
8782
[m4_define([$1($2:$3)], [$4])])
 
8783
 
 
8784
 
 
8785
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8786
# ----------------------------------
 
8787
m4_define([lt_dict_fetch],
 
8788
[m4_ifval([$3],
 
8789
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8790
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8791
 
 
8792
 
 
8793
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8794
# -----------------------------------------------------------------
 
8795
m4_define([lt_if_dict_fetch],
 
8796
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8797
        [$5],
 
8798
    [$6])])
 
8799
 
 
8800
 
 
8801
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8802
# --------------------------------------------------------------
 
8803
m4_define([lt_dict_filter],
 
8804
[m4_if([$5], [], [],
 
8805
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8806
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8807
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8808
])
 
8809
 
 
8810
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8811
#
 
8812
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8813
#   Written by Scott James Remnant, 2004
 
8814
#
 
8815
# This file is free software; the Free Software Foundation gives
 
8816
# unlimited permission to copy and/or distribute it, with or without
 
8817
# modifications, as long as this notice is preserved.
 
8818
 
 
8819
# Generated from ltversion.in.
 
8820
 
 
8821
# serial 3012 ltversion.m4
 
8822
# This file is part of GNU Libtool
 
8823
 
 
8824
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8825
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8826
 
 
8827
AC_DEFUN([LTVERSION_VERSION],
 
8828
[macro_version='2.2.6'
 
8829
macro_revision='1.3012'
 
8830
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8831
_LT_DECL(, macro_revision, 0)
 
8832
])
 
8833
 
 
8834
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8835
#
 
8836
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8837
#   Written by Scott James Remnant, 2004.
 
8838
#
 
8839
# This file is free software; the Free Software Foundation gives
 
8840
# unlimited permission to copy and/or distribute it, with or without
 
8841
# modifications, as long as this notice is preserved.
 
8842
 
 
8843
# serial 4 lt~obsolete.m4
 
8844
 
 
8845
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8846
#
 
8847
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8848
# which have later been changed to m4_define as they aren't part of the
 
8849
# exported API, or moved to Autoconf or Automake where they belong.
 
8850
#
 
8851
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8852
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8853
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8854
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8855
# and doesn't know about Autoconf macros at all.)
 
8856
#
 
8857
# So we provide this file, which has a silly filename so it's always
 
8858
# included after everything else.  This provides aclocal with the
 
8859
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8860
# because those macros already exist, or will be overwritten later.
 
8861
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8862
#
 
8863
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8864
# Yes, that means every name once taken will need to remain here until
 
8865
# we give up compatibility with versions before 1.7, at which point
 
8866
# we need to keep only those names which we still refer to.
 
8867
 
 
8868
# This is to help aclocal find these macros, as it can't see m4_define.
 
8869
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8870
 
 
8871
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8872
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8873
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8874
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8875
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8876
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8877
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8878
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8879
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8880
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8881
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8882
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8883
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8884
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8885
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8886
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8887
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8888
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8889
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8890
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8891
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8892
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8893
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8894
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8895
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8896
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8897
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8898
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
8899
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
8900
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
8901
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
8902
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
8903
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
8904
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
8905
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
8906
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
8907
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
8908
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
8909
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
8910
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
8911
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
8912
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
8913
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
8914
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
8915
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8916
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8917
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8918
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8919
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8920
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8921
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8922
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8923
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8924
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8925
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7602
8926
 
7603
8927
# nls.m4 serial 3 (gettext-0.15)
7604
8928
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
7788
9112
fi[]dnl
7789
9113
])# PKG_CHECK_MODULES
7790
9114
 
7791
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
9115
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
7792
9116
#
7793
9117
# This file is free software; the Free Software Foundation
7794
9118
# gives unlimited permission to copy and/or distribute it,
7800
9124
# generated from the m4 files accompanying Automake X.Y.
7801
9125
# (This private macro should not be called outside this file.)
7802
9126
AC_DEFUN([AM_AUTOMAKE_VERSION],
7803
 
[am__api_version='1.10'
 
9127
[am__api_version='1.11'
7804
9128
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7805
9129
dnl require some minimum version.  Point them to the right macro.
7806
 
m4_if([$1], [1.10.1], [],
 
9130
m4_if([$1], [1.11], [],
7807
9131
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7808
9132
])
7809
9133
 
7817
9141
# AM_SET_CURRENT_AUTOMAKE_VERSION
7818
9142
# -------------------------------
7819
9143
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7820
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
9144
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
7821
9145
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7822
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
9146
[AM_AUTOMAKE_VERSION([1.11])dnl
7823
9147
m4_ifndef([AC_AUTOCONF_VERSION],
7824
9148
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7825
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
9149
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
7826
9150
 
7827
9151
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7828
9152
 
7879
9203
 
7880
9204
# AM_CONDITIONAL                                            -*- Autoconf -*-
7881
9205
 
7882
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
9206
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
7883
9207
# Free Software Foundation, Inc.
7884
9208
#
7885
9209
# This file is free software; the Free Software Foundation
7886
9210
# gives unlimited permission to copy and/or distribute it,
7887
9211
# with or without modifications, as long as this notice is preserved.
7888
9212
 
7889
 
# serial 8
 
9213
# serial 9
7890
9214
 
7891
9215
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7892
9216
# -------------------------------------
7899
9223
AC_SUBST([$1_FALSE])dnl
7900
9224
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7901
9225
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9226
m4_define([_AM_COND_VALUE_$1], [$2])dnl
7902
9227
if $2; then
7903
9228
  $1_TRUE=
7904
9229
  $1_FALSE='#'
7912
9237
Usually this means the macro was only invoked conditionally.]])
7913
9238
fi])])
7914
9239
 
7915
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
9240
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
7916
9241
# Free Software Foundation, Inc.
7917
9242
#
7918
9243
# This file is free software; the Free Software Foundation
7919
9244
# gives unlimited permission to copy and/or distribute it,
7920
9245
# with or without modifications, as long as this notice is preserved.
7921
9246
 
7922
 
# serial 9
 
9247
# serial 10
7923
9248
 
7924
9249
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7925
9250
# written in clear, in which case automake, when reading aclocal.m4,
7976
9301
  if test "$am_compiler_list" = ""; then
7977
9302
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7978
9303
  fi
 
9304
  am__universal=false
 
9305
  m4_case([$1], [CC],
 
9306
    [case " $depcc " in #(
 
9307
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9308
     esac],
 
9309
    [CXX],
 
9310
    [case " $depcc " in #(
 
9311
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
9312
     esac])
 
9313
 
7979
9314
  for depmode in $am_compiler_list; do
7980
9315
    # Setup a source with many dependencies, because some compilers
7981
9316
    # like to wrap large dependency lists on column 80 (with \), and
7993
9328
    done
7994
9329
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7995
9330
 
 
9331
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9332
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9333
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
9334
    # versions had trouble with output in subdirs
 
9335
    am__obj=sub/conftest.${OBJEXT-o}
 
9336
    am__minus_obj="-o $am__obj"
7996
9337
    case $depmode in
 
9338
    gcc)
 
9339
      # This depmode causes a compiler race in universal mode.
 
9340
      test "$am__universal" = false || continue
 
9341
      ;;
7997
9342
    nosideeffect)
7998
9343
      # after this tag, mechanisms are not by side-effect, so they'll
7999
9344
      # only be used when explicitly requested
8003
9348
        break
8004
9349
      fi
8005
9350
      ;;
 
9351
    msvisualcpp | msvcmsys)
 
9352
      # This compiler won't grok `-c -o', but also, the minuso test has
 
9353
      # not run yet.  These depmodes are late enough in the game, and
 
9354
      # so weak that their functioning should not be impacted.
 
9355
      am__obj=conftest.${OBJEXT-o}
 
9356
      am__minus_obj=
 
9357
      ;;
8006
9358
    none) break ;;
8007
9359
    esac
8008
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8009
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
8010
 
    # handle `-M -o', and we need to detect this.
8011
9360
    if depmode=$depmode \
8012
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
9361
       source=sub/conftest.c object=$am__obj \
8013
9362
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8014
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
9363
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8015
9364
         >/dev/null 2>conftest.err &&
8016
9365
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8017
9366
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8018
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
9367
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8019
9368
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8020
9369
      # icc doesn't choke on unknown options, it will just issue warnings
8021
9370
      # or remarks (even with -Werror).  So we grep stderr for any message
8072
9421
 
8073
9422
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8074
9423
 
8075
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
9424
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8076
9425
# Free Software Foundation, Inc.
8077
9426
#
8078
9427
# This file is free software; the Free Software Foundation
8079
9428
# gives unlimited permission to copy and/or distribute it,
8080
9429
# with or without modifications, as long as this notice is preserved.
8081
9430
 
8082
 
#serial 3
 
9431
#serial 5
8083
9432
 
8084
9433
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8085
9434
# ------------------------------
8086
9435
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8087
 
[for mf in $CONFIG_FILES; do
8088
 
  # Strip MF so we end up with the name of the file.
8089
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8090
 
  # Check whether this is an Automake generated Makefile or not.
8091
 
  # We used to match only the files named `Makefile.in', but
8092
 
  # some people rename them; so instead we look at the file content.
8093
 
  # Grep'ing the first line is not enough: some people post-process
8094
 
  # each Makefile.in and add a new line on top of each file to say so.
8095
 
  # Grep'ing the whole file is not good either: AIX grep has a line
8096
 
  # limit of 2048, but all sed's we know have understand at least 4000.
8097
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8098
 
    dirpart=`AS_DIRNAME("$mf")`
8099
 
  else
8100
 
    continue
8101
 
  fi
8102
 
  # Extract the definition of DEPDIR, am__include, and am__quote
8103
 
  # from the Makefile without running `make'.
8104
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8105
 
  test -z "$DEPDIR" && continue
8106
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8107
 
  test -z "am__include" && continue
8108
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8109
 
  # When using ansi2knr, U may be empty or an underscore; expand it
8110
 
  U=`sed -n 's/^U = //p' < "$mf"`
8111
 
  # Find all dependency output files, they are included files with
8112
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8113
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
8114
 
  # expansion.
8115
 
  for file in `sed -n "
8116
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8117
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8118
 
    # Make sure the directory exists.
8119
 
    test -f "$dirpart/$file" && continue
8120
 
    fdir=`AS_DIRNAME(["$file"])`
8121
 
    AS_MKDIR_P([$dirpart/$fdir])
8122
 
    # echo "creating $dirpart/$file"
8123
 
    echo '# dummy' > "$dirpart/$file"
 
9436
[{
 
9437
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9438
  # are listed without --file.  Let's play safe and only enable the eval
 
9439
  # if we detect the quoting.
 
9440
  case $CONFIG_FILES in
 
9441
  *\'*) eval set x "$CONFIG_FILES" ;;
 
9442
  *)   set x $CONFIG_FILES ;;
 
9443
  esac
 
9444
  shift
 
9445
  for mf
 
9446
  do
 
9447
    # Strip MF so we end up with the name of the file.
 
9448
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9449
    # Check whether this is an Automake generated Makefile or not.
 
9450
    # We used to match only the files named `Makefile.in', but
 
9451
    # some people rename them; so instead we look at the file content.
 
9452
    # Grep'ing the first line is not enough: some people post-process
 
9453
    # each Makefile.in and add a new line on top of each file to say so.
 
9454
    # Grep'ing the whole file is not good either: AIX grep has a line
 
9455
    # limit of 2048, but all sed's we know have understand at least 4000.
 
9456
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
9457
      dirpart=`AS_DIRNAME("$mf")`
 
9458
    else
 
9459
      continue
 
9460
    fi
 
9461
    # Extract the definition of DEPDIR, am__include, and am__quote
 
9462
    # from the Makefile without running `make'.
 
9463
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9464
    test -z "$DEPDIR" && continue
 
9465
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9466
    test -z "am__include" && continue
 
9467
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9468
    # When using ansi2knr, U may be empty or an underscore; expand it
 
9469
    U=`sed -n 's/^U = //p' < "$mf"`
 
9470
    # Find all dependency output files, they are included files with
 
9471
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9472
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
9473
    # expansion.
 
9474
    for file in `sed -n "
 
9475
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9476
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9477
      # Make sure the directory exists.
 
9478
      test -f "$dirpart/$file" && continue
 
9479
      fdir=`AS_DIRNAME(["$file"])`
 
9480
      AS_MKDIR_P([$dirpart/$fdir])
 
9481
      # echo "creating $dirpart/$file"
 
9482
      echo '# dummy' > "$dirpart/$file"
 
9483
    done
8124
9484
  done
8125
 
done
 
9485
}
8126
9486
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8127
9487
 
8128
9488
 
8142
9502
# Do all the work for Automake.                             -*- Autoconf -*-
8143
9503
 
8144
9504
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8145
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
9505
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
8146
9506
#
8147
9507
# This file is free software; the Free Software Foundation
8148
9508
# gives unlimited permission to copy and/or distribute it,
8149
9509
# with or without modifications, as long as this notice is preserved.
8150
9510
 
8151
 
# serial 13
 
9511
# serial 16
8152
9512
 
8153
9513
# This macro actually does too much.  Some checks are only needed if
8154
9514
# your package does certain things.  But this isn't really a big deal.
8165
9525
# arguments mandatory, and then we can depend on a new Autoconf
8166
9526
# release and drop the old call support.
8167
9527
AC_DEFUN([AM_INIT_AUTOMAKE],
8168
 
[AC_PREREQ([2.60])dnl
 
9528
[AC_PREREQ([2.62])dnl
8169
9529
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
8170
9530
dnl the ones we care about.
8171
9531
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8216
9576
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8217
9577
AM_MISSING_PROG(AUTOHEADER, autoheader)
8218
9578
AM_MISSING_PROG(MAKEINFO, makeinfo)
8219
 
AM_PROG_INSTALL_SH
8220
 
AM_PROG_INSTALL_STRIP
 
9579
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
9580
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
8221
9581
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
8222
9582
# We need awk for the "check" target.  The system "awk" is bad on
8223
9583
# some platforms.
8225
9585
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8226
9586
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8227
9587
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8228
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8229
 
                             [_AM_PROG_TAR([v7])])])
 
9588
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
9589
                             [_AM_PROG_TAR([v7])])])
8230
9590
_AM_IF_OPTION([no-dependencies],,
8231
9591
[AC_PROVIDE_IFELSE([AC_PROG_CC],
8232
 
                  [_AM_DEPENDENCIES(CC)],
8233
 
                  [define([AC_PROG_CC],
8234
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
9592
                  [_AM_DEPENDENCIES(CC)],
 
9593
                  [define([AC_PROG_CC],
 
9594
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8235
9595
AC_PROVIDE_IFELSE([AC_PROG_CXX],
8236
 
                  [_AM_DEPENDENCIES(CXX)],
8237
 
                  [define([AC_PROG_CXX],
8238
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
9596
                  [_AM_DEPENDENCIES(CXX)],
 
9597
                  [define([AC_PROG_CXX],
 
9598
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8239
9599
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8240
 
                  [_AM_DEPENDENCIES(OBJC)],
8241
 
                  [define([AC_PROG_OBJC],
8242
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
8243
 
])
8244
 
])
 
9600
                  [_AM_DEPENDENCIES(OBJC)],
 
9601
                  [define([AC_PROG_OBJC],
 
9602
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
9603
])
 
9604
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
9605
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
9606
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
9607
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9608
AC_CONFIG_COMMANDS_PRE(dnl
 
9609
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
9610
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
9611
])
 
9612
 
 
9613
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
9614
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
9615
dnl mangled by Autoconf and run in a shell conditional statement.
 
9616
m4_define([_AC_COMPILER_EXEEXT],
 
9617
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
8245
9618
 
8246
9619
 
8247
9620
# When config.status generates a header, we must update the stamp-h file.
8265
9638
done
8266
9639
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
8267
9640
 
8268
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9641
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
8269
9642
#
8270
9643
# This file is free software; the Free Software Foundation
8271
9644
# gives unlimited permission to copy and/or distribute it,
8276
9649
# Define $install_sh.
8277
9650
AC_DEFUN([AM_PROG_INSTALL_SH],
8278
9651
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8279
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
9652
if test x"${install_sh}" != xset; then
 
9653
  case $am_aux_dir in
 
9654
  *\ * | *\     *)
 
9655
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
9656
  *)
 
9657
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
9658
  esac
 
9659
fi
8280
9660
AC_SUBST(install_sh)])
8281
9661
 
8282
9662
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
8303
9683
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
8304
9684
# From Jim Meyering
8305
9685
 
8306
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
9686
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8307
9687
# Free Software Foundation, Inc.
8308
9688
#
8309
9689
# This file is free software; the Free Software Foundation
8310
9690
# gives unlimited permission to copy and/or distribute it,
8311
9691
# with or without modifications, as long as this notice is preserved.
8312
9692
 
8313
 
# serial 4
 
9693
# serial 5
8314
9694
 
 
9695
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
9696
# ----------------------------------
 
9697
# Control maintainer-specific portions of Makefiles.
 
9698
# Default is to disable them, unless `enable' is passed literally.
 
9699
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
9700
# can override the default with the --enable/--disable switch.
8315
9701
AC_DEFUN([AM_MAINTAINER_MODE],
8316
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8317
 
  dnl maintainer-mode is disabled by default
8318
 
  AC_ARG_ENABLE(maintainer-mode,
8319
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
9702
[m4_case(m4_default([$1], [disable]),
 
9703
       [enable], [m4_define([am_maintainer_other], [disable])],
 
9704
       [disable], [m4_define([am_maintainer_other], [enable])],
 
9705
       [m4_define([am_maintainer_other], [enable])
 
9706
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
9707
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
9708
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
9709
  AC_ARG_ENABLE([maintainer-mode],
 
9710
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
8320
9711
                          (and sometimes confusing) to the casual installer],
8321
 
      USE_MAINTAINER_MODE=$enableval,
8322
 
      USE_MAINTAINER_MODE=no)
 
9712
      [USE_MAINTAINER_MODE=$enableval],
 
9713
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
8323
9714
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8324
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
9715
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
8325
9716
  MAINT=$MAINTAINER_MODE_TRUE
8326
 
  AC_SUBST(MAINT)dnl
 
9717
  AC_SUBST([MAINT])dnl
8327
9718
]
8328
9719
)
8329
9720
 
8331
9722
 
8332
9723
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
8333
9724
 
8334
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9725
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
8335
9726
#
8336
9727
# This file is free software; the Free Software Foundation
8337
9728
# gives unlimited permission to copy and/or distribute it,
8338
9729
# with or without modifications, as long as this notice is preserved.
8339
9730
 
8340
 
# serial 3
 
9731
# serial 4
8341
9732
 
8342
9733
# AM_MAKE_INCLUDE()
8343
9734
# -----------------
8346
9737
[am_make=${MAKE-make}
8347
9738
cat > confinc << 'END'
8348
9739
am__doit:
8349
 
        @echo done
 
9740
        @echo this is the am__doit target
8350
9741
.PHONY: am__doit
8351
9742
END
8352
9743
# If we don't find an include directive, just comment out the code.
8356
9747
_am_result=none
8357
9748
# First try GNU make style include.
8358
9749
echo "include confinc" > confmf
8359
 
# We grep out `Entering directory' and `Leaving directory'
8360
 
# messages which can occur if `w' ends up in MAKEFLAGS.
8361
 
# In particular we don't look at `^make:' because GNU make might
8362
 
# be invoked under some other name (usually "gmake"), in which
8363
 
# case it prints its new name instead of `make'.
8364
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8365
 
   am__include=include
8366
 
   am__quote=
8367
 
   _am_result=GNU
8368
 
fi
 
9750
# Ignore all kinds of additional output from `make'.
 
9751
case `$am_make -s -f confmf 2> /dev/null` in #(
 
9752
*the\ am__doit\ target*)
 
9753
  am__include=include
 
9754
  am__quote=
 
9755
  _am_result=GNU
 
9756
  ;;
 
9757
esac
8369
9758
# Now try BSD make style include.
8370
9759
if test "$am__include" = "#"; then
8371
9760
   echo '.include "confinc"' > confmf
8372
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8373
 
      am__include=.include
8374
 
      am__quote="\""
8375
 
      _am_result=BSD
8376
 
   fi
 
9761
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
9762
   *the\ am__doit\ target*)
 
9763
     am__include=.include
 
9764
     am__quote="\""
 
9765
     _am_result=BSD
 
9766
     ;;
 
9767
   esac
8377
9768
fi
8378
9769
AC_SUBST([am__include])
8379
9770
AC_SUBST([am__quote])
8383
9774
 
8384
9775
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
8385
9776
 
8386
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
9777
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
8387
9778
# Free Software Foundation, Inc.
8388
9779
#
8389
9780
# This file is free software; the Free Software Foundation
8390
9781
# gives unlimited permission to copy and/or distribute it,
8391
9782
# with or without modifications, as long as this notice is preserved.
8392
9783
 
8393
 
# serial 5
 
9784
# serial 6
8394
9785
 
8395
9786
# AM_MISSING_PROG(NAME, PROGRAM)
8396
9787
# ------------------------------
8407
9798
AC_DEFUN([AM_MISSING_HAS_RUN],
8408
9799
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8409
9800
AC_REQUIRE_AUX_FILE([missing])dnl
8410
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
9801
if test x"${MISSING+set}" != xset; then
 
9802
  case $am_aux_dir in
 
9803
  *\ * | *\     *)
 
9804
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
9805
  *)
 
9806
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
9807
  esac
 
9808
fi
8411
9809
# Use eval to expand $SHELL
8412
9810
if eval "$MISSING --run true"; then
8413
9811
  am_missing_run="$MISSING --run "
8445
9843
 
8446
9844
# Helper functions for option handling.                     -*- Autoconf -*-
8447
9845
 
8448
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
9846
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
8449
9847
#
8450
9848
# This file is free software; the Free Software Foundation
8451
9849
# gives unlimited permission to copy and/or distribute it,
8452
9850
# with or without modifications, as long as this notice is preserved.
8453
9851
 
8454
 
# serial 3
 
9852
# serial 4
8455
9853
 
8456
9854
# _AM_MANGLE_OPTION(NAME)
8457
9855
# -----------------------
8468
9866
# ----------------------------------
8469
9867
# OPTIONS is a space-separated list of Automake options.
8470
9868
AC_DEFUN([_AM_SET_OPTIONS],
8471
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
9869
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8472
9870
 
8473
9871
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8474
9872
# -------------------------------------------
8478
9876
 
8479
9877
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
8480
9878
 
8481
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
9879
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
8482
9880
# Free Software Foundation, Inc.
8483
9881
#
8484
9882
# This file is free software; the Free Software Foundation
8485
9883
# gives unlimited permission to copy and/or distribute it,
8486
9884
# with or without modifications, as long as this notice is preserved.
8487
9885
 
8488
 
# serial 4
 
9886
# serial 5
8489
9887
 
8490
9888
# AM_SANITY_CHECK
8491
9889
# ---------------
8494
9892
# Just in case
8495
9893
sleep 1
8496
9894
echo timestamp > conftest.file
 
9895
# Reject unsafe characters in $srcdir or the absolute working directory
 
9896
# name.  Accept space and tab only in the latter.
 
9897
am_lf='
 
9898
'
 
9899
case `pwd` in
 
9900
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
9901
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
9902
esac
 
9903
case $srcdir in
 
9904
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
9905
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
9906
esac
 
9907
 
8497
9908
# Do `set' in a subshell so we don't clobber the current shell's
8498
9909
# arguments.  Must try -L first in case configure is actually a
8499
9910
# symlink; some systems play weird games with the mod time of symlinks
8500
9911
# (eg FreeBSD returns the mod time of the symlink's containing
8501
9912
# directory).
8502
9913
if (
8503
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
9914
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8504
9915
   if test "$[*]" = "X"; then
8505
9916
      # -L didn't work.
8506
 
      set X `ls -t $srcdir/configure conftest.file`
 
9917
      set X `ls -t "$srcdir/configure" conftest.file`
8507
9918
   fi
8508
9919
   rm -f conftest.file
8509
9920
   if test "$[*]" != "X $srcdir/configure conftest.file" \
8556
9967
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8557
9968
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8558
9969
 
8559
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
9970
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
8560
9971
#
8561
9972
# This file is free software; the Free Software Foundation
8562
9973
# gives unlimited permission to copy and/or distribute it,
8563
9974
# with or without modifications, as long as this notice is preserved.
8564
9975
 
 
9976
# serial 2
 
9977
 
8565
9978
# _AM_SUBST_NOTMAKE(VARIABLE)
8566
9979
# ---------------------------
8567
9980
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8568
9981
# This macro is traced by Automake.
8569
9982
AC_DEFUN([_AM_SUBST_NOTMAKE])
8570
9983
 
 
9984
# AM_SUBST_NOTMAKE(VARIABLE)
 
9985
# ---------------------------
 
9986
# Public sister of _AM_SUBST_NOTMAKE.
 
9987
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
9988
 
8571
9989
# Check how to create a tarball.                            -*- Autoconf -*-
8572
9990
 
8573
9991
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8664
10082
AC_SUBST([am__untar])
8665
10083
]) # _AM_PROG_TAR
8666
10084
 
 
10085
m4_include([acinclude.m4])