~ubuntu-branches/ubuntu/maverick/at-spi/maverick

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-09-23 08:38:27 UTC
  • mfrom: (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20090923083827-lgmk1ulka14gji51
Tags: 1.28.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006  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.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
m4_ifndef([AC_AUTOCONF_VERSION],
15
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
17
 
[m4_warning([this file was generated for autoconf 2.64.
18
 
You have another version of autoconf.  It may work, but is not guaranteed to.
19
 
If you have problems, you may need to regenerate the build system entirely.
20
 
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
21
18
 
22
19
dnl AM_GCONF_SOURCE_2
23
20
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
55
52
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
56
53
 
57
54
  AC_ARG_ENABLE(schemas-install,
58
 
        AC_HELP_STRING([--disable-schemas-install],
59
 
                       [Disable the schemas installation]),
 
55
     [  --disable-schemas-install       Disable the schemas installation],
60
56
     [case ${enableval} in
61
57
       yes|no) ;;
62
 
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
 
58
       *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
63
59
      esac])
64
60
  AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
65
61
])
167
163
#-----------------
168
164
glib_DEFUN([GLIB_WITH_NLS],
169
165
  dnl NLS is obligatory
170
 
  [USE_NLS=yes
 
166
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
167
    USE_NLS=yes
171
168
    AC_SUBST(USE_NLS)
172
169
 
173
170
    gt_cv_have_gettext=no
811
808
fi
812
809
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
813
810
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
814
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
815
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
811
if test -z "$xgversion" -o -z "$mmversion"; then
816
812
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
817
813
fi
818
814
 
921
917
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
922
918
 
923
919
 
 
920
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
921
 
922
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
923
#
 
924
# This program is free software; you can redistribute it and/or modify
 
925
# it under the terms of the GNU General Public License as published by
 
926
# the Free Software Foundation; either version 2 of the License, or
 
927
# (at your option) any later version.
 
928
#
 
929
# This program is distributed in the hope that it will be useful, but
 
930
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
931
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
932
# General Public License for more details.
 
933
#
 
934
# You should have received a copy of the GNU General Public License
 
935
# along with this program; if not, write to the Free Software
 
936
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
937
#
 
938
# As a special exception to the GNU General Public License, if you
 
939
# distribute this file as part of a program that contains a
 
940
# configuration script generated by Autoconf, you may include it under
 
941
# the same distribution terms that you use for the rest of that program.
 
942
 
 
943
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
944
# ----------------------------------
 
945
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
946
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
947
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
948
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
949
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
950
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
951
fi
 
952
if test -n "$PKG_CONFIG"; then
 
953
        _pkg_min_version=m4_default([$1], [0.9.0])
 
954
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
955
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
956
                AC_MSG_RESULT([yes])
 
957
        else
 
958
                AC_MSG_RESULT([no])
 
959
                PKG_CONFIG=""
 
960
        fi
 
961
                
 
962
fi[]dnl
 
963
])# PKG_PROG_PKG_CONFIG
 
964
 
 
965
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
966
#
 
967
# Check to see whether a particular set of modules exists.  Similar
 
968
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
969
#
 
970
#
 
971
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
972
# this or PKG_CHECK_MODULES is called, or make sure to call
 
973
# PKG_CHECK_EXISTS manually
 
974
# --------------------------------------------------------------
 
975
AC_DEFUN([PKG_CHECK_EXISTS],
 
976
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
977
if test -n "$PKG_CONFIG" && \
 
978
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
979
  m4_ifval([$2], [$2], [:])
 
980
m4_ifvaln([$3], [else
 
981
  $3])dnl
 
982
fi])
 
983
 
 
984
 
 
985
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
986
# ---------------------------------------------
 
987
m4_define([_PKG_CONFIG],
 
988
[if test -n "$$1"; then
 
989
    pkg_cv_[]$1="$$1"
 
990
 elif test -n "$PKG_CONFIG"; then
 
991
    PKG_CHECK_EXISTS([$3],
 
992
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
993
                     [pkg_failed=yes])
 
994
 else
 
995
    pkg_failed=untried
 
996
fi[]dnl
 
997
])# _PKG_CONFIG
 
998
 
 
999
# _PKG_SHORT_ERRORS_SUPPORTED
 
1000
# -----------------------------
 
1001
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
1002
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
1003
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
1004
        _pkg_short_errors_supported=yes
 
1005
else
 
1006
        _pkg_short_errors_supported=no
 
1007
fi[]dnl
 
1008
])# _PKG_SHORT_ERRORS_SUPPORTED
 
1009
 
 
1010
 
 
1011
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
1012
# [ACTION-IF-NOT-FOUND])
 
1013
#
 
1014
#
 
1015
# Note that if there is a possibility the first call to
 
1016
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
1017
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
1018
#
 
1019
#
 
1020
# --------------------------------------------------------------
 
1021
AC_DEFUN([PKG_CHECK_MODULES],
 
1022
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
1023
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
1024
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
1025
 
 
1026
pkg_failed=no
 
1027
AC_MSG_CHECKING([for $1])
 
1028
 
 
1029
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
1030
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
1031
 
 
1032
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
1033
and $1[]_LIBS to avoid the need to call pkg-config.
 
1034
See the pkg-config man page for more details.])
 
1035
 
 
1036
if test $pkg_failed = yes; then
 
1037
        _PKG_SHORT_ERRORS_SUPPORTED
 
1038
        if test $_pkg_short_errors_supported = yes; then
 
1039
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
1040
        else 
 
1041
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
1042
        fi
 
1043
        # Put the nasty error message in config.log where it belongs
 
1044
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
1045
 
 
1046
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
1047
[Package requirements ($2) were not met:
 
1048
 
 
1049
$$1_PKG_ERRORS
 
1050
 
 
1051
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
1052
installed software in a non-standard prefix.
 
1053
 
 
1054
_PKG_TEXT
 
1055
])],
 
1056
                [AC_MSG_RESULT([no])
 
1057
                $4])
 
1058
elif test $pkg_failed = untried; then
 
1059
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
1060
[The pkg-config script could not be found or is too old.  Make sure it
 
1061
is in your PATH or set the PKG_CONFIG environment variable to the full
 
1062
path to pkg-config.
 
1063
 
 
1064
_PKG_TEXT
 
1065
 
 
1066
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
 
1067
                [$4])
 
1068
else
 
1069
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
1070
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
1071
        AC_MSG_RESULT([yes])
 
1072
        ifelse([$3], , :, [$3])
 
1073
fi[]dnl
 
1074
])# PKG_CHECK_MODULES
 
1075
 
 
1076
# isc-posix.m4 serial 2 (gettext-0.11.2)
 
1077
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
 
1078
dnl This file is free software, distributed under the terms of the GNU
 
1079
dnl General Public License.  As a special exception to the GNU General
 
1080
dnl Public License, this file may be distributed as part of a program
 
1081
dnl that contains a configuration script generated by Autoconf, under
 
1082
dnl the same distribution terms as the rest of that program.
 
1083
 
 
1084
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
 
1085
 
 
1086
# This test replaces the one in autoconf.
 
1087
# Currently this macro should have the same name as the autoconf macro
 
1088
# because gettext's gettext.m4 (distributed in the automake package)
 
1089
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
 
1090
# give these diagnostics:
 
1091
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
 
1092
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
 
1093
 
 
1094
undefine([AC_ISC_POSIX])
 
1095
 
 
1096
AC_DEFUN([AC_ISC_POSIX],
 
1097
  [
 
1098
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
 
1099
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
 
1100
  ]
 
1101
)
 
1102
 
924
1103
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
925
 
#
926
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
927
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
928
 
#   Written by Gordon Matzigkeit, 1996
929
 
#
930
 
# This file is free software; the Free Software Foundation gives
931
 
# unlimited permission to copy and/or distribute it, with or without
932
 
# modifications, as long as this notice is preserved.
933
 
 
934
 
m4_define([_LT_COPYING], [dnl
935
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
936
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
937
 
#   Written by Gordon Matzigkeit, 1996
938
 
#
939
 
#   This file is part of GNU Libtool.
940
 
#
941
 
# GNU Libtool is free software; you can redistribute it and/or
942
 
# modify it under the terms of the GNU General Public License as
943
 
# published by the Free Software Foundation; either version 2 of
944
 
# the License, or (at your option) any later version.
945
 
#
946
 
# As a special exception to the GNU General Public License,
947
 
# if you distribute this file as part of a program or library that
948
 
# is built using GNU Libtool, you may include this file under the
949
 
# same distribution terms that you use for the rest of that program.
950
 
#
951
 
# GNU Libtool is distributed in the hope that it will be useful,
952
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
953
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
954
 
# GNU General Public License for more details.
955
 
#
956
 
# You should have received a copy of the GNU General Public License
957
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
958
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
959
 
# obtained by writing to the Free Software Foundation, Inc.,
960
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
961
 
])
962
 
 
963
 
# serial 56 LT_INIT
964
 
 
965
 
 
966
 
# LT_PREREQ(VERSION)
967
 
# ------------------
968
 
# Complain and exit if this libtool version is less that VERSION.
969
 
m4_defun([LT_PREREQ],
970
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
971
 
       [m4_default([$3],
972
 
                   [m4_fatal([Libtool version $1 or higher is required],
973
 
                             63)])],
974
 
       [$2])])
975
 
 
976
 
 
977
 
# _LT_CHECK_BUILDDIR
978
 
# ------------------
979
 
# Complain if the absolute build directory name contains unusual characters
980
 
m4_defun([_LT_CHECK_BUILDDIR],
981
 
[case `pwd` in
982
 
  *\ * | *\     *)
983
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
984
 
esac
985
 
])
986
 
 
987
 
 
988
 
# LT_INIT([OPTIONS])
989
 
# ------------------
990
 
AC_DEFUN([LT_INIT],
991
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
992
 
AC_BEFORE([$0], [LT_LANG])dnl
993
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
994
 
AC_BEFORE([$0], [LTDL_INIT])dnl
995
 
m4_require([_LT_CHECK_BUILDDIR])dnl
996
 
 
997
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
998
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
999
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1000
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1001
 
dnl unless we require an AC_DEFUNed macro:
1002
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1003
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
1004
 
AC_REQUIRE([LTVERSION_VERSION])dnl
1005
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1006
 
m4_require([_LT_PROG_LTMAIN])dnl
1007
 
 
1008
 
dnl Parse OPTIONS
1009
 
_LT_SET_OPTIONS([$0], [$1])
 
1104
 
 
1105
# serial 48 AC_PROG_LIBTOOL
 
1106
 
 
1107
 
 
1108
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1109
# -----------------------------------------------------------
 
1110
# If this macro is not defined by Autoconf, define it here.
 
1111
m4_ifdef([AC_PROVIDE_IFELSE],
 
1112
         [],
 
1113
         [m4_define([AC_PROVIDE_IFELSE],
 
1114
                 [m4_ifdef([AC_PROVIDE_$1],
 
1115
                           [$2], [$3])])])
 
1116
 
 
1117
 
 
1118
# AC_PROG_LIBTOOL
 
1119
# ---------------
 
1120
AC_DEFUN([AC_PROG_LIBTOOL],
 
1121
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
1122
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
1123
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
1124
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1125
    [AC_LIBTOOL_CXX],
 
1126
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
1127
  ])])
 
1128
dnl And a similar setup for Fortran 77 support
 
1129
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1130
    [AC_LIBTOOL_F77],
 
1131
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
1132
])])
 
1133
 
 
1134
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
1135
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
1136
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
1137
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1138
    [AC_LIBTOOL_GCJ],
 
1139
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1140
      [AC_LIBTOOL_GCJ],
 
1141
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
1142
        [AC_LIBTOOL_GCJ],
 
1143
      [ifdef([AC_PROG_GCJ],
 
1144
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1145
       ifdef([A][M_PROG_GCJ],
 
1146
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1147
       ifdef([LT_AC_PROG_GCJ],
 
1148
             [define([LT_AC_PROG_GCJ],
 
1149
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
1150
])])# AC_PROG_LIBTOOL
 
1151
 
 
1152
 
 
1153
# _AC_PROG_LIBTOOL
 
1154
# ----------------
 
1155
AC_DEFUN([_AC_PROG_LIBTOOL],
 
1156
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
1157
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
1158
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
1159
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1010
1160
 
1011
1161
# This can be used to rebuild libtool when needed
1012
 
LIBTOOL_DEPS="$ltmain"
 
1162
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1013
1163
 
1014
1164
# Always use our own libtool.
1015
1165
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1016
1166
AC_SUBST(LIBTOOL)dnl
1017
1167
 
1018
 
_LT_SETUP
1019
 
 
1020
 
# Only expand once:
1021
 
m4_define([LT_INIT])
1022
 
])# LT_INIT
1023
 
 
1024
 
# Old names:
1025
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1026
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1027
 
dnl aclocal-1.4 backwards compatibility:
1028
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1029
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1030
 
 
1031
 
 
1032
 
# _LT_CC_BASENAME(CC)
1033
 
# -------------------
1034
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1035
 
m4_defun([_LT_CC_BASENAME],
1036
 
[for cc_temp in $1""; do
1037
 
  case $cc_temp in
1038
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1039
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1040
 
    \-*) ;;
1041
 
    *) break;;
1042
 
  esac
1043
 
done
1044
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1045
 
])
1046
 
 
1047
 
 
1048
 
# _LT_FILEUTILS_DEFAULTS
1049
 
# ----------------------
1050
 
# It is okay to use these file commands and assume they have been set
1051
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1052
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
1053
 
[: ${CP="cp -f"}
1054
 
: ${MV="mv -f"}
1055
 
: ${RM="rm -f"}
1056
 
])# _LT_FILEUTILS_DEFAULTS
1057
 
 
1058
 
 
1059
 
# _LT_SETUP
1060
 
# ---------
1061
 
m4_defun([_LT_SETUP],
1062
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1168
# Prevent multiple expansion
 
1169
define([AC_PROG_LIBTOOL], [])
 
1170
])# _AC_PROG_LIBTOOL
 
1171
 
 
1172
 
 
1173
# AC_LIBTOOL_SETUP
 
1174
# ----------------
 
1175
AC_DEFUN([AC_LIBTOOL_SETUP],
 
1176
[AC_PREREQ(2.50)dnl
 
1177
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
1178
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
1179
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
1180
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1063
1181
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1064
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
1065
 
_LT_DECL([], [host], [0])dnl
1066
 
_LT_DECL([], [host_os], [0])dnl
1067
 
dnl
1068
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
1069
 
_LT_DECL([], [build], [0])dnl
1070
 
_LT_DECL([], [build_os], [0])dnl
1071
 
dnl
1072
1182
AC_REQUIRE([AC_PROG_CC])dnl
1073
 
AC_REQUIRE([LT_PATH_LD])dnl
1074
 
AC_REQUIRE([LT_PATH_NM])dnl
1075
 
dnl
 
1183
AC_REQUIRE([AC_PROG_LD])dnl
 
1184
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
1185
AC_REQUIRE([AC_PROG_NM])dnl
 
1186
 
1076
1187
AC_REQUIRE([AC_PROG_LN_S])dnl
1077
 
test -z "$LN_S" && LN_S="ln -s"
1078
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1079
 
dnl
1080
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1081
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1082
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1083
 
dnl
1084
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1085
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1086
 
m4_require([_LT_CMD_RELOAD])dnl
1087
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1088
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1089
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1090
 
 
1091
 
_LT_CONFIG_LIBTOOL_INIT([
1092
 
# See if we are running on zsh, and set the options which allow our
1093
 
# commands through without removal of \ escapes INIT.
1094
 
if test -n "\${ZSH_VERSION+set}" ; then
1095
 
   setopt NO_GLOB_SUBST
1096
 
fi
1097
 
])
1098
 
if test -n "${ZSH_VERSION+set}" ; then
1099
 
   setopt NO_GLOB_SUBST
1100
 
fi
1101
 
 
1102
 
_LT_CHECK_OBJDIR
1103
 
 
1104
 
m4_require([_LT_TAG_COMPILER])dnl
1105
 
_LT_PROG_ECHO_BACKSLASH
 
1188
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
1189
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
1190
AC_REQUIRE([AC_OBJEXT])dnl
 
1191
AC_REQUIRE([AC_EXEEXT])dnl
 
1192
dnl
 
1193
 
 
1194
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1195
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1196
AC_LIBTOOL_OBJDIR
 
1197
 
 
1198
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1199
_LT_AC_PROG_ECHO_BACKSLASH
1106
1200
 
1107
1201
case $host_os in
1108
1202
aix3*)
1118
1212
 
1119
1213
# Sed substitution that helps us do robust quoting.  It backslashifies
1120
1214
# metacharacters that are still active within double-quoted strings.
1121
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
1215
Xsed='sed -e 1s/^X//'
 
1216
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1122
1217
 
1123
1218
# Same as above, but do not quote variable references.
1124
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
1219
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1125
1220
 
1126
1221
# Sed substitution to delay expansion of an escaped shell variable in a
1127
1222
# double_quote_subst'ed string.
1128
1223
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1129
1224
 
1130
 
# Sed substitution to delay expansion of an escaped single quote.
1131
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1132
 
 
1133
1225
# Sed substitution to avoid accidental globbing in evaled expressions
1134
1226
no_glob_subst='s/\*/\\\*/g'
1135
1227
 
 
1228
# Constants:
 
1229
rm="rm -f"
 
1230
 
1136
1231
# Global variables:
1137
 
ofile=libtool
 
1232
default_ofile=libtool
1138
1233
can_build_shared=yes
1139
1234
 
1140
1235
# All known linkers require a `.a' archive for static linking (except MSVC,
1141
1236
# which needs '.lib').
1142
1237
libext=a
1143
 
 
 
1238
ltmain="$ac_aux_dir/ltmain.sh"
 
1239
ofile="$default_ofile"
1144
1240
with_gnu_ld="$lt_cv_prog_gnu_ld"
1145
1241
 
 
1242
AC_CHECK_TOOL(AR, ar, false)
 
1243
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1244
AC_CHECK_TOOL(STRIP, strip, :)
 
1245
 
1146
1246
old_CC="$CC"
1147
1247
old_CFLAGS="$CFLAGS"
1148
1248
 
1149
1249
# Set sane defaults for various variables
 
1250
test -z "$AR" && AR=ar
 
1251
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1252
test -z "$AS" && AS=as
1150
1253
test -z "$CC" && CC=cc
1151
1254
test -z "$LTCC" && LTCC=$CC
1152
1255
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
1256
test -z "$DLLTOOL" && DLLTOOL=dlltool
1153
1257
test -z "$LD" && LD=ld
 
1258
test -z "$LN_S" && LN_S="ln -s"
 
1259
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1260
test -z "$NM" && NM=nm
 
1261
test -z "$SED" && SED=sed
 
1262
test -z "$OBJDUMP" && OBJDUMP=objdump
 
1263
test -z "$RANLIB" && RANLIB=:
 
1264
test -z "$STRIP" && STRIP=:
1154
1265
test -z "$ac_objext" && ac_objext=o
1155
1266
 
 
1267
# Determine commands to create old-style static archives.
 
1268
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1269
old_postinstall_cmds='chmod 644 $oldlib'
 
1270
old_postuninstall_cmds=
 
1271
 
 
1272
if test -n "$RANLIB"; then
 
1273
  case $host_os in
 
1274
  openbsd*)
 
1275
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1276
    ;;
 
1277
  *)
 
1278
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1279
    ;;
 
1280
  esac
 
1281
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1282
fi
 
1283
 
1156
1284
_LT_CC_BASENAME([$compiler])
1157
1285
 
1158
1286
# Only perform the check for file, if the check method requires it
1159
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1160
1287
case $deplibs_check_method in
1161
1288
file_magic*)
1162
1289
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1163
 
    _LT_PATH_MAGIC
 
1290
    AC_PATH_MAGIC
1164
1291
  fi
1165
1292
  ;;
1166
1293
esac
1167
1294
 
 
1295
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
1296
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1297
enable_win32_dll=yes, enable_win32_dll=no)
 
1298
 
 
1299
AC_ARG_ENABLE([libtool-lock],
 
1300
    [AC_HELP_STRING([--disable-libtool-lock],
 
1301
        [avoid locking (might break parallel builds)])])
 
1302
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1303
 
 
1304
AC_ARG_WITH([pic],
 
1305
    [AC_HELP_STRING([--with-pic],
 
1306
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
1307
    [pic_mode="$withval"],
 
1308
    [pic_mode=default])
 
1309
test -z "$pic_mode" && pic_mode=default
 
1310
 
1168
1311
# Use C for the default configuration in the libtool script
1169
 
LT_SUPPORTED_TAG([CC])
1170
 
_LT_LANG_C_CONFIG
1171
 
_LT_LANG_DEFAULT_CONFIG
1172
 
_LT_CONFIG_COMMANDS
1173
 
])# _LT_SETUP
1174
 
 
1175
 
 
1176
 
# _LT_PROG_LTMAIN
1177
 
# ---------------
1178
 
# Note that this code is called both from `configure', and `config.status'
1179
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
1180
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1181
 
# so we pass a copy along to make sure it has a sensible value anyway.
1182
 
m4_defun([_LT_PROG_LTMAIN],
1183
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1184
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1185
 
ltmain="$ac_aux_dir/ltmain.sh"
1186
 
])# _LT_PROG_LTMAIN
1187
 
 
1188
 
 
1189
 
 
1190
 
# So that we can recreate a full libtool script including additional
1191
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1192
 
# in macros and then make a single call at the end using the `libtool'
1193
 
# label.
1194
 
 
1195
 
 
1196
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1197
 
# ----------------------------------------
1198
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1199
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1200
 
[m4_ifval([$1],
1201
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1202
 
                     [$1
1203
 
])])])
1204
 
 
1205
 
# Initialize.
1206
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1207
 
 
1208
 
 
1209
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
1210
 
# ------------------------------
1211
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1212
 
m4_define([_LT_CONFIG_LIBTOOL],
1213
 
[m4_ifval([$1],
1214
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1215
 
                     [$1
1216
 
])])])
1217
 
 
1218
 
# Initialize.
1219
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1220
 
 
1221
 
 
1222
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1223
 
# -----------------------------------------------------
1224
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1225
 
[_LT_CONFIG_LIBTOOL([$1])
1226
 
_LT_CONFIG_LIBTOOL_INIT([$2])
1227
 
])
1228
 
 
1229
 
 
1230
 
# _LT_FORMAT_COMMENT([COMMENT])
1231
 
# -----------------------------
1232
 
# Add leading comment marks to the start of each line, and a trailing
1233
 
# full-stop to the whole comment if one is not present already.
1234
 
m4_define([_LT_FORMAT_COMMENT],
1235
 
[m4_ifval([$1], [
1236
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1237
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1238
 
)])
1239
 
 
1240
 
 
1241
 
 
1242
 
 
1243
 
 
1244
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1245
 
# -------------------------------------------------------------------
1246
 
# CONFIGNAME is the name given to the value in the libtool script.
1247
 
# VARNAME is the (base) name used in the configure script.
1248
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1249
 
# VARNAME.  Any other value will be used directly.
1250
 
m4_define([_LT_DECL],
1251
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1252
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1253
 
        [m4_ifval([$1], [$1], [$2])])
1254
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1255
 
    m4_ifval([$4],
1256
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1257
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
1258
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
1259
 
])
1260
 
 
1261
 
 
1262
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1263
 
# --------------------------------------------------------
1264
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1265
 
 
1266
 
 
1267
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1268
 
# ------------------------------------------------
1269
 
m4_define([lt_decl_tag_varnames],
1270
 
[_lt_decl_filter([tagged?], [yes], $@)])
1271
 
 
1272
 
 
1273
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1274
 
# ---------------------------------------------------------
1275
 
m4_define([_lt_decl_filter],
1276
 
[m4_case([$#],
1277
 
  [0], [m4_fatal([$0: too few arguments: $#])],
1278
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1279
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1280
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1281
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1282
 
])
1283
 
 
1284
 
 
1285
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1286
 
# --------------------------------------------------
1287
 
m4_define([lt_decl_quote_varnames],
1288
 
[_lt_decl_filter([value], [1], $@)])
1289
 
 
1290
 
 
1291
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1292
 
# ---------------------------------------------------
1293
 
m4_define([lt_decl_dquote_varnames],
1294
 
[_lt_decl_filter([value], [2], $@)])
1295
 
 
1296
 
 
1297
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1298
 
# ---------------------------------------------------
1299
 
m4_define([lt_decl_varnames_tagged],
1300
 
[m4_assert([$# <= 2])dnl
1301
 
_$0(m4_quote(m4_default([$1], [[, ]])),
1302
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1303
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1304
 
m4_define([_lt_decl_varnames_tagged],
1305
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1306
 
 
1307
 
 
1308
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1309
 
# ------------------------------------------------
1310
 
m4_define([lt_decl_all_varnames],
1311
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1312
 
     m4_if([$2], [],
1313
 
           m4_quote(lt_decl_varnames),
1314
 
        m4_quote(m4_shift($@))))[]dnl
1315
 
])
1316
 
m4_define([_lt_decl_all_varnames],
1317
 
[lt_join($@, lt_decl_varnames_tagged([$1],
1318
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1319
 
])
1320
 
 
1321
 
 
1322
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1323
 
# ------------------------------------
1324
 
# Quote a variable value, and forward it to `config.status' so that its
1325
 
# declaration there will have the same value as in `configure'.  VARNAME
1326
 
# must have a single quote delimited value for this to work.
1327
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
1328
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1329
 
 
1330
 
 
1331
 
# _LT_CONFIG_STATUS_DECLARATIONS
1332
 
# ------------------------------
1333
 
# We delimit libtool config variables with single quotes, so when
1334
 
# we write them to config.status, we have to be sure to quote all
1335
 
# embedded single quotes properly.  In configure, this macro expands
1336
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1337
 
#
1338
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1339
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1340
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1341
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1342
 
 
1343
 
 
1344
 
# _LT_LIBTOOL_TAGS
1345
 
# ----------------
1346
 
# Output comment and list of tags supported by the script
1347
 
m4_defun([_LT_LIBTOOL_TAGS],
1348
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1349
 
available_tags="_LT_TAGS"dnl
1350
 
])
1351
 
 
1352
 
 
1353
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1354
 
# -----------------------------------
1355
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
1356
 
# expand to a commented shell variable setting:
1357
 
#
1358
 
#    # Some comment about what VAR is for.
1359
 
#    visible_name=$lt_internal_name
1360
 
m4_define([_LT_LIBTOOL_DECLARE],
1361
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1362
 
                                           [description])))[]dnl
1363
 
m4_pushdef([_libtool_name],
1364
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1365
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1366
 
    [0], [_libtool_name=[$]$1],
1367
 
    [1], [_libtool_name=$lt_[]$1],
1368
 
    [2], [_libtool_name=$lt_[]$1],
1369
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1370
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1371
 
])
1372
 
 
1373
 
 
1374
 
# _LT_LIBTOOL_CONFIG_VARS
1375
 
# -----------------------
1376
 
# Produce commented declarations of non-tagged libtool config variables
1377
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1378
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1379
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1380
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1381
 
[m4_foreach([_lt_var],
1382
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1383
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1384
 
 
1385
 
 
1386
 
# _LT_LIBTOOL_TAG_VARS(TAG)
1387
 
# -------------------------
1388
 
m4_define([_LT_LIBTOOL_TAG_VARS],
1389
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1390
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1391
 
 
1392
 
 
1393
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
1394
 
# ------------------------------
1395
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1396
 
 
1397
 
 
1398
 
# _LT_CONFIG_COMMANDS
 
1312
tagname=
 
1313
AC_LIBTOOL_LANG_C_CONFIG
 
1314
_LT_AC_TAGCONFIG
 
1315
])# AC_LIBTOOL_SETUP
 
1316
 
 
1317
 
 
1318
# _LT_AC_SYS_COMPILER
1399
1319
# -------------------
1400
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1401
 
# variables for single and double quote escaping we saved from calls
1402
 
# to _LT_DECL, we can put quote escaped variables declarations
1403
 
# into `config.status', and then the shell code to quote escape them in
1404
 
# for loops in `config.status'.  Finally, any additional code accumulated
1405
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1406
 
m4_defun([_LT_CONFIG_COMMANDS],
1407
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1408
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
1409
 
        dnl instead of duplicating it all over again into config.status,
1410
 
        dnl then we will have config.status run $CONFIG_LT later, so it
1411
 
        dnl needs to know what name is stored there:
1412
 
        [AC_CONFIG_COMMANDS([libtool],
1413
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1414
 
    dnl If the libtool generation code is destined for config.status,
1415
 
    dnl expand the accumulated commands and init code now:
1416
 
    [AC_CONFIG_COMMANDS([libtool],
1417
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1418
 
])#_LT_CONFIG_COMMANDS
1419
 
 
1420
 
 
1421
 
# Initialize.
1422
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1423
 
[
1424
 
 
1425
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1426
 
# if CDPATH is set.
1427
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1428
 
 
1429
 
sed_quote_subst='$sed_quote_subst'
1430
 
double_quote_subst='$double_quote_subst'
1431
 
delay_variable_subst='$delay_variable_subst'
1432
 
_LT_CONFIG_STATUS_DECLARATIONS
1433
 
LTCC='$LTCC'
1434
 
LTCFLAGS='$LTCFLAGS'
1435
 
compiler='$compiler_DEFAULT'
1436
 
 
1437
 
# Quote evaled strings.
1438
 
for var in lt_decl_all_varnames([[ \
1439
 
]], lt_decl_quote_varnames); do
1440
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1441
 
    *[[\\\\\\\`\\"\\\$]]*)
1442
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1443
 
      ;;
1444
 
    *)
1445
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1446
 
      ;;
1447
 
    esac
1448
 
done
1449
 
 
1450
 
# Double-quote double-evaled strings.
1451
 
for var in lt_decl_all_varnames([[ \
1452
 
]], lt_decl_dquote_varnames); do
1453
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1454
 
    *[[\\\\\\\`\\"\\\$]]*)
1455
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1456
 
      ;;
1457
 
    *)
1458
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1459
 
      ;;
1460
 
    esac
1461
 
done
1462
 
 
1463
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1464
 
case \$lt_ECHO in
1465
 
*'\\\[$]0 --fallback-echo"')dnl "
1466
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1467
 
  ;;
1468
 
esac
1469
 
 
1470
 
_LT_OUTPUT_LIBTOOL_INIT
1471
 
])
1472
 
 
1473
 
 
1474
 
# LT_OUTPUT
1475
 
# ---------
1476
 
# This macro allows early generation of the libtool script (before
1477
 
# AC_OUTPUT is called), incase it is used in configure for compilation
1478
 
# tests.
1479
 
AC_DEFUN([LT_OUTPUT],
1480
 
[: ${CONFIG_LT=./config.lt}
1481
 
AC_MSG_NOTICE([creating $CONFIG_LT])
1482
 
cat >"$CONFIG_LT" <<_LTEOF
1483
 
#! $SHELL
1484
 
# Generated by $as_me.
1485
 
# Run this file to recreate a libtool stub with the current configuration.
1486
 
 
1487
 
lt_cl_silent=false
1488
 
SHELL=\${CONFIG_SHELL-$SHELL}
1489
 
_LTEOF
1490
 
 
1491
 
cat >>"$CONFIG_LT" <<\_LTEOF
1492
 
AS_SHELL_SANITIZE
1493
 
_AS_PREPARE
1494
 
 
1495
 
exec AS_MESSAGE_FD>&1
1496
 
exec AS_MESSAGE_LOG_FD>>config.log
1497
 
{
1498
 
  echo
1499
 
  AS_BOX([Running $as_me.])
1500
 
} >&AS_MESSAGE_LOG_FD
1501
 
 
1502
 
lt_cl_help="\
1503
 
\`$as_me' creates a local libtool stub from the current configuration,
1504
 
for use in further configure time tests before the real libtool is
1505
 
generated.
1506
 
 
1507
 
Usage: $[0] [[OPTIONS]]
1508
 
 
1509
 
  -h, --help      print this help, then exit
1510
 
  -V, --version   print version number, then exit
1511
 
  -q, --quiet     do not print progress messages
1512
 
  -d, --debug     don't remove temporary files
1513
 
 
1514
 
Report bugs to <bug-libtool@gnu.org>."
1515
 
 
1516
 
lt_cl_version="\
1517
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1518
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1519
 
configured by $[0], generated by m4_PACKAGE_STRING.
1520
 
 
1521
 
Copyright (C) 2008 Free Software Foundation, Inc.
1522
 
This config.lt script is free software; the Free Software Foundation
1523
 
gives unlimited permision to copy, distribute and modify it."
1524
 
 
1525
 
while test $[#] != 0
1526
 
do
1527
 
  case $[1] in
1528
 
    --version | --v* | -V )
1529
 
      echo "$lt_cl_version"; exit 0 ;;
1530
 
    --help | --h* | -h )
1531
 
      echo "$lt_cl_help"; exit 0 ;;
1532
 
    --debug | --d* | -d )
1533
 
      debug=: ;;
1534
 
    --quiet | --q* | --silent | --s* | -q )
1535
 
      lt_cl_silent=: ;;
1536
 
 
1537
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1538
 
Try \`$[0] --help' for more information.]) ;;
1539
 
 
1540
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1541
 
Try \`$[0] --help' for more information.]) ;;
1542
 
  esac
1543
 
  shift
1544
 
done
1545
 
 
1546
 
if $lt_cl_silent; then
1547
 
  exec AS_MESSAGE_FD>/dev/null
1548
 
fi
1549
 
_LTEOF
1550
 
 
1551
 
cat >>"$CONFIG_LT" <<_LTEOF
1552
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1553
 
_LTEOF
1554
 
 
1555
 
cat >>"$CONFIG_LT" <<\_LTEOF
1556
 
AC_MSG_NOTICE([creating $ofile])
1557
 
_LT_OUTPUT_LIBTOOL_COMMANDS
1558
 
AS_EXIT(0)
1559
 
_LTEOF
1560
 
chmod +x "$CONFIG_LT"
1561
 
 
1562
 
# configure is writing to config.log, but config.lt does its own redirection,
1563
 
# appending to config.log, which fails on DOS, as config.log is still kept
1564
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1565
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
1566
 
if test "$no_create" != yes; then
1567
 
  lt_cl_success=:
1568
 
  test "$silent" = yes &&
1569
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1570
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1571
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1572
 
  exec AS_MESSAGE_LOG_FD>>config.log
1573
 
  $lt_cl_success || AS_EXIT(1)
1574
 
fi
1575
 
])# LT_OUTPUT
1576
 
 
1577
 
 
1578
 
# _LT_CONFIG(TAG)
1579
 
# ---------------
1580
 
# If TAG is the built-in tag, create an initial libtool script with a
1581
 
# default configuration from the untagged config vars.  Otherwise add code
1582
 
# to config.status for appending the configuration named by TAG from the
1583
 
# matching tagged config vars.
1584
 
m4_defun([_LT_CONFIG],
1585
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1586
 
_LT_CONFIG_SAVE_COMMANDS([
1587
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1588
 
  m4_if(_LT_TAG, [C], [
1589
 
    # See if we are running on zsh, and set the options which allow our
1590
 
    # commands through without removal of \ escapes.
1591
 
    if test -n "${ZSH_VERSION+set}" ; then
1592
 
      setopt NO_GLOB_SUBST
1593
 
    fi
1594
 
 
1595
 
    cfgfile="${ofile}T"
1596
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1597
 
    $RM "$cfgfile"
1598
 
 
1599
 
    cat <<_LT_EOF >> "$cfgfile"
1600
 
#! $SHELL
1601
 
 
1602
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1603
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1604
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1605
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1606
 
#
1607
 
_LT_COPYING
1608
 
_LT_LIBTOOL_TAGS
1609
 
 
1610
 
# ### BEGIN LIBTOOL CONFIG
1611
 
_LT_LIBTOOL_CONFIG_VARS
1612
 
_LT_LIBTOOL_TAG_VARS
1613
 
# ### END LIBTOOL CONFIG
1614
 
 
1615
 
_LT_EOF
1616
 
 
1617
 
  case $host_os in
1618
 
  aix3*)
1619
 
    cat <<\_LT_EOF >> "$cfgfile"
1620
 
# AIX sometimes has problems with the GCC collect2 program.  For some
1621
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
1622
 
# vanish in a puff of smoke.
1623
 
if test "X${COLLECT_NAMES+set}" != Xset; then
1624
 
  COLLECT_NAMES=
1625
 
  export COLLECT_NAMES
1626
 
fi
1627
 
_LT_EOF
1628
 
    ;;
1629
 
  esac
1630
 
 
1631
 
  _LT_PROG_LTMAIN
1632
 
 
1633
 
  # We use sed instead of cat because bash on DJGPP gets confused if
1634
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1635
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
1636
 
  # is reportedly fixed, but why not run on old versions too?
1637
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1638
 
    || (rm -f "$cfgfile"; exit 1)
1639
 
 
1640
 
  _LT_PROG_XSI_SHELLFNS
1641
 
 
1642
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1643
 
    || (rm -f "$cfgfile"; exit 1)
1644
 
 
1645
 
  mv -f "$cfgfile" "$ofile" ||
1646
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1647
 
  chmod +x "$ofile"
1648
 
],
1649
 
[cat <<_LT_EOF >> "$ofile"
1650
 
 
1651
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1652
 
dnl in a comment (ie after a #).
1653
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
1654
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1655
 
# ### END LIBTOOL TAG CONFIG: $1
1656
 
_LT_EOF
1657
 
])dnl /m4_if
1658
 
],
1659
 
[m4_if([$1], [], [
1660
 
    PACKAGE='$PACKAGE'
1661
 
    VERSION='$VERSION'
1662
 
    TIMESTAMP='$TIMESTAMP'
1663
 
    RM='$RM'
1664
 
    ofile='$ofile'], [])
1665
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
1666
 
])# _LT_CONFIG
1667
 
 
1668
 
 
1669
 
# LT_SUPPORTED_TAG(TAG)
1670
 
# ---------------------
1671
 
# Trace this macro to discover what tags are supported by the libtool
1672
 
# --tag option, using:
1673
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1674
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
1675
 
 
1676
 
 
1677
 
# C support is built-in for now
1678
 
m4_define([_LT_LANG_C_enabled], [])
1679
 
m4_define([_LT_TAGS], [])
1680
 
 
1681
 
 
1682
 
# LT_LANG(LANG)
1683
 
# -------------
1684
 
# Enable libtool support for the given language if not already enabled.
1685
 
AC_DEFUN([LT_LANG],
1686
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1687
 
m4_case([$1],
1688
 
  [C],                  [_LT_LANG(C)],
1689
 
  [C++],                [_LT_LANG(CXX)],
1690
 
  [Java],               [_LT_LANG(GCJ)],
1691
 
  [Fortran 77],         [_LT_LANG(F77)],
1692
 
  [Fortran],            [_LT_LANG(FC)],
1693
 
  [Windows Resource],   [_LT_LANG(RC)],
1694
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1695
 
    [_LT_LANG($1)],
1696
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1697
 
])# LT_LANG
1698
 
 
1699
 
 
1700
 
# _LT_LANG(LANGNAME)
1701
 
# ------------------
1702
 
m4_defun([_LT_LANG],
1703
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1704
 
  [LT_SUPPORTED_TAG([$1])dnl
1705
 
  m4_append([_LT_TAGS], [$1 ])dnl
1706
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1707
 
  _LT_LANG_$1_CONFIG($1)])dnl
1708
 
])# _LT_LANG
1709
 
 
1710
 
 
1711
 
# _LT_LANG_DEFAULT_CONFIG
1712
 
# -----------------------
1713
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1714
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1715
 
  [LT_LANG(CXX)],
1716
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1717
 
 
1718
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
1719
 
  [LT_LANG(F77)],
1720
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1721
 
 
1722
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
1723
 
  [LT_LANG(FC)],
1724
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1725
 
 
1726
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1727
 
dnl pulling things in needlessly.
1728
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1729
 
  [LT_LANG(GCJ)],
1730
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1731
 
    [LT_LANG(GCJ)],
1732
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1733
 
      [LT_LANG(GCJ)],
1734
 
      [m4_ifdef([AC_PROG_GCJ],
1735
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1736
 
       m4_ifdef([A][M_PROG_GCJ],
1737
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1738
 
       m4_ifdef([LT_PROG_GCJ],
1739
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1740
 
 
1741
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
1742
 
  [LT_LANG(RC)],
1743
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1744
 
])# _LT_LANG_DEFAULT_CONFIG
1745
 
 
1746
 
# Obsolete macros:
1747
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1748
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1749
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1750
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1751
 
dnl aclocal-1.4 backwards compatibility:
1752
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1753
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1754
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1755
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1756
 
 
1757
 
 
1758
 
# _LT_TAG_COMPILER
1759
 
# ----------------
1760
 
m4_defun([_LT_TAG_COMPILER],
 
1320
AC_DEFUN([_LT_AC_SYS_COMPILER],
1761
1321
[AC_REQUIRE([AC_PROG_CC])dnl
1762
1322
 
1763
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1764
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1765
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1766
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1767
 
 
1768
1323
# If no C compiler was specified, use CC.
1769
1324
LTCC=${LTCC-"$CC"}
1770
1325
 
1773
1328
 
1774
1329
# Allow CC to be a program name with arguments.
1775
1330
compiler=$CC
1776
 
])# _LT_TAG_COMPILER
 
1331
])# _LT_AC_SYS_COMPILER
 
1332
 
 
1333
 
 
1334
# _LT_CC_BASENAME(CC)
 
1335
# -------------------
 
1336
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1337
AC_DEFUN([_LT_CC_BASENAME],
 
1338
[for cc_temp in $1""; do
 
1339
  case $cc_temp in
 
1340
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1341
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1342
    \-*) ;;
 
1343
    *) break;;
 
1344
  esac
 
1345
done
 
1346
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1347
])
1777
1348
 
1778
1349
 
1779
1350
# _LT_COMPILER_BOILERPLATE
1780
1351
# ------------------------
1781
1352
# Check for compiler boilerplate output or warnings with
1782
1353
# the simple compiler test code.
1783
 
m4_defun([_LT_COMPILER_BOILERPLATE],
1784
 
[m4_require([_LT_DECL_SED])dnl
1785
 
ac_outfile=conftest.$ac_objext
1786
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1354
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
1355
[ac_outfile=conftest.$ac_objext
 
1356
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1787
1357
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1788
1358
_lt_compiler_boilerplate=`cat conftest.err`
1789
 
$RM conftest*
 
1359
$rm conftest*
1790
1360
])# _LT_COMPILER_BOILERPLATE
1791
1361
 
1792
1362
 
1794
1364
# ----------------------
1795
1365
# Check for linker boilerplate output or warnings with
1796
1366
# the simple link test code.
1797
 
m4_defun([_LT_LINKER_BOILERPLATE],
1798
 
[m4_require([_LT_DECL_SED])dnl
1799
 
ac_outfile=conftest.$ac_objext
1800
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
1367
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
1368
[ac_outfile=conftest.$ac_objext
 
1369
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1801
1370
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1802
1371
_lt_linker_boilerplate=`cat conftest.err`
1803
 
$RM -r conftest*
 
1372
$rm conftest*
1804
1373
])# _LT_LINKER_BOILERPLATE
1805
1374
 
1806
 
# _LT_REQUIRED_DARWIN_CHECKS
1807
 
# -------------------------
1808
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1809
 
  case $host_os in
1810
 
    rhapsody* | darwin*)
1811
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1812
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1813
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1814
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1815
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1816
 
    _LT_DECL([], [DSYMUTIL], [1],
1817
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1818
 
    _LT_DECL([], [NMEDIT], [1],
1819
 
      [Tool to change global to local symbols on Mac OS X])
1820
 
    _LT_DECL([], [LIPO], [1],
1821
 
      [Tool to manipulate fat objects and archives on Mac OS X])
1822
 
    _LT_DECL([], [OTOOL], [1],
1823
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1824
 
    _LT_DECL([], [OTOOL64], [1],
1825
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1826
 
 
1827
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1828
 
      [lt_cv_apple_cc_single_mod=no
1829
 
      if test -z "${LT_MULTI_MODULE}"; then
1830
 
        # By default we will add the -single_module flag. You can override
1831
 
        # by either setting the environment variable LT_MULTI_MODULE
1832
 
        # non-empty at configure time, or by adding -multi_module to the
1833
 
        # link flags.
1834
 
        rm -rf libconftest.dylib*
1835
 
        echo "int foo(void){return 1;}" > conftest.c
1836
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1837
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1838
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1839
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1840
 
        _lt_result=$?
1841
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1842
 
          lt_cv_apple_cc_single_mod=yes
1843
 
        else
1844
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
1845
 
        fi
1846
 
        rm -rf libconftest.dylib*
1847
 
        rm -f conftest.*
1848
 
      fi])
1849
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1850
 
      [lt_cv_ld_exported_symbols_list],
1851
 
      [lt_cv_ld_exported_symbols_list=no
1852
 
      save_LDFLAGS=$LDFLAGS
1853
 
      echo "_main" > conftest.sym
1854
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1855
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1856
 
        [lt_cv_ld_exported_symbols_list=yes],
1857
 
        [lt_cv_ld_exported_symbols_list=no])
1858
 
        LDFLAGS="$save_LDFLAGS"
1859
 
    ])
1860
 
    case $host_os in
1861
 
    rhapsody* | darwin1.[[012]])
1862
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1863
 
    darwin1.*)
1864
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1865
 
    darwin*) # darwin 5.x on
1866
 
      # if running on 10.5 or later, the deployment target defaults
1867
 
      # to the OS version, if on x86, and 10.4, the deployment
1868
 
      # target defaults to 10.4. Don't you love it?
1869
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1870
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1871
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1872
 
        10.[[012]]*)
1873
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1874
 
        10.*)
1875
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1876
 
      esac
1877
 
    ;;
1878
 
  esac
1879
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1880
 
      _lt_dar_single_mod='$single_module'
1881
 
    fi
1882
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1883
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1884
 
    else
1885
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1886
 
    fi
1887
 
    if test "$DSYMUTIL" != ":"; then
1888
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
1889
 
    else
1890
 
      _lt_dsymutil=
1891
 
    fi
1892
 
    ;;
1893
 
  esac
1894
 
])
1895
 
 
1896
 
 
1897
 
# _LT_DARWIN_LINKER_FEATURES
1898
 
# --------------------------
1899
 
# Checks for linker and compiler features on darwin
1900
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1901
 
[
1902
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1903
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1904
 
  _LT_TAGVAR(hardcode_direct, $1)=no
1905
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1906
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1907
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1908
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1909
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1910
 
  case $cc_basename in
1911
 
     ifort*) _lt_dar_can_shared=yes ;;
1912
 
     *) _lt_dar_can_shared=$GCC ;;
1913
 
  esac
1914
 
  if test "$_lt_dar_can_shared" = "yes"; then
1915
 
    output_verbose_link_cmd=echo
1916
 
    _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}"
1917
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1918
 
    _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}"
1919
 
    _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}"
1920
 
    m4_if([$1], [CXX],
1921
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1922
 
      _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}"
1923
 
      _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}"
1924
 
    fi
1925
 
],[])
1926
 
  else
1927
 
  _LT_TAGVAR(ld_shlibs, $1)=no
1928
 
  fi
1929
 
])
1930
 
 
1931
 
# _LT_SYS_MODULE_PATH_AIX
1932
 
# -----------------------
 
1375
 
 
1376
# _LT_AC_SYS_LIBPATH_AIX
 
1377
# ----------------------
1933
1378
# Links a minimal program and checks the executable
1934
1379
# for the system default hardcoded library path. In most cases,
1935
1380
# this is /usr/lib:/lib, but when the MPI compilers are used
1936
1381
# the location of the communication and MPI libs are included too.
1937
1382
# If we don't find anything, use the default library path according
1938
1383
# to the aix ld manual.
1939
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1940
 
[m4_require([_LT_DECL_SED])dnl
1941
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1942
 
lt_aix_libpath_sed='
1943
 
    /Import File Strings/,/^$/ {
1944
 
        /^0/ {
1945
 
            s/^0  *\(.*\)$/\1/
1946
 
            p
1947
 
        }
1948
 
    }'
1949
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
1384
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1385
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1386
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1387
}'`
1950
1388
# Check for a 64-bit object if we didn't find anything.
1951
 
if test -z "$aix_libpath"; then
1952
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1953
 
fi],[])
 
1389
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1390
}'`; fi],[])
1954
1391
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1955
 
])# _LT_SYS_MODULE_PATH_AIX
1956
 
 
1957
 
 
1958
 
# _LT_SHELL_INIT(ARG)
1959
 
# -------------------
1960
 
m4_define([_LT_SHELL_INIT],
 
1392
])# _LT_AC_SYS_LIBPATH_AIX
 
1393
 
 
1394
 
 
1395
# _LT_AC_SHELL_INIT(ARG)
 
1396
# ----------------------
 
1397
AC_DEFUN([_LT_AC_SHELL_INIT],
1961
1398
[ifdef([AC_DIVERSION_NOTICE],
1962
1399
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1963
1400
         [AC_DIVERT_PUSH(NOTICE)])
1964
1401
$1
1965
1402
AC_DIVERT_POP
1966
 
])# _LT_SHELL_INIT
1967
 
 
1968
 
 
1969
 
# _LT_PROG_ECHO_BACKSLASH
1970
 
# -----------------------
 
1403
])# _LT_AC_SHELL_INIT
 
1404
 
 
1405
 
 
1406
# _LT_AC_PROG_ECHO_BACKSLASH
 
1407
# --------------------------
1971
1408
# Add some code to the start of the generated configure script which
1972
1409
# will find an echo command which doesn't interpret backslashes.
1973
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1974
 
[_LT_SHELL_INIT([
 
1410
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
1411
[_LT_AC_SHELL_INIT([
1975
1412
# Check that we are running under the correct shell.
1976
1413
SHELL=${CONFIG_SHELL-/bin/sh}
1977
1414
 
1978
 
case X$lt_ECHO in
 
1415
case X$ECHO in
1979
1416
X*--fallback-echo)
1980
1417
  # Remove one level of quotation (which was required for Make).
1981
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1418
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1982
1419
  ;;
1983
1420
esac
1984
1421
 
1985
 
ECHO=${lt_ECHO-echo}
 
1422
echo=${ECHO-echo}
1986
1423
if test "X[$]1" = X--no-reexec; then
1987
1424
  # Discard the --no-reexec flag, and continue.
1988
1425
  shift
1989
1426
elif test "X[$]1" = X--fallback-echo; then
1990
1427
  # Avoid inline document here, it may be left over
1991
1428
  :
1992
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1993
 
  # Yippee, $ECHO works!
 
1429
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
1430
  # Yippee, $echo works!
1994
1431
  :
1995
1432
else
1996
1433
  # Restart under the correct shell.
2000
1437
if test "X[$]1" = X--fallback-echo; then
2001
1438
  # used as fallback echo
2002
1439
  shift
2003
 
  cat <<_LT_EOF
 
1440
  cat <<EOF
2004
1441
[$]*
2005
 
_LT_EOF
 
1442
EOF
2006
1443
  exit 0
2007
1444
fi
2008
1445
 
2010
1447
# if CDPATH is set.
2011
1448
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2012
1449
 
2013
 
if test -z "$lt_ECHO"; then
2014
 
  if test "X${echo_test_string+set}" != Xset; then
2015
 
    # find a string as large as possible, as long as the shell can cope with it
2016
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2017
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2018
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2019
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2020
 
      then
2021
 
        break
2022
 
      fi
2023
 
    done
2024
 
  fi
2025
 
 
2026
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2027
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2028
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
2029
 
    :
2030
 
  else
2031
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
2032
 
    # backslashes.  This makes it impossible to quote backslashes using
2033
 
    #   echo "$something" | sed 's/\\/\\\\/g'
2034
 
    #
2035
 
    # So, first we look for a working echo in the user's PATH.
2036
 
 
2037
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2038
 
    for dir in $PATH /usr/ucb; do
2039
 
      IFS="$lt_save_ifs"
2040
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2041
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2042
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2043
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2044
 
        ECHO="$dir/echo"
2045
 
        break
2046
 
      fi
2047
 
    done
 
1450
if test -z "$ECHO"; then
 
1451
if test "X${echo_test_string+set}" != Xset; then
 
1452
# find a string as large as possible, as long as the shell can cope with it
 
1453
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1454
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1455
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1456
       echo_test_string=`eval $cmd` &&
 
1457
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
1458
    then
 
1459
      break
 
1460
    fi
 
1461
  done
 
1462
fi
 
1463
 
 
1464
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1465
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1466
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
1467
  :
 
1468
else
 
1469
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1470
  # backslashes.  This makes it impossible to quote backslashes using
 
1471
  #   echo "$something" | sed 's/\\/\\\\/g'
 
1472
  #
 
1473
  # So, first we look for a working echo in the user's PATH.
 
1474
 
 
1475
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1476
  for dir in $PATH /usr/ucb; do
2048
1477
    IFS="$lt_save_ifs"
 
1478
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1479
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1480
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1481
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1482
      echo="$dir/echo"
 
1483
      break
 
1484
    fi
 
1485
  done
 
1486
  IFS="$lt_save_ifs"
2049
1487
 
2050
 
    if test "X$ECHO" = Xecho; then
2051
 
      # We didn't find a better echo, so look for alternatives.
2052
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2053
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2054
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
2055
 
        # This shell has a builtin print -r that does the trick.
2056
 
        ECHO='print -r'
2057
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2058
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
2059
 
        # If we have ksh, try running configure again with it.
2060
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2061
 
        export ORIGINAL_CONFIG_SHELL
2062
 
        CONFIG_SHELL=/bin/ksh
2063
 
        export CONFIG_SHELL
2064
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1488
  if test "X$echo" = Xecho; then
 
1489
    # We didn't find a better echo, so look for alternatives.
 
1490
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
1491
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
1492
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1493
      # This shell has a builtin print -r that does the trick.
 
1494
      echo='print -r'
 
1495
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
1496
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1497
      # If we have ksh, try running configure again with it.
 
1498
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1499
      export ORIGINAL_CONFIG_SHELL
 
1500
      CONFIG_SHELL=/bin/ksh
 
1501
      export CONFIG_SHELL
 
1502
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1503
    else
 
1504
      # Try using printf.
 
1505
      echo='printf %s\n'
 
1506
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1507
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1508
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1509
        # Cool, printf works
 
1510
        :
 
1511
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1512
           test "X$echo_testing_string" = 'X\t' &&
 
1513
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1514
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1515
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1516
        export CONFIG_SHELL
 
1517
        SHELL="$CONFIG_SHELL"
 
1518
        export SHELL
 
1519
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1520
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1521
           test "X$echo_testing_string" = 'X\t' &&
 
1522
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1523
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1524
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
2065
1525
      else
2066
 
        # Try using printf.
2067
 
        ECHO='printf %s\n'
2068
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2069
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2070
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
2071
 
          # Cool, printf works
2072
 
          :
2073
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2074
 
             test "X$echo_testing_string" = 'X\t' &&
2075
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2076
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2077
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2078
 
          export CONFIG_SHELL
2079
 
          SHELL="$CONFIG_SHELL"
2080
 
          export SHELL
2081
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2082
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2083
 
             test "X$echo_testing_string" = 'X\t' &&
2084
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2085
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
2086
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2087
 
        else
2088
 
          # maybe with a smaller string...
2089
 
          prev=:
2090
 
 
2091
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2092
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2093
 
            then
2094
 
              break
2095
 
            fi
2096
 
            prev="$cmd"
2097
 
          done
2098
 
 
2099
 
          if test "$prev" != 'sed 50q "[$]0"'; then
2100
 
            echo_test_string=`eval $prev`
2101
 
            export echo_test_string
2102
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2103
 
          else
2104
 
            # Oops.  We lost completely, so just stick with echo.
2105
 
            ECHO=echo
 
1526
        # maybe with a smaller string...
 
1527
        prev=:
 
1528
 
 
1529
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1530
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
1531
          then
 
1532
            break
2106
1533
          fi
2107
 
        fi
 
1534
          prev="$cmd"
 
1535
        done
 
1536
 
 
1537
        if test "$prev" != 'sed 50q "[$]0"'; then
 
1538
          echo_test_string=`eval $prev`
 
1539
          export echo_test_string
 
1540
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1541
        else
 
1542
          # Oops.  We lost completely, so just stick with echo.
 
1543
          echo=echo
 
1544
        fi
2108
1545
      fi
2109
1546
    fi
2110
1547
  fi
2111
1548
fi
 
1549
fi
2112
1550
 
2113
1551
# Copy echo and quote the copy suitably for passing to libtool from
2114
1552
# the Makefile, instead of quoting the original, which is used later.
2115
 
lt_ECHO=$ECHO
2116
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2117
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1553
ECHO=$echo
 
1554
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1555
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2118
1556
fi
2119
1557
 
2120
 
AC_SUBST(lt_ECHO)
2121
 
])
2122
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2123
 
_LT_DECL([], [ECHO], [1],
2124
 
    [An echo program that does not interpret backslashes])
2125
 
])# _LT_PROG_ECHO_BACKSLASH
2126
 
 
2127
 
 
2128
 
# _LT_ENABLE_LOCK
2129
 
# ---------------
2130
 
m4_defun([_LT_ENABLE_LOCK],
 
1558
AC_SUBST(ECHO)
 
1559
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1560
 
 
1561
 
 
1562
# _LT_AC_LOCK
 
1563
# -----------
 
1564
AC_DEFUN([_LT_AC_LOCK],
2131
1565
[AC_ARG_ENABLE([libtool-lock],
2132
 
  [AS_HELP_STRING([--disable-libtool-lock],
2133
 
    [avoid locking (might break parallel builds)])])
 
1566
    [AC_HELP_STRING([--disable-libtool-lock],
 
1567
        [avoid locking (might break parallel builds)])])
2134
1568
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2135
1569
 
2136
1570
# Some flags need to be propagated to the compiler or linker for good
2141
1575
  echo 'int i;' > conftest.$ac_ext
2142
1576
  if AC_TRY_EVAL(ac_compile); then
2143
1577
    case `/usr/bin/file conftest.$ac_objext` in
2144
 
      *ELF-32*)
2145
 
        HPUX_IA64_MODE="32"
2146
 
        ;;
2147
 
      *ELF-64*)
2148
 
        HPUX_IA64_MODE="64"
2149
 
        ;;
 
1578
    *ELF-32*)
 
1579
      HPUX_IA64_MODE="32"
 
1580
      ;;
 
1581
    *ELF-64*)
 
1582
      HPUX_IA64_MODE="64"
 
1583
      ;;
2150
1584
    esac
2151
1585
  fi
2152
1586
  rm -rf conftest*
2155
1589
  # Find out which ABI we are using.
2156
1590
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2157
1591
  if AC_TRY_EVAL(ac_compile); then
2158
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
2159
 
      case `/usr/bin/file conftest.$ac_objext` in
2160
 
        *32-bit*)
2161
 
          LD="${LD-ld} -melf32bsmip"
2162
 
          ;;
2163
 
        *N32*)
2164
 
          LD="${LD-ld} -melf32bmipn32"
2165
 
          ;;
2166
 
        *64-bit*)
2167
 
          LD="${LD-ld} -melf64bmip"
2168
 
        ;;
2169
 
      esac
2170
 
    else
2171
 
      case `/usr/bin/file conftest.$ac_objext` in
2172
 
        *32-bit*)
2173
 
          LD="${LD-ld} -32"
2174
 
          ;;
2175
 
        *N32*)
2176
 
          LD="${LD-ld} -n32"
2177
 
          ;;
2178
 
        *64-bit*)
2179
 
          LD="${LD-ld} -64"
2180
 
          ;;
2181
 
      esac
2182
 
    fi
 
1592
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1593
    case `/usr/bin/file conftest.$ac_objext` in
 
1594
    *32-bit*)
 
1595
      LD="${LD-ld} -melf32bsmip"
 
1596
      ;;
 
1597
    *N32*)
 
1598
      LD="${LD-ld} -melf32bmipn32"
 
1599
      ;;
 
1600
    *64-bit*)
 
1601
      LD="${LD-ld} -melf64bmip"
 
1602
      ;;
 
1603
    esac
 
1604
   else
 
1605
    case `/usr/bin/file conftest.$ac_objext` in
 
1606
    *32-bit*)
 
1607
      LD="${LD-ld} -32"
 
1608
      ;;
 
1609
    *N32*)
 
1610
      LD="${LD-ld} -n32"
 
1611
      ;;
 
1612
    *64-bit*)
 
1613
      LD="${LD-ld} -64"
 
1614
      ;;
 
1615
    esac
 
1616
   fi
2183
1617
  fi
2184
1618
  rm -rf conftest*
2185
1619
  ;;
2186
1620
 
2187
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2188
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
1621
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2189
1622
  # Find out which ABI we are using.
2190
1623
  echo 'int i;' > conftest.$ac_ext
2191
1624
  if AC_TRY_EVAL(ac_compile); then
2192
1625
    case `/usr/bin/file conftest.o` in
2193
 
      *32-bit*)
2194
 
        case $host in
2195
 
          x86_64-*kfreebsd*-gnu)
2196
 
            LD="${LD-ld} -m elf_i386_fbsd"
2197
 
            ;;
2198
 
          x86_64-*linux*)
2199
 
            LD="${LD-ld} -m elf_i386"
2200
 
            ;;
2201
 
          ppc64-*linux*|powerpc64-*linux*)
2202
 
            LD="${LD-ld} -m elf32ppclinux"
2203
 
            ;;
2204
 
          s390x-*linux*)
2205
 
            LD="${LD-ld} -m elf_s390"
2206
 
            ;;
2207
 
          sparc64-*linux*)
2208
 
            LD="${LD-ld} -m elf32_sparc"
2209
 
            ;;
2210
 
        esac
2211
 
        ;;
2212
 
      *64-bit*)
2213
 
        case $host in
2214
 
          x86_64-*kfreebsd*-gnu)
2215
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
2216
 
            ;;
2217
 
          x86_64-*linux*)
2218
 
            LD="${LD-ld} -m elf_x86_64"
2219
 
            ;;
2220
 
          ppc*-*linux*|powerpc*-*linux*)
2221
 
            LD="${LD-ld} -m elf64ppc"
2222
 
            ;;
2223
 
          s390*-*linux*|s390*-*tpf*)
2224
 
            LD="${LD-ld} -m elf64_s390"
2225
 
            ;;
2226
 
          sparc*-*linux*)
2227
 
            LD="${LD-ld} -m elf64_sparc"
2228
 
            ;;
2229
 
        esac
2230
 
        ;;
 
1626
    *32-bit*)
 
1627
      case $host in
 
1628
        x86_64-*linux*)
 
1629
          LD="${LD-ld} -m elf_i386"
 
1630
          ;;
 
1631
        ppc64-*linux*|powerpc64-*linux*)
 
1632
          LD="${LD-ld} -m elf32ppclinux"
 
1633
          ;;
 
1634
        s390x-*linux*)
 
1635
          LD="${LD-ld} -m elf_s390"
 
1636
          ;;
 
1637
        sparc64-*linux*)
 
1638
          LD="${LD-ld} -m elf32_sparc"
 
1639
          ;;
 
1640
      esac
 
1641
      ;;
 
1642
    *64-bit*)
 
1643
      case $host in
 
1644
        x86_64-*linux*)
 
1645
          LD="${LD-ld} -m elf_x86_64"
 
1646
          ;;
 
1647
        ppc*-*linux*|powerpc*-*linux*)
 
1648
          LD="${LD-ld} -m elf64ppc"
 
1649
          ;;
 
1650
        s390*-*linux*)
 
1651
          LD="${LD-ld} -m elf64_s390"
 
1652
          ;;
 
1653
        sparc*-*linux*)
 
1654
          LD="${LD-ld} -m elf64_sparc"
 
1655
          ;;
 
1656
      esac
 
1657
      ;;
2231
1658
    esac
2232
1659
  fi
2233
1660
  rm -rf conftest*
2239
1666
  CFLAGS="$CFLAGS -belf"
2240
1667
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2241
1668
    [AC_LANG_PUSH(C)
2242
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1669
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2243
1670
     AC_LANG_POP])
2244
1671
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2245
1672
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2254
1681
    *64-bit*)
2255
1682
      case $lt_cv_prog_gnu_ld in
2256
1683
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2257
 
      *)
2258
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2259
 
          LD="${LD-ld} -64"
2260
 
        fi
2261
 
        ;;
 
1684
      *)    LD="${LD-ld} -64" ;;
2262
1685
      esac
2263
1686
      ;;
2264
1687
    esac
2265
1688
  fi
2266
1689
  rm -rf conftest*
2267
1690
  ;;
 
1691
 
 
1692
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1693
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
1694
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
1695
  AC_CHECK_TOOL(AS, as, false)
 
1696
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
1697
  ;;
 
1698
  ])
2268
1699
esac
2269
1700
 
2270
1701
need_locks="$enable_libtool_lock"
2271
 
])# _LT_ENABLE_LOCK
2272
 
 
2273
 
 
2274
 
# _LT_CMD_OLD_ARCHIVE
2275
 
# -------------------
2276
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
2277
 
[AC_CHECK_TOOL(AR, ar, false)
2278
 
test -z "$AR" && AR=ar
2279
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2280
 
_LT_DECL([], [AR], [1], [The archiver])
2281
 
_LT_DECL([], [AR_FLAGS], [1])
2282
 
 
2283
 
AC_CHECK_TOOL(STRIP, strip, :)
2284
 
test -z "$STRIP" && STRIP=:
2285
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2286
 
 
2287
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2288
 
test -z "$RANLIB" && RANLIB=:
2289
 
_LT_DECL([], [RANLIB], [1],
2290
 
    [Commands used to install an old-style archive])
2291
 
 
2292
 
# Determine commands to create old-style static archives.
2293
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2294
 
old_postinstall_cmds='chmod 644 $oldlib'
2295
 
old_postuninstall_cmds=
2296
 
 
2297
 
if test -n "$RANLIB"; then
2298
 
  case $host_os in
2299
 
  openbsd*)
2300
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2301
 
    ;;
2302
 
  *)
2303
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2304
 
    ;;
2305
 
  esac
2306
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2307
 
fi
2308
 
_LT_DECL([], [old_postinstall_cmds], [2])
2309
 
_LT_DECL([], [old_postuninstall_cmds], [2])
2310
 
_LT_TAGDECL([], [old_archive_cmds], [2],
2311
 
    [Commands used to build an old-style archive])
2312
 
])# _LT_CMD_OLD_ARCHIVE
2313
 
 
2314
 
 
2315
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1702
 
 
1703
])# _LT_AC_LOCK
 
1704
 
 
1705
 
 
1706
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2316
1707
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2317
1708
# ----------------------------------------------------------------
2318
1709
# Check whether the given compiler option works
2319
 
AC_DEFUN([_LT_COMPILER_OPTION],
2320
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2321
 
m4_require([_LT_DECL_SED])dnl
 
1710
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1711
[AC_REQUIRE([LT_AC_PROG_SED])
2322
1712
AC_CACHE_CHECK([$1], [$2],
2323
1713
  [$2=no
2324
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2325
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1714
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1715
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2326
1716
   lt_compiler_flag="$3"
2327
1717
   # Insert the option either (1) after the last *FLAGS variable, or
2328
1718
   # (2) before a word containing "conftest.", or (3) at the end.
2341
1731
   if (exit $ac_status) && test -s "$ac_outfile"; then
2342
1732
     # The compiler can only warn and ignore the option if not recognized
2343
1733
     # So say no if there are warnings other than the usual output.
2344
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1734
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2345
1735
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2346
1736
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2347
1737
       $2=yes
2348
1738
     fi
2349
1739
   fi
2350
 
   $RM conftest*
 
1740
   $rm conftest*
2351
1741
])
2352
1742
 
2353
1743
if test x"[$]$2" = xyes; then
2354
 
    m4_if([$5], , :, [$5])
 
1744
    ifelse([$5], , :, [$5])
2355
1745
else
2356
 
    m4_if([$6], , :, [$6])
 
1746
    ifelse([$6], , :, [$6])
2357
1747
fi
2358
 
])# _LT_COMPILER_OPTION
2359
 
 
2360
 
# Old name:
2361
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2362
 
dnl aclocal-1.4 backwards compatibility:
2363
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2364
 
 
2365
 
 
2366
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2367
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2368
 
# ----------------------------------------------------
2369
 
# Check whether the given linker option works
2370
 
AC_DEFUN([_LT_LINKER_OPTION],
2371
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2372
 
m4_require([_LT_DECL_SED])dnl
2373
 
AC_CACHE_CHECK([$1], [$2],
 
1748
])# AC_LIBTOOL_COMPILER_OPTION
 
1749
 
 
1750
 
 
1751
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1752
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1753
# ------------------------------------------------------------
 
1754
# Check whether the given compiler option works
 
1755
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
1756
[AC_CACHE_CHECK([$1], [$2],
2374
1757
  [$2=no
2375
1758
   save_LDFLAGS="$LDFLAGS"
2376
1759
   LDFLAGS="$LDFLAGS $3"
2377
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
1760
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
2378
1761
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2379
1762
     # The linker can only warn and ignore the option if not recognized
2380
1763
     # So say no if there are warnings
2381
1764
     if test -s conftest.err; then
2382
1765
       # Append any errors to the config.log.
2383
1766
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2384
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1767
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2385
1768
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2386
1769
       if diff conftest.exp conftest.er2 >/dev/null; then
2387
1770
         $2=yes
2390
1773
       $2=yes
2391
1774
     fi
2392
1775
   fi
2393
 
   $RM -r conftest*
 
1776
   $rm conftest*
2394
1777
   LDFLAGS="$save_LDFLAGS"
2395
1778
])
2396
1779
 
2397
1780
if test x"[$]$2" = xyes; then
2398
 
    m4_if([$4], , :, [$4])
 
1781
    ifelse([$4], , :, [$4])
2399
1782
else
2400
 
    m4_if([$5], , :, [$5])
 
1783
    ifelse([$5], , :, [$5])
2401
1784
fi
2402
 
])# _LT_LINKER_OPTION
2403
 
 
2404
 
# Old name:
2405
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2406
 
dnl aclocal-1.4 backwards compatibility:
2407
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2408
 
 
2409
 
 
2410
 
# LT_CMD_MAX_LEN
2411
 
#---------------
2412
 
AC_DEFUN([LT_CMD_MAX_LEN],
2413
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2414
 
# find the maximum length of command line arguments
 
1785
])# AC_LIBTOOL_LINKER_OPTION
 
1786
 
 
1787
 
 
1788
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1789
# --------------------------
 
1790
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
1791
[# find the maximum length of command line arguments
2415
1792
AC_MSG_CHECKING([the maximum length of command line arguments])
2416
1793
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2417
1794
  i=0
2433
1810
    lt_cv_sys_max_cmd_len=-1;
2434
1811
    ;;
2435
1812
 
2436
 
  cygwin* | mingw* | cegcc*)
 
1813
  cygwin* | mingw*)
2437
1814
    # On Win9x/ME, this test blows up -- it succeeds, but takes
2438
1815
    # about 5 minutes as the teststring grows exponentially.
2439
1816
    # Worse, since 9x/ME are not pre-emptively multitasking,
2488
1865
  sysv5* | sco5v6* | sysv4.2uw2*)
2489
1866
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2490
1867
    if test -n "$kargmax"; then
2491
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
1868
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
2492
1869
    else
2493
1870
      lt_cv_sys_max_cmd_len=32768
2494
1871
    fi
2495
1872
    ;;
2496
1873
  *)
2497
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2498
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
2499
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2500
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2501
 
    else
2502
 
      # Make teststring a little bigger before we do anything with it.
2503
 
      # a 1K string should be a reasonable start.
2504
 
      for i in 1 2 3 4 5 6 7 8 ; do
2505
 
        teststring=$teststring$teststring
2506
 
      done
2507
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2508
 
      # If test is not a shell built-in, we'll probably end up computing a
2509
 
      # maximum length that is only half of the actual maximum length, but
2510
 
      # we can't tell.
2511
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2512
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2513
 
              test $i != 17 # 1/2 MB should be enough
2514
 
      do
2515
 
        i=`expr $i + 1`
2516
 
        teststring=$teststring$teststring
2517
 
      done
2518
 
      # Only check the string length outside the loop.
2519
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2520
 
      teststring=
2521
 
      # Add a significant safety factor because C++ compilers can tack on
2522
 
      # massive amounts of additional arguments before passing them to the
2523
 
      # linker.  It appears as though 1/2 is a usable value.
2524
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2525
 
    fi
 
1874
    # If test is not a shell built-in, we'll probably end up computing a
 
1875
    # maximum length that is only half of the actual maximum length, but
 
1876
    # we can't tell.
 
1877
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
1878
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1879
               = "XX$teststring") >/dev/null 2>&1 &&
 
1880
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1881
            lt_cv_sys_max_cmd_len=$new_result &&
 
1882
            test $i != 17 # 1/2 MB should be enough
 
1883
    do
 
1884
      i=`expr $i + 1`
 
1885
      teststring=$teststring$teststring
 
1886
    done
 
1887
    teststring=
 
1888
    # Add a significant safety factor because C++ compilers can tack on massive
 
1889
    # amounts of additional arguments before passing them to the linker.
 
1890
    # It appears as though 1/2 is a usable value.
 
1891
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2526
1892
    ;;
2527
1893
  esac
2528
1894
])
2531
1897
else
2532
1898
  AC_MSG_RESULT(none)
2533
1899
fi
2534
 
max_cmd_len=$lt_cv_sys_max_cmd_len
2535
 
_LT_DECL([], [max_cmd_len], [0],
2536
 
    [What is the maximum length of a command?])
2537
 
])# LT_CMD_MAX_LEN
2538
 
 
2539
 
# Old name:
2540
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2541
 
dnl aclocal-1.4 backwards compatibility:
2542
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2543
 
 
2544
 
 
2545
 
# _LT_HEADER_DLFCN
2546
 
# ----------------
2547
 
m4_defun([_LT_HEADER_DLFCN],
2548
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2549
 
])# _LT_HEADER_DLFCN
2550
 
 
2551
 
 
2552
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2553
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2554
 
# ----------------------------------------------------------------
2555
 
m4_defun([_LT_TRY_DLOPEN_SELF],
2556
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
1900
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1901
 
 
1902
 
 
1903
# _LT_AC_CHECK_DLFCN
 
1904
# ------------------
 
1905
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
1906
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
1907
])# _LT_AC_CHECK_DLFCN
 
1908
 
 
1909
 
 
1910
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1911
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1912
# ---------------------------------------------------------------------
 
1913
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
1914
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2557
1915
if test "$cross_compiling" = yes; then :
2558
1916
  [$4]
2559
1917
else
2560
1918
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2561
1919
  lt_status=$lt_dlunknown
2562
 
  cat > conftest.$ac_ext <<_LT_EOF
 
1920
  cat > conftest.$ac_ext <<EOF
2563
1921
[#line __oline__ "configure"
2564
1922
#include "confdefs.h"
2565
1923
 
2601
1959
#  endif
2602
1960
#endif
2603
1961
 
 
1962
#ifdef __cplusplus
 
1963
extern "C" void exit (int);
 
1964
#endif
 
1965
 
2604
1966
void fnord() { int i=42;}
2605
1967
int main ()
2606
1968
{
2616
1978
  else
2617
1979
    puts (dlerror ());
2618
1980
 
2619
 
  return status;
 
1981
    exit (status);
2620
1982
}]
2621
 
_LT_EOF
 
1983
EOF
2622
1984
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2623
1985
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2624
1986
    lt_status=$?
2633
1995
  fi
2634
1996
fi
2635
1997
rm -fr conftest*
2636
 
])# _LT_TRY_DLOPEN_SELF
2637
 
 
2638
 
 
2639
 
# LT_SYS_DLOPEN_SELF
2640
 
# ------------------
2641
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2642
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
1998
])# _LT_AC_TRY_DLOPEN_SELF
 
1999
 
 
2000
 
 
2001
# AC_LIBTOOL_DLOPEN_SELF
 
2002
# ----------------------
 
2003
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
2004
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2643
2005
if test "x$enable_dlopen" != xyes; then
2644
2006
  enable_dlopen=unknown
2645
2007
  enable_dlopen_self=unknown
2655
2017
    lt_cv_dlopen_self=yes
2656
2018
    ;;
2657
2019
 
2658
 
  mingw* | pw32* | cegcc*)
 
2020
  mingw* | pw32*)
2659
2021
    lt_cv_dlopen="LoadLibrary"
2660
2022
    lt_cv_dlopen_libs=
2661
 
    ;;
 
2023
   ;;
2662
2024
 
2663
2025
  cygwin*)
2664
2026
    lt_cv_dlopen="dlopen"
2665
2027
    lt_cv_dlopen_libs=
2666
 
    ;;
 
2028
   ;;
2667
2029
 
2668
2030
  darwin*)
2669
2031
  # if libdl is installed we need to link against it
2673
2035
    lt_cv_dlopen_libs=
2674
2036
    lt_cv_dlopen_self=yes
2675
2037
    ])
2676
 
    ;;
 
2038
   ;;
2677
2039
 
2678
2040
  *)
2679
2041
    AC_CHECK_FUNC([shl_load],
2680
2042
          [lt_cv_dlopen="shl_load"],
2681
2043
      [AC_CHECK_LIB([dld], [shl_load],
2682
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 
2044
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2683
2045
        [AC_CHECK_FUNC([dlopen],
2684
2046
              [lt_cv_dlopen="dlopen"],
2685
2047
          [AC_CHECK_LIB([dl], [dlopen],
2687
2049
            [AC_CHECK_LIB([svld], [dlopen],
2688
2050
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2689
2051
              [AC_CHECK_LIB([dld], [dld_link],
2690
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 
2052
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2691
2053
              ])
2692
2054
            ])
2693
2055
          ])
2715
2077
 
2716
2078
    AC_CACHE_CHECK([whether a program can dlopen itself],
2717
2079
          lt_cv_dlopen_self, [dnl
2718
 
          _LT_TRY_DLOPEN_SELF(
 
2080
          _LT_AC_TRY_DLOPEN_SELF(
2719
2081
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2720
2082
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2721
2083
    ])
2723
2085
    if test "x$lt_cv_dlopen_self" = xyes; then
2724
2086
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2725
2087
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2726
 
          lt_cv_dlopen_self_static, [dnl
2727
 
          _LT_TRY_DLOPEN_SELF(
 
2088
          lt_cv_dlopen_self_static, [dnl
 
2089
          _LT_AC_TRY_DLOPEN_SELF(
2728
2090
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2729
2091
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2730
2092
      ])
2746
2108
  *) enable_dlopen_self_static=unknown ;;
2747
2109
  esac
2748
2110
fi
2749
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2750
 
         [Whether dlopen is supported])
2751
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2752
 
         [Whether dlopen of programs is supported])
2753
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2754
 
         [Whether dlopen of statically linked programs is supported])
2755
 
])# LT_SYS_DLOPEN_SELF
2756
 
 
2757
 
# Old name:
2758
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2759
 
dnl aclocal-1.4 backwards compatibility:
2760
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2761
 
 
2762
 
 
2763
 
# _LT_COMPILER_C_O([TAGNAME])
2764
 
# ---------------------------
2765
 
# Check to see if options -c and -o are simultaneously supported by compiler.
2766
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2767
 
m4_defun([_LT_COMPILER_C_O],
2768
 
[m4_require([_LT_DECL_SED])dnl
2769
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2770
 
m4_require([_LT_TAG_COMPILER])dnl
 
2111
])# AC_LIBTOOL_DLOPEN_SELF
 
2112
 
 
2113
 
 
2114
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
2115
# ---------------------------------
 
2116
# Check to see if options -c and -o are simultaneously supported by compiler
 
2117
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
2118
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2771
2119
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2772
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2773
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2774
 
   $RM -r conftest 2>/dev/null
 
2120
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2121
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2122
   $rm -r conftest 2>/dev/null
2775
2123
   mkdir conftest
2776
2124
   cd conftest
2777
2125
   mkdir out
2778
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2126
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2779
2127
 
2780
2128
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2781
2129
   # Insert the option either (1) after the last *FLAGS variable, or
2795
2143
   then
2796
2144
     # The compiler can only warn and ignore the option if not recognized
2797
2145
     # So say no if there are warnings
2798
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2146
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2799
2147
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2800
2148
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2801
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2149
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2802
2150
     fi
2803
2151
   fi
2804
2152
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2805
 
   $RM conftest*
 
2153
   $rm conftest*
2806
2154
   # SGI C++ compiler will create directory out/ii_files/ for
2807
2155
   # template instantiation
2808
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2809
 
   $RM out/* && rmdir out
 
2156
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
2157
   $rm out/* && rmdir out
2810
2158
   cd ..
2811
 
   $RM -r conftest
2812
 
   $RM conftest*
 
2159
   rmdir conftest
 
2160
   $rm conftest*
2813
2161
])
2814
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2815
 
        [Does compiler simultaneously support -c and -o options?])
2816
 
])# _LT_COMPILER_C_O
2817
 
 
2818
 
 
2819
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2820
 
# ----------------------------------
 
2162
])# AC_LIBTOOL_PROG_CC_C_O
 
2163
 
 
2164
 
 
2165
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
2166
# -----------------------------------------
2821
2167
# Check to see if we can do hard links to lock some files if needed
2822
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
2823
 
[m4_require([_LT_ENABLE_LOCK])dnl
2824
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2825
 
_LT_COMPILER_C_O([$1])
 
2168
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
2169
[AC_REQUIRE([_LT_AC_LOCK])dnl
2826
2170
 
2827
2171
hard_links="nottested"
2828
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2172
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2829
2173
  # do not overwrite the value of need_locks provided by the user
2830
2174
  AC_MSG_CHECKING([if we can lock with hard links])
2831
2175
  hard_links=yes
2832
 
  $RM conftest*
 
2176
  $rm conftest*
2833
2177
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2834
2178
  touch conftest.a
2835
2179
  ln conftest.a conftest.b 2>&5 || hard_links=no
2842
2186
else
2843
2187
  need_locks=no
2844
2188
fi
2845
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2846
 
])# _LT_COMPILER_FILE_LOCKS
2847
 
 
2848
 
 
2849
 
# _LT_CHECK_OBJDIR
2850
 
# ----------------
2851
 
m4_defun([_LT_CHECK_OBJDIR],
 
2189
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
2190
 
 
2191
 
 
2192
# AC_LIBTOOL_OBJDIR
 
2193
# -----------------
 
2194
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2852
2195
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2853
2196
[rm -f .libs 2>/dev/null
2854
2197
mkdir .libs 2>/dev/null
2860
2203
fi
2861
2204
rmdir .libs 2>/dev/null])
2862
2205
objdir=$lt_cv_objdir
2863
 
_LT_DECL([], [objdir], [0],
2864
 
         [The name of the directory that contains temporary libtool files])dnl
2865
 
m4_pattern_allow([LT_OBJDIR])dnl
2866
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2867
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2868
 
])# _LT_CHECK_OBJDIR
2869
 
 
2870
 
 
2871
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2872
 
# --------------------------------------
 
2206
])# AC_LIBTOOL_OBJDIR
 
2207
 
 
2208
 
 
2209
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
2210
# ----------------------------------------------
2873
2211
# Check hardcoding attributes.
2874
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
2212
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2875
2213
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2876
 
_LT_TAGVAR(hardcode_action, $1)=
2877
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2878
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2879
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2214
_LT_AC_TAGVAR(hardcode_action, $1)=
 
2215
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
2216
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
2217
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2880
2218
 
2881
 
  # We can hardcode non-existent directories.
2882
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
2219
  # We can hardcode non-existant directories.
 
2220
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2883
2221
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2884
2222
     # have to relink, otherwise we might link with an installed library
2885
2223
     # when we should be linking with a yet-to-be-installed one
2886
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2887
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2224
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2225
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2888
2226
    # Linking always hardcodes the temporary library directory.
2889
 
    _LT_TAGVAR(hardcode_action, $1)=relink
 
2227
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2890
2228
  else
2891
2229
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2892
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
2230
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2893
2231
  fi
2894
2232
else
2895
2233
  # We cannot hardcode anything, or else we can only hardcode existing
2896
2234
  # directories.
2897
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
2235
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2898
2236
fi
2899
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
2237
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2900
2238
 
2901
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2902
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
2239
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2903
2240
  # Fast installation is not supported
2904
2241
  enable_fast_install=no
2905
2242
elif test "$shlibpath_overrides_runpath" = yes ||
2907
2244
  # Fast installation is not necessary
2908
2245
  enable_fast_install=needless
2909
2246
fi
2910
 
_LT_TAGDECL([], [hardcode_action], [0],
2911
 
    [How to hardcode a shared library path into an executable])
2912
 
])# _LT_LINKER_HARDCODE_LIBPATH
2913
 
 
2914
 
 
2915
 
# _LT_CMD_STRIPLIB
2916
 
# ----------------
2917
 
m4_defun([_LT_CMD_STRIPLIB],
2918
 
[m4_require([_LT_DECL_EGREP])
2919
 
striplib=
 
2247
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
2248
 
 
2249
 
 
2250
# AC_LIBTOOL_SYS_LIB_STRIP
 
2251
# ------------------------
 
2252
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
2253
[striplib=
2920
2254
old_striplib=
2921
2255
AC_MSG_CHECKING([whether stripping libraries is possible])
2922
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
2256
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2923
2257
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2924
2258
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2925
2259
  AC_MSG_RESULT([yes])
2926
2260
else
2927
2261
# FIXME - insert some real tests, host_os isn't really good enough
2928
2262
  case $host_os in
2929
 
  darwin*)
2930
 
    if test -n "$STRIP" ; then
2931
 
      striplib="$STRIP -x"
2932
 
      old_striplib="$STRIP -S"
2933
 
      AC_MSG_RESULT([yes])
2934
 
    else
2935
 
      AC_MSG_RESULT([no])
2936
 
    fi
2937
 
    ;;
2938
 
  *)
2939
 
    AC_MSG_RESULT([no])
 
2263
   darwin*)
 
2264
       if test -n "$STRIP" ; then
 
2265
         striplib="$STRIP -x"
 
2266
         AC_MSG_RESULT([yes])
 
2267
       else
 
2268
  AC_MSG_RESULT([no])
 
2269
fi
 
2270
       ;;
 
2271
   *)
 
2272
  AC_MSG_RESULT([no])
2940
2273
    ;;
2941
2274
  esac
2942
2275
fi
2943
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2944
 
_LT_DECL([], [striplib], [1])
2945
 
])# _LT_CMD_STRIPLIB
2946
 
 
2947
 
 
2948
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
2276
])# AC_LIBTOOL_SYS_LIB_STRIP
 
2277
 
 
2278
 
 
2279
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2949
2280
# -----------------------------
2950
2281
# PORTME Fill in your ld.so characteristics
2951
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2952
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2953
 
m4_require([_LT_DECL_EGREP])dnl
2954
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2955
 
m4_require([_LT_DECL_OBJDUMP])dnl
2956
 
m4_require([_LT_DECL_SED])dnl
2957
 
AC_MSG_CHECKING([dynamic linker characteristics])
2958
 
m4_if([$1],
2959
 
        [], [
2960
 
if test "$GCC" = yes; then
2961
 
  case $host_os in
2962
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2963
 
    *) lt_awk_arg="/^libraries:/" ;;
2964
 
  esac
2965
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2966
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2967
 
    # if the path contains ";" then we assume it to be the separator
2968
 
    # otherwise default to the standard path separator (i.e. ":") - it is
2969
 
    # assumed that no part of a normal pathname contains ";" but that should
2970
 
    # okay in the real world where ";" in dirpaths is itself problematic.
2971
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2972
 
  else
2973
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2974
 
  fi
2975
 
  # Ok, now we have the path, separated by spaces, we can step through it
2976
 
  # and add multilib dir if necessary.
2977
 
  lt_tmp_lt_search_path_spec=
2978
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2979
 
  for lt_sys_path in $lt_search_path_spec; do
2980
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2981
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2982
 
    else
2983
 
      test -d "$lt_sys_path" && \
2984
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2985
 
    fi
2986
 
  done
2987
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2988
 
BEGIN {RS=" "; FS="/|\n";} {
2989
 
  lt_foo="";
2990
 
  lt_count=0;
2991
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
2992
 
    if ($lt_i != "" && $lt_i != ".") {
2993
 
      if ($lt_i == "..") {
2994
 
        lt_count++;
2995
 
      } else {
2996
 
        if (lt_count == 0) {
2997
 
          lt_foo="/" $lt_i lt_foo;
2998
 
        } else {
2999
 
          lt_count--;
3000
 
        }
3001
 
      }
3002
 
    }
3003
 
  }
3004
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3005
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3006
 
}'`
3007
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3008
 
else
3009
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3010
 
fi])
 
2282
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
2283
[AC_MSG_CHECKING([dynamic linker characteristics])
3011
2284
library_names_spec=
3012
2285
libname_spec='lib$name'
3013
2286
soname_spec=
3021
2294
version_type=none
3022
2295
dynamic_linker="$host_os ld.so"
3023
2296
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2297
if test "$GCC" = yes; then
 
2298
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2299
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
2300
    # if the path contains ";" then we assume it to be the separator
 
2301
    # otherwise default to the standard path separator (i.e. ":") - it is
 
2302
    # assumed that no part of a normal pathname contains ";" but that should
 
2303
    # okay in the real world where ";" in dirpaths is itself problematic.
 
2304
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2305
  else
 
2306
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2307
  fi
 
2308
else
 
2309
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
2310
fi
3024
2311
need_lib_prefix=unknown
3025
2312
hardcode_into_libs=no
3026
2313
 
3038
2325
  soname_spec='${libname}${release}${shared_ext}$major'
3039
2326
  ;;
3040
2327
 
3041
 
aix[[4-9]]*)
 
2328
aix4* | aix5*)
3042
2329
  version_type=linux
3043
2330
  need_lib_prefix=no
3044
2331
  need_version=no
3057
2344
      aix4 | aix4.[[01]] | aix4.[[01]].*)
3058
2345
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3059
2346
           echo ' yes '
3060
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
2347
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3061
2348
        :
3062
2349
      else
3063
2350
        can_build_shared=no
3083
2370
  ;;
3084
2371
 
3085
2372
amigaos*)
3086
 
  case $host_cpu in
3087
 
  powerpc)
3088
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
3089
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3090
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3091
 
    ;;
3092
 
  m68k)
3093
 
    library_names_spec='$libname.ixlibrary $libname.a'
3094
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
3095
 
    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'
3096
 
    ;;
3097
 
  esac
 
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'
3098
2376
  ;;
3099
2377
 
3100
2378
beos*)
3117
2395
  # libtool to hard-code these into programs
3118
2396
  ;;
3119
2397
 
3120
 
cygwin* | mingw* | pw32* | cegcc*)
 
2398
cygwin* | mingw* | pw32*)
3121
2399
  version_type=windows
3122
2400
  shrext_cmds=".dll"
3123
2401
  need_version=no
3124
2402
  need_lib_prefix=no
3125
2403
 
3126
2404
  case $GCC,$host_os in
3127
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
2405
  yes,cygwin* | yes,mingw* | yes,pw32*)
3128
2406
    library_names_spec='$libname.dll.a'
3129
2407
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
3130
2408
    postinstall_cmds='base_file=`basename \${file}`~
3131
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2409
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3132
2410
      dldir=$destdir/`dirname \$dlpath`~
3133
2411
      test -d \$dldir || mkdir -p \$dldir~
3134
2412
      $install_prog $dir/$dlname \$dldir/$dlname~
3135
 
      chmod a+x \$dldir/$dlname~
3136
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3137
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3138
 
      fi'
 
2413
      chmod a+x \$dldir/$dlname'
3139
2414
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3140
2415
      dlpath=$dir/\$dldll~
3141
 
       $RM \$dlpath'
 
2416
       $rm \$dlpath'
3142
2417
    shlibpath_overrides_runpath=yes
3143
2418
 
3144
2419
    case $host_os in
3147
2422
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3148
2423
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3149
2424
      ;;
3150
 
    mingw* | cegcc*)
 
2425
    mingw*)
3151
2426
      # MinGW DLLs use traditional 'lib' prefix
3152
2427
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3153
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3154
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
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
3155
2430
        # It is most probably a Windows format PATH printed by
3156
2431
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
3157
2432
        # path with ; separators, and with drive letters. We can handle the
3158
2433
        # drive letters (cygwin fileutils understands them), so leave them,
3159
2434
        # especially as we might pass files found there to a mingw objdump,
3160
2435
        # which wouldn't understand a cygwinified path. Ahh.
3161
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2436
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3162
2437
      else
3163
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2438
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
3164
2439
      fi
3165
2440
      ;;
3166
2441
    pw32*)
3184
2459
  version_type=darwin
3185
2460
  need_lib_prefix=no
3186
2461
  need_version=no
3187
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2462
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3188
2463
  soname_spec='${libname}${release}${major}$shared_ext'
3189
2464
  shlibpath_overrides_runpath=yes
3190
2465
  shlibpath_var=DYLD_LIBRARY_PATH
3191
2466
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3192
 
m4_if([$1], [],[
3193
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
2467
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
2468
  if test "$GCC" = yes; then
 
2469
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
2470
  else
 
2471
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
2472
  fi
3194
2473
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3195
2474
  ;;
3196
2475
 
3207
2486
  dynamic_linker=no
3208
2487
  ;;
3209
2488
 
 
2489
kfreebsd*-gnu)
 
2490
  version_type=linux
 
2491
  need_lib_prefix=no
 
2492
  need_version=no
 
2493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2494
  soname_spec='${libname}${release}${shared_ext}$major'
 
2495
  shlibpath_var=LD_LIBRARY_PATH
 
2496
  shlibpath_overrides_runpath=no
 
2497
  hardcode_into_libs=yes
 
2498
  dynamic_linker='GNU ld.so'
 
2499
  ;;
 
2500
 
3210
2501
freebsd* | dragonfly*)
3211
2502
  # DragonFly does not have aout.  When/if they implement a new
3212
2503
  # versioning mechanism, adjust this.
3244
2535
    shlibpath_overrides_runpath=no
3245
2536
    hardcode_into_libs=yes
3246
2537
    ;;
3247
 
  *) # from 4.6 on, and DragonFly
 
2538
  freebsd*) # from 4.6 on
3248
2539
    shlibpath_overrides_runpath=yes
3249
2540
    hardcode_into_libs=yes
3250
2541
    ;;
3283
2574
    fi
3284
2575
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3285
2576
    ;;
3286
 
  hppa*64*)
3287
 
    shrext_cmds='.sl'
3288
 
    hardcode_into_libs=yes
3289
 
    dynamic_linker="$host_os dld.sl"
3290
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3291
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3292
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3293
 
    soname_spec='${libname}${release}${shared_ext}$major'
3294
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3295
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3296
 
    ;;
3297
 
  *)
 
2577
   hppa*64*)
 
2578
     shrext_cmds='.sl'
 
2579
     hardcode_into_libs=yes
 
2580
     dynamic_linker="$host_os dld.sl"
 
2581
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2582
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2583
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2584
     soname_spec='${libname}${release}${shared_ext}$major'
 
2585
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2586
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2587
     ;;
 
2588
   *)
3298
2589
    shrext_cmds='.sl'
3299
2590
    dynamic_linker="$host_os dld.sl"
3300
2591
    shlibpath_var=SHLIB_PATH
3307
2598
  postinstall_cmds='chmod 555 $lib'
3308
2599
  ;;
3309
2600
 
3310
 
interix[[3-9]]*)
 
2601
interix3*)
3311
2602
  version_type=linux
3312
2603
  need_lib_prefix=no
3313
2604
  need_version=no
3362
2653
  ;;
3363
2654
 
3364
2655
# This must be Linux ELF.
3365
 
linux* | k*bsd*-gnu)
 
2656
linux*)
3366
2657
  version_type=linux
3367
2658
  need_lib_prefix=no
3368
2659
  need_version=no
3371
2662
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3372
2663
  shlibpath_var=LD_LIBRARY_PATH
3373
2664
  shlibpath_overrides_runpath=no
3374
 
  # Some binutils ld are patched to set DT_RUNPATH
3375
 
  save_LDFLAGS=$LDFLAGS
3376
 
  save_libdir=$libdir
3377
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3378
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3379
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3380
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3381
 
       [shlibpath_overrides_runpath=yes])])
3382
 
  LDFLAGS=$save_LDFLAGS
3383
 
  libdir=$save_libdir
3384
 
 
3385
2665
  # This implies no fast_install, which is unacceptable.
3386
2666
  # Some rework will be needed to allow for fast_install
3387
2667
  # before this can be enabled.
3389
2669
 
3390
2670
  # Append ld.so.conf contents to the search path
3391
2671
  if test -f /etc/ld.so.conf; then
3392
 
    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' ' '`
 
2672
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3393
2673
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3394
2674
  fi
3395
2675
 
3402
2682
  dynamic_linker='GNU/Linux ld.so'
3403
2683
  ;;
3404
2684
 
3405
 
netbsdelf*-gnu)
 
2685
knetbsd*-gnu)
3406
2686
  version_type=linux
3407
2687
  need_lib_prefix=no
3408
2688
  need_version=no
3411
2691
  shlibpath_var=LD_LIBRARY_PATH
3412
2692
  shlibpath_overrides_runpath=no
3413
2693
  hardcode_into_libs=yes
3414
 
  dynamic_linker='NetBSD ld.elf_so'
 
2694
  dynamic_linker='GNU ld.so'
3415
2695
  ;;
3416
2696
 
3417
2697
netbsd*)
3418
2698
  version_type=sunos
3419
2699
  need_lib_prefix=no
3420
2700
  need_version=no
3421
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
2701
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3422
2702
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3423
2703
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3424
2704
    dynamic_linker='NetBSD (a.out) ld.so'
3439
2719
  shlibpath_overrides_runpath=yes
3440
2720
  ;;
3441
2721
 
3442
 
*nto* | *qnx*)
3443
 
  version_type=qnx
 
2722
nto-qnx*)
 
2723
  version_type=linux
3444
2724
  need_lib_prefix=no
3445
2725
  need_version=no
3446
2726
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3447
2727
  soname_spec='${libname}${release}${shared_ext}$major'
3448
2728
  shlibpath_var=LD_LIBRARY_PATH
3449
 
  shlibpath_overrides_runpath=no
3450
 
  hardcode_into_libs=yes
3451
 
  dynamic_linker='ldqnx.so'
 
2729
  shlibpath_overrides_runpath=yes
3452
2730
  ;;
3453
2731
 
3454
2732
openbsd*)
3457
2735
  need_lib_prefix=no
3458
2736
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3459
2737
  case $host_os in
3460
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
3461
 
    *)                          need_version=no  ;;
 
2738
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2739
    *)                         need_version=no  ;;
3462
2740
  esac
3463
2741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3464
2742
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3465
2743
  shlibpath_var=LD_LIBRARY_PATH
3466
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2744
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3467
2745
    case $host_os in
3468
2746
      openbsd2.[[89]] | openbsd2.[[89]].*)
3469
2747
        shlibpath_overrides_runpath=no
3497
2775
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3498
2776
  ;;
3499
2777
 
3500
 
rdos*)
3501
 
  dynamic_linker=no
3502
 
  ;;
3503
 
 
3504
2778
solaris*)
3505
2779
  version_type=linux
3506
2780
  need_lib_prefix=no
3535
2809
    sni)
3536
2810
      shlibpath_overrides_runpath=no
3537
2811
      need_lib_prefix=no
 
2812
      export_dynamic_flag_spec='${wl}-Blargedynsym'
3538
2813
      runpath_var=LD_RUN_PATH
3539
2814
      ;;
3540
2815
    siemens)
3565
2840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3566
2841
  soname_spec='${libname}${release}${shared_ext}$major'
3567
2842
  shlibpath_var=LD_LIBRARY_PATH
3568
 
  shlibpath_overrides_runpath=yes
3569
2843
  hardcode_into_libs=yes
3570
2844
  if test "$with_gnu_ld" = yes; then
3571
2845
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
2846
    shlibpath_overrides_runpath=no
3572
2847
  else
3573
2848
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
2849
    shlibpath_overrides_runpath=yes
3574
2850
    case $host_os in
3575
2851
      sco3.2v5*)
3576
2852
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3580
2856
  sys_lib_dlsearch_path_spec='/usr/lib'
3581
2857
  ;;
3582
2858
 
3583
 
tpf*)
3584
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3585
 
  version_type=linux
3586
 
  need_lib_prefix=no
3587
 
  need_version=no
3588
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3589
 
  shlibpath_var=LD_LIBRARY_PATH
3590
 
  shlibpath_overrides_runpath=no
3591
 
  hardcode_into_libs=yes
3592
 
  ;;
3593
 
 
3594
2859
uts4*)
3595
2860
  version_type=linux
3596
2861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3609
2874
if test "$GCC" = yes; then
3610
2875
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3611
2876
fi
3612
 
 
3613
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3614
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3615
 
fi
3616
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3617
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3618
 
fi
3619
 
 
3620
 
_LT_DECL([], [variables_saved_for_relink], [1],
3621
 
    [Variables whose values should be saved in libtool wrapper scripts and
3622
 
    restored at link time])
3623
 
_LT_DECL([], [need_lib_prefix], [0],
3624
 
    [Do we need the "lib" prefix for modules?])
3625
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3626
 
_LT_DECL([], [version_type], [0], [Library versioning type])
3627
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3628
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3629
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3630
 
    [Is shlibpath searched before the hard-coded library search path?])
3631
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3632
 
_LT_DECL([], [library_names_spec], [1],
3633
 
    [[List of archive names.  First name is the real one, the rest are links.
3634
 
    The last name is the one that the linker finds with -lNAME]])
3635
 
_LT_DECL([], [soname_spec], [1],
3636
 
    [[The coded name of the library, if different from the real name]])
3637
 
_LT_DECL([], [postinstall_cmds], [2],
3638
 
    [Command to use after installation of a shared archive])
3639
 
_LT_DECL([], [postuninstall_cmds], [2],
3640
 
    [Command to use after uninstallation of a shared archive])
3641
 
_LT_DECL([], [finish_cmds], [2],
3642
 
    [Commands used to finish a libtool library installation in a directory])
3643
 
_LT_DECL([], [finish_eval], [1],
3644
 
    [[As "finish_cmds", except a single script fragment to be evaled but
3645
 
    not shown]])
3646
 
_LT_DECL([], [hardcode_into_libs], [0],
3647
 
    [Whether we should hardcode library paths into libraries])
3648
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
3649
 
    [Compile-time system search path for libraries])
3650
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3651
 
    [Run-time system search path for libraries])
3652
 
])# _LT_SYS_DYNAMIC_LINKER
3653
 
 
3654
 
 
3655
 
# _LT_PATH_TOOL_PREFIX(TOOL)
 
2877
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2878
 
 
2879
 
 
2880
# _LT_AC_TAGCONFIG
 
2881
# ----------------
 
2882
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2883
[AC_ARG_WITH([tags],
 
2884
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2885
        [include additional configurations @<:@automatic@:>@])],
 
2886
    [tagnames="$withval"])
 
2887
 
 
2888
if test -f "$ltmain" && test -n "$tagnames"; then
 
2889
  if test ! -f "${ofile}"; then
 
2890
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2891
  fi
 
2892
 
 
2893
  if test -z "$LTCC"; then
 
2894
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2895
    if test -z "$LTCC"; then
 
2896
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
2897
    else
 
2898
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2899
    fi
 
2900
  fi
 
2901
  if test -z "$LTCFLAGS"; then
 
2902
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
2903
  fi
 
2904
 
 
2905
  # Extract list of available tagged configurations in $ofile.
 
2906
  # Note that this assumes the entire list is on one line.
 
2907
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2908
 
 
2909
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2910
  for tagname in $tagnames; do
 
2911
    IFS="$lt_save_ifs"
 
2912
    # Check whether tagname contains only valid characters
 
2913
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2914
    "") ;;
 
2915
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2916
        ;;
 
2917
    esac
 
2918
 
 
2919
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2920
    then
 
2921
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2922
    fi
 
2923
 
 
2924
    # Update the list of available tags.
 
2925
    if test -n "$tagname"; then
 
2926
      echo appending configuration tag \"$tagname\" to $ofile
 
2927
 
 
2928
      case $tagname in
 
2929
      CXX)
 
2930
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2931
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2932
            (test "X$CXX" != "Xg++"))) ; then
 
2933
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2934
        else
 
2935
          tagname=""
 
2936
        fi
 
2937
        ;;
 
2938
 
 
2939
      F77)
 
2940
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2941
          AC_LIBTOOL_LANG_F77_CONFIG
 
2942
        else
 
2943
          tagname=""
 
2944
        fi
 
2945
        ;;
 
2946
 
 
2947
      GCJ)
 
2948
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2949
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2950
        else
 
2951
          tagname=""
 
2952
        fi
 
2953
        ;;
 
2954
 
 
2955
      RC)
 
2956
        AC_LIBTOOL_LANG_RC_CONFIG
 
2957
        ;;
 
2958
 
 
2959
      *)
 
2960
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2961
        ;;
 
2962
      esac
 
2963
 
 
2964
      # Append the new tag name to the list of available tags.
 
2965
      if test -n "$tagname" ; then
 
2966
      available_tags="$available_tags $tagname"
 
2967
    fi
 
2968
    fi
 
2969
  done
 
2970
  IFS="$lt_save_ifs"
 
2971
 
 
2972
  # Now substitute the updated list of available tags.
 
2973
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2974
    mv "${ofile}T" "$ofile"
 
2975
    chmod +x "$ofile"
 
2976
  else
 
2977
    rm -f "${ofile}T"
 
2978
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2979
  fi
 
2980
fi
 
2981
])# _LT_AC_TAGCONFIG
 
2982
 
 
2983
 
 
2984
# AC_LIBTOOL_DLOPEN
 
2985
# -----------------
 
2986
# enable checks for dlopen support
 
2987
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2988
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2989
])# AC_LIBTOOL_DLOPEN
 
2990
 
 
2991
 
 
2992
# AC_LIBTOOL_WIN32_DLL
 
2993
# --------------------
 
2994
# declare package support for building win32 DLLs
 
2995
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2996
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2997
])# AC_LIBTOOL_WIN32_DLL
 
2998
 
 
2999
 
 
3000
# AC_ENABLE_SHARED([DEFAULT])
 
3001
# ---------------------------
 
3002
# implement the --enable-shared flag
 
3003
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3004
AC_DEFUN([AC_ENABLE_SHARED],
 
3005
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
3006
AC_ARG_ENABLE([shared],
 
3007
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
3008
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
3009
    [p=${PACKAGE-default}
 
3010
    case $enableval in
 
3011
    yes) enable_shared=yes ;;
 
3012
    no) enable_shared=no ;;
 
3013
    *)
 
3014
      enable_shared=no
 
3015
      # Look at the argument we got.  We use all the common list separators.
 
3016
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3017
      for pkg in $enableval; do
 
3018
        IFS="$lt_save_ifs"
 
3019
        if test "X$pkg" = "X$p"; then
 
3020
          enable_shared=yes
 
3021
        fi
 
3022
      done
 
3023
      IFS="$lt_save_ifs"
 
3024
      ;;
 
3025
    esac],
 
3026
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
3027
])# AC_ENABLE_SHARED
 
3028
 
 
3029
 
 
3030
# AC_DISABLE_SHARED
 
3031
# -----------------
 
3032
# set the default shared flag to --disable-shared
 
3033
AC_DEFUN([AC_DISABLE_SHARED],
 
3034
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3035
AC_ENABLE_SHARED(no)
 
3036
])# AC_DISABLE_SHARED
 
3037
 
 
3038
 
 
3039
# AC_ENABLE_STATIC([DEFAULT])
 
3040
# ---------------------------
 
3041
# implement the --enable-static flag
 
3042
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3043
AC_DEFUN([AC_ENABLE_STATIC],
 
3044
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
3045
AC_ARG_ENABLE([static],
 
3046
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
3047
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
3048
    [p=${PACKAGE-default}
 
3049
    case $enableval in
 
3050
    yes) enable_static=yes ;;
 
3051
    no) enable_static=no ;;
 
3052
    *)
 
3053
     enable_static=no
 
3054
      # Look at the argument we got.  We use all the common list separators.
 
3055
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3056
      for pkg in $enableval; do
 
3057
        IFS="$lt_save_ifs"
 
3058
        if test "X$pkg" = "X$p"; then
 
3059
          enable_static=yes
 
3060
        fi
 
3061
      done
 
3062
      IFS="$lt_save_ifs"
 
3063
      ;;
 
3064
    esac],
 
3065
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
3066
])# AC_ENABLE_STATIC
 
3067
 
 
3068
 
 
3069
# AC_DISABLE_STATIC
 
3070
# -----------------
 
3071
# set the default static flag to --disable-static
 
3072
AC_DEFUN([AC_DISABLE_STATIC],
 
3073
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3074
AC_ENABLE_STATIC(no)
 
3075
])# AC_DISABLE_STATIC
 
3076
 
 
3077
 
 
3078
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
3079
# ---------------------------------
 
3080
# implement the --enable-fast-install flag
 
3081
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
3082
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
3083
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
3084
AC_ARG_ENABLE([fast-install],
 
3085
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
3086
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
3087
    [p=${PACKAGE-default}
 
3088
    case $enableval in
 
3089
    yes) enable_fast_install=yes ;;
 
3090
    no) enable_fast_install=no ;;
 
3091
    *)
 
3092
      enable_fast_install=no
 
3093
      # Look at the argument we got.  We use all the common list separators.
 
3094
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3095
      for pkg in $enableval; do
 
3096
        IFS="$lt_save_ifs"
 
3097
        if test "X$pkg" = "X$p"; then
 
3098
          enable_fast_install=yes
 
3099
        fi
 
3100
      done
 
3101
      IFS="$lt_save_ifs"
 
3102
      ;;
 
3103
    esac],
 
3104
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
3105
])# AC_ENABLE_FAST_INSTALL
 
3106
 
 
3107
 
 
3108
# AC_DISABLE_FAST_INSTALL
 
3109
# -----------------------
 
3110
# set the default to --disable-fast-install
 
3111
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
3112
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3113
AC_ENABLE_FAST_INSTALL(no)
 
3114
])# AC_DISABLE_FAST_INSTALL
 
3115
 
 
3116
 
 
3117
# AC_LIBTOOL_PICMODE([MODE])
3656
3118
# --------------------------
3657
 
# find a file program which can recognize shared library
3658
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3659
 
[m4_require([_LT_DECL_EGREP])dnl
 
3119
# implement the --with-pic flag
 
3120
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
3121
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
3122
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3123
pic_mode=ifelse($#,1,$1,default)
 
3124
])# AC_LIBTOOL_PICMODE
 
3125
 
 
3126
 
 
3127
# AC_PROG_EGREP
 
3128
# -------------
 
3129
# This is predefined starting with Autoconf 2.54, so this conditional
 
3130
# definition can be removed once we require Autoconf 2.54 or later.
 
3131
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
3132
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
3133
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3134
    then ac_cv_prog_egrep='grep -E'
 
3135
    else ac_cv_prog_egrep='egrep'
 
3136
    fi])
 
3137
 EGREP=$ac_cv_prog_egrep
 
3138
 AC_SUBST([EGREP])
 
3139
])])
 
3140
 
 
3141
 
 
3142
# AC_PATH_TOOL_PREFIX
 
3143
# -------------------
 
3144
# find a file program which can recognise shared library
 
3145
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
3146
[AC_REQUIRE([AC_PROG_EGREP])dnl
3660
3147
AC_MSG_CHECKING([for $1])
3661
3148
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3662
3149
[case $MAGIC_CMD in
3669
3156
dnl $ac_dummy forces splitting on constant user-supplied paths.
3670
3157
dnl POSIX.2 word splitting is done only on the output of word expansions,
3671
3158
dnl not every word.  This closes a longstanding sh security hole.
3672
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
3159
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3673
3160
  for ac_dir in $ac_dummy; do
3674
3161
    IFS="$lt_save_ifs"
3675
3162
    test -z "$ac_dir" && ac_dir=.
3684
3171
            $EGREP "$file_magic_regex" > /dev/null; then
3685
3172
            :
3686
3173
          else
3687
 
            cat <<_LT_EOF 1>&2
 
3174
            cat <<EOF 1>&2
3688
3175
 
3689
3176
*** Warning: the command libtool uses to detect shared libraries,
3690
3177
*** $file_magic_cmd, produces output that libtool cannot recognize.
3695
3182
*** may want to report the problem to your system manager and/or to
3696
3183
*** bug-libtool@gnu.org
3697
3184
 
3698
 
_LT_EOF
 
3185
EOF
3699
3186
          fi ;;
3700
3187
        esac
3701
3188
      fi
3712
3199
else
3713
3200
  AC_MSG_RESULT(no)
3714
3201
fi
3715
 
_LT_DECL([], [MAGIC_CMD], [0],
3716
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3717
 
])# _LT_PATH_TOOL_PREFIX
3718
 
 
3719
 
# Old name:
3720
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3721
 
dnl aclocal-1.4 backwards compatibility:
3722
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3723
 
 
3724
 
 
3725
 
# _LT_PATH_MAGIC
3726
 
# --------------
3727
 
# find a file program which can recognize a shared library
3728
 
m4_defun([_LT_PATH_MAGIC],
3729
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3202
])# AC_PATH_TOOL_PREFIX
 
3203
 
 
3204
 
 
3205
# AC_PATH_MAGIC
 
3206
# -------------
 
3207
# find a file program which can recognise a shared library
 
3208
AC_DEFUN([AC_PATH_MAGIC],
 
3209
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3730
3210
if test -z "$lt_cv_path_MAGIC_CMD"; then
3731
3211
  if test -n "$ac_tool_prefix"; then
3732
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3212
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3733
3213
  else
3734
3214
    MAGIC_CMD=:
3735
3215
  fi
3736
3216
fi
3737
 
])# _LT_PATH_MAGIC
3738
 
 
3739
 
 
3740
 
# LT_PATH_LD
 
3217
])# AC_PATH_MAGIC
 
3218
 
 
3219
 
 
3220
# AC_PROG_LD
3741
3221
# ----------
3742
3222
# find the pathname to the GNU or non-GNU linker
3743
 
AC_DEFUN([LT_PATH_LD],
3744
 
[AC_REQUIRE([AC_PROG_CC])dnl
3745
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3746
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3747
 
m4_require([_LT_DECL_SED])dnl
3748
 
m4_require([_LT_DECL_EGREP])dnl
3749
 
 
3750
 
AC_ARG_WITH([gnu-ld],
3751
 
    [AS_HELP_STRING([--with-gnu-ld],
 
3223
AC_DEFUN([AC_PROG_LD],
 
3224
[AC_ARG_WITH([gnu-ld],
 
3225
    [AC_HELP_STRING([--with-gnu-ld],
3752
3226
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3753
3227
    [test "$withval" = no || with_gnu_ld=yes],
3754
 
    [with_gnu_ld=no])dnl
3755
 
 
 
3228
    [with_gnu_ld=no])
 
3229
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3230
AC_REQUIRE([AC_PROG_CC])dnl
 
3231
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3232
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3756
3233
ac_prog=ld
3757
3234
if test "$GCC" = yes; then
3758
3235
  # Check if gcc -print-prog-name=ld gives a path.
3769
3246
    [[\\/]]* | ?:[[\\/]]*)
3770
3247
      re_direlt='/[[^/]][[^/]]*/\.\./'
3771
3248
      # Canonicalize the pathname of ld
3772
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3773
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3774
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
3249
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3250
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3251
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3775
3252
      done
3776
3253
      test -z "$LD" && LD="$ac_prog"
3777
3254
      ;;
3821
3298
  AC_MSG_RESULT(no)
3822
3299
fi
3823
3300
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3824
 
_LT_PATH_LD_GNU
3825
 
AC_SUBST([LD])
3826
 
 
3827
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3828
 
])# LT_PATH_LD
3829
 
 
3830
 
# Old names:
3831
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3832
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3833
 
dnl aclocal-1.4 backwards compatibility:
3834
 
dnl AC_DEFUN([AM_PROG_LD], [])
3835
 
dnl AC_DEFUN([AC_PROG_LD], [])
3836
 
 
3837
 
 
3838
 
# _LT_PATH_LD_GNU
3839
 
#- --------------
3840
 
m4_defun([_LT_PATH_LD_GNU],
3841
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3301
AC_PROG_LD_GNU
 
3302
])# AC_PROG_LD
 
3303
 
 
3304
 
 
3305
# AC_PROG_LD_GNU
 
3306
# --------------
 
3307
AC_DEFUN([AC_PROG_LD_GNU],
 
3308
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3309
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3842
3310
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3843
3311
case `$LD -v 2>&1 </dev/null` in
3844
3312
*GNU* | *'with BFD'*)
3849
3317
  ;;
3850
3318
esac])
3851
3319
with_gnu_ld=$lt_cv_prog_gnu_ld
3852
 
])# _LT_PATH_LD_GNU
3853
 
 
3854
 
 
3855
 
# _LT_CMD_RELOAD
3856
 
# --------------
 
3320
])# AC_PROG_LD_GNU
 
3321
 
 
3322
 
 
3323
# AC_PROG_LD_RELOAD_FLAG
 
3324
# ----------------------
3857
3325
# find reload flag for linker
3858
3326
#   -- PORTME Some linkers may need a different reload flag.
3859
 
m4_defun([_LT_CMD_RELOAD],
 
3327
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3860
3328
[AC_CACHE_CHECK([for $LD option to reload object files],
3861
3329
  lt_cv_ld_reload_flag,
3862
3330
  [lt_cv_ld_reload_flag='-r'])
3875
3343
    fi
3876
3344
    ;;
3877
3345
esac
3878
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3879
 
_LT_DECL([], [reload_cmds], [2])dnl
3880
 
])# _LT_CMD_RELOAD
3881
 
 
3882
 
 
3883
 
# _LT_CHECK_MAGIC_METHOD
3884
 
# ----------------------
 
3346
])# AC_PROG_LD_RELOAD_FLAG
 
3347
 
 
3348
 
 
3349
# AC_DEPLIBS_CHECK_METHOD
 
3350
# -----------------------
3885
3351
# how to check for library dependencies
3886
3352
#  -- PORTME fill in with the dynamic library characteristics
3887
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
3888
 
[m4_require([_LT_DECL_EGREP])
3889
 
m4_require([_LT_DECL_OBJDUMP])
3890
 
AC_CACHE_CHECK([how to recognize dependent libraries],
 
3353
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
3354
[AC_CACHE_CHECK([how to recognise dependent libraries],
3891
3355
lt_cv_deplibs_check_method,
3892
3356
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3893
3357
lt_cv_file_magic_test_file=
3904
3368
# whether `pass_all' will *always* work, you probably want this one.
3905
3369
 
3906
3370
case $host_os in
3907
 
aix[[4-9]]*)
 
3371
aix4* | aix5*)
3908
3372
  lt_cv_deplibs_check_method=pass_all
3909
3373
  ;;
3910
3374
 
3926
3390
 
3927
3391
mingw* | pw32*)
3928
3392
  # Base MSYS/MinGW do not provide the 'file' command needed by
3929
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3930
 
  # unless we find 'file', for example because we are cross-compiling.
3931
 
  if ( file / ) >/dev/null 2>&1; then
3932
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3933
 
    lt_cv_file_magic_cmd='func_win32_libid'
3934
 
  else
3935
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3936
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
3937
 
  fi
3938
 
  ;;
3939
 
 
3940
 
cegcc)
3941
 
  # use the weaker test based on 'objdump'. See mingw*.
3942
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3393
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3394
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3943
3395
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3944
3396
  ;;
3945
3397
 
3947
3399
  lt_cv_deplibs_check_method=pass_all
3948
3400
  ;;
3949
3401
 
3950
 
freebsd* | dragonfly*)
3951
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3402
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3403
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3952
3404
    case $host_cpu in
3953
3405
    i*86 )
3954
3406
      # Not sure whether the presence of OpenBSD here was a mistake.
3985
3437
  esac
3986
3438
  ;;
3987
3439
 
3988
 
interix[[3-9]]*)
 
3440
interix3*)
3989
3441
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3990
3442
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3991
3443
  ;;
4001
3453
  ;;
4002
3454
 
4003
3455
# This must be Linux ELF.
4004
 
linux* | k*bsd*-gnu)
 
3456
linux*)
4005
3457
  lt_cv_deplibs_check_method=pass_all
4006
3458
  ;;
4007
3459
 
4008
 
netbsd* | netbsdelf*-gnu)
4009
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3460
netbsd*)
 
3461
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4010
3462
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4011
3463
  else
4012
3464
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4019
3471
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4020
3472
  ;;
4021
3473
 
4022
 
*nto* | *qnx*)
4023
 
  lt_cv_deplibs_check_method=pass_all
 
3474
nto-qnx*)
 
3475
  lt_cv_deplibs_check_method=unknown
4024
3476
  ;;
4025
3477
 
4026
3478
openbsd*)
4027
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3479
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4028
3480
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4029
3481
  else
4030
3482
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4035
3487
  lt_cv_deplibs_check_method=pass_all
4036
3488
  ;;
4037
3489
 
4038
 
rdos*)
4039
 
  lt_cv_deplibs_check_method=pass_all
4040
 
  ;;
4041
 
 
4042
3490
solaris*)
4043
3491
  lt_cv_deplibs_check_method=pass_all
4044
3492
  ;;
4045
3493
 
4046
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4047
 
  lt_cv_deplibs_check_method=pass_all
4048
 
  ;;
4049
 
 
4050
3494
sysv4 | sysv4.3*)
4051
3495
  case $host_vendor in
4052
3496
  motorola)
4074
3518
  esac
4075
3519
  ;;
4076
3520
 
4077
 
tpf*)
 
3521
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4078
3522
  lt_cv_deplibs_check_method=pass_all
4079
3523
  ;;
4080
3524
esac
4082
3526
file_magic_cmd=$lt_cv_file_magic_cmd
4083
3527
deplibs_check_method=$lt_cv_deplibs_check_method
4084
3528
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4085
 
 
4086
 
_LT_DECL([], [deplibs_check_method], [1],
4087
 
    [Method to check whether dependent libraries are shared objects])
4088
 
_LT_DECL([], [file_magic_cmd], [1],
4089
 
    [Command to use when deplibs_check_method == "file_magic"])
4090
 
])# _LT_CHECK_MAGIC_METHOD
4091
 
 
4092
 
 
4093
 
# LT_PATH_NM
 
3529
])# AC_DEPLIBS_CHECK_METHOD
 
3530
 
 
3531
 
 
3532
# AC_PROG_NM
4094
3533
# ----------
4095
 
# find the pathname to a BSD- or MS-compatible name lister
4096
 
AC_DEFUN([LT_PATH_NM],
4097
 
[AC_REQUIRE([AC_PROG_CC])dnl
4098
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
3534
# find the pathname to a BSD-compatible name lister
 
3535
AC_DEFUN([AC_PROG_NM],
 
3536
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4099
3537
[if test -n "$NM"; then
4100
3538
  # Let the user override the test.
4101
3539
  lt_cv_path_NM="$NM"
4102
3540
else
4103
3541
  lt_nm_to_check="${ac_tool_prefix}nm"
4104
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3542
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
4105
3543
    lt_nm_to_check="$lt_nm_to_check nm"
4106
3544
  fi
4107
3545
  for lt_tmp_nm in $lt_nm_to_check; do
4137
3575
    done
4138
3576
    IFS="$lt_save_ifs"
4139
3577
  done
4140
 
  : ${lt_cv_path_NM=no}
 
3578
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4141
3579
fi])
4142
 
if test "$lt_cv_path_NM" != "no"; then
4143
 
  NM="$lt_cv_path_NM"
4144
 
else
4145
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4146
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4147
 
  AC_SUBST([DUMPBIN])
4148
 
  if test "$DUMPBIN" != ":"; then
4149
 
    NM="$DUMPBIN"
4150
 
  fi
4151
 
fi
4152
 
test -z "$NM" && NM=nm
4153
 
AC_SUBST([NM])
4154
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4155
 
 
4156
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4157
 
  [lt_cv_nm_interface="BSD nm"
4158
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4159
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4160
 
  (eval "$ac_compile" 2>conftest.err)
4161
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4162
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4163
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4164
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
4165
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4166
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
4167
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4168
 
    lt_cv_nm_interface="MS dumpbin"
4169
 
  fi
4170
 
  rm -f conftest*])
4171
 
])# LT_PATH_NM
4172
 
 
4173
 
# Old names:
4174
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4175
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4176
 
dnl aclocal-1.4 backwards compatibility:
4177
 
dnl AC_DEFUN([AM_PROG_NM], [])
4178
 
dnl AC_DEFUN([AC_PROG_NM], [])
4179
 
 
4180
 
 
4181
 
# LT_LIB_M
4182
 
# --------
 
3580
NM="$lt_cv_path_NM"
 
3581
])# AC_PROG_NM
 
3582
 
 
3583
 
 
3584
# AC_CHECK_LIBM
 
3585
# -------------
4183
3586
# check for math library
4184
 
AC_DEFUN([LT_LIB_M],
 
3587
AC_DEFUN([AC_CHECK_LIBM],
4185
3588
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4186
3589
LIBM=
4187
3590
case $host in
4196
3599
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4197
3600
  ;;
4198
3601
esac
4199
 
AC_SUBST([LIBM])
4200
 
])# LT_LIB_M
4201
 
 
4202
 
# Old name:
4203
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4204
 
dnl aclocal-1.4 backwards compatibility:
4205
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4206
 
 
4207
 
 
4208
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
4209
 
# -------------------------------
4210
 
m4_defun([_LT_COMPILER_NO_RTTI],
4211
 
[m4_require([_LT_TAG_COMPILER])dnl
4212
 
 
4213
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3602
])# AC_CHECK_LIBM
 
3603
 
 
3604
 
 
3605
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3606
# -----------------------------------
 
3607
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3608
# LTDLINCL to the include flags for the libltdl header and adds
 
3609
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3610
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3611
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3612
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3613
# (note the single quotes!).  If your package is not flat and you're not
 
3614
# using automake, define top_builddir and top_srcdir appropriately in
 
3615
# the Makefiles.
 
3616
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3617
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3618
  case $enable_ltdl_convenience in
 
3619
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3620
  "") enable_ltdl_convenience=yes
 
3621
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3622
  esac
 
3623
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3624
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3625
  # For backwards non-gettext consistent compatibility...
 
3626
  INCLTDL="$LTDLINCL"
 
3627
])# AC_LIBLTDL_CONVENIENCE
 
3628
 
 
3629
 
 
3630
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3631
# -----------------------------------
 
3632
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3633
# LTDLINCL to the include flags for the libltdl header and adds
 
3634
# --enable-ltdl-install to the configure arguments.  Note that
 
3635
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3636
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3637
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3638
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3639
# flat and you're not using automake, define top_builddir and top_srcdir
 
3640
# appropriately in the Makefiles.
 
3641
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3642
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3643
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3644
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3645
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3646
  [if test x"$enable_ltdl_install" = xno; then
 
3647
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3648
   else
 
3649
     enable_ltdl_install=yes
 
3650
   fi
 
3651
  ])
 
3652
  if test x"$enable_ltdl_install" = x"yes"; then
 
3653
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
3654
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
3655
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3656
  else
 
3657
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
3658
    LIBLTDL="-lltdl"
 
3659
    LTDLINCL=
 
3660
  fi
 
3661
  # For backwards non-gettext consistent compatibility...
 
3662
  INCLTDL="$LTDLINCL"
 
3663
])# AC_LIBLTDL_INSTALLABLE
 
3664
 
 
3665
 
 
3666
# AC_LIBTOOL_CXX
 
3667
# --------------
 
3668
# enable support for C++ libraries
 
3669
AC_DEFUN([AC_LIBTOOL_CXX],
 
3670
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3671
])# AC_LIBTOOL_CXX
 
3672
 
 
3673
 
 
3674
# _LT_AC_LANG_CXX
 
3675
# ---------------
 
3676
AC_DEFUN([_LT_AC_LANG_CXX],
 
3677
[AC_REQUIRE([AC_PROG_CXX])
 
3678
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3679
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
3680
])# _LT_AC_LANG_CXX
 
3681
 
 
3682
# _LT_AC_PROG_CXXCPP
 
3683
# ------------------
 
3684
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3685
[
 
3686
AC_REQUIRE([AC_PROG_CXX])
 
3687
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3688
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3689
    (test "X$CXX" != "Xg++"))) ; then
 
3690
  AC_PROG_CXXCPP
 
3691
fi
 
3692
])# _LT_AC_PROG_CXXCPP
 
3693
 
 
3694
# AC_LIBTOOL_F77
 
3695
# --------------
 
3696
# enable support for Fortran 77 libraries
 
3697
AC_DEFUN([AC_LIBTOOL_F77],
 
3698
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3699
])# AC_LIBTOOL_F77
 
3700
 
 
3701
 
 
3702
# _LT_AC_LANG_F77
 
3703
# ---------------
 
3704
AC_DEFUN([_LT_AC_LANG_F77],
 
3705
[AC_REQUIRE([AC_PROG_F77])
 
3706
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
3707
])# _LT_AC_LANG_F77
 
3708
 
 
3709
 
 
3710
# AC_LIBTOOL_GCJ
 
3711
# --------------
 
3712
# enable support for GCJ libraries
 
3713
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3714
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3715
])# AC_LIBTOOL_GCJ
 
3716
 
 
3717
 
 
3718
# _LT_AC_LANG_GCJ
 
3719
# ---------------
 
3720
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3721
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3722
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3723
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3724
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3725
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3726
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3727
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
3728
])# _LT_AC_LANG_GCJ
 
3729
 
 
3730
 
 
3731
# AC_LIBTOOL_RC
 
3732
# -------------
 
3733
# enable support for Windows resource files
 
3734
AC_DEFUN([AC_LIBTOOL_RC],
 
3735
[AC_REQUIRE([LT_AC_PROG_RC])
 
3736
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
3737
])# AC_LIBTOOL_RC
 
3738
 
 
3739
 
 
3740
# AC_LIBTOOL_LANG_C_CONFIG
 
3741
# ------------------------
 
3742
# Ensure that the configuration vars for the C compiler are
 
3743
# suitably defined.  Those variables are subsequently used by
 
3744
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3745
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3746
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3747
[lt_save_CC="$CC"
 
3748
AC_LANG_PUSH(C)
 
3749
 
 
3750
# Source file extension for C test sources.
 
3751
ac_ext=c
 
3752
 
 
3753
# Object file extension for compiled C test sources.
 
3754
objext=o
 
3755
_LT_AC_TAGVAR(objext, $1)=$objext
 
3756
 
 
3757
# Code to be used in simple compile tests
 
3758
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3759
 
 
3760
# Code to be used in simple link tests
 
3761
lt_simple_link_test_code='int main(){return(0);}\n'
 
3762
 
 
3763
_LT_AC_SYS_COMPILER
 
3764
 
 
3765
# save warnings/boilerplate of simple test code
 
3766
_LT_COMPILER_BOILERPLATE
 
3767
_LT_LINKER_BOILERPLATE
 
3768
 
 
3769
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3770
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3771
AC_LIBTOOL_PROG_CC_C_O($1)
 
3772
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3773
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3774
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3775
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3776
AC_LIBTOOL_SYS_LIB_STRIP
 
3777
AC_LIBTOOL_DLOPEN_SELF
 
3778
 
 
3779
# Report which library types will actually be built
 
3780
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3781
AC_MSG_RESULT([$can_build_shared])
 
3782
 
 
3783
AC_MSG_CHECKING([whether to build shared libraries])
 
3784
test "$can_build_shared" = "no" && enable_shared=no
 
3785
 
 
3786
# On AIX, shared libraries and static libraries use the same namespace, and
 
3787
# are all built from PIC.
 
3788
case $host_os in
 
3789
aix3*)
 
3790
  test "$enable_shared" = yes && enable_static=no
 
3791
  if test -n "$RANLIB"; then
 
3792
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3793
    postinstall_cmds='$RANLIB $lib'
 
3794
  fi
 
3795
  ;;
 
3796
 
 
3797
aix4* | aix5*)
 
3798
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3799
    test "$enable_shared" = yes && enable_static=no
 
3800
  fi
 
3801
    ;;
 
3802
esac
 
3803
AC_MSG_RESULT([$enable_shared])
 
3804
 
 
3805
AC_MSG_CHECKING([whether to build static libraries])
 
3806
# Make sure either enable_shared or enable_static is yes.
 
3807
test "$enable_shared" = yes || enable_static=yes
 
3808
AC_MSG_RESULT([$enable_static])
 
3809
 
 
3810
AC_LIBTOOL_CONFIG($1)
 
3811
 
 
3812
AC_LANG_POP
 
3813
CC="$lt_save_CC"
 
3814
])# AC_LIBTOOL_LANG_C_CONFIG
 
3815
 
 
3816
 
 
3817
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3818
# --------------------------
 
3819
# Ensure that the configuration vars for the C compiler are
 
3820
# suitably defined.  Those variables are subsequently used by
 
3821
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3822
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3823
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3824
[AC_LANG_PUSH(C++)
 
3825
AC_REQUIRE([AC_PROG_CXX])
 
3826
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3827
 
 
3828
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3829
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3830
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3831
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3832
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3833
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3836
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3837
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3838
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3839
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3840
_LT_AC_TAGVAR(module_cmds, $1)=
 
3841
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3842
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3843
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3844
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3845
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3846
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3847
 
 
3848
# Dependencies to place before and after the object being linked:
 
3849
_LT_AC_TAGVAR(predep_objects, $1)=
 
3850
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3851
_LT_AC_TAGVAR(predeps, $1)=
 
3852
_LT_AC_TAGVAR(postdeps, $1)=
 
3853
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3854
 
 
3855
# Source file extension for C++ test sources.
 
3856
ac_ext=cpp
 
3857
 
 
3858
# Object file extension for compiled C++ test sources.
 
3859
objext=o
 
3860
_LT_AC_TAGVAR(objext, $1)=$objext
 
3861
 
 
3862
# Code to be used in simple compile tests
 
3863
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3864
 
 
3865
# Code to be used in simple link tests
 
3866
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 
3867
 
 
3868
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3869
_LT_AC_SYS_COMPILER
 
3870
 
 
3871
# save warnings/boilerplate of simple test code
 
3872
_LT_COMPILER_BOILERPLATE
 
3873
_LT_LINKER_BOILERPLATE
 
3874
 
 
3875
# Allow CC to be a program name with arguments.
 
3876
lt_save_CC=$CC
 
3877
lt_save_LD=$LD
 
3878
lt_save_GCC=$GCC
 
3879
GCC=$GXX
 
3880
lt_save_with_gnu_ld=$with_gnu_ld
 
3881
lt_save_path_LD=$lt_cv_path_LD
 
3882
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3883
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3884
else
 
3885
  $as_unset lt_cv_prog_gnu_ld
 
3886
fi
 
3887
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3888
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3889
else
 
3890
  $as_unset lt_cv_path_LD
 
3891
fi
 
3892
test -z "${LDCXX+set}" || LD=$LDCXX
 
3893
CC=${CXX-"c++"}
 
3894
compiler=$CC
 
3895
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3896
_LT_CC_BASENAME([$compiler])
 
3897
 
 
3898
# We don't want -fno-exception wen compiling C++ code, so set the
 
3899
# no_builtin_flag separately
 
3900
if test "$GXX" = yes; then
 
3901
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3902
else
 
3903
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3904
fi
 
3905
 
 
3906
if test "$GXX" = yes; then
 
3907
  # Set up default GNU C++ configuration
 
3908
 
 
3909
  AC_PROG_LD
 
3910
 
 
3911
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3912
  # archiving commands below assume that GNU ld is being used.
 
3913
  if test "$with_gnu_ld" = yes; then
 
3914
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3915
    _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'
 
3916
 
 
3917
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3918
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3919
 
 
3920
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3921
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3922
    #     investigate it a little bit more. (MM)
 
3923
    wlarc='${wl}'
 
3924
 
 
3925
    # ancient GNU ld didn't support --whole-archive et. al.
 
3926
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3927
        grep 'no-whole-archive' > /dev/null; then
 
3928
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3929
    else
 
3930
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3931
    fi
 
3932
  else
 
3933
    with_gnu_ld=no
 
3934
    wlarc=
 
3935
 
 
3936
    # A generic and very simple default shared library creation
 
3937
    # command for GNU C++ for the case where it uses the native
 
3938
    # linker, instead of GNU ld.  If possible, this setting should
 
3939
    # overridden to take advantage of the native linker features on
 
3940
    # the platform it is being used on.
 
3941
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3942
  fi
 
3943
 
 
3944
  # Commands to make compiler produce verbose output that lists
 
3945
  # what "hidden" libraries, object files and flags are used when
 
3946
  # linking a shared library.
 
3947
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3948
 
 
3949
else
 
3950
  GXX=no
 
3951
  with_gnu_ld=no
 
3952
  wlarc=
 
3953
fi
 
3954
 
 
3955
# PORTME: fill in a description of your system's C++ link characteristics
 
3956
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3957
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3958
case $host_os in
 
3959
  aix3*)
 
3960
    # FIXME: insert proper C++ library support
 
3961
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3962
    ;;
 
3963
  aix4* | aix5*)
 
3964
    if test "$host_cpu" = ia64; then
 
3965
      # On IA64, the linker does run time linking by default, so we don't
 
3966
      # have to do anything special.
 
3967
      aix_use_runtimelinking=no
 
3968
      exp_sym_flag='-Bexport'
 
3969
      no_entry_flag=""
 
3970
    else
 
3971
      aix_use_runtimelinking=no
 
3972
 
 
3973
      # Test if we are trying to use run time linking or normal
 
3974
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3975
      # need to do runtime linking.
 
3976
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3977
        for ld_flag in $LDFLAGS; do
 
3978
          case $ld_flag in
 
3979
          *-brtl*)
 
3980
            aix_use_runtimelinking=yes
 
3981
            break
 
3982
            ;;
 
3983
          esac
 
3984
        done
 
3985
        ;;
 
3986
      esac
 
3987
 
 
3988
      exp_sym_flag='-bexport'
 
3989
      no_entry_flag='-bnoentry'
 
3990
    fi
 
3991
 
 
3992
    # When large executables or shared objects are built, AIX ld can
 
3993
    # have problems creating the table of contents.  If linking a library
 
3994
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3995
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3996
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3997
 
 
3998
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3999
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4000
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4001
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4002
 
 
4003
    if test "$GXX" = yes; then
 
4004
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
4005
      # We only want to do this on AIX 4.2 and lower, the check
 
4006
      # below for broken collect2 doesn't work under 4.3+
 
4007
        collect2name=`${CC} -print-prog-name=collect2`
 
4008
        if test -f "$collect2name" && \
 
4009
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4010
        then
 
4011
          # We have reworked collect2
 
4012
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4013
        else
 
4014
          # We have old collect2
 
4015
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4016
          # It fails to find uninstalled libraries when the uninstalled
 
4017
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4018
          # to unsupported forces relinking
 
4019
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4020
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4021
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4022
        fi
 
4023
        ;;
 
4024
      esac
 
4025
      shared_flag='-shared'
 
4026
      if test "$aix_use_runtimelinking" = yes; then
 
4027
        shared_flag="$shared_flag "'${wl}-G'
 
4028
      fi
 
4029
    else
 
4030
      # not using gcc
 
4031
      if test "$host_cpu" = ia64; then
 
4032
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4033
        # chokes on -Wl,-G. The following line is correct:
 
4034
        shared_flag='-G'
 
4035
      else
 
4036
        if test "$aix_use_runtimelinking" = yes; then
 
4037
          shared_flag='${wl}-G'
 
4038
        else
 
4039
          shared_flag='${wl}-bM:SRE'
 
4040
        fi
 
4041
      fi
 
4042
    fi
 
4043
 
 
4044
    # It seems that -bexpall does not export symbols beginning with
 
4045
    # underscore (_), so it is better to generate a list of symbols to export.
 
4046
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4047
    if test "$aix_use_runtimelinking" = yes; then
 
4048
      # Warning - without using the other runtime loading flags (-brtl),
 
4049
      # -berok will link without error, but may produce a broken library.
 
4050
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4051
      # Determine the default libpath from the value encoded in an empty executable.
 
4052
      _LT_AC_SYS_LIBPATH_AIX
 
4053
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4054
 
 
4055
      _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"
 
4056
     else
 
4057
      if test "$host_cpu" = ia64; then
 
4058
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4059
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4060
        _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"
 
4061
      else
 
4062
        # Determine the default libpath from the value encoded in an empty executable.
 
4063
        _LT_AC_SYS_LIBPATH_AIX
 
4064
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4065
        # Warning - without using the other run time loading flags,
 
4066
        # -berok will link without error, but may produce a broken library.
 
4067
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4068
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4069
        # Exported symbols can be pulled into shared objects from archives
 
4070
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4071
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4072
        # This is similar to how AIX traditionally builds its shared libraries.
 
4073
        _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'
 
4074
      fi
 
4075
    fi
 
4076
    ;;
 
4077
 
 
4078
  beos*)
 
4079
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4080
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4081
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
4082
      # support --undefined.  This deserves some investigation.  FIXME
 
4083
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4084
    else
 
4085
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4086
    fi
 
4087
    ;;
 
4088
 
 
4089
  chorus*)
 
4090
    case $cc_basename in
 
4091
      *)
 
4092
        # FIXME: insert proper C++ library support
 
4093
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4094
        ;;
 
4095
    esac
 
4096
    ;;
 
4097
 
 
4098
  cygwin* | mingw* | pw32*)
 
4099
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4100
    # as there is no search path for DLLs.
 
4101
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4102
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4103
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4104
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4105
 
 
4106
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
4107
      _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'
 
4108
      # If the export-symbols file already is a .def file (1st line
 
4109
      # is EXPORTS), use it as is; otherwise, prepend...
 
4110
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4111
        cp $export_symbols $output_objdir/$soname.def;
 
4112
      else
 
4113
        echo EXPORTS > $output_objdir/$soname.def;
 
4114
        cat $export_symbols >> $output_objdir/$soname.def;
 
4115
      fi~
 
4116
      $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'
 
4117
    else
 
4118
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4119
    fi
 
4120
  ;;
 
4121
      darwin* | rhapsody*)
 
4122
        case $host_os in
 
4123
        rhapsody* | darwin1.[[012]])
 
4124
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
4125
         ;;
 
4126
       *) # Darwin 1.3 on
 
4127
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
4128
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4129
         else
 
4130
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
4131
             10.[[012]])
 
4132
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
4133
               ;;
 
4134
             10.*)
 
4135
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
4136
               ;;
 
4137
           esac
 
4138
         fi
 
4139
         ;;
 
4140
        esac
 
4141
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4142
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4143
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
4144
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4145
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
4146
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4147
 
 
4148
    if test "$GXX" = yes ; then
 
4149
      lt_int_apple_cc_single_mod=no
 
4150
      output_verbose_link_cmd='echo'
 
4151
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
4152
       lt_int_apple_cc_single_mod=yes
 
4153
      fi
 
4154
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4155
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
4156
      else
 
4157
          _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'
 
4158
        fi
 
4159
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4160
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4161
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
4162
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4163
          else
 
4164
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4165
          fi
 
4166
            _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}'
 
4167
      else
 
4168
      case $cc_basename in
 
4169
        xlc*)
 
4170
         output_verbose_link_cmd='echo'
 
4171
          _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` $verstring'
 
4172
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
4173
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
4174
          _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
4175
          _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}'
 
4176
          ;;
 
4177
       *)
 
4178
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4179
          ;;
 
4180
      esac
 
4181
      fi
 
4182
        ;;
 
4183
 
 
4184
  dgux*)
 
4185
    case $cc_basename in
 
4186
      ec++*)
 
4187
        # FIXME: insert proper C++ library support
 
4188
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4189
        ;;
 
4190
      ghcx*)
 
4191
        # Green Hills C++ Compiler
 
4192
        # FIXME: insert proper C++ library support
 
4193
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4194
        ;;
 
4195
      *)
 
4196
        # FIXME: insert proper C++ library support
 
4197
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4198
        ;;
 
4199
    esac
 
4200
    ;;
 
4201
  freebsd[[12]]*)
 
4202
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
4203
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4204
    ;;
 
4205
  freebsd-elf*)
 
4206
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4207
    ;;
 
4208
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
4209
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
4210
    # conventions
 
4211
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4212
    ;;
 
4213
  gnu*)
 
4214
    ;;
 
4215
  hpux9*)
 
4216
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4217
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4218
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4219
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4220
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4221
                                # but as the default
 
4222
                                # location of the library.
 
4223
 
 
4224
    case $cc_basename in
 
4225
    CC*)
 
4226
      # FIXME: insert proper C++ library support
 
4227
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4228
      ;;
 
4229
    aCC*)
 
4230
      _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'
 
4231
      # Commands to make compiler produce verbose output that lists
 
4232
      # what "hidden" libraries, object files and flags are used when
 
4233
      # linking a shared library.
 
4234
      #
 
4235
      # There doesn't appear to be a way to prevent this compiler from
 
4236
      # explicitly linking system object files so we need to strip them
 
4237
      # from the output so that they don't get included in the library
 
4238
      # dependencies.
 
4239
      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'
 
4240
      ;;
 
4241
    *)
 
4242
      if test "$GXX" = yes; then
 
4243
        _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'
 
4244
      else
 
4245
        # FIXME: insert proper C++ library support
 
4246
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4247
      fi
 
4248
      ;;
 
4249
    esac
 
4250
    ;;
 
4251
  hpux10*|hpux11*)
 
4252
    if test $with_gnu_ld = no; then
 
4253
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4254
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4255
 
 
4256
      case $host_cpu in
 
4257
      hppa*64*|ia64*)
 
4258
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4259
        ;;
 
4260
      *)
 
4261
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4262
        ;;
 
4263
      esac
 
4264
    fi
 
4265
    case $host_cpu in
 
4266
    hppa*64*|ia64*)
 
4267
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4268
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4269
      ;;
 
4270
    *)
 
4271
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4272
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4273
                                              # but as the default
 
4274
                                              # location of the library.
 
4275
      ;;
 
4276
    esac
 
4277
 
 
4278
    case $cc_basename in
 
4279
      CC*)
 
4280
        # FIXME: insert proper C++ library support
 
4281
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4282
        ;;
 
4283
      aCC*)
 
4284
        case $host_cpu in
 
4285
        hppa*64*)
 
4286
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4287
          ;;
 
4288
        ia64*)
 
4289
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4290
          ;;
 
4291
        *)
 
4292
          _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'
 
4293
          ;;
 
4294
        esac
 
4295
        # Commands to make compiler produce verbose output that lists
 
4296
        # what "hidden" libraries, object files and flags are used when
 
4297
        # linking a shared library.
 
4298
        #
 
4299
        # There doesn't appear to be a way to prevent this compiler from
 
4300
        # explicitly linking system object files so we need to strip them
 
4301
        # from the output so that they don't get included in the library
 
4302
        # dependencies.
 
4303
        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'
 
4304
        ;;
 
4305
      *)
 
4306
        if test "$GXX" = yes; then
 
4307
          if test $with_gnu_ld = no; then
 
4308
            case $host_cpu in
 
4309
            hppa*64*)
 
4310
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4311
              ;;
 
4312
            ia64*)
 
4313
              _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'
 
4314
              ;;
 
4315
            *)
 
4316
              _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'
 
4317
              ;;
 
4318
            esac
 
4319
          fi
 
4320
        else
 
4321
          # FIXME: insert proper C++ library support
 
4322
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4323
        fi
 
4324
        ;;
 
4325
    esac
 
4326
    ;;
 
4327
  interix3*)
 
4328
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4329
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4330
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4331
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4332
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
4333
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
4334
    # default) and relocated if they conflict, which is a slow very memory
 
4335
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
4336
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
4337
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
4338
    _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'
 
4339
    _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'
 
4340
    ;;
 
4341
  irix5* | irix6*)
 
4342
    case $cc_basename in
 
4343
      CC*)
 
4344
        # SGI C++
 
4345
        _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'
 
4346
 
 
4347
        # Archives containing C++ object files must be created using
 
4348
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
4349
        # necessary to make sure instantiated templates are included
 
4350
        # in the archive.
 
4351
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
4352
        ;;
 
4353
      *)
 
4354
        if test "$GXX" = yes; then
 
4355
          if test "$with_gnu_ld" = no; then
 
4356
            _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'
 
4357
          else
 
4358
            _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'
 
4359
          fi
 
4360
        fi
 
4361
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4362
        ;;
 
4363
    esac
 
4364
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4365
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4366
    ;;
 
4367
  linux*)
 
4368
    case $cc_basename in
 
4369
      KCC*)
 
4370
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4371
 
 
4372
        # KCC will only create a shared library if the output file
 
4373
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4374
        # to its proper name (with version) after linking.
 
4375
        _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'
 
4376
        _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'
 
4377
        # Commands to make compiler produce verbose output that lists
 
4378
        # what "hidden" libraries, object files and flags are used when
 
4379
        # linking a shared library.
 
4380
        #
 
4381
        # There doesn't appear to be a way to prevent this compiler from
 
4382
        # explicitly linking system object files so we need to strip them
 
4383
        # from the output so that they don't get included in the library
 
4384
        # dependencies.
 
4385
        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'
 
4386
 
 
4387
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4388
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4389
 
 
4390
        # Archives containing C++ object files must be created using
 
4391
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4392
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4393
        ;;
 
4394
      icpc*)
 
4395
        # Intel C++
 
4396
        with_gnu_ld=yes
 
4397
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4398
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4399
        # earlier do not add the objects themselves.
 
4400
        case `$CC -V 2>&1` in
 
4401
        *"Version 7."*)
 
4402
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4403
          _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'
 
4404
          ;;
 
4405
        *)  # Version 8.0 or newer
 
4406
          tmp_idyn=
 
4407
          case $host_cpu in
 
4408
            ia64*) tmp_idyn=' -i_dynamic';;
 
4409
          esac
 
4410
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4411
          _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'
 
4412
          ;;
 
4413
        esac
 
4414
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4415
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4416
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4417
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4418
        ;;
 
4419
      pgCC*)
 
4420
        # Portland Group C++ compiler
 
4421
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4422
        _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'
 
4423
 
 
4424
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4425
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4426
        _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'
 
4427
        ;;
 
4428
      cxx*)
 
4429
        # Compaq C++
 
4430
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4431
        _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'
 
4432
 
 
4433
        runpath_var=LD_RUN_PATH
 
4434
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4435
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4436
 
 
4437
        # Commands to make compiler produce verbose output that lists
 
4438
        # what "hidden" libraries, object files and flags are used when
 
4439
        # linking a shared library.
 
4440
        #
 
4441
        # There doesn't appear to be a way to prevent this compiler from
 
4442
        # explicitly linking system object files so we need to strip them
 
4443
        # from the output so that they don't get included in the library
 
4444
        # dependencies.
 
4445
        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'
 
4446
        ;;
 
4447
    esac
 
4448
    ;;
 
4449
  lynxos*)
 
4450
    # FIXME: insert proper C++ library support
 
4451
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4452
    ;;
 
4453
  m88k*)
 
4454
    # FIXME: insert proper C++ library support
 
4455
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4456
    ;;
 
4457
  mvs*)
 
4458
    case $cc_basename in
 
4459
      cxx*)
 
4460
        # FIXME: insert proper C++ library support
 
4461
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4462
        ;;
 
4463
      *)
 
4464
        # FIXME: insert proper C++ library support
 
4465
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4466
        ;;
 
4467
    esac
 
4468
    ;;
 
4469
  netbsd*)
 
4470
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4471
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4472
      wlarc=
 
4473
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4474
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4475
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4476
    fi
 
4477
    # Workaround some broken pre-1.5 toolchains
 
4478
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4479
    ;;
 
4480
  openbsd2*)
 
4481
    # C++ shared libraries are fairly broken
 
4482
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4483
    ;;
 
4484
  openbsd*)
 
4485
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4486
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4487
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4488
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4489
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4490
      _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'
 
4491
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4492
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4493
    fi
 
4494
    output_verbose_link_cmd='echo'
 
4495
    ;;
 
4496
  osf3*)
 
4497
    case $cc_basename in
 
4498
      KCC*)
 
4499
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4500
 
 
4501
        # KCC will only create a shared library if the output file
 
4502
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4503
        # to its proper name (with version) after linking.
 
4504
        _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'
 
4505
 
 
4506
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4507
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4508
 
 
4509
        # Archives containing C++ object files must be created using
 
4510
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4511
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4512
 
 
4513
        ;;
 
4514
      RCC*)
 
4515
        # Rational C++ 2.4.1
 
4516
        # FIXME: insert proper C++ library support
 
4517
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4518
        ;;
 
4519
      cxx*)
 
4520
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4521
        _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'
 
4522
 
 
4523
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4524
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4525
 
 
4526
        # Commands to make compiler produce verbose output that lists
 
4527
        # what "hidden" libraries, object files and flags are used when
 
4528
        # linking a shared library.
 
4529
        #
 
4530
        # There doesn't appear to be a way to prevent this compiler from
 
4531
        # explicitly linking system object files so we need to strip them
 
4532
        # from the output so that they don't get included in the library
 
4533
        # dependencies.
 
4534
        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'
 
4535
        ;;
 
4536
      *)
 
4537
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4538
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4539
          _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'
 
4540
 
 
4541
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4542
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4543
 
 
4544
          # Commands to make compiler produce verbose output that lists
 
4545
          # what "hidden" libraries, object files and flags are used when
 
4546
          # linking a shared library.
 
4547
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4548
 
 
4549
        else
 
4550
          # FIXME: insert proper C++ library support
 
4551
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4552
        fi
 
4553
        ;;
 
4554
    esac
 
4555
    ;;
 
4556
  osf4* | osf5*)
 
4557
    case $cc_basename in
 
4558
      KCC*)
 
4559
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4560
 
 
4561
        # KCC will only create a shared library if the output file
 
4562
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4563
        # to its proper name (with version) after linking.
 
4564
        _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'
 
4565
 
 
4566
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4567
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4568
 
 
4569
        # Archives containing C++ object files must be created using
 
4570
        # the KAI C++ compiler.
 
4571
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4572
        ;;
 
4573
      RCC*)
 
4574
        # Rational C++ 2.4.1
 
4575
        # FIXME: insert proper C++ library support
 
4576
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4577
        ;;
 
4578
      cxx*)
 
4579
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4580
        _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'
 
4581
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4582
          echo "-hidden">> $lib.exp~
 
4583
          $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~
 
4584
          $rm $lib.exp'
 
4585
 
 
4586
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4587
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4588
 
 
4589
        # Commands to make compiler produce verbose output that lists
 
4590
        # what "hidden" libraries, object files and flags are used when
 
4591
        # linking a shared library.
 
4592
        #
 
4593
        # There doesn't appear to be a way to prevent this compiler from
 
4594
        # explicitly linking system object files so we need to strip them
 
4595
        # from the output so that they don't get included in the library
 
4596
        # dependencies.
 
4597
        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'
 
4598
        ;;
 
4599
      *)
 
4600
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4601
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4602
         _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'
 
4603
 
 
4604
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4605
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4606
 
 
4607
          # Commands to make compiler produce verbose output that lists
 
4608
          # what "hidden" libraries, object files and flags are used when
 
4609
          # linking a shared library.
 
4610
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4611
 
 
4612
        else
 
4613
          # FIXME: insert proper C++ library support
 
4614
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4615
        fi
 
4616
        ;;
 
4617
    esac
 
4618
    ;;
 
4619
  psos*)
 
4620
    # FIXME: insert proper C++ library support
 
4621
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4622
    ;;
 
4623
  sunos4*)
 
4624
    case $cc_basename in
 
4625
      CC*)
 
4626
        # Sun C++ 4.x
 
4627
        # FIXME: insert proper C++ library support
 
4628
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4629
        ;;
 
4630
      lcc*)
 
4631
        # Lucid
 
4632
        # FIXME: insert proper C++ library support
 
4633
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4634
        ;;
 
4635
      *)
 
4636
        # FIXME: insert proper C++ library support
 
4637
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4638
        ;;
 
4639
    esac
 
4640
    ;;
 
4641
  solaris*)
 
4642
    case $cc_basename in
 
4643
      CC*)
 
4644
        # Sun C++ 4.2, 5.x and Centerline C++
 
4645
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
4646
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4647
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4648
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4649
        $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'
 
4650
 
 
4651
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4652
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4653
        case $host_os in
 
4654
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4655
          *)
 
4656
            # The C++ compiler is used as linker so we must use $wl
 
4657
            # flag to pass the commands to the underlying system
 
4658
            # linker. We must also pass each convience library through
 
4659
            # to the system linker between allextract/defaultextract.
 
4660
            # The C++ compiler will combine linker options so we
 
4661
            # cannot just pass the convience library names through
 
4662
            # without $wl.
 
4663
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4664
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
4665
            ;;
 
4666
        esac
 
4667
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4668
 
 
4669
        output_verbose_link_cmd='echo'
 
4670
 
 
4671
        # Archives containing C++ object files must be created using
 
4672
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4673
        # necessary to make sure instantiated templates are included
 
4674
        # in the archive.
 
4675
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4676
        ;;
 
4677
      gcx*)
 
4678
        # Green Hills C++ Compiler
 
4679
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4680
 
 
4681
        # The C++ compiler must be used to create the archive.
 
4682
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4683
        ;;
 
4684
      *)
 
4685
        # GNU C++ compiler with Solaris linker
 
4686
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4687
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4688
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4689
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4697
          else
 
4698
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4699
            # platform.
 
4700
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4701
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4702
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4703
 
 
4704
            # Commands to make compiler produce verbose output that lists
 
4705
            # what "hidden" libraries, object files and flags are used when
 
4706
            # linking a shared library.
 
4707
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4708
          fi
 
4709
 
 
4710
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4711
        fi
 
4712
        ;;
 
4713
    esac
 
4714
    ;;
 
4715
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
4716
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4717
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4718
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4719
    runpath_var='LD_RUN_PATH'
 
4720
 
 
4721
    case $cc_basename in
 
4722
      CC*)
 
4723
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4724
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4725
        ;;
 
4726
      *)
 
4727
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4728
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4729
        ;;
 
4730
    esac
 
4731
    ;;
 
4732
  sysv5* | sco3.2v5* | sco5v6*)
 
4733
    # Note: We can NOT use -z defs as we might desire, because we do not
 
4734
    # link with -lc, and that would cause any symbols used from libc to
 
4735
    # always be unresolved, which means just about no library would
 
4736
    # ever link correctly.  If we're not using GNU ld we use -z text
 
4737
    # though, which does catch some bad symbols but isn't as heavy-handed
 
4738
    # as -z defs.
 
4739
    # For security reasons, it is highly recommended that you always
 
4740
    # use absolute paths for naming shared libraries, and exclude the
 
4741
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
4742
    # requires that you compile everything twice, which is a pain.
 
4743
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
4744
    # non-empty value in the environment.  Most likely only useful for
 
4745
    # creating official distributions of packages.
 
4746
    # This is a hack until libtool officially supports absolute path
 
4747
    # names for shared libraries.
 
4748
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4749
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
4750
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4751
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4752
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
4753
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4754
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4755
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
4756
    runpath_var='LD_RUN_PATH'
 
4757
 
 
4758
    case $cc_basename in
 
4759
      CC*)
 
4760
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4761
        _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'
 
4762
        ;;
 
4763
      *)
 
4764
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4765
        _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'
 
4766
        ;;
 
4767
    esac
 
4768
    ;;
 
4769
  tandem*)
 
4770
    case $cc_basename in
 
4771
      NCC*)
 
4772
        # NonStop-UX NCC 3.20
 
4773
        # FIXME: insert proper C++ library support
 
4774
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4775
        ;;
 
4776
      *)
 
4777
        # FIXME: insert proper C++ library support
 
4778
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4779
        ;;
 
4780
    esac
 
4781
    ;;
 
4782
  vxworks*)
 
4783
    # FIXME: insert proper C++ library support
 
4784
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4785
    ;;
 
4786
  *)
 
4787
    # FIXME: insert proper C++ library support
 
4788
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4789
    ;;
 
4790
esac
 
4791
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4792
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4793
 
 
4794
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4795
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4796
 
 
4797
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4798
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4799
AC_LIBTOOL_PROG_CC_C_O($1)
 
4800
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4801
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4802
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4803
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4804
 
 
4805
AC_LIBTOOL_CONFIG($1)
 
4806
 
 
4807
AC_LANG_POP
 
4808
CC=$lt_save_CC
 
4809
LDCXX=$LD
 
4810
LD=$lt_save_LD
 
4811
GCC=$lt_save_GCC
 
4812
with_gnu_ldcxx=$with_gnu_ld
 
4813
with_gnu_ld=$lt_save_with_gnu_ld
 
4814
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4815
lt_cv_path_LD=$lt_save_path_LD
 
4816
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4817
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4818
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4819
 
 
4820
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4821
# ------------------------------------
 
4822
# Figure out "hidden" library dependencies from verbose
 
4823
# compiler output when linking a shared library.
 
4824
# Parse the compiler output and extract the necessary
 
4825
# objects, libraries and library flags.
 
4826
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4827
dnl we can't use the lt_simple_compile_test_code here,
 
4828
dnl because it contains code intended for an executable,
 
4829
dnl not a library.  It's possible we should let each
 
4830
dnl tag define a new lt_????_link_test_code variable,
 
4831
dnl but it's only used here...
 
4832
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4833
int a;
 
4834
void foo (void) { a = 0; }
 
4835
EOF
 
4836
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4837
class Foo
 
4838
{
 
4839
public:
 
4840
  Foo (void) { a = 0; }
 
4841
private:
 
4842
  int a;
 
4843
};
 
4844
EOF
 
4845
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4846
      subroutine foo
 
4847
      implicit none
 
4848
      integer*4 a
 
4849
      a=0
 
4850
      return
 
4851
      end
 
4852
EOF
 
4853
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4854
public class foo {
 
4855
  private int a;
 
4856
  public void bar (void) {
 
4857
    a = 0;
 
4858
  }
 
4859
};
 
4860
EOF
 
4861
])
 
4862
dnl Parse the compiler output and extract the necessary
 
4863
dnl objects, libraries and library flags.
 
4864
if AC_TRY_EVAL(ac_compile); then
 
4865
  # Parse the compiler output and extract the necessary
 
4866
  # objects, libraries and library flags.
 
4867
 
 
4868
  # Sentinel used to keep track of whether or not we are before
 
4869
  # the conftest object file.
 
4870
  pre_test_object_deps_done=no
 
4871
 
 
4872
  # The `*' in the case matches for architectures that use `case' in
 
4873
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4874
  # eval without this substitution.
 
4875
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
4876
 
 
4877
  for p in `eval $output_verbose_link_cmd`; do
 
4878
    case $p in
 
4879
 
 
4880
    -L* | -R* | -l*)
 
4881
       # Some compilers place space between "-{L,R}" and the path.
 
4882
       # Remove the space.
 
4883
       if test $p = "-L" \
 
4884
          || test $p = "-R"; then
 
4885
         prev=$p
 
4886
         continue
 
4887
       else
 
4888
         prev=
 
4889
       fi
 
4890
 
 
4891
       if test "$pre_test_object_deps_done" = no; then
 
4892
         case $p in
 
4893
         -L* | -R*)
 
4894
           # Internal compiler library paths should come after those
 
4895
           # provided the user.  The postdeps already come after the
 
4896
           # user supplied libs so there is no need to process them.
 
4897
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4898
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4899
           else
 
4900
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4901
           fi
 
4902
           ;;
 
4903
         # The "-l" case would never come before the object being
 
4904
         # linked, so don't bother handling this case.
 
4905
         esac
 
4906
       else
 
4907
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4908
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4909
         else
 
4910
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4911
         fi
 
4912
       fi
 
4913
       ;;
 
4914
 
 
4915
    *.$objext)
 
4916
       # This assumes that the test object file only shows up
 
4917
       # once in the compiler output.
 
4918
       if test "$p" = "conftest.$objext"; then
 
4919
         pre_test_object_deps_done=yes
 
4920
         continue
 
4921
       fi
 
4922
 
 
4923
       if test "$pre_test_object_deps_done" = no; then
 
4924
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4925
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4926
         else
 
4927
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4928
         fi
 
4929
       else
 
4930
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4931
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4932
         else
 
4933
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4934
         fi
 
4935
       fi
 
4936
       ;;
 
4937
 
 
4938
    *) ;; # Ignore the rest.
 
4939
 
 
4940
    esac
 
4941
  done
 
4942
 
 
4943
  # Clean up.
 
4944
  rm -f a.out a.exe
 
4945
else
 
4946
  echo "libtool.m4: error: problem compiling $1 test program"
 
4947
fi
 
4948
 
 
4949
$rm -f confest.$objext
 
4950
 
 
4951
# PORTME: override above test on systems where it is broken
 
4952
ifelse([$1],[CXX],
 
4953
[case $host_os in
 
4954
interix3*)
 
4955
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4956
  # hack all around it, let's just trust "g++" to DTRT.
 
4957
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4958
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4959
  _LT_AC_TAGVAR(postdeps,$1)=
 
4960
  ;;
 
4961
 
 
4962
solaris*)
 
4963
  case $cc_basename in
 
4964
  CC*)
 
4965
    # Adding this requires a known-good setup of shared libraries for
 
4966
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4967
    # archive will be linked into the output, leading to subtle bugs.
 
4968
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4969
    ;;
 
4970
  esac
 
4971
  ;;
 
4972
esac
 
4973
])
 
4974
 
 
4975
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4976
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4977
esac
 
4978
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4979
 
 
4980
# AC_LIBTOOL_LANG_F77_CONFIG
 
4981
# --------------------------
 
4982
# Ensure that the configuration vars for the C compiler are
 
4983
# suitably defined.  Those variables are subsequently used by
 
4984
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4985
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4986
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4987
[AC_REQUIRE([AC_PROG_F77])
 
4988
AC_LANG_PUSH(Fortran 77)
 
4989
 
 
4990
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4991
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4992
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4993
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4994
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4995
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4996
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4998
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4999
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5000
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5001
_LT_AC_TAGVAR(module_cmds, $1)=
 
5002
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
5003
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5004
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5005
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
5006
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5007
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5008
 
 
5009
# Source file extension for f77 test sources.
 
5010
ac_ext=f
 
5011
 
 
5012
# Object file extension for compiled f77 test sources.
 
5013
objext=o
 
5014
_LT_AC_TAGVAR(objext, $1)=$objext
 
5015
 
 
5016
# Code to be used in simple compile tests
 
5017
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
5018
 
 
5019
# Code to be used in simple link tests
 
5020
lt_simple_link_test_code="      program t\n      end\n"
 
5021
 
 
5022
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5023
_LT_AC_SYS_COMPILER
 
5024
 
 
5025
# save warnings/boilerplate of simple test code
 
5026
_LT_COMPILER_BOILERPLATE
 
5027
_LT_LINKER_BOILERPLATE
 
5028
 
 
5029
# Allow CC to be a program name with arguments.
 
5030
lt_save_CC="$CC"
 
5031
CC=${F77-"f77"}
 
5032
compiler=$CC
 
5033
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5034
_LT_CC_BASENAME([$compiler])
 
5035
 
 
5036
AC_MSG_CHECKING([if libtool supports shared libraries])
 
5037
AC_MSG_RESULT([$can_build_shared])
 
5038
 
 
5039
AC_MSG_CHECKING([whether to build shared libraries])
 
5040
test "$can_build_shared" = "no" && enable_shared=no
 
5041
 
 
5042
# On AIX, shared libraries and static libraries use the same namespace, and
 
5043
# are all built from PIC.
 
5044
case $host_os in
 
5045
aix3*)
 
5046
  test "$enable_shared" = yes && enable_static=no
 
5047
  if test -n "$RANLIB"; then
 
5048
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5049
    postinstall_cmds='$RANLIB $lib'
 
5050
  fi
 
5051
  ;;
 
5052
aix4* | aix5*)
 
5053
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5054
    test "$enable_shared" = yes && enable_static=no
 
5055
  fi
 
5056
  ;;
 
5057
esac
 
5058
AC_MSG_RESULT([$enable_shared])
 
5059
 
 
5060
AC_MSG_CHECKING([whether to build static libraries])
 
5061
# Make sure either enable_shared or enable_static is yes.
 
5062
test "$enable_shared" = yes || enable_static=yes
 
5063
AC_MSG_RESULT([$enable_static])
 
5064
 
 
5065
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
5066
_LT_AC_TAGVAR(LD, $1)="$LD"
 
5067
 
 
5068
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5069
AC_LIBTOOL_PROG_CC_C_O($1)
 
5070
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5071
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5072
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5073
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5074
 
 
5075
AC_LIBTOOL_CONFIG($1)
 
5076
 
 
5077
AC_LANG_POP
 
5078
CC="$lt_save_CC"
 
5079
])# AC_LIBTOOL_LANG_F77_CONFIG
 
5080
 
 
5081
 
 
5082
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5083
# --------------------------
 
5084
# Ensure that the configuration vars for the C compiler are
 
5085
# suitably defined.  Those variables are subsequently used by
 
5086
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5087
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
5088
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
5089
[AC_LANG_SAVE
 
5090
 
 
5091
# Source file extension for Java test sources.
 
5092
ac_ext=java
 
5093
 
 
5094
# Object file extension for compiled Java test sources.
 
5095
objext=o
 
5096
_LT_AC_TAGVAR(objext, $1)=$objext
 
5097
 
 
5098
# Code to be used in simple compile tests
 
5099
lt_simple_compile_test_code="class foo {}\n"
 
5100
 
 
5101
# Code to be used in simple link tests
 
5102
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
5103
 
 
5104
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5105
_LT_AC_SYS_COMPILER
 
5106
 
 
5107
# save warnings/boilerplate of simple test code
 
5108
_LT_COMPILER_BOILERPLATE
 
5109
_LT_LINKER_BOILERPLATE
 
5110
 
 
5111
# Allow CC to be a program name with arguments.
 
5112
lt_save_CC="$CC"
 
5113
CC=${GCJ-"gcj"}
 
5114
compiler=$CC
 
5115
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5116
_LT_CC_BASENAME([$compiler])
 
5117
 
 
5118
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
5119
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5120
 
 
5121
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5122
 
 
5123
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
5124
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
5125
AC_LIBTOOL_PROG_CC_C_O($1)
 
5126
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
5127
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
5128
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
5129
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
5130
 
 
5131
AC_LIBTOOL_CONFIG($1)
 
5132
 
 
5133
AC_LANG_RESTORE
 
5134
CC="$lt_save_CC"
 
5135
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
5136
 
 
5137
 
 
5138
# AC_LIBTOOL_LANG_RC_CONFIG
 
5139
# -------------------------
 
5140
# Ensure that the configuration vars for the Windows resource compiler are
 
5141
# suitably defined.  Those variables are subsequently used by
 
5142
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
5143
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
5144
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
5145
[AC_LANG_SAVE
 
5146
 
 
5147
# Source file extension for RC test sources.
 
5148
ac_ext=rc
 
5149
 
 
5150
# Object file extension for compiled RC test sources.
 
5151
objext=o
 
5152
_LT_AC_TAGVAR(objext, $1)=$objext
 
5153
 
 
5154
# Code to be used in simple compile tests
 
5155
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
5156
 
 
5157
# Code to be used in simple link tests
 
5158
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
5159
 
 
5160
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5161
_LT_AC_SYS_COMPILER
 
5162
 
 
5163
# save warnings/boilerplate of simple test code
 
5164
_LT_COMPILER_BOILERPLATE
 
5165
_LT_LINKER_BOILERPLATE
 
5166
 
 
5167
# Allow CC to be a program name with arguments.
 
5168
lt_save_CC="$CC"
 
5169
CC=${RC-"windres"}
 
5170
compiler=$CC
 
5171
_LT_AC_TAGVAR(compiler, $1)=$CC
 
5172
_LT_CC_BASENAME([$compiler])
 
5173
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
5174
 
 
5175
AC_LIBTOOL_CONFIG($1)
 
5176
 
 
5177
AC_LANG_RESTORE
 
5178
CC="$lt_save_CC"
 
5179
])# AC_LIBTOOL_LANG_RC_CONFIG
 
5180
 
 
5181
 
 
5182
# AC_LIBTOOL_CONFIG([TAGNAME])
 
5183
# ----------------------------
 
5184
# If TAGNAME is not passed, then create an initial libtool script
 
5185
# with a default configuration from the untagged config vars.  Otherwise
 
5186
# add code to config.status for appending the configuration named by
 
5187
# TAGNAME from the matching tagged config vars.
 
5188
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
5189
[# The else clause should only fire when bootstrapping the
 
5190
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
5191
# with your package, and you will get complaints that there are
 
5192
# no rules to generate ltmain.sh.
 
5193
if test -f "$ltmain"; then
 
5194
  # See if we are running on zsh, and set the options which allow our commands through
 
5195
  # without removal of \ escapes.
 
5196
  if test -n "${ZSH_VERSION+set}" ; then
 
5197
    setopt NO_GLOB_SUBST
 
5198
  fi
 
5199
  # Now quote all the things that may contain metacharacters while being
 
5200
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
5201
  # variables and quote the copies for generation of the libtool script.
 
5202
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
5203
    SED SHELL STRIP \
 
5204
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
5205
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
5206
    deplibs_check_method reload_flag reload_cmds need_locks \
 
5207
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
5208
    lt_cv_sys_global_symbol_to_c_name_address \
 
5209
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
5210
    old_postinstall_cmds old_postuninstall_cmds \
 
5211
    _LT_AC_TAGVAR(compiler, $1) \
 
5212
    _LT_AC_TAGVAR(CC, $1) \
 
5213
    _LT_AC_TAGVAR(LD, $1) \
 
5214
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
5215
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
5216
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
5217
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
5218
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
5219
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
5220
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
5221
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
5222
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
5223
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
5224
    _LT_AC_TAGVAR(predep_objects, $1) \
 
5225
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
5226
    _LT_AC_TAGVAR(predeps, $1) \
 
5227
    _LT_AC_TAGVAR(postdeps, $1) \
 
5228
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
5229
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
5230
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
5231
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
5232
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
5233
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
5234
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
5235
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
5236
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
5237
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
5238
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
5239
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
5240
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
5241
    _LT_AC_TAGVAR(module_cmds, $1) \
 
5242
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
5243
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
5244
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
5245
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
5246
 
 
5247
    case $var in
 
5248
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
5249
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
5250
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
5251
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
5252
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
5253
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
5254
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
5255
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
5256
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
5257
    postinstall_cmds | postuninstall_cmds | \
 
5258
    old_postinstall_cmds | old_postuninstall_cmds | \
 
5259
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
5260
      # Double-quote double-evaled strings.
 
5261
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
5262
      ;;
 
5263
    *)
 
5264
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
5265
      ;;
 
5266
    esac
 
5267
  done
 
5268
 
 
5269
  case $lt_echo in
 
5270
  *'\[$]0 --fallback-echo"')
 
5271
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
5272
    ;;
 
5273
  esac
 
5274
 
 
5275
ifelse([$1], [],
 
5276
  [cfgfile="${ofile}T"
 
5277
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
5278
  $rm -f "$cfgfile"
 
5279
  AC_MSG_NOTICE([creating $ofile])],
 
5280
  [cfgfile="$ofile"])
 
5281
 
 
5282
  cat <<__EOF__ >> "$cfgfile"
 
5283
ifelse([$1], [],
 
5284
[#! $SHELL
 
5285
 
 
5286
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
5287
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
5288
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
5289
#
 
5290
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
5291
# Free Software Foundation, Inc.
 
5292
#
 
5293
# This file is part of GNU Libtool:
 
5294
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
5295
#
 
5296
# This program is free software; you can redistribute it and/or modify
 
5297
# it under the terms of the GNU General Public License as published by
 
5298
# the Free Software Foundation; either version 2 of the License, or
 
5299
# (at your option) any later version.
 
5300
#
 
5301
# This program is distributed in the hope that it will be useful, but
 
5302
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
5303
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
5304
# General Public License for more details.
 
5305
#
 
5306
# You should have received a copy of the GNU General Public License
 
5307
# along with this program; if not, write to the Free Software
 
5308
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
5309
#
 
5310
# As a special exception to the GNU General Public License, if you
 
5311
# distribute this file as part of a program that contains a
 
5312
# configuration script generated by Autoconf, you may include it under
 
5313
# the same distribution terms that you use for the rest of that program.
 
5314
 
 
5315
# A sed program that does not truncate output.
 
5316
SED=$lt_SED
 
5317
 
 
5318
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
5319
Xsed="$SED -e 1s/^X//"
 
5320
 
 
5321
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
5322
# if CDPATH is set.
 
5323
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5324
 
 
5325
# The names of the tagged configurations supported by this script.
 
5326
available_tags=
 
5327
 
 
5328
# ### BEGIN LIBTOOL CONFIG],
 
5329
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
5330
 
 
5331
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5332
 
 
5333
# Shell to use when invoking shell scripts.
 
5334
SHELL=$lt_SHELL
 
5335
 
 
5336
# Whether or not to build shared libraries.
 
5337
build_libtool_libs=$enable_shared
 
5338
 
 
5339
# Whether or not to build static libraries.
 
5340
build_old_libs=$enable_static
 
5341
 
 
5342
# Whether or not to add -lc for building shared libraries.
 
5343
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
5344
 
 
5345
# Whether or not to disallow shared libs when runtime libs are static
 
5346
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
5347
 
 
5348
# Whether or not to optimize for fast installation.
 
5349
fast_install=$enable_fast_install
 
5350
 
 
5351
# The host system.
 
5352
host_alias=$host_alias
 
5353
host=$host
 
5354
host_os=$host_os
 
5355
 
 
5356
# The build system.
 
5357
build_alias=$build_alias
 
5358
build=$build
 
5359
build_os=$build_os
 
5360
 
 
5361
# An echo program that does not interpret backslashes.
 
5362
echo=$lt_echo
 
5363
 
 
5364
# The archiver.
 
5365
AR=$lt_AR
 
5366
AR_FLAGS=$lt_AR_FLAGS
 
5367
 
 
5368
# A C compiler.
 
5369
LTCC=$lt_LTCC
 
5370
 
 
5371
# LTCC compiler flags.
 
5372
LTCFLAGS=$lt_LTCFLAGS
 
5373
 
 
5374
# A language-specific compiler.
 
5375
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
5376
 
 
5377
# Is the compiler the GNU C compiler?
 
5378
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
5379
 
 
5380
# An ERE matcher.
 
5381
EGREP=$lt_EGREP
 
5382
 
 
5383
# The linker used to build libraries.
 
5384
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
5385
 
 
5386
# Whether we need hard or soft links.
 
5387
LN_S=$lt_LN_S
 
5388
 
 
5389
# A BSD-compatible nm program.
 
5390
NM=$lt_NM
 
5391
 
 
5392
# A symbol stripping program
 
5393
STRIP=$lt_STRIP
 
5394
 
 
5395
# Used to examine libraries when file_magic_cmd begins "file"
 
5396
MAGIC_CMD=$MAGIC_CMD
 
5397
 
 
5398
# Used on cygwin: DLL creation program.
 
5399
DLLTOOL="$DLLTOOL"
 
5400
 
 
5401
# Used on cygwin: object dumper.
 
5402
OBJDUMP="$OBJDUMP"
 
5403
 
 
5404
# Used on cygwin: assembler.
 
5405
AS="$AS"
 
5406
 
 
5407
# The name of the directory that contains temporary libtool files.
 
5408
objdir=$objdir
 
5409
 
 
5410
# How to create reloadable object files.
 
5411
reload_flag=$lt_reload_flag
 
5412
reload_cmds=$lt_reload_cmds
 
5413
 
 
5414
# How to pass a linker flag through the compiler.
 
5415
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5416
 
 
5417
# Object file suffix (normally "o").
 
5418
objext="$ac_objext"
 
5419
 
 
5420
# Old archive suffix (normally "a").
 
5421
libext="$libext"
 
5422
 
 
5423
# Shared library suffix (normally ".so").
 
5424
shrext_cmds='$shrext_cmds'
 
5425
 
 
5426
# Executable file suffix (normally "").
 
5427
exeext="$exeext"
 
5428
 
 
5429
# Additional compiler flags for building library objects.
 
5430
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5431
pic_mode=$pic_mode
 
5432
 
 
5433
# What is the maximum length of a command?
 
5434
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5435
 
 
5436
# Does compiler simultaneously support -c and -o options?
 
5437
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5438
 
 
5439
# Must we lock files when doing compilation?
 
5440
need_locks=$lt_need_locks
 
5441
 
 
5442
# Do we need the lib prefix for modules?
 
5443
need_lib_prefix=$need_lib_prefix
 
5444
 
 
5445
# Do we need a version for libraries?
 
5446
need_version=$need_version
 
5447
 
 
5448
# Whether dlopen is supported.
 
5449
dlopen_support=$enable_dlopen
 
5450
 
 
5451
# Whether dlopen of programs is supported.
 
5452
dlopen_self=$enable_dlopen_self
 
5453
 
 
5454
# Whether dlopen of statically linked programs is supported.
 
5455
dlopen_self_static=$enable_dlopen_self_static
 
5456
 
 
5457
# Compiler flag to prevent dynamic linking.
 
5458
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5459
 
 
5460
# Compiler flag to turn off builtin functions.
 
5461
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5462
 
 
5463
# Compiler flag to allow reflexive dlopens.
 
5464
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5465
 
 
5466
# Compiler flag to generate shared objects directly from archives.
 
5467
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5468
 
 
5469
# Compiler flag to generate thread-safe objects.
 
5470
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5471
 
 
5472
# Library versioning type.
 
5473
version_type=$version_type
 
5474
 
 
5475
# Format of library name prefix.
 
5476
libname_spec=$lt_libname_spec
 
5477
 
 
5478
# List of archive names.  First name is the real one, the rest are links.
 
5479
# The last name is the one that the linker finds with -lNAME.
 
5480
library_names_spec=$lt_library_names_spec
 
5481
 
 
5482
# The coded name of the library, if different from the real name.
 
5483
soname_spec=$lt_soname_spec
 
5484
 
 
5485
# Commands used to build and install an old-style archive.
 
5486
RANLIB=$lt_RANLIB
 
5487
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5488
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5489
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5490
 
 
5491
# Create an old-style archive from a shared archive.
 
5492
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5493
 
 
5494
# Create a temporary old-style archive to link instead of a shared archive.
 
5495
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5496
 
 
5497
# Commands used to build and install a shared archive.
 
5498
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5499
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5500
postinstall_cmds=$lt_postinstall_cmds
 
5501
postuninstall_cmds=$lt_postuninstall_cmds
 
5502
 
 
5503
# Commands used to build a loadable module (assumed same as above if empty)
 
5504
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5505
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5506
 
 
5507
# Commands to strip libraries.
 
5508
old_striplib=$lt_old_striplib
 
5509
striplib=$lt_striplib
 
5510
 
 
5511
# Dependencies to place before the objects being linked to create a
 
5512
# shared library.
 
5513
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5514
 
 
5515
# Dependencies to place after the objects being linked to create a
 
5516
# shared library.
 
5517
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5518
 
 
5519
# Dependencies to place before the objects being linked to create a
 
5520
# shared library.
 
5521
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5522
 
 
5523
# Dependencies to place after the objects being linked to create a
 
5524
# shared library.
 
5525
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5526
 
 
5527
# The library search path used internally by the compiler when linking
 
5528
# a shared library.
 
5529
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5530
 
 
5531
# Method to check whether dependent libraries are shared objects.
 
5532
deplibs_check_method=$lt_deplibs_check_method
 
5533
 
 
5534
# Command to use when deplibs_check_method == file_magic.
 
5535
file_magic_cmd=$lt_file_magic_cmd
 
5536
 
 
5537
# Flag that allows shared libraries with undefined symbols to be built.
 
5538
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5539
 
 
5540
# Flag that forces no undefined symbols.
 
5541
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5542
 
 
5543
# Commands used to finish a libtool library installation in a directory.
 
5544
finish_cmds=$lt_finish_cmds
 
5545
 
 
5546
# Same as above, but a single script fragment to be evaled but not shown.
 
5547
finish_eval=$lt_finish_eval
 
5548
 
 
5549
# Take the output of nm and produce a listing of raw symbols and C names.
 
5550
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5551
 
 
5552
# Transform the output of nm in a proper C declaration
 
5553
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5554
 
 
5555
# Transform the output of nm in a C name address pair
 
5556
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5557
 
 
5558
# This is the shared library runtime path variable.
 
5559
runpath_var=$runpath_var
 
5560
 
 
5561
# This is the shared library path variable.
 
5562
shlibpath_var=$shlibpath_var
 
5563
 
 
5564
# Is shlibpath searched before the hard-coded library search path?
 
5565
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5566
 
 
5567
# How to hardcode a shared library path into an executable.
 
5568
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5569
 
 
5570
# Whether we should hardcode library paths into libraries.
 
5571
hardcode_into_libs=$hardcode_into_libs
 
5572
 
 
5573
# Flag to hardcode \$libdir into a binary during linking.
 
5574
# This must work even if \$libdir does not exist.
 
5575
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5576
 
 
5577
# If ld is used when linking, flag to hardcode \$libdir into
 
5578
# a binary during linking. This must work even if \$libdir does
 
5579
# not exist.
 
5580
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5581
 
 
5582
# Whether we need a single -rpath flag with a separated argument.
 
5583
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5584
 
 
5585
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5586
# resulting binary.
 
5587
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5588
 
 
5589
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5590
# resulting binary.
 
5591
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5592
 
 
5593
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5594
# the resulting binary.
 
5595
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5596
 
 
5597
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5598
# and all subsequent libraries and executables linked against it.
 
5599
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5600
 
 
5601
# Variables whose values should be saved in libtool wrapper scripts and
 
5602
# restored at relink time.
 
5603
variables_saved_for_relink="$variables_saved_for_relink"
 
5604
 
 
5605
# Whether libtool must link a program against all its dependency libraries.
 
5606
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5607
 
 
5608
# Compile-time system search path for libraries
 
5609
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5610
 
 
5611
# Run-time system search path for libraries
 
5612
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5613
 
 
5614
# Fix the shell variable \$srcfile for the compiler.
 
5615
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5616
 
 
5617
# Set to yes if exported symbols are required.
 
5618
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5619
 
 
5620
# The commands to list exported symbols.
 
5621
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5622
 
 
5623
# The commands to extract the exported symbol list from a shared archive.
 
5624
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5625
 
 
5626
# Symbols that should not be listed in the preloaded symbols.
 
5627
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5628
 
 
5629
# Symbols that must always be exported.
 
5630
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5631
 
 
5632
ifelse([$1],[],
 
5633
[# ### END LIBTOOL CONFIG],
 
5634
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5635
 
 
5636
__EOF__
 
5637
 
 
5638
ifelse([$1],[], [
 
5639
  case $host_os in
 
5640
  aix3*)
 
5641
    cat <<\EOF >> "$cfgfile"
 
5642
 
 
5643
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5644
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5645
# vanish in a puff of smoke.
 
5646
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5647
  COLLECT_NAMES=
 
5648
  export COLLECT_NAMES
 
5649
fi
 
5650
EOF
 
5651
    ;;
 
5652
  esac
 
5653
 
 
5654
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5655
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5656
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5657
  # is reportedly fixed, but why not run on old versions too?
 
5658
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5659
 
 
5660
  mv -f "$cfgfile" "$ofile" || \
 
5661
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5662
  chmod +x "$ofile"
 
5663
])
 
5664
else
 
5665
  # If there is no Makefile yet, we rely on a make rule to execute
 
5666
  # `config.status --recheck' to rerun these tests and create the
 
5667
  # libtool script then.
 
5668
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5669
  if test -f "$ltmain_in"; then
 
5670
    test -f Makefile && make "$ltmain"
 
5671
  fi
 
5672
fi
 
5673
])# AC_LIBTOOL_CONFIG
 
5674
 
 
5675
 
 
5676
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5677
# -------------------------------------------
 
5678
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5679
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5680
 
 
5681
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4214
5682
 
4215
5683
if test "$GCC" = yes; then
4216
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5684
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4217
5685
 
4218
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5686
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4219
5687
    lt_cv_prog_compiler_rtti_exceptions,
4220
5688
    [-fno-rtti -fno-exceptions], [],
4221
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5689
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4222
5690
fi
4223
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4224
 
        [Compiler flag to turn off builtin functions])
4225
 
])# _LT_COMPILER_NO_RTTI
4226
 
 
4227
 
 
4228
 
# _LT_CMD_GLOBAL_SYMBOLS
4229
 
# ----------------------
4230
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4231
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4232
 
AC_REQUIRE([AC_PROG_CC])dnl
4233
 
AC_REQUIRE([LT_PATH_NM])dnl
4234
 
AC_REQUIRE([LT_PATH_LD])dnl
4235
 
m4_require([_LT_DECL_SED])dnl
4236
 
m4_require([_LT_DECL_EGREP])dnl
4237
 
m4_require([_LT_TAG_COMPILER])dnl
4238
 
 
 
5691
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5692
 
 
5693
 
 
5694
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5695
# ---------------------------------
 
5696
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5697
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5698
AC_REQUIRE([AC_PROG_NM])
 
5699
AC_REQUIRE([AC_OBJEXT])
4239
5700
# Check for command to grab the raw symbol name followed by C symbol from nm.
4240
5701
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4241
5702
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4249
5710
# Regexp to match symbols that can be accessed directly from C.
4250
5711
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4251
5712
 
 
5713
# Transform an extracted symbol line into a proper C declaration
 
5714
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5715
 
 
5716
# Transform an extracted symbol line into symbol name and symbol address
 
5717
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'"
 
5718
 
4252
5719
# Define system-specific variables.
4253
5720
case $host_os in
4254
5721
aix*)
4255
5722
  symcode='[[BCDT]]'
4256
5723
  ;;
4257
 
cygwin* | mingw* | pw32* | cegcc*)
 
5724
cygwin* | mingw* | pw32*)
4258
5725
  symcode='[[ABCDGISTW]]'
4259
5726
  ;;
4260
 
hpux*)
 
5727
hpux*) # Its linker distinguishes data from code symbols
4261
5728
  if test "$host_cpu" = ia64; then
4262
5729
    symcode='[[ABCDEGRST]]'
4263
5730
  fi
 
5731
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5732
  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'"
 
5733
  ;;
 
5734
linux*)
 
5735
  if test "$host_cpu" = ia64; then
 
5736
    symcode='[[ABCDGIRSTW]]'
 
5737
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5738
    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'"
 
5739
  fi
4264
5740
  ;;
4265
5741
irix* | nonstopux*)
4266
5742
  symcode='[[BCDEGRST]]'
4285
5761
  ;;
4286
5762
esac
4287
5763
 
4288
 
# If we're using GNU nm, then use its standard symbol codes.
4289
 
case `$NM -V 2>&1` in
4290
 
*GNU* | *'with BFD'*)
4291
 
  symcode='[[ABCDGIRSTW]]' ;;
4292
 
esac
4293
 
 
4294
 
# Transform an extracted symbol line into a proper C declaration.
4295
 
# Some systems (esp. on ia64) link data and code symbols differently,
4296
 
# so use this general approach.
4297
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4298
 
 
4299
 
# Transform an extracted symbol line into symbol name and symbol address
4300
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4301
 
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'"
4302
 
 
4303
5764
# Handle CRLF in mingw tool chain
4304
5765
opt_cr=
4305
5766
case $build_os in
4306
5767
mingw*)
4307
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5768
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4308
5769
  ;;
4309
5770
esac
4310
5771
 
4311
 
# Try without a prefix underscore, then with it.
 
5772
# If we're using GNU nm, then use its standard symbol codes.
 
5773
case `$NM -V 2>&1` in
 
5774
*GNU* | *'with BFD'*)
 
5775
  symcode='[[ABCDGIRSTW]]' ;;
 
5776
esac
 
5777
 
 
5778
# Try without a prefix undercore, then with it.
4312
5779
for ac_symprfx in "" "_"; do
4313
5780
 
4314
5781
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4315
5782
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4316
5783
 
4317
5784
  # Write the raw and C identifiers.
4318
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4319
 
    # Fake it for dumpbin and say T for any non-static function
4320
 
    # and D for any global variable.
4321
 
    # Also find C++ and __fastcall symbols from MSVC++,
4322
 
    # which start with @ or ?.
4323
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4324
 
"     {last_section=section; section=\$ 3};"\
4325
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4326
 
"     \$ 0!~/External *\|/{next};"\
4327
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4328
 
"     {if(hide[section]) next};"\
4329
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4330
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4331
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4332
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4333
 
"     ' prfx=^$ac_symprfx]"
4334
 
  else
4335
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4336
 
  fi
 
5785
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4337
5786
 
4338
5787
  # Check to see that the pipe works correctly.
4339
5788
  pipe_works=no
4340
5789
 
4341
5790
  rm -f conftest*
4342
 
  cat > conftest.$ac_ext <<_LT_EOF
 
5791
  cat > conftest.$ac_ext <<EOF
4343
5792
#ifdef __cplusplus
4344
5793
extern "C" {
4345
5794
#endif
4346
5795
char nm_test_var;
4347
 
void nm_test_func(void);
4348
 
void nm_test_func(void){}
 
5796
void nm_test_func(){}
4349
5797
#ifdef __cplusplus
4350
5798
}
4351
5799
#endif
4352
5800
int main(){nm_test_var='a';nm_test_func();return(0);}
4353
 
_LT_EOF
 
5801
EOF
4354
5802
 
4355
5803
  if AC_TRY_EVAL(ac_compile); then
4356
5804
    # Now try to grab the symbols.
4364
5812
      fi
4365
5813
 
4366
5814
      # Make sure that we snagged all the symbols we need.
4367
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4368
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4369
 
          cat <<_LT_EOF > conftest.$ac_ext
 
5815
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5816
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5817
          cat <<EOF > conftest.$ac_ext
4370
5818
#ifdef __cplusplus
4371
5819
extern "C" {
4372
5820
#endif
4373
5821
 
4374
 
_LT_EOF
 
5822
EOF
4375
5823
          # Now generate the symbol file.
4376
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4377
 
 
4378
 
          cat <<_LT_EOF >> conftest.$ac_ext
4379
 
 
4380
 
/* The mapping between symbol names and symbols.  */
 
5824
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5825
 
 
5826
          cat <<EOF >> conftest.$ac_ext
 
5827
#if defined (__STDC__) && __STDC__
 
5828
# define lt_ptr_t void *
 
5829
#else
 
5830
# define lt_ptr_t char *
 
5831
# define const
 
5832
#endif
 
5833
 
 
5834
/* The mapping between symbol names and symbols. */
4381
5835
const struct {
4382
5836
  const char *name;
4383
 
  void       *address;
 
5837
  lt_ptr_t address;
4384
5838
}
4385
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
5839
lt_preloaded_symbols[[]] =
4386
5840
{
4387
 
  { "@PROGRAM@", (void *) 0 },
4388
 
_LT_EOF
4389
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4390
 
          cat <<\_LT_EOF >> conftest.$ac_ext
4391
 
  {0, (void *) 0}
 
5841
EOF
 
5842
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5843
          cat <<\EOF >> conftest.$ac_ext
 
5844
  {0, (lt_ptr_t) 0}
4392
5845
};
4393
5846
 
4394
 
/* This works around a problem in FreeBSD linker */
4395
 
#ifdef FREEBSD_WORKAROUND
4396
 
static const void *lt_preloaded_setup() {
4397
 
  return lt__PROGRAM__LTX_preloaded_symbols;
4398
 
}
4399
 
#endif
4400
 
 
4401
5847
#ifdef __cplusplus
4402
5848
}
4403
5849
#endif
4404
 
_LT_EOF
 
5850
EOF
4405
5851
          # Now try linking the two files.
4406
5852
          mv conftest.$ac_objext conftstm.$ac_objext
4407
5853
          lt_save_LIBS="$LIBS"
4408
5854
          lt_save_CFLAGS="$CFLAGS"
4409
5855
          LIBS="conftstm.$ac_objext"
4410
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5856
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4411
5857
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4412
5858
            pipe_works=yes
4413
5859
          fi
4426
5872
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4427
5873
    cat conftest.$ac_ext >&5
4428
5874
  fi
4429
 
  rm -rf conftest* conftst*
 
5875
  rm -f conftest* conftst*
4430
5876
 
4431
5877
  # Do not use the global_symbol_pipe unless it works.
4432
5878
  if test "$pipe_works" = yes; then
4444
5890
else
4445
5891
  AC_MSG_RESULT(ok)
4446
5892
fi
4447
 
 
4448
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4449
 
    [Take the output of nm and produce a listing of raw symbols and C names])
4450
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4451
 
    [Transform the output of nm in a proper C declaration])
4452
 
_LT_DECL([global_symbol_to_c_name_address],
4453
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4454
 
    [Transform the output of nm in a C name address pair])
4455
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4456
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4457
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
4458
 
]) # _LT_CMD_GLOBAL_SYMBOLS
4459
 
 
4460
 
 
4461
 
# _LT_COMPILER_PIC([TAGNAME])
4462
 
# ---------------------------
4463
 
m4_defun([_LT_COMPILER_PIC],
4464
 
[m4_require([_LT_TAG_COMPILER])dnl
4465
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4466
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4467
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5893
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5894
 
 
5895
 
 
5896
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5897
# ---------------------------------------
 
5898
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5899
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5900
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5901
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4468
5902
 
4469
5903
AC_MSG_CHECKING([for $compiler option to produce PIC])
4470
 
m4_if([$1], [CXX], [
 
5904
 ifelse([$1],[CXX],[
4471
5905
  # C++ specific cases for pic, static, wl, etc.
4472
5906
  if test "$GXX" = yes; then
4473
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4474
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5907
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5908
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4475
5909
 
4476
5910
    case $host_os in
4477
5911
    aix*)
4478
5912
      # All AIX code is PIC.
4479
5913
      if test "$host_cpu" = ia64; then
4480
5914
        # AIX 5 now supports IA64 processor
4481
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5915
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4482
5916
      fi
4483
5917
      ;;
4484
 
 
4485
5918
    amigaos*)
4486
 
      case $host_cpu in
4487
 
      powerpc)
4488
 
            # see comment about AmigaOS4 .so support
4489
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4490
 
        ;;
4491
 
      m68k)
4492
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4493
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4494
 
            # like `-m68040'.
4495
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4496
 
        ;;
4497
 
      esac
 
5919
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5920
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5921
      # like `-m68040'.
 
5922
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4498
5923
      ;;
4499
 
 
4500
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5924
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4501
5925
      # PIC is the default for these OSes.
4502
5926
      ;;
4503
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
5927
    mingw* | os2* | pw32*)
4504
5928
      # This hack is so that the source file can tell whether it is being
4505
5929
      # built for inclusion in a dll (and should export symbols for example).
4506
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4507
 
      # (--disable-auto-import) libraries
4508
 
      m4_if([$1], [GCJ], [],
4509
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5930
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4510
5931
      ;;
4511
5932
    darwin* | rhapsody*)
4512
5933
      # PIC is the default on this platform
4513
5934
      # Common symbols not allowed in MH_DYLIB files
4514
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5935
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4515
5936
      ;;
4516
5937
    *djgpp*)
4517
5938
      # DJGPP does not support shared libraries at all
4518
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5939
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4519
5940
      ;;
4520
 
    interix[[3-9]]*)
 
5941
    interix3*)
4521
5942
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4522
5943
      # Instead, we relocate shared libraries at runtime.
4523
5944
      ;;
4524
5945
    sysv4*MP*)
4525
5946
      if test -d /usr/nec; then
4526
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5947
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4527
5948
      fi
4528
5949
      ;;
4529
5950
    hpux*)
4530
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4531
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4532
 
      # sets the default TLS model and affects inlining.
 
5951
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5952
      # not for PA HP-UX.
4533
5953
      case $host_cpu in
4534
 
      hppa*64*)
 
5954
      hppa*64*|ia64*)
4535
5955
        ;;
4536
5956
      *)
4537
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5957
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4538
5958
        ;;
4539
5959
      esac
4540
5960
      ;;
4541
 
    *qnx* | *nto*)
4542
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4543
 
      # it will coredump.
4544
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4545
 
      ;;
4546
5961
    *)
4547
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5962
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4548
5963
      ;;
4549
5964
    esac
4550
5965
  else
4551
5966
    case $host_os in
4552
 
      aix[[4-9]]*)
 
5967
      aix4* | aix5*)
4553
5968
        # All AIX code is PIC.
4554
5969
        if test "$host_cpu" = ia64; then
4555
5970
          # AIX 5 now supports IA64 processor
4556
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5971
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4557
5972
        else
4558
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5973
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4559
5974
        fi
4560
5975
        ;;
4561
5976
      chorus*)
4562
5977
        case $cc_basename in
4563
5978
        cxch68*)
4564
5979
          # Green Hills C++ Compiler
4565
 
          # _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"
 
5980
          # _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"
4566
5981
          ;;
4567
5982
        esac
4568
5983
        ;;
 
5984
       darwin*)
 
5985
         # PIC is the default on this platform
 
5986
         # Common symbols not allowed in MH_DYLIB files
 
5987
         case $cc_basename in
 
5988
           xlc*)
 
5989
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5990
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5991
           ;;
 
5992
         esac
 
5993
       ;;
4569
5994
      dgux*)
4570
5995
        case $cc_basename in
4571
5996
          ec++*)
4572
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5997
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4573
5998
            ;;
4574
5999
          ghcx*)
4575
6000
            # Green Hills C++ Compiler
4576
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6001
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4577
6002
            ;;
4578
6003
          *)
4579
6004
            ;;
4580
6005
        esac
4581
6006
        ;;
4582
 
      freebsd* | dragonfly*)
 
6007
      freebsd* | kfreebsd*-gnu | dragonfly*)
4583
6008
        # FreeBSD uses GNU C++
4584
6009
        ;;
4585
6010
      hpux9* | hpux10* | hpux11*)
4586
6011
        case $cc_basename in
4587
6012
          CC*)
4588
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4589
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6013
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6014
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4590
6015
            if test "$host_cpu" != ia64; then
4591
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6016
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4592
6017
            fi
4593
6018
            ;;
4594
6019
          aCC*)
4595
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4596
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6020
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6021
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4597
6022
            case $host_cpu in
4598
6023
            hppa*64*|ia64*)
4599
6024
              # +Z the default
4600
6025
              ;;
4601
6026
            *)
4602
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6027
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4603
6028
              ;;
4604
6029
            esac
4605
6030
            ;;
4614
6039
      irix5* | irix6* | nonstopux*)
4615
6040
        case $cc_basename in
4616
6041
          CC*)
4617
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4618
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6042
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6043
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4619
6044
            # CC pic flag -KPIC is the default.
4620
6045
            ;;
4621
6046
          *)
4622
6047
            ;;
4623
6048
        esac
4624
6049
        ;;
4625
 
      linux* | k*bsd*-gnu)
 
6050
      linux*)
4626
6051
        case $cc_basename in
4627
6052
          KCC*)
4628
6053
            # KAI C++ Compiler
4629
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4630
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4631
 
            ;;
4632
 
          ecpc* )
4633
 
            # old Intel C++ for x86_64 which still supported -KPIC.
4634
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4635
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4636
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4637
 
            ;;
4638
 
          icpc* )
4639
 
            # Intel C++, used to be incompatible with GCC.
4640
 
            # ICC 10 doesn't accept -KPIC any more.
4641
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4642
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4643
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4644
 
            ;;
4645
 
          pgCC* | pgcpp*)
4646
 
            # Portland Group C++ compiler
4647
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4648
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4649
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6054
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6055
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6056
            ;;
 
6057
          icpc* | ecpc*)
 
6058
            # Intel C++
 
6059
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6060
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6061
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6062
            ;;
 
6063
          pgCC*)
 
6064
            # Portland Group C++ compiler.
 
6065
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6066
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6067
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4650
6068
            ;;
4651
6069
          cxx*)
4652
6070
            # Compaq C++
4653
6071
            # Make sure the PIC flag is empty.  It appears that all Alpha
4654
6072
            # Linux and Compaq Tru64 Unix objects are PIC.
4655
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4656
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4657
 
            ;;
4658
 
          xlc* | xlC*)
4659
 
            # IBM XL 8.0 on PPC
4660
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4662
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
6073
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6074
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4663
6075
            ;;
4664
6076
          *)
4665
 
            case `$CC -V 2>&1 | sed 5q` in
4666
 
            *Sun\ C*)
4667
 
              # Sun C++ 5.9
4668
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4669
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4670
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4671
 
              ;;
4672
 
            esac
4673
6077
            ;;
4674
6078
        esac
4675
6079
        ;;
4680
6084
      mvs*)
4681
6085
        case $cc_basename in
4682
6086
          cxx*)
4683
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
6087
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4684
6088
            ;;
4685
6089
          *)
4686
6090
            ;;
4687
6091
        esac
4688
6092
        ;;
4689
 
      netbsd* | netbsdelf*-gnu)
 
6093
      netbsd*)
4690
6094
        ;;
4691
 
      *qnx* | *nto*)
4692
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4693
 
        # it will coredump.
4694
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4695
 
        ;;
4696
6095
      osf3* | osf4* | osf5*)
4697
6096
        case $cc_basename in
4698
6097
          KCC*)
4699
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
6098
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4700
6099
            ;;
4701
6100
          RCC*)
4702
6101
            # Rational C++ 2.4.1
4703
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6102
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4704
6103
            ;;
4705
6104
          cxx*)
4706
6105
            # Digital/Compaq C++
4707
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6106
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4708
6107
            # Make sure the PIC flag is empty.  It appears that all Alpha
4709
6108
            # Linux and Compaq Tru64 Unix objects are PIC.
4710
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4711
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6109
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6110
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4712
6111
            ;;
4713
6112
          *)
4714
6113
            ;;
4720
6119
        case $cc_basename in
4721
6120
          CC*)
4722
6121
            # Sun C++ 4.2, 5.x and Centerline C++
4723
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4724
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4725
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6122
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6123
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6124
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4726
6125
            ;;
4727
6126
          gcx*)
4728
6127
            # Green Hills C++ Compiler
4729
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6128
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4730
6129
            ;;
4731
6130
          *)
4732
6131
            ;;
4736
6135
        case $cc_basename in
4737
6136
          CC*)
4738
6137
            # Sun C++ 4.x
4739
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4740
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6138
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6139
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4741
6140
            ;;
4742
6141
          lcc*)
4743
6142
            # Lucid
4744
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6143
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6144
            ;;
 
6145
          *)
 
6146
            ;;
 
6147
        esac
 
6148
        ;;
 
6149
      tandem*)
 
6150
        case $cc_basename in
 
6151
          NCC*)
 
6152
            # NonStop-UX NCC 3.20
 
6153
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4745
6154
            ;;
4746
6155
          *)
4747
6156
            ;;
4750
6159
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4751
6160
        case $cc_basename in
4752
6161
          CC*)
4753
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4754
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4755
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4756
 
            ;;
4757
 
        esac
4758
 
        ;;
4759
 
      tandem*)
4760
 
        case $cc_basename in
4761
 
          NCC*)
4762
 
            # NonStop-UX NCC 3.20
4763
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4764
 
            ;;
4765
 
          *)
 
6162
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6163
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6164
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4766
6165
            ;;
4767
6166
        esac
4768
6167
        ;;
4769
6168
      vxworks*)
4770
6169
        ;;
4771
6170
      *)
4772
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6171
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4773
6172
        ;;
4774
6173
    esac
4775
6174
  fi
4776
6175
],
4777
6176
[
4778
6177
  if test "$GCC" = yes; then
4779
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4780
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6178
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6179
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4781
6180
 
4782
6181
    case $host_os in
4783
6182
      aix*)
4784
6183
      # All AIX code is PIC.
4785
6184
      if test "$host_cpu" = ia64; then
4786
6185
        # AIX 5 now supports IA64 processor
4787
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6186
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4788
6187
      fi
4789
6188
      ;;
4790
6189
 
4791
6190
    amigaos*)
4792
 
      case $host_cpu in
4793
 
      powerpc)
4794
 
            # see comment about AmigaOS4 .so support
4795
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4796
 
        ;;
4797
 
      m68k)
4798
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4799
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4800
 
            # like `-m68040'.
4801
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4802
 
        ;;
4803
 
      esac
 
6191
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6192
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6193
      # like `-m68040'.
 
6194
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4804
6195
      ;;
4805
6196
 
4806
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6197
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4807
6198
      # PIC is the default for these OSes.
4808
6199
      ;;
4809
6200
 
4810
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
6201
    mingw* | pw32* | os2*)
4811
6202
      # This hack is so that the source file can tell whether it is being
4812
6203
      # built for inclusion in a dll (and should export symbols for example).
4813
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4814
 
      # (--disable-auto-import) libraries
4815
 
      m4_if([$1], [GCJ], [],
4816
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6204
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4817
6205
      ;;
4818
6206
 
4819
6207
    darwin* | rhapsody*)
4820
6208
      # PIC is the default on this platform
4821
6209
      # Common symbols not allowed in MH_DYLIB files
4822
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4823
 
      ;;
4824
 
 
4825
 
    hpux*)
4826
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4827
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4828
 
      # sets the default TLS model and affects inlining.
4829
 
      case $host_cpu in
4830
 
      hppa*64*)
4831
 
        # +Z the default
4832
 
        ;;
4833
 
      *)
4834
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4835
 
        ;;
4836
 
      esac
4837
 
      ;;
4838
 
 
4839
 
    interix[[3-9]]*)
 
6210
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
6211
      ;;
 
6212
 
 
6213
    interix3*)
4840
6214
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4841
6215
      # Instead, we relocate shared libraries at runtime.
4842
6216
      ;;
4844
6218
    msdosdjgpp*)
4845
6219
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4846
6220
      # on systems that don't support them.
4847
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6221
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4848
6222
      enable_shared=no
4849
6223
      ;;
4850
6224
 
4851
 
    *nto* | *qnx*)
4852
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4853
 
      # it will coredump.
4854
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4855
 
      ;;
4856
 
 
4857
6225
    sysv4*MP*)
4858
6226
      if test -d /usr/nec; then
4859
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6227
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4860
6228
      fi
4861
6229
      ;;
4862
6230
 
 
6231
    hpux*)
 
6232
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6233
      # not for PA HP-UX.
 
6234
      case $host_cpu in
 
6235
      hppa*64*|ia64*)
 
6236
        # +Z the default
 
6237
        ;;
 
6238
      *)
 
6239
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6240
        ;;
 
6241
      esac
 
6242
      ;;
 
6243
 
4863
6244
    *)
4864
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6245
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4865
6246
      ;;
4866
6247
    esac
4867
6248
  else
4868
6249
    # PORTME Check for flag to pass linker flags through the system compiler.
4869
6250
    case $host_os in
4870
6251
    aix*)
4871
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6252
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4872
6253
      if test "$host_cpu" = ia64; then
4873
6254
        # AIX 5 now supports IA64 processor
4874
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6255
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4875
6256
      else
4876
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6257
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4877
6258
      fi
4878
6259
      ;;
 
6260
      darwin*)
 
6261
        # PIC is the default on this platform
 
6262
        # Common symbols not allowed in MH_DYLIB files
 
6263
       case $cc_basename in
 
6264
         xlc*)
 
6265
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6266
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6267
         ;;
 
6268
       esac
 
6269
       ;;
4879
6270
 
4880
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
6271
    mingw* | pw32* | os2*)
4881
6272
      # This hack is so that the source file can tell whether it is being
4882
6273
      # built for inclusion in a dll (and should export symbols for example).
4883
 
      m4_if([$1], [GCJ], [],
4884
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6274
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4885
6275
      ;;
4886
6276
 
4887
6277
    hpux9* | hpux10* | hpux11*)
4888
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6278
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4889
6279
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4890
6280
      # not for PA HP-UX.
4891
6281
      case $host_cpu in
4893
6283
        # +Z the default
4894
6284
        ;;
4895
6285
      *)
4896
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6286
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4897
6287
        ;;
4898
6288
      esac
4899
6289
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4900
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6290
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4901
6291
      ;;
4902
6292
 
4903
6293
    irix5* | irix6* | nonstopux*)
4904
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6294
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4905
6295
      # PIC (with -KPIC) is the default.
4906
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4907
 
      ;;
4908
 
 
4909
 
    linux* | k*bsd*-gnu)
 
6296
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6297
      ;;
 
6298
 
 
6299
    newsos6)
 
6300
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6301
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6302
      ;;
 
6303
 
 
6304
    linux*)
4910
6305
      case $cc_basename in
4911
 
      # old Intel for x86_64 which still supported -KPIC.
4912
 
      ecc*)
4913
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4914
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4915
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4916
 
        ;;
4917
 
      # icc used to be incompatible with GCC.
4918
 
      # ICC 10 doesn't accept -KPIC any more.
4919
 
      icc* | ifort*)
4920
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4921
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4922
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4923
 
        ;;
4924
 
      # Lahey Fortran 8.1.
4925
 
      lf95*)
4926
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4927
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4928
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4929
 
        ;;
 
6306
      icc* | ecc*)
 
6307
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6308
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6309
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6310
        ;;
4930
6311
      pgcc* | pgf77* | pgf90* | pgf95*)
4931
6312
        # Portland Group compilers (*not* the Pentium gcc compiler,
4932
6313
        # which looks to be a dead project)
4933
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4934
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4935
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6314
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6315
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6316
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4936
6317
        ;;
4937
6318
      ccc*)
4938
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6319
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4939
6320
        # All Alpha code is PIC.
4940
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6321
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4941
6322
        ;;
4942
 
      xl*)
4943
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
4944
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4945
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4946
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4947
 
        ;;
4948
 
      *)
4949
 
        case `$CC -V 2>&1 | sed 5q` in
4950
 
        *Sun\ C*)
4951
 
          # Sun C 5.9
4952
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4953
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4954
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4955
 
          ;;
4956
 
        *Sun\ F*)
4957
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4958
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4959
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4960
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4961
 
          ;;
4962
 
        esac
4963
 
        ;;
4964
6323
      esac
4965
6324
      ;;
4966
6325
 
4967
 
    newsos6)
4968
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4969
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4970
 
      ;;
4971
 
 
4972
 
    *nto* | *qnx*)
4973
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4974
 
      # it will coredump.
4975
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4976
 
      ;;
4977
 
 
4978
6326
    osf3* | osf4* | osf5*)
4979
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6327
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4980
6328
      # All OSF/1 code is PIC.
4981
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4982
 
      ;;
4983
 
 
4984
 
    rdos*)
4985
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6329
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4986
6330
      ;;
4987
6331
 
4988
6332
    solaris*)
4989
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4990
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6333
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6334
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4991
6335
      case $cc_basename in
4992
6336
      f77* | f90* | f95*)
4993
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6337
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4994
6338
      *)
4995
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6339
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4996
6340
      esac
4997
6341
      ;;
4998
6342
 
4999
6343
    sunos4*)
5000
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5001
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5002
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6344
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6345
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6346
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5003
6347
      ;;
5004
6348
 
5005
6349
    sysv4 | sysv4.2uw2* | sysv4.3*)
5006
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5007
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5008
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6350
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6351
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6352
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5009
6353
      ;;
5010
6354
 
5011
6355
    sysv4*MP*)
5012
6356
      if test -d /usr/nec ;then
5013
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5014
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6357
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6358
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5015
6359
      fi
5016
6360
      ;;
5017
6361
 
5018
6362
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5019
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5020
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5021
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6363
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6364
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6365
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5022
6366
      ;;
5023
6367
 
5024
6368
    unicos*)
5025
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5026
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6369
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6370
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5027
6371
      ;;
5028
6372
 
5029
6373
    uts4*)
5030
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5031
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6374
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6375
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5032
6376
      ;;
5033
6377
 
5034
6378
    *)
5035
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6379
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5036
6380
      ;;
5037
6381
    esac
5038
6382
  fi
5039
6383
])
 
6384
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
6385
 
 
6386
#
 
6387
# Check to make sure the PIC flag actually works.
 
6388
#
 
6389
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6390
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6391
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
6392
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
6393
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
6394
     "" | " "*) ;;
 
6395
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6396
     esac],
 
6397
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6398
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6399
fi
5040
6400
case $host_os in
5041
6401
  # For platforms which do not support PIC, -DPIC is meaningless:
5042
6402
  *djgpp*)
5043
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
6403
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5044
6404
    ;;
5045
6405
  *)
5046
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
6406
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5047
6407
    ;;
5048
6408
esac
5049
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5050
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5051
 
        [How to pass a linker flag through the compiler])
5052
 
 
5053
 
#
5054
 
# Check to make sure the PIC flag actually works.
5055
 
#
5056
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5057
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5058
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5059
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5060
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5061
 
     "" | " "*) ;;
5062
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5063
 
     esac],
5064
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5065
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5066
 
fi
5067
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5068
 
        [Additional compiler flags for building library objects])
5069
6409
 
5070
6410
#
5071
6411
# Check to make sure the static flag actually works.
5072
6412
#
5073
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5074
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5075
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
6413
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6414
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6415
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5076
6416
  $lt_tmp_static_flag,
5077
6417
  [],
5078
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5079
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5080
 
        [Compiler flag to prevent dynamic linking])
5081
 
])# _LT_COMPILER_PIC
5082
 
 
5083
 
 
5084
 
# _LT_LINKER_SHLIBS([TAGNAME])
5085
 
# ----------------------------
 
6418
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
6419
])
 
6420
 
 
6421
 
 
6422
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
6423
# ------------------------------------
5086
6424
# See if the linker supports building shared libraries.
5087
 
m4_defun([_LT_LINKER_SHLIBS],
5088
 
[AC_REQUIRE([LT_PATH_LD])dnl
5089
 
AC_REQUIRE([LT_PATH_NM])dnl
5090
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5091
 
m4_require([_LT_DECL_EGREP])dnl
5092
 
m4_require([_LT_DECL_SED])dnl
5093
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5094
 
m4_require([_LT_TAG_COMPILER])dnl
5095
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5096
 
m4_if([$1], [CXX], [
5097
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6425
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
6426
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6427
ifelse([$1],[CXX],[
 
6428
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5098
6429
  case $host_os in
5099
 
  aix[[4-9]]*)
 
6430
  aix4* | aix5*)
5100
6431
    # If we're using GNU nm, then we don't want the "-C" option.
5101
6432
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5102
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5103
 
      _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'
 
6433
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6434
      _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'
5104
6435
    else
5105
 
      _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'
 
6436
      _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'
5106
6437
    fi
5107
6438
    ;;
5108
6439
  pw32*)
5109
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5110
 
  ;;
5111
 
  cygwin* | mingw* | cegcc*)
5112
 
    _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'
5113
 
  ;;
5114
 
  linux* | k*bsd*-gnu)
5115
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
6440
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6441
  ;;
 
6442
  cygwin* | mingw*)
 
6443
    _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'
5116
6444
  ;;
5117
6445
  *)
5118
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6446
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5119
6447
  ;;
5120
6448
  esac
5121
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5122
 
], [
 
6449
],[
5123
6450
  runpath_var=
5124
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
5125
 
  _LT_TAGVAR(always_export_symbols, $1)=no
5126
 
  _LT_TAGVAR(archive_cmds, $1)=
5127
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
5128
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
5129
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5130
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5131
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5132
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
5133
 
  _LT_TAGVAR(hardcode_direct, $1)=no
5134
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5135
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5136
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5137
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5138
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5139
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5140
 
  _LT_TAGVAR(inherit_rpath, $1)=no
5141
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
5142
 
  _LT_TAGVAR(module_cmds, $1)=
5143
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
5144
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5145
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5146
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
5147
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6451
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6452
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6453
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
6454
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
6455
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
6456
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6457
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6458
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6459
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
6460
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6461
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6462
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6463
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6464
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6465
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6466
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
6467
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
6468
  _LT_AC_TAGVAR(module_cmds, $1)=
 
6469
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
6470
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6471
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5148
6472
  # include_expsyms should be a list of space-separated symbols to be *always*
5149
6473
  # included in the symbol list
5150
 
  _LT_TAGVAR(include_expsyms, $1)=
 
6474
  _LT_AC_TAGVAR(include_expsyms, $1)=
5151
6475
  # exclude_expsyms can be an extended regexp of symbols to exclude
5152
6476
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5153
6477
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5154
6478
  # as well as any symbol that contains `d'.
5155
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6479
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5156
6480
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5157
6481
  # platforms (ab)use it in PIC code, but their linkers get confused if
5158
6482
  # the symbol is explicitly referenced.  Since portable code cannot
5159
6483
  # rely on this symbol name, it's probably fine to never include it in
5160
6484
  # preloaded symbol tables.
5161
 
  # Exclude shared library initialization/finalization symbols.
5162
 
dnl Note also adjust exclude_expsyms for C++ above.
5163
6485
  extract_expsyms_cmds=
5164
 
 
 
6486
  # Just being paranoid about ensuring that cc_basename is set.
 
6487
  _LT_CC_BASENAME([$compiler])
5165
6488
  case $host_os in
5166
 
  cygwin* | mingw* | pw32* | cegcc*)
 
6489
  cygwin* | mingw* | pw32*)
5167
6490
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5168
6491
    # When not using gcc, we currently assume that we are using
5169
6492
    # Microsoft Visual C++.
5178
6501
  openbsd*)
5179
6502
    with_gnu_ld=no
5180
6503
    ;;
5181
 
  linux* | k*bsd*-gnu)
5182
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
5183
 
    ;;
5184
6504
  esac
5185
6505
 
5186
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
6506
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5187
6507
  if test "$with_gnu_ld" = yes; then
5188
6508
    # If archive_cmds runs LD, not CC, wlarc should be empty
5189
6509
    wlarc='${wl}'
5192
6512
    # are reset later if shared libraries are not supported. Putting them
5193
6513
    # here allows them to be overridden if necessary.
5194
6514
    runpath_var=LD_RUN_PATH
5195
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5196
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6515
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6516
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5197
6517
    # ancient GNU ld didn't support --whole-archive et. al.
5198
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5199
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5200
 
    else
5201
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6518
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6519
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6520
      else
 
6521
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5202
6522
    fi
5203
6523
    supports_anon_versioning=no
5204
 
    case `$LD -v 2>&1` in
 
6524
    case `$LD -v 2>/dev/null` in
5205
6525
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5206
6526
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5207
6527
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5211
6531
 
5212
6532
    # See if GNU ld supports shared libraries.
5213
6533
    case $host_os in
5214
 
    aix[[3-9]]*)
 
6534
    aix3* | aix4* | aix5*)
5215
6535
      # On AIX/PPC, the GNU linker is very broken
5216
6536
      if test "$host_cpu" != ia64; then
5217
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5218
 
        cat <<_LT_EOF 1>&2
 
6537
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6538
        cat <<EOF 1>&2
5219
6539
 
5220
6540
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5221
6541
*** to be unable to reliably create shared libraries on AIX.
5223
6543
*** really care for shared libraries, you may want to modify your PATH
5224
6544
*** so that a non-GNU linker is found, and then restart.
5225
6545
 
5226
 
_LT_EOF
 
6546
EOF
5227
6547
      fi
5228
6548
      ;;
5229
6549
 
5230
6550
    amigaos*)
5231
 
      case $host_cpu in
5232
 
      powerpc)
5233
 
            # see comment about AmigaOS4 .so support
5234
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5235
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5236
 
        ;;
5237
 
      m68k)
5238
 
            _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)'
5239
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5240
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5241
 
        ;;
5242
 
      esac
 
6551
      _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)'
 
6552
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6553
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6554
 
 
6555
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6556
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6557
      # to version 4, is to share data among multiple programs linked
 
6558
      # with the same dynamic library.  Since this doesn't match the
 
6559
      # behavior of shared libraries on other platforms, we can't use
 
6560
      # them.
 
6561
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5243
6562
      ;;
5244
6563
 
5245
6564
    beos*)
5246
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5247
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6565
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6566
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5248
6567
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5249
6568
        # support --undefined.  This deserves some investigation.  FIXME
5250
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6569
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5251
6570
      else
5252
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6571
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5253
6572
      fi
5254
6573
      ;;
5255
6574
 
5256
 
    cygwin* | mingw* | pw32* | cegcc*)
5257
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6575
    cygwin* | mingw* | pw32*)
 
6576
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5258
6577
      # as there is no search path for DLLs.
5259
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5260
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5261
 
      _LT_TAGVAR(always_export_symbols, $1)=no
5262
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5263
 
      _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'
 
6578
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6579
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6580
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6581
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6582
      _LT_AC_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'
5264
6583
 
5265
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5266
 
        _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'
 
6584
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6585
        _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'
5267
6586
        # If the export-symbols file already is a .def file (1st line
5268
6587
        # is EXPORTS), use it as is; otherwise, prepend...
5269
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6588
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5270
6589
          cp $export_symbols $output_objdir/$soname.def;
5271
6590
        else
5272
6591
          echo EXPORTS > $output_objdir/$soname.def;
5274
6593
        fi~
5275
6594
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5276
6595
      else
5277
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6596
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5278
6597
      fi
5279
6598
      ;;
5280
6599
 
5281
 
    interix[[3-9]]*)
5282
 
      _LT_TAGVAR(hardcode_direct, $1)=no
5283
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5284
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5285
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6600
    interix3*)
 
6601
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6602
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6603
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6604
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5286
6605
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5287
6606
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5288
6607
      # default) and relocated if they conflict, which is a slow very memory
5289
6608
      # consuming and fragmenting process.  To avoid this, we pick a random,
5290
6609
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5291
6610
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5292
 
      _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'
5293
 
      _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'
 
6611
      _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'
 
6612
      _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'
5294
6613
      ;;
5295
6614
 
5296
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
5297
 
      tmp_diet=no
5298
 
      if test "$host_os" = linux-dietlibc; then
5299
 
        case $cc_basename in
5300
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
5301
 
        esac
5302
 
      fi
5303
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5304
 
         && test "$tmp_diet" = no
5305
 
      then
 
6615
    linux*)
 
6616
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5306
6617
        tmp_addflag=
5307
 
        tmp_sharedflag='-shared'
5308
6618
        case $cc_basename,$host_cpu in
5309
 
        pgcc*)                          # Portland Group C compiler
5310
 
          _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'
 
6619
        pgcc*)                          # Portland Group C compiler
 
6620
          _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'
5311
6621
          tmp_addflag=' $pic_flag'
5312
6622
          ;;
5313
6623
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5314
 
          _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'
 
6624
          _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'
5315
6625
          tmp_addflag=' $pic_flag -Mnomain' ;;
5316
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
6626
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5317
6627
          tmp_addflag=' -i_dynamic' ;;
5318
6628
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5319
6629
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5320
6630
        ifc* | ifort*)                  # Intel Fortran compiler
5321
6631
          tmp_addflag=' -nofor_main' ;;
5322
 
        lf95*)                          # Lahey Fortran 8.1
5323
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5324
 
          tmp_sharedflag='--shared' ;;
5325
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5326
 
          tmp_sharedflag='-qmkshrobj'
5327
 
          tmp_addflag= ;;
5328
 
        esac
5329
 
        case `$CC -V 2>&1 | sed 5q` in
5330
 
        *Sun\ C*)                       # Sun C 5.9
5331
 
          _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'
5332
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5333
 
          tmp_sharedflag='-G' ;;
5334
 
        *Sun\ F*)                       # Sun Fortran 8.3
5335
 
          tmp_sharedflag='-G' ;;
5336
 
        esac
5337
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5338
 
 
5339
 
        if test "x$supports_anon_versioning" = xyes; then
5340
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5341
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5342
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
5343
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5344
 
        fi
5345
 
 
5346
 
        case $cc_basename in
5347
 
        xlf*)
5348
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5349
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5350
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5351
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5352
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5353
 
          if test "x$supports_anon_versioning" = xyes; then
5354
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5355
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5356
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
5357
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5358
 
          fi
5359
 
          ;;
5360
 
        esac
 
6632
        esac
 
6633
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6634
 
 
6635
        if test $supports_anon_versioning = yes; then
 
6636
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6637
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6638
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6639
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6640
        fi
5361
6641
      else
5362
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6642
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5363
6643
      fi
5364
6644
      ;;
5365
6645
 
5366
 
    netbsd* | netbsdelf*-gnu)
5367
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5368
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6646
    netbsd*)
 
6647
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6648
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5369
6649
        wlarc=
5370
6650
      else
5371
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5372
 
        _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'
 
6651
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6652
        _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'
5373
6653
      fi
5374
6654
      ;;
5375
6655
 
5376
6656
    solaris*)
5377
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5378
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5379
 
        cat <<_LT_EOF 1>&2
 
6657
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6658
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6659
        cat <<EOF 1>&2
5380
6660
 
5381
6661
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5382
6662
*** create shared libraries on Solaris systems.  Therefore, libtool
5385
6665
*** your PATH or compiler configuration so that the native linker is
5386
6666
*** used, and then restart.
5387
6667
 
5388
 
_LT_EOF
5389
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5390
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5391
 
        _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'
 
6668
EOF
 
6669
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6670
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6671
        _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'
5392
6672
      else
5393
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6673
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5394
6674
      fi
5395
6675
      ;;
5396
6676
 
5397
6677
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5398
6678
      case `$LD -v 2>&1` in
5399
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5400
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6679
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
6680
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5401
6681
        cat <<_LT_EOF 1>&2
5402
6682
 
5403
6683
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5410
6690
_LT_EOF
5411
6691
        ;;
5412
6692
        *)
5413
 
          # For security reasons, it is highly recommended that you always
5414
 
          # use absolute paths for naming shared libraries, and exclude the
5415
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
5416
 
          # requires that you compile everything twice, which is a pain.
5417
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5418
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5419
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5420
 
            _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'
 
6693
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6694
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6695
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6696
            _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'
5421
6697
          else
5422
 
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6698
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5423
6699
          fi
5424
6700
        ;;
5425
6701
      esac
5426
6702
      ;;
5427
6703
 
5428
6704
    sunos4*)
5429
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6705
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5430
6706
      wlarc=
5431
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5432
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6707
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6708
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5433
6709
      ;;
5434
6710
 
5435
6711
    *)
5436
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5437
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5438
 
        _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'
 
6712
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6713
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6714
        _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'
5439
6715
      else
5440
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6716
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5441
6717
      fi
5442
6718
      ;;
5443
6719
    esac
5444
6720
 
5445
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
6721
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5446
6722
      runpath_var=
5447
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5448
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5449
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6723
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6724
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6725
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5450
6726
    fi
5451
6727
  else
5452
6728
    # PORTME fill in a description of your system's linker (not GNU ld)
5453
6729
    case $host_os in
5454
6730
    aix3*)
5455
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5456
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5457
 
      _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'
 
6731
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6732
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6733
      _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'
5458
6734
      # Note: this linker hardcodes the directories in LIBPATH if there
5459
6735
      # are no directories specified by -L.
5460
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6736
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5461
6737
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5462
6738
        # Neither direct hardcoding nor static linking is supported with a
5463
6739
        # broken collect2.
5464
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6740
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5465
6741
      fi
5466
6742
      ;;
5467
6743
 
5468
 
    aix[[4-9]]*)
 
6744
    aix4* | aix5*)
5469
6745
      if test "$host_cpu" = ia64; then
5470
6746
        # On IA64, the linker does run time linking by default, so we don't
5471
6747
        # have to do anything special.
5475
6751
      else
5476
6752
        # If we're using GNU nm, then we don't want the "-C" option.
5477
6753
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5478
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5479
 
          _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'
 
6754
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6755
          _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'
5480
6756
        else
5481
 
          _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'
 
6757
          _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'
5482
6758
        fi
5483
6759
        aix_use_runtimelinking=no
5484
6760
 
5485
6761
        # Test if we are trying to use run time linking or normal
5486
6762
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5487
6763
        # need to do runtime linking.
5488
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6764
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5489
6765
          for ld_flag in $LDFLAGS; do
5490
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5491
 
            aix_use_runtimelinking=yes
5492
 
            break
5493
 
          fi
 
6766
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6767
            aix_use_runtimelinking=yes
 
6768
            break
 
6769
          fi
5494
6770
          done
5495
6771
          ;;
5496
6772
        esac
5505
6781
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5506
6782
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5507
6783
 
5508
 
      _LT_TAGVAR(archive_cmds, $1)=''
5509
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5510
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5511
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5512
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5513
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6784
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6785
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6786
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6787
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5514
6788
 
5515
6789
      if test "$GCC" = yes; then
5516
6790
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5517
6791
        # We only want to do this on AIX 4.2 and lower, the check
5518
6792
        # below for broken collect2 doesn't work under 4.3+
5519
6793
          collect2name=`${CC} -print-prog-name=collect2`
5520
 
          if test -f "$collect2name" &&
5521
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6794
          if test -f "$collect2name" && \
 
6795
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5522
6796
          then
5523
 
          # We have reworked collect2
5524
 
          :
 
6797
          # We have reworked collect2
 
6798
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5525
6799
          else
5526
 
          # We have old collect2
5527
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
5528
 
          # It fails to find uninstalled libraries when the uninstalled
5529
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5530
 
          # to unsupported forces relinking
5531
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5532
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5533
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6800
          # We have old collect2
 
6801
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6802
          # It fails to find uninstalled libraries when the uninstalled
 
6803
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6804
          # to unsupported forces relinking
 
6805
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6806
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6807
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5534
6808
          fi
5535
6809
          ;;
5536
6810
        esac
5538
6812
        if test "$aix_use_runtimelinking" = yes; then
5539
6813
          shared_flag="$shared_flag "'${wl}-G'
5540
6814
        fi
5541
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
5542
6815
      else
5543
6816
        # not using gcc
5544
6817
        if test "$host_cpu" = ia64; then
5545
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5546
 
        # chokes on -Wl,-G. The following line is correct:
 
6818
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6819
        # chokes on -Wl,-G. The following line is correct:
5547
6820
          shared_flag='-G'
5548
6821
        else
5549
6822
          if test "$aix_use_runtimelinking" = yes; then
5554
6827
        fi
5555
6828
      fi
5556
6829
 
5557
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5558
6830
      # It seems that -bexpall does not export symbols beginning with
5559
6831
      # underscore (_), so it is better to generate a list of symbols to export.
5560
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6832
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5561
6833
      if test "$aix_use_runtimelinking" = yes; then
5562
6834
        # Warning - without using the other runtime loading flags (-brtl),
5563
6835
        # -berok will link without error, but may produce a broken library.
5564
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5565
 
        # Determine the default libpath from the value encoded in an
5566
 
        # empty executable.
5567
 
        _LT_SYS_MODULE_PATH_AIX
5568
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5569
 
        _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"
5570
 
      else
 
6836
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6837
       # Determine the default libpath from the value encoded in an empty executable.
 
6838
       _LT_AC_SYS_LIBPATH_AIX
 
6839
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6840
        _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"
 
6841
       else
5571
6842
        if test "$host_cpu" = ia64; then
5572
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5573
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5574
 
          _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"
 
6843
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6844
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6845
          _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"
5575
6846
        else
5576
 
         # Determine the default libpath from the value encoded in an
5577
 
         # empty executable.
5578
 
         _LT_SYS_MODULE_PATH_AIX
5579
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6847
         # Determine the default libpath from the value encoded in an empty executable.
 
6848
         _LT_AC_SYS_LIBPATH_AIX
 
6849
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5580
6850
          # Warning - without using the other run time loading flags,
5581
6851
          # -berok will link without error, but may produce a broken library.
5582
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5583
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6852
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6853
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5584
6854
          # Exported symbols can be pulled into shared objects from archives
5585
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5586
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6855
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6856
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5587
6857
          # This is similar to how AIX traditionally builds its shared libraries.
5588
 
          _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'
 
6858
          _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'
5589
6859
        fi
5590
6860
      fi
5591
6861
      ;;
5592
6862
 
5593
6863
    amigaos*)
5594
 
      case $host_cpu in
5595
 
      powerpc)
5596
 
            # see comment about AmigaOS4 .so support
5597
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5598
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5599
 
        ;;
5600
 
      m68k)
5601
 
            _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)'
5602
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5603
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5604
 
        ;;
5605
 
      esac
 
6864
      _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)'
 
6865
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6866
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6867
      # see comment about different semantics on the GNU ld section
 
6868
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5606
6869
      ;;
5607
6870
 
5608
6871
    bsdi[[45]]*)
5609
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6872
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5610
6873
      ;;
5611
6874
 
5612
 
    cygwin* | mingw* | pw32* | cegcc*)
 
6875
    cygwin* | mingw* | pw32*)
5613
6876
      # When not using gcc, we currently assume that we are using
5614
6877
      # Microsoft Visual C++.
5615
6878
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5616
6879
      # no search path for DLLs.
5617
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5618
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6880
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6881
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5619
6882
      # Tell ltmain to make .lib files, not .a files.
5620
6883
      libext=lib
5621
6884
      # Tell ltmain to make .dll files, not .so files.
5622
6885
      shrext_cmds=".dll"
5623
6886
      # FIXME: Setting linknames here is a bad hack.
5624
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6887
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5625
6888
      # The linker will automatically build a .lib file if we build a DLL.
5626
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6889
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5627
6890
      # FIXME: Should let the user specify the lib program.
5628
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5629
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5630
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6891
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6892
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6893
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5631
6894
      ;;
5632
6895
 
5633
6896
    darwin* | rhapsody*)
5634
 
      _LT_DARWIN_LINKER_FEATURES($1)
 
6897
      case $host_os in
 
6898
        rhapsody* | darwin1.[[012]])
 
6899
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6900
         ;;
 
6901
       *) # Darwin 1.3 on
 
6902
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6903
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6904
         else
 
6905
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6906
             10.[[012]])
 
6907
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6908
               ;;
 
6909
             10.*)
 
6910
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6911
               ;;
 
6912
           esac
 
6913
         fi
 
6914
         ;;
 
6915
      esac
 
6916
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6917
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6918
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6919
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6920
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6921
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6922
    if test "$GCC" = yes ; then
 
6923
        output_verbose_link_cmd='echo'
 
6924
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6925
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6926
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6927
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6928
      _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}'
 
6929
    else
 
6930
      case $cc_basename in
 
6931
        xlc*)
 
6932
         output_verbose_link_cmd='echo'
 
6933
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6934
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6935
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6936
         _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6937
          _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}'
 
6938
          ;;
 
6939
       *)
 
6940
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6941
          ;;
 
6942
      esac
 
6943
    fi
5635
6944
      ;;
5636
6945
 
5637
6946
    dgux*)
5638
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5639
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5640
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6947
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6948
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6949
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5641
6950
      ;;
5642
6951
 
5643
6952
    freebsd1*)
5644
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6953
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5645
6954
      ;;
5646
6955
 
5647
6956
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5649
6958
    # does not break anything, and helps significantly (at the cost of a little
5650
6959
    # extra space).
5651
6960
    freebsd2.2*)
5652
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5653
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5654
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5655
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6961
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6962
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6963
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6964
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5656
6965
      ;;
5657
6966
 
5658
6967
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5659
6968
    freebsd2*)
5660
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5661
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5662
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5663
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6969
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6970
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6971
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6972
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5664
6973
      ;;
5665
6974
 
5666
6975
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5667
 
    freebsd* | dragonfly*)
5668
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5669
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5670
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5671
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6976
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6977
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6978
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6979
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6980
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5672
6981
      ;;
5673
6982
 
5674
6983
    hpux9*)
5675
6984
      if test "$GCC" = yes; then
5676
 
        _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'
 
6985
        _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'
5677
6986
      else
5678
 
        _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'
 
6987
        _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'
5679
6988
      fi
5680
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5681
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5682
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6989
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6990
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6991
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5683
6992
 
5684
6993
      # hardcode_minus_L: Not really in the search PATH,
5685
6994
      # but as the default location of the library.
5686
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5687
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6995
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6996
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5688
6997
      ;;
5689
6998
 
5690
6999
    hpux10*)
5691
7000
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5692
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7001
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5693
7002
      else
5694
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7003
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5695
7004
      fi
5696
7005
      if test "$with_gnu_ld" = no; then
5697
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5698
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5699
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5700
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5701
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5702
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7006
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7007
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7008
 
 
7009
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7010
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7011
 
5703
7012
        # hardcode_minus_L: Not really in the search PATH,
5704
7013
        # but as the default location of the library.
5705
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7014
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5706
7015
      fi
5707
7016
      ;;
5708
7017
 
5710
7019
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5711
7020
        case $host_cpu in
5712
7021
        hppa*64*)
5713
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7022
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5714
7023
          ;;
5715
7024
        ia64*)
5716
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7025
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5717
7026
          ;;
5718
7027
        *)
5719
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7028
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5720
7029
          ;;
5721
7030
        esac
5722
7031
      else
5723
7032
        case $host_cpu in
5724
7033
        hppa*64*)
5725
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7034
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5726
7035
          ;;
5727
7036
        ia64*)
5728
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7037
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5729
7038
          ;;
5730
7039
        *)
5731
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7040
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5732
7041
          ;;
5733
7042
        esac
5734
7043
      fi
5735
7044
      if test "$with_gnu_ld" = no; then
5736
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5737
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7045
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7046
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5738
7047
 
5739
7048
        case $host_cpu in
5740
7049
        hppa*64*|ia64*)
5741
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5742
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7050
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
7051
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
7052
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5743
7053
          ;;
5744
7054
        *)
5745
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
5746
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5747
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7055
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7056
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5748
7057
 
5749
7058
          # hardcode_minus_L: Not really in the search PATH,
5750
7059
          # but as the default location of the library.
5751
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7060
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5752
7061
          ;;
5753
7062
        esac
5754
7063
      fi
5756
7065
 
5757
7066
    irix5* | irix6* | nonstopux*)
5758
7067
      if test "$GCC" = yes; then
5759
 
        _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'
5760
 
        # Try to use the -exported_symbol ld option, if it does not
5761
 
        # work, assume that -exports_file does not work either and
5762
 
        # implicitly export all symbols.
5763
 
        save_LDFLAGS="$LDFLAGS"
5764
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5765
 
        AC_LINK_IFELSE(int foo(void) {},
5766
 
          _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'
5767
 
        )
5768
 
        LDFLAGS="$save_LDFLAGS"
 
7068
        _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'
5769
7069
      else
5770
 
        _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'
5771
 
        _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'
 
7070
        _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'
 
7071
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5772
7072
      fi
5773
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5774
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5775
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5776
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
5777
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7073
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7074
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7075
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5778
7076
      ;;
5779
7077
 
5780
 
    netbsd* | netbsdelf*-gnu)
5781
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5782
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7078
    netbsd*)
 
7079
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7080
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5783
7081
      else
5784
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7082
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5785
7083
      fi
5786
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5787
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5788
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7084
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7085
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7086
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5789
7087
      ;;
5790
7088
 
5791
7089
    newsos6)
5792
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5793
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5794
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5795
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5796
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5797
 
      ;;
5798
 
 
5799
 
    *nto* | *qnx*)
 
7090
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7091
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7092
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7093
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
7094
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5800
7095
      ;;
5801
7096
 
5802
7097
    openbsd*)
5803
 
      if test -f /usr/libexec/ld.so; then
5804
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5805
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5806
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5807
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5808
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5809
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5810
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5811
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5812
 
        else
5813
 
          case $host_os in
5814
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5815
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5816
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5817
 
             ;;
5818
 
           *)
5819
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5820
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5821
 
             ;;
5822
 
          esac
5823
 
        fi
 
7098
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7099
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7100
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7101
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7102
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7103
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7104
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5824
7105
      else
5825
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7106
       case $host_os in
 
7107
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
7108
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7109
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7110
           ;;
 
7111
         *)
 
7112
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7113
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7114
           ;;
 
7115
       esac
5826
7116
      fi
5827
7117
      ;;
5828
7118
 
5829
7119
    os2*)
5830
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5831
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5832
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5833
 
      _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'
5834
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7120
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7121
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7122
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7123
      _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'
 
7124
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5835
7125
      ;;
5836
7126
 
5837
7127
    osf3*)
5838
7128
      if test "$GCC" = yes; then
5839
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5840
 
        _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'
 
7129
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7130
        _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'
5841
7131
      else
5842
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5843
 
        _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'
 
7132
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7133
        _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'
5844
7134
      fi
5845
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5846
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5847
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7135
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7136
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5848
7137
      ;;
5849
7138
 
5850
7139
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5851
7140
      if test "$GCC" = yes; then
5852
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5853
 
        _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'
5854
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7141
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7142
        _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'
 
7143
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5855
7144
      else
5856
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5857
 
        _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'
5858
 
        _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~
5859
 
        $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'
 
7145
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7146
        _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'
 
7147
        _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~
 
7148
        $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'
5860
7149
 
5861
7150
        # Both c and cxx compiler support -rpath directly
5862
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7151
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5863
7152
      fi
5864
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5865
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7153
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5866
7154
      ;;
5867
7155
 
5868
7156
    solaris*)
5869
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
7157
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5870
7158
      if test "$GCC" = yes; then
5871
7159
        wlarc='${wl}'
5872
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5873
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5874
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
7160
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7161
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7162
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5875
7163
      else
5876
 
        case `$CC -V 2>&1` in
5877
 
        *"Compilers 5.0"*)
5878
 
          wlarc=''
5879
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5881
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5882
 
          ;;
5883
 
        *)
5884
 
          wlarc='${wl}'
5885
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5886
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5887
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5888
 
          ;;
5889
 
        esac
 
7164
        wlarc=''
 
7165
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7166
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7167
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5890
7168
      fi
5891
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5892
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7169
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7170
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5893
7171
      case $host_os in
5894
7172
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5895
7173
      *)
5896
 
        # The compiler driver will combine and reorder linker options,
5897
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
5898
 
        # but is careful enough not to reorder.
5899
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5900
 
        if test "$GCC" = yes; then
5901
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5902
 
        else
5903
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5904
 
        fi
5905
 
        ;;
 
7174
        # The compiler driver will combine linker options so we
 
7175
        # cannot just pass the convience library names through
 
7176
        # without $wl, iff we do not link with $LD.
 
7177
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7178
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7179
        case $wlarc in
 
7180
        '')
 
7181
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
7182
        *)
 
7183
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7184
        esac ;;
5906
7185
      esac
5907
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7186
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5908
7187
      ;;
5909
7188
 
5910
7189
    sunos4*)
5911
7190
      if test "x$host_vendor" = xsequent; then
5912
7191
        # Use $CC to link under sequent, because it throws in some extra .o
5913
7192
        # files that make .init and .fini sections work.
5914
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7193
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5915
7194
      else
5916
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7195
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5917
7196
      fi
5918
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5919
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5920
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5921
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7197
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7198
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7199
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7200
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5922
7201
      ;;
5923
7202
 
5924
7203
    sysv4)
5925
7204
      case $host_vendor in
5926
7205
        sni)
5927
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5928
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
7206
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7207
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5929
7208
        ;;
5930
7209
        siemens)
5931
7210
          ## LD is ld it makes a PLAMLIB
5932
7211
          ## CC just makes a GrossModule.
5933
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5934
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5935
 
          _LT_TAGVAR(hardcode_direct, $1)=no
 
7212
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7213
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
7214
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5936
7215
        ;;
5937
7216
        motorola)
5938
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
7217
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7218
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5940
7219
        ;;
5941
7220
      esac
5942
7221
      runpath_var='LD_RUN_PATH'
5943
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7222
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5944
7223
      ;;
5945
7224
 
5946
7225
    sysv4.3*)
5947
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5948
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5949
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
7226
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7227
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7228
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5950
7229
      ;;
5951
7230
 
5952
7231
    sysv4*MP*)
5953
7232
      if test -d /usr/nec; then
5954
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7233
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7234
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5956
7235
        runpath_var=LD_RUN_PATH
5957
7236
        hardcode_runpath_var=yes
5958
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7237
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5959
7238
      fi
5960
7239
      ;;
5961
7240
 
5962
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5963
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5964
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5965
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7241
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
7242
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7243
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7244
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966
7245
      runpath_var='LD_RUN_PATH'
5967
7246
 
5968
7247
      if test "$GCC" = yes; then
5969
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5970
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7248
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7249
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5971
7250
      else
5972
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5973
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7251
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7252
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5974
7253
      fi
5975
7254
      ;;
5976
7255
 
5981
7260
      # ever link correctly.  If we're not using GNU ld we use -z text
5982
7261
      # though, which does catch some bad symbols but isn't as heavy-handed
5983
7262
      # as -z defs.
5984
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5985
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5986
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5987
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5988
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5989
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5990
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5991
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7263
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7264
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7265
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7266
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7267
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7268
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7269
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7270
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5992
7271
      runpath_var='LD_RUN_PATH'
5993
7272
 
5994
7273
      if test "$GCC" = yes; then
5995
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5996
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7274
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7275
        _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'
5997
7276
      else
5998
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5999
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7277
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7278
        _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'
6000
7279
      fi
6001
7280
      ;;
6002
7281
 
6003
7282
    uts4*)
6004
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6005
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6006
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7283
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7284
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7285
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6007
7286
      ;;
6008
7287
 
6009
7288
    *)
6010
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
7289
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6011
7290
      ;;
6012
7291
    esac
6013
 
 
6014
 
    if test x$host_vendor = xsni; then
6015
 
      case $host in
6016
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6017
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6018
 
        ;;
6019
 
      esac
6020
 
    fi
6021
7292
  fi
6022
7293
])
6023
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6024
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6025
 
 
6026
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6027
 
 
6028
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6029
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6030
 
_LT_DECL([], [extract_expsyms_cmds], [2],
6031
 
    [The commands to extract the exported symbol list from a shared archive])
 
7294
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
7295
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6032
7296
 
6033
7297
#
6034
7298
# Do we need to explicitly link libc?
6035
7299
#
6036
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
7300
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6037
7301
x|xyes)
6038
7302
  # Assume -lc should be added
6039
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7303
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6040
7304
 
6041
7305
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6042
 
    case $_LT_TAGVAR(archive_cmds, $1) in
 
7306
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
6043
7307
    *'~'*)
6044
7308
      # FIXME: we may have to deal with multi-command sequences.
6045
7309
      ;;
6048
7312
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6049
7313
      # to ld, don't add -lc before -lgcc.
6050
7314
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6051
 
      $RM conftest*
6052
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7315
      $rm conftest*
 
7316
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6053
7317
 
6054
7318
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6055
7319
        soname=conftest
6056
7320
        lib=conftest
6057
7321
        libobjs=conftest.$ac_objext
6058
7322
        deplibs=
6059
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6060
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
7323
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7324
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6061
7325
        compiler_flags=-v
6062
7326
        linker_flags=-v
6063
7327
        verstring=
6064
7328
        output_objdir=.
6065
7329
        libname=conftest
6066
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6067
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
6068
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
7330
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
7331
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7332
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6069
7333
        then
6070
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7334
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6071
7335
        else
6072
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7336
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6073
7337
        fi
6074
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7338
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6075
7339
      else
6076
7340
        cat conftest.err 1>&5
6077
7341
      fi
6078
 
      $RM conftest*
6079
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
7342
      $rm conftest*
 
7343
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6080
7344
      ;;
6081
7345
    esac
6082
7346
  fi
6083
7347
  ;;
6084
7348
esac
6085
 
 
6086
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6087
 
    [Whether or not to add -lc for building shared libraries])
6088
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6089
 
    [enable_shared_with_static_runtimes], [0],
6090
 
    [Whether or not to disallow shared libs when runtime libs are static])
6091
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6092
 
    [Compiler flag to allow reflexive dlopens])
6093
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6094
 
    [Compiler flag to generate shared objects directly from archives])
6095
 
_LT_TAGDECL([], [compiler_needs_object], [1],
6096
 
    [Whether the compiler copes with passing no objects directly])
6097
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6098
 
    [Create an old-style archive from a shared archive])
6099
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6100
 
    [Create a temporary old-style archive to link instead of a shared archive])
6101
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6102
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6103
 
_LT_TAGDECL([], [module_cmds], [2],
6104
 
    [Commands used to build a loadable module if different from building
6105
 
    a shared archive.])
6106
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
6107
 
_LT_TAGDECL([], [with_gnu_ld], [1],
6108
 
    [Whether we are building with GNU ld or not])
6109
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
6110
 
    [Flag that allows shared libraries with undefined symbols to be built])
6111
 
_LT_TAGDECL([], [no_undefined_flag], [1],
6112
 
    [Flag that enforces no undefined symbols])
6113
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6114
 
    [Flag to hardcode $libdir into a binary during linking.
6115
 
    This must work even if $libdir does not exist])
6116
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6117
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6118
 
    during linking.  This must work even if $libdir does not exist]])
6119
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6120
 
    [Whether we need a single "-rpath" flag with a separated argument])
6121
 
_LT_TAGDECL([], [hardcode_direct], [0],
6122
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6123
 
    DIR into the resulting binary])
6124
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6125
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6126
 
    DIR into the resulting binary and the resulting library dependency is
6127
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6128
 
    library is relocated])
6129
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
6130
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6131
 
    into the resulting binary])
6132
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6133
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6134
 
    into the resulting binary])
6135
 
_LT_TAGDECL([], [hardcode_automatic], [0],
6136
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
6137
 
    into the library and all subsequent libraries and executables linked
6138
 
    against it])
6139
 
_LT_TAGDECL([], [inherit_rpath], [0],
6140
 
    [Set to yes if linker adds runtime paths of dependent libraries
6141
 
    to runtime path list])
6142
 
_LT_TAGDECL([], [link_all_deplibs], [0],
6143
 
    [Whether libtool must link a program against all its dependency libraries])
6144
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
6145
 
    [Fix the shell variable $srcfile for the compiler])
6146
 
_LT_TAGDECL([], [always_export_symbols], [0],
6147
 
    [Set to "yes" if exported symbols are required])
6148
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
6149
 
    [The commands to list exported symbols])
6150
 
_LT_TAGDECL([], [exclude_expsyms], [1],
6151
 
    [Symbols that should not be listed in the preloaded symbols])
6152
 
_LT_TAGDECL([], [include_expsyms], [1],
6153
 
    [Symbols that must always be exported])
6154
 
_LT_TAGDECL([], [prelink_cmds], [2],
6155
 
    [Commands necessary for linking programs (against libraries) with templates])
6156
 
_LT_TAGDECL([], [file_list_spec], [1],
6157
 
    [Specify filename containing input files])
6158
 
dnl FIXME: Not yet implemented
6159
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6160
 
dnl    [Compiler flag to generate thread safe objects])
6161
 
])# _LT_LINKER_SHLIBS
6162
 
 
6163
 
 
6164
 
# _LT_LANG_C_CONFIG([TAG])
6165
 
# ------------------------
6166
 
# Ensure that the configuration variables for a C compiler are suitably
6167
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6168
 
# the compiler configuration to `libtool'.
6169
 
m4_defun([_LT_LANG_C_CONFIG],
6170
 
[m4_require([_LT_DECL_EGREP])dnl
6171
 
lt_save_CC="$CC"
6172
 
AC_LANG_PUSH(C)
6173
 
 
6174
 
# Source file extension for C test sources.
6175
 
ac_ext=c
6176
 
 
6177
 
# Object file extension for compiled C test sources.
6178
 
objext=o
6179
 
_LT_TAGVAR(objext, $1)=$objext
6180
 
 
6181
 
# Code to be used in simple compile tests
6182
 
lt_simple_compile_test_code="int some_variable = 0;"
6183
 
 
6184
 
# Code to be used in simple link tests
6185
 
lt_simple_link_test_code='int main(){return(0);}'
6186
 
 
6187
 
_LT_TAG_COMPILER
6188
 
# Save the default compiler, since it gets overwritten when the other
6189
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6190
 
compiler_DEFAULT=$CC
6191
 
 
6192
 
# save warnings/boilerplate of simple test code
6193
 
_LT_COMPILER_BOILERPLATE
6194
 
_LT_LINKER_BOILERPLATE
6195
 
 
6196
 
if test -n "$compiler"; then
6197
 
  _LT_COMPILER_NO_RTTI($1)
6198
 
  _LT_COMPILER_PIC($1)
6199
 
  _LT_COMPILER_C_O($1)
6200
 
  _LT_COMPILER_FILE_LOCKS($1)
6201
 
  _LT_LINKER_SHLIBS($1)
6202
 
  _LT_SYS_DYNAMIC_LINKER($1)
6203
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
6204
 
  LT_SYS_DLOPEN_SELF
6205
 
  _LT_CMD_STRIPLIB
6206
 
 
6207
 
  # Report which library types will actually be built
6208
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
6209
 
  AC_MSG_RESULT([$can_build_shared])
6210
 
 
6211
 
  AC_MSG_CHECKING([whether to build shared libraries])
6212
 
  test "$can_build_shared" = "no" && enable_shared=no
6213
 
 
6214
 
  # On AIX, shared libraries and static libraries use the same namespace, and
6215
 
  # are all built from PIC.
6216
 
  case $host_os in
6217
 
  aix3*)
6218
 
    test "$enable_shared" = yes && enable_static=no
6219
 
    if test -n "$RANLIB"; then
6220
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
6221
 
      postinstall_cmds='$RANLIB $lib'
6222
 
    fi
6223
 
    ;;
6224
 
 
6225
 
  aix[[4-9]]*)
6226
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6227
 
      test "$enable_shared" = yes && enable_static=no
6228
 
    fi
6229
 
    ;;
6230
 
  esac
6231
 
  AC_MSG_RESULT([$enable_shared])
6232
 
 
6233
 
  AC_MSG_CHECKING([whether to build static libraries])
6234
 
  # Make sure either enable_shared or enable_static is yes.
6235
 
  test "$enable_shared" = yes || enable_static=yes
6236
 
  AC_MSG_RESULT([$enable_static])
6237
 
 
6238
 
  _LT_CONFIG($1)
6239
 
fi
6240
 
AC_LANG_POP
6241
 
CC="$lt_save_CC"
6242
 
])# _LT_LANG_C_CONFIG
6243
 
 
6244
 
 
6245
 
# _LT_PROG_CXX
6246
 
# ------------
6247
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6248
 
# compiler, we have our own version here.
6249
 
m4_defun([_LT_PROG_CXX],
6250
 
[
6251
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6252
 
AC_PROG_CXX
6253
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6254
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6255
 
    (test "X$CXX" != "Xg++"))) ; then
6256
 
  AC_PROG_CXXCPP
6257
 
else
6258
 
  _lt_caught_CXX_error=yes
6259
 
fi
6260
 
popdef([AC_MSG_ERROR])
6261
 
])# _LT_PROG_CXX
6262
 
 
6263
 
dnl aclocal-1.4 backwards compatibility:
6264
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
6265
 
 
6266
 
 
6267
 
# _LT_LANG_CXX_CONFIG([TAG])
6268
 
# --------------------------
6269
 
# Ensure that the configuration variables for a C++ compiler are suitably
6270
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
6271
 
# the compiler configuration to `libtool'.
6272
 
m4_defun([_LT_LANG_CXX_CONFIG],
6273
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
6274
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6275
 
m4_require([_LT_DECL_EGREP])dnl
6276
 
 
6277
 
AC_LANG_PUSH(C++)
6278
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6279
 
_LT_TAGVAR(allow_undefined_flag, $1)=
6280
 
_LT_TAGVAR(always_export_symbols, $1)=no
6281
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
6282
 
_LT_TAGVAR(compiler_needs_object, $1)=no
6283
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6284
 
_LT_TAGVAR(hardcode_direct, $1)=no
6285
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6286
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6287
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6288
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6289
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6290
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6291
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6292
 
_LT_TAGVAR(inherit_rpath, $1)=no
6293
 
_LT_TAGVAR(module_cmds, $1)=
6294
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6295
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6296
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6297
 
_LT_TAGVAR(no_undefined_flag, $1)=
6298
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6299
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6300
 
 
6301
 
# Source file extension for C++ test sources.
6302
 
ac_ext=cpp
6303
 
 
6304
 
# Object file extension for compiled C++ test sources.
6305
 
objext=o
6306
 
_LT_TAGVAR(objext, $1)=$objext
6307
 
 
6308
 
# No sense in running all these tests if we already determined that
6309
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
6310
 
# are currently assumed to apply to all compilers on this platform,
6311
 
# and will be corrupted by setting them based on a non-working compiler.
6312
 
if test "$_lt_caught_CXX_error" != yes; then
6313
 
  # Code to be used in simple compile tests
6314
 
  lt_simple_compile_test_code="int some_variable = 0;"
6315
 
 
6316
 
  # Code to be used in simple link tests
6317
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6318
 
 
6319
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6320
 
  _LT_TAG_COMPILER
6321
 
 
6322
 
  # save warnings/boilerplate of simple test code
6323
 
  _LT_COMPILER_BOILERPLATE
6324
 
  _LT_LINKER_BOILERPLATE
6325
 
 
6326
 
  # Allow CC to be a program name with arguments.
6327
 
  lt_save_CC=$CC
6328
 
  lt_save_LD=$LD
6329
 
  lt_save_GCC=$GCC
6330
 
  GCC=$GXX
6331
 
  lt_save_with_gnu_ld=$with_gnu_ld
6332
 
  lt_save_path_LD=$lt_cv_path_LD
6333
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6334
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6335
 
  else
6336
 
    $as_unset lt_cv_prog_gnu_ld
6337
 
  fi
6338
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
6339
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
6340
 
  else
6341
 
    $as_unset lt_cv_path_LD
6342
 
  fi
6343
 
  test -z "${LDCXX+set}" || LD=$LDCXX
6344
 
  CC=${CXX-"c++"}
6345
 
  compiler=$CC
6346
 
  _LT_TAGVAR(compiler, $1)=$CC
6347
 
  _LT_CC_BASENAME([$compiler])
6348
 
 
6349
 
  if test -n "$compiler"; then
6350
 
    # We don't want -fno-exception when compiling C++ code, so set the
6351
 
    # no_builtin_flag separately
6352
 
    if test "$GXX" = yes; then
6353
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6354
 
    else
6355
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6356
 
    fi
6357
 
 
6358
 
    if test "$GXX" = yes; then
6359
 
      # Set up default GNU C++ configuration
6360
 
 
6361
 
      LT_PATH_LD
6362
 
 
6363
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6364
 
      # archiving commands below assume that GNU ld is being used.
6365
 
      if test "$with_gnu_ld" = yes; then
6366
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6367
 
        _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'
6368
 
 
6369
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6370
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6371
 
 
6372
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
6373
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6374
 
        #     investigate it a little bit more. (MM)
6375
 
        wlarc='${wl}'
6376
 
 
6377
 
        # ancient GNU ld didn't support --whole-archive et. al.
6378
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6379
 
          $GREP 'no-whole-archive' > /dev/null; then
6380
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6381
 
        else
6382
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6383
 
        fi
6384
 
      else
6385
 
        with_gnu_ld=no
6386
 
        wlarc=
6387
 
 
6388
 
        # A generic and very simple default shared library creation
6389
 
        # command for GNU C++ for the case where it uses the native
6390
 
        # linker, instead of GNU ld.  If possible, this setting should
6391
 
        # overridden to take advantage of the native linker features on
6392
 
        # the platform it is being used on.
6393
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6394
 
      fi
6395
 
 
6396
 
      # Commands to make compiler produce verbose output that lists
6397
 
      # what "hidden" libraries, object files and flags are used when
6398
 
      # linking a shared library.
6399
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6400
 
 
6401
 
    else
6402
 
      GXX=no
6403
 
      with_gnu_ld=no
6404
 
      wlarc=
6405
 
    fi
6406
 
 
6407
 
    # PORTME: fill in a description of your system's C++ link characteristics
6408
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6409
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
6410
 
    case $host_os in
6411
 
      aix3*)
6412
 
        # FIXME: insert proper C++ library support
6413
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6414
 
        ;;
6415
 
      aix[[4-9]]*)
6416
 
        if test "$host_cpu" = ia64; then
6417
 
          # On IA64, the linker does run time linking by default, so we don't
6418
 
          # have to do anything special.
6419
 
          aix_use_runtimelinking=no
6420
 
          exp_sym_flag='-Bexport'
6421
 
          no_entry_flag=""
6422
 
        else
6423
 
          aix_use_runtimelinking=no
6424
 
 
6425
 
          # Test if we are trying to use run time linking or normal
6426
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6427
 
          # need to do runtime linking.
6428
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6429
 
            for ld_flag in $LDFLAGS; do
6430
 
              case $ld_flag in
6431
 
              *-brtl*)
6432
 
                aix_use_runtimelinking=yes
6433
 
                break
6434
 
                ;;
6435
 
              esac
6436
 
            done
6437
 
            ;;
6438
 
          esac
6439
 
 
6440
 
          exp_sym_flag='-bexport'
6441
 
          no_entry_flag='-bnoentry'
6442
 
        fi
6443
 
 
6444
 
        # When large executables or shared objects are built, AIX ld can
6445
 
        # have problems creating the table of contents.  If linking a library
6446
 
        # or program results in "error TOC overflow" add -mminimal-toc to
6447
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6448
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6449
 
 
6450
 
        _LT_TAGVAR(archive_cmds, $1)=''
6451
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6452
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6453
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6454
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6455
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6456
 
 
6457
 
        if test "$GXX" = yes; then
6458
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6459
 
          # We only want to do this on AIX 4.2 and lower, the check
6460
 
          # below for broken collect2 doesn't work under 4.3+
6461
 
          collect2name=`${CC} -print-prog-name=collect2`
6462
 
          if test -f "$collect2name" &&
6463
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6464
 
          then
6465
 
            # We have reworked collect2
6466
 
            :
6467
 
          else
6468
 
            # We have old collect2
6469
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
6470
 
            # It fails to find uninstalled libraries when the uninstalled
6471
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
6472
 
            # to unsupported forces relinking
6473
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6474
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6475
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
6476
 
          fi
6477
 
          esac
6478
 
          shared_flag='-shared'
6479
 
          if test "$aix_use_runtimelinking" = yes; then
6480
 
            shared_flag="$shared_flag "'${wl}-G'
6481
 
          fi
6482
 
        else
6483
 
          # not using gcc
6484
 
          if test "$host_cpu" = ia64; then
6485
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6486
 
          # chokes on -Wl,-G. The following line is correct:
6487
 
          shared_flag='-G'
6488
 
          else
6489
 
            if test "$aix_use_runtimelinking" = yes; then
6490
 
              shared_flag='${wl}-G'
6491
 
            else
6492
 
              shared_flag='${wl}-bM:SRE'
6493
 
            fi
6494
 
          fi
6495
 
        fi
6496
 
 
6497
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6498
 
        # It seems that -bexpall does not export symbols beginning with
6499
 
        # underscore (_), so it is better to generate a list of symbols to
6500
 
        # export.
6501
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6502
 
        if test "$aix_use_runtimelinking" = yes; then
6503
 
          # Warning - without using the other runtime loading flags (-brtl),
6504
 
          # -berok will link without error, but may produce a broken library.
6505
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6506
 
          # Determine the default libpath from the value encoded in an empty
6507
 
          # executable.
6508
 
          _LT_SYS_MODULE_PATH_AIX
6509
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6510
 
 
6511
 
          _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"
6512
 
        else
6513
 
          if test "$host_cpu" = ia64; then
6514
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6515
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6516
 
            _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"
6517
 
          else
6518
 
            # Determine the default libpath from the value encoded in an
6519
 
            # empty executable.
6520
 
            _LT_SYS_MODULE_PATH_AIX
6521
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6522
 
            # Warning - without using the other run time loading flags,
6523
 
            # -berok will link without error, but may produce a broken library.
6524
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6525
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6526
 
            # Exported symbols can be pulled into shared objects from archives
6527
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6528
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6529
 
            # This is similar to how AIX traditionally builds its shared
6530
 
            # libraries.
6531
 
            _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'
6532
 
          fi
6533
 
        fi
6534
 
        ;;
6535
 
 
6536
 
      beos*)
6537
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6538
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6539
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6540
 
          # support --undefined.  This deserves some investigation.  FIXME
6541
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6542
 
        else
6543
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6544
 
        fi
6545
 
        ;;
6546
 
 
6547
 
      chorus*)
6548
 
        case $cc_basename in
6549
 
          *)
6550
 
          # FIXME: insert proper C++ library support
6551
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6552
 
          ;;
6553
 
        esac
6554
 
        ;;
6555
 
 
6556
 
      cygwin* | mingw* | pw32* | cegcc*)
6557
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6558
 
        # as there is no search path for DLLs.
6559
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6560
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6561
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6562
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6563
 
 
6564
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6565
 
          _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'
6566
 
          # If the export-symbols file already is a .def file (1st line
6567
 
          # is EXPORTS), use it as is; otherwise, prepend...
6568
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6569
 
            cp $export_symbols $output_objdir/$soname.def;
6570
 
          else
6571
 
            echo EXPORTS > $output_objdir/$soname.def;
6572
 
            cat $export_symbols >> $output_objdir/$soname.def;
6573
 
          fi~
6574
 
          $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'
6575
 
        else
6576
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6577
 
        fi
6578
 
        ;;
6579
 
      darwin* | rhapsody*)
6580
 
        _LT_DARWIN_LINKER_FEATURES($1)
6581
 
        ;;
6582
 
 
6583
 
      dgux*)
6584
 
        case $cc_basename in
6585
 
          ec++*)
6586
 
            # FIXME: insert proper C++ library support
6587
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6588
 
            ;;
6589
 
          ghcx*)
6590
 
            # Green Hills C++ Compiler
6591
 
            # FIXME: insert proper C++ library support
6592
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6593
 
            ;;
6594
 
          *)
6595
 
            # FIXME: insert proper C++ library support
6596
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6597
 
            ;;
6598
 
        esac
6599
 
        ;;
6600
 
 
6601
 
      freebsd[[12]]*)
6602
 
        # C++ shared libraries reported to be fairly broken before
6603
 
        # switch to ELF
6604
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6605
 
        ;;
6606
 
 
6607
 
      freebsd-elf*)
6608
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6609
 
        ;;
6610
 
 
6611
 
      freebsd* | dragonfly*)
6612
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6613
 
        # conventions
6614
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6615
 
        ;;
6616
 
 
6617
 
      gnu*)
6618
 
        ;;
6619
 
 
6620
 
      hpux9*)
6621
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6622
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6623
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6624
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6625
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6626
 
                                             # but as the default
6627
 
                                             # location of the library.
6628
 
 
6629
 
        case $cc_basename in
6630
 
          CC*)
6631
 
            # FIXME: insert proper C++ library support
6632
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6633
 
            ;;
6634
 
          aCC*)
6635
 
            _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'
6636
 
            # Commands to make compiler produce verbose output that lists
6637
 
            # what "hidden" libraries, object files and flags are used when
6638
 
            # linking a shared library.
6639
 
            #
6640
 
            # There doesn't appear to be a way to prevent this compiler from
6641
 
            # explicitly linking system object files so we need to strip them
6642
 
            # from the output so that they don't get included in the library
6643
 
            # dependencies.
6644
 
            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'
6645
 
            ;;
6646
 
          *)
6647
 
            if test "$GXX" = yes; then
6648
 
              _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'
6649
 
            else
6650
 
              # FIXME: insert proper C++ library support
6651
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6652
 
            fi
6653
 
            ;;
6654
 
        esac
6655
 
        ;;
6656
 
 
6657
 
      hpux10*|hpux11*)
6658
 
        if test $with_gnu_ld = no; then
6659
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6660
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6661
 
 
6662
 
          case $host_cpu in
6663
 
            hppa*64*|ia64*)
6664
 
              ;;
6665
 
            *)
6666
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6667
 
              ;;
6668
 
          esac
6669
 
        fi
6670
 
        case $host_cpu in
6671
 
          hppa*64*|ia64*)
6672
 
            _LT_TAGVAR(hardcode_direct, $1)=no
6673
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6674
 
            ;;
6675
 
          *)
6676
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
6677
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6678
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6679
 
                                                 # but as the default
6680
 
                                                 # location of the library.
6681
 
            ;;
6682
 
        esac
6683
 
 
6684
 
        case $cc_basename in
6685
 
          CC*)
6686
 
            # FIXME: insert proper C++ library support
6687
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6688
 
            ;;
6689
 
          aCC*)
6690
 
            case $host_cpu in
6691
 
              hppa*64*)
6692
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6693
 
                ;;
6694
 
              ia64*)
6695
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6696
 
                ;;
6697
 
              *)
6698
 
                _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'
6699
 
                ;;
6700
 
            esac
6701
 
            # Commands to make compiler produce verbose output that lists
6702
 
            # what "hidden" libraries, object files and flags are used when
6703
 
            # linking a shared library.
6704
 
            #
6705
 
            # There doesn't appear to be a way to prevent this compiler from
6706
 
            # explicitly linking system object files so we need to strip them
6707
 
            # from the output so that they don't get included in the library
6708
 
            # dependencies.
6709
 
            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'
6710
 
            ;;
6711
 
          *)
6712
 
            if test "$GXX" = yes; then
6713
 
              if test $with_gnu_ld = no; then
6714
 
                case $host_cpu in
6715
 
                  hppa*64*)
6716
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6717
 
                    ;;
6718
 
                  ia64*)
6719
 
                    _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'
6720
 
                    ;;
6721
 
                  *)
6722
 
                    _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'
6723
 
                    ;;
6724
 
                esac
6725
 
              fi
6726
 
            else
6727
 
              # FIXME: insert proper C++ library support
6728
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6729
 
            fi
6730
 
            ;;
6731
 
        esac
6732
 
        ;;
6733
 
 
6734
 
      interix[[3-9]]*)
6735
 
        _LT_TAGVAR(hardcode_direct, $1)=no
6736
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6737
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6738
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6739
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6740
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
6741
 
        # default) and relocated if they conflict, which is a slow very memory
6742
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
6743
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6744
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6745
 
        _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'
6746
 
        _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'
6747
 
        ;;
6748
 
      irix5* | irix6*)
6749
 
        case $cc_basename in
6750
 
          CC*)
6751
 
            # SGI C++
6752
 
            _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'
6753
 
 
6754
 
            # Archives containing C++ object files must be created using
6755
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6756
 
            # necessary to make sure instantiated templates are included
6757
 
            # in the archive.
6758
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6759
 
            ;;
6760
 
          *)
6761
 
            if test "$GXX" = yes; then
6762
 
              if test "$with_gnu_ld" = no; then
6763
 
                _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'
6764
 
              else
6765
 
                _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'
6766
 
              fi
6767
 
            fi
6768
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6769
 
            ;;
6770
 
        esac
6771
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6772
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6773
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
6774
 
        ;;
6775
 
 
6776
 
      linux* | k*bsd*-gnu)
6777
 
        case $cc_basename in
6778
 
          KCC*)
6779
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6780
 
 
6781
 
            # KCC will only create a shared library if the output file
6782
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6783
 
            # to its proper name (with version) after linking.
6784
 
            _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'
6785
 
            _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'
6786
 
            # Commands to make compiler produce verbose output that lists
6787
 
            # what "hidden" libraries, object files and flags are used when
6788
 
            # linking a shared library.
6789
 
            #
6790
 
            # There doesn't appear to be a way to prevent this compiler from
6791
 
            # explicitly linking system object files so we need to strip them
6792
 
            # from the output so that they don't get included in the library
6793
 
            # dependencies.
6794
 
            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'
6795
 
 
6796
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6797
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6798
 
 
6799
 
            # Archives containing C++ object files must be created using
6800
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6801
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6802
 
            ;;
6803
 
          icpc* | ecpc* )
6804
 
            # Intel C++
6805
 
            with_gnu_ld=yes
6806
 
            # version 8.0 and above of icpc choke on multiply defined symbols
6807
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
6808
 
            # earlier do not add the objects themselves.
6809
 
            case `$CC -V 2>&1` in
6810
 
              *"Version 7."*)
6811
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812
 
                _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'
6813
 
                ;;
6814
 
              *)  # Version 8.0 or newer
6815
 
                tmp_idyn=
6816
 
                case $host_cpu in
6817
 
                  ia64*) tmp_idyn=' -i_dynamic';;
6818
 
                esac
6819
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820
 
                _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'
6821
 
                ;;
6822
 
            esac
6823
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6824
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6825
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6826
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6827
 
            ;;
6828
 
          pgCC* | pgcpp*)
6829
 
            # Portland Group C++ compiler
6830
 
            case `$CC -V` in
6831
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6832
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6833
 
                rm -rf $tpldir~
6834
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6835
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6836
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6837
 
                rm -rf $tpldir~
6838
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6839
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6840
 
                $RANLIB $oldlib'
6841
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6842
 
                rm -rf $tpldir~
6843
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6844
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6845
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6846
 
                rm -rf $tpldir~
6847
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6848
 
                $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'
6849
 
              ;;
6850
 
            *) # Version 6 will use weak symbols
6851
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6852
 
              _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'
6853
 
              ;;
6854
 
            esac
6855
 
 
6856
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6857
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6858
 
            _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'
6859
 
            ;;
6860
 
          cxx*)
6861
 
            # Compaq C++
6862
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863
 
            _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'
6864
 
 
6865
 
            runpath_var=LD_RUN_PATH
6866
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6867
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6868
 
 
6869
 
            # Commands to make compiler produce verbose output that lists
6870
 
            # what "hidden" libraries, object files and flags are used when
6871
 
            # linking a shared library.
6872
 
            #
6873
 
            # There doesn't appear to be a way to prevent this compiler from
6874
 
            # explicitly linking system object files so we need to strip them
6875
 
            # from the output so that they don't get included in the library
6876
 
            # dependencies.
6877
 
            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'
6878
 
            ;;
6879
 
          xl*)
6880
 
            # IBM XL 8.0 on PPC, with GNU ld
6881
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6882
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6883
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6884
 
            if test "x$supports_anon_versioning" = xyes; then
6885
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6886
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6887
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
6888
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6889
 
            fi
6890
 
            ;;
6891
 
          *)
6892
 
            case `$CC -V 2>&1 | sed 5q` in
6893
 
            *Sun\ C*)
6894
 
              # Sun C++ 5.9
6895
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6896
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6897
 
              _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'
6898
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6899
 
              _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'
6900
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6901
 
 
6902
 
              # Not sure whether something based on
6903
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6904
 
              # would be better.
6905
 
              output_verbose_link_cmd='echo'
6906
 
 
6907
 
              # Archives containing C++ object files must be created using
6908
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6909
 
              # necessary to make sure instantiated templates are included
6910
 
              # in the archive.
6911
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6912
 
              ;;
6913
 
            esac
6914
 
            ;;
6915
 
        esac
6916
 
        ;;
6917
 
 
6918
 
      lynxos*)
6919
 
        # FIXME: insert proper C++ library support
6920
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6921
 
        ;;
6922
 
 
6923
 
      m88k*)
6924
 
        # FIXME: insert proper C++ library support
6925
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6926
 
        ;;
6927
 
 
6928
 
      mvs*)
6929
 
        case $cc_basename in
6930
 
          cxx*)
6931
 
            # FIXME: insert proper C++ library support
6932
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6933
 
            ;;
6934
 
          *)
6935
 
            # FIXME: insert proper C++ library support
6936
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6937
 
            ;;
6938
 
        esac
6939
 
        ;;
6940
 
 
6941
 
      netbsd*)
6942
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6943
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6944
 
          wlarc=
6945
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6946
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6947
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6948
 
        fi
6949
 
        # Workaround some broken pre-1.5 toolchains
6950
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6951
 
        ;;
6952
 
 
6953
 
      *nto* | *qnx*)
6954
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6955
 
        ;;
6956
 
 
6957
 
      openbsd2*)
6958
 
        # C++ shared libraries are fairly broken
6959
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6960
 
        ;;
6961
 
 
6962
 
      openbsd*)
6963
 
        if test -f /usr/libexec/ld.so; then
6964
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6965
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6966
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6967
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6968
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6969
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6970
 
            _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'
6971
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6972
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6973
 
          fi
6974
 
          output_verbose_link_cmd=echo
6975
 
        else
6976
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6977
 
        fi
6978
 
        ;;
6979
 
 
6980
 
      osf3* | osf4* | osf5*)
6981
 
        case $cc_basename in
6982
 
          KCC*)
6983
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6984
 
 
6985
 
            # KCC will only create a shared library if the output file
6986
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6987
 
            # to its proper name (with version) after linking.
6988
 
            _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'
6989
 
 
6990
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6991
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6992
 
 
6993
 
            # Archives containing C++ object files must be created using
6994
 
            # the KAI C++ compiler.
6995
 
            case $host in
6996
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6997
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6998
 
            esac
6999
 
            ;;
7000
 
          RCC*)
7001
 
            # Rational C++ 2.4.1
7002
 
            # FIXME: insert proper C++ library support
7003
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7004
 
            ;;
7005
 
          cxx*)
7006
 
            case $host in
7007
 
              osf3*)
7008
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7009
 
                _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'
7010
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7011
 
                ;;
7012
 
              *)
7013
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7014
 
                _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'
7015
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7016
 
                  echo "-hidden">> $lib.exp~
7017
 
                  $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~
7018
 
                  $RM $lib.exp'
7019
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7020
 
                ;;
7021
 
            esac
7022
 
 
7023
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7024
 
 
7025
 
            # Commands to make compiler produce verbose output that lists
7026
 
            # what "hidden" libraries, object files and flags are used when
7027
 
            # linking a shared library.
7028
 
            #
7029
 
            # There doesn't appear to be a way to prevent this compiler from
7030
 
            # explicitly linking system object files so we need to strip them
7031
 
            # from the output so that they don't get included in the library
7032
 
            # dependencies.
7033
 
            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'
7034
 
            ;;
7035
 
          *)
7036
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7037
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7038
 
              case $host in
7039
 
                osf3*)
7040
 
                  _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'
7041
 
                  ;;
7042
 
                *)
7043
 
                  _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'
7044
 
                  ;;
7045
 
              esac
7046
 
 
7047
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7048
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7049
 
 
7050
 
              # Commands to make compiler produce verbose output that lists
7051
 
              # what "hidden" libraries, object files and flags are used when
7052
 
              # linking a shared library.
7053
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7054
 
 
7055
 
            else
7056
 
              # FIXME: insert proper C++ library support
7057
 
              _LT_TAGVAR(ld_shlibs, $1)=no
7058
 
            fi
7059
 
            ;;
7060
 
        esac
7061
 
        ;;
7062
 
 
7063
 
      psos*)
7064
 
        # FIXME: insert proper C++ library support
7065
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7066
 
        ;;
7067
 
 
7068
 
      sunos4*)
7069
 
        case $cc_basename in
7070
 
          CC*)
7071
 
            # Sun C++ 4.x
7072
 
            # FIXME: insert proper C++ library support
7073
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7074
 
            ;;
7075
 
          lcc*)
7076
 
            # Lucid
7077
 
            # FIXME: insert proper C++ library support
7078
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7079
 
            ;;
7080
 
          *)
7081
 
            # FIXME: insert proper C++ library support
7082
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7083
 
            ;;
7084
 
        esac
7085
 
        ;;
7086
 
 
7087
 
      solaris*)
7088
 
        case $cc_basename in
7089
 
          CC*)
7090
 
            # Sun C++ 4.2, 5.x and Centerline C++
7091
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7092
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7093
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7094
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7095
 
              $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'
7096
 
 
7097
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7098
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7099
 
            case $host_os in
7100
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7101
 
              *)
7102
 
                # The compiler driver will combine and reorder linker options,
7103
 
                # but understands `-z linker_flag'.
7104
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
7105
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7106
 
                ;;
7107
 
            esac
7108
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
7109
 
 
7110
 
            output_verbose_link_cmd='echo'
7111
 
 
7112
 
            # Archives containing C++ object files must be created using
7113
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7114
 
            # necessary to make sure instantiated templates are included
7115
 
            # in the archive.
7116
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7117
 
            ;;
7118
 
          gcx*)
7119
 
            # Green Hills C++ Compiler
7120
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7121
 
 
7122
 
            # The C++ compiler must be used to create the archive.
7123
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7124
 
            ;;
7125
 
          *)
7126
 
            # GNU C++ compiler with Solaris linker
7127
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7128
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7129
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7130
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7131
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7132
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7133
 
 
7134
 
                # Commands to make compiler produce verbose output that lists
7135
 
                # what "hidden" libraries, object files and flags are used when
7136
 
                # linking a shared library.
7137
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7138
 
              else
7139
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
7140
 
                # platform.
7141
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7142
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7143
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7144
 
 
7145
 
                # Commands to make compiler produce verbose output that lists
7146
 
                # what "hidden" libraries, object files and flags are used when
7147
 
                # linking a shared library.
7148
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7149
 
              fi
7150
 
 
7151
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7152
 
              case $host_os in
7153
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7154
 
                *)
7155
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7156
 
                  ;;
7157
 
              esac
7158
 
            fi
7159
 
            ;;
7160
 
        esac
7161
 
        ;;
7162
 
 
7163
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7164
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7165
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7166
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7167
 
      runpath_var='LD_RUN_PATH'
7168
 
 
7169
 
      case $cc_basename in
7170
 
        CC*)
7171
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7172
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7173
 
          ;;
7174
 
        *)
7175
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7176
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7177
 
          ;;
7178
 
      esac
7179
 
      ;;
7180
 
 
7181
 
      sysv5* | sco3.2v5* | sco5v6*)
7182
 
        # Note: We can NOT use -z defs as we might desire, because we do not
7183
 
        # link with -lc, and that would cause any symbols used from libc to
7184
 
        # always be unresolved, which means just about no library would
7185
 
        # ever link correctly.  If we're not using GNU ld we use -z text
7186
 
        # though, which does catch some bad symbols but isn't as heavy-handed
7187
 
        # as -z defs.
7188
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7189
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7190
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7191
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7192
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7193
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7194
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7195
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7196
 
        runpath_var='LD_RUN_PATH'
7197
 
 
7198
 
        case $cc_basename in
7199
 
          CC*)
7200
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7201
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7202
 
            ;;
7203
 
          *)
7204
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7205
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7206
 
            ;;
7207
 
        esac
7208
 
      ;;
7209
 
 
7210
 
      tandem*)
7211
 
        case $cc_basename in
7212
 
          NCC*)
7213
 
            # NonStop-UX NCC 3.20
7214
 
            # FIXME: insert proper C++ library support
7215
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7216
 
            ;;
7217
 
          *)
7218
 
            # FIXME: insert proper C++ library support
7219
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7220
 
            ;;
7221
 
        esac
7222
 
        ;;
7223
 
 
7224
 
      vxworks*)
7225
 
        # FIXME: insert proper C++ library support
7226
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7227
 
        ;;
7228
 
 
7229
 
      *)
7230
 
        # FIXME: insert proper C++ library support
7231
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7232
 
        ;;
7233
 
    esac
7234
 
 
7235
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7236
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7237
 
 
7238
 
    _LT_TAGVAR(GCC, $1)="$GXX"
7239
 
    _LT_TAGVAR(LD, $1)="$LD"
7240
 
 
7241
 
    ## CAVEAT EMPTOR:
7242
 
    ## There is no encapsulation within the following macros, do not change
7243
 
    ## the running order or otherwise move them around unless you know exactly
7244
 
    ## what you are doing...
7245
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7246
 
    _LT_COMPILER_PIC($1)
7247
 
    _LT_COMPILER_C_O($1)
7248
 
    _LT_COMPILER_FILE_LOCKS($1)
7249
 
    _LT_LINKER_SHLIBS($1)
7250
 
    _LT_SYS_DYNAMIC_LINKER($1)
7251
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7252
 
 
7253
 
    _LT_CONFIG($1)
7254
 
  fi # test -n "$compiler"
7255
 
 
7256
 
  CC=$lt_save_CC
7257
 
  LDCXX=$LD
7258
 
  LD=$lt_save_LD
7259
 
  GCC=$lt_save_GCC
7260
 
  with_gnu_ld=$lt_save_with_gnu_ld
7261
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
7262
 
  lt_cv_path_LD=$lt_save_path_LD
7263
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7264
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7265
 
fi # test "$_lt_caught_CXX_error" != yes
7266
 
 
7267
 
AC_LANG_POP
7268
 
])# _LT_LANG_CXX_CONFIG
7269
 
 
7270
 
 
7271
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
7349
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
7350
 
 
7351
 
 
7352
# _LT_AC_FILE_LTDLL_C
 
7353
# -------------------
 
7354
# Be careful that the start marker always follows a newline.
 
7355
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
7356
# /* ltdll.c starts here */
 
7357
# #define WIN32_LEAN_AND_MEAN
 
7358
# #include <windows.h>
 
7359
# #undef WIN32_LEAN_AND_MEAN
 
7360
# #include <stdio.h>
 
7361
#
 
7362
# #ifndef __CYGWIN__
 
7363
# #  ifdef __CYGWIN32__
 
7364
# #    define __CYGWIN__ __CYGWIN32__
 
7365
# #  endif
 
7366
# #endif
 
7367
#
 
7368
# #ifdef __cplusplus
 
7369
# extern "C" {
 
7370
# #endif
 
7371
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7372
# #ifdef __cplusplus
 
7373
# }
 
7374
# #endif
 
7375
#
 
7376
# #ifdef __CYGWIN__
 
7377
# #include <cygwin/cygwin_dll.h>
 
7378
# DECLARE_CYGWIN_DLL( DllMain );
 
7379
# #endif
 
7380
# HINSTANCE __hDllInstance_base;
 
7381
#
 
7382
# BOOL APIENTRY
 
7383
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7384
# {
 
7385
#   __hDllInstance_base = hInst;
 
7386
#   return TRUE;
 
7387
# }
 
7388
# /* ltdll.c ends here */
 
7389
])# _LT_AC_FILE_LTDLL_C
 
7390
 
 
7391
 
 
7392
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7272
7393
# ---------------------------------
7273
 
# Figure out "hidden" library dependencies from verbose
7274
 
# compiler output when linking a shared library.
7275
 
# Parse the compiler output and extract the necessary
7276
 
# objects, libraries and library flags.
7277
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7278
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7279
 
# Dependencies to place before and after the object being linked:
7280
 
_LT_TAGVAR(predep_objects, $1)=
7281
 
_LT_TAGVAR(postdep_objects, $1)=
7282
 
_LT_TAGVAR(predeps, $1)=
7283
 
_LT_TAGVAR(postdeps, $1)=
7284
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
7285
 
 
7286
 
dnl we can't use the lt_simple_compile_test_code here,
7287
 
dnl because it contains code intended for an executable,
7288
 
dnl not a library.  It's possible we should let each
7289
 
dnl tag define a new lt_????_link_test_code variable,
7290
 
dnl but it's only used here...
7291
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7292
 
int a;
7293
 
void foo (void) { a = 0; }
7294
 
_LT_EOF
7295
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7296
 
class Foo
7297
 
{
7298
 
public:
7299
 
  Foo (void) { a = 0; }
7300
 
private:
7301
 
  int a;
7302
 
};
7303
 
_LT_EOF
7304
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7305
 
      subroutine foo
7306
 
      implicit none
7307
 
      integer*4 a
7308
 
      a=0
7309
 
      return
7310
 
      end
7311
 
_LT_EOF
7312
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7313
 
      subroutine foo
7314
 
      implicit none
7315
 
      integer a
7316
 
      a=0
7317
 
      return
7318
 
      end
7319
 
_LT_EOF
7320
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7321
 
public class foo {
7322
 
  private int a;
7323
 
  public void bar (void) {
7324
 
    a = 0;
7325
 
  }
7326
 
};
7327
 
_LT_EOF
7328
 
])
7329
 
dnl Parse the compiler output and extract the necessary
7330
 
dnl objects, libraries and library flags.
7331
 
if AC_TRY_EVAL(ac_compile); then
7332
 
  # Parse the compiler output and extract the necessary
7333
 
  # objects, libraries and library flags.
7334
 
 
7335
 
  # Sentinel used to keep track of whether or not we are before
7336
 
  # the conftest object file.
7337
 
  pre_test_object_deps_done=no
7338
 
 
7339
 
  for p in `eval "$output_verbose_link_cmd"`; do
7340
 
    case $p in
7341
 
 
7342
 
    -L* | -R* | -l*)
7343
 
       # Some compilers place space between "-{L,R}" and the path.
7344
 
       # Remove the space.
7345
 
       if test $p = "-L" ||
7346
 
          test $p = "-R"; then
7347
 
         prev=$p
7348
 
         continue
7349
 
       else
7350
 
         prev=
7351
 
       fi
7352
 
 
7353
 
       if test "$pre_test_object_deps_done" = no; then
7354
 
         case $p in
7355
 
         -L* | -R*)
7356
 
           # Internal compiler library paths should come after those
7357
 
           # provided the user.  The postdeps already come after the
7358
 
           # user supplied libs so there is no need to process them.
7359
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7360
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7361
 
           else
7362
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7363
 
           fi
7364
 
           ;;
7365
 
         # The "-l" case would never come before the object being
7366
 
         # linked, so don't bother handling this case.
7367
 
         esac
7368
 
       else
7369
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7370
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7371
 
         else
7372
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7373
 
         fi
7374
 
       fi
7375
 
       ;;
7376
 
 
7377
 
    *.$objext)
7378
 
       # This assumes that the test object file only shows up
7379
 
       # once in the compiler output.
7380
 
       if test "$p" = "conftest.$objext"; then
7381
 
         pre_test_object_deps_done=yes
7382
 
         continue
7383
 
       fi
7384
 
 
7385
 
       if test "$pre_test_object_deps_done" = no; then
7386
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7387
 
           _LT_TAGVAR(predep_objects, $1)="$p"
7388
 
         else
7389
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7390
 
         fi
7391
 
       else
7392
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7393
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
7394
 
         else
7395
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7396
 
         fi
7397
 
       fi
7398
 
       ;;
7399
 
 
7400
 
    *) ;; # Ignore the rest.
7401
 
 
7402
 
    esac
7403
 
  done
7404
 
 
7405
 
  # Clean up.
7406
 
  rm -f a.out a.exe
7407
 
else
7408
 
  echo "libtool.m4: error: problem compiling $1 test program"
7409
 
fi
7410
 
 
7411
 
$RM -f confest.$objext
7412
 
 
7413
 
# PORTME: override above test on systems where it is broken
7414
 
m4_if([$1], [CXX],
7415
 
[case $host_os in
7416
 
interix[[3-9]]*)
7417
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7418
 
  # hack all around it, let's just trust "g++" to DTRT.
7419
 
  _LT_TAGVAR(predep_objects,$1)=
7420
 
  _LT_TAGVAR(postdep_objects,$1)=
7421
 
  _LT_TAGVAR(postdeps,$1)=
7422
 
  ;;
7423
 
 
7424
 
linux*)
7425
 
  case `$CC -V 2>&1 | sed 5q` in
7426
 
  *Sun\ C*)
7427
 
    # Sun C++ 5.9
7428
 
 
7429
 
    # The more standards-conforming stlport4 library is
7430
 
    # incompatible with the Cstd library. Avoid specifying
7431
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7432
 
    # -library=stlport4 depends on it.
7433
 
    case " $CXX $CXXFLAGS " in
7434
 
    *" -library=stlport4 "*)
7435
 
      solaris_use_stlport4=yes
7436
 
      ;;
7437
 
    esac
7438
 
 
7439
 
    if test "$solaris_use_stlport4" != yes; then
7440
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7441
 
    fi
7442
 
    ;;
7443
 
  esac
7444
 
  ;;
7445
 
 
7446
 
solaris*)
7447
 
  case $cc_basename in
7448
 
  CC*)
7449
 
    # The more standards-conforming stlport4 library is
7450
 
    # incompatible with the Cstd library. Avoid specifying
7451
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7452
 
    # -library=stlport4 depends on it.
7453
 
    case " $CXX $CXXFLAGS " in
7454
 
    *" -library=stlport4 "*)
7455
 
      solaris_use_stlport4=yes
7456
 
      ;;
7457
 
    esac
7458
 
 
7459
 
    # Adding this requires a known-good setup of shared libraries for
7460
 
    # Sun compiler versions before 5.6, else PIC objects from an old
7461
 
    # archive will be linked into the output, leading to subtle bugs.
7462
 
    if test "$solaris_use_stlport4" != yes; then
7463
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7464
 
    fi
7465
 
    ;;
7466
 
  esac
7467
 
  ;;
7468
 
esac
7469
 
])
7470
 
 
7471
 
case " $_LT_TAGVAR(postdeps, $1) " in
7472
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7473
 
esac
7474
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7475
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7476
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7477
 
fi
7478
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7479
 
    [The directories searched by this compiler when creating a shared library])
7480
 
_LT_TAGDECL([], [predep_objects], [1],
7481
 
    [Dependencies to place before and after the objects being linked to
7482
 
    create a shared library])
7483
 
_LT_TAGDECL([], [postdep_objects], [1])
7484
 
_LT_TAGDECL([], [predeps], [1])
7485
 
_LT_TAGDECL([], [postdeps], [1])
7486
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7487
 
    [The library search path used internally by the compiler when linking
7488
 
    a shared library])
7489
 
])# _LT_SYS_HIDDEN_LIBDEPS
7490
 
 
7491
 
 
7492
 
# _LT_PROG_F77
7493
 
# ------------
7494
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7495
 
# if there is no fortran compiler, we have our own version here.
7496
 
m4_defun([_LT_PROG_F77],
7497
 
[
7498
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7499
 
AC_PROG_F77
7500
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7501
 
  _lt_disable_F77=yes
7502
 
fi
7503
 
popdef([AC_MSG_ERROR])
7504
 
])# _LT_PROG_F77
7505
 
 
7506
 
dnl aclocal-1.4 backwards compatibility:
7507
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7508
 
 
7509
 
 
7510
 
# _LT_LANG_F77_CONFIG([TAG])
7511
 
# --------------------------
7512
 
# Ensure that the configuration variables for a Fortran 77 compiler are
7513
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7514
 
# to write the compiler configuration to `libtool'.
7515
 
m4_defun([_LT_LANG_F77_CONFIG],
7516
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7517
 
AC_LANG_PUSH(Fortran 77)
7518
 
 
7519
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7520
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7521
 
_LT_TAGVAR(always_export_symbols, $1)=no
7522
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7523
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7524
 
_LT_TAGVAR(hardcode_direct, $1)=no
7525
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7526
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7527
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7528
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7529
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7530
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7531
 
_LT_TAGVAR(inherit_rpath, $1)=no
7532
 
_LT_TAGVAR(module_cmds, $1)=
7533
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7534
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7535
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7536
 
_LT_TAGVAR(no_undefined_flag, $1)=
7537
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7538
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7539
 
 
7540
 
# Source file extension for f77 test sources.
7541
 
ac_ext=f
7542
 
 
7543
 
# Object file extension for compiled f77 test sources.
7544
 
objext=o
7545
 
_LT_TAGVAR(objext, $1)=$objext
7546
 
 
7547
 
# No sense in running all these tests if we already determined that
7548
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
7549
 
# are currently assumed to apply to all compilers on this platform,
7550
 
# and will be corrupted by setting them based on a non-working compiler.
7551
 
if test "$_lt_disable_F77" != yes; then
7552
 
  # Code to be used in simple compile tests
7553
 
  lt_simple_compile_test_code="\
7554
 
      subroutine t
7555
 
      return
7556
 
      end
7557
 
"
7558
 
 
7559
 
  # Code to be used in simple link tests
7560
 
  lt_simple_link_test_code="\
7561
 
      program t
7562
 
      end
7563
 
"
7564
 
 
7565
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7566
 
  _LT_TAG_COMPILER
7567
 
 
7568
 
  # save warnings/boilerplate of simple test code
7569
 
  _LT_COMPILER_BOILERPLATE
7570
 
  _LT_LINKER_BOILERPLATE
7571
 
 
7572
 
  # Allow CC to be a program name with arguments.
7573
 
  lt_save_CC="$CC"
7574
 
  lt_save_GCC=$GCC
7575
 
  CC=${F77-"f77"}
7576
 
  compiler=$CC
7577
 
  _LT_TAGVAR(compiler, $1)=$CC
7578
 
  _LT_CC_BASENAME([$compiler])
7579
 
  GCC=$G77
7580
 
  if test -n "$compiler"; then
7581
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7582
 
    AC_MSG_RESULT([$can_build_shared])
7583
 
 
7584
 
    AC_MSG_CHECKING([whether to build shared libraries])
7585
 
    test "$can_build_shared" = "no" && enable_shared=no
7586
 
 
7587
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7588
 
    # are all built from PIC.
7589
 
    case $host_os in
7590
 
      aix3*)
7591
 
        test "$enable_shared" = yes && enable_static=no
7592
 
        if test -n "$RANLIB"; then
7593
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7594
 
          postinstall_cmds='$RANLIB $lib'
7595
 
        fi
7596
 
        ;;
7597
 
      aix[[4-9]]*)
7598
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7599
 
          test "$enable_shared" = yes && enable_static=no
7600
 
        fi
7601
 
        ;;
7602
 
    esac
7603
 
    AC_MSG_RESULT([$enable_shared])
7604
 
 
7605
 
    AC_MSG_CHECKING([whether to build static libraries])
7606
 
    # Make sure either enable_shared or enable_static is yes.
7607
 
    test "$enable_shared" = yes || enable_static=yes
7608
 
    AC_MSG_RESULT([$enable_static])
7609
 
 
7610
 
    _LT_TAGVAR(GCC, $1)="$G77"
7611
 
    _LT_TAGVAR(LD, $1)="$LD"
7612
 
 
7613
 
    ## CAVEAT EMPTOR:
7614
 
    ## There is no encapsulation within the following macros, do not change
7615
 
    ## the running order or otherwise move them around unless you know exactly
7616
 
    ## what you are doing...
7617
 
    _LT_COMPILER_PIC($1)
7618
 
    _LT_COMPILER_C_O($1)
7619
 
    _LT_COMPILER_FILE_LOCKS($1)
7620
 
    _LT_LINKER_SHLIBS($1)
7621
 
    _LT_SYS_DYNAMIC_LINKER($1)
7622
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7623
 
 
7624
 
    _LT_CONFIG($1)
7625
 
  fi # test -n "$compiler"
7626
 
 
7627
 
  GCC=$lt_save_GCC
7628
 
  CC="$lt_save_CC"
7629
 
fi # test "$_lt_disable_F77" != yes
7630
 
 
7631
 
AC_LANG_POP
7632
 
])# _LT_LANG_F77_CONFIG
7633
 
 
7634
 
 
7635
 
# _LT_PROG_FC
7636
 
# -----------
7637
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7638
 
# if there is no fortran compiler, we have our own version here.
7639
 
m4_defun([_LT_PROG_FC],
7640
 
[
7641
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7642
 
AC_PROG_FC
7643
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7644
 
  _lt_disable_FC=yes
7645
 
fi
7646
 
popdef([AC_MSG_ERROR])
7647
 
])# _LT_PROG_FC
7648
 
 
7649
 
dnl aclocal-1.4 backwards compatibility:
7650
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7651
 
 
7652
 
 
7653
 
# _LT_LANG_FC_CONFIG([TAG])
7654
 
# -------------------------
7655
 
# Ensure that the configuration variables for a Fortran compiler are
7656
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7657
 
# to write the compiler configuration to `libtool'.
7658
 
m4_defun([_LT_LANG_FC_CONFIG],
7659
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7660
 
AC_LANG_PUSH(Fortran)
7661
 
 
7662
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7663
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7664
 
_LT_TAGVAR(always_export_symbols, $1)=no
7665
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7666
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7667
 
_LT_TAGVAR(hardcode_direct, $1)=no
7668
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7669
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7670
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7671
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7672
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7673
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7674
 
_LT_TAGVAR(inherit_rpath, $1)=no
7675
 
_LT_TAGVAR(module_cmds, $1)=
7676
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7677
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7678
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7679
 
_LT_TAGVAR(no_undefined_flag, $1)=
7680
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7681
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7682
 
 
7683
 
# Source file extension for fc test sources.
7684
 
ac_ext=${ac_fc_srcext-f}
7685
 
 
7686
 
# Object file extension for compiled fc test sources.
7687
 
objext=o
7688
 
_LT_TAGVAR(objext, $1)=$objext
7689
 
 
7690
 
# No sense in running all these tests if we already determined that
7691
 
# the FC compiler isn't working.  Some variables (like enable_shared)
7692
 
# are currently assumed to apply to all compilers on this platform,
7693
 
# and will be corrupted by setting them based on a non-working compiler.
7694
 
if test "$_lt_disable_FC" != yes; then
7695
 
  # Code to be used in simple compile tests
7696
 
  lt_simple_compile_test_code="\
7697
 
      subroutine t
7698
 
      return
7699
 
      end
7700
 
"
7701
 
 
7702
 
  # Code to be used in simple link tests
7703
 
  lt_simple_link_test_code="\
7704
 
      program t
7705
 
      end
7706
 
"
7707
 
 
7708
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7709
 
  _LT_TAG_COMPILER
7710
 
 
7711
 
  # save warnings/boilerplate of simple test code
7712
 
  _LT_COMPILER_BOILERPLATE
7713
 
  _LT_LINKER_BOILERPLATE
7714
 
 
7715
 
  # Allow CC to be a program name with arguments.
7716
 
  lt_save_CC="$CC"
7717
 
  lt_save_GCC=$GCC
7718
 
  CC=${FC-"f95"}
7719
 
  compiler=$CC
7720
 
  GCC=$ac_cv_fc_compiler_gnu
7721
 
 
7722
 
  _LT_TAGVAR(compiler, $1)=$CC
7723
 
  _LT_CC_BASENAME([$compiler])
7724
 
 
7725
 
  if test -n "$compiler"; then
7726
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7727
 
    AC_MSG_RESULT([$can_build_shared])
7728
 
 
7729
 
    AC_MSG_CHECKING([whether to build shared libraries])
7730
 
    test "$can_build_shared" = "no" && enable_shared=no
7731
 
 
7732
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7733
 
    # are all built from PIC.
7734
 
    case $host_os in
7735
 
      aix3*)
7736
 
        test "$enable_shared" = yes && enable_static=no
7737
 
        if test -n "$RANLIB"; then
7738
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7739
 
          postinstall_cmds='$RANLIB $lib'
7740
 
        fi
7741
 
        ;;
7742
 
      aix[[4-9]]*)
7743
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7744
 
          test "$enable_shared" = yes && enable_static=no
7745
 
        fi
7746
 
        ;;
7747
 
    esac
7748
 
    AC_MSG_RESULT([$enable_shared])
7749
 
 
7750
 
    AC_MSG_CHECKING([whether to build static libraries])
7751
 
    # Make sure either enable_shared or enable_static is yes.
7752
 
    test "$enable_shared" = yes || enable_static=yes
7753
 
    AC_MSG_RESULT([$enable_static])
7754
 
 
7755
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7756
 
    _LT_TAGVAR(LD, $1)="$LD"
7757
 
 
7758
 
    ## CAVEAT EMPTOR:
7759
 
    ## There is no encapsulation within the following macros, do not change
7760
 
    ## the running order or otherwise move them around unless you know exactly
7761
 
    ## what you are doing...
7762
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7763
 
    _LT_COMPILER_PIC($1)
7764
 
    _LT_COMPILER_C_O($1)
7765
 
    _LT_COMPILER_FILE_LOCKS($1)
7766
 
    _LT_LINKER_SHLIBS($1)
7767
 
    _LT_SYS_DYNAMIC_LINKER($1)
7768
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7769
 
 
7770
 
    _LT_CONFIG($1)
7771
 
  fi # test -n "$compiler"
7772
 
 
7773
 
  GCC=$lt_save_GCC
7774
 
  CC="$lt_save_CC"
7775
 
fi # test "$_lt_disable_FC" != yes
7776
 
 
7777
 
AC_LANG_POP
7778
 
])# _LT_LANG_FC_CONFIG
7779
 
 
7780
 
 
7781
 
# _LT_LANG_GCJ_CONFIG([TAG])
7782
 
# --------------------------
7783
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
7784
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7785
 
# to write the compiler configuration to `libtool'.
7786
 
m4_defun([_LT_LANG_GCJ_CONFIG],
7787
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
7788
 
AC_LANG_SAVE
7789
 
 
7790
 
# Source file extension for Java test sources.
7791
 
ac_ext=java
7792
 
 
7793
 
# Object file extension for compiled Java test sources.
7794
 
objext=o
7795
 
_LT_TAGVAR(objext, $1)=$objext
7796
 
 
7797
 
# Code to be used in simple compile tests
7798
 
lt_simple_compile_test_code="class foo {}"
7799
 
 
7800
 
# Code to be used in simple link tests
7801
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7802
 
 
7803
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7804
 
_LT_TAG_COMPILER
7805
 
 
7806
 
# save warnings/boilerplate of simple test code
7807
 
_LT_COMPILER_BOILERPLATE
7808
 
_LT_LINKER_BOILERPLATE
7809
 
 
7810
 
# Allow CC to be a program name with arguments.
7811
 
lt_save_CC="$CC"
7812
 
lt_save_GCC=$GCC
7813
 
GCC=yes
7814
 
CC=${GCJ-"gcj"}
7815
 
compiler=$CC
7816
 
_LT_TAGVAR(compiler, $1)=$CC
7817
 
_LT_TAGVAR(LD, $1)="$LD"
7818
 
_LT_CC_BASENAME([$compiler])
7819
 
 
7820
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7821
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7822
 
 
7823
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7824
 
 
7825
 
if test -n "$compiler"; then
7826
 
  _LT_COMPILER_NO_RTTI($1)
7827
 
  _LT_COMPILER_PIC($1)
7828
 
  _LT_COMPILER_C_O($1)
7829
 
  _LT_COMPILER_FILE_LOCKS($1)
7830
 
  _LT_LINKER_SHLIBS($1)
7831
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7832
 
 
7833
 
  _LT_CONFIG($1)
7834
 
fi
7835
 
 
7836
 
AC_LANG_RESTORE
7837
 
 
7838
 
GCC=$lt_save_GCC
7839
 
CC="$lt_save_CC"
7840
 
])# _LT_LANG_GCJ_CONFIG
7841
 
 
7842
 
 
7843
 
# _LT_LANG_RC_CONFIG([TAG])
7844
 
# -------------------------
7845
 
# Ensure that the configuration variables for the Windows resource compiler
7846
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7847
 
# to write the compiler configuration to `libtool'.
7848
 
m4_defun([_LT_LANG_RC_CONFIG],
7849
 
[AC_REQUIRE([LT_PROG_RC])dnl
7850
 
AC_LANG_SAVE
7851
 
 
7852
 
# Source file extension for RC test sources.
7853
 
ac_ext=rc
7854
 
 
7855
 
# Object file extension for compiled RC test sources.
7856
 
objext=o
7857
 
_LT_TAGVAR(objext, $1)=$objext
7858
 
 
7859
 
# Code to be used in simple compile tests
7860
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7861
 
 
7862
 
# Code to be used in simple link tests
7863
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7864
 
 
7865
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7866
 
_LT_TAG_COMPILER
7867
 
 
7868
 
# save warnings/boilerplate of simple test code
7869
 
_LT_COMPILER_BOILERPLATE
7870
 
_LT_LINKER_BOILERPLATE
7871
 
 
7872
 
# Allow CC to be a program name with arguments.
7873
 
lt_save_CC="$CC"
7874
 
lt_save_GCC=$GCC
7875
 
GCC=
7876
 
CC=${RC-"windres"}
7877
 
compiler=$CC
7878
 
_LT_TAGVAR(compiler, $1)=$CC
7879
 
_LT_CC_BASENAME([$compiler])
7880
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7881
 
 
7882
 
if test -n "$compiler"; then
7883
 
  :
7884
 
  _LT_CONFIG($1)
7885
 
fi
7886
 
 
7887
 
GCC=$lt_save_GCC
7888
 
AC_LANG_RESTORE
7889
 
CC="$lt_save_CC"
7890
 
])# _LT_LANG_RC_CONFIG
7891
 
 
7892
 
 
7893
 
# LT_PROG_GCJ
7894
 
# -----------
7895
 
AC_DEFUN([LT_PROG_GCJ],
7896
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7897
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7898
 
    [AC_CHECK_TOOL(GCJ, gcj,)
7899
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7900
 
      AC_SUBST(GCJFLAGS)])])[]dnl
7901
 
])
7902
 
 
7903
 
# Old name:
7904
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7905
 
dnl aclocal-1.4 backwards compatibility:
7906
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7907
 
 
7908
 
 
7909
 
# LT_PROG_RC
7910
 
# ----------
7911
 
AC_DEFUN([LT_PROG_RC],
7912
 
[AC_CHECK_TOOL(RC, windres,)
7913
 
])
7914
 
 
7915
 
# Old name:
7916
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7917
 
dnl aclocal-1.4 backwards compatibility:
7918
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7919
 
 
7920
 
 
7921
 
# _LT_DECL_EGREP
7922
 
# --------------
7923
 
# If we don't have a new enough Autoconf to choose the best grep
7924
 
# available, choose the one first in the user's PATH.
7925
 
m4_defun([_LT_DECL_EGREP],
7926
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
7927
 
AC_REQUIRE([AC_PROG_FGREP])dnl
7928
 
test -z "$GREP" && GREP=grep
7929
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7930
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7931
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7932
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7933
 
AC_SUBST([GREP])
7934
 
])
7935
 
 
7936
 
 
7937
 
# _LT_DECL_OBJDUMP
7938
 
# --------------
7939
 
# If we don't have a new enough Autoconf to choose the best objdump
7940
 
# available, choose the one first in the user's PATH.
7941
 
m4_defun([_LT_DECL_OBJDUMP],
7942
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7943
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7944
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7945
 
AC_SUBST([OBJDUMP])
7946
 
])
7947
 
 
7948
 
 
7949
 
# _LT_DECL_SED
7950
 
# ------------
7951
 
# Check for a fully-functional sed program, that truncates
7952
 
# as few characters as possible.  Prefer GNU sed if found.
7953
 
m4_defun([_LT_DECL_SED],
7954
 
[AC_PROG_SED
7955
 
test -z "$SED" && SED=sed
7956
 
Xsed="$SED -e 1s/^X//"
7957
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7958
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7959
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7960
 
])# _LT_DECL_SED
7961
 
 
7962
 
m4_ifndef([AC_PROG_SED], [
 
7394
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
7395
 
 
7396
 
 
7397
# old names
 
7398
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
7399
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
7400
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
7401
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7402
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7403
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
7404
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
7405
 
 
7406
# This is just to silence aclocal about the macro not being used
 
7407
ifelse([AC_DISABLE_FAST_INSTALL])
 
7408
 
 
7409
AC_DEFUN([LT_AC_PROG_GCJ],
 
7410
[AC_CHECK_TOOL(GCJ, gcj, no)
 
7411
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7412
  AC_SUBST(GCJFLAGS)
 
7413
])
 
7414
 
 
7415
AC_DEFUN([LT_AC_PROG_RC],
 
7416
[AC_CHECK_TOOL(RC, windres, no)
 
7417
])
 
7418
 
7963
7419
# NOTE: This macro has been submitted for inclusion into   #
7964
7420
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7965
7421
#  a released version of Autoconf we should remove this    #
7966
7422
#  macro and use it instead.                               #
7967
 
 
7968
 
m4_defun([AC_PROG_SED],
 
7423
# LT_AC_PROG_SED
 
7424
# --------------
 
7425
# Check for a fully-functional sed program, that truncates
 
7426
# as few characters as possible.  Prefer GNU sed if found.
 
7427
AC_DEFUN([LT_AC_PROG_SED],
7969
7428
[AC_MSG_CHECKING([for a sed that does not truncate output])
7970
7429
AC_CACHE_VAL(lt_cv_path_SED,
7971
7430
[# Loop through the user's path and test for sed and gsed.
7983
7442
    done
7984
7443
  done
7985
7444
done
7986
 
IFS=$as_save_IFS
7987
7445
lt_ac_max=0
7988
7446
lt_ac_count=0
7989
7447
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8016
7474
done
8017
7475
])
8018
7476
SED=$lt_cv_path_SED
8019
 
AC_SUBST([SED])
8020
7477
AC_MSG_RESULT([$SED])
8021
 
])#AC_PROG_SED
8022
 
])#m4_ifndef
8023
 
 
8024
 
# Old name:
8025
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8026
 
dnl aclocal-1.4 backwards compatibility:
8027
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8028
 
 
8029
 
 
8030
 
# _LT_CHECK_SHELL_FEATURES
8031
 
# ------------------------
8032
 
# Find out whether the shell is Bourne or XSI compatible,
8033
 
# or has some other useful features.
8034
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
8035
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8036
 
# Try some XSI features
8037
 
xsi_shell=no
8038
 
( _lt_dummy="a/b/c"
8039
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8040
 
      = c,a/b,, \
8041
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
8042
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8043
 
  && xsi_shell=yes
8044
 
AC_MSG_RESULT([$xsi_shell])
8045
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8046
 
 
8047
 
AC_MSG_CHECKING([whether the shell understands "+="])
8048
 
lt_shell_append=no
8049
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8050
 
    >/dev/null 2>&1 \
8051
 
  && lt_shell_append=yes
8052
 
AC_MSG_RESULT([$lt_shell_append])
8053
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8054
 
 
8055
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8056
 
  lt_unset=unset
8057
 
else
8058
 
  lt_unset=false
8059
 
fi
8060
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8061
 
 
8062
 
# test EBCDIC or ASCII
8063
 
case `echo X|tr X '\101'` in
8064
 
 A) # ASCII based system
8065
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8066
 
  lt_SP2NL='tr \040 \012'
8067
 
  lt_NL2SP='tr \015\012 \040\040'
8068
 
  ;;
8069
 
 *) # EBCDIC based system
8070
 
  lt_SP2NL='tr \100 \n'
8071
 
  lt_NL2SP='tr \r\n \100\100'
8072
 
  ;;
8073
 
esac
8074
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8075
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8076
 
])# _LT_CHECK_SHELL_FEATURES
8077
 
 
8078
 
 
8079
 
# _LT_PROG_XSI_SHELLFNS
8080
 
# ---------------------
8081
 
# Bourne and XSI compatible variants of some useful shell functions.
8082
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
8083
 
[case $xsi_shell in
8084
 
  yes)
8085
 
    cat << \_LT_EOF >> "$cfgfile"
8086
 
 
8087
 
# func_dirname file append nondir_replacement
8088
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8089
 
# otherwise set result to NONDIR_REPLACEMENT.
8090
 
func_dirname ()
8091
 
{
8092
 
  case ${1} in
8093
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8094
 
    *  ) func_dirname_result="${3}" ;;
8095
 
  esac
8096
 
}
8097
 
 
8098
 
# func_basename file
8099
 
func_basename ()
8100
 
{
8101
 
  func_basename_result="${1##*/}"
8102
 
}
8103
 
 
8104
 
# func_dirname_and_basename file append nondir_replacement
8105
 
# perform func_basename and func_dirname in a single function
8106
 
# call:
8107
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
8108
 
#             add APPEND to the result, otherwise set result
8109
 
#             to NONDIR_REPLACEMENT.
8110
 
#             value returned in "$func_dirname_result"
8111
 
#   basename: Compute filename of FILE.
8112
 
#             value retuned in "$func_basename_result"
8113
 
# Implementation must be kept synchronized with func_dirname
8114
 
# and func_basename. For efficiency, we do not delegate to
8115
 
# those functions but instead duplicate the functionality here.
8116
 
func_dirname_and_basename ()
8117
 
{
8118
 
  case ${1} in
8119
 
    */*) func_dirname_result="${1%/*}${2}" ;;
8120
 
    *  ) func_dirname_result="${3}" ;;
8121
 
  esac
8122
 
  func_basename_result="${1##*/}"
8123
 
}
8124
 
 
8125
 
# func_stripname prefix suffix name
8126
 
# strip PREFIX and SUFFIX off of NAME.
8127
 
# PREFIX and SUFFIX must not contain globbing or regex special
8128
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8129
 
# dot (in which case that matches only a dot).
8130
 
func_stripname ()
8131
 
{
8132
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8133
 
  # positional parameters, so assign one to ordinary parameter first.
8134
 
  func_stripname_result=${3}
8135
 
  func_stripname_result=${func_stripname_result#"${1}"}
8136
 
  func_stripname_result=${func_stripname_result%"${2}"}
8137
 
}
8138
 
 
8139
 
# func_opt_split
8140
 
func_opt_split ()
8141
 
{
8142
 
  func_opt_split_opt=${1%%=*}
8143
 
  func_opt_split_arg=${1#*=}
8144
 
}
8145
 
 
8146
 
# func_lo2o object
8147
 
func_lo2o ()
8148
 
{
8149
 
  case ${1} in
8150
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8151
 
    *)    func_lo2o_result=${1} ;;
8152
 
  esac
8153
 
}
8154
 
 
8155
 
# func_xform libobj-or-source
8156
 
func_xform ()
8157
 
{
8158
 
  func_xform_result=${1%.*}.lo
8159
 
}
8160
 
 
8161
 
# func_arith arithmetic-term...
8162
 
func_arith ()
8163
 
{
8164
 
  func_arith_result=$(( $[*] ))
8165
 
}
8166
 
 
8167
 
# func_len string
8168
 
# STRING may not start with a hyphen.
8169
 
func_len ()
8170
 
{
8171
 
  func_len_result=${#1}
8172
 
}
8173
 
 
8174
 
_LT_EOF
8175
 
    ;;
8176
 
  *) # Bourne compatible functions.
8177
 
    cat << \_LT_EOF >> "$cfgfile"
8178
 
 
8179
 
# func_dirname file append nondir_replacement
8180
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
8181
 
# otherwise set result to NONDIR_REPLACEMENT.
8182
 
func_dirname ()
8183
 
{
8184
 
  # Extract subdirectory from the argument.
8185
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8186
 
  if test "X$func_dirname_result" = "X${1}"; then
8187
 
    func_dirname_result="${3}"
8188
 
  else
8189
 
    func_dirname_result="$func_dirname_result${2}"
8190
 
  fi
8191
 
}
8192
 
 
8193
 
# func_basename file
8194
 
func_basename ()
8195
 
{
8196
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8197
 
}
8198
 
 
8199
 
dnl func_dirname_and_basename
8200
 
dnl A portable version of this function is already defined in general.m4sh
8201
 
dnl so there is no need for it here.
8202
 
 
8203
 
# func_stripname prefix suffix name
8204
 
# strip PREFIX and SUFFIX off of NAME.
8205
 
# PREFIX and SUFFIX must not contain globbing or regex special
8206
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8207
 
# dot (in which case that matches only a dot).
8208
 
# func_strip_suffix prefix name
8209
 
func_stripname ()
8210
 
{
8211
 
  case ${2} in
8212
 
    .*) func_stripname_result=`$ECHO "X${3}" \
8213
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8214
 
    *)  func_stripname_result=`$ECHO "X${3}" \
8215
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8216
 
  esac
8217
 
}
8218
 
 
8219
 
# sed scripts:
8220
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8221
 
my_sed_long_arg='1s/^-[[^=]]*=//'
8222
 
 
8223
 
# func_opt_split
8224
 
func_opt_split ()
8225
 
{
8226
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8227
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8228
 
}
8229
 
 
8230
 
# func_lo2o object
8231
 
func_lo2o ()
8232
 
{
8233
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8234
 
}
8235
 
 
8236
 
# func_xform libobj-or-source
8237
 
func_xform ()
8238
 
{
8239
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8240
 
}
8241
 
 
8242
 
# func_arith arithmetic-term...
8243
 
func_arith ()
8244
 
{
8245
 
  func_arith_result=`expr "$[@]"`
8246
 
}
8247
 
 
8248
 
# func_len string
8249
 
# STRING may not start with a hyphen.
8250
 
func_len ()
8251
 
{
8252
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8253
 
}
8254
 
 
8255
 
_LT_EOF
8256
 
esac
8257
 
 
8258
 
case $lt_shell_append in
8259
 
  yes)
8260
 
    cat << \_LT_EOF >> "$cfgfile"
8261
 
 
8262
 
# func_append var value
8263
 
# Append VALUE to the end of shell variable VAR.
8264
 
func_append ()
8265
 
{
8266
 
  eval "$[1]+=\$[2]"
8267
 
}
8268
 
_LT_EOF
8269
 
    ;;
8270
 
  *)
8271
 
    cat << \_LT_EOF >> "$cfgfile"
8272
 
 
8273
 
# func_append var value
8274
 
# Append VALUE to the end of shell variable VAR.
8275
 
func_append ()
8276
 
{
8277
 
  eval "$[1]=\$$[1]\$[2]"
8278
 
}
8279
 
 
8280
 
_LT_EOF
8281
 
    ;;
8282
 
  esac
8283
 
])
8284
 
 
8285
 
# Helper functions for option handling.                    -*- Autoconf -*-
8286
 
#
8287
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8288
 
#   Written by Gary V. Vaughan, 2004
8289
 
#
8290
 
# This file is free software; the Free Software Foundation gives
8291
 
# unlimited permission to copy and/or distribute it, with or without
8292
 
# modifications, as long as this notice is preserved.
8293
 
 
8294
 
# serial 6 ltoptions.m4
8295
 
 
8296
 
# This is to help aclocal find these macros, as it can't see m4_define.
8297
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8298
 
 
8299
 
 
8300
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8301
 
# ------------------------------------------
8302
 
m4_define([_LT_MANGLE_OPTION],
8303
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8304
 
 
8305
 
 
8306
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8307
 
# ---------------------------------------
8308
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8309
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8310
 
# saved as a flag.
8311
 
m4_define([_LT_SET_OPTION],
8312
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8313
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8314
 
        _LT_MANGLE_DEFUN([$1], [$2]),
8315
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8316
 
])
8317
 
 
8318
 
 
8319
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8320
 
# ------------------------------------------------------------
8321
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8322
 
m4_define([_LT_IF_OPTION],
8323
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8324
 
 
8325
 
 
8326
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8327
 
# -------------------------------------------------------
8328
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8329
 
# are set.
8330
 
m4_define([_LT_UNLESS_OPTIONS],
8331
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8332
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8333
 
                      [m4_define([$0_found])])])[]dnl
8334
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8335
 
])[]dnl
8336
 
])
8337
 
 
8338
 
 
8339
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8340
 
# ----------------------------------------
8341
 
# OPTION-LIST is a space-separated list of Libtool options associated
8342
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8343
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8344
 
# the unknown option and exit.
8345
 
m4_defun([_LT_SET_OPTIONS],
8346
 
[# Set options
8347
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8348
 
    [_LT_SET_OPTION([$1], _LT_Option)])
8349
 
 
8350
 
m4_if([$1],[LT_INIT],[
8351
 
  dnl
8352
 
  dnl Simply set some default values (i.e off) if boolean options were not
8353
 
  dnl specified:
8354
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8355
 
  ])
8356
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8357
 
  ])
8358
 
  dnl
8359
 
  dnl If no reference was made to various pairs of opposing options, then
8360
 
  dnl we run the default mode handler for the pair.  For example, if neither
8361
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8362
 
  dnl archives by default:
8363
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8364
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8365
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8366
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8367
 
                   [_LT_ENABLE_FAST_INSTALL])
8368
 
  ])
8369
 
])# _LT_SET_OPTIONS
8370
 
 
8371
 
 
8372
 
 
8373
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8374
 
# -----------------------------------------
8375
 
m4_define([_LT_MANGLE_DEFUN],
8376
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8377
 
 
8378
 
 
8379
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8380
 
# -----------------------------------------------
8381
 
m4_define([LT_OPTION_DEFINE],
8382
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8383
 
])# LT_OPTION_DEFINE
8384
 
 
8385
 
 
8386
 
# dlopen
8387
 
# ------
8388
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8389
 
])
8390
 
 
8391
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8392
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
8393
 
AC_DIAGNOSE([obsolete],
8394
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8395
 
put the `dlopen' option into LT_INIT's first parameter.])
8396
 
])
8397
 
 
8398
 
dnl aclocal-1.4 backwards compatibility:
8399
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8400
 
 
8401
 
 
8402
 
# win32-dll
8403
 
# ---------
8404
 
# Declare package support for building win32 dll's.
8405
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8406
 
[enable_win32_dll=yes
8407
 
 
8408
 
case $host in
8409
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8410
 
  AC_CHECK_TOOL(AS, as, false)
8411
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8412
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8413
 
  ;;
8414
 
esac
8415
 
 
8416
 
test -z "$AS" && AS=as
8417
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8418
 
 
8419
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8420
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8421
 
 
8422
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8423
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8424
 
])# win32-dll
8425
 
 
8426
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8427
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8428
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
8429
 
AC_DIAGNOSE([obsolete],
8430
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8431
 
put the `win32-dll' option into LT_INIT's first parameter.])
8432
 
])
8433
 
 
8434
 
dnl aclocal-1.4 backwards compatibility:
8435
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8436
 
 
8437
 
 
8438
 
# _LT_ENABLE_SHARED([DEFAULT])
8439
 
# ----------------------------
8440
 
# implement the --enable-shared flag, and supports the `shared' and
8441
 
# `disable-shared' LT_INIT options.
8442
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8443
 
m4_define([_LT_ENABLE_SHARED],
8444
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8445
 
AC_ARG_ENABLE([shared],
8446
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8447
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8448
 
    [p=${PACKAGE-default}
8449
 
    case $enableval in
8450
 
    yes) enable_shared=yes ;;
8451
 
    no) enable_shared=no ;;
8452
 
    *)
8453
 
      enable_shared=no
8454
 
      # Look at the argument we got.  We use all the common list separators.
8455
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456
 
      for pkg in $enableval; do
8457
 
        IFS="$lt_save_ifs"
8458
 
        if test "X$pkg" = "X$p"; then
8459
 
          enable_shared=yes
8460
 
        fi
8461
 
      done
8462
 
      IFS="$lt_save_ifs"
8463
 
      ;;
8464
 
    esac],
8465
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8466
 
 
8467
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8468
 
        [Whether or not to build shared libraries])
8469
 
])# _LT_ENABLE_SHARED
8470
 
 
8471
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8472
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8473
 
 
8474
 
# Old names:
8475
 
AC_DEFUN([AC_ENABLE_SHARED],
8476
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8477
 
])
8478
 
 
8479
 
AC_DEFUN([AC_DISABLE_SHARED],
8480
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8481
 
])
8482
 
 
8483
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8484
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8485
 
 
8486
 
dnl aclocal-1.4 backwards compatibility:
8487
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8488
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8489
 
 
8490
 
 
8491
 
 
8492
 
# _LT_ENABLE_STATIC([DEFAULT])
8493
 
# ----------------------------
8494
 
# implement the --enable-static flag, and support the `static' and
8495
 
# `disable-static' LT_INIT options.
8496
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8497
 
m4_define([_LT_ENABLE_STATIC],
8498
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8499
 
AC_ARG_ENABLE([static],
8500
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8501
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8502
 
    [p=${PACKAGE-default}
8503
 
    case $enableval in
8504
 
    yes) enable_static=yes ;;
8505
 
    no) enable_static=no ;;
8506
 
    *)
8507
 
     enable_static=no
8508
 
      # Look at the argument we got.  We use all the common list separators.
8509
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8510
 
      for pkg in $enableval; do
8511
 
        IFS="$lt_save_ifs"
8512
 
        if test "X$pkg" = "X$p"; then
8513
 
          enable_static=yes
8514
 
        fi
8515
 
      done
8516
 
      IFS="$lt_save_ifs"
8517
 
      ;;
8518
 
    esac],
8519
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8520
 
 
8521
 
    _LT_DECL([build_old_libs], [enable_static], [0],
8522
 
        [Whether or not to build static libraries])
8523
 
])# _LT_ENABLE_STATIC
8524
 
 
8525
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8526
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8527
 
 
8528
 
# Old names:
8529
 
AC_DEFUN([AC_ENABLE_STATIC],
8530
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8531
 
])
8532
 
 
8533
 
AC_DEFUN([AC_DISABLE_STATIC],
8534
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
8535
 
])
8536
 
 
8537
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8538
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8539
 
 
8540
 
dnl aclocal-1.4 backwards compatibility:
8541
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8542
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8543
 
 
8544
 
 
8545
 
 
8546
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8547
 
# ----------------------------------
8548
 
# implement the --enable-fast-install flag, and support the `fast-install'
8549
 
# and `disable-fast-install' LT_INIT options.
8550
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8551
 
m4_define([_LT_ENABLE_FAST_INSTALL],
8552
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8553
 
AC_ARG_ENABLE([fast-install],
8554
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8555
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8556
 
    [p=${PACKAGE-default}
8557
 
    case $enableval in
8558
 
    yes) enable_fast_install=yes ;;
8559
 
    no) enable_fast_install=no ;;
8560
 
    *)
8561
 
      enable_fast_install=no
8562
 
      # Look at the argument we got.  We use all the common list separators.
8563
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8564
 
      for pkg in $enableval; do
8565
 
        IFS="$lt_save_ifs"
8566
 
        if test "X$pkg" = "X$p"; then
8567
 
          enable_fast_install=yes
8568
 
        fi
8569
 
      done
8570
 
      IFS="$lt_save_ifs"
8571
 
      ;;
8572
 
    esac],
8573
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8574
 
 
8575
 
_LT_DECL([fast_install], [enable_fast_install], [0],
8576
 
         [Whether or not to optimize for fast installation])dnl
8577
 
])# _LT_ENABLE_FAST_INSTALL
8578
 
 
8579
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8580
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8581
 
 
8582
 
# Old names:
8583
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8584
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8585
 
AC_DIAGNOSE([obsolete],
8586
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8587
 
the `fast-install' option into LT_INIT's first parameter.])
8588
 
])
8589
 
 
8590
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8591
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8592
 
AC_DIAGNOSE([obsolete],
8593
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8594
 
the `disable-fast-install' option into LT_INIT's first parameter.])
8595
 
])
8596
 
 
8597
 
dnl aclocal-1.4 backwards compatibility:
8598
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8599
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8600
 
 
8601
 
 
8602
 
# _LT_WITH_PIC([MODE])
8603
 
# --------------------
8604
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8605
 
# LT_INIT options.
8606
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8607
 
m4_define([_LT_WITH_PIC],
8608
 
[AC_ARG_WITH([pic],
8609
 
    [AS_HELP_STRING([--with-pic],
8610
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8611
 
    [pic_mode="$withval"],
8612
 
    [pic_mode=default])
8613
 
 
8614
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8615
 
 
8616
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8617
 
])# _LT_WITH_PIC
8618
 
 
8619
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8620
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8621
 
 
8622
 
# Old name:
8623
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
8624
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
8625
 
AC_DIAGNOSE([obsolete],
8626
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8627
 
put the `pic-only' option into LT_INIT's first parameter.])
8628
 
])
8629
 
 
8630
 
dnl aclocal-1.4 backwards compatibility:
8631
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8632
 
 
8633
 
 
8634
 
m4_define([_LTDL_MODE], [])
8635
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8636
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
8637
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8638
 
                 [m4_define([_LTDL_MODE], [recursive])])
8639
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8640
 
                 [m4_define([_LTDL_MODE], [subproject])])
8641
 
 
8642
 
m4_define([_LTDL_TYPE], [])
8643
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8644
 
                 [m4_define([_LTDL_TYPE], [installable])])
8645
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8646
 
                 [m4_define([_LTDL_TYPE], [convenience])])
8647
 
 
8648
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8649
 
#
8650
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8651
 
# Written by Gary V. Vaughan, 2004
8652
 
#
8653
 
# This file is free software; the Free Software Foundation gives
8654
 
# unlimited permission to copy and/or distribute it, with or without
8655
 
# modifications, as long as this notice is preserved.
8656
 
 
8657
 
# serial 6 ltsugar.m4
8658
 
 
8659
 
# This is to help aclocal find these macros, as it can't see m4_define.
8660
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8661
 
 
8662
 
 
8663
 
# lt_join(SEP, ARG1, [ARG2...])
8664
 
# -----------------------------
8665
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8666
 
# associated separator.
8667
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8668
 
# versions in m4sugar had bugs.
8669
 
m4_define([lt_join],
8670
 
[m4_if([$#], [1], [],
8671
 
       [$#], [2], [[$2]],
8672
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8673
 
m4_define([_lt_join],
8674
 
[m4_if([$#$2], [2], [],
8675
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8676
 
 
8677
 
 
8678
 
# lt_car(LIST)
8679
 
# lt_cdr(LIST)
8680
 
# ------------
8681
 
# Manipulate m4 lists.
8682
 
# These macros are necessary as long as will still need to support
8683
 
# Autoconf-2.59 which quotes differently.
8684
 
m4_define([lt_car], [[$1]])
8685
 
m4_define([lt_cdr],
8686
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8687
 
       [$#], 1, [],
8688
 
       [m4_dquote(m4_shift($@))])])
8689
 
m4_define([lt_unquote], $1)
8690
 
 
8691
 
 
8692
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8693
 
# ------------------------------------------
8694
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8695
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8696
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8697
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8698
 
# than defined and empty).
8699
 
#
8700
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8701
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8702
 
m4_define([lt_append],
8703
 
[m4_define([$1],
8704
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8705
 
 
8706
 
 
8707
 
 
8708
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8709
 
# ----------------------------------------------------------
8710
 
# Produce a SEP delimited list of all paired combinations of elements of
8711
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8712
 
# has the form PREFIXmINFIXSUFFIXn.
8713
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8714
 
m4_define([lt_combine],
8715
 
[m4_if(m4_eval([$# > 3]), [1],
8716
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8717
 
[[m4_foreach([_Lt_prefix], [$2],
8718
 
             [m4_foreach([_Lt_suffix],
8719
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8720
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8721
 
 
8722
 
 
8723
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8724
 
# -----------------------------------------------------------------------
8725
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8726
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8727
 
m4_define([lt_if_append_uniq],
8728
 
[m4_ifdef([$1],
8729
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8730
 
                 [lt_append([$1], [$2], [$3])$4],
8731
 
                 [$5])],
8732
 
          [lt_append([$1], [$2], [$3])$4])])
8733
 
 
8734
 
 
8735
 
# lt_dict_add(DICT, KEY, VALUE)
8736
 
# -----------------------------
8737
 
m4_define([lt_dict_add],
8738
 
[m4_define([$1($2)], [$3])])
8739
 
 
8740
 
 
8741
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8742
 
# --------------------------------------------
8743
 
m4_define([lt_dict_add_subkey],
8744
 
[m4_define([$1($2:$3)], [$4])])
8745
 
 
8746
 
 
8747
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8748
 
# ----------------------------------
8749
 
m4_define([lt_dict_fetch],
8750
 
[m4_ifval([$3],
8751
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8752
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8753
 
 
8754
 
 
8755
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8756
 
# -----------------------------------------------------------------
8757
 
m4_define([lt_if_dict_fetch],
8758
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8759
 
        [$5],
8760
 
    [$6])])
8761
 
 
8762
 
 
8763
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8764
 
# --------------------------------------------------------------
8765
 
m4_define([lt_dict_filter],
8766
 
[m4_if([$5], [], [],
8767
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8768
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8769
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8770
 
])
8771
 
 
8772
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
8773
 
#
8774
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
8775
 
#   Written by Scott James Remnant, 2004
8776
 
#
8777
 
# This file is free software; the Free Software Foundation gives
8778
 
# unlimited permission to copy and/or distribute it, with or without
8779
 
# modifications, as long as this notice is preserved.
8780
 
 
8781
 
# Generated from ltversion.in.
8782
 
 
8783
 
# serial 3012 ltversion.m4
8784
 
# This file is part of GNU Libtool
8785
 
 
8786
 
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8787
 
m4_define([LT_PACKAGE_REVISION], [1.3012])
8788
 
 
8789
 
AC_DEFUN([LTVERSION_VERSION],
8790
 
[macro_version='2.2.6'
8791
 
macro_revision='1.3012'
8792
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8793
 
_LT_DECL(, macro_revision, 0)
8794
 
])
8795
 
 
8796
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8797
 
#
8798
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8799
 
#   Written by Scott James Remnant, 2004.
8800
 
#
8801
 
# This file is free software; the Free Software Foundation gives
8802
 
# unlimited permission to copy and/or distribute it, with or without
8803
 
# modifications, as long as this notice is preserved.
8804
 
 
8805
 
# serial 4 lt~obsolete.m4
8806
 
 
8807
 
# These exist entirely to fool aclocal when bootstrapping libtool.
8808
 
#
8809
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8810
 
# which have later been changed to m4_define as they aren't part of the
8811
 
# exported API, or moved to Autoconf or Automake where they belong.
8812
 
#
8813
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8814
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8815
 
# using a macro with the same name in our local m4/libtool.m4 it'll
8816
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8817
 
# and doesn't know about Autoconf macros at all.)
8818
 
#
8819
 
# So we provide this file, which has a silly filename so it's always
8820
 
# included after everything else.  This provides aclocal with the
8821
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8822
 
# because those macros already exist, or will be overwritten later.
8823
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8824
 
#
8825
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8826
 
# Yes, that means every name once taken will need to remain here until
8827
 
# we give up compatibility with versions before 1.7, at which point
8828
 
# we need to keep only those names which we still refer to.
8829
 
 
8830
 
# This is to help aclocal find these macros, as it can't see m4_define.
8831
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8832
 
 
8833
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8834
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8835
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8836
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8837
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8838
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8839
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8840
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8841
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8842
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8843
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8844
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8845
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8846
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8847
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8848
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8849
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8850
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8851
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8852
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8853
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8854
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8855
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8856
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8857
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8858
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8859
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8860
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8861
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8862
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8863
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8864
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8865
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8866
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8867
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8868
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8869
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8870
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8871
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8872
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8873
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8874
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8875
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8876
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8877
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8878
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8879
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8880
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8881
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8882
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8883
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8884
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8885
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8886
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8887
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8888
 
 
8889
 
# nls.m4 serial 3 (gettext-0.15)
8890
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8891
 
dnl This file is free software; the Free Software Foundation
8892
 
dnl gives unlimited permission to copy and/or distribute it,
8893
 
dnl with or without modifications, as long as this notice is preserved.
 
7478
])
 
7479
 
 
7480
# nls.m4 serial 1 (gettext-0.12)
 
7481
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
 
7482
dnl This file is free software, distributed under the terms of the GNU
 
7483
dnl General Public License.  As a special exception to the GNU General
 
7484
dnl Public License, this file may be distributed as part of a program
 
7485
dnl that contains a configuration script generated by Autoconf, under
 
7486
dnl the same distribution terms as the rest of that program.
8894
7487
dnl
8895
7488
dnl This file can can be used in projects which are not available under
8896
7489
dnl the GNU General Public License or the GNU Library General Public
8905
7498
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8906
7499
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8907
7500
 
8908
 
AC_PREREQ(2.50)
8909
 
 
8910
7501
AC_DEFUN([AM_NLS],
8911
7502
[
8912
7503
  AC_MSG_CHECKING([whether NLS is requested])
8918
7509
  AC_SUBST(USE_NLS)
8919
7510
])
8920
7511
 
8921
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
8922
 
8923
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8924
 
#
8925
 
# This program is free software; you can redistribute it and/or modify
8926
 
# it under the terms of the GNU General Public License as published by
8927
 
# the Free Software Foundation; either version 2 of the License, or
8928
 
# (at your option) any later version.
8929
 
#
8930
 
# This program is distributed in the hope that it will be useful, but
8931
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
8932
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8933
 
# General Public License for more details.
8934
 
#
8935
 
# You should have received a copy of the GNU General Public License
8936
 
# along with this program; if not, write to the Free Software
8937
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8938
 
#
8939
 
# As a special exception to the GNU General Public License, if you
8940
 
# distribute this file as part of a program that contains a
8941
 
# configuration script generated by Autoconf, you may include it under
8942
 
# the same distribution terms that you use for the rest of that program.
8943
 
 
8944
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8945
 
# ----------------------------------
8946
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8947
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8948
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8949
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8950
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8951
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8952
 
fi
8953
 
if test -n "$PKG_CONFIG"; then
8954
 
        _pkg_min_version=m4_default([$1], [0.9.0])
8955
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8956
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8957
 
                AC_MSG_RESULT([yes])
8958
 
        else
8959
 
                AC_MSG_RESULT([no])
8960
 
                PKG_CONFIG=""
8961
 
        fi
8962
 
                
8963
 
fi[]dnl
8964
 
])# PKG_PROG_PKG_CONFIG
8965
 
 
8966
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8967
 
#
8968
 
# Check to see whether a particular set of modules exists.  Similar
8969
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8970
 
#
8971
 
#
8972
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8973
 
# this or PKG_CHECK_MODULES is called, or make sure to call
8974
 
# PKG_CHECK_EXISTS manually
8975
 
# --------------------------------------------------------------
8976
 
AC_DEFUN([PKG_CHECK_EXISTS],
8977
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8978
 
if test -n "$PKG_CONFIG" && \
8979
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8980
 
  m4_ifval([$2], [$2], [:])
8981
 
m4_ifvaln([$3], [else
8982
 
  $3])dnl
8983
 
fi])
8984
 
 
8985
 
 
8986
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8987
 
# ---------------------------------------------
8988
 
m4_define([_PKG_CONFIG],
8989
 
[if test -n "$PKG_CONFIG"; then
8990
 
    if test -n "$$1"; then
8991
 
        pkg_cv_[]$1="$$1"
8992
 
    else
8993
 
        PKG_CHECK_EXISTS([$3],
8994
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8995
 
                         [pkg_failed=yes])
8996
 
    fi
8997
 
else
8998
 
        pkg_failed=untried
8999
 
fi[]dnl
9000
 
])# _PKG_CONFIG
9001
 
 
9002
 
# _PKG_SHORT_ERRORS_SUPPORTED
9003
 
# -----------------------------
9004
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9005
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9006
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9007
 
        _pkg_short_errors_supported=yes
9008
 
else
9009
 
        _pkg_short_errors_supported=no
9010
 
fi[]dnl
9011
 
])# _PKG_SHORT_ERRORS_SUPPORTED
9012
 
 
9013
 
 
9014
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9015
 
# [ACTION-IF-NOT-FOUND])
9016
 
#
9017
 
#
9018
 
# Note that if there is a possibility the first call to
9019
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9020
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9021
 
#
9022
 
#
9023
 
# --------------------------------------------------------------
9024
 
AC_DEFUN([PKG_CHECK_MODULES],
9025
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9026
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9027
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9028
 
 
9029
 
pkg_failed=no
9030
 
AC_MSG_CHECKING([for $1])
9031
 
 
9032
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9033
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9034
 
 
9035
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9036
 
and $1[]_LIBS to avoid the need to call pkg-config.
9037
 
See the pkg-config man page for more details.])
9038
 
 
9039
 
if test $pkg_failed = yes; then
9040
 
        _PKG_SHORT_ERRORS_SUPPORTED
9041
 
        if test $_pkg_short_errors_supported = yes; then
9042
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
9043
 
        else 
9044
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
9045
 
        fi
9046
 
        # Put the nasty error message in config.log where it belongs
9047
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9048
 
 
9049
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
9050
 
[Package requirements ($2) were not met:
9051
 
 
9052
 
$$1_PKG_ERRORS
9053
 
 
9054
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9055
 
installed software in a non-standard prefix.
9056
 
 
9057
 
_PKG_TEXT
9058
 
])],
9059
 
                [AC_MSG_RESULT([no])
9060
 
                $4])
9061
 
elif test $pkg_failed = untried; then
9062
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
9063
 
[The pkg-config script could not be found or is too old.  Make sure it
9064
 
is in your PATH or set the PKG_CONFIG environment variable to the full
9065
 
path to pkg-config.
9066
 
 
9067
 
_PKG_TEXT
9068
 
 
9069
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9070
 
                [$4])
9071
 
else
9072
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9073
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9074
 
        AC_MSG_RESULT([yes])
9075
 
        ifelse([$3], , :, [$3])
9076
 
fi[]dnl
9077
 
])# PKG_CHECK_MODULES
9078
 
 
9079
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
7512
AC_DEFUN([AM_MKINSTALLDIRS],
 
7513
[
 
7514
  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
7515
  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
 
7516
  dnl Try to locate it.
 
7517
  MKINSTALLDIRS=
 
7518
  if test -n "$ac_aux_dir"; then
 
7519
    case "$ac_aux_dir" in
 
7520
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
7521
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
7522
    esac
 
7523
  fi
 
7524
  if test -z "$MKINSTALLDIRS"; then
 
7525
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
7526
  fi
 
7527
  AC_SUBST(MKINSTALLDIRS)
 
7528
])
 
7529
 
 
7530
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
9080
7531
#
9081
7532
# This file is free software; the Free Software Foundation
9082
7533
# gives unlimited permission to copy and/or distribute it,
9088
7539
# generated from the m4 files accompanying Automake X.Y.
9089
7540
# (This private macro should not be called outside this file.)
9090
7541
AC_DEFUN([AM_AUTOMAKE_VERSION],
9091
 
[am__api_version='1.11'
 
7542
[am__api_version='1.10'
9092
7543
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9093
7544
dnl require some minimum version.  Point them to the right macro.
9094
 
m4_if([$1], [1.11], [],
 
7545
m4_if([$1], [1.10], [],
9095
7546
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9096
7547
])
9097
7548
 
9105
7556
# AM_SET_CURRENT_AUTOMAKE_VERSION
9106
7557
# -------------------------------
9107
7558
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9108
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
7559
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
9109
7560
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9110
 
[AM_AUTOMAKE_VERSION([1.11])dnl
9111
 
m4_ifndef([AC_AUTOCONF_VERSION],
9112
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9113
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
7561
[AM_AUTOMAKE_VERSION([1.10])dnl
 
7562
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
9114
7563
 
9115
7564
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9116
7565
 
9167
7616
 
9168
7617
# AM_CONDITIONAL                                            -*- Autoconf -*-
9169
7618
 
9170
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
7619
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
9171
7620
# Free Software Foundation, Inc.
9172
7621
#
9173
7622
# This file is free software; the Free Software Foundation
9174
7623
# gives unlimited permission to copy and/or distribute it,
9175
7624
# with or without modifications, as long as this notice is preserved.
9176
7625
 
9177
 
# serial 9
 
7626
# serial 8
9178
7627
 
9179
7628
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9180
7629
# -------------------------------------
9187
7636
AC_SUBST([$1_FALSE])dnl
9188
7637
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9189
7638
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9190
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9191
7639
if $2; then
9192
7640
  $1_TRUE=
9193
7641
  $1_FALSE='#'
9201
7649
Usually this means the macro was only invoked conditionally.]])
9202
7650
fi])])
9203
7651
 
9204
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
7652
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
9205
7653
# Free Software Foundation, Inc.
9206
7654
#
9207
7655
# This file is free software; the Free Software Foundation
9208
7656
# gives unlimited permission to copy and/or distribute it,
9209
7657
# with or without modifications, as long as this notice is preserved.
9210
7658
 
9211
 
# serial 10
 
7659
# serial 9
9212
7660
 
9213
7661
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9214
7662
# written in clear, in which case automake, when reading aclocal.m4,
9265
7713
  if test "$am_compiler_list" = ""; then
9266
7714
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9267
7715
  fi
9268
 
  am__universal=false
9269
 
  m4_case([$1], [CC],
9270
 
    [case " $depcc " in #(
9271
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9272
 
     esac],
9273
 
    [CXX],
9274
 
    [case " $depcc " in #(
9275
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9276
 
     esac])
9277
 
 
9278
7716
  for depmode in $am_compiler_list; do
9279
7717
    # Setup a source with many dependencies, because some compilers
9280
7718
    # like to wrap large dependency lists on column 80 (with \), and
9292
7730
    done
9293
7731
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9294
7732
 
9295
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9296
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9297
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9298
 
    # versions had trouble with output in subdirs
9299
 
    am__obj=sub/conftest.${OBJEXT-o}
9300
 
    am__minus_obj="-o $am__obj"
9301
7733
    case $depmode in
9302
 
    gcc)
9303
 
      # This depmode causes a compiler race in universal mode.
9304
 
      test "$am__universal" = false || continue
9305
 
      ;;
9306
7734
    nosideeffect)
9307
7735
      # after this tag, mechanisms are not by side-effect, so they'll
9308
7736
      # only be used when explicitly requested
9312
7740
        break
9313
7741
      fi
9314
7742
      ;;
9315
 
    msvisualcpp | msvcmsys)
9316
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9317
 
      # not run yet.  These depmodes are late enough in the game, and
9318
 
      # so weak that their functioning should not be impacted.
9319
 
      am__obj=conftest.${OBJEXT-o}
9320
 
      am__minus_obj=
9321
 
      ;;
9322
7743
    none) break ;;
9323
7744
    esac
 
7745
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7746
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7747
    # handle `-M -o', and we need to detect this.
9324
7748
    if depmode=$depmode \
9325
 
       source=sub/conftest.c object=$am__obj \
 
7749
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9326
7750
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9327
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
7751
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9328
7752
         >/dev/null 2>conftest.err &&
9329
7753
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9330
7754
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9331
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
7755
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9332
7756
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9333
7757
      # icc doesn't choke on unknown options, it will just issue warnings
9334
7758
      # or remarks (even with -Werror).  So we grep stderr for any message
9385
7809
 
9386
7810
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9387
7811
 
9388
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
7812
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9389
7813
# Free Software Foundation, Inc.
9390
7814
#
9391
7815
# This file is free software; the Free Software Foundation
9392
7816
# gives unlimited permission to copy and/or distribute it,
9393
7817
# with or without modifications, as long as this notice is preserved.
9394
7818
 
9395
 
#serial 5
 
7819
#serial 3
9396
7820
 
9397
7821
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9398
7822
# ------------------------------
9399
7823
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9400
 
[{
9401
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9402
 
  # are listed without --file.  Let's play safe and only enable the eval
9403
 
  # if we detect the quoting.
9404
 
  case $CONFIG_FILES in
9405
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9406
 
  *)   set x $CONFIG_FILES ;;
9407
 
  esac
9408
 
  shift
9409
 
  for mf
9410
 
  do
9411
 
    # Strip MF so we end up with the name of the file.
9412
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9413
 
    # Check whether this is an Automake generated Makefile or not.
9414
 
    # We used to match only the files named `Makefile.in', but
9415
 
    # some people rename them; so instead we look at the file content.
9416
 
    # Grep'ing the first line is not enough: some people post-process
9417
 
    # each Makefile.in and add a new line on top of each file to say so.
9418
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9419
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9420
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9421
 
      dirpart=`AS_DIRNAME("$mf")`
9422
 
    else
9423
 
      continue
9424
 
    fi
9425
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9426
 
    # from the Makefile without running `make'.
9427
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9428
 
    test -z "$DEPDIR" && continue
9429
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9430
 
    test -z "am__include" && continue
9431
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9432
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9433
 
    U=`sed -n 's/^U = //p' < "$mf"`
9434
 
    # Find all dependency output files, they are included files with
9435
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9436
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9437
 
    # expansion.
9438
 
    for file in `sed -n "
9439
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9440
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9441
 
      # Make sure the directory exists.
9442
 
      test -f "$dirpart/$file" && continue
9443
 
      fdir=`AS_DIRNAME(["$file"])`
9444
 
      AS_MKDIR_P([$dirpart/$fdir])
9445
 
      # echo "creating $dirpart/$file"
9446
 
      echo '# dummy' > "$dirpart/$file"
9447
 
    done
 
7824
[for mf in $CONFIG_FILES; do
 
7825
  # Strip MF so we end up with the name of the file.
 
7826
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
7827
  # Check whether this is an Automake generated Makefile or not.
 
7828
  # We used to match only the files named `Makefile.in', but
 
7829
  # some people rename them; so instead we look at the file content.
 
7830
  # Grep'ing the first line is not enough: some people post-process
 
7831
  # each Makefile.in and add a new line on top of each file to say so.
 
7832
  # Grep'ing the whole file is not good either: AIX grep has a line
 
7833
  # limit of 2048, but all sed's we know have understand at least 4000.
 
7834
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
7835
    dirpart=`AS_DIRNAME("$mf")`
 
7836
  else
 
7837
    continue
 
7838
  fi
 
7839
  # Extract the definition of DEPDIR, am__include, and am__quote
 
7840
  # from the Makefile without running `make'.
 
7841
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
7842
  test -z "$DEPDIR" && continue
 
7843
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7844
  test -z "am__include" && continue
 
7845
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
7846
  # When using ansi2knr, U may be empty or an underscore; expand it
 
7847
  U=`sed -n 's/^U = //p' < "$mf"`
 
7848
  # Find all dependency output files, they are included files with
 
7849
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7850
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
7851
  # expansion.
 
7852
  for file in `sed -n "
 
7853
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7854
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7855
    # Make sure the directory exists.
 
7856
    test -f "$dirpart/$file" && continue
 
7857
    fdir=`AS_DIRNAME(["$file"])`
 
7858
    AS_MKDIR_P([$dirpart/$fdir])
 
7859
    # echo "creating $dirpart/$file"
 
7860
    echo '# dummy' > "$dirpart/$file"
9448
7861
  done
9449
 
}
 
7862
done
9450
7863
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9451
7864
 
9452
7865
 
9478
7891
# Do all the work for Automake.                             -*- Autoconf -*-
9479
7892
 
9480
7893
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9481
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
7894
# 2005, 2006 Free Software Foundation, Inc.
9482
7895
#
9483
7896
# This file is free software; the Free Software Foundation
9484
7897
# gives unlimited permission to copy and/or distribute it,
9485
7898
# with or without modifications, as long as this notice is preserved.
9486
7899
 
9487
 
# serial 16
 
7900
# serial 12
9488
7901
 
9489
7902
# This macro actually does too much.  Some checks are only needed if
9490
7903
# your package does certain things.  But this isn't really a big deal.
9501
7914
# arguments mandatory, and then we can depend on a new Autoconf
9502
7915
# release and drop the old call support.
9503
7916
AC_DEFUN([AM_INIT_AUTOMAKE],
9504
 
[AC_PREREQ([2.62])dnl
 
7917
[AC_PREREQ([2.60])dnl
9505
7918
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9506
7919
dnl the ones we care about.
9507
7920
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9552
7965
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9553
7966
AM_MISSING_PROG(AUTOHEADER, autoheader)
9554
7967
AM_MISSING_PROG(MAKEINFO, makeinfo)
9555
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9556
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
7968
AM_PROG_INSTALL_SH
 
7969
AM_PROG_INSTALL_STRIP
9557
7970
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9558
7971
# We need awk for the "check" target.  The system "awk" is bad on
9559
7972
# some platforms.
9561
7974
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9562
7975
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9563
7976
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9564
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9565
 
                             [_AM_PROG_TAR([v7])])])
 
7977
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
7978
                             [_AM_PROG_TAR([v7])])])
9566
7979
_AM_IF_OPTION([no-dependencies],,
9567
7980
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9568
 
                  [_AM_DEPENDENCIES(CC)],
9569
 
                  [define([AC_PROG_CC],
9570
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
7981
                  [_AM_DEPENDENCIES(CC)],
 
7982
                  [define([AC_PROG_CC],
 
7983
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9571
7984
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9572
 
                  [_AM_DEPENDENCIES(CXX)],
9573
 
                  [define([AC_PROG_CXX],
9574
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
7985
                  [_AM_DEPENDENCIES(CXX)],
 
7986
                  [define([AC_PROG_CXX],
 
7987
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9575
7988
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9576
 
                  [_AM_DEPENDENCIES(OBJC)],
9577
 
                  [define([AC_PROG_OBJC],
9578
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9579
 
])
9580
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9581
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9582
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9583
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9584
 
AC_CONFIG_COMMANDS_PRE(dnl
9585
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9586
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9587
 
])
9588
 
 
9589
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9590
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9591
 
dnl mangled by Autoconf and run in a shell conditional statement.
9592
 
m4_define([_AC_COMPILER_EXEEXT],
9593
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
7989
                  [_AM_DEPENDENCIES(OBJC)],
 
7990
                  [define([AC_PROG_OBJC],
 
7991
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
7992
])
 
7993
])
9594
7994
 
9595
7995
 
9596
7996
# When config.status generates a header, we must update the stamp-h file.
9602
8002
# our stamp files there.
9603
8003
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9604
8004
[# Compute $1's index in $config_headers.
9605
 
_am_arg=$1
9606
8005
_am_stamp_count=1
9607
8006
for _am_header in $config_headers :; do
9608
8007
  case $_am_header in
9609
 
    $_am_arg | $_am_arg:* )
 
8008
    $1 | $1:* )
9610
8009
      break ;;
9611
8010
    * )
9612
8011
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9613
8012
  esac
9614
8013
done
9615
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
8014
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
9616
8015
 
9617
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
8016
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9618
8017
#
9619
8018
# This file is free software; the Free Software Foundation
9620
8019
# gives unlimited permission to copy and/or distribute it,
9625
8024
# Define $install_sh.
9626
8025
AC_DEFUN([AM_PROG_INSTALL_SH],
9627
8026
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9628
 
if test x"${install_sh}" != xset; then
9629
 
  case $am_aux_dir in
9630
 
  *\ * | *\     *)
9631
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9632
 
  *)
9633
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9634
 
  esac
9635
 
fi
 
8027
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
9636
8028
AC_SUBST(install_sh)])
9637
8029
 
9638
8030
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9659
8051
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9660
8052
# From Jim Meyering
9661
8053
 
9662
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
8054
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
9663
8055
# Free Software Foundation, Inc.
9664
8056
#
9665
8057
# This file is free software; the Free Software Foundation
9666
8058
# gives unlimited permission to copy and/or distribute it,
9667
8059
# with or without modifications, as long as this notice is preserved.
9668
8060
 
9669
 
# serial 5
 
8061
# serial 4
9670
8062
 
9671
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9672
 
# ----------------------------------
9673
 
# Control maintainer-specific portions of Makefiles.
9674
 
# Default is to disable them, unless `enable' is passed literally.
9675
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
9676
 
# can override the default with the --enable/--disable switch.
9677
8063
AC_DEFUN([AM_MAINTAINER_MODE],
9678
 
[m4_case(m4_default([$1], [disable]),
9679
 
       [enable], [m4_define([am_maintainer_other], [disable])],
9680
 
       [disable], [m4_define([am_maintainer_other], [enable])],
9681
 
       [m4_define([am_maintainer_other], [enable])
9682
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9683
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9684
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9685
 
  AC_ARG_ENABLE([maintainer-mode],
9686
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
8064
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
8065
  dnl maintainer-mode is disabled by default
 
8066
  AC_ARG_ENABLE(maintainer-mode,
 
8067
[  --enable-maintainer-mode  enable make rules and dependencies not useful
9687
8068
                          (and sometimes confusing) to the casual installer],
9688
 
      [USE_MAINTAINER_MODE=$enableval],
9689
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
8069
      USE_MAINTAINER_MODE=$enableval,
 
8070
      USE_MAINTAINER_MODE=no)
9690
8071
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9691
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
8072
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
9692
8073
  MAINT=$MAINTAINER_MODE_TRUE
9693
 
  AC_SUBST([MAINT])dnl
 
8074
  AC_SUBST(MAINT)dnl
9694
8075
]
9695
8076
)
9696
8077
 
9698
8079
 
9699
8080
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9700
8081
 
9701
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
8082
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9702
8083
#
9703
8084
# This file is free software; the Free Software Foundation
9704
8085
# gives unlimited permission to copy and/or distribute it,
9705
8086
# with or without modifications, as long as this notice is preserved.
9706
8087
 
9707
 
# serial 4
 
8088
# serial 3
9708
8089
 
9709
8090
# AM_MAKE_INCLUDE()
9710
8091
# -----------------
9713
8094
[am_make=${MAKE-make}
9714
8095
cat > confinc << 'END'
9715
8096
am__doit:
9716
 
        @echo this is the am__doit target
 
8097
        @echo done
9717
8098
.PHONY: am__doit
9718
8099
END
9719
8100
# If we don't find an include directive, just comment out the code.
9723
8104
_am_result=none
9724
8105
# First try GNU make style include.
9725
8106
echo "include confinc" > confmf
9726
 
# Ignore all kinds of additional output from `make'.
9727
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9728
 
*the\ am__doit\ target*)
9729
 
  am__include=include
9730
 
  am__quote=
9731
 
  _am_result=GNU
9732
 
  ;;
9733
 
esac
 
8107
# We grep out `Entering directory' and `Leaving directory'
 
8108
# messages which can occur if `w' ends up in MAKEFLAGS.
 
8109
# In particular we don't look at `^make:' because GNU make might
 
8110
# be invoked under some other name (usually "gmake"), in which
 
8111
# case it prints its new name instead of `make'.
 
8112
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
8113
   am__include=include
 
8114
   am__quote=
 
8115
   _am_result=GNU
 
8116
fi
9734
8117
# Now try BSD make style include.
9735
8118
if test "$am__include" = "#"; then
9736
8119
   echo '.include "confinc"' > confmf
9737
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9738
 
   *the\ am__doit\ target*)
9739
 
     am__include=.include
9740
 
     am__quote="\""
9741
 
     _am_result=BSD
9742
 
     ;;
9743
 
   esac
 
8120
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
8121
      am__include=.include
 
8122
      am__quote="\""
 
8123
      _am_result=BSD
 
8124
   fi
9744
8125
fi
9745
8126
AC_SUBST([am__include])
9746
8127
AC_SUBST([am__quote])
9750
8131
 
9751
8132
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9752
8133
 
9753
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
8134
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
9754
8135
# Free Software Foundation, Inc.
9755
8136
#
9756
8137
# This file is free software; the Free Software Foundation
9757
8138
# gives unlimited permission to copy and/or distribute it,
9758
8139
# with or without modifications, as long as this notice is preserved.
9759
8140
 
9760
 
# serial 6
 
8141
# serial 5
9761
8142
 
9762
8143
# AM_MISSING_PROG(NAME, PROGRAM)
9763
8144
# ------------------------------
9774
8155
AC_DEFUN([AM_MISSING_HAS_RUN],
9775
8156
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9776
8157
AC_REQUIRE_AUX_FILE([missing])dnl
9777
 
if test x"${MISSING+set}" != xset; then
9778
 
  case $am_aux_dir in
9779
 
  *\ * | *\     *)
9780
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9781
 
  *)
9782
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9783
 
  esac
9784
 
fi
 
8158
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9785
8159
# Use eval to expand $SHELL
9786
8160
if eval "$MISSING --run true"; then
9787
8161
  am_missing_run="$MISSING --run "
9819
8193
 
9820
8194
# Helper functions for option handling.                     -*- Autoconf -*-
9821
8195
 
9822
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
8196
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9823
8197
#
9824
8198
# This file is free software; the Free Software Foundation
9825
8199
# gives unlimited permission to copy and/or distribute it,
9826
8200
# with or without modifications, as long as this notice is preserved.
9827
8201
 
9828
 
# serial 4
 
8202
# serial 3
9829
8203
 
9830
8204
# _AM_MANGLE_OPTION(NAME)
9831
8205
# -----------------------
9842
8216
# ----------------------------------
9843
8217
# OPTIONS is a space-separated list of Automake options.
9844
8218
AC_DEFUN([_AM_SET_OPTIONS],
9845
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8219
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9846
8220
 
9847
8221
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9848
8222
# -------------------------------------------
9850
8224
AC_DEFUN([_AM_IF_OPTION],
9851
8225
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9852
8226
 
9853
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
 
8227
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9854
8228
# Free Software Foundation, Inc.
9855
8229
#
9856
8230
# This file is free software; the Free Software Foundation
9881
8255
# numbers and dots only.
9882
8256
AC_DEFUN([AM_PATH_PYTHON],
9883
8257
 [
9884
 
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
9885
 
  dnl supported. (2.0 was released on October 16, 2000).
 
8258
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
 
8259
  dnl supported because the default installation locations changed from
 
8260
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
 
8261
  dnl in 1.5.
9886
8262
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
9887
 
                    [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
9888
 
python2.1 python2.0])
 
8263
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
 
8264
python2.1 python2.0 python1.6 python1.5])
9889
8265
 
9890
8266
  m4_if([$1],[],[
9891
8267
    dnl No version check is needed.
9932
8308
  dnl library.
9933
8309
 
9934
8310
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
9935
 
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
 
8311
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
9936
8312
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
9937
8313
 
9938
8314
  dnl Use the values of $prefix and $exec_prefix for the corresponding
9947
8323
  dnl to know which OS platform Python thinks this is.
9948
8324
 
9949
8325
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
9950
 
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
 
8326
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
9951
8327
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
9952
8328
 
9953
8329
 
9962
8338
  dnl doesn't work.
9963
8339
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
9964
8340
    [am_cv_python_pythondir],
9965
 
    [if test "x$prefix" = xNONE
9966
 
     then
9967
 
       am_py_prefix=$ac_default_prefix
9968
 
     else
9969
 
       am_py_prefix=$prefix
9970
 
     fi
9971
 
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
9972
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
9973
 
     case $am_cv_python_pythondir in
9974
 
     $am_py_prefix*)
9975
 
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
9976
 
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9977
 
       ;;
9978
 
     esac
9979
 
    ])
 
8341
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
 
8342
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
9980
8343
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
9981
8344
 
9982
8345
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
9992
8355
  dnl doesn't work.
9993
8356
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
9994
8357
    [am_cv_python_pyexecdir],
9995
 
    [if test "x$exec_prefix" = xNONE
9996
 
     then
9997
 
       am_py_exec_prefix=$am_py_prefix
9998
 
     else
9999
 
       am_py_exec_prefix=$exec_prefix
10000
 
     fi
10001
 
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
10002
 
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
10003
 
     case $am_cv_python_pyexecdir in
10004
 
     $am_py_exec_prefix*)
10005
 
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
10006
 
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
10007
 
       ;;
10008
 
     esac
10009
 
    ])
 
8358
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
 
8359
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
10010
8360
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
10011
8361
 
10012
8362
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
10026
8376
# Run ACTION-IF-FALSE otherwise.
10027
8377
# This test uses sys.hexversion instead of the string equivalent (first
10028
8378
# word of sys.version), in order to cope with versions such as 2.2c1.
10029
 
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
 
8379
# hexversion has been introduced in Python 1.5.2; it's probably not
 
8380
# worth to support older versions (1.5.1 was released on October 31, 1998).
10030
8381
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
10031
 
 [prog="import sys
 
8382
 [prog="import sys, string
10032
8383
# split strings by '.' and convert to numeric.  Append some zeros
10033
8384
# because we need at least 4 digits for the hex conversion.
10034
 
# map returns an iterator in Python 3.0 and a list in 2.x
10035
 
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
 
8385
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
10036
8386
minverhex = 0
10037
 
# xrange is not present in Python 3.0 and range returns an iterator
10038
 
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
 
8387
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
10039
8388
sys.exit(sys.hexversion < minverhex)"
10040
8389
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
10041
8390
 
10058
8407
 
10059
8408
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
10060
8409
 
10061
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
8410
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
10062
8411
# Free Software Foundation, Inc.
10063
8412
#
10064
8413
# This file is free software; the Free Software Foundation
10065
8414
# gives unlimited permission to copy and/or distribute it,
10066
8415
# with or without modifications, as long as this notice is preserved.
10067
8416
 
10068
 
# serial 5
 
8417
# serial 4
10069
8418
 
10070
8419
# AM_SANITY_CHECK
10071
8420
# ---------------
10074
8423
# Just in case
10075
8424
sleep 1
10076
8425
echo timestamp > conftest.file
10077
 
# Reject unsafe characters in $srcdir or the absolute working directory
10078
 
# name.  Accept space and tab only in the latter.
10079
 
am_lf='
10080
 
'
10081
 
case `pwd` in
10082
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
10083
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
10084
 
esac
10085
 
case $srcdir in
10086
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
10087
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10088
 
esac
10089
 
 
10090
8426
# Do `set' in a subshell so we don't clobber the current shell's
10091
8427
# arguments.  Must try -L first in case configure is actually a
10092
8428
# symlink; some systems play weird games with the mod time of symlinks
10093
8429
# (eg FreeBSD returns the mod time of the symlink's containing
10094
8430
# directory).
10095
8431
if (
10096
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
8432
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10097
8433
   if test "$[*]" = "X"; then
10098
8434
      # -L didn't work.
10099
 
      set X `ls -t "$srcdir/configure" conftest.file`
 
8435
      set X `ls -t $srcdir/configure conftest.file`
10100
8436
   fi
10101
8437
   rm -f conftest.file
10102
8438
   if test "$[*]" != "X $srcdir/configure conftest.file" \
10149
8485
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10150
8486
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10151
8487
 
10152
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
8488
# Copyright (C) 2006  Free Software Foundation, Inc.
10153
8489
#
10154
8490
# This file is free software; the Free Software Foundation
10155
8491
# gives unlimited permission to copy and/or distribute it,
10156
8492
# with or without modifications, as long as this notice is preserved.
10157
8493
 
10158
 
# serial 2
10159
 
 
10160
8494
# _AM_SUBST_NOTMAKE(VARIABLE)
10161
8495
# ---------------------------
10162
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
8496
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
10163
8497
# This macro is traced by Automake.
10164
8498
AC_DEFUN([_AM_SUBST_NOTMAKE])
10165
8499
 
10166
 
# AM_SUBST_NOTMAKE(VARIABLE)
10167
 
# ---------------------------
10168
 
# Public sister of _AM_SUBST_NOTMAKE.
10169
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10170
 
 
10171
8500
# Check how to create a tarball.                            -*- Autoconf -*-
10172
8501
 
10173
8502
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.