~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1782
1782
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
1783
1783
])
1784
1784
 
1785
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1786
 
#
1787
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1788
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1789
 
#                 Foundation, Inc.
1790
 
#   Written by Gordon Matzigkeit, 1996
1791
 
#
1792
 
# This file is free software; the Free Software Foundation gives
1793
 
# unlimited permission to copy and/or distribute it, with or without
1794
 
# modifications, as long as this notice is preserved.
1795
 
 
1796
 
m4_define([_LT_COPYING], [dnl
1797
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1798
 
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1799
 
#                 Foundation, Inc.
1800
 
#   Written by Gordon Matzigkeit, 1996
1801
 
#
1802
 
#   This file is part of GNU Libtool.
1803
 
#
1804
 
# GNU Libtool is free software; you can redistribute it and/or
1805
 
# modify it under the terms of the GNU General Public License as
1806
 
# published by the Free Software Foundation; either version 2 of
1807
 
# the License, or (at your option) any later version.
1808
 
#
1809
 
# As a special exception to the GNU General Public License,
1810
 
# if you distribute this file as part of a program or library that
1811
 
# is built using GNU Libtool, you may include this file under the
1812
 
# same distribution terms that you use for the rest of that program.
1813
 
#
1814
 
# GNU Libtool is distributed in the hope that it will be useful,
1815
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1816
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1817
 
# GNU General Public License for more details.
1818
 
#
1819
 
# You should have received a copy of the GNU General Public License
1820
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
1821
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1822
 
# obtained by writing to the Free Software Foundation, Inc.,
1823
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1824
 
])
1825
 
 
1826
 
# serial 57 LT_INIT
1827
 
 
1828
 
 
1829
 
# LT_PREREQ(VERSION)
1830
 
# ------------------
1831
 
# Complain and exit if this libtool version is less that VERSION.
1832
 
m4_defun([LT_PREREQ],
1833
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1834
 
       [m4_default([$3],
1835
 
                   [m4_fatal([Libtool version $1 or higher is required],
1836
 
                             63)])],
1837
 
       [$2])])
1838
 
 
1839
 
 
1840
 
# _LT_CHECK_BUILDDIR
1841
 
# ------------------
1842
 
# Complain if the absolute build directory name contains unusual characters
1843
 
m4_defun([_LT_CHECK_BUILDDIR],
1844
 
[case `pwd` in
1845
 
  *\ * | *\     *)
1846
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1847
 
esac
1848
 
])
1849
 
 
1850
 
 
1851
 
# LT_INIT([OPTIONS])
1852
 
# ------------------
1853
 
AC_DEFUN([LT_INIT],
1854
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1855
 
AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1856
 
AC_BEFORE([$0], [LT_LANG])dnl
1857
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
1858
 
AC_BEFORE([$0], [LTDL_INIT])dnl
1859
 
m4_require([_LT_CHECK_BUILDDIR])dnl
1860
 
 
1861
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1862
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1863
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1864
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1865
 
dnl unless we require an AC_DEFUNed macro:
1866
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1867
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
1868
 
AC_REQUIRE([LTVERSION_VERSION])dnl
1869
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1870
 
m4_require([_LT_PROG_LTMAIN])dnl
1871
 
 
1872
 
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1873
 
 
1874
 
dnl Parse OPTIONS
1875
 
_LT_SET_OPTIONS([$0], [$1])
1876
 
 
1877
 
# This can be used to rebuild libtool when needed
1878
 
LIBTOOL_DEPS="$ltmain"
1879
 
 
1880
 
# Always use our own libtool.
1881
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1882
 
AC_SUBST(LIBTOOL)dnl
1883
 
 
1884
 
_LT_SETUP
1885
 
 
1886
 
# Only expand once:
1887
 
m4_define([LT_INIT])
1888
 
])# LT_INIT
1889
 
 
1890
 
# Old names:
1891
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1892
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1893
 
dnl aclocal-1.4 backwards compatibility:
1894
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1895
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1896
 
 
1897
 
 
1898
 
# _LT_CC_BASENAME(CC)
1899
 
# -------------------
1900
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1901
 
m4_defun([_LT_CC_BASENAME],
1902
 
[for cc_temp in $1""; do
1903
 
  case $cc_temp in
1904
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1905
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1906
 
    \-*) ;;
1907
 
    *) break;;
1908
 
  esac
1909
 
done
1910
 
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1911
 
])
1912
 
 
1913
 
 
1914
 
# _LT_FILEUTILS_DEFAULTS
1915
 
# ----------------------
1916
 
# It is okay to use these file commands and assume they have been set
1917
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1918
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
1919
 
[: ${CP="cp -f"}
1920
 
: ${MV="mv -f"}
1921
 
: ${RM="rm -f"}
1922
 
])# _LT_FILEUTILS_DEFAULTS
1923
 
 
1924
 
 
1925
 
# _LT_SETUP
1926
 
# ---------
1927
 
m4_defun([_LT_SETUP],
1928
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1929
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1930
 
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1931
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1932
 
 
1933
 
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
1934
 
dnl
1935
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
1936
 
_LT_DECL([], [host], [0])dnl
1937
 
_LT_DECL([], [host_os], [0])dnl
1938
 
dnl
1939
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
1940
 
_LT_DECL([], [build], [0])dnl
1941
 
_LT_DECL([], [build_os], [0])dnl
1942
 
dnl
1943
 
AC_REQUIRE([AC_PROG_CC])dnl
1944
 
AC_REQUIRE([LT_PATH_LD])dnl
1945
 
AC_REQUIRE([LT_PATH_NM])dnl
1946
 
dnl
1947
 
AC_REQUIRE([AC_PROG_LN_S])dnl
1948
 
test -z "$LN_S" && LN_S="ln -s"
1949
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1950
 
dnl
1951
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1952
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1953
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1954
 
dnl
1955
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1956
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1957
 
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1958
 
m4_require([_LT_CMD_RELOAD])dnl
1959
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1960
 
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1961
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1962
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1963
 
m4_require([_LT_WITH_SYSROOT])dnl
1964
 
 
1965
 
_LT_CONFIG_LIBTOOL_INIT([
1966
 
# See if we are running on zsh, and set the options which allow our
1967
 
# commands through without removal of \ escapes INIT.
1968
 
if test -n "\${ZSH_VERSION+set}" ; then
1969
 
   setopt NO_GLOB_SUBST
1970
 
fi
1971
 
])
1972
 
if test -n "${ZSH_VERSION+set}" ; then
1973
 
   setopt NO_GLOB_SUBST
1974
 
fi
1975
 
 
1976
 
_LT_CHECK_OBJDIR
1977
 
 
1978
 
m4_require([_LT_TAG_COMPILER])dnl
1979
 
 
1980
 
case $host_os in
1981
 
aix3*)
1982
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1983
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1984
 
  # vanish in a puff of smoke.
1985
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1986
 
    COLLECT_NAMES=
1987
 
    export COLLECT_NAMES
1988
 
  fi
1989
 
  ;;
1990
 
esac
1991
 
 
1992
 
# Global variables:
1993
 
ofile=libtool
1994
 
can_build_shared=yes
1995
 
 
1996
 
# All known linkers require a `.a' archive for static linking (except MSVC,
1997
 
# which needs '.lib').
1998
 
libext=a
1999
 
 
2000
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
2001
 
 
2002
 
old_CC="$CC"
2003
 
old_CFLAGS="$CFLAGS"
2004
 
 
2005
 
# Set sane defaults for various variables
2006
 
test -z "$CC" && CC=cc
2007
 
test -z "$LTCC" && LTCC=$CC
2008
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2009
 
test -z "$LD" && LD=ld
2010
 
test -z "$ac_objext" && ac_objext=o
2011
 
 
2012
 
_LT_CC_BASENAME([$compiler])
2013
 
 
2014
 
# Only perform the check for file, if the check method requires it
2015
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2016
 
case $deplibs_check_method in
2017
 
file_magic*)
2018
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2019
 
    _LT_PATH_MAGIC
2020
 
  fi
2021
 
  ;;
2022
 
esac
2023
 
 
2024
 
# Use C for the default configuration in the libtool script
2025
 
LT_SUPPORTED_TAG([CC])
2026
 
_LT_LANG_C_CONFIG
2027
 
_LT_LANG_DEFAULT_CONFIG
2028
 
_LT_CONFIG_COMMANDS
2029
 
])# _LT_SETUP
2030
 
 
2031
 
 
2032
 
# _LT_PREPARE_SED_QUOTE_VARS
2033
 
# --------------------------
2034
 
# Define a few sed substitution that help us do robust quoting.
2035
 
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
2036
 
[# Backslashify metacharacters that are still active within
2037
 
# double-quoted strings.
2038
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2039
 
 
2040
 
# Same as above, but do not quote variable references.
2041
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2042
 
 
2043
 
# Sed substitution to delay expansion of an escaped shell variable in a
2044
 
# double_quote_subst'ed string.
2045
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2046
 
 
2047
 
# Sed substitution to delay expansion of an escaped single quote.
2048
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2049
 
 
2050
 
# Sed substitution to avoid accidental globbing in evaled expressions
2051
 
no_glob_subst='s/\*/\\\*/g'
2052
 
])
2053
 
 
2054
 
# _LT_PROG_LTMAIN
2055
 
# ---------------
2056
 
# Note that this code is called both from `configure', and `config.status'
2057
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
2058
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
2059
 
# so we pass a copy along to make sure it has a sensible value anyway.
2060
 
m4_defun([_LT_PROG_LTMAIN],
2061
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2062
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2063
 
ltmain="$ac_aux_dir/ltmain.sh"
2064
 
])# _LT_PROG_LTMAIN
2065
 
 
2066
 
 
2067
 
 
2068
 
# So that we can recreate a full libtool script including additional
2069
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2070
 
# in macros and then make a single call at the end using the `libtool'
2071
 
# label.
2072
 
 
2073
 
 
2074
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2075
 
# ----------------------------------------
2076
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2077
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
2078
 
[m4_ifval([$1],
2079
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2080
 
                     [$1
2081
 
])])])
2082
 
 
2083
 
# Initialize.
2084
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2085
 
 
2086
 
 
2087
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
2088
 
# ------------------------------
2089
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2090
 
m4_define([_LT_CONFIG_LIBTOOL],
2091
 
[m4_ifval([$1],
2092
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2093
 
                     [$1
2094
 
])])])
2095
 
 
2096
 
# Initialize.
2097
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2098
 
 
2099
 
 
2100
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2101
 
# -----------------------------------------------------
2102
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2103
 
[_LT_CONFIG_LIBTOOL([$1])
2104
 
_LT_CONFIG_LIBTOOL_INIT([$2])
2105
 
])
2106
 
 
2107
 
 
2108
 
# _LT_FORMAT_COMMENT([COMMENT])
2109
 
# -----------------------------
2110
 
# Add leading comment marks to the start of each line, and a trailing
2111
 
# full-stop to the whole comment if one is not present already.
2112
 
m4_define([_LT_FORMAT_COMMENT],
2113
 
[m4_ifval([$1], [
2114
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2115
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2116
 
)])
2117
 
 
2118
 
 
2119
 
 
2120
 
 
2121
 
 
2122
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2123
 
# -------------------------------------------------------------------
2124
 
# CONFIGNAME is the name given to the value in the libtool script.
2125
 
# VARNAME is the (base) name used in the configure script.
2126
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2127
 
# VARNAME.  Any other value will be used directly.
2128
 
m4_define([_LT_DECL],
2129
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2130
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2131
 
        [m4_ifval([$1], [$1], [$2])])
2132
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2133
 
    m4_ifval([$4],
2134
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2135
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
2136
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
2137
 
])
2138
 
 
2139
 
 
2140
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2141
 
# --------------------------------------------------------
2142
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2143
 
 
2144
 
 
2145
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2146
 
# ------------------------------------------------
2147
 
m4_define([lt_decl_tag_varnames],
2148
 
[_lt_decl_filter([tagged?], [yes], $@)])
2149
 
 
2150
 
 
2151
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2152
 
# ---------------------------------------------------------
2153
 
m4_define([_lt_decl_filter],
2154
 
[m4_case([$#],
2155
 
  [0], [m4_fatal([$0: too few arguments: $#])],
2156
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
2157
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2158
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2159
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
2160
 
])
2161
 
 
2162
 
 
2163
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2164
 
# --------------------------------------------------
2165
 
m4_define([lt_decl_quote_varnames],
2166
 
[_lt_decl_filter([value], [1], $@)])
2167
 
 
2168
 
 
2169
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2170
 
# ---------------------------------------------------
2171
 
m4_define([lt_decl_dquote_varnames],
2172
 
[_lt_decl_filter([value], [2], $@)])
2173
 
 
2174
 
 
2175
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2176
 
# ---------------------------------------------------
2177
 
m4_define([lt_decl_varnames_tagged],
2178
 
[m4_assert([$# <= 2])dnl
2179
 
_$0(m4_quote(m4_default([$1], [[, ]])),
2180
 
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
2181
 
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
2182
 
m4_define([_lt_decl_varnames_tagged],
2183
 
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
2184
 
 
2185
 
 
2186
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2187
 
# ------------------------------------------------
2188
 
m4_define([lt_decl_all_varnames],
2189
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
2190
 
     m4_if([$2], [],
2191
 
           m4_quote(lt_decl_varnames),
2192
 
        m4_quote(m4_shift($@))))[]dnl
2193
 
])
2194
 
m4_define([_lt_decl_all_varnames],
2195
 
[lt_join($@, lt_decl_varnames_tagged([$1],
2196
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
2197
 
])
2198
 
 
2199
 
 
2200
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2201
 
# ------------------------------------
2202
 
# Quote a variable value, and forward it to `config.status' so that its
2203
 
# declaration there will have the same value as in `configure'.  VARNAME
2204
 
# must have a single quote delimited value for this to work.
2205
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
2206
 
[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
2207
 
 
2208
 
 
2209
 
# _LT_CONFIG_STATUS_DECLARATIONS
2210
 
# ------------------------------
2211
 
# We delimit libtool config variables with single quotes, so when
2212
 
# we write them to config.status, we have to be sure to quote all
2213
 
# embedded single quotes properly.  In configure, this macro expands
2214
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2215
 
#
2216
 
#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2217
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2218
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2219
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2220
 
 
2221
 
 
2222
 
# _LT_LIBTOOL_TAGS
2223
 
# ----------------
2224
 
# Output comment and list of tags supported by the script
2225
 
m4_defun([_LT_LIBTOOL_TAGS],
2226
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2227
 
available_tags="_LT_TAGS"dnl
2228
 
])
2229
 
 
2230
 
 
2231
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2232
 
# -----------------------------------
2233
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
2234
 
# expand to a commented shell variable setting:
2235
 
#
2236
 
#    # Some comment about what VAR is for.
2237
 
#    visible_name=$lt_internal_name
2238
 
m4_define([_LT_LIBTOOL_DECLARE],
2239
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2240
 
                                           [description])))[]dnl
2241
 
m4_pushdef([_libtool_name],
2242
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2243
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2244
 
    [0], [_libtool_name=[$]$1],
2245
 
    [1], [_libtool_name=$lt_[]$1],
2246
 
    [2], [_libtool_name=$lt_[]$1],
2247
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2248
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2249
 
])
2250
 
 
2251
 
 
2252
 
# _LT_LIBTOOL_CONFIG_VARS
2253
 
# -----------------------
2254
 
# Produce commented declarations of non-tagged libtool config variables
2255
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2256
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
2257
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
2258
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2259
 
[m4_foreach([_lt_var],
2260
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2261
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2262
 
 
2263
 
 
2264
 
# _LT_LIBTOOL_TAG_VARS(TAG)
2265
 
# -------------------------
2266
 
m4_define([_LT_LIBTOOL_TAG_VARS],
2267
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2268
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2269
 
 
2270
 
 
2271
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
2272
 
# ------------------------------
2273
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2274
 
 
2275
 
 
2276
 
# _LT_CONFIG_COMMANDS
2277
 
# -------------------
2278
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
2279
 
# variables for single and double quote escaping we saved from calls
2280
 
# to _LT_DECL, we can put quote escaped variables declarations
2281
 
# into `config.status', and then the shell code to quote escape them in
2282
 
# for loops in `config.status'.  Finally, any additional code accumulated
2283
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2284
 
m4_defun([_LT_CONFIG_COMMANDS],
2285
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
2286
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
2287
 
        dnl instead of duplicating it all over again into config.status,
2288
 
        dnl then we will have config.status run $CONFIG_LT later, so it
2289
 
        dnl needs to know what name is stored there:
2290
 
        [AC_CONFIG_COMMANDS([libtool],
2291
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2292
 
    dnl If the libtool generation code is destined for config.status,
2293
 
    dnl expand the accumulated commands and init code now:
2294
 
    [AC_CONFIG_COMMANDS([libtool],
2295
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2296
 
])#_LT_CONFIG_COMMANDS
2297
 
 
2298
 
 
2299
 
# Initialize.
2300
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2301
 
[
2302
 
 
2303
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
2304
 
# if CDPATH is set.
2305
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2306
 
 
2307
 
sed_quote_subst='$sed_quote_subst'
2308
 
double_quote_subst='$double_quote_subst'
2309
 
delay_variable_subst='$delay_variable_subst'
2310
 
_LT_CONFIG_STATUS_DECLARATIONS
2311
 
LTCC='$LTCC'
2312
 
LTCFLAGS='$LTCFLAGS'
2313
 
compiler='$compiler_DEFAULT'
2314
 
 
2315
 
# A function that is used when there is no print builtin or printf.
2316
 
func_fallback_echo ()
2317
 
{
2318
 
  eval 'cat <<_LTECHO_EOF
2319
 
\$[]1
2320
 
_LTECHO_EOF'
2321
 
}
2322
 
 
2323
 
# Quote evaled strings.
2324
 
for var in lt_decl_all_varnames([[ \
2325
 
]], lt_decl_quote_varnames); do
2326
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2327
 
    *[[\\\\\\\`\\"\\\$]]*)
2328
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
2329
 
      ;;
2330
 
    *)
2331
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2332
 
      ;;
2333
 
    esac
2334
 
done
2335
 
 
2336
 
# Double-quote double-evaled strings.
2337
 
for var in lt_decl_all_varnames([[ \
2338
 
]], lt_decl_dquote_varnames); do
2339
 
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2340
 
    *[[\\\\\\\`\\"\\\$]]*)
2341
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
2342
 
      ;;
2343
 
    *)
2344
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2345
 
      ;;
2346
 
    esac
2347
 
done
2348
 
 
2349
 
_LT_OUTPUT_LIBTOOL_INIT
2350
 
])
2351
 
 
2352
 
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2353
 
# ------------------------------------
2354
 
# Generate a child script FILE with all initialization necessary to
2355
 
# reuse the environment learned by the parent script, and make the
2356
 
# file executable.  If COMMENT is supplied, it is inserted after the
2357
 
# `#!' sequence but before initialization text begins.  After this
2358
 
# macro, additional text can be appended to FILE to form the body of
2359
 
# the child script.  The macro ends with non-zero status if the
2360
 
# file could not be fully written (such as if the disk is full).
2361
 
m4_ifdef([AS_INIT_GENERATED],
2362
 
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2363
 
[m4_defun([_LT_GENERATED_FILE_INIT],
2364
 
[m4_require([AS_PREPARE])]dnl
2365
 
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2366
 
[lt_write_fail=0
2367
 
cat >$1 <<_ASEOF || lt_write_fail=1
2368
 
#! $SHELL
2369
 
# Generated by $as_me.
2370
 
$2
2371
 
SHELL=\${CONFIG_SHELL-$SHELL}
2372
 
export SHELL
2373
 
_ASEOF
2374
 
cat >>$1 <<\_ASEOF || lt_write_fail=1
2375
 
AS_SHELL_SANITIZE
2376
 
_AS_PREPARE
2377
 
exec AS_MESSAGE_FD>&1
2378
 
_ASEOF
2379
 
test $lt_write_fail = 0 && chmod +x $1[]dnl
2380
 
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2381
 
 
2382
 
# LT_OUTPUT
2383
 
# ---------
2384
 
# This macro allows early generation of the libtool script (before
2385
 
# AC_OUTPUT is called), incase it is used in configure for compilation
2386
 
# tests.
2387
 
AC_DEFUN([LT_OUTPUT],
2388
 
[: ${CONFIG_LT=./config.lt}
2389
 
AC_MSG_NOTICE([creating $CONFIG_LT])
2390
 
_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
2391
 
[# Run this file to recreate a libtool stub with the current configuration.])
2392
 
 
2393
 
cat >>"$CONFIG_LT" <<\_LTEOF
2394
 
lt_cl_silent=false
2395
 
exec AS_MESSAGE_LOG_FD>>config.log
2396
 
{
2397
 
  echo
2398
 
  AS_BOX([Running $as_me.])
2399
 
} >&AS_MESSAGE_LOG_FD
2400
 
 
2401
 
lt_cl_help="\
2402
 
\`$as_me' creates a local libtool stub from the current configuration,
2403
 
for use in further configure time tests before the real libtool is
2404
 
generated.
2405
 
 
2406
 
Usage: $[0] [[OPTIONS]]
2407
 
 
2408
 
  -h, --help      print this help, then exit
2409
 
  -V, --version   print version number, then exit
2410
 
  -q, --quiet     do not print progress messages
2411
 
  -d, --debug     don't remove temporary files
2412
 
 
2413
 
Report bugs to <bug-libtool@gnu.org>."
2414
 
 
2415
 
lt_cl_version="\
2416
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2417
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2418
 
configured by $[0], generated by m4_PACKAGE_STRING.
2419
 
 
2420
 
Copyright (C) 2011 Free Software Foundation, Inc.
2421
 
This config.lt script is free software; the Free Software Foundation
2422
 
gives unlimited permision to copy, distribute and modify it."
2423
 
 
2424
 
while test $[#] != 0
2425
 
do
2426
 
  case $[1] in
2427
 
    --version | --v* | -V )
2428
 
      echo "$lt_cl_version"; exit 0 ;;
2429
 
    --help | --h* | -h )
2430
 
      echo "$lt_cl_help"; exit 0 ;;
2431
 
    --debug | --d* | -d )
2432
 
      debug=: ;;
2433
 
    --quiet | --q* | --silent | --s* | -q )
2434
 
      lt_cl_silent=: ;;
2435
 
 
2436
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
2437
 
Try \`$[0] --help' for more information.]) ;;
2438
 
 
2439
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
2440
 
Try \`$[0] --help' for more information.]) ;;
2441
 
  esac
2442
 
  shift
2443
 
done
2444
 
 
2445
 
if $lt_cl_silent; then
2446
 
  exec AS_MESSAGE_FD>/dev/null
2447
 
fi
2448
 
_LTEOF
2449
 
 
2450
 
cat >>"$CONFIG_LT" <<_LTEOF
2451
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2452
 
_LTEOF
2453
 
 
2454
 
cat >>"$CONFIG_LT" <<\_LTEOF
2455
 
AC_MSG_NOTICE([creating $ofile])
2456
 
_LT_OUTPUT_LIBTOOL_COMMANDS
2457
 
AS_EXIT(0)
2458
 
_LTEOF
2459
 
chmod +x "$CONFIG_LT"
2460
 
 
2461
 
# configure is writing to config.log, but config.lt does its own redirection,
2462
 
# appending to config.log, which fails on DOS, as config.log is still kept
2463
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
2464
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
2465
 
lt_cl_success=:
2466
 
test "$silent" = yes &&
2467
 
  lt_config_lt_args="$lt_config_lt_args --quiet"
2468
 
exec AS_MESSAGE_LOG_FD>/dev/null
2469
 
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2470
 
exec AS_MESSAGE_LOG_FD>>config.log
2471
 
$lt_cl_success || AS_EXIT(1)
2472
 
])# LT_OUTPUT
2473
 
 
2474
 
 
2475
 
# _LT_CONFIG(TAG)
2476
 
# ---------------
2477
 
# If TAG is the built-in tag, create an initial libtool script with a
2478
 
# default configuration from the untagged config vars.  Otherwise add code
2479
 
# to config.status for appending the configuration named by TAG from the
2480
 
# matching tagged config vars.
2481
 
m4_defun([_LT_CONFIG],
2482
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2483
 
_LT_CONFIG_SAVE_COMMANDS([
2484
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2485
 
  m4_if(_LT_TAG, [C], [
2486
 
    # See if we are running on zsh, and set the options which allow our
2487
 
    # commands through without removal of \ escapes.
2488
 
    if test -n "${ZSH_VERSION+set}" ; then
2489
 
      setopt NO_GLOB_SUBST
2490
 
    fi
2491
 
 
2492
 
    cfgfile="${ofile}T"
2493
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2494
 
    $RM "$cfgfile"
2495
 
 
2496
 
    cat <<_LT_EOF >> "$cfgfile"
2497
 
#! $SHELL
2498
 
 
2499
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
2500
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
2501
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2502
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
2503
 
#
2504
 
_LT_COPYING
2505
 
_LT_LIBTOOL_TAGS
2506
 
 
2507
 
# ### BEGIN LIBTOOL CONFIG
2508
 
_LT_LIBTOOL_CONFIG_VARS
2509
 
_LT_LIBTOOL_TAG_VARS
2510
 
# ### END LIBTOOL CONFIG
2511
 
 
2512
 
_LT_EOF
2513
 
 
2514
 
  case $host_os in
2515
 
  aix3*)
2516
 
    cat <<\_LT_EOF >> "$cfgfile"
2517
 
# AIX sometimes has problems with the GCC collect2 program.  For some
2518
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
2519
 
# vanish in a puff of smoke.
2520
 
if test "X${COLLECT_NAMES+set}" != Xset; then
2521
 
  COLLECT_NAMES=
2522
 
  export COLLECT_NAMES
2523
 
fi
2524
 
_LT_EOF
2525
 
    ;;
2526
 
  esac
2527
 
 
2528
 
  _LT_PROG_LTMAIN
2529
 
 
2530
 
  # We use sed instead of cat because bash on DJGPP gets confused if
2531
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
2532
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
2533
 
  # is reportedly fixed, but why not run on old versions too?
2534
 
  sed '$q' "$ltmain" >> "$cfgfile" \
2535
 
     || (rm -f "$cfgfile"; exit 1)
2536
 
 
2537
 
  _LT_PROG_REPLACE_SHELLFNS
2538
 
 
2539
 
   mv -f "$cfgfile" "$ofile" ||
2540
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2541
 
  chmod +x "$ofile"
2542
 
],
2543
 
[cat <<_LT_EOF >> "$ofile"
2544
 
 
2545
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2546
 
dnl in a comment (ie after a #).
2547
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
2548
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
2549
 
# ### END LIBTOOL TAG CONFIG: $1
2550
 
_LT_EOF
2551
 
])dnl /m4_if
2552
 
],
2553
 
[m4_if([$1], [], [
2554
 
    PACKAGE='$PACKAGE'
2555
 
    VERSION='$VERSION'
2556
 
    TIMESTAMP='$TIMESTAMP'
2557
 
    RM='$RM'
2558
 
    ofile='$ofile'], [])
2559
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
2560
 
])# _LT_CONFIG
2561
 
 
2562
 
 
2563
 
# LT_SUPPORTED_TAG(TAG)
2564
 
# ---------------------
2565
 
# Trace this macro to discover what tags are supported by the libtool
2566
 
# --tag option, using:
2567
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
2568
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
2569
 
 
2570
 
 
2571
 
# C support is built-in for now
2572
 
m4_define([_LT_LANG_C_enabled], [])
2573
 
m4_define([_LT_TAGS], [])
2574
 
 
2575
 
 
2576
 
# LT_LANG(LANG)
2577
 
# -------------
2578
 
# Enable libtool support for the given language if not already enabled.
2579
 
AC_DEFUN([LT_LANG],
2580
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
2581
 
m4_case([$1],
2582
 
  [C],                  [_LT_LANG(C)],
2583
 
  [C++],                [_LT_LANG(CXX)],
2584
 
  [Go],                 [_LT_LANG(GO)],
2585
 
  [Java],               [_LT_LANG(GCJ)],
2586
 
  [Fortran 77],         [_LT_LANG(F77)],
2587
 
  [Fortran],            [_LT_LANG(FC)],
2588
 
  [Windows Resource],   [_LT_LANG(RC)],
2589
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
2590
 
    [_LT_LANG($1)],
2591
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
2592
 
])# LT_LANG
2593
 
 
2594
 
 
2595
 
# _LT_LANG(LANGNAME)
2596
 
# ------------------
2597
 
m4_defun([_LT_LANG],
2598
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
2599
 
  [LT_SUPPORTED_TAG([$1])dnl
2600
 
  m4_append([_LT_TAGS], [$1 ])dnl
2601
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
2602
 
  _LT_LANG_$1_CONFIG($1)])dnl
2603
 
])# _LT_LANG
2604
 
 
2605
 
 
2606
 
m4_ifndef([AC_PROG_GO], [
2607
 
# NOTE: This macro has been submitted for inclusion into   #
2608
 
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
2609
 
#  a released version of Autoconf we should remove this    #
2610
 
#  macro and use it instead.                               #
2611
 
m4_defun([AC_PROG_GO],
2612
 
[AC_LANG_PUSH(Go)dnl
2613
 
AC_ARG_VAR([GOC],     [Go compiler command])dnl
2614
 
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2615
 
_AC_ARG_VAR_LDFLAGS()dnl
2616
 
AC_CHECK_TOOL(GOC, gccgo)
2617
 
if test -z "$GOC"; then
2618
 
  if test -n "$ac_tool_prefix"; then
2619
 
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2620
 
  fi
2621
 
fi
2622
 
if test -z "$GOC"; then
2623
 
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2624
 
fi
2625
 
])#m4_defun
2626
 
])#m4_ifndef
2627
 
 
2628
 
 
2629
 
# _LT_LANG_DEFAULT_CONFIG
2630
 
# -----------------------
2631
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2632
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
2633
 
  [LT_LANG(CXX)],
2634
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2635
 
 
2636
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
2637
 
  [LT_LANG(F77)],
2638
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2639
 
 
2640
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
2641
 
  [LT_LANG(FC)],
2642
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2643
 
 
2644
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2645
 
dnl pulling things in needlessly.
2646
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2647
 
  [LT_LANG(GCJ)],
2648
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2649
 
    [LT_LANG(GCJ)],
2650
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2651
 
      [LT_LANG(GCJ)],
2652
 
      [m4_ifdef([AC_PROG_GCJ],
2653
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2654
 
       m4_ifdef([A][M_PROG_GCJ],
2655
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2656
 
       m4_ifdef([LT_PROG_GCJ],
2657
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2658
 
 
2659
 
AC_PROVIDE_IFELSE([AC_PROG_GO],
2660
 
  [LT_LANG(GO)],
2661
 
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2662
 
 
2663
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
2664
 
  [LT_LANG(RC)],
2665
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2666
 
])# _LT_LANG_DEFAULT_CONFIG
2667
 
 
2668
 
# Obsolete macros:
2669
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2670
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2671
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2672
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2673
 
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2674
 
dnl aclocal-1.4 backwards compatibility:
2675
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2676
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2677
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2678
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2679
 
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2680
 
 
2681
 
 
2682
 
# _LT_TAG_COMPILER
2683
 
# ----------------
2684
 
m4_defun([_LT_TAG_COMPILER],
2685
 
[AC_REQUIRE([AC_PROG_CC])dnl
2686
 
 
2687
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2688
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2689
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2690
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2691
 
 
2692
 
# If no C compiler was specified, use CC.
2693
 
LTCC=${LTCC-"$CC"}
2694
 
 
2695
 
# If no C compiler flags were specified, use CFLAGS.
2696
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2697
 
 
2698
 
# Allow CC to be a program name with arguments.
2699
 
compiler=$CC
2700
 
])# _LT_TAG_COMPILER
2701
 
 
2702
 
 
2703
 
# _LT_COMPILER_BOILERPLATE
2704
 
# ------------------------
2705
 
# Check for compiler boilerplate output or warnings with
2706
 
# the simple compiler test code.
2707
 
m4_defun([_LT_COMPILER_BOILERPLATE],
2708
 
[m4_require([_LT_DECL_SED])dnl
2709
 
ac_outfile=conftest.$ac_objext
2710
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2711
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2712
 
_lt_compiler_boilerplate=`cat conftest.err`
2713
 
$RM conftest*
2714
 
])# _LT_COMPILER_BOILERPLATE
2715
 
 
2716
 
 
2717
 
# _LT_LINKER_BOILERPLATE
2718
 
# ----------------------
2719
 
# Check for linker boilerplate output or warnings with
2720
 
# the simple link test code.
2721
 
m4_defun([_LT_LINKER_BOILERPLATE],
2722
 
[m4_require([_LT_DECL_SED])dnl
2723
 
ac_outfile=conftest.$ac_objext
2724
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
2725
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2726
 
_lt_linker_boilerplate=`cat conftest.err`
2727
 
$RM -r conftest*
2728
 
])# _LT_LINKER_BOILERPLATE
2729
 
 
2730
 
# _LT_REQUIRED_DARWIN_CHECKS
2731
 
# -------------------------
2732
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2733
 
  case $host_os in
2734
 
    rhapsody* | darwin*)
2735
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2736
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2737
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
2738
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
2739
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
2740
 
    _LT_DECL([], [DSYMUTIL], [1],
2741
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
2742
 
    _LT_DECL([], [NMEDIT], [1],
2743
 
      [Tool to change global to local symbols on Mac OS X])
2744
 
    _LT_DECL([], [LIPO], [1],
2745
 
      [Tool to manipulate fat objects and archives on Mac OS X])
2746
 
    _LT_DECL([], [OTOOL], [1],
2747
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
2748
 
    _LT_DECL([], [OTOOL64], [1],
2749
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2750
 
 
2751
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2752
 
      [lt_cv_apple_cc_single_mod=no
2753
 
      if test -z "${LT_MULTI_MODULE}"; then
2754
 
        # By default we will add the -single_module flag. You can override
2755
 
        # by either setting the environment variable LT_MULTI_MODULE
2756
 
        # non-empty at configure time, or by adding -multi_module to the
2757
 
        # link flags.
2758
 
        rm -rf libconftest.dylib*
2759
 
        echo "int foo(void){return 1;}" > conftest.c
2760
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2761
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
2762
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2763
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2764
 
        _lt_result=$?
2765
 
        # If there is a non-empty error log, and "single_module"
2766
 
        # appears in it, assume the flag caused a linker warning
2767
 
        if test -s conftest.err && $GREP single_module conftest.err; then
2768
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
2769
 
        # Otherwise, if the output was created with a 0 exit code from
2770
 
        # the compiler, it worked.
2771
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2772
 
          lt_cv_apple_cc_single_mod=yes
2773
 
        else
2774
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
2775
 
        fi
2776
 
        rm -rf libconftest.dylib*
2777
 
        rm -f conftest.*
2778
 
      fi])
2779
 
 
2780
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2781
 
      [lt_cv_ld_exported_symbols_list],
2782
 
      [lt_cv_ld_exported_symbols_list=no
2783
 
      save_LDFLAGS=$LDFLAGS
2784
 
      echo "_main" > conftest.sym
2785
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2786
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2787
 
        [lt_cv_ld_exported_symbols_list=yes],
2788
 
        [lt_cv_ld_exported_symbols_list=no])
2789
 
        LDFLAGS="$save_LDFLAGS"
2790
 
    ])
2791
 
 
2792
 
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2793
 
      [lt_cv_ld_force_load=no
2794
 
      cat > conftest.c << _LT_EOF
2795
 
int forced_loaded() { return 2;}
2796
 
_LT_EOF
2797
 
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2798
 
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2799
 
      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2800
 
      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2801
 
      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2802
 
      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2803
 
      cat > conftest.c << _LT_EOF
2804
 
int main() { return 0;}
2805
 
_LT_EOF
2806
 
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2807
 
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2808
 
      _lt_result=$?
2809
 
      if test -s conftest.err && $GREP force_load conftest.err; then
2810
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2811
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2812
 
        lt_cv_ld_force_load=yes
2813
 
      else
2814
 
        cat conftest.err >&AS_MESSAGE_LOG_FD
2815
 
      fi
2816
 
        rm -f conftest.err libconftest.a conftest conftest.c
2817
 
        rm -rf conftest.dSYM
2818
 
    ])
2819
 
    case $host_os in
2820
 
    rhapsody* | darwin1.[[012]])
2821
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2822
 
    darwin1.*)
2823
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2824
 
    darwin*) # darwin 5.x on
2825
 
      # if running on 10.5 or later, the deployment target defaults
2826
 
      # to the OS version, if on x86, and 10.4, the deployment
2827
 
      # target defaults to 10.4. Don't you love it?
2828
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2829
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2830
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2831
 
        10.[[012]]*)
2832
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2833
 
        10.*)
2834
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2835
 
      esac
2836
 
    ;;
2837
 
  esac
2838
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2839
 
      _lt_dar_single_mod='$single_module'
2840
 
    fi
2841
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2842
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2843
 
    else
2844
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2845
 
    fi
2846
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2847
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
2848
 
    else
2849
 
      _lt_dsymutil=
2850
 
    fi
2851
 
    ;;
2852
 
  esac
2853
 
])
2854
 
 
2855
 
 
2856
 
# _LT_DARWIN_LINKER_FEATURES([TAG])
2857
 
# ---------------------------------
2858
 
# Checks for linker and compiler features on darwin
2859
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2860
 
[
2861
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2862
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2863
 
  _LT_TAGVAR(hardcode_direct, $1)=no
2864
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
2865
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2866
 
  if test "$lt_cv_ld_force_load" = "yes"; then
2867
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2868
 
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
2869
 
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2870
 
  else
2871
 
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2872
 
  fi
2873
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
2874
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2875
 
  case $cc_basename in
2876
 
     ifort*) _lt_dar_can_shared=yes ;;
2877
 
     *) _lt_dar_can_shared=$GCC ;;
2878
 
  esac
2879
 
  if test "$_lt_dar_can_shared" = "yes"; then
2880
 
    output_verbose_link_cmd=func_echo_all
2881
 
    _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}"
2882
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2883
 
    _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}"
2884
 
    _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}"
2885
 
    m4_if([$1], [CXX],
2886
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2887
 
      _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}"
2888
 
      _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}"
2889
 
    fi
2890
 
],[])
2891
 
  else
2892
 
  _LT_TAGVAR(ld_shlibs, $1)=no
2893
 
  fi
2894
 
])
2895
 
 
2896
 
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2897
 
# ----------------------------------
2898
 
# Links a minimal program and checks the executable
2899
 
# for the system default hardcoded library path. In most cases,
2900
 
# this is /usr/lib:/lib, but when the MPI compilers are used
2901
 
# the location of the communication and MPI libs are included too.
2902
 
# If we don't find anything, use the default library path according
2903
 
# to the aix ld manual.
2904
 
# Store the results from the different compilers for each TAGNAME.
2905
 
# Allow to override them for all tags through lt_cv_aix_libpath.
2906
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2907
 
[m4_require([_LT_DECL_SED])dnl
2908
 
if test "${lt_cv_aix_libpath+set}" = set; then
2909
 
  aix_libpath=$lt_cv_aix_libpath
2910
 
else
2911
 
  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2912
 
  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2913
 
  lt_aix_libpath_sed='[
2914
 
      /Import File Strings/,/^$/ {
2915
 
          /^0/ {
2916
 
              s/^0  *\([^ ]*\) *$/\1/
2917
 
              p
2918
 
          }
2919
 
      }]'
2920
 
  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2921
 
  # Check for a 64-bit object if we didn't find anything.
2922
 
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2923
 
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2924
 
  fi],[])
2925
 
  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2926
 
    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2927
 
  fi
2928
 
  ])
2929
 
  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2930
 
fi
2931
 
])# _LT_SYS_MODULE_PATH_AIX
2932
 
 
2933
 
 
2934
 
# _LT_SHELL_INIT(ARG)
2935
 
# -------------------
2936
 
m4_define([_LT_SHELL_INIT],
2937
 
[m4_divert_text([M4SH-INIT], [$1
2938
 
])])# _LT_SHELL_INIT
2939
 
 
2940
 
 
2941
 
 
2942
 
# _LT_PROG_ECHO_BACKSLASH
2943
 
# -----------------------
2944
 
# Find how we can fake an echo command that does not interpret backslash.
2945
 
# In particular, with Autoconf 2.60 or later we add some code to the start
2946
 
# of the generated configure script which will find a shell with a builtin
2947
 
# printf (which we can use as an echo command).
2948
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2949
 
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2950
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2951
 
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2952
 
 
2953
 
AC_MSG_CHECKING([how to print strings])
2954
 
# Test print first, because it will be a builtin if present.
2955
 
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2956
 
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2957
 
  ECHO='print -r --'
2958
 
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2959
 
  ECHO='printf %s\n'
2960
 
else
2961
 
  # Use this function as a fallback that always works.
2962
 
  func_fallback_echo ()
2963
 
  {
2964
 
    eval 'cat <<_LTECHO_EOF
2965
 
$[]1
2966
 
_LTECHO_EOF'
2967
 
  }
2968
 
  ECHO='func_fallback_echo'
2969
 
fi
2970
 
 
2971
 
# func_echo_all arg...
2972
 
# Invoke $ECHO with all args, space-separated.
2973
 
func_echo_all ()
2974
 
{
2975
 
    $ECHO "$*" 
2976
 
}
2977
 
 
2978
 
case "$ECHO" in
2979
 
  printf*) AC_MSG_RESULT([printf]) ;;
2980
 
  print*) AC_MSG_RESULT([print -r]) ;;
2981
 
  *) AC_MSG_RESULT([cat]) ;;
2982
 
esac
2983
 
 
2984
 
m4_ifdef([_AS_DETECT_SUGGESTED],
2985
 
[_AS_DETECT_SUGGESTED([
2986
 
  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2987
 
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2988
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2989
 
    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2990
 
    PATH=/empty FPATH=/empty; export PATH FPATH
2991
 
    test "X`printf %s $ECHO`" = "X$ECHO" \
2992
 
      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2993
 
 
2994
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2995
 
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2996
 
])# _LT_PROG_ECHO_BACKSLASH
2997
 
 
2998
 
 
2999
 
# _LT_WITH_SYSROOT
3000
 
# ----------------
3001
 
AC_DEFUN([_LT_WITH_SYSROOT],
3002
 
[AC_MSG_CHECKING([for sysroot])
3003
 
AC_ARG_WITH([sysroot],
3004
 
[  --with-sysroot[=DIR] Search for dependent libraries within DIR
3005
 
                        (or the compiler's sysroot if not specified).],
3006
 
[], [with_sysroot=no])
3007
 
 
3008
 
dnl lt_sysroot will always be passed unquoted.  We quote it here
3009
 
dnl in case the user passed a directory name.
3010
 
lt_sysroot=
3011
 
case ${with_sysroot} in #(
3012
 
 yes)
3013
 
   if test "$GCC" = yes; then
3014
 
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
3015
 
   fi
3016
 
   ;; #(
3017
 
 /*)
3018
 
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
3019
 
   ;; #(
3020
 
 no|'')
3021
 
   ;; #(
3022
 
 *)
3023
 
   AC_MSG_RESULT([${with_sysroot}])
3024
 
   AC_MSG_ERROR([The sysroot must be an absolute path.])
3025
 
   ;;
3026
 
esac
3027
 
 
3028
 
 AC_MSG_RESULT([${lt_sysroot:-no}])
3029
 
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
3030
 
[dependent libraries, and in which our libraries should be installed.])])
3031
 
 
3032
 
# _LT_ENABLE_LOCK
3033
 
# ---------------
3034
 
m4_defun([_LT_ENABLE_LOCK],
3035
 
[AC_ARG_ENABLE([libtool-lock],
3036
 
  [AS_HELP_STRING([--disable-libtool-lock],
3037
 
    [avoid locking (might break parallel builds)])])
3038
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3039
 
 
3040
 
# Some flags need to be propagated to the compiler or linker for good
3041
 
# libtool support.
3042
 
case $host in
3043
 
ia64-*-hpux*)
3044
 
  # Find out which ABI we are using.
3045
 
  echo 'int i;' > conftest.$ac_ext
3046
 
  if AC_TRY_EVAL(ac_compile); then
3047
 
    case `/usr/bin/file conftest.$ac_objext` in
3048
 
      *ELF-32*)
3049
 
        HPUX_IA64_MODE="32"
3050
 
        ;;
3051
 
      *ELF-64*)
3052
 
        HPUX_IA64_MODE="64"
3053
 
        ;;
3054
 
    esac
3055
 
  fi
3056
 
  rm -rf conftest*
3057
 
  ;;
3058
 
*-*-irix6*)
3059
 
  # Find out which ABI we are using.
3060
 
  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3061
 
  if AC_TRY_EVAL(ac_compile); then
3062
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
3063
 
      case `/usr/bin/file conftest.$ac_objext` in
3064
 
        *32-bit*)
3065
 
          LD="${LD-ld} -melf32bsmip"
3066
 
          ;;
3067
 
        *N32*)
3068
 
          LD="${LD-ld} -melf32bmipn32"
3069
 
          ;;
3070
 
        *64-bit*)
3071
 
          LD="${LD-ld} -melf64bmip"
3072
 
        ;;
3073
 
      esac
3074
 
    else
3075
 
      case `/usr/bin/file conftest.$ac_objext` in
3076
 
        *32-bit*)
3077
 
          LD="${LD-ld} -32"
3078
 
          ;;
3079
 
        *N32*)
3080
 
          LD="${LD-ld} -n32"
3081
 
          ;;
3082
 
        *64-bit*)
3083
 
          LD="${LD-ld} -64"
3084
 
          ;;
3085
 
      esac
3086
 
    fi
3087
 
  fi
3088
 
  rm -rf conftest*
3089
 
  ;;
3090
 
 
3091
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3092
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3093
 
  # Find out which ABI we are using.
3094
 
  echo 'int i;' > conftest.$ac_ext
3095
 
  if AC_TRY_EVAL(ac_compile); then
3096
 
    case `/usr/bin/file conftest.o` in
3097
 
      *32-bit*)
3098
 
        case $host in
3099
 
          x86_64-*kfreebsd*-gnu)
3100
 
            LD="${LD-ld} -m elf_i386_fbsd"
3101
 
            ;;
3102
 
          x86_64-*linux*)
3103
 
            case `/usr/bin/file conftest.o` in
3104
 
              *x86-64*)
3105
 
                LD="${LD-ld} -m elf32_x86_64"
3106
 
                ;;
3107
 
              *)
3108
 
                LD="${LD-ld} -m elf_i386"
3109
 
                ;;
3110
 
            esac
3111
 
            ;;
3112
 
          ppc64-*linux*|powerpc64-*linux*)
3113
 
            LD="${LD-ld} -m elf32ppclinux"
3114
 
            ;;
3115
 
          s390x-*linux*)
3116
 
            LD="${LD-ld} -m elf_s390"
3117
 
            ;;
3118
 
          sparc64-*linux*)
3119
 
            LD="${LD-ld} -m elf32_sparc"
3120
 
            ;;
3121
 
        esac
3122
 
        ;;
3123
 
      *64-bit*)
3124
 
        case $host in
3125
 
          x86_64-*kfreebsd*-gnu)
3126
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
3127
 
            ;;
3128
 
          x86_64-*linux*)
3129
 
            LD="${LD-ld} -m elf_x86_64"
3130
 
            ;;
3131
 
          ppc*-*linux*|powerpc*-*linux*)
3132
 
            LD="${LD-ld} -m elf64ppc"
3133
 
            ;;
3134
 
          s390*-*linux*|s390*-*tpf*)
3135
 
            LD="${LD-ld} -m elf64_s390"
3136
 
            ;;
3137
 
          sparc*-*linux*)
3138
 
            LD="${LD-ld} -m elf64_sparc"
3139
 
            ;;
3140
 
        esac
3141
 
        ;;
3142
 
    esac
3143
 
  fi
3144
 
  rm -rf conftest*
3145
 
  ;;
3146
 
 
3147
 
*-*-sco3.2v5*)
3148
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3149
 
  SAVE_CFLAGS="$CFLAGS"
3150
 
  CFLAGS="$CFLAGS -belf"
3151
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3152
 
    [AC_LANG_PUSH(C)
3153
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3154
 
     AC_LANG_POP])
3155
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3156
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3157
 
    CFLAGS="$SAVE_CFLAGS"
3158
 
  fi
3159
 
  ;;
3160
 
*-*solaris*)
3161
 
  # Find out which ABI we are using.
3162
 
  echo 'int i;' > conftest.$ac_ext
3163
 
  if AC_TRY_EVAL(ac_compile); then
3164
 
    case `/usr/bin/file conftest.o` in
3165
 
    *64-bit*)
3166
 
      case $lt_cv_prog_gnu_ld in
3167
 
      yes*)
3168
 
        case $host in
3169
 
        i?86-*-solaris*)
3170
 
          LD="${LD-ld} -m elf_x86_64"
3171
 
          ;;
3172
 
        sparc*-*-solaris*)
3173
 
          LD="${LD-ld} -m elf64_sparc"
3174
 
          ;;
3175
 
        esac
3176
 
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
3177
 
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
3178
 
          LD="${LD-ld}_sol2"
3179
 
        fi
3180
 
        ;;
3181
 
      *)
3182
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3183
 
          LD="${LD-ld} -64"
3184
 
        fi
3185
 
        ;;
3186
 
      esac
3187
 
      ;;
3188
 
    esac
3189
 
  fi
3190
 
  rm -rf conftest*
3191
 
  ;;
3192
 
esac
3193
 
 
3194
 
need_locks="$enable_libtool_lock"
3195
 
])# _LT_ENABLE_LOCK
3196
 
 
3197
 
 
3198
 
# _LT_PROG_AR
3199
 
# -----------
3200
 
m4_defun([_LT_PROG_AR],
3201
 
[AC_CHECK_TOOLS(AR, [ar], false)
3202
 
: ${AR=ar}
3203
 
: ${AR_FLAGS=cru}
3204
 
_LT_DECL([], [AR], [1], [The archiver])
3205
 
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
3206
 
 
3207
 
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
3208
 
  [lt_cv_ar_at_file=no
3209
 
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
3210
 
     [echo conftest.$ac_objext > conftest.lst
3211
 
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
3212
 
      AC_TRY_EVAL([lt_ar_try])
3213
 
      if test "$ac_status" -eq 0; then
3214
 
        # Ensure the archiver fails upon bogus file names.
3215
 
        rm -f conftest.$ac_objext libconftest.a
3216
 
        AC_TRY_EVAL([lt_ar_try])
3217
 
        if test "$ac_status" -ne 0; then
3218
 
          lt_cv_ar_at_file=@
3219
 
        fi
3220
 
      fi
3221
 
      rm -f conftest.* libconftest.a
3222
 
     ])
3223
 
  ])
3224
 
 
3225
 
if test "x$lt_cv_ar_at_file" = xno; then
3226
 
  archiver_list_spec=
3227
 
else
3228
 
  archiver_list_spec=$lt_cv_ar_at_file
3229
 
fi
3230
 
_LT_DECL([], [archiver_list_spec], [1],
3231
 
  [How to feed a file listing to the archiver])
3232
 
])# _LT_PROG_AR
3233
 
 
3234
 
 
3235
 
# _LT_CMD_OLD_ARCHIVE
3236
 
# -------------------
3237
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
3238
 
[_LT_PROG_AR
3239
 
 
3240
 
AC_CHECK_TOOL(STRIP, strip, :)
3241
 
test -z "$STRIP" && STRIP=:
3242
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
3243
 
 
3244
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
3245
 
test -z "$RANLIB" && RANLIB=:
3246
 
_LT_DECL([], [RANLIB], [1],
3247
 
    [Commands used to install an old-style archive])
3248
 
 
3249
 
# Determine commands to create old-style static archives.
3250
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3251
 
old_postinstall_cmds='chmod 644 $oldlib'
3252
 
old_postuninstall_cmds=
3253
 
 
3254
 
if test -n "$RANLIB"; then
3255
 
  case $host_os in
3256
 
  openbsd*)
3257
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
3258
 
    ;;
3259
 
  *)
3260
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
3261
 
    ;;
3262
 
  esac
3263
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
3264
 
fi
3265
 
 
3266
 
case $host_os in
3267
 
  darwin*)
3268
 
    lock_old_archive_extraction=yes ;;
3269
 
  *)
3270
 
    lock_old_archive_extraction=no ;;
3271
 
esac
3272
 
_LT_DECL([], [old_postinstall_cmds], [2])
3273
 
_LT_DECL([], [old_postuninstall_cmds], [2])
3274
 
_LT_TAGDECL([], [old_archive_cmds], [2],
3275
 
    [Commands used to build an old-style archive])
3276
 
_LT_DECL([], [lock_old_archive_extraction], [0],
3277
 
    [Whether to use a lock for old archive extraction])
3278
 
])# _LT_CMD_OLD_ARCHIVE
3279
 
 
3280
 
 
3281
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3282
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3283
 
# ----------------------------------------------------------------
3284
 
# Check whether the given compiler option works
3285
 
AC_DEFUN([_LT_COMPILER_OPTION],
3286
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3287
 
m4_require([_LT_DECL_SED])dnl
3288
 
AC_CACHE_CHECK([$1], [$2],
3289
 
  [$2=no
3290
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3291
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3292
 
   lt_compiler_flag="$3"
3293
 
   # Insert the option either (1) after the last *FLAGS variable, or
3294
 
   # (2) before a word containing "conftest.", or (3) at the end.
3295
 
   # Note that $ac_compile itself does not contain backslashes and begins
3296
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
3297
 
   # The option is referenced via a variable to avoid confusing sed.
3298
 
   lt_compile=`echo "$ac_compile" | $SED \
3299
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3300
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3301
 
   -e 's:$: $lt_compiler_flag:'`
3302
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3303
 
   (eval "$lt_compile" 2>conftest.err)
3304
 
   ac_status=$?
3305
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
3306
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3307
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
3308
 
     # The compiler can only warn and ignore the option if not recognized
3309
 
     # So say no if there are warnings other than the usual output.
3310
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
3311
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3312
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3313
 
       $2=yes
3314
 
     fi
3315
 
   fi
3316
 
   $RM conftest*
3317
 
])
3318
 
 
3319
 
if test x"[$]$2" = xyes; then
3320
 
    m4_if([$5], , :, [$5])
3321
 
else
3322
 
    m4_if([$6], , :, [$6])
3323
 
fi
3324
 
])# _LT_COMPILER_OPTION
3325
 
 
3326
 
# Old name:
3327
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
3328
 
dnl aclocal-1.4 backwards compatibility:
3329
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
3330
 
 
3331
 
 
3332
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3333
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
3334
 
# ----------------------------------------------------
3335
 
# Check whether the given linker option works
3336
 
AC_DEFUN([_LT_LINKER_OPTION],
3337
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3338
 
m4_require([_LT_DECL_SED])dnl
3339
 
AC_CACHE_CHECK([$1], [$2],
3340
 
  [$2=no
3341
 
   save_LDFLAGS="$LDFLAGS"
3342
 
   LDFLAGS="$LDFLAGS $3"
3343
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
3344
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3345
 
     # The linker can only warn and ignore the option if not recognized
3346
 
     # So say no if there are warnings
3347
 
     if test -s conftest.err; then
3348
 
       # Append any errors to the config.log.
3349
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
3350
 
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
3351
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3352
 
       if diff conftest.exp conftest.er2 >/dev/null; then
3353
 
         $2=yes
3354
 
       fi
3355
 
     else
3356
 
       $2=yes
3357
 
     fi
3358
 
   fi
3359
 
   $RM -r conftest*
3360
 
   LDFLAGS="$save_LDFLAGS"
3361
 
])
3362
 
 
3363
 
if test x"[$]$2" = xyes; then
3364
 
    m4_if([$4], , :, [$4])
3365
 
else
3366
 
    m4_if([$5], , :, [$5])
3367
 
fi
3368
 
])# _LT_LINKER_OPTION
3369
 
 
3370
 
# Old name:
3371
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3372
 
dnl aclocal-1.4 backwards compatibility:
3373
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3374
 
 
3375
 
 
3376
 
# LT_CMD_MAX_LEN
3377
 
#---------------
3378
 
AC_DEFUN([LT_CMD_MAX_LEN],
3379
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3380
 
# find the maximum length of command line arguments
3381
 
AC_MSG_CHECKING([the maximum length of command line arguments])
3382
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3383
 
  i=0
3384
 
  teststring="ABCD"
3385
 
 
3386
 
  case $build_os in
3387
 
  msdosdjgpp*)
3388
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3389
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3390
 
    # during glob expansion).  Even if it were fixed, the result of this
3391
 
    # check would be larger than it should be.
3392
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3393
 
    ;;
3394
 
 
3395
 
  gnu*)
3396
 
    # Under GNU Hurd, this test is not required because there is
3397
 
    # no limit to the length of command line arguments.
3398
 
    # Libtool will interpret -1 as no limit whatsoever
3399
 
    lt_cv_sys_max_cmd_len=-1;
3400
 
    ;;
3401
 
 
3402
 
  cygwin* | mingw* | cegcc*)
3403
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3404
 
    # about 5 minutes as the teststring grows exponentially.
3405
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
3406
 
    # you end up with a "frozen" computer, even though with patience
3407
 
    # the test eventually succeeds (with a max line length of 256k).
3408
 
    # Instead, let's just punt: use the minimum linelength reported by
3409
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
3410
 
    lt_cv_sys_max_cmd_len=8192;
3411
 
    ;;
3412
 
 
3413
 
  mint*)
3414
 
    # On MiNT this can take a long time and run out of memory.
3415
 
    lt_cv_sys_max_cmd_len=8192;
3416
 
    ;;
3417
 
 
3418
 
  amigaos*)
3419
 
    # On AmigaOS with pdksh, this test takes hours, literally.
3420
 
    # So we just punt and use a minimum line length of 8192.
3421
 
    lt_cv_sys_max_cmd_len=8192;
3422
 
    ;;
3423
 
 
3424
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3425
 
    # This has been around since 386BSD, at least.  Likely further.
3426
 
    if test -x /sbin/sysctl; then
3427
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3428
 
    elif test -x /usr/sbin/sysctl; then
3429
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3430
 
    else
3431
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3432
 
    fi
3433
 
    # And add a safety zone
3434
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3435
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3436
 
    ;;
3437
 
 
3438
 
  interix*)
3439
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3440
 
    lt_cv_sys_max_cmd_len=196608
3441
 
    ;;
3442
 
 
3443
 
  os2*)
3444
 
    # The test takes a long time on OS/2.
3445
 
    lt_cv_sys_max_cmd_len=8192
3446
 
    ;;
3447
 
 
3448
 
  osf*)
3449
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3450
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3451
 
    # nice to cause kernel panics so lets avoid the loop below.
3452
 
    # First set a reasonable default.
3453
 
    lt_cv_sys_max_cmd_len=16384
3454
 
    #
3455
 
    if test -x /sbin/sysconfig; then
3456
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3457
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3458
 
      esac
3459
 
    fi
3460
 
    ;;
3461
 
  sco3.2v5*)
3462
 
    lt_cv_sys_max_cmd_len=102400
3463
 
    ;;
3464
 
  sysv5* | sco5v6* | sysv4.2uw2*)
3465
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3466
 
    if test -n "$kargmax"; then
3467
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
3468
 
    else
3469
 
      lt_cv_sys_max_cmd_len=32768
3470
 
    fi
3471
 
    ;;
3472
 
  *)
3473
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3474
 
    if test -n "$lt_cv_sys_max_cmd_len" && \
3475
 
        test undefined != "$lt_cv_sys_max_cmd_len"; then
3476
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3477
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3478
 
    else
3479
 
      # Make teststring a little bigger before we do anything with it.
3480
 
      # a 1K string should be a reasonable start.
3481
 
      for i in 1 2 3 4 5 6 7 8 ; do
3482
 
        teststring=$teststring$teststring
3483
 
      done
3484
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3485
 
      # If test is not a shell built-in, we'll probably end up computing a
3486
 
      # maximum length that is only half of the actual maximum length, but
3487
 
      # we can't tell.
3488
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3489
 
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3490
 
              test $i != 17 # 1/2 MB should be enough
3491
 
      do
3492
 
        i=`expr $i + 1`
3493
 
        teststring=$teststring$teststring
3494
 
      done
3495
 
      # Only check the string length outside the loop.
3496
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3497
 
      teststring=
3498
 
      # Add a significant safety factor because C++ compilers can tack on
3499
 
      # massive amounts of additional arguments before passing them to the
3500
 
      # linker.  It appears as though 1/2 is a usable value.
3501
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3502
 
    fi
3503
 
    ;;
3504
 
  esac
3505
 
])
3506
 
if test -n $lt_cv_sys_max_cmd_len ; then
3507
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3508
 
else
3509
 
  AC_MSG_RESULT(none)
3510
 
fi
3511
 
max_cmd_len=$lt_cv_sys_max_cmd_len
3512
 
_LT_DECL([], [max_cmd_len], [0],
3513
 
    [What is the maximum length of a command?])
3514
 
])# LT_CMD_MAX_LEN
3515
 
 
3516
 
# Old name:
3517
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3518
 
dnl aclocal-1.4 backwards compatibility:
3519
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3520
 
 
3521
 
 
3522
 
# _LT_HEADER_DLFCN
3523
 
# ----------------
3524
 
m4_defun([_LT_HEADER_DLFCN],
3525
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3526
 
])# _LT_HEADER_DLFCN
3527
 
 
3528
 
 
3529
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3530
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3531
 
# ----------------------------------------------------------------
3532
 
m4_defun([_LT_TRY_DLOPEN_SELF],
3533
 
[m4_require([_LT_HEADER_DLFCN])dnl
3534
 
if test "$cross_compiling" = yes; then :
3535
 
  [$4]
3536
 
else
3537
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3538
 
  lt_status=$lt_dlunknown
3539
 
  cat > conftest.$ac_ext <<_LT_EOF
3540
 
[#line $LINENO "configure"
3541
 
#include "confdefs.h"
3542
 
 
3543
 
#if HAVE_DLFCN_H
3544
 
#include <dlfcn.h>
3545
 
#endif
3546
 
 
3547
 
#include <stdio.h>
3548
 
 
3549
 
#ifdef RTLD_GLOBAL
3550
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
3551
 
#else
3552
 
#  ifdef DL_GLOBAL
3553
 
#    define LT_DLGLOBAL         DL_GLOBAL
3554
 
#  else
3555
 
#    define LT_DLGLOBAL         0
3556
 
#  endif
3557
 
#endif
3558
 
 
3559
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3560
 
   find out it does not work in some platform. */
3561
 
#ifndef LT_DLLAZY_OR_NOW
3562
 
#  ifdef RTLD_LAZY
3563
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
3564
 
#  else
3565
 
#    ifdef DL_LAZY
3566
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
3567
 
#    else
3568
 
#      ifdef RTLD_NOW
3569
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
3570
 
#      else
3571
 
#        ifdef DL_NOW
3572
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
3573
 
#        else
3574
 
#          define LT_DLLAZY_OR_NOW      0
3575
 
#        endif
3576
 
#      endif
3577
 
#    endif
3578
 
#  endif
3579
 
#endif
3580
 
 
3581
 
/* When -fvisbility=hidden is used, assume the code has been annotated
3582
 
   correspondingly for the symbols needed.  */
3583
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3584
 
int fnord () __attribute__((visibility("default")));
3585
 
#endif
3586
 
 
3587
 
int fnord () { return 42; }
3588
 
int main ()
3589
 
{
3590
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3591
 
  int status = $lt_dlunknown;
3592
 
 
3593
 
  if (self)
3594
 
    {
3595
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
3596
 
      else
3597
 
        {
3598
 
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
3599
 
          else puts (dlerror ());
3600
 
        }
3601
 
      /* dlclose (self); */
3602
 
    }
3603
 
  else
3604
 
    puts (dlerror ());
3605
 
 
3606
 
  return status;
3607
 
}]
3608
 
_LT_EOF
3609
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3610
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3611
 
    lt_status=$?
3612
 
    case x$lt_status in
3613
 
      x$lt_dlno_uscore) $1 ;;
3614
 
      x$lt_dlneed_uscore) $2 ;;
3615
 
      x$lt_dlunknown|x*) $3 ;;
3616
 
    esac
3617
 
  else :
3618
 
    # compilation failed
3619
 
    $3
3620
 
  fi
3621
 
fi
3622
 
rm -fr conftest*
3623
 
])# _LT_TRY_DLOPEN_SELF
3624
 
 
3625
 
 
3626
 
# LT_SYS_DLOPEN_SELF
3627
 
# ------------------
3628
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
3629
 
[m4_require([_LT_HEADER_DLFCN])dnl
3630
 
if test "x$enable_dlopen" != xyes; then
3631
 
  enable_dlopen=unknown
3632
 
  enable_dlopen_self=unknown
3633
 
  enable_dlopen_self_static=unknown
3634
 
else
3635
 
  lt_cv_dlopen=no
3636
 
  lt_cv_dlopen_libs=
3637
 
 
3638
 
  case $host_os in
3639
 
  beos*)
3640
 
    lt_cv_dlopen="load_add_on"
3641
 
    lt_cv_dlopen_libs=
3642
 
    lt_cv_dlopen_self=yes
3643
 
    ;;
3644
 
 
3645
 
  mingw* | pw32* | cegcc*)
3646
 
    lt_cv_dlopen="LoadLibrary"
3647
 
    lt_cv_dlopen_libs=
3648
 
    ;;
3649
 
 
3650
 
  cygwin*)
3651
 
    lt_cv_dlopen="dlopen"
3652
 
    lt_cv_dlopen_libs=
3653
 
    ;;
3654
 
 
3655
 
  darwin*)
3656
 
  # if libdl is installed we need to link against it
3657
 
    AC_CHECK_LIB([dl], [dlopen],
3658
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3659
 
    lt_cv_dlopen="dyld"
3660
 
    lt_cv_dlopen_libs=
3661
 
    lt_cv_dlopen_self=yes
3662
 
    ])
3663
 
    ;;
3664
 
 
3665
 
  *)
3666
 
    AC_CHECK_FUNC([shl_load],
3667
 
          [lt_cv_dlopen="shl_load"],
3668
 
      [AC_CHECK_LIB([dld], [shl_load],
3669
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3670
 
        [AC_CHECK_FUNC([dlopen],
3671
 
              [lt_cv_dlopen="dlopen"],
3672
 
          [AC_CHECK_LIB([dl], [dlopen],
3673
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3674
 
            [AC_CHECK_LIB([svld], [dlopen],
3675
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3676
 
              [AC_CHECK_LIB([dld], [dld_link],
3677
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3678
 
              ])
3679
 
            ])
3680
 
          ])
3681
 
        ])
3682
 
      ])
3683
 
    ;;
3684
 
  esac
3685
 
 
3686
 
  if test "x$lt_cv_dlopen" != xno; then
3687
 
    enable_dlopen=yes
3688
 
  else
3689
 
    enable_dlopen=no
3690
 
  fi
3691
 
 
3692
 
  case $lt_cv_dlopen in
3693
 
  dlopen)
3694
 
    save_CPPFLAGS="$CPPFLAGS"
3695
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3696
 
 
3697
 
    save_LDFLAGS="$LDFLAGS"
3698
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3699
 
 
3700
 
    save_LIBS="$LIBS"
3701
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
3702
 
 
3703
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
3704
 
          lt_cv_dlopen_self, [dnl
3705
 
          _LT_TRY_DLOPEN_SELF(
3706
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3707
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3708
 
    ])
3709
 
 
3710
 
    if test "x$lt_cv_dlopen_self" = xyes; then
3711
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3712
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3713
 
          lt_cv_dlopen_self_static, [dnl
3714
 
          _LT_TRY_DLOPEN_SELF(
3715
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3716
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
3717
 
      ])
3718
 
    fi
3719
 
 
3720
 
    CPPFLAGS="$save_CPPFLAGS"
3721
 
    LDFLAGS="$save_LDFLAGS"
3722
 
    LIBS="$save_LIBS"
3723
 
    ;;
3724
 
  esac
3725
 
 
3726
 
  case $lt_cv_dlopen_self in
3727
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3728
 
  *) enable_dlopen_self=unknown ;;
3729
 
  esac
3730
 
 
3731
 
  case $lt_cv_dlopen_self_static in
3732
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3733
 
  *) enable_dlopen_self_static=unknown ;;
3734
 
  esac
3735
 
fi
3736
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
3737
 
         [Whether dlopen is supported])
3738
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3739
 
         [Whether dlopen of programs is supported])
3740
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3741
 
         [Whether dlopen of statically linked programs is supported])
3742
 
])# LT_SYS_DLOPEN_SELF
3743
 
 
3744
 
# Old name:
3745
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3746
 
dnl aclocal-1.4 backwards compatibility:
3747
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3748
 
 
3749
 
 
3750
 
# _LT_COMPILER_C_O([TAGNAME])
3751
 
# ---------------------------
3752
 
# Check to see if options -c and -o are simultaneously supported by compiler.
3753
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3754
 
m4_defun([_LT_COMPILER_C_O],
3755
 
[m4_require([_LT_DECL_SED])dnl
3756
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3757
 
m4_require([_LT_TAG_COMPILER])dnl
3758
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3759
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3760
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3761
 
   $RM -r conftest 2>/dev/null
3762
 
   mkdir conftest
3763
 
   cd conftest
3764
 
   mkdir out
3765
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3766
 
 
3767
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
3768
 
   # Insert the option either (1) after the last *FLAGS variable, or
3769
 
   # (2) before a word containing "conftest.", or (3) at the end.
3770
 
   # Note that $ac_compile itself does not contain backslashes and begins
3771
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
3772
 
   lt_compile=`echo "$ac_compile" | $SED \
3773
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3774
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3775
 
   -e 's:$: $lt_compiler_flag:'`
3776
 
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3777
 
   (eval "$lt_compile" 2>out/conftest.err)
3778
 
   ac_status=$?
3779
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
3780
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3781
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
3782
 
   then
3783
 
     # The compiler can only warn and ignore the option if not recognized
3784
 
     # So say no if there are warnings
3785
 
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3786
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3787
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3788
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3789
 
     fi
3790
 
   fi
3791
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
3792
 
   $RM conftest*
3793
 
   # SGI C++ compiler will create directory out/ii_files/ for
3794
 
   # template instantiation
3795
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3796
 
   $RM out/* && rmdir out
3797
 
   cd ..
3798
 
   $RM -r conftest
3799
 
   $RM conftest*
3800
 
])
3801
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3802
 
        [Does compiler simultaneously support -c and -o options?])
3803
 
])# _LT_COMPILER_C_O
3804
 
 
3805
 
 
3806
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3807
 
# ----------------------------------
3808
 
# Check to see if we can do hard links to lock some files if needed
3809
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
3810
 
[m4_require([_LT_ENABLE_LOCK])dnl
3811
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3812
 
_LT_COMPILER_C_O([$1])
3813
 
 
3814
 
hard_links="nottested"
3815
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3816
 
  # do not overwrite the value of need_locks provided by the user
3817
 
  AC_MSG_CHECKING([if we can lock with hard links])
3818
 
  hard_links=yes
3819
 
  $RM conftest*
3820
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3821
 
  touch conftest.a
3822
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
3823
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3824
 
  AC_MSG_RESULT([$hard_links])
3825
 
  if test "$hard_links" = no; then
3826
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3827
 
    need_locks=warn
3828
 
  fi
3829
 
else
3830
 
  need_locks=no
3831
 
fi
3832
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3833
 
])# _LT_COMPILER_FILE_LOCKS
3834
 
 
3835
 
 
3836
 
# _LT_CHECK_OBJDIR
3837
 
# ----------------
3838
 
m4_defun([_LT_CHECK_OBJDIR],
3839
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3840
 
[rm -f .libs 2>/dev/null
3841
 
mkdir .libs 2>/dev/null
3842
 
if test -d .libs; then
3843
 
  lt_cv_objdir=.libs
3844
 
else
3845
 
  # MS-DOS does not allow filenames that begin with a dot.
3846
 
  lt_cv_objdir=_libs
3847
 
fi
3848
 
rmdir .libs 2>/dev/null])
3849
 
objdir=$lt_cv_objdir
3850
 
_LT_DECL([], [objdir], [0],
3851
 
         [The name of the directory that contains temporary libtool files])dnl
3852
 
m4_pattern_allow([LT_OBJDIR])dnl
3853
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3854
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
3855
 
])# _LT_CHECK_OBJDIR
3856
 
 
3857
 
 
3858
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3859
 
# --------------------------------------
3860
 
# Check hardcoding attributes.
3861
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3862
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
3863
 
_LT_TAGVAR(hardcode_action, $1)=
3864
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3865
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3866
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3867
 
 
3868
 
  # We can hardcode non-existent directories.
3869
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3870
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
3871
 
     # have to relink, otherwise we might link with an installed library
3872
 
     # when we should be linking with a yet-to-be-installed one
3873
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3874
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3875
 
    # Linking always hardcodes the temporary library directory.
3876
 
    _LT_TAGVAR(hardcode_action, $1)=relink
3877
 
  else
3878
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
3879
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
3880
 
  fi
3881
 
else
3882
 
  # We cannot hardcode anything, or else we can only hardcode existing
3883
 
  # directories.
3884
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
3885
 
fi
3886
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3887
 
 
3888
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3889
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3890
 
  # Fast installation is not supported
3891
 
  enable_fast_install=no
3892
 
elif test "$shlibpath_overrides_runpath" = yes ||
3893
 
     test "$enable_shared" = no; then
3894
 
  # Fast installation is not necessary
3895
 
  enable_fast_install=needless
3896
 
fi
3897
 
_LT_TAGDECL([], [hardcode_action], [0],
3898
 
    [How to hardcode a shared library path into an executable])
3899
 
])# _LT_LINKER_HARDCODE_LIBPATH
3900
 
 
3901
 
 
3902
 
# _LT_CMD_STRIPLIB
3903
 
# ----------------
3904
 
m4_defun([_LT_CMD_STRIPLIB],
3905
 
[m4_require([_LT_DECL_EGREP])
3906
 
striplib=
3907
 
old_striplib=
3908
 
AC_MSG_CHECKING([whether stripping libraries is possible])
3909
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3910
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3911
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3912
 
  AC_MSG_RESULT([yes])
3913
 
else
3914
 
# FIXME - insert some real tests, host_os isn't really good enough
3915
 
  case $host_os in
3916
 
  darwin*)
3917
 
    if test -n "$STRIP" ; then
3918
 
      striplib="$STRIP -x"
3919
 
      old_striplib="$STRIP -S"
3920
 
      AC_MSG_RESULT([yes])
3921
 
    else
3922
 
      AC_MSG_RESULT([no])
3923
 
    fi
3924
 
    ;;
3925
 
  *)
3926
 
    AC_MSG_RESULT([no])
3927
 
    ;;
3928
 
  esac
3929
 
fi
3930
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3931
 
_LT_DECL([], [striplib], [1])
3932
 
])# _LT_CMD_STRIPLIB
3933
 
 
3934
 
 
3935
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
3936
 
# -----------------------------
3937
 
# PORTME Fill in your ld.so characteristics
3938
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3939
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3940
 
m4_require([_LT_DECL_EGREP])dnl
3941
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3942
 
m4_require([_LT_DECL_OBJDUMP])dnl
3943
 
m4_require([_LT_DECL_SED])dnl
3944
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3945
 
AC_MSG_CHECKING([dynamic linker characteristics])
3946
 
m4_if([$1],
3947
 
        [], [
3948
 
if test "$GCC" = yes; then
3949
 
  case $host_os in
3950
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3951
 
    *) lt_awk_arg="/^libraries:/" ;;
3952
 
  esac
3953
 
  case $host_os in
3954
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3955
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
3956
 
  esac
3957
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3958
 
  case $lt_search_path_spec in
3959
 
  *\;*)
3960
 
    # if the path contains ";" then we assume it to be the separator
3961
 
    # otherwise default to the standard path separator (i.e. ":") - it is
3962
 
    # assumed that no part of a normal pathname contains ";" but that should
3963
 
    # okay in the real world where ";" in dirpaths is itself problematic.
3964
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3965
 
    ;;
3966
 
  *)
3967
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3968
 
    ;;
3969
 
  esac
3970
 
  # Ok, now we have the path, separated by spaces, we can step through it
3971
 
  # and add multilib dir if necessary.
3972
 
  lt_tmp_lt_search_path_spec=
3973
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3974
 
  for lt_sys_path in $lt_search_path_spec; do
3975
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3976
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3977
 
    else
3978
 
      test -d "$lt_sys_path" && \
3979
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3980
 
    fi
3981
 
  done
3982
 
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3983
 
BEGIN {RS=" "; FS="/|\n";} {
3984
 
  lt_foo="";
3985
 
  lt_count=0;
3986
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
3987
 
    if ($lt_i != "" && $lt_i != ".") {
3988
 
      if ($lt_i == "..") {
3989
 
        lt_count++;
3990
 
      } else {
3991
 
        if (lt_count == 0) {
3992
 
          lt_foo="/" $lt_i lt_foo;
3993
 
        } else {
3994
 
          lt_count--;
3995
 
        }
3996
 
      }
3997
 
    }
3998
 
  }
3999
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4000
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4001
 
}'`
4002
 
  # AWK program above erroneously prepends '/' to C:/dos/paths
4003
 
  # for these hosts.
4004
 
  case $host_os in
4005
 
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
4006
 
      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
4007
 
  esac
4008
 
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4009
 
else
4010
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4011
 
fi])
4012
 
library_names_spec=
4013
 
libname_spec='lib$name'
4014
 
soname_spec=
4015
 
shrext_cmds=".so"
4016
 
postinstall_cmds=
4017
 
postuninstall_cmds=
4018
 
finish_cmds=
4019
 
finish_eval=
4020
 
shlibpath_var=
4021
 
shlibpath_overrides_runpath=unknown
4022
 
version_type=none
4023
 
dynamic_linker="$host_os ld.so"
4024
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4025
 
need_lib_prefix=unknown
4026
 
hardcode_into_libs=no
4027
 
 
4028
 
# when you set need_version to no, make sure it does not cause -set_version
4029
 
# flags to be left without arguments
4030
 
need_version=unknown
4031
 
 
4032
 
case $host_os in
4033
 
aix3*)
4034
 
  version_type=linux # correct to gnu/linux during the next big refactor
4035
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4036
 
  shlibpath_var=LIBPATH
4037
 
 
4038
 
  # AIX 3 has no versioning support, so we append a major version to the name.
4039
 
  soname_spec='${libname}${release}${shared_ext}$major'
4040
 
  ;;
4041
 
 
4042
 
aix[[4-9]]*)
4043
 
  version_type=linux # correct to gnu/linux during the next big refactor
4044
 
  need_lib_prefix=no
4045
 
  need_version=no
4046
 
  hardcode_into_libs=yes
4047
 
  if test "$host_cpu" = ia64; then
4048
 
    # AIX 5 supports IA64
4049
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4050
 
    shlibpath_var=LD_LIBRARY_PATH
4051
 
  else
4052
 
    # With GCC up to 2.95.x, collect2 would create an import file
4053
 
    # for dependence libraries.  The import file would start with
4054
 
    # the line `#! .'.  This would cause the generated library to
4055
 
    # depend on `.', always an invalid library.  This was fixed in
4056
 
    # development snapshots of GCC prior to 3.0.
4057
 
    case $host_os in
4058
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
4059
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4060
 
           echo ' yes '
4061
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4062
 
        :
4063
 
      else
4064
 
        can_build_shared=no
4065
 
      fi
4066
 
      ;;
4067
 
    esac
4068
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4069
 
    # soname into executable. Probably we can add versioning support to
4070
 
    # collect2, so additional links can be useful in future.
4071
 
    if test "$aix_use_runtimelinking" = yes; then
4072
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4073
 
      # instead of lib<name>.a to let people know that these are not
4074
 
      # typical AIX shared libraries.
4075
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4076
 
    else
4077
 
      # We preserve .a as extension for shared libraries through AIX4.2
4078
 
      # and later when we are not doing run time linking.
4079
 
      library_names_spec='${libname}${release}.a $libname.a'
4080
 
      soname_spec='${libname}${release}${shared_ext}$major'
4081
 
    fi
4082
 
    shlibpath_var=LIBPATH
4083
 
  fi
4084
 
  ;;
4085
 
 
4086
 
amigaos*)
4087
 
  case $host_cpu in
4088
 
  powerpc)
4089
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
4090
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4091
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4092
 
    ;;
4093
 
  m68k)
4094
 
    library_names_spec='$libname.ixlibrary $libname.a'
4095
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
4096
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
4097
 
    ;;
4098
 
  esac
4099
 
  ;;
4100
 
 
4101
 
beos*)
4102
 
  library_names_spec='${libname}${shared_ext}'
4103
 
  dynamic_linker="$host_os ld.so"
4104
 
  shlibpath_var=LIBRARY_PATH
4105
 
  ;;
4106
 
 
4107
 
bsdi[[45]]*)
4108
 
  version_type=linux # correct to gnu/linux during the next big refactor
4109
 
  need_version=no
4110
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4111
 
  soname_spec='${libname}${release}${shared_ext}$major'
4112
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4113
 
  shlibpath_var=LD_LIBRARY_PATH
4114
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4115
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4116
 
  # the default ld.so.conf also contains /usr/contrib/lib and
4117
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4118
 
  # libtool to hard-code these into programs
4119
 
  ;;
4120
 
 
4121
 
cygwin* | mingw* | pw32* | cegcc*)
4122
 
  version_type=windows
4123
 
  shrext_cmds=".dll"
4124
 
  need_version=no
4125
 
  need_lib_prefix=no
4126
 
 
4127
 
  case $GCC,$cc_basename in
4128
 
  yes,*)
4129
 
    # gcc
4130
 
    library_names_spec='$libname.dll.a'
4131
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
4132
 
    postinstall_cmds='base_file=`basename \${file}`~
4133
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4134
 
      dldir=$destdir/`dirname \$dlpath`~
4135
 
      test -d \$dldir || mkdir -p \$dldir~
4136
 
      $install_prog $dir/$dlname \$dldir/$dlname~
4137
 
      chmod a+x \$dldir/$dlname~
4138
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4139
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4140
 
      fi'
4141
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4142
 
      dlpath=$dir/\$dldll~
4143
 
       $RM \$dlpath'
4144
 
    shlibpath_overrides_runpath=yes
4145
 
 
4146
 
    case $host_os in
4147
 
    cygwin*)
4148
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4149
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4150
 
m4_if([$1], [],[
4151
 
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
4152
 
      ;;
4153
 
    mingw* | cegcc*)
4154
 
      # MinGW DLLs use traditional 'lib' prefix
4155
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4156
 
      ;;
4157
 
    pw32*)
4158
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
4159
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4160
 
      ;;
4161
 
    esac
4162
 
    dynamic_linker='Win32 ld.exe'
4163
 
    ;;
4164
 
 
4165
 
  *,cl*)
4166
 
    # Native MSVC
4167
 
    libname_spec='$name'
4168
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4169
 
    library_names_spec='${libname}.dll.lib'
4170
 
 
4171
 
    case $build_os in
4172
 
    mingw*)
4173
 
      sys_lib_search_path_spec=
4174
 
      lt_save_ifs=$IFS
4175
 
      IFS=';'
4176
 
      for lt_path in $LIB
4177
 
      do
4178
 
        IFS=$lt_save_ifs
4179
 
        # Let DOS variable expansion print the short 8.3 style file name.
4180
 
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
4181
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
4182
 
      done
4183
 
      IFS=$lt_save_ifs
4184
 
      # Convert to MSYS style.
4185
 
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
4186
 
      ;;
4187
 
    cygwin*)
4188
 
      # Convert to unix form, then to dos form, then back to unix form
4189
 
      # but this time dos style (no spaces!) so that the unix form looks
4190
 
      # like /cygdrive/c/PROGRA~1:/cygdr...
4191
 
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
4192
 
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
4193
 
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4194
 
      ;;
4195
 
    *)
4196
 
      sys_lib_search_path_spec="$LIB"
4197
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4198
 
        # It is most probably a Windows format PATH.
4199
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4200
 
      else
4201
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4202
 
      fi
4203
 
      # FIXME: find the short name or the path components, as spaces are
4204
 
      # common. (e.g. "Program Files" -> "PROGRA~1")
4205
 
      ;;
4206
 
    esac
4207
 
 
4208
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
4209
 
    postinstall_cmds='base_file=`basename \${file}`~
4210
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4211
 
      dldir=$destdir/`dirname \$dlpath`~
4212
 
      test -d \$dldir || mkdir -p \$dldir~
4213
 
      $install_prog $dir/$dlname \$dldir/$dlname'
4214
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4215
 
      dlpath=$dir/\$dldll~
4216
 
       $RM \$dlpath'
4217
 
    shlibpath_overrides_runpath=yes
4218
 
    dynamic_linker='Win32 link.exe'
4219
 
    ;;
4220
 
 
4221
 
  *)
4222
 
    # Assume MSVC wrapper
4223
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4224
 
    dynamic_linker='Win32 ld.exe'
4225
 
    ;;
4226
 
  esac
4227
 
  # FIXME: first we should search . and the directory the executable is in
4228
 
  shlibpath_var=PATH
4229
 
  ;;
4230
 
 
4231
 
darwin* | rhapsody*)
4232
 
  dynamic_linker="$host_os dyld"
4233
 
  version_type=darwin
4234
 
  need_lib_prefix=no
4235
 
  need_version=no
4236
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4237
 
  soname_spec='${libname}${release}${major}$shared_ext'
4238
 
  shlibpath_overrides_runpath=yes
4239
 
  shlibpath_var=DYLD_LIBRARY_PATH
4240
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4241
 
m4_if([$1], [],[
4242
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4243
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4244
 
  ;;
4245
 
 
4246
 
dgux*)
4247
 
  version_type=linux # correct to gnu/linux during the next big refactor
4248
 
  need_lib_prefix=no
4249
 
  need_version=no
4250
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4251
 
  soname_spec='${libname}${release}${shared_ext}$major'
4252
 
  shlibpath_var=LD_LIBRARY_PATH
4253
 
  ;;
4254
 
 
4255
 
freebsd* | dragonfly*)
4256
 
  # DragonFly does not have aout.  When/if they implement a new
4257
 
  # versioning mechanism, adjust this.
4258
 
  if test -x /usr/bin/objformat; then
4259
 
    objformat=`/usr/bin/objformat`
4260
 
  else
4261
 
    case $host_os in
4262
 
    freebsd[[23]].*) objformat=aout ;;
4263
 
    *) objformat=elf ;;
4264
 
    esac
4265
 
  fi
4266
 
  version_type=freebsd-$objformat
4267
 
  case $version_type in
4268
 
    freebsd-elf*)
4269
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4270
 
      need_version=no
4271
 
      need_lib_prefix=no
4272
 
      ;;
4273
 
    freebsd-*)
4274
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4275
 
      need_version=yes
4276
 
      ;;
4277
 
  esac
4278
 
  shlibpath_var=LD_LIBRARY_PATH
4279
 
  case $host_os in
4280
 
  freebsd2.*)
4281
 
    shlibpath_overrides_runpath=yes
4282
 
    ;;
4283
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4284
 
    shlibpath_overrides_runpath=yes
4285
 
    hardcode_into_libs=yes
4286
 
    ;;
4287
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4288
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4289
 
    shlibpath_overrides_runpath=no
4290
 
    hardcode_into_libs=yes
4291
 
    ;;
4292
 
  *) # from 4.6 on, and DragonFly
4293
 
    shlibpath_overrides_runpath=yes
4294
 
    hardcode_into_libs=yes
4295
 
    ;;
4296
 
  esac
4297
 
  ;;
4298
 
 
4299
 
haiku*)
4300
 
  version_type=linux # correct to gnu/linux during the next big refactor
4301
 
  need_lib_prefix=no
4302
 
  need_version=no
4303
 
  dynamic_linker="$host_os runtime_loader"
4304
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4305
 
  soname_spec='${libname}${release}${shared_ext}$major'
4306
 
  shlibpath_var=LIBRARY_PATH
4307
 
  shlibpath_overrides_runpath=yes
4308
 
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
4309
 
  hardcode_into_libs=yes
4310
 
  ;;
4311
 
 
4312
 
hpux9* | hpux10* | hpux11*)
4313
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
4314
 
  # link against other versions.
4315
 
  version_type=sunos
4316
 
  need_lib_prefix=no
4317
 
  need_version=no
4318
 
  case $host_cpu in
4319
 
  ia64*)
4320
 
    shrext_cmds='.so'
4321
 
    hardcode_into_libs=yes
4322
 
    dynamic_linker="$host_os dld.so"
4323
 
    shlibpath_var=LD_LIBRARY_PATH
4324
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4325
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4326
 
    soname_spec='${libname}${release}${shared_ext}$major'
4327
 
    if test "X$HPUX_IA64_MODE" = X32; then
4328
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4329
 
    else
4330
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4331
 
    fi
4332
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4333
 
    ;;
4334
 
  hppa*64*)
4335
 
    shrext_cmds='.sl'
4336
 
    hardcode_into_libs=yes
4337
 
    dynamic_linker="$host_os dld.sl"
4338
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4339
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4340
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4341
 
    soname_spec='${libname}${release}${shared_ext}$major'
4342
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4343
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4344
 
    ;;
4345
 
  *)
4346
 
    shrext_cmds='.sl'
4347
 
    dynamic_linker="$host_os dld.sl"
4348
 
    shlibpath_var=SHLIB_PATH
4349
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4350
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4351
 
    soname_spec='${libname}${release}${shared_ext}$major'
4352
 
    ;;
4353
 
  esac
4354
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
4355
 
  postinstall_cmds='chmod 555 $lib'
4356
 
  # or fails outright, so override atomically:
4357
 
  install_override_mode=555
4358
 
  ;;
4359
 
 
4360
 
interix[[3-9]]*)
4361
 
  version_type=linux # correct to gnu/linux during the next big refactor
4362
 
  need_lib_prefix=no
4363
 
  need_version=no
4364
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4365
 
  soname_spec='${libname}${release}${shared_ext}$major'
4366
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4367
 
  shlibpath_var=LD_LIBRARY_PATH
4368
 
  shlibpath_overrides_runpath=no
4369
 
  hardcode_into_libs=yes
4370
 
  ;;
4371
 
 
4372
 
irix5* | irix6* | nonstopux*)
4373
 
  case $host_os in
4374
 
    nonstopux*) version_type=nonstopux ;;
4375
 
    *)
4376
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
4377
 
                version_type=linux # correct to gnu/linux during the next big refactor
4378
 
        else
4379
 
                version_type=irix
4380
 
        fi ;;
4381
 
  esac
4382
 
  need_lib_prefix=no
4383
 
  need_version=no
4384
 
  soname_spec='${libname}${release}${shared_ext}$major'
4385
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4386
 
  case $host_os in
4387
 
  irix5* | nonstopux*)
4388
 
    libsuff= shlibsuff=
4389
 
    ;;
4390
 
  *)
4391
 
    case $LD in # libtool.m4 will add one of these switches to LD
4392
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4393
 
      libsuff= shlibsuff= libmagic=32-bit;;
4394
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4395
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
4396
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4397
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
4398
 
    *) libsuff= shlibsuff= libmagic=never-match;;
4399
 
    esac
4400
 
    ;;
4401
 
  esac
4402
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4403
 
  shlibpath_overrides_runpath=no
4404
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4405
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4406
 
  hardcode_into_libs=yes
4407
 
  ;;
4408
 
 
4409
 
# No shared lib support for Linux oldld, aout, or coff.
4410
 
linux*oldld* | linux*aout* | linux*coff*)
4411
 
  dynamic_linker=no
4412
 
  ;;
4413
 
 
4414
 
# This must be glibc/ELF.
4415
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4416
 
  version_type=linux # correct to gnu/linux during the next big refactor
4417
 
  need_lib_prefix=no
4418
 
  need_version=no
4419
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4420
 
  soname_spec='${libname}${release}${shared_ext}$major'
4421
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4422
 
  shlibpath_var=LD_LIBRARY_PATH
4423
 
  shlibpath_overrides_runpath=no
4424
 
 
4425
 
  # Some binutils ld are patched to set DT_RUNPATH
4426
 
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4427
 
    [lt_cv_shlibpath_overrides_runpath=no
4428
 
    save_LDFLAGS=$LDFLAGS
4429
 
    save_libdir=$libdir
4430
 
    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4431
 
         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4432
 
    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4433
 
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4434
 
         [lt_cv_shlibpath_overrides_runpath=yes])])
4435
 
    LDFLAGS=$save_LDFLAGS
4436
 
    libdir=$save_libdir
4437
 
    ])
4438
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4439
 
 
4440
 
  # This implies no fast_install, which is unacceptable.
4441
 
  # Some rework will be needed to allow for fast_install
4442
 
  # before this can be enabled.
4443
 
  hardcode_into_libs=yes
4444
 
 
4445
 
  # Append ld.so.conf contents to the search path
4446
 
  if test -f /etc/ld.so.conf; then
4447
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
4448
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4449
 
  fi
4450
 
 
4451
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4452
 
  # powerpc, because MkLinux only supported shared libraries with the
4453
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
4454
 
  # most powerpc-linux boxes support dynamic linking these days and
4455
 
  # people can always --disable-shared, the test was removed, and we
4456
 
  # assume the GNU/Linux dynamic linker is in use.
4457
 
  dynamic_linker='GNU/Linux ld.so'
4458
 
  ;;
4459
 
 
4460
 
netbsdelf*-gnu)
4461
 
  version_type=linux
4462
 
  need_lib_prefix=no
4463
 
  need_version=no
4464
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4465
 
  soname_spec='${libname}${release}${shared_ext}$major'
4466
 
  shlibpath_var=LD_LIBRARY_PATH
4467
 
  shlibpath_overrides_runpath=no
4468
 
  hardcode_into_libs=yes
4469
 
  dynamic_linker='NetBSD ld.elf_so'
4470
 
  ;;
4471
 
 
4472
 
netbsd*)
4473
 
  version_type=sunos
4474
 
  need_lib_prefix=no
4475
 
  need_version=no
4476
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4477
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4478
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4479
 
    dynamic_linker='NetBSD (a.out) ld.so'
4480
 
  else
4481
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4482
 
    soname_spec='${libname}${release}${shared_ext}$major'
4483
 
    dynamic_linker='NetBSD ld.elf_so'
4484
 
  fi
4485
 
  shlibpath_var=LD_LIBRARY_PATH
4486
 
  shlibpath_overrides_runpath=yes
4487
 
  hardcode_into_libs=yes
4488
 
  ;;
4489
 
 
4490
 
newsos6)
4491
 
  version_type=linux # correct to gnu/linux during the next big refactor
4492
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4493
 
  shlibpath_var=LD_LIBRARY_PATH
4494
 
  shlibpath_overrides_runpath=yes
4495
 
  ;;
4496
 
 
4497
 
*nto* | *qnx*)
4498
 
  version_type=qnx
4499
 
  need_lib_prefix=no
4500
 
  need_version=no
4501
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4502
 
  soname_spec='${libname}${release}${shared_ext}$major'
4503
 
  shlibpath_var=LD_LIBRARY_PATH
4504
 
  shlibpath_overrides_runpath=no
4505
 
  hardcode_into_libs=yes
4506
 
  dynamic_linker='ldqnx.so'
4507
 
  ;;
4508
 
 
4509
 
openbsd*)
4510
 
  version_type=sunos
4511
 
  sys_lib_dlsearch_path_spec="/usr/lib"
4512
 
  need_lib_prefix=no
4513
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4514
 
  case $host_os in
4515
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
4516
 
    *)                          need_version=no  ;;
4517
 
  esac
4518
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4519
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4520
 
  shlibpath_var=LD_LIBRARY_PATH
4521
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4522
 
    case $host_os in
4523
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
4524
 
        shlibpath_overrides_runpath=no
4525
 
        ;;
4526
 
      *)
4527
 
        shlibpath_overrides_runpath=yes
4528
 
        ;;
4529
 
      esac
4530
 
  else
4531
 
    shlibpath_overrides_runpath=yes
4532
 
  fi
4533
 
  ;;
4534
 
 
4535
 
os2*)
4536
 
  libname_spec='$name'
4537
 
  shrext_cmds=".dll"
4538
 
  need_lib_prefix=no
4539
 
  library_names_spec='$libname${shared_ext} $libname.a'
4540
 
  dynamic_linker='OS/2 ld.exe'
4541
 
  shlibpath_var=LIBPATH
4542
 
  ;;
4543
 
 
4544
 
osf3* | osf4* | osf5*)
4545
 
  version_type=osf
4546
 
  need_lib_prefix=no
4547
 
  need_version=no
4548
 
  soname_spec='${libname}${release}${shared_ext}$major'
4549
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4550
 
  shlibpath_var=LD_LIBRARY_PATH
4551
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4552
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4553
 
  ;;
4554
 
 
4555
 
rdos*)
4556
 
  dynamic_linker=no
4557
 
  ;;
4558
 
 
4559
 
solaris*)
4560
 
  version_type=linux # correct to gnu/linux during the next big refactor
4561
 
  need_lib_prefix=no
4562
 
  need_version=no
4563
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4564
 
  soname_spec='${libname}${release}${shared_ext}$major'
4565
 
  shlibpath_var=LD_LIBRARY_PATH
4566
 
  shlibpath_overrides_runpath=yes
4567
 
  hardcode_into_libs=yes
4568
 
  # ldd complains unless libraries are executable
4569
 
  postinstall_cmds='chmod +x $lib'
4570
 
  ;;
4571
 
 
4572
 
sunos4*)
4573
 
  version_type=sunos
4574
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4575
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4576
 
  shlibpath_var=LD_LIBRARY_PATH
4577
 
  shlibpath_overrides_runpath=yes
4578
 
  if test "$with_gnu_ld" = yes; then
4579
 
    need_lib_prefix=no
4580
 
  fi
4581
 
  need_version=yes
4582
 
  ;;
4583
 
 
4584
 
sysv4 | sysv4.3*)
4585
 
  version_type=linux # correct to gnu/linux during the next big refactor
4586
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4587
 
  soname_spec='${libname}${release}${shared_ext}$major'
4588
 
  shlibpath_var=LD_LIBRARY_PATH
4589
 
  case $host_vendor in
4590
 
    sni)
4591
 
      shlibpath_overrides_runpath=no
4592
 
      need_lib_prefix=no
4593
 
      runpath_var=LD_RUN_PATH
4594
 
      ;;
4595
 
    siemens)
4596
 
      need_lib_prefix=no
4597
 
      ;;
4598
 
    motorola)
4599
 
      need_lib_prefix=no
4600
 
      need_version=no
4601
 
      shlibpath_overrides_runpath=no
4602
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4603
 
      ;;
4604
 
  esac
4605
 
  ;;
4606
 
 
4607
 
sysv4*MP*)
4608
 
  if test -d /usr/nec ;then
4609
 
    version_type=linux # correct to gnu/linux during the next big refactor
4610
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4611
 
    soname_spec='$libname${shared_ext}.$major'
4612
 
    shlibpath_var=LD_LIBRARY_PATH
4613
 
  fi
4614
 
  ;;
4615
 
 
4616
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4617
 
  version_type=freebsd-elf
4618
 
  need_lib_prefix=no
4619
 
  need_version=no
4620
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4621
 
  soname_spec='${libname}${release}${shared_ext}$major'
4622
 
  shlibpath_var=LD_LIBRARY_PATH
4623
 
  shlibpath_overrides_runpath=yes
4624
 
  hardcode_into_libs=yes
4625
 
  if test "$with_gnu_ld" = yes; then
4626
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4627
 
  else
4628
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4629
 
    case $host_os in
4630
 
      sco3.2v5*)
4631
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4632
 
        ;;
4633
 
    esac
4634
 
  fi
4635
 
  sys_lib_dlsearch_path_spec='/usr/lib'
4636
 
  ;;
4637
 
 
4638
 
tpf*)
4639
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
4640
 
  version_type=linux # correct to gnu/linux during the next big refactor
4641
 
  need_lib_prefix=no
4642
 
  need_version=no
4643
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4644
 
  shlibpath_var=LD_LIBRARY_PATH
4645
 
  shlibpath_overrides_runpath=no
4646
 
  hardcode_into_libs=yes
4647
 
  ;;
4648
 
 
4649
 
uts4*)
4650
 
  version_type=linux # correct to gnu/linux during the next big refactor
4651
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4652
 
  soname_spec='${libname}${release}${shared_ext}$major'
4653
 
  shlibpath_var=LD_LIBRARY_PATH
4654
 
  ;;
4655
 
 
4656
 
*)
4657
 
  dynamic_linker=no
4658
 
  ;;
4659
 
esac
4660
 
AC_MSG_RESULT([$dynamic_linker])
4661
 
test "$dynamic_linker" = no && can_build_shared=no
4662
 
 
4663
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4664
 
if test "$GCC" = yes; then
4665
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4666
 
fi
4667
 
 
4668
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4669
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4670
 
fi
4671
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4672
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4673
 
fi
4674
 
 
4675
 
_LT_DECL([], [variables_saved_for_relink], [1],
4676
 
    [Variables whose values should be saved in libtool wrapper scripts and
4677
 
    restored at link time])
4678
 
_LT_DECL([], [need_lib_prefix], [0],
4679
 
    [Do we need the "lib" prefix for modules?])
4680
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4681
 
_LT_DECL([], [version_type], [0], [Library versioning type])
4682
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
4683
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4684
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
4685
 
    [Is shlibpath searched before the hard-coded library search path?])
4686
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4687
 
_LT_DECL([], [library_names_spec], [1],
4688
 
    [[List of archive names.  First name is the real one, the rest are links.
4689
 
    The last name is the one that the linker finds with -lNAME]])
4690
 
_LT_DECL([], [soname_spec], [1],
4691
 
    [[The coded name of the library, if different from the real name]])
4692
 
_LT_DECL([], [install_override_mode], [1],
4693
 
    [Permission mode override for installation of shared libraries])
4694
 
_LT_DECL([], [postinstall_cmds], [2],
4695
 
    [Command to use after installation of a shared archive])
4696
 
_LT_DECL([], [postuninstall_cmds], [2],
4697
 
    [Command to use after uninstallation of a shared archive])
4698
 
_LT_DECL([], [finish_cmds], [2],
4699
 
    [Commands used to finish a libtool library installation in a directory])
4700
 
_LT_DECL([], [finish_eval], [1],
4701
 
    [[As "finish_cmds", except a single script fragment to be evaled but
4702
 
    not shown]])
4703
 
_LT_DECL([], [hardcode_into_libs], [0],
4704
 
    [Whether we should hardcode library paths into libraries])
4705
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
4706
 
    [Compile-time system search path for libraries])
4707
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
4708
 
    [Run-time system search path for libraries])
4709
 
])# _LT_SYS_DYNAMIC_LINKER
4710
 
 
4711
 
 
4712
 
# _LT_PATH_TOOL_PREFIX(TOOL)
4713
 
# --------------------------
4714
 
# find a file program which can recognize shared library
4715
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
4716
 
[m4_require([_LT_DECL_EGREP])dnl
4717
 
AC_MSG_CHECKING([for $1])
4718
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4719
 
[case $MAGIC_CMD in
4720
 
[[\\/*] |  ?:[\\/]*])
4721
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4722
 
  ;;
4723
 
*)
4724
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
4725
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4726
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
4727
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
4728
 
dnl not every word.  This closes a longstanding sh security hole.
4729
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
4730
 
  for ac_dir in $ac_dummy; do
4731
 
    IFS="$lt_save_ifs"
4732
 
    test -z "$ac_dir" && ac_dir=.
4733
 
    if test -f $ac_dir/$1; then
4734
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4735
 
      if test -n "$file_magic_test_file"; then
4736
 
        case $deplibs_check_method in
4737
 
        "file_magic "*)
4738
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
4739
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4740
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4741
 
            $EGREP "$file_magic_regex" > /dev/null; then
4742
 
            :
4743
 
          else
4744
 
            cat <<_LT_EOF 1>&2
4745
 
 
4746
 
*** Warning: the command libtool uses to detect shared libraries,
4747
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4748
 
*** The result is that libtool may fail to recognize shared libraries
4749
 
*** as such.  This will affect the creation of libtool libraries that
4750
 
*** depend on shared libraries, but programs linked with such libtool
4751
 
*** libraries will work regardless of this problem.  Nevertheless, you
4752
 
*** may want to report the problem to your system manager and/or to
4753
 
*** bug-libtool@gnu.org
4754
 
 
4755
 
_LT_EOF
4756
 
          fi ;;
4757
 
        esac
4758
 
      fi
4759
 
      break
4760
 
    fi
4761
 
  done
4762
 
  IFS="$lt_save_ifs"
4763
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
4764
 
  ;;
4765
 
esac])
4766
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4767
 
if test -n "$MAGIC_CMD"; then
4768
 
  AC_MSG_RESULT($MAGIC_CMD)
4769
 
else
4770
 
  AC_MSG_RESULT(no)
4771
 
fi
4772
 
_LT_DECL([], [MAGIC_CMD], [0],
4773
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
4774
 
])# _LT_PATH_TOOL_PREFIX
4775
 
 
4776
 
# Old name:
4777
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
4778
 
dnl aclocal-1.4 backwards compatibility:
4779
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
4780
 
 
4781
 
 
4782
 
# _LT_PATH_MAGIC
4783
 
# --------------
4784
 
# find a file program which can recognize a shared library
4785
 
m4_defun([_LT_PATH_MAGIC],
4786
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4787
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4788
 
  if test -n "$ac_tool_prefix"; then
4789
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4790
 
  else
4791
 
    MAGIC_CMD=:
4792
 
  fi
4793
 
fi
4794
 
])# _LT_PATH_MAGIC
4795
 
 
4796
 
 
4797
 
# LT_PATH_LD
4798
 
# ----------
4799
 
# find the pathname to the GNU or non-GNU linker
4800
 
AC_DEFUN([LT_PATH_LD],
4801
 
[AC_REQUIRE([AC_PROG_CC])dnl
4802
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4803
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4804
 
m4_require([_LT_DECL_SED])dnl
4805
 
m4_require([_LT_DECL_EGREP])dnl
4806
 
m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
4807
 
 
4808
 
AC_ARG_WITH([gnu-ld],
4809
 
    [AS_HELP_STRING([--with-gnu-ld],
4810
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4811
 
    [test "$withval" = no || with_gnu_ld=yes],
4812
 
    [with_gnu_ld=no])dnl
4813
 
 
4814
 
ac_prog=ld
4815
 
if test "$GCC" = yes; then
4816
 
  # Check if gcc -print-prog-name=ld gives a path.
4817
 
  AC_MSG_CHECKING([for ld used by $CC])
4818
 
  case $host in
4819
 
  *-*-mingw*)
4820
 
    # gcc leaves a trailing carriage return which upsets mingw
4821
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4822
 
  *)
4823
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4824
 
  esac
4825
 
  case $ac_prog in
4826
 
    # Accept absolute paths.
4827
 
    [[\\/]]* | ?:[[\\/]]*)
4828
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
4829
 
      # Canonicalize the pathname of ld
4830
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4831
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4832
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4833
 
      done
4834
 
      test -z "$LD" && LD="$ac_prog"
4835
 
      ;;
4836
 
  "")
4837
 
    # If it fails, then pretend we aren't using GCC.
4838
 
    ac_prog=ld
4839
 
    ;;
4840
 
  *)
4841
 
    # If it is relative, then search for the first ld in PATH.
4842
 
    with_gnu_ld=unknown
4843
 
    ;;
4844
 
  esac
4845
 
elif test "$with_gnu_ld" = yes; then
4846
 
  AC_MSG_CHECKING([for GNU ld])
4847
 
else
4848
 
  AC_MSG_CHECKING([for non-GNU ld])
4849
 
fi
4850
 
AC_CACHE_VAL(lt_cv_path_LD,
4851
 
[if test -z "$LD"; then
4852
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4853
 
  for ac_dir in $PATH; do
4854
 
    IFS="$lt_save_ifs"
4855
 
    test -z "$ac_dir" && ac_dir=.
4856
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4857
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4858
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4859
 
      # but apparently some variants of GNU ld only accept -v.
4860
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4861
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4862
 
      *GNU* | *'with BFD'*)
4863
 
        test "$with_gnu_ld" != no && break
4864
 
        ;;
4865
 
      *)
4866
 
        test "$with_gnu_ld" != yes && break
4867
 
        ;;
4868
 
      esac
4869
 
    fi
4870
 
  done
4871
 
  IFS="$lt_save_ifs"
4872
 
else
4873
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4874
 
fi])
4875
 
LD="$lt_cv_path_LD"
4876
 
if test -n "$LD"; then
4877
 
  AC_MSG_RESULT($LD)
4878
 
else
4879
 
  AC_MSG_RESULT(no)
4880
 
fi
4881
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4882
 
_LT_PATH_LD_GNU
4883
 
AC_SUBST([LD])
4884
 
 
4885
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4886
 
])# LT_PATH_LD
4887
 
 
4888
 
# Old names:
4889
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4890
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4891
 
dnl aclocal-1.4 backwards compatibility:
4892
 
dnl AC_DEFUN([AM_PROG_LD], [])
4893
 
dnl AC_DEFUN([AC_PROG_LD], [])
4894
 
 
4895
 
 
4896
 
# _LT_PATH_LD_GNU
4897
 
#- --------------
4898
 
m4_defun([_LT_PATH_LD_GNU],
4899
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4900
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4901
 
case `$LD -v 2>&1 </dev/null` in
4902
 
*GNU* | *'with BFD'*)
4903
 
  lt_cv_prog_gnu_ld=yes
4904
 
  ;;
4905
 
*)
4906
 
  lt_cv_prog_gnu_ld=no
4907
 
  ;;
4908
 
esac])
4909
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4910
 
])# _LT_PATH_LD_GNU
4911
 
 
4912
 
 
4913
 
# _LT_CMD_RELOAD
4914
 
# --------------
4915
 
# find reload flag for linker
4916
 
#   -- PORTME Some linkers may need a different reload flag.
4917
 
m4_defun([_LT_CMD_RELOAD],
4918
 
[AC_CACHE_CHECK([for $LD option to reload object files],
4919
 
  lt_cv_ld_reload_flag,
4920
 
  [lt_cv_ld_reload_flag='-r'])
4921
 
reload_flag=$lt_cv_ld_reload_flag
4922
 
case $reload_flag in
4923
 
"" | " "*) ;;
4924
 
*) reload_flag=" $reload_flag" ;;
4925
 
esac
4926
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4927
 
case $host_os in
4928
 
  cygwin* | mingw* | pw32* | cegcc*)
4929
 
    if test "$GCC" != yes; then
4930
 
      reload_cmds=false
4931
 
    fi
4932
 
    ;;
4933
 
  darwin*)
4934
 
    if test "$GCC" = yes; then
4935
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4936
 
    else
4937
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4938
 
    fi
4939
 
    ;;
4940
 
esac
4941
 
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4942
 
_LT_TAGDECL([], [reload_cmds], [2])dnl
4943
 
])# _LT_CMD_RELOAD
4944
 
 
4945
 
 
4946
 
# _LT_CHECK_MAGIC_METHOD
4947
 
# ----------------------
4948
 
# how to check for library dependencies
4949
 
#  -- PORTME fill in with the dynamic library characteristics
4950
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
4951
 
[m4_require([_LT_DECL_EGREP])
4952
 
m4_require([_LT_DECL_OBJDUMP])
4953
 
AC_CACHE_CHECK([how to recognize dependent libraries],
4954
 
lt_cv_deplibs_check_method,
4955
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
4956
 
lt_cv_file_magic_test_file=
4957
 
lt_cv_deplibs_check_method='unknown'
4958
 
# Need to set the preceding variable on all platforms that support
4959
 
# interlibrary dependencies.
4960
 
# 'none' -- dependencies not supported.
4961
 
# `unknown' -- same as none, but documents that we really don't know.
4962
 
# 'pass_all' -- all dependencies passed with no checks.
4963
 
# 'test_compile' -- check by making test program.
4964
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4965
 
# which responds to the $file_magic_cmd with a given extended regex.
4966
 
# If you have `file' or equivalent on your system and you're not sure
4967
 
# whether `pass_all' will *always* work, you probably want this one.
4968
 
 
4969
 
case $host_os in
4970
 
aix[[4-9]]*)
4971
 
  lt_cv_deplibs_check_method=pass_all
4972
 
  ;;
4973
 
 
4974
 
beos*)
4975
 
  lt_cv_deplibs_check_method=pass_all
4976
 
  ;;
4977
 
 
4978
 
bsdi[[45]]*)
4979
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4980
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4981
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4982
 
  ;;
4983
 
 
4984
 
cygwin*)
4985
 
  # func_win32_libid is a shell function defined in ltmain.sh
4986
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4987
 
  lt_cv_file_magic_cmd='func_win32_libid'
4988
 
  ;;
4989
 
 
4990
 
mingw* | pw32*)
4991
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4992
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4993
 
  # unless we find 'file', for example because we are cross-compiling.
4994
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4995
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4996
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4997
 
    lt_cv_file_magic_cmd='func_win32_libid'
4998
 
  else
4999
 
    # Keep this pattern in sync with the one in func_win32_libid.
5000
 
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5001
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5002
 
  fi
5003
 
  ;;
5004
 
 
5005
 
cegcc*)
5006
 
  # use the weaker test based on 'objdump'. See mingw*.
5007
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5008
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5009
 
  ;;
5010
 
 
5011
 
darwin* | rhapsody*)
5012
 
  lt_cv_deplibs_check_method=pass_all
5013
 
  ;;
5014
 
 
5015
 
freebsd* | dragonfly*)
5016
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5017
 
    case $host_cpu in
5018
 
    i*86 )
5019
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5020
 
      # Let's accept both of them until this is cleared up.
5021
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5022
 
      lt_cv_file_magic_cmd=/usr/bin/file
5023
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5024
 
      ;;
5025
 
    esac
5026
 
  else
5027
 
    lt_cv_deplibs_check_method=pass_all
5028
 
  fi
5029
 
  ;;
5030
 
 
5031
 
haiku*)
5032
 
  lt_cv_deplibs_check_method=pass_all
5033
 
  ;;
5034
 
 
5035
 
hpux10.20* | hpux11*)
5036
 
  lt_cv_file_magic_cmd=/usr/bin/file
5037
 
  case $host_cpu in
5038
 
  ia64*)
5039
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5040
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5041
 
    ;;
5042
 
  hppa*64*)
5043
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
5044
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5045
 
    ;;
5046
 
  *)
5047
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
5048
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5049
 
    ;;
5050
 
  esac
5051
 
  ;;
5052
 
 
5053
 
interix[[3-9]]*)
5054
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5055
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5056
 
  ;;
5057
 
 
5058
 
irix5* | irix6* | nonstopux*)
5059
 
  case $LD in
5060
 
  *-32|*"-32 ") libmagic=32-bit;;
5061
 
  *-n32|*"-n32 ") libmagic=N32;;
5062
 
  *-64|*"-64 ") libmagic=64-bit;;
5063
 
  *) libmagic=never-match;;
5064
 
  esac
5065
 
  lt_cv_deplibs_check_method=pass_all
5066
 
  ;;
5067
 
 
5068
 
# This must be glibc/ELF.
5069
 
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5070
 
  lt_cv_deplibs_check_method=pass_all
5071
 
  ;;
5072
 
 
5073
 
netbsd* | netbsdelf*-gnu)
5074
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5075
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5076
 
  else
5077
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5078
 
  fi
5079
 
  ;;
5080
 
 
5081
 
newos6*)
5082
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5083
 
  lt_cv_file_magic_cmd=/usr/bin/file
5084
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5085
 
  ;;
5086
 
 
5087
 
*nto* | *qnx*)
5088
 
  lt_cv_deplibs_check_method=pass_all
5089
 
  ;;
5090
 
 
5091
 
openbsd*)
5092
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5093
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5094
 
  else
5095
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5096
 
  fi
5097
 
  ;;
5098
 
 
5099
 
osf3* | osf4* | osf5*)
5100
 
  lt_cv_deplibs_check_method=pass_all
5101
 
  ;;
5102
 
 
5103
 
rdos*)
5104
 
  lt_cv_deplibs_check_method=pass_all
5105
 
  ;;
5106
 
 
5107
 
solaris*)
5108
 
  lt_cv_deplibs_check_method=pass_all
5109
 
  ;;
5110
 
 
5111
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5112
 
  lt_cv_deplibs_check_method=pass_all
5113
 
  ;;
5114
 
 
5115
 
sysv4 | sysv4.3*)
5116
 
  case $host_vendor in
5117
 
  motorola)
5118
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
5119
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5120
 
    ;;
5121
 
  ncr)
5122
 
    lt_cv_deplibs_check_method=pass_all
5123
 
    ;;
5124
 
  sequent)
5125
 
    lt_cv_file_magic_cmd='/bin/file'
5126
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
5127
 
    ;;
5128
 
  sni)
5129
 
    lt_cv_file_magic_cmd='/bin/file'
5130
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5131
 
    lt_cv_file_magic_test_file=/lib/libc.so
5132
 
    ;;
5133
 
  siemens)
5134
 
    lt_cv_deplibs_check_method=pass_all
5135
 
    ;;
5136
 
  pc)
5137
 
    lt_cv_deplibs_check_method=pass_all
5138
 
    ;;
5139
 
  esac
5140
 
  ;;
5141
 
 
5142
 
tpf*)
5143
 
  lt_cv_deplibs_check_method=pass_all
5144
 
  ;;
5145
 
esac
5146
 
])
5147
 
 
5148
 
file_magic_glob=
5149
 
want_nocaseglob=no
5150
 
if test "$build" = "$host"; then
5151
 
  case $host_os in
5152
 
  mingw* | pw32*)
5153
 
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5154
 
      want_nocaseglob=yes
5155
 
    else
5156
 
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
5157
 
    fi
5158
 
    ;;
5159
 
  esac
5160
 
fi
5161
 
 
5162
 
file_magic_cmd=$lt_cv_file_magic_cmd
5163
 
deplibs_check_method=$lt_cv_deplibs_check_method
5164
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5165
 
 
5166
 
_LT_DECL([], [deplibs_check_method], [1],
5167
 
    [Method to check whether dependent libraries are shared objects])
5168
 
_LT_DECL([], [file_magic_cmd], [1],
5169
 
    [Command to use when deplibs_check_method = "file_magic"])
5170
 
_LT_DECL([], [file_magic_glob], [1],
5171
 
    [How to find potential files when deplibs_check_method = "file_magic"])
5172
 
_LT_DECL([], [want_nocaseglob], [1],
5173
 
    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
5174
 
])# _LT_CHECK_MAGIC_METHOD
5175
 
 
5176
 
 
5177
 
# LT_PATH_NM
5178
 
# ----------
5179
 
# find the pathname to a BSD- or MS-compatible name lister
5180
 
AC_DEFUN([LT_PATH_NM],
5181
 
[AC_REQUIRE([AC_PROG_CC])dnl
5182
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5183
 
[if test -n "$NM"; then
5184
 
  # Let the user override the test.
5185
 
  lt_cv_path_NM="$NM"
5186
 
else
5187
 
  lt_nm_to_check="${ac_tool_prefix}nm"
5188
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5189
 
    lt_nm_to_check="$lt_nm_to_check nm"
5190
 
  fi
5191
 
  for lt_tmp_nm in $lt_nm_to_check; do
5192
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5193
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5194
 
      IFS="$lt_save_ifs"
5195
 
      test -z "$ac_dir" && ac_dir=.
5196
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
5197
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5198
 
        # Check to see if the nm accepts a BSD-compat flag.
5199
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5200
 
        #   nm: unknown option "B" ignored
5201
 
        # Tru64's nm complains that /dev/null is an invalid object file
5202
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5203
 
        */dev/null* | *'Invalid file or object type'*)
5204
 
          lt_cv_path_NM="$tmp_nm -B"
5205
 
          break
5206
 
          ;;
5207
 
        *)
5208
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5209
 
          */dev/null*)
5210
 
            lt_cv_path_NM="$tmp_nm -p"
5211
 
            break
5212
 
            ;;
5213
 
          *)
5214
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5215
 
            continue # so that we can try to find one that supports BSD flags
5216
 
            ;;
5217
 
          esac
5218
 
          ;;
5219
 
        esac
5220
 
      fi
5221
 
    done
5222
 
    IFS="$lt_save_ifs"
5223
 
  done
5224
 
  : ${lt_cv_path_NM=no}
5225
 
fi])
5226
 
if test "$lt_cv_path_NM" != "no"; then
5227
 
  NM="$lt_cv_path_NM"
5228
 
else
5229
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
5230
 
  if test -n "$DUMPBIN"; then :
5231
 
    # Let the user override the test.
5232
 
  else
5233
 
    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
5234
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5235
 
    *COFF*)
5236
 
      DUMPBIN="$DUMPBIN -symbols"
5237
 
      ;;
5238
 
    *)
5239
 
      DUMPBIN=:
5240
 
      ;;
5241
 
    esac
5242
 
  fi
5243
 
  AC_SUBST([DUMPBIN])
5244
 
  if test "$DUMPBIN" != ":"; then
5245
 
    NM="$DUMPBIN"
5246
 
  fi
5247
 
fi
5248
 
test -z "$NM" && NM=nm
5249
 
AC_SUBST([NM])
5250
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
5251
 
 
5252
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5253
 
  [lt_cv_nm_interface="BSD nm"
5254
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5255
 
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5256
 
  (eval "$ac_compile" 2>conftest.err)
5257
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
5258
 
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5259
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5260
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
5261
 
  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
5262
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
5263
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5264
 
    lt_cv_nm_interface="MS dumpbin"
5265
 
  fi
5266
 
  rm -f conftest*])
5267
 
])# LT_PATH_NM
5268
 
 
5269
 
# Old names:
5270
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
5271
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
5272
 
dnl aclocal-1.4 backwards compatibility:
5273
 
dnl AC_DEFUN([AM_PROG_NM], [])
5274
 
dnl AC_DEFUN([AC_PROG_NM], [])
5275
 
 
5276
 
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5277
 
# --------------------------------
5278
 
# how to determine the name of the shared library
5279
 
# associated with a specific link library.
5280
 
#  -- PORTME fill in with the dynamic library characteristics
5281
 
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
5282
 
[m4_require([_LT_DECL_EGREP])
5283
 
m4_require([_LT_DECL_OBJDUMP])
5284
 
m4_require([_LT_DECL_DLLTOOL])
5285
 
AC_CACHE_CHECK([how to associate runtime and link libraries],
5286
 
lt_cv_sharedlib_from_linklib_cmd,
5287
 
[lt_cv_sharedlib_from_linklib_cmd='unknown'
5288
 
 
5289
 
case $host_os in
5290
 
cygwin* | mingw* | pw32* | cegcc*)
5291
 
  # two different shell functions defined in ltmain.sh
5292
 
  # decide which to use based on capabilities of $DLLTOOL
5293
 
  case `$DLLTOOL --help 2>&1` in
5294
 
  *--identify-strict*)
5295
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5296
 
    ;;
5297
 
  *)
5298
 
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5299
 
    ;;
5300
 
  esac
5301
 
  ;;
5302
 
*)
5303
 
  # fallback: assume linklib IS sharedlib
5304
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5305
 
  ;;
5306
 
esac
5307
 
])
5308
 
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5309
 
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5310
 
 
5311
 
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
5312
 
    [Command to associate shared and link libraries])
5313
 
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5314
 
 
5315
 
 
5316
 
# _LT_PATH_MANIFEST_TOOL
5317
 
# ----------------------
5318
 
# locate the manifest tool
5319
 
m4_defun([_LT_PATH_MANIFEST_TOOL],
5320
 
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
5321
 
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5322
 
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
5323
 
  [lt_cv_path_mainfest_tool=no
5324
 
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
5325
 
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5326
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
5327
 
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5328
 
    lt_cv_path_mainfest_tool=yes
5329
 
  fi
5330
 
  rm -f conftest*])
5331
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
5332
 
  MANIFEST_TOOL=:
5333
 
fi
5334
 
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
5335
 
])# _LT_PATH_MANIFEST_TOOL
5336
 
 
5337
 
 
5338
 
# LT_LIB_M
5339
 
# --------
5340
 
# check for math library
5341
 
AC_DEFUN([LT_LIB_M],
5342
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5343
 
LIBM=
5344
 
case $host in
5345
 
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
5346
 
  # These system don't have libm, or don't need it
5347
 
  ;;
5348
 
*-ncr-sysv4.3*)
5349
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
5350
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5351
 
  ;;
5352
 
*)
5353
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
5354
 
  ;;
5355
 
esac
5356
 
AC_SUBST([LIBM])
5357
 
])# LT_LIB_M
5358
 
 
5359
 
# Old name:
5360
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5361
 
dnl aclocal-1.4 backwards compatibility:
5362
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
5363
 
 
5364
 
 
5365
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
5366
 
# -------------------------------
5367
 
m4_defun([_LT_COMPILER_NO_RTTI],
5368
 
[m4_require([_LT_TAG_COMPILER])dnl
5369
 
 
5370
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5371
 
 
5372
 
if test "$GCC" = yes; then
5373
 
  case $cc_basename in
5374
 
  nvcc*)
5375
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
5376
 
  *)
5377
 
    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
5378
 
  esac
5379
 
 
5380
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5381
 
    lt_cv_prog_compiler_rtti_exceptions,
5382
 
    [-fno-rtti -fno-exceptions], [],
5383
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5384
 
fi
5385
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5386
 
        [Compiler flag to turn off builtin functions])
5387
 
])# _LT_COMPILER_NO_RTTI
5388
 
 
5389
 
 
5390
 
# _LT_CMD_GLOBAL_SYMBOLS
5391
 
# ----------------------
5392
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5393
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
5394
 
AC_REQUIRE([AC_PROG_CC])dnl
5395
 
AC_REQUIRE([AC_PROG_AWK])dnl
5396
 
AC_REQUIRE([LT_PATH_NM])dnl
5397
 
AC_REQUIRE([LT_PATH_LD])dnl
5398
 
m4_require([_LT_DECL_SED])dnl
5399
 
m4_require([_LT_DECL_EGREP])dnl
5400
 
m4_require([_LT_TAG_COMPILER])dnl
5401
 
 
5402
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5403
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5404
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5405
 
[
5406
 
# These are sane defaults that work on at least a few old systems.
5407
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5408
 
 
5409
 
# Character class describing NM global symbol codes.
5410
 
symcode='[[BCDEGRST]]'
5411
 
 
5412
 
# Regexp to match symbols that can be accessed directly from C.
5413
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5414
 
 
5415
 
# Define system-specific variables.
5416
 
case $host_os in
5417
 
aix*)
5418
 
  symcode='[[BCDT]]'
5419
 
  ;;
5420
 
cygwin* | mingw* | pw32* | cegcc*)
5421
 
  symcode='[[ABCDGISTW]]'
5422
 
  ;;
5423
 
hpux*)
5424
 
  if test "$host_cpu" = ia64; then
5425
 
    symcode='[[ABCDEGRST]]'
5426
 
  fi
5427
 
  ;;
5428
 
irix* | nonstopux*)
5429
 
  symcode='[[BCDEGRST]]'
5430
 
  ;;
5431
 
osf*)
5432
 
  symcode='[[BCDEGQRST]]'
5433
 
  ;;
5434
 
solaris*)
5435
 
  symcode='[[BDRT]]'
5436
 
  ;;
5437
 
sco3.2v5*)
5438
 
  symcode='[[DT]]'
5439
 
  ;;
5440
 
sysv4.2uw2*)
5441
 
  symcode='[[DT]]'
5442
 
  ;;
5443
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5444
 
  symcode='[[ABDT]]'
5445
 
  ;;
5446
 
sysv4)
5447
 
  symcode='[[DFNSTU]]'
5448
 
  ;;
5449
 
esac
5450
 
 
5451
 
# If we're using GNU nm, then use its standard symbol codes.
5452
 
case `$NM -V 2>&1` in
5453
 
*GNU* | *'with BFD'*)
5454
 
  symcode='[[ABCDGIRSTW]]' ;;
5455
 
esac
5456
 
 
5457
 
# Transform an extracted symbol line into a proper C declaration.
5458
 
# Some systems (esp. on ia64) link data and code symbols differently,
5459
 
# so use this general approach.
5460
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5461
 
 
5462
 
# Transform an extracted symbol line into symbol name and symbol address
5463
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
5464
 
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'"
5465
 
 
5466
 
# Handle CRLF in mingw tool chain
5467
 
opt_cr=
5468
 
case $build_os in
5469
 
mingw*)
5470
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5471
 
  ;;
5472
 
esac
5473
 
 
5474
 
# Try without a prefix underscore, then with it.
5475
 
for ac_symprfx in "" "_"; do
5476
 
 
5477
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5478
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5479
 
 
5480
 
  # Write the raw and C identifiers.
5481
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5482
 
    # Fake it for dumpbin and say T for any non-static function
5483
 
    # and D for any global variable.
5484
 
    # Also find C++ and __fastcall symbols from MSVC++,
5485
 
    # which start with @ or ?.
5486
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
5487
 
"     {last_section=section; section=\$ 3};"\
5488
 
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5489
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5490
 
"     \$ 0!~/External *\|/{next};"\
5491
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5492
 
"     {if(hide[section]) next};"\
5493
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5494
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5495
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5496
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5497
 
"     ' prfx=^$ac_symprfx]"
5498
 
  else
5499
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5500
 
  fi
5501
 
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5502
 
 
5503
 
  # Check to see that the pipe works correctly.
5504
 
  pipe_works=no
5505
 
 
5506
 
  rm -f conftest*
5507
 
  cat > conftest.$ac_ext <<_LT_EOF
5508
 
#ifdef __cplusplus
5509
 
extern "C" {
5510
 
#endif
5511
 
char nm_test_var;
5512
 
void nm_test_func(void);
5513
 
void nm_test_func(void){}
5514
 
#ifdef __cplusplus
5515
 
}
5516
 
#endif
5517
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5518
 
_LT_EOF
5519
 
 
5520
 
  if AC_TRY_EVAL(ac_compile); then
5521
 
    # Now try to grab the symbols.
5522
 
    nlist=conftest.nm
5523
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
5524
 
      # Try sorting and uniquifying the output.
5525
 
      if sort "$nlist" | uniq > "$nlist"T; then
5526
 
        mv -f "$nlist"T "$nlist"
5527
 
      else
5528
 
        rm -f "$nlist"T
5529
 
      fi
5530
 
 
5531
 
      # Make sure that we snagged all the symbols we need.
5532
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5533
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5534
 
          cat <<_LT_EOF > conftest.$ac_ext
5535
 
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5536
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5537
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
5538
 
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5539
 
# define LT@&t@_DLSYM_CONST
5540
 
#elif defined(__osf__)
5541
 
/* This system does not cope well with relocations in const data.  */
5542
 
# define LT@&t@_DLSYM_CONST
5543
 
#else
5544
 
# define LT@&t@_DLSYM_CONST const
5545
 
#endif
5546
 
 
5547
 
#ifdef __cplusplus
5548
 
extern "C" {
5549
 
#endif
5550
 
 
5551
 
_LT_EOF
5552
 
          # Now generate the symbol file.
5553
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5554
 
 
5555
 
          cat <<_LT_EOF >> conftest.$ac_ext
5556
 
 
5557
 
/* The mapping between symbol names and symbols.  */
5558
 
LT@&t@_DLSYM_CONST struct {
5559
 
  const char *name;
5560
 
  void       *address;
5561
 
}
5562
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5563
 
{
5564
 
  { "@PROGRAM@", (void *) 0 },
5565
 
_LT_EOF
5566
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5567
 
          cat <<\_LT_EOF >> conftest.$ac_ext
5568
 
  {0, (void *) 0}
5569
 
};
5570
 
 
5571
 
/* This works around a problem in FreeBSD linker */
5572
 
#ifdef FREEBSD_WORKAROUND
5573
 
static const void *lt_preloaded_setup() {
5574
 
  return lt__PROGRAM__LTX_preloaded_symbols;
5575
 
}
5576
 
#endif
5577
 
 
5578
 
#ifdef __cplusplus
5579
 
}
5580
 
#endif
5581
 
_LT_EOF
5582
 
          # Now try linking the two files.
5583
 
          mv conftest.$ac_objext conftstm.$ac_objext
5584
 
          lt_globsym_save_LIBS=$LIBS
5585
 
          lt_globsym_save_CFLAGS=$CFLAGS
5586
 
          LIBS="conftstm.$ac_objext"
5587
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5588
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5589
 
            pipe_works=yes
5590
 
          fi
5591
 
          LIBS=$lt_globsym_save_LIBS
5592
 
          CFLAGS=$lt_globsym_save_CFLAGS
5593
 
        else
5594
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5595
 
        fi
5596
 
      else
5597
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5598
 
      fi
5599
 
    else
5600
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5601
 
    fi
5602
 
  else
5603
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5604
 
    cat conftest.$ac_ext >&5
5605
 
  fi
5606
 
  rm -rf conftest* conftst*
5607
 
 
5608
 
  # Do not use the global_symbol_pipe unless it works.
5609
 
  if test "$pipe_works" = yes; then
5610
 
    break
5611
 
  else
5612
 
    lt_cv_sys_global_symbol_pipe=
5613
 
  fi
5614
 
done
5615
 
])
5616
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5617
 
  lt_cv_sys_global_symbol_to_cdecl=
5618
 
fi
5619
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5620
 
  AC_MSG_RESULT(failed)
5621
 
else
5622
 
  AC_MSG_RESULT(ok)
5623
 
fi
5624
 
 
5625
 
# Response file support.
5626
 
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5627
 
  nm_file_list_spec='@'
5628
 
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
5629
 
  nm_file_list_spec='@'
5630
 
fi
5631
 
 
5632
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5633
 
    [Take the output of nm and produce a listing of raw symbols and C names])
5634
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5635
 
    [Transform the output of nm in a proper C declaration])
5636
 
_LT_DECL([global_symbol_to_c_name_address],
5637
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
5638
 
    [Transform the output of nm in a C name address pair])
5639
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5640
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5641
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
5642
 
_LT_DECL([], [nm_file_list_spec], [1],
5643
 
    [Specify filename containing input files for $NM])
5644
 
]) # _LT_CMD_GLOBAL_SYMBOLS
5645
 
 
5646
 
 
5647
 
# _LT_COMPILER_PIC([TAGNAME])
5648
 
# ---------------------------
5649
 
m4_defun([_LT_COMPILER_PIC],
5650
 
[m4_require([_LT_TAG_COMPILER])dnl
5651
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
5652
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5653
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5654
 
 
5655
 
m4_if([$1], [CXX], [
5656
 
  # C++ specific cases for pic, static, wl, etc.
5657
 
  if test "$GXX" = yes; then
5658
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5659
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5660
 
 
5661
 
    case $host_os in
5662
 
    aix*)
5663
 
      # All AIX code is PIC.
5664
 
      if test "$host_cpu" = ia64; then
5665
 
        # AIX 5 now supports IA64 processor
5666
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5667
 
      fi
5668
 
      ;;
5669
 
 
5670
 
    amigaos*)
5671
 
      case $host_cpu in
5672
 
      powerpc)
5673
 
            # see comment about AmigaOS4 .so support
5674
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5675
 
        ;;
5676
 
      m68k)
5677
 
            # FIXME: we need at least 68020 code to build shared libraries, but
5678
 
            # adding the `-m68020' flag to GCC prevents building anything better,
5679
 
            # like `-m68040'.
5680
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5681
 
        ;;
5682
 
      esac
5683
 
      ;;
5684
 
 
5685
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5686
 
      # PIC is the default for these OSes.
5687
 
      ;;
5688
 
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5689
 
      # This hack is so that the source file can tell whether it is being
5690
 
      # built for inclusion in a dll (and should export symbols for example).
5691
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5692
 
      # (--disable-auto-import) libraries
5693
 
      m4_if([$1], [GCJ], [],
5694
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5695
 
      ;;
5696
 
    darwin* | rhapsody*)
5697
 
      # PIC is the default on this platform
5698
 
      # Common symbols not allowed in MH_DYLIB files
5699
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5700
 
      ;;
5701
 
    *djgpp*)
5702
 
      # DJGPP does not support shared libraries at all
5703
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5704
 
      ;;
5705
 
    haiku*)
5706
 
      # PIC is the default for Haiku.
5707
 
      # The "-static" flag exists, but is broken.
5708
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
5709
 
      ;;
5710
 
    interix[[3-9]]*)
5711
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5712
 
      # Instead, we relocate shared libraries at runtime.
5713
 
      ;;
5714
 
    sysv4*MP*)
5715
 
      if test -d /usr/nec; then
5716
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5717
 
      fi
5718
 
      ;;
5719
 
    hpux*)
5720
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5721
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
5722
 
      # sets the default TLS model and affects inlining.
5723
 
      case $host_cpu in
5724
 
      hppa*64*)
5725
 
        ;;
5726
 
      *)
5727
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5728
 
        ;;
5729
 
      esac
5730
 
      ;;
5731
 
    *qnx* | *nto*)
5732
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
5733
 
      # it will coredump.
5734
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5735
 
      ;;
5736
 
    *)
5737
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5738
 
      ;;
5739
 
    esac
5740
 
  else
5741
 
    case $host_os in
5742
 
      aix[[4-9]]*)
5743
 
        # All AIX code is PIC.
5744
 
        if test "$host_cpu" = ia64; then
5745
 
          # AIX 5 now supports IA64 processor
5746
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5747
 
        else
5748
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5749
 
        fi
5750
 
        ;;
5751
 
      chorus*)
5752
 
        case $cc_basename in
5753
 
        cxch68*)
5754
 
          # Green Hills C++ Compiler
5755
 
          # _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"
5756
 
          ;;
5757
 
        esac
5758
 
        ;;
5759
 
      mingw* | cygwin* | os2* | pw32* | cegcc*)
5760
 
        # This hack is so that the source file can tell whether it is being
5761
 
        # built for inclusion in a dll (and should export symbols for example).
5762
 
        m4_if([$1], [GCJ], [],
5763
 
          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5764
 
        ;;
5765
 
      dgux*)
5766
 
        case $cc_basename in
5767
 
          ec++*)
5768
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5769
 
            ;;
5770
 
          ghcx*)
5771
 
            # Green Hills C++ Compiler
5772
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5773
 
            ;;
5774
 
          *)
5775
 
            ;;
5776
 
        esac
5777
 
        ;;
5778
 
      freebsd* | dragonfly*)
5779
 
        # FreeBSD uses GNU C++
5780
 
        ;;
5781
 
      hpux9* | hpux10* | hpux11*)
5782
 
        case $cc_basename in
5783
 
          CC*)
5784
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5785
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5786
 
            if test "$host_cpu" != ia64; then
5787
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5788
 
            fi
5789
 
            ;;
5790
 
          aCC*)
5791
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5792
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5793
 
            case $host_cpu in
5794
 
            hppa*64*|ia64*)
5795
 
              # +Z the default
5796
 
              ;;
5797
 
            *)
5798
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5799
 
              ;;
5800
 
            esac
5801
 
            ;;
5802
 
          *)
5803
 
            ;;
5804
 
        esac
5805
 
        ;;
5806
 
      interix*)
5807
 
        # This is c89, which is MS Visual C++ (no shared libs)
5808
 
        # Anyone wants to do a port?
5809
 
        ;;
5810
 
      irix5* | irix6* | nonstopux*)
5811
 
        case $cc_basename in
5812
 
          CC*)
5813
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5814
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5815
 
            # CC pic flag -KPIC is the default.
5816
 
            ;;
5817
 
          *)
5818
 
            ;;
5819
 
        esac
5820
 
        ;;
5821
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5822
 
        case $cc_basename in
5823
 
          KCC*)
5824
 
            # KAI C++ Compiler
5825
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5826
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5827
 
            ;;
5828
 
          ecpc* )
5829
 
            # old Intel C++ for x86_64 which still supported -KPIC.
5830
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5831
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5832
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5833
 
            ;;
5834
 
          icpc* )
5835
 
            # Intel C++, used to be incompatible with GCC.
5836
 
            # ICC 10 doesn't accept -KPIC any more.
5837
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5838
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5839
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5840
 
            ;;
5841
 
          pgCC* | pgcpp*)
5842
 
            # Portland Group C++ compiler
5843
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5844
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5845
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5846
 
            ;;
5847
 
          cxx*)
5848
 
            # Compaq C++
5849
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5850
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5851
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5852
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5853
 
            ;;
5854
 
          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
5855
 
            # IBM XL 8.0, 9.0 on PPC and BlueGene
5856
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5857
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5858
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5859
 
            ;;
5860
 
          *)
5861
 
            case `$CC -V 2>&1 | sed 5q` in
5862
 
            *Sun\ C*)
5863
 
              # Sun C++ 5.9
5864
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5865
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5866
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5867
 
              ;;
5868
 
            esac
5869
 
            ;;
5870
 
        esac
5871
 
        ;;
5872
 
      lynxos*)
5873
 
        ;;
5874
 
      m88k*)
5875
 
        ;;
5876
 
      mvs*)
5877
 
        case $cc_basename in
5878
 
          cxx*)
5879
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5880
 
            ;;
5881
 
          *)
5882
 
            ;;
5883
 
        esac
5884
 
        ;;
5885
 
      netbsd* | netbsdelf*-gnu)
5886
 
        ;;
5887
 
      *qnx* | *nto*)
5888
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
5889
 
        # it will coredump.
5890
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5891
 
        ;;
5892
 
      osf3* | osf4* | osf5*)
5893
 
        case $cc_basename in
5894
 
          KCC*)
5895
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5896
 
            ;;
5897
 
          RCC*)
5898
 
            # Rational C++ 2.4.1
5899
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5900
 
            ;;
5901
 
          cxx*)
5902
 
            # Digital/Compaq C++
5903
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5904
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5905
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5906
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5907
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5908
 
            ;;
5909
 
          *)
5910
 
            ;;
5911
 
        esac
5912
 
        ;;
5913
 
      psos*)
5914
 
        ;;
5915
 
      solaris*)
5916
 
        case $cc_basename in
5917
 
          CC* | sunCC*)
5918
 
            # Sun C++ 4.2, 5.x and Centerline C++
5919
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5920
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5921
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5922
 
            ;;
5923
 
          gcx*)
5924
 
            # Green Hills C++ Compiler
5925
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5926
 
            ;;
5927
 
          *)
5928
 
            ;;
5929
 
        esac
5930
 
        ;;
5931
 
      sunos4*)
5932
 
        case $cc_basename in
5933
 
          CC*)
5934
 
            # Sun C++ 4.x
5935
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5936
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5937
 
            ;;
5938
 
          lcc*)
5939
 
            # Lucid
5940
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5941
 
            ;;
5942
 
          *)
5943
 
            ;;
5944
 
        esac
5945
 
        ;;
5946
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5947
 
        case $cc_basename in
5948
 
          CC*)
5949
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5950
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5951
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5952
 
            ;;
5953
 
        esac
5954
 
        ;;
5955
 
      tandem*)
5956
 
        case $cc_basename in
5957
 
          NCC*)
5958
 
            # NonStop-UX NCC 3.20
5959
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5960
 
            ;;
5961
 
          *)
5962
 
            ;;
5963
 
        esac
5964
 
        ;;
5965
 
      vxworks*)
5966
 
        ;;
5967
 
      *)
5968
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5969
 
        ;;
5970
 
    esac
5971
 
  fi
5972
 
],
5973
 
[
5974
 
  if test "$GCC" = yes; then
5975
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5976
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5977
 
 
5978
 
    case $host_os in
5979
 
      aix*)
5980
 
      # All AIX code is PIC.
5981
 
      if test "$host_cpu" = ia64; then
5982
 
        # AIX 5 now supports IA64 processor
5983
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5984
 
      fi
5985
 
      ;;
5986
 
 
5987
 
    amigaos*)
5988
 
      case $host_cpu in
5989
 
      powerpc)
5990
 
            # see comment about AmigaOS4 .so support
5991
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5992
 
        ;;
5993
 
      m68k)
5994
 
            # FIXME: we need at least 68020 code to build shared libraries, but
5995
 
            # adding the `-m68020' flag to GCC prevents building anything better,
5996
 
            # like `-m68040'.
5997
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5998
 
        ;;
5999
 
      esac
6000
 
      ;;
6001
 
 
6002
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6003
 
      # PIC is the default for these OSes.
6004
 
      ;;
6005
 
 
6006
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6007
 
      # This hack is so that the source file can tell whether it is being
6008
 
      # built for inclusion in a dll (and should export symbols for example).
6009
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6010
 
      # (--disable-auto-import) libraries
6011
 
      m4_if([$1], [GCJ], [],
6012
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6013
 
      ;;
6014
 
 
6015
 
    darwin* | rhapsody*)
6016
 
      # PIC is the default on this platform
6017
 
      # Common symbols not allowed in MH_DYLIB files
6018
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6019
 
      ;;
6020
 
 
6021
 
    haiku*)
6022
 
      # PIC is the default for Haiku.
6023
 
      # The "-static" flag exists, but is broken.
6024
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)=
6025
 
      ;;
6026
 
 
6027
 
    hpux*)
6028
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6029
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6030
 
      # sets the default TLS model and affects inlining.
6031
 
      case $host_cpu in
6032
 
      hppa*64*)
6033
 
        # +Z the default
6034
 
        ;;
6035
 
      *)
6036
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6037
 
        ;;
6038
 
      esac
6039
 
      ;;
6040
 
 
6041
 
    interix[[3-9]]*)
6042
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6043
 
      # Instead, we relocate shared libraries at runtime.
6044
 
      ;;
6045
 
 
6046
 
    msdosdjgpp*)
6047
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6048
 
      # on systems that don't support them.
6049
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6050
 
      enable_shared=no
6051
 
      ;;
6052
 
 
6053
 
    *nto* | *qnx*)
6054
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6055
 
      # it will coredump.
6056
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6057
 
      ;;
6058
 
 
6059
 
    sysv4*MP*)
6060
 
      if test -d /usr/nec; then
6061
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6062
 
      fi
6063
 
      ;;
6064
 
 
6065
 
    *)
6066
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6067
 
      ;;
6068
 
    esac
6069
 
 
6070
 
    case $cc_basename in
6071
 
    nvcc*) # Cuda Compiler Driver 2.2
6072
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6073
 
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6074
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6075
 
      fi
6076
 
      ;;
6077
 
    esac
6078
 
  else
6079
 
    # PORTME Check for flag to pass linker flags through the system compiler.
6080
 
    case $host_os in
6081
 
    aix*)
6082
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6083
 
      if test "$host_cpu" = ia64; then
6084
 
        # AIX 5 now supports IA64 processor
6085
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6086
 
      else
6087
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6088
 
      fi
6089
 
      ;;
6090
 
 
6091
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6092
 
      # This hack is so that the source file can tell whether it is being
6093
 
      # built for inclusion in a dll (and should export symbols for example).
6094
 
      m4_if([$1], [GCJ], [],
6095
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6096
 
      ;;
6097
 
 
6098
 
    hpux9* | hpux10* | hpux11*)
6099
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6100
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6101
 
      # not for PA HP-UX.
6102
 
      case $host_cpu in
6103
 
      hppa*64*|ia64*)
6104
 
        # +Z the default
6105
 
        ;;
6106
 
      *)
6107
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6108
 
        ;;
6109
 
      esac
6110
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6111
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6112
 
      ;;
6113
 
 
6114
 
    irix5* | irix6* | nonstopux*)
6115
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6116
 
      # PIC (with -KPIC) is the default.
6117
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6118
 
      ;;
6119
 
 
6120
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6121
 
      case $cc_basename in
6122
 
      # old Intel for x86_64 which still supported -KPIC.
6123
 
      ecc*)
6124
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6125
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6126
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6127
 
        ;;
6128
 
      # icc used to be incompatible with GCC.
6129
 
      # ICC 10 doesn't accept -KPIC any more.
6130
 
      icc* | ifort*)
6131
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6132
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6133
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6134
 
        ;;
6135
 
      # Lahey Fortran 8.1.
6136
 
      lf95*)
6137
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6138
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6139
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6140
 
        ;;
6141
 
      nagfor*)
6142
 
        # NAG Fortran compiler
6143
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6144
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6145
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6146
 
        ;;
6147
 
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6148
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
6149
 
        # which looks to be a dead project)
6150
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6152
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6153
 
        ;;
6154
 
      ccc*)
6155
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6156
 
        # All Alpha code is PIC.
6157
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6158
 
        ;;
6159
 
      xl* | bgxl* | bgf* | mpixl*)
6160
 
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6161
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6162
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6163
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6164
 
        ;;
6165
 
      *)
6166
 
        case `$CC -V 2>&1 | sed 5q` in
6167
 
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
6168
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6169
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6170
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6171
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6172
 
          ;;
6173
 
        *Sun\ F* | *Sun*Fortran*)
6174
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6175
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6176
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6177
 
          ;;
6178
 
        *Sun\ C*)
6179
 
          # Sun C 5.9
6180
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6181
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6182
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6183
 
          ;;
6184
 
        *Intel*\ [[CF]]*Compiler*)
6185
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6186
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6187
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6188
 
          ;;
6189
 
        *Portland\ Group*)
6190
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6191
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6192
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6193
 
          ;;
6194
 
        esac
6195
 
        ;;
6196
 
      esac
6197
 
      ;;
6198
 
 
6199
 
    newsos6)
6200
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6201
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6202
 
      ;;
6203
 
 
6204
 
    *nto* | *qnx*)
6205
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6206
 
      # it will coredump.
6207
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6208
 
      ;;
6209
 
 
6210
 
    osf3* | osf4* | osf5*)
6211
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6212
 
      # All OSF/1 code is PIC.
6213
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6214
 
      ;;
6215
 
 
6216
 
    rdos*)
6217
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6218
 
      ;;
6219
 
 
6220
 
    solaris*)
6221
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6222
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6223
 
      case $cc_basename in
6224
 
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6225
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6226
 
      *)
6227
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6228
 
      esac
6229
 
      ;;
6230
 
 
6231
 
    sunos4*)
6232
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6233
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6234
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6235
 
      ;;
6236
 
 
6237
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
6238
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6239
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6240
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6241
 
      ;;
6242
 
 
6243
 
    sysv4*MP*)
6244
 
      if test -d /usr/nec ;then
6245
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6246
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6247
 
      fi
6248
 
      ;;
6249
 
 
6250
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6251
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6252
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6253
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6254
 
      ;;
6255
 
 
6256
 
    unicos*)
6257
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6258
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6259
 
      ;;
6260
 
 
6261
 
    uts4*)
6262
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6263
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6264
 
      ;;
6265
 
 
6266
 
    *)
6267
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6268
 
      ;;
6269
 
    esac
6270
 
  fi
6271
 
])
6272
 
case $host_os in
6273
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6274
 
  *djgpp*)
6275
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6276
 
    ;;
6277
 
  *)
6278
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6279
 
    ;;
6280
 
esac
6281
 
 
6282
 
AC_CACHE_CHECK([for $compiler option to produce PIC],
6283
 
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
6284
 
  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6285
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
6286
 
 
6287
 
#
6288
 
# Check to make sure the PIC flag actually works.
6289
 
#
6290
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6291
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6292
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6293
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6294
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6295
 
     "" | " "*) ;;
6296
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6297
 
     esac],
6298
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6299
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6300
 
fi
6301
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6302
 
        [Additional compiler flags for building library objects])
6303
 
 
6304
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6305
 
        [How to pass a linker flag through the compiler])
6306
 
#
6307
 
# Check to make sure the static flag actually works.
6308
 
#
6309
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
6310
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6311
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6312
 
  $lt_tmp_static_flag,
6313
 
  [],
6314
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
6315
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
6316
 
        [Compiler flag to prevent dynamic linking])
6317
 
])# _LT_COMPILER_PIC
6318
 
 
6319
 
 
6320
 
# _LT_LINKER_SHLIBS([TAGNAME])
6321
 
# ----------------------------
6322
 
# See if the linker supports building shared libraries.
6323
 
m4_defun([_LT_LINKER_SHLIBS],
6324
 
[AC_REQUIRE([LT_PATH_LD])dnl
6325
 
AC_REQUIRE([LT_PATH_NM])dnl
6326
 
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6327
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6328
 
m4_require([_LT_DECL_EGREP])dnl
6329
 
m4_require([_LT_DECL_SED])dnl
6330
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6331
 
m4_require([_LT_TAG_COMPILER])dnl
6332
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6333
 
m4_if([$1], [CXX], [
6334
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6335
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6336
 
  case $host_os in
6337
 
  aix[[4-9]]*)
6338
 
    # If we're using GNU nm, then we don't want the "-C" option.
6339
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6340
 
    # Also, AIX nm treats weak defined symbols like other global defined
6341
 
    # symbols, whereas GNU nm marks them as "W".
6342
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6343
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6344
 
    else
6345
 
      _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'
6346
 
    fi
6347
 
    ;;
6348
 
  pw32*)
6349
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6350
 
    ;;
6351
 
  cygwin* | mingw* | cegcc*)
6352
 
    case $cc_basename in
6353
 
    cl*)
6354
 
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6355
 
      ;;
6356
 
    *)
6357
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6358
 
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6359
 
      ;;
6360
 
    esac
6361
 
    ;;
6362
 
  linux* | k*bsd*-gnu | gnu*)
6363
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
6364
 
    ;;
6365
 
  *)
6366
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6367
 
    ;;
6368
 
  esac
6369
 
], [
6370
 
  runpath_var=
6371
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
6372
 
  _LT_TAGVAR(always_export_symbols, $1)=no
6373
 
  _LT_TAGVAR(archive_cmds, $1)=
6374
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
6375
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
6376
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6377
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6378
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6379
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
6380
 
  _LT_TAGVAR(hardcode_direct, $1)=no
6381
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6382
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6383
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
6384
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
6385
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6386
 
  _LT_TAGVAR(inherit_rpath, $1)=no
6387
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
6388
 
  _LT_TAGVAR(module_cmds, $1)=
6389
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
6390
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
6391
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6392
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
6393
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6394
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6395
 
  # included in the symbol list
6396
 
  _LT_TAGVAR(include_expsyms, $1)=
6397
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6398
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6399
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6400
 
  # as well as any symbol that contains `d'.
6401
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6402
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6403
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6404
 
  # the symbol is explicitly referenced.  Since portable code cannot
6405
 
  # rely on this symbol name, it's probably fine to never include it in
6406
 
  # preloaded symbol tables.
6407
 
  # Exclude shared library initialization/finalization symbols.
6408
 
dnl Note also adjust exclude_expsyms for C++ above.
6409
 
  extract_expsyms_cmds=
6410
 
 
6411
 
  case $host_os in
6412
 
  cygwin* | mingw* | pw32* | cegcc*)
6413
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6414
 
    # When not using gcc, we currently assume that we are using
6415
 
    # Microsoft Visual C++.
6416
 
    if test "$GCC" != yes; then
6417
 
      with_gnu_ld=no
6418
 
    fi
6419
 
    ;;
6420
 
  interix*)
6421
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6422
 
    with_gnu_ld=yes
6423
 
    ;;
6424
 
  openbsd*)
6425
 
    with_gnu_ld=no
6426
 
    ;;
6427
 
  linux* | k*bsd*-gnu | gnu*)
6428
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
6429
 
    ;;
6430
 
  esac
6431
 
 
6432
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
6433
 
 
6434
 
  # On some targets, GNU ld is compatible enough with the native linker
6435
 
  # that we're better off using the native interface for both.
6436
 
  lt_use_gnu_ld_interface=no
6437
 
  if test "$with_gnu_ld" = yes; then
6438
 
    case $host_os in
6439
 
      aix*)
6440
 
        # The AIX port of GNU ld has always aspired to compatibility
6441
 
        # with the native linker.  However, as the warning in the GNU ld
6442
 
        # block says, versions before 2.19.5* couldn't really create working
6443
 
        # shared libraries, regardless of the interface used.
6444
 
        case `$LD -v 2>&1` in
6445
 
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
6446
 
          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
6447
 
          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
6448
 
          *)
6449
 
            lt_use_gnu_ld_interface=yes
6450
 
            ;;
6451
 
        esac
6452
 
        ;;
6453
 
      *)
6454
 
        lt_use_gnu_ld_interface=yes
6455
 
        ;;
6456
 
    esac
6457
 
  fi
6458
 
 
6459
 
  if test "$lt_use_gnu_ld_interface" = yes; then
6460
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6461
 
    wlarc='${wl}'
6462
 
 
6463
 
    # Set some defaults for GNU ld with shared library support. These
6464
 
    # are reset later if shared libraries are not supported. Putting them
6465
 
    # here allows them to be overridden if necessary.
6466
 
    runpath_var=LD_RUN_PATH
6467
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6468
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6469
 
    # ancient GNU ld didn't support --whole-archive et. al.
6470
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6471
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6472
 
    else
6473
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6474
 
    fi
6475
 
    supports_anon_versioning=no
6476
 
    case `$LD -v 2>&1` in
6477
 
      *GNU\ gold*) supports_anon_versioning=yes ;;
6478
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6479
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6480
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6481
 
      *\ 2.11.*) ;; # other 2.11 versions
6482
 
      *) supports_anon_versioning=yes ;;
6483
 
    esac
6484
 
 
6485
 
    # See if GNU ld supports shared libraries.
6486
 
    case $host_os in
6487
 
    aix[[3-9]]*)
6488
 
      # On AIX/PPC, the GNU linker is very broken
6489
 
      if test "$host_cpu" != ia64; then
6490
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6491
 
        cat <<_LT_EOF 1>&2
6492
 
 
6493
 
*** Warning: the GNU linker, at least up to release 2.19, is reported
6494
 
*** to be unable to reliably create shared libraries on AIX.
6495
 
*** Therefore, libtool is disabling shared libraries support.  If you
6496
 
*** really care for shared libraries, you may want to install binutils
6497
 
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
6498
 
*** You will then need to restart the configuration process.
6499
 
 
6500
 
_LT_EOF
6501
 
      fi
6502
 
      ;;
6503
 
 
6504
 
    amigaos*)
6505
 
      case $host_cpu in
6506
 
      powerpc)
6507
 
            # see comment about AmigaOS4 .so support
6508
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6509
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
6510
 
        ;;
6511
 
      m68k)
6512
 
            _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)'
6513
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6514
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6515
 
        ;;
6516
 
      esac
6517
 
      ;;
6518
 
 
6519
 
    beos*)
6520
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6521
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6522
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6523
 
        # support --undefined.  This deserves some investigation.  FIXME
6524
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6525
 
      else
6526
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6527
 
      fi
6528
 
      ;;
6529
 
 
6530
 
    cygwin* | mingw* | pw32* | cegcc*)
6531
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6532
 
      # as there is no search path for DLLs.
6533
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6534
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6535
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6536
 
      _LT_TAGVAR(always_export_symbols, $1)=no
6537
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6538
 
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6539
 
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6540
 
 
6541
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6542
 
        _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'
6543
 
        # If the export-symbols file already is a .def file (1st line
6544
 
        # is EXPORTS), use it as is; otherwise, prepend...
6545
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6546
 
          cp $export_symbols $output_objdir/$soname.def;
6547
 
        else
6548
 
          echo EXPORTS > $output_objdir/$soname.def;
6549
 
          cat $export_symbols >> $output_objdir/$soname.def;
6550
 
        fi~
6551
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6552
 
      else
6553
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6554
 
      fi
6555
 
      ;;
6556
 
 
6557
 
    haiku*)
6558
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6559
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6560
 
      ;;
6561
 
 
6562
 
    interix[[3-9]]*)
6563
 
      _LT_TAGVAR(hardcode_direct, $1)=no
6564
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6565
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6566
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6567
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6568
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6569
 
      # default) and relocated if they conflict, which is a slow very memory
6570
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
6571
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6572
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6573
 
      _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'
6574
 
      _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'
6575
 
      ;;
6576
 
 
6577
 
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
6578
 
      tmp_diet=no
6579
 
      if test "$host_os" = linux-dietlibc; then
6580
 
        case $cc_basename in
6581
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6582
 
        esac
6583
 
      fi
6584
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6585
 
         && test "$tmp_diet" = no
6586
 
      then
6587
 
        tmp_addflag=' $pic_flag'
6588
 
        tmp_sharedflag='-shared'
6589
 
        case $cc_basename,$host_cpu in
6590
 
        pgcc*)                          # Portland Group C compiler
6591
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6592
 
          tmp_addflag=' $pic_flag'
6593
 
          ;;
6594
 
        pgf77* | pgf90* | pgf95* | pgfortran*)
6595
 
                                        # Portland Group f77 and f90 compilers
6596
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6597
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
6598
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6599
 
          tmp_addflag=' -i_dynamic' ;;
6600
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6601
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6602
 
        ifc* | ifort*)                  # Intel Fortran compiler
6603
 
          tmp_addflag=' -nofor_main' ;;
6604
 
        lf95*)                          # Lahey Fortran 8.1
6605
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6606
 
          tmp_sharedflag='--shared' ;;
6607
 
        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6608
 
          tmp_sharedflag='-qmkshrobj'
6609
 
          tmp_addflag= ;;
6610
 
        nvcc*)  # Cuda Compiler Driver 2.2
6611
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6612
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6613
 
          ;;
6614
 
        esac
6615
 
        case `$CC -V 2>&1 | sed 5q` in
6616
 
        *Sun\ C*)                       # Sun C 5.9
6617
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6618
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
6619
 
          tmp_sharedflag='-G' ;;
6620
 
        *Sun\ F*)                       # Sun Fortran 8.3
6621
 
          tmp_sharedflag='-G' ;;
6622
 
        esac
6623
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6624
 
 
6625
 
        if test "x$supports_anon_versioning" = xyes; then
6626
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6627
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6628
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
6629
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6630
 
        fi
6631
 
 
6632
 
        case $cc_basename in
6633
 
        xlf* | bgf* | bgxlf* | mpixlf*)
6634
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6635
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6636
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6637
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6638
 
          if test "x$supports_anon_versioning" = xyes; then
6639
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6640
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6641
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
6642
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6643
 
          fi
6644
 
          ;;
6645
 
        esac
6646
 
      else
6647
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6648
 
      fi
6649
 
      ;;
6650
 
 
6651
 
    netbsd* | netbsdelf*-gnu)
6652
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6653
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6654
 
        wlarc=
6655
 
      else
6656
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6657
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6658
 
      fi
6659
 
      ;;
6660
 
 
6661
 
    solaris*)
6662
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6663
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6664
 
        cat <<_LT_EOF 1>&2
6665
 
 
6666
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6667
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6668
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6669
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6670
 
*** your PATH or compiler configuration so that the native linker is
6671
 
*** used, and then restart.
6672
 
 
6673
 
_LT_EOF
6674
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6675
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6676
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6677
 
      else
6678
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6679
 
      fi
6680
 
      ;;
6681
 
 
6682
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6683
 
      case `$LD -v 2>&1` in
6684
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6685
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6686
 
        cat <<_LT_EOF 1>&2
6687
 
 
6688
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6689
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
6690
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6691
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6692
 
*** your PATH or compiler configuration so that the native linker is
6693
 
*** used, and then restart.
6694
 
 
6695
 
_LT_EOF
6696
 
        ;;
6697
 
        *)
6698
 
          # For security reasons, it is highly recommended that you always
6699
 
          # use absolute paths for naming shared libraries, and exclude the
6700
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
6701
 
          # requires that you compile everything twice, which is a pain.
6702
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6703
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6704
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6705
 
            _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'
6706
 
          else
6707
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6708
 
          fi
6709
 
        ;;
6710
 
      esac
6711
 
      ;;
6712
 
 
6713
 
    sunos4*)
6714
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6715
 
      wlarc=
6716
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6717
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6718
 
      ;;
6719
 
 
6720
 
    *)
6721
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6722
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6724
 
      else
6725
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6726
 
      fi
6727
 
      ;;
6728
 
    esac
6729
 
 
6730
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6731
 
      runpath_var=
6732
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6733
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6734
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6735
 
    fi
6736
 
  else
6737
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6738
 
    case $host_os in
6739
 
    aix3*)
6740
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6741
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
6742
 
      _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'
6743
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6744
 
      # are no directories specified by -L.
6745
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6746
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6747
 
        # Neither direct hardcoding nor static linking is supported with a
6748
 
        # broken collect2.
6749
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6750
 
      fi
6751
 
      ;;
6752
 
 
6753
 
    aix[[4-9]]*)
6754
 
      if test "$host_cpu" = ia64; then
6755
 
        # On IA64, the linker does run time linking by default, so we don't
6756
 
        # have to do anything special.
6757
 
        aix_use_runtimelinking=no
6758
 
        exp_sym_flag='-Bexport'
6759
 
        no_entry_flag=""
6760
 
      else
6761
 
        # If we're using GNU nm, then we don't want the "-C" option.
6762
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6763
 
        # Also, AIX nm treats weak defined symbols like other global
6764
 
        # defined symbols, whereas GNU nm marks them as "W".
6765
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6766
 
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6767
 
        else
6768
 
          _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'
6769
 
        fi
6770
 
        aix_use_runtimelinking=no
6771
 
 
6772
 
        # Test if we are trying to use run time linking or normal
6773
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6774
 
        # need to do runtime linking.
6775
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6776
 
          for ld_flag in $LDFLAGS; do
6777
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6778
 
            aix_use_runtimelinking=yes
6779
 
            break
6780
 
          fi
6781
 
          done
6782
 
          ;;
6783
 
        esac
6784
 
 
6785
 
        exp_sym_flag='-bexport'
6786
 
        no_entry_flag='-bnoentry'
6787
 
      fi
6788
 
 
6789
 
      # When large executables or shared objects are built, AIX ld can
6790
 
      # have problems creating the table of contents.  If linking a library
6791
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6792
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6793
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6794
 
 
6795
 
      _LT_TAGVAR(archive_cmds, $1)=''
6796
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6797
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6798
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6799
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6800
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6801
 
 
6802
 
      if test "$GCC" = yes; then
6803
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6804
 
        # We only want to do this on AIX 4.2 and lower, the check
6805
 
        # below for broken collect2 doesn't work under 4.3+
6806
 
          collect2name=`${CC} -print-prog-name=collect2`
6807
 
          if test -f "$collect2name" &&
6808
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6809
 
          then
6810
 
          # We have reworked collect2
6811
 
          :
6812
 
          else
6813
 
          # We have old collect2
6814
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
6815
 
          # It fails to find uninstalled libraries when the uninstalled
6816
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6817
 
          # to unsupported forces relinking
6818
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6819
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6820
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6821
 
          fi
6822
 
          ;;
6823
 
        esac
6824
 
        shared_flag='-shared'
6825
 
        if test "$aix_use_runtimelinking" = yes; then
6826
 
          shared_flag="$shared_flag "'${wl}-G'
6827
 
        fi
6828
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
6829
 
      else
6830
 
        # not using gcc
6831
 
        if test "$host_cpu" = ia64; then
6832
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6833
 
        # chokes on -Wl,-G. The following line is correct:
6834
 
          shared_flag='-G'
6835
 
        else
6836
 
          if test "$aix_use_runtimelinking" = yes; then
6837
 
            shared_flag='${wl}-G'
6838
 
          else
6839
 
            shared_flag='${wl}-bM:SRE'
6840
 
          fi
6841
 
        fi
6842
 
      fi
6843
 
 
6844
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6845
 
      # It seems that -bexpall does not export symbols beginning with
6846
 
      # underscore (_), so it is better to generate a list of symbols to export.
6847
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
6848
 
      if test "$aix_use_runtimelinking" = yes; then
6849
 
        # Warning - without using the other runtime loading flags (-brtl),
6850
 
        # -berok will link without error, but may produce a broken library.
6851
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6852
 
        # Determine the default libpath from the value encoded in an
6853
 
        # empty executable.
6854
 
        _LT_SYS_MODULE_PATH_AIX([$1])
6855
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6856
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6857
 
      else
6858
 
        if test "$host_cpu" = ia64; then
6859
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6860
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6861
 
          _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"
6862
 
        else
6863
 
         # Determine the default libpath from the value encoded in an
6864
 
         # empty executable.
6865
 
         _LT_SYS_MODULE_PATH_AIX([$1])
6866
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6867
 
          # Warning - without using the other run time loading flags,
6868
 
          # -berok will link without error, but may produce a broken library.
6869
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6870
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6871
 
          if test "$with_gnu_ld" = yes; then
6872
 
            # We only use this code for GNU lds that support --whole-archive.
6873
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6874
 
          else
6875
 
            # Exported symbols can be pulled into shared objects from archives
6876
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6877
 
          fi
6878
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6879
 
          # This is similar to how AIX traditionally builds its shared libraries.
6880
 
          _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'
6881
 
        fi
6882
 
      fi
6883
 
      ;;
6884
 
 
6885
 
    amigaos*)
6886
 
      case $host_cpu in
6887
 
      powerpc)
6888
 
            # see comment about AmigaOS4 .so support
6889
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6890
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
6891
 
        ;;
6892
 
      m68k)
6893
 
            _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)'
6894
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6895
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6896
 
        ;;
6897
 
      esac
6898
 
      ;;
6899
 
 
6900
 
    bsdi[[45]]*)
6901
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6902
 
      ;;
6903
 
 
6904
 
    cygwin* | mingw* | pw32* | cegcc*)
6905
 
      # When not using gcc, we currently assume that we are using
6906
 
      # Microsoft Visual C++.
6907
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6908
 
      # no search path for DLLs.
6909
 
      case $cc_basename in
6910
 
      cl*)
6911
 
        # Native MSVC
6912
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6913
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6914
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6915
 
        _LT_TAGVAR(file_list_spec, $1)='@'
6916
 
        # Tell ltmain to make .lib files, not .a files.
6917
 
        libext=lib
6918
 
        # Tell ltmain to make .dll files, not .so files.
6919
 
        shrext_cmds=".dll"
6920
 
        # FIXME: Setting linknames here is a bad hack.
6921
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6922
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6923
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6924
 
          else
6925
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6926
 
          fi~
6927
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6928
 
          linknames='
6929
 
        # The linker will not automatically build a static lib if we build a DLL.
6930
 
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6931
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6932
 
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6933
 
        _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'
6934
 
        # Don't use ranlib
6935
 
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6936
 
        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6937
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
6938
 
          case $lt_outputfile in
6939
 
            *.exe|*.EXE) ;;
6940
 
            *)
6941
 
              lt_outputfile="$lt_outputfile.exe"
6942
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
6943
 
              ;;
6944
 
          esac~
6945
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6946
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6947
 
            $RM "$lt_outputfile.manifest";
6948
 
          fi'
6949
 
        ;;
6950
 
      *)
6951
 
        # Assume MSVC wrapper
6952
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6953
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6954
 
        # Tell ltmain to make .lib files, not .a files.
6955
 
        libext=lib
6956
 
        # Tell ltmain to make .dll files, not .so files.
6957
 
        shrext_cmds=".dll"
6958
 
        # FIXME: Setting linknames here is a bad hack.
6959
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6960
 
        # The linker will automatically build a .lib file if we build a DLL.
6961
 
        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6962
 
        # FIXME: Should let the user specify the lib program.
6963
 
        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6964
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6965
 
        ;;
6966
 
      esac
6967
 
      ;;
6968
 
 
6969
 
    darwin* | rhapsody*)
6970
 
      _LT_DARWIN_LINKER_FEATURES($1)
6971
 
      ;;
6972
 
 
6973
 
    dgux*)
6974
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6975
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6976
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6977
 
      ;;
6978
 
 
6979
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6980
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6981
 
    # does not break anything, and helps significantly (at the cost of a little
6982
 
    # extra space).
6983
 
    freebsd2.2*)
6984
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6985
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6986
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6987
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6988
 
      ;;
6989
 
 
6990
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6991
 
    freebsd2.*)
6992
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6993
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
6994
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6995
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6996
 
      ;;
6997
 
 
6998
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6999
 
    freebsd* | dragonfly*)
7000
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7001
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7002
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
7003
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7004
 
      ;;
7005
 
 
7006
 
    hpux9*)
7007
 
      if test "$GCC" = yes; then
7008
 
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7009
 
      else
7010
 
        _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'
7011
 
      fi
7012
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7013
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7014
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
7015
 
 
7016
 
      # hardcode_minus_L: Not really in the search PATH,
7017
 
      # but as the default location of the library.
7018
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
7019
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7020
 
      ;;
7021
 
 
7022
 
    hpux10*)
7023
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7024
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7025
 
      else
7026
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7027
 
      fi
7028
 
      if test "$with_gnu_ld" = no; then
7029
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7030
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7031
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
7032
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7033
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7034
 
        # hardcode_minus_L: Not really in the search PATH,
7035
 
        # but as the default location of the library.
7036
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
7037
 
      fi
7038
 
      ;;
7039
 
 
7040
 
    hpux11*)
7041
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
7042
 
        case $host_cpu in
7043
 
        hppa*64*)
7044
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7045
 
          ;;
7046
 
        ia64*)
7047
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7048
 
          ;;
7049
 
        *)
7050
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7051
 
          ;;
7052
 
        esac
7053
 
      else
7054
 
        case $host_cpu in
7055
 
        hppa*64*)
7056
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7057
 
          ;;
7058
 
        ia64*)
7059
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7060
 
          ;;
7061
 
        *)
7062
 
        m4_if($1, [], [
7063
 
          # Older versions of the 11.00 compiler do not understand -b yet
7064
 
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
7065
 
          _LT_LINKER_OPTION([if $CC understands -b],
7066
 
            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
7067
 
            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
7068
 
            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
7069
 
          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
7070
 
          ;;
7071
 
        esac
7072
 
      fi
7073
 
      if test "$with_gnu_ld" = no; then
7074
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7075
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7076
 
 
7077
 
        case $host_cpu in
7078
 
        hppa*64*|ia64*)
7079
 
          _LT_TAGVAR(hardcode_direct, $1)=no
7080
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7081
 
          ;;
7082
 
        *)
7083
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
7084
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7085
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7086
 
 
7087
 
          # hardcode_minus_L: Not really in the search PATH,
7088
 
          # but as the default location of the library.
7089
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
7090
 
          ;;
7091
 
        esac
7092
 
      fi
7093
 
      ;;
7094
 
 
7095
 
    irix5* | irix6* | nonstopux*)
7096
 
      if test "$GCC" = yes; then
7097
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7098
 
        # Try to use the -exported_symbol ld option, if it does not
7099
 
        # work, assume that -exports_file does not work either and
7100
 
        # implicitly export all symbols.
7101
 
        # This should be the same for all languages, so no per-tag cache variable.
7102
 
        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
7103
 
          [lt_cv_irix_exported_symbol],
7104
 
          [save_LDFLAGS="$LDFLAGS"
7105
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7106
 
           AC_LINK_IFELSE(
7107
 
             [AC_LANG_SOURCE(
7108
 
                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
7109
 
                              [C++], [[int foo (void) { return 0; }]],
7110
 
                              [Fortran 77], [[
7111
 
      subroutine foo
7112
 
      end]],
7113
 
                              [Fortran], [[
7114
 
      subroutine foo
7115
 
      end]])])],
7116
 
              [lt_cv_irix_exported_symbol=yes],
7117
 
              [lt_cv_irix_exported_symbol=no])
7118
 
           LDFLAGS="$save_LDFLAGS"])
7119
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
7120
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7121
 
        fi
7122
 
      else
7123
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7124
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7125
 
      fi
7126
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7127
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7128
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7129
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
7130
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7131
 
      ;;
7132
 
 
7133
 
    netbsd* | netbsdelf*-gnu)
7134
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7135
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7136
 
      else
7137
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7138
 
      fi
7139
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7140
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
7141
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7142
 
      ;;
7143
 
 
7144
 
    newsos6)
7145
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
7147
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7148
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7149
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7150
 
      ;;
7151
 
 
7152
 
    *nto* | *qnx*)
7153
 
      ;;
7154
 
 
7155
 
    openbsd*)
7156
 
      if test -f /usr/libexec/ld.so; then
7157
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
7158
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7159
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7160
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7161
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7162
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7163
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7164
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7165
 
        else
7166
 
          case $host_os in
7167
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7168
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7169
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7170
 
             ;;
7171
 
           *)
7172
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7173
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7174
 
             ;;
7175
 
          esac
7176
 
        fi
7177
 
      else
7178
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7179
 
      fi
7180
 
      ;;
7181
 
 
7182
 
    os2*)
7183
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7184
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
7185
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7186
 
      _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'
7187
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7188
 
      ;;
7189
 
 
7190
 
    osf3*)
7191
 
      if test "$GCC" = yes; then
7192
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7193
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7194
 
      else
7195
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7196
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7197
 
      fi
7198
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7199
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7200
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7201
 
      ;;
7202
 
 
7203
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7204
 
      if test "$GCC" = yes; then
7205
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7206
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7207
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7208
 
      else
7209
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7210
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7211
 
        _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~
7212
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7213
 
 
7214
 
        # Both c and cxx compiler support -rpath directly
7215
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7216
 
      fi
7217
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7218
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7219
 
      ;;
7220
 
 
7221
 
    solaris*)
7222
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7223
 
      if test "$GCC" = yes; then
7224
 
        wlarc='${wl}'
7225
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7226
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7227
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7228
 
      else
7229
 
        case `$CC -V 2>&1` in
7230
 
        *"Compilers 5.0"*)
7231
 
          wlarc=''
7232
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7233
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7234
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7235
 
          ;;
7236
 
        *)
7237
 
          wlarc='${wl}'
7238
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7239
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7240
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7241
 
          ;;
7242
 
        esac
7243
 
      fi
7244
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7245
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7246
 
      case $host_os in
7247
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7248
 
      *)
7249
 
        # The compiler driver will combine and reorder linker options,
7250
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
7251
 
        # but is careful enough not to reorder.
7252
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
7253
 
        if test "$GCC" = yes; then
7254
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7255
 
        else
7256
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7257
 
        fi
7258
 
        ;;
7259
 
      esac
7260
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7261
 
      ;;
7262
 
 
7263
 
    sunos4*)
7264
 
      if test "x$host_vendor" = xsequent; then
7265
 
        # Use $CC to link under sequent, because it throws in some extra .o
7266
 
        # files that make .init and .fini sections work.
7267
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7268
 
      else
7269
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7270
 
      fi
7271
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7272
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
7273
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
7274
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7275
 
      ;;
7276
 
 
7277
 
    sysv4)
7278
 
      case $host_vendor in
7279
 
        sni)
7280
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7282
 
        ;;
7283
 
        siemens)
7284
 
          ## LD is ld it makes a PLAMLIB
7285
 
          ## CC just makes a GrossModule.
7286
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7287
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7288
 
          _LT_TAGVAR(hardcode_direct, $1)=no
7289
 
        ;;
7290
 
        motorola)
7291
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7293
 
        ;;
7294
 
      esac
7295
 
      runpath_var='LD_RUN_PATH'
7296
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7297
 
      ;;
7298
 
 
7299
 
    sysv4.3*)
7300
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7302
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7303
 
      ;;
7304
 
 
7305
 
    sysv4*MP*)
7306
 
      if test -d /usr/nec; then
7307
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7308
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7309
 
        runpath_var=LD_RUN_PATH
7310
 
        hardcode_runpath_var=yes
7311
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
7312
 
      fi
7313
 
      ;;
7314
 
 
7315
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7316
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7317
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7318
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7319
 
      runpath_var='LD_RUN_PATH'
7320
 
 
7321
 
      if test "$GCC" = yes; then
7322
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7323
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7324
 
      else
7325
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7326
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7327
 
      fi
7328
 
      ;;
7329
 
 
7330
 
    sysv5* | sco3.2v5* | sco5v6*)
7331
 
      # Note: We can NOT use -z defs as we might desire, because we do not
7332
 
      # link with -lc, and that would cause any symbols used from libc to
7333
 
      # always be unresolved, which means just about no library would
7334
 
      # ever link correctly.  If we're not using GNU ld we use -z text
7335
 
      # though, which does catch some bad symbols but isn't as heavy-handed
7336
 
      # as -z defs.
7337
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7338
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7339
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7340
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7341
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7342
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7343
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7344
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7345
 
      runpath_var='LD_RUN_PATH'
7346
 
 
7347
 
      if test "$GCC" = yes; then
7348
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7350
 
      else
7351
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7353
 
      fi
7354
 
      ;;
7355
 
 
7356
 
    uts4*)
7357
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7359
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7360
 
      ;;
7361
 
 
7362
 
    *)
7363
 
      _LT_TAGVAR(ld_shlibs, $1)=no
7364
 
      ;;
7365
 
    esac
7366
 
 
7367
 
    if test x$host_vendor = xsni; then
7368
 
      case $host in
7369
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7370
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
7371
 
        ;;
7372
 
      esac
7373
 
    fi
7374
 
  fi
7375
 
])
7376
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7377
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7378
 
 
7379
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
7380
 
 
7381
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
7382
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
7383
 
_LT_DECL([], [extract_expsyms_cmds], [2],
7384
 
    [The commands to extract the exported symbol list from a shared archive])
7385
 
 
7386
 
#
7387
 
# Do we need to explicitly link libc?
7388
 
#
7389
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7390
 
x|xyes)
7391
 
  # Assume -lc should be added
7392
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7393
 
 
7394
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7395
 
    case $_LT_TAGVAR(archive_cmds, $1) in
7396
 
    *'~'*)
7397
 
      # FIXME: we may have to deal with multi-command sequences.
7398
 
      ;;
7399
 
    '$CC '*)
7400
 
      # Test whether the compiler implicitly links with -lc since on some
7401
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7402
 
      # to ld, don't add -lc before -lgcc.
7403
 
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7404
 
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7405
 
        [$RM conftest*
7406
 
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7407
 
 
7408
 
        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7409
 
          soname=conftest
7410
 
          lib=conftest
7411
 
          libobjs=conftest.$ac_objext
7412
 
          deplibs=
7413
 
          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7414
 
          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7415
 
          compiler_flags=-v
7416
 
          linker_flags=-v
7417
 
          verstring=
7418
 
          output_objdir=.
7419
 
          libname=conftest
7420
 
          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7421
 
          _LT_TAGVAR(allow_undefined_flag, $1)=
7422
 
          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7423
 
          then
7424
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7425
 
          else
7426
 
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7427
 
          fi
7428
 
          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7429
 
        else
7430
 
          cat conftest.err 1>&5
7431
 
        fi
7432
 
        $RM conftest*
7433
 
        ])
7434
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7435
 
      ;;
7436
 
    esac
7437
 
  fi
7438
 
  ;;
7439
 
esac
7440
 
 
7441
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7442
 
    [Whether or not to add -lc for building shared libraries])
7443
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7444
 
    [enable_shared_with_static_runtimes], [0],
7445
 
    [Whether or not to disallow shared libs when runtime libs are static])
7446
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
7447
 
    [Compiler flag to allow reflexive dlopens])
7448
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
7449
 
    [Compiler flag to generate shared objects directly from archives])
7450
 
_LT_TAGDECL([], [compiler_needs_object], [1],
7451
 
    [Whether the compiler copes with passing no objects directly])
7452
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
7453
 
    [Create an old-style archive from a shared archive])
7454
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
7455
 
    [Create a temporary old-style archive to link instead of a shared archive])
7456
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
7457
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
7458
 
_LT_TAGDECL([], [module_cmds], [2],
7459
 
    [Commands used to build a loadable module if different from building
7460
 
    a shared archive.])
7461
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
7462
 
_LT_TAGDECL([], [with_gnu_ld], [1],
7463
 
    [Whether we are building with GNU ld or not])
7464
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
7465
 
    [Flag that allows shared libraries with undefined symbols to be built])
7466
 
_LT_TAGDECL([], [no_undefined_flag], [1],
7467
 
    [Flag that enforces no undefined symbols])
7468
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7469
 
    [Flag to hardcode $libdir into a binary during linking.
7470
 
    This must work even if $libdir does not exist])
7471
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7472
 
    [Whether we need a single "-rpath" flag with a separated argument])
7473
 
_LT_TAGDECL([], [hardcode_direct], [0],
7474
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7475
 
    DIR into the resulting binary])
7476
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
7477
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
7478
 
    DIR into the resulting binary and the resulting library dependency is
7479
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
7480
 
    library is relocated])
7481
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
7482
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
7483
 
    into the resulting binary])
7484
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
7485
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
7486
 
    into the resulting binary])
7487
 
_LT_TAGDECL([], [hardcode_automatic], [0],
7488
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
7489
 
    into the library and all subsequent libraries and executables linked
7490
 
    against it])
7491
 
_LT_TAGDECL([], [inherit_rpath], [0],
7492
 
    [Set to yes if linker adds runtime paths of dependent libraries
7493
 
    to runtime path list])
7494
 
_LT_TAGDECL([], [link_all_deplibs], [0],
7495
 
    [Whether libtool must link a program against all its dependency libraries])
7496
 
_LT_TAGDECL([], [always_export_symbols], [0],
7497
 
    [Set to "yes" if exported symbols are required])
7498
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
7499
 
    [The commands to list exported symbols])
7500
 
_LT_TAGDECL([], [exclude_expsyms], [1],
7501
 
    [Symbols that should not be listed in the preloaded symbols])
7502
 
_LT_TAGDECL([], [include_expsyms], [1],
7503
 
    [Symbols that must always be exported])
7504
 
_LT_TAGDECL([], [prelink_cmds], [2],
7505
 
    [Commands necessary for linking programs (against libraries) with templates])
7506
 
_LT_TAGDECL([], [postlink_cmds], [2],
7507
 
    [Commands necessary for finishing linking programs])
7508
 
_LT_TAGDECL([], [file_list_spec], [1],
7509
 
    [Specify filename containing input files])
7510
 
dnl FIXME: Not yet implemented
7511
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
7512
 
dnl    [Compiler flag to generate thread safe objects])
7513
 
])# _LT_LINKER_SHLIBS
7514
 
 
7515
 
 
7516
 
# _LT_LANG_C_CONFIG([TAG])
7517
 
# ------------------------
7518
 
# Ensure that the configuration variables for a C compiler are suitably
7519
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
7520
 
# the compiler configuration to `libtool'.
7521
 
m4_defun([_LT_LANG_C_CONFIG],
7522
 
[m4_require([_LT_DECL_EGREP])dnl
7523
 
lt_save_CC="$CC"
7524
 
AC_LANG_PUSH(C)
7525
 
 
7526
 
# Source file extension for C test sources.
7527
 
ac_ext=c
7528
 
 
7529
 
# Object file extension for compiled C test sources.
7530
 
objext=o
7531
 
_LT_TAGVAR(objext, $1)=$objext
7532
 
 
7533
 
# Code to be used in simple compile tests
7534
 
lt_simple_compile_test_code="int some_variable = 0;"
7535
 
 
7536
 
# Code to be used in simple link tests
7537
 
lt_simple_link_test_code='int main(){return(0);}'
7538
 
 
7539
 
_LT_TAG_COMPILER
7540
 
# Save the default compiler, since it gets overwritten when the other
7541
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7542
 
compiler_DEFAULT=$CC
7543
 
 
7544
 
# save warnings/boilerplate of simple test code
7545
 
_LT_COMPILER_BOILERPLATE
7546
 
_LT_LINKER_BOILERPLATE
7547
 
 
7548
 
if test -n "$compiler"; then
7549
 
  _LT_COMPILER_NO_RTTI($1)
7550
 
  _LT_COMPILER_PIC($1)
7551
 
  _LT_COMPILER_C_O($1)
7552
 
  _LT_COMPILER_FILE_LOCKS($1)
7553
 
  _LT_LINKER_SHLIBS($1)
7554
 
  _LT_SYS_DYNAMIC_LINKER($1)
7555
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7556
 
  LT_SYS_DLOPEN_SELF
7557
 
  _LT_CMD_STRIPLIB
7558
 
 
7559
 
  # Report which library types will actually be built
7560
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
7561
 
  AC_MSG_RESULT([$can_build_shared])
7562
 
 
7563
 
  AC_MSG_CHECKING([whether to build shared libraries])
7564
 
  test "$can_build_shared" = "no" && enable_shared=no
7565
 
 
7566
 
  # On AIX, shared libraries and static libraries use the same namespace, and
7567
 
  # are all built from PIC.
7568
 
  case $host_os in
7569
 
  aix3*)
7570
 
    test "$enable_shared" = yes && enable_static=no
7571
 
    if test -n "$RANLIB"; then
7572
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
7573
 
      postinstall_cmds='$RANLIB $lib'
7574
 
    fi
7575
 
    ;;
7576
 
 
7577
 
  aix[[4-9]]*)
7578
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7579
 
      test "$enable_shared" = yes && enable_static=no
7580
 
    fi
7581
 
    ;;
7582
 
  esac
7583
 
  AC_MSG_RESULT([$enable_shared])
7584
 
 
7585
 
  AC_MSG_CHECKING([whether to build static libraries])
7586
 
  # Make sure either enable_shared or enable_static is yes.
7587
 
  test "$enable_shared" = yes || enable_static=yes
7588
 
  AC_MSG_RESULT([$enable_static])
7589
 
 
7590
 
  _LT_CONFIG($1)
7591
 
fi
7592
 
AC_LANG_POP
7593
 
CC="$lt_save_CC"
7594
 
])# _LT_LANG_C_CONFIG
7595
 
 
7596
 
 
7597
 
# _LT_LANG_CXX_CONFIG([TAG])
7598
 
# --------------------------
7599
 
# Ensure that the configuration variables for a C++ compiler are suitably
7600
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
7601
 
# the compiler configuration to `libtool'.
7602
 
m4_defun([_LT_LANG_CXX_CONFIG],
7603
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7604
 
m4_require([_LT_DECL_EGREP])dnl
7605
 
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
7606
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7607
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7608
 
    (test "X$CXX" != "Xg++"))) ; then
7609
 
  AC_PROG_CXXCPP
7610
 
else
7611
 
  _lt_caught_CXX_error=yes
7612
 
fi
7613
 
 
7614
 
AC_LANG_PUSH(C++)
7615
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7616
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7617
 
_LT_TAGVAR(always_export_symbols, $1)=no
7618
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7619
 
_LT_TAGVAR(compiler_needs_object, $1)=no
7620
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7621
 
_LT_TAGVAR(hardcode_direct, $1)=no
7622
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7623
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7624
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7625
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7626
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7627
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7628
 
_LT_TAGVAR(inherit_rpath, $1)=no
7629
 
_LT_TAGVAR(module_cmds, $1)=
7630
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7631
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7632
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7633
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7634
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7635
 
_LT_TAGVAR(no_undefined_flag, $1)=
7636
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7637
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7638
 
 
7639
 
# Source file extension for C++ test sources.
7640
 
ac_ext=cpp
7641
 
 
7642
 
# Object file extension for compiled C++ test sources.
7643
 
objext=o
7644
 
_LT_TAGVAR(objext, $1)=$objext
7645
 
 
7646
 
# No sense in running all these tests if we already determined that
7647
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
7648
 
# are currently assumed to apply to all compilers on this platform,
7649
 
# and will be corrupted by setting them based on a non-working compiler.
7650
 
if test "$_lt_caught_CXX_error" != yes; then
7651
 
  # Code to be used in simple compile tests
7652
 
  lt_simple_compile_test_code="int some_variable = 0;"
7653
 
 
7654
 
  # Code to be used in simple link tests
7655
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
7656
 
 
7657
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7658
 
  _LT_TAG_COMPILER
7659
 
 
7660
 
  # save warnings/boilerplate of simple test code
7661
 
  _LT_COMPILER_BOILERPLATE
7662
 
  _LT_LINKER_BOILERPLATE
7663
 
 
7664
 
  # Allow CC to be a program name with arguments.
7665
 
  lt_save_CC=$CC
7666
 
  lt_save_CFLAGS=$CFLAGS
7667
 
  lt_save_LD=$LD
7668
 
  lt_save_GCC=$GCC
7669
 
  GCC=$GXX
7670
 
  lt_save_with_gnu_ld=$with_gnu_ld
7671
 
  lt_save_path_LD=$lt_cv_path_LD
7672
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7673
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7674
 
  else
7675
 
    $as_unset lt_cv_prog_gnu_ld
7676
 
  fi
7677
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
7678
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
7679
 
  else
7680
 
    $as_unset lt_cv_path_LD
7681
 
  fi
7682
 
  test -z "${LDCXX+set}" || LD=$LDCXX
7683
 
  CC=${CXX-"c++"}
7684
 
  CFLAGS=$CXXFLAGS
7685
 
  compiler=$CC
7686
 
  _LT_TAGVAR(compiler, $1)=$CC
7687
 
  _LT_CC_BASENAME([$compiler])
7688
 
 
7689
 
  if test -n "$compiler"; then
7690
 
    # We don't want -fno-exception when compiling C++ code, so set the
7691
 
    # no_builtin_flag separately
7692
 
    if test "$GXX" = yes; then
7693
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7694
 
    else
7695
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7696
 
    fi
7697
 
 
7698
 
    if test "$GXX" = yes; then
7699
 
      # Set up default GNU C++ configuration
7700
 
 
7701
 
      LT_PATH_LD
7702
 
 
7703
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
7704
 
      # archiving commands below assume that GNU ld is being used.
7705
 
      if test "$with_gnu_ld" = yes; then
7706
 
        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7707
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7708
 
 
7709
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7710
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7711
 
 
7712
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
7713
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7714
 
        #     investigate it a little bit more. (MM)
7715
 
        wlarc='${wl}'
7716
 
 
7717
 
        # ancient GNU ld didn't support --whole-archive et. al.
7718
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
7719
 
          $GREP 'no-whole-archive' > /dev/null; then
7720
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7721
 
        else
7722
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
7723
 
        fi
7724
 
      else
7725
 
        with_gnu_ld=no
7726
 
        wlarc=
7727
 
 
7728
 
        # A generic and very simple default shared library creation
7729
 
        # command for GNU C++ for the case where it uses the native
7730
 
        # linker, instead of GNU ld.  If possible, this setting should
7731
 
        # overridden to take advantage of the native linker features on
7732
 
        # the platform it is being used on.
7733
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7734
 
      fi
7735
 
 
7736
 
      # Commands to make compiler produce verbose output that lists
7737
 
      # what "hidden" libraries, object files and flags are used when
7738
 
      # linking a shared library.
7739
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7740
 
 
7741
 
    else
7742
 
      GXX=no
7743
 
      with_gnu_ld=no
7744
 
      wlarc=
7745
 
    fi
7746
 
 
7747
 
    # PORTME: fill in a description of your system's C++ link characteristics
7748
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7749
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
7750
 
    case $host_os in
7751
 
      aix3*)
7752
 
        # FIXME: insert proper C++ library support
7753
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7754
 
        ;;
7755
 
      aix[[4-9]]*)
7756
 
        if test "$host_cpu" = ia64; then
7757
 
          # On IA64, the linker does run time linking by default, so we don't
7758
 
          # have to do anything special.
7759
 
          aix_use_runtimelinking=no
7760
 
          exp_sym_flag='-Bexport'
7761
 
          no_entry_flag=""
7762
 
        else
7763
 
          aix_use_runtimelinking=no
7764
 
 
7765
 
          # Test if we are trying to use run time linking or normal
7766
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7767
 
          # need to do runtime linking.
7768
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7769
 
            for ld_flag in $LDFLAGS; do
7770
 
              case $ld_flag in
7771
 
              *-brtl*)
7772
 
                aix_use_runtimelinking=yes
7773
 
                break
7774
 
                ;;
7775
 
              esac
7776
 
            done
7777
 
            ;;
7778
 
          esac
7779
 
 
7780
 
          exp_sym_flag='-bexport'
7781
 
          no_entry_flag='-bnoentry'
7782
 
        fi
7783
 
 
7784
 
        # When large executables or shared objects are built, AIX ld can
7785
 
        # have problems creating the table of contents.  If linking a library
7786
 
        # or program results in "error TOC overflow" add -mminimal-toc to
7787
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7788
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7789
 
 
7790
 
        _LT_TAGVAR(archive_cmds, $1)=''
7791
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
7792
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7793
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7794
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
7795
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7796
 
 
7797
 
        if test "$GXX" = yes; then
7798
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
7799
 
          # We only want to do this on AIX 4.2 and lower, the check
7800
 
          # below for broken collect2 doesn't work under 4.3+
7801
 
          collect2name=`${CC} -print-prog-name=collect2`
7802
 
          if test -f "$collect2name" &&
7803
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7804
 
          then
7805
 
            # We have reworked collect2
7806
 
            :
7807
 
          else
7808
 
            # We have old collect2
7809
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
7810
 
            # It fails to find uninstalled libraries when the uninstalled
7811
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
7812
 
            # to unsupported forces relinking
7813
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
7814
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7815
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
7816
 
          fi
7817
 
          esac
7818
 
          shared_flag='-shared'
7819
 
          if test "$aix_use_runtimelinking" = yes; then
7820
 
            shared_flag="$shared_flag "'${wl}-G'
7821
 
          fi
7822
 
        else
7823
 
          # not using gcc
7824
 
          if test "$host_cpu" = ia64; then
7825
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7826
 
          # chokes on -Wl,-G. The following line is correct:
7827
 
          shared_flag='-G'
7828
 
          else
7829
 
            if test "$aix_use_runtimelinking" = yes; then
7830
 
              shared_flag='${wl}-G'
7831
 
            else
7832
 
              shared_flag='${wl}-bM:SRE'
7833
 
            fi
7834
 
          fi
7835
 
        fi
7836
 
 
7837
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7838
 
        # It seems that -bexpall does not export symbols beginning with
7839
 
        # underscore (_), so it is better to generate a list of symbols to
7840
 
        # export.
7841
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
7842
 
        if test "$aix_use_runtimelinking" = yes; then
7843
 
          # Warning - without using the other runtime loading flags (-brtl),
7844
 
          # -berok will link without error, but may produce a broken library.
7845
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7846
 
          # Determine the default libpath from the value encoded in an empty
7847
 
          # executable.
7848
 
          _LT_SYS_MODULE_PATH_AIX([$1])
7849
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7850
 
 
7851
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7852
 
        else
7853
 
          if test "$host_cpu" = ia64; then
7854
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7855
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7856
 
            _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"
7857
 
          else
7858
 
            # Determine the default libpath from the value encoded in an
7859
 
            # empty executable.
7860
 
            _LT_SYS_MODULE_PATH_AIX([$1])
7861
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7862
 
            # Warning - without using the other run time loading flags,
7863
 
            # -berok will link without error, but may produce a broken library.
7864
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7865
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7866
 
            if test "$with_gnu_ld" = yes; then
7867
 
              # We only use this code for GNU lds that support --whole-archive.
7868
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7869
 
            else
7870
 
              # Exported symbols can be pulled into shared objects from archives
7871
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7872
 
            fi
7873
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7874
 
            # This is similar to how AIX traditionally builds its shared
7875
 
            # libraries.
7876
 
            _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'
7877
 
          fi
7878
 
        fi
7879
 
        ;;
7880
 
 
7881
 
      beos*)
7882
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7883
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7884
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7885
 
          # support --undefined.  This deserves some investigation.  FIXME
7886
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887
 
        else
7888
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7889
 
        fi
7890
 
        ;;
7891
 
 
7892
 
      chorus*)
7893
 
        case $cc_basename in
7894
 
          *)
7895
 
          # FIXME: insert proper C++ library support
7896
 
          _LT_TAGVAR(ld_shlibs, $1)=no
7897
 
          ;;
7898
 
        esac
7899
 
        ;;
7900
 
 
7901
 
      cygwin* | mingw* | pw32* | cegcc*)
7902
 
        case $GXX,$cc_basename in
7903
 
        ,cl* | no,cl*)
7904
 
          # Native MSVC
7905
 
          # hardcode_libdir_flag_spec is actually meaningless, as there is
7906
 
          # no search path for DLLs.
7907
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7908
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7909
 
          _LT_TAGVAR(always_export_symbols, $1)=yes
7910
 
          _LT_TAGVAR(file_list_spec, $1)='@'
7911
 
          # Tell ltmain to make .lib files, not .a files.
7912
 
          libext=lib
7913
 
          # Tell ltmain to make .dll files, not .so files.
7914
 
          shrext_cmds=".dll"
7915
 
          # FIXME: Setting linknames here is a bad hack.
7916
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7917
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7918
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7919
 
            else
7920
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7921
 
            fi~
7922
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7923
 
            linknames='
7924
 
          # The linker will not automatically build a static lib if we build a DLL.
7925
 
          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7926
 
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7927
 
          # Don't use ranlib
7928
 
          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7929
 
          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7930
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
7931
 
            case $lt_outputfile in
7932
 
              *.exe|*.EXE) ;;
7933
 
              *)
7934
 
                lt_outputfile="$lt_outputfile.exe"
7935
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
7936
 
                ;;
7937
 
            esac~
7938
 
            func_to_tool_file "$lt_outputfile"~
7939
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7940
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7941
 
              $RM "$lt_outputfile.manifest";
7942
 
            fi'
7943
 
          ;;
7944
 
        *)
7945
 
          # g++
7946
 
          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7947
 
          # as there is no search path for DLLs.
7948
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7949
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7950
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7951
 
          _LT_TAGVAR(always_export_symbols, $1)=no
7952
 
          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7953
 
 
7954
 
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7955
 
            _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'
7956
 
            # If the export-symbols file already is a .def file (1st line
7957
 
            # is EXPORTS), use it as is; otherwise, prepend...
7958
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7959
 
              cp $export_symbols $output_objdir/$soname.def;
7960
 
            else
7961
 
              echo EXPORTS > $output_objdir/$soname.def;
7962
 
              cat $export_symbols >> $output_objdir/$soname.def;
7963
 
            fi~
7964
 
            $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'
7965
 
          else
7966
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7967
 
          fi
7968
 
          ;;
7969
 
        esac
7970
 
        ;;
7971
 
      darwin* | rhapsody*)
7972
 
        _LT_DARWIN_LINKER_FEATURES($1)
7973
 
        ;;
7974
 
 
7975
 
      dgux*)
7976
 
        case $cc_basename in
7977
 
          ec++*)
7978
 
            # FIXME: insert proper C++ library support
7979
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7980
 
            ;;
7981
 
          ghcx*)
7982
 
            # Green Hills C++ Compiler
7983
 
            # FIXME: insert proper C++ library support
7984
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7985
 
            ;;
7986
 
          *)
7987
 
            # FIXME: insert proper C++ library support
7988
 
            _LT_TAGVAR(ld_shlibs, $1)=no
7989
 
            ;;
7990
 
        esac
7991
 
        ;;
7992
 
 
7993
 
      freebsd2.*)
7994
 
        # C++ shared libraries reported to be fairly broken before
7995
 
        # switch to ELF
7996
 
        _LT_TAGVAR(ld_shlibs, $1)=no
7997
 
        ;;
7998
 
 
7999
 
      freebsd-elf*)
8000
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8001
 
        ;;
8002
 
 
8003
 
      freebsd* | dragonfly*)
8004
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8005
 
        # conventions
8006
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
8007
 
        ;;
8008
 
 
8009
 
      haiku*)
8010
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
8012
 
        ;;
8013
 
 
8014
 
      hpux9*)
8015
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8016
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8017
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8018
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
8019
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8020
 
                                             # but as the default
8021
 
                                             # location of the library.
8022
 
 
8023
 
        case $cc_basename in
8024
 
          CC*)
8025
 
            # FIXME: insert proper C++ library support
8026
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8027
 
            ;;
8028
 
          aCC*)
8029
 
            _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'
8030
 
            # Commands to make compiler produce verbose output that lists
8031
 
            # what "hidden" libraries, object files and flags are used when
8032
 
            # linking a shared library.
8033
 
            #
8034
 
            # There doesn't appear to be a way to prevent this compiler from
8035
 
            # explicitly linking system object files so we need to strip them
8036
 
            # from the output so that they don't get included in the library
8037
 
            # dependencies.
8038
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8039
 
            ;;
8040
 
          *)
8041
 
            if test "$GXX" = yes; then
8042
 
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8043
 
            else
8044
 
              # FIXME: insert proper C++ library support
8045
 
              _LT_TAGVAR(ld_shlibs, $1)=no
8046
 
            fi
8047
 
            ;;
8048
 
        esac
8049
 
        ;;
8050
 
 
8051
 
      hpux10*|hpux11*)
8052
 
        if test $with_gnu_ld = no; then
8053
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8054
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8055
 
 
8056
 
          case $host_cpu in
8057
 
            hppa*64*|ia64*)
8058
 
              ;;
8059
 
            *)
8060
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8061
 
              ;;
8062
 
          esac
8063
 
        fi
8064
 
        case $host_cpu in
8065
 
          hppa*64*|ia64*)
8066
 
            _LT_TAGVAR(hardcode_direct, $1)=no
8067
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8068
 
            ;;
8069
 
          *)
8070
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
8071
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8072
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8073
 
                                                 # but as the default
8074
 
                                                 # location of the library.
8075
 
            ;;
8076
 
        esac
8077
 
 
8078
 
        case $cc_basename in
8079
 
          CC*)
8080
 
            # FIXME: insert proper C++ library support
8081
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8082
 
            ;;
8083
 
          aCC*)
8084
 
            case $host_cpu in
8085
 
              hppa*64*)
8086
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8087
 
                ;;
8088
 
              ia64*)
8089
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8090
 
                ;;
8091
 
              *)
8092
 
                _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'
8093
 
                ;;
8094
 
            esac
8095
 
            # Commands to make compiler produce verbose output that lists
8096
 
            # what "hidden" libraries, object files and flags are used when
8097
 
            # linking a shared library.
8098
 
            #
8099
 
            # There doesn't appear to be a way to prevent this compiler from
8100
 
            # explicitly linking system object files so we need to strip them
8101
 
            # from the output so that they don't get included in the library
8102
 
            # dependencies.
8103
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8104
 
            ;;
8105
 
          *)
8106
 
            if test "$GXX" = yes; then
8107
 
              if test $with_gnu_ld = no; then
8108
 
                case $host_cpu in
8109
 
                  hppa*64*)
8110
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8111
 
                    ;;
8112
 
                  ia64*)
8113
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8114
 
                    ;;
8115
 
                  *)
8116
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8117
 
                    ;;
8118
 
                esac
8119
 
              fi
8120
 
            else
8121
 
              # FIXME: insert proper C++ library support
8122
 
              _LT_TAGVAR(ld_shlibs, $1)=no
8123
 
            fi
8124
 
            ;;
8125
 
        esac
8126
 
        ;;
8127
 
 
8128
 
      interix[[3-9]]*)
8129
 
        _LT_TAGVAR(hardcode_direct, $1)=no
8130
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8131
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8132
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8133
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8134
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
8135
 
        # default) and relocated if they conflict, which is a slow very memory
8136
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
8137
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8138
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8139
 
        _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'
8140
 
        _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'
8141
 
        ;;
8142
 
      irix5* | irix6*)
8143
 
        case $cc_basename in
8144
 
          CC*)
8145
 
            # SGI C++
8146
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8147
 
 
8148
 
            # Archives containing C++ object files must be created using
8149
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
8150
 
            # necessary to make sure instantiated templates are included
8151
 
            # in the archive.
8152
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8153
 
            ;;
8154
 
          *)
8155
 
            if test "$GXX" = yes; then
8156
 
              if test "$with_gnu_ld" = no; then
8157
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8158
 
              else
8159
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
8160
 
              fi
8161
 
            fi
8162
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
8163
 
            ;;
8164
 
        esac
8165
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8166
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8167
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
8168
 
        ;;
8169
 
 
8170
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8171
 
        case $cc_basename in
8172
 
          KCC*)
8173
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
8174
 
 
8175
 
            # KCC will only create a shared library if the output file
8176
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
8177
 
            # to its proper name (with version) after linking.
8178
 
            _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'
8179
 
            _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'
8180
 
            # Commands to make compiler produce verbose output that lists
8181
 
            # what "hidden" libraries, object files and flags are used when
8182
 
            # linking a shared library.
8183
 
            #
8184
 
            # There doesn't appear to be a way to prevent this compiler from
8185
 
            # explicitly linking system object files so we need to strip them
8186
 
            # from the output so that they don't get included in the library
8187
 
            # dependencies.
8188
 
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8189
 
 
8190
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8191
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8192
 
 
8193
 
            # Archives containing C++ object files must be created using
8194
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8195
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8196
 
            ;;
8197
 
          icpc* | ecpc* )
8198
 
            # Intel C++
8199
 
            with_gnu_ld=yes
8200
 
            # version 8.0 and above of icpc choke on multiply defined symbols
8201
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
8202
 
            # earlier do not add the objects themselves.
8203
 
            case `$CC -V 2>&1` in
8204
 
              *"Version 7."*)
8205
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206
 
                _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'
8207
 
                ;;
8208
 
              *)  # Version 8.0 or newer
8209
 
                tmp_idyn=
8210
 
                case $host_cpu in
8211
 
                  ia64*) tmp_idyn=' -i_dynamic';;
8212
 
                esac
8213
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214
 
                _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'
8215
 
                ;;
8216
 
            esac
8217
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8218
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8219
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8220
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8221
 
            ;;
8222
 
          pgCC* | pgcpp*)
8223
 
            # Portland Group C++ compiler
8224
 
            case `$CC -V` in
8225
 
            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8226
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8227
 
                rm -rf $tpldir~
8228
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8229
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8230
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8231
 
                rm -rf $tpldir~
8232
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8233
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8234
 
                $RANLIB $oldlib'
8235
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8236
 
                rm -rf $tpldir~
8237
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8238
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8239
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8240
 
                rm -rf $tpldir~
8241
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8242
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8243
 
              ;;
8244
 
            *) # Version 6 and above use weak symbols
8245
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8246
 
              _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'
8247
 
              ;;
8248
 
            esac
8249
 
 
8250
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8251
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8252
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8253
 
            ;;
8254
 
          cxx*)
8255
 
            # Compaq C++
8256
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257
 
            _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'
8258
 
 
8259
 
            runpath_var=LD_RUN_PATH
8260
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8261
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8262
 
 
8263
 
            # Commands to make compiler produce verbose output that lists
8264
 
            # what "hidden" libraries, object files and flags are used when
8265
 
            # linking a shared library.
8266
 
            #
8267
 
            # There doesn't appear to be a way to prevent this compiler from
8268
 
            # explicitly linking system object files so we need to strip them
8269
 
            # from the output so that they don't get included in the library
8270
 
            # dependencies.
8271
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
8272
 
            ;;
8273
 
          xl* | mpixl* | bgxl*)
8274
 
            # IBM XL 8.0 on PPC, with GNU ld
8275
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8276
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8277
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278
 
            if test "x$supports_anon_versioning" = xyes; then
8279
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8280
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8281
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
8282
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8283
 
            fi
8284
 
            ;;
8285
 
          *)
8286
 
            case `$CC -V 2>&1 | sed 5q` in
8287
 
            *Sun\ C*)
8288
 
              # Sun C++ 5.9
8289
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8290
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8291
 
              _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'
8292
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8293
 
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8294
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
8295
 
 
8296
 
              # Not sure whether something based on
8297
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8298
 
              # would be better.
8299
 
              output_verbose_link_cmd='func_echo_all'
8300
 
 
8301
 
              # Archives containing C++ object files must be created using
8302
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
8303
 
              # necessary to make sure instantiated templates are included
8304
 
              # in the archive.
8305
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8306
 
              ;;
8307
 
            esac
8308
 
            ;;
8309
 
        esac
8310
 
        ;;
8311
 
 
8312
 
      lynxos*)
8313
 
        # FIXME: insert proper C++ library support
8314
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8315
 
        ;;
8316
 
 
8317
 
      m88k*)
8318
 
        # FIXME: insert proper C++ library support
8319
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8320
 
        ;;
8321
 
 
8322
 
      mvs*)
8323
 
        case $cc_basename in
8324
 
          cxx*)
8325
 
            # FIXME: insert proper C++ library support
8326
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8327
 
            ;;
8328
 
          *)
8329
 
            # FIXME: insert proper C++ library support
8330
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8331
 
            ;;
8332
 
        esac
8333
 
        ;;
8334
 
 
8335
 
      netbsd*)
8336
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8337
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8338
 
          wlarc=
8339
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8340
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
8341
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8342
 
        fi
8343
 
        # Workaround some broken pre-1.5 toolchains
8344
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8345
 
        ;;
8346
 
 
8347
 
      *nto* | *qnx*)
8348
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
8349
 
        ;;
8350
 
 
8351
 
      openbsd2*)
8352
 
        # C++ shared libraries are fairly broken
8353
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8354
 
        ;;
8355
 
 
8356
 
      openbsd*)
8357
 
        if test -f /usr/libexec/ld.so; then
8358
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
8359
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8360
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8361
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8362
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8363
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8364
 
            _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'
8365
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8366
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8367
 
          fi
8368
 
          output_verbose_link_cmd=func_echo_all
8369
 
        else
8370
 
          _LT_TAGVAR(ld_shlibs, $1)=no
8371
 
        fi
8372
 
        ;;
8373
 
 
8374
 
      osf3* | osf4* | osf5*)
8375
 
        case $cc_basename in
8376
 
          KCC*)
8377
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
8378
 
 
8379
 
            # KCC will only create a shared library if the output file
8380
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
8381
 
            # to its proper name (with version) after linking.
8382
 
            _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'
8383
 
 
8384
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8385
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8386
 
 
8387
 
            # Archives containing C++ object files must be created using
8388
 
            # the KAI C++ compiler.
8389
 
            case $host in
8390
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
8391
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
8392
 
            esac
8393
 
            ;;
8394
 
          RCC*)
8395
 
            # Rational C++ 2.4.1
8396
 
            # FIXME: insert proper C++ library support
8397
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8398
 
            ;;
8399
 
          cxx*)
8400
 
            case $host in
8401
 
              osf3*)
8402
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8403
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8404
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8405
 
                ;;
8406
 
              *)
8407
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8408
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8409
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8410
 
                  echo "-hidden">> $lib.exp~
8411
 
                  $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~
8412
 
                  $RM $lib.exp'
8413
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8414
 
                ;;
8415
 
            esac
8416
 
 
8417
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8418
 
 
8419
 
            # Commands to make compiler produce verbose output that lists
8420
 
            # what "hidden" libraries, object files and flags are used when
8421
 
            # linking a shared library.
8422
 
            #
8423
 
            # There doesn't appear to be a way to prevent this compiler from
8424
 
            # explicitly linking system object files so we need to strip them
8425
 
            # from the output so that they don't get included in the library
8426
 
            # dependencies.
8427
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8428
 
            ;;
8429
 
          *)
8430
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8431
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8432
 
              case $host in
8433
 
                osf3*)
8434
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8435
 
                  ;;
8436
 
                *)
8437
 
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8438
 
                  ;;
8439
 
              esac
8440
 
 
8441
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8442
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8443
 
 
8444
 
              # Commands to make compiler produce verbose output that lists
8445
 
              # what "hidden" libraries, object files and flags are used when
8446
 
              # linking a shared library.
8447
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8448
 
 
8449
 
            else
8450
 
              # FIXME: insert proper C++ library support
8451
 
              _LT_TAGVAR(ld_shlibs, $1)=no
8452
 
            fi
8453
 
            ;;
8454
 
        esac
8455
 
        ;;
8456
 
 
8457
 
      psos*)
8458
 
        # FIXME: insert proper C++ library support
8459
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8460
 
        ;;
8461
 
 
8462
 
      sunos4*)
8463
 
        case $cc_basename in
8464
 
          CC*)
8465
 
            # Sun C++ 4.x
8466
 
            # FIXME: insert proper C++ library support
8467
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8468
 
            ;;
8469
 
          lcc*)
8470
 
            # Lucid
8471
 
            # FIXME: insert proper C++ library support
8472
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8473
 
            ;;
8474
 
          *)
8475
 
            # FIXME: insert proper C++ library support
8476
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8477
 
            ;;
8478
 
        esac
8479
 
        ;;
8480
 
 
8481
 
      solaris*)
8482
 
        case $cc_basename in
8483
 
          CC* | sunCC*)
8484
 
            # Sun C++ 4.2, 5.x and Centerline C++
8485
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
8486
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8487
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8488
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8489
 
              $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'
8490
 
 
8491
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8492
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8493
 
            case $host_os in
8494
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8495
 
              *)
8496
 
                # The compiler driver will combine and reorder linker options,
8497
 
                # but understands `-z linker_flag'.
8498
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
8499
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8500
 
                ;;
8501
 
            esac
8502
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
8503
 
 
8504
 
            output_verbose_link_cmd='func_echo_all'
8505
 
 
8506
 
            # Archives containing C++ object files must be created using
8507
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
8508
 
            # necessary to make sure instantiated templates are included
8509
 
            # in the archive.
8510
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8511
 
            ;;
8512
 
          gcx*)
8513
 
            # Green Hills C++ Compiler
8514
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8515
 
 
8516
 
            # The C++ compiler must be used to create the archive.
8517
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8518
 
            ;;
8519
 
          *)
8520
 
            # GNU C++ compiler with Solaris linker
8521
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8522
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8523
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
8524
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8525
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8526
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8527
 
 
8528
 
                # Commands to make compiler produce verbose output that lists
8529
 
                # what "hidden" libraries, object files and flags are used when
8530
 
                # linking a shared library.
8531
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8532
 
              else
8533
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
8534
 
                # platform.
8535
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8536
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8537
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8538
 
 
8539
 
                # Commands to make compiler produce verbose output that lists
8540
 
                # what "hidden" libraries, object files and flags are used when
8541
 
                # linking a shared library.
8542
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8543
 
              fi
8544
 
 
8545
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8546
 
              case $host_os in
8547
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8548
 
                *)
8549
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8550
 
                  ;;
8551
 
              esac
8552
 
            fi
8553
 
            ;;
8554
 
        esac
8555
 
        ;;
8556
 
 
8557
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8558
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8559
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8560
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8561
 
      runpath_var='LD_RUN_PATH'
8562
 
 
8563
 
      case $cc_basename in
8564
 
        CC*)
8565
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567
 
          ;;
8568
 
        *)
8569
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8570
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8571
 
          ;;
8572
 
      esac
8573
 
      ;;
8574
 
 
8575
 
      sysv5* | sco3.2v5* | sco5v6*)
8576
 
        # Note: We can NOT use -z defs as we might desire, because we do not
8577
 
        # link with -lc, and that would cause any symbols used from libc to
8578
 
        # always be unresolved, which means just about no library would
8579
 
        # ever link correctly.  If we're not using GNU ld we use -z text
8580
 
        # though, which does catch some bad symbols but isn't as heavy-handed
8581
 
        # as -z defs.
8582
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8583
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8584
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8585
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8586
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8587
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8588
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
8589
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8590
 
        runpath_var='LD_RUN_PATH'
8591
 
 
8592
 
        case $cc_basename in
8593
 
          CC*)
8594
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8595
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8596
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
8597
 
              '"$_LT_TAGVAR(old_archive_cmds, $1)"
8598
 
            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
8599
 
              '"$_LT_TAGVAR(reload_cmds, $1)"
8600
 
            ;;
8601
 
          *)
8602
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8603
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8604
 
            ;;
8605
 
        esac
8606
 
      ;;
8607
 
 
8608
 
      tandem*)
8609
 
        case $cc_basename in
8610
 
          NCC*)
8611
 
            # NonStop-UX NCC 3.20
8612
 
            # FIXME: insert proper C++ library support
8613
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8614
 
            ;;
8615
 
          *)
8616
 
            # FIXME: insert proper C++ library support
8617
 
            _LT_TAGVAR(ld_shlibs, $1)=no
8618
 
            ;;
8619
 
        esac
8620
 
        ;;
8621
 
 
8622
 
      vxworks*)
8623
 
        # FIXME: insert proper C++ library support
8624
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8625
 
        ;;
8626
 
 
8627
 
      *)
8628
 
        # FIXME: insert proper C++ library support
8629
 
        _LT_TAGVAR(ld_shlibs, $1)=no
8630
 
        ;;
8631
 
    esac
8632
 
 
8633
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8634
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8635
 
 
8636
 
    _LT_TAGVAR(GCC, $1)="$GXX"
8637
 
    _LT_TAGVAR(LD, $1)="$LD"
8638
 
 
8639
 
    ## CAVEAT EMPTOR:
8640
 
    ## There is no encapsulation within the following macros, do not change
8641
 
    ## the running order or otherwise move them around unless you know exactly
8642
 
    ## what you are doing...
8643
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
8644
 
    _LT_COMPILER_PIC($1)
8645
 
    _LT_COMPILER_C_O($1)
8646
 
    _LT_COMPILER_FILE_LOCKS($1)
8647
 
    _LT_LINKER_SHLIBS($1)
8648
 
    _LT_SYS_DYNAMIC_LINKER($1)
8649
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
8650
 
 
8651
 
    _LT_CONFIG($1)
8652
 
  fi # test -n "$compiler"
8653
 
 
8654
 
  CC=$lt_save_CC
8655
 
  CFLAGS=$lt_save_CFLAGS
8656
 
  LDCXX=$LD
8657
 
  LD=$lt_save_LD
8658
 
  GCC=$lt_save_GCC
8659
 
  with_gnu_ld=$lt_save_with_gnu_ld
8660
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
8661
 
  lt_cv_path_LD=$lt_save_path_LD
8662
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8663
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8664
 
fi # test "$_lt_caught_CXX_error" != yes
8665
 
 
8666
 
AC_LANG_POP
8667
 
])# _LT_LANG_CXX_CONFIG
8668
 
 
8669
 
 
8670
 
# _LT_FUNC_STRIPNAME_CNF
8671
 
# ----------------------
8672
 
# func_stripname_cnf prefix suffix name
8673
 
# strip PREFIX and SUFFIX off of NAME.
8674
 
# PREFIX and SUFFIX must not contain globbing or regex special
8675
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
8676
 
# dot (in which case that matches only a dot).
8677
 
#
8678
 
# This function is identical to the (non-XSI) version of func_stripname,
8679
 
# except this one can be used by m4 code that may be executed by configure,
8680
 
# rather than the libtool script.
8681
 
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
8682
 
AC_REQUIRE([_LT_DECL_SED])
8683
 
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
8684
 
func_stripname_cnf ()
8685
 
{
8686
 
  case ${2} in
8687
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8688
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8689
 
  esac
8690
 
} # func_stripname_cnf
8691
 
])# _LT_FUNC_STRIPNAME_CNF
8692
 
 
8693
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8694
 
# ---------------------------------
8695
 
# Figure out "hidden" library dependencies from verbose
8696
 
# compiler output when linking a shared library.
8697
 
# Parse the compiler output and extract the necessary
8698
 
# objects, libraries and library flags.
8699
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
8700
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8701
 
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
8702
 
# Dependencies to place before and after the object being linked:
8703
 
_LT_TAGVAR(predep_objects, $1)=
8704
 
_LT_TAGVAR(postdep_objects, $1)=
8705
 
_LT_TAGVAR(predeps, $1)=
8706
 
_LT_TAGVAR(postdeps, $1)=
8707
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
8708
 
 
8709
 
dnl we can't use the lt_simple_compile_test_code here,
8710
 
dnl because it contains code intended for an executable,
8711
 
dnl not a library.  It's possible we should let each
8712
 
dnl tag define a new lt_????_link_test_code variable,
8713
 
dnl but it's only used here...
8714
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
8715
 
int a;
8716
 
void foo (void) { a = 0; }
8717
 
_LT_EOF
8718
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
8719
 
class Foo
8720
 
{
8721
 
public:
8722
 
  Foo (void) { a = 0; }
8723
 
private:
8724
 
  int a;
8725
 
};
8726
 
_LT_EOF
8727
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
8728
 
      subroutine foo
8729
 
      implicit none
8730
 
      integer*4 a
8731
 
      a=0
8732
 
      return
8733
 
      end
8734
 
_LT_EOF
8735
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
8736
 
      subroutine foo
8737
 
      implicit none
8738
 
      integer a
8739
 
      a=0
8740
 
      return
8741
 
      end
8742
 
_LT_EOF
8743
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
8744
 
public class foo {
8745
 
  private int a;
8746
 
  public void bar (void) {
8747
 
    a = 0;
8748
 
  }
8749
 
};
8750
 
_LT_EOF
8751
 
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8752
 
package foo
8753
 
func foo() {
8754
 
}
8755
 
_LT_EOF
8756
 
])
8757
 
 
8758
 
_lt_libdeps_save_CFLAGS=$CFLAGS
8759
 
case "$CC $CFLAGS " in #(
8760
 
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8761
 
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8762
 
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8763
 
esac
8764
 
 
8765
 
dnl Parse the compiler output and extract the necessary
8766
 
dnl objects, libraries and library flags.
8767
 
if AC_TRY_EVAL(ac_compile); then
8768
 
  # Parse the compiler output and extract the necessary
8769
 
  # objects, libraries and library flags.
8770
 
 
8771
 
  # Sentinel used to keep track of whether or not we are before
8772
 
  # the conftest object file.
8773
 
  pre_test_object_deps_done=no
8774
 
 
8775
 
  for p in `eval "$output_verbose_link_cmd"`; do
8776
 
    case ${prev}${p} in
8777
 
 
8778
 
    -L* | -R* | -l*)
8779
 
       # Some compilers place space between "-{L,R}" and the path.
8780
 
       # Remove the space.
8781
 
       if test $p = "-L" ||
8782
 
          test $p = "-R"; then
8783
 
         prev=$p
8784
 
         continue
8785
 
       fi
8786
 
 
8787
 
       # Expand the sysroot to ease extracting the directories later.
8788
 
       if test -z "$prev"; then
8789
 
         case $p in
8790
 
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
8791
 
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
8792
 
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
8793
 
         esac
8794
 
       fi
8795
 
       case $p in
8796
 
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
8797
 
       esac
8798
 
       if test "$pre_test_object_deps_done" = no; then
8799
 
         case ${prev} in
8800
 
         -L | -R)
8801
 
           # Internal compiler library paths should come after those
8802
 
           # provided the user.  The postdeps already come after the
8803
 
           # user supplied libs so there is no need to process them.
8804
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
8805
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8806
 
           else
8807
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8808
 
           fi
8809
 
           ;;
8810
 
         # The "-l" case would never come before the object being
8811
 
         # linked, so don't bother handling this case.
8812
 
         esac
8813
 
       else
8814
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
8815
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
8816
 
         else
8817
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
8818
 
         fi
8819
 
       fi
8820
 
       prev=
8821
 
       ;;
8822
 
 
8823
 
    *.lto.$objext) ;; # Ignore GCC LTO objects
8824
 
    *.$objext)
8825
 
       # This assumes that the test object file only shows up
8826
 
       # once in the compiler output.
8827
 
       if test "$p" = "conftest.$objext"; then
8828
 
         pre_test_object_deps_done=yes
8829
 
         continue
8830
 
       fi
8831
 
 
8832
 
       if test "$pre_test_object_deps_done" = no; then
8833
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
8834
 
           _LT_TAGVAR(predep_objects, $1)="$p"
8835
 
         else
8836
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8837
 
         fi
8838
 
       else
8839
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8840
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
8841
 
         else
8842
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8843
 
         fi
8844
 
       fi
8845
 
       ;;
8846
 
 
8847
 
    *) ;; # Ignore the rest.
8848
 
 
8849
 
    esac
8850
 
  done
8851
 
 
8852
 
  # Clean up.
8853
 
  rm -f a.out a.exe
8854
 
else
8855
 
  echo "libtool.m4: error: problem compiling $1 test program"
8856
 
fi
8857
 
 
8858
 
$RM -f confest.$objext
8859
 
CFLAGS=$_lt_libdeps_save_CFLAGS
8860
 
 
8861
 
# PORTME: override above test on systems where it is broken
8862
 
m4_if([$1], [CXX],
8863
 
[case $host_os in
8864
 
interix[[3-9]]*)
8865
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
8866
 
  # hack all around it, let's just trust "g++" to DTRT.
8867
 
  _LT_TAGVAR(predep_objects,$1)=
8868
 
  _LT_TAGVAR(postdep_objects,$1)=
8869
 
  _LT_TAGVAR(postdeps,$1)=
8870
 
  ;;
8871
 
 
8872
 
linux*)
8873
 
  case `$CC -V 2>&1 | sed 5q` in
8874
 
  *Sun\ C*)
8875
 
    # Sun C++ 5.9
8876
 
 
8877
 
    # The more standards-conforming stlport4 library is
8878
 
    # incompatible with the Cstd library. Avoid specifying
8879
 
    # it if it's in CXXFLAGS. Ignore libCrun as
8880
 
    # -library=stlport4 depends on it.
8881
 
    case " $CXX $CXXFLAGS " in
8882
 
    *" -library=stlport4 "*)
8883
 
      solaris_use_stlport4=yes
8884
 
      ;;
8885
 
    esac
8886
 
 
8887
 
    if test "$solaris_use_stlport4" != yes; then
8888
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8889
 
    fi
8890
 
    ;;
8891
 
  esac
8892
 
  ;;
8893
 
 
8894
 
solaris*)
8895
 
  case $cc_basename in
8896
 
  CC* | sunCC*)
8897
 
    # The more standards-conforming stlport4 library is
8898
 
    # incompatible with the Cstd library. Avoid specifying
8899
 
    # it if it's in CXXFLAGS. Ignore libCrun as
8900
 
    # -library=stlport4 depends on it.
8901
 
    case " $CXX $CXXFLAGS " in
8902
 
    *" -library=stlport4 "*)
8903
 
      solaris_use_stlport4=yes
8904
 
      ;;
8905
 
    esac
8906
 
 
8907
 
    # Adding this requires a known-good setup of shared libraries for
8908
 
    # Sun compiler versions before 5.6, else PIC objects from an old
8909
 
    # archive will be linked into the output, leading to subtle bugs.
8910
 
    if test "$solaris_use_stlport4" != yes; then
8911
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8912
 
    fi
8913
 
    ;;
8914
 
  esac
8915
 
  ;;
8916
 
esac
8917
 
])
8918
 
 
8919
 
case " $_LT_TAGVAR(postdeps, $1) " in
8920
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8921
 
esac
8922
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8923
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8924
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8925
 
fi
8926
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8927
 
    [The directories searched by this compiler when creating a shared library])
8928
 
_LT_TAGDECL([], [predep_objects], [1],
8929
 
    [Dependencies to place before and after the objects being linked to
8930
 
    create a shared library])
8931
 
_LT_TAGDECL([], [postdep_objects], [1])
8932
 
_LT_TAGDECL([], [predeps], [1])
8933
 
_LT_TAGDECL([], [postdeps], [1])
8934
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
8935
 
    [The library search path used internally by the compiler when linking
8936
 
    a shared library])
8937
 
])# _LT_SYS_HIDDEN_LIBDEPS
8938
 
 
8939
 
 
8940
 
# _LT_LANG_F77_CONFIG([TAG])
8941
 
# --------------------------
8942
 
# Ensure that the configuration variables for a Fortran 77 compiler are
8943
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
8944
 
# to write the compiler configuration to `libtool'.
8945
 
m4_defun([_LT_LANG_F77_CONFIG],
8946
 
[AC_LANG_PUSH(Fortran 77)
8947
 
if test -z "$F77" || test "X$F77" = "Xno"; then
8948
 
  _lt_disable_F77=yes
8949
 
fi
8950
 
 
8951
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8952
 
_LT_TAGVAR(allow_undefined_flag, $1)=
8953
 
_LT_TAGVAR(always_export_symbols, $1)=no
8954
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
8955
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
8956
 
_LT_TAGVAR(hardcode_direct, $1)=no
8957
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
8958
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8959
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
8960
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
8961
 
_LT_TAGVAR(hardcode_automatic, $1)=no
8962
 
_LT_TAGVAR(inherit_rpath, $1)=no
8963
 
_LT_TAGVAR(module_cmds, $1)=
8964
 
_LT_TAGVAR(module_expsym_cmds, $1)=
8965
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
8966
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8967
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
8968
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8969
 
_LT_TAGVAR(no_undefined_flag, $1)=
8970
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
8971
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8972
 
 
8973
 
# Source file extension for f77 test sources.
8974
 
ac_ext=f
8975
 
 
8976
 
# Object file extension for compiled f77 test sources.
8977
 
objext=o
8978
 
_LT_TAGVAR(objext, $1)=$objext
8979
 
 
8980
 
# No sense in running all these tests if we already determined that
8981
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
8982
 
# are currently assumed to apply to all compilers on this platform,
8983
 
# and will be corrupted by setting them based on a non-working compiler.
8984
 
if test "$_lt_disable_F77" != yes; then
8985
 
  # Code to be used in simple compile tests
8986
 
  lt_simple_compile_test_code="\
8987
 
      subroutine t
8988
 
      return
8989
 
      end
8990
 
"
8991
 
 
8992
 
  # Code to be used in simple link tests
8993
 
  lt_simple_link_test_code="\
8994
 
      program t
8995
 
      end
8996
 
"
8997
 
 
8998
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8999
 
  _LT_TAG_COMPILER
9000
 
 
9001
 
  # save warnings/boilerplate of simple test code
9002
 
  _LT_COMPILER_BOILERPLATE
9003
 
  _LT_LINKER_BOILERPLATE
9004
 
 
9005
 
  # Allow CC to be a program name with arguments.
9006
 
  lt_save_CC="$CC"
9007
 
  lt_save_GCC=$GCC
9008
 
  lt_save_CFLAGS=$CFLAGS
9009
 
  CC=${F77-"f77"}
9010
 
  CFLAGS=$FFLAGS
9011
 
  compiler=$CC
9012
 
  _LT_TAGVAR(compiler, $1)=$CC
9013
 
  _LT_CC_BASENAME([$compiler])
9014
 
  GCC=$G77
9015
 
  if test -n "$compiler"; then
9016
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
9017
 
    AC_MSG_RESULT([$can_build_shared])
9018
 
 
9019
 
    AC_MSG_CHECKING([whether to build shared libraries])
9020
 
    test "$can_build_shared" = "no" && enable_shared=no
9021
 
 
9022
 
    # On AIX, shared libraries and static libraries use the same namespace, and
9023
 
    # are all built from PIC.
9024
 
    case $host_os in
9025
 
      aix3*)
9026
 
        test "$enable_shared" = yes && enable_static=no
9027
 
        if test -n "$RANLIB"; then
9028
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
9029
 
          postinstall_cmds='$RANLIB $lib'
9030
 
        fi
9031
 
        ;;
9032
 
      aix[[4-9]]*)
9033
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9034
 
          test "$enable_shared" = yes && enable_static=no
9035
 
        fi
9036
 
        ;;
9037
 
    esac
9038
 
    AC_MSG_RESULT([$enable_shared])
9039
 
 
9040
 
    AC_MSG_CHECKING([whether to build static libraries])
9041
 
    # Make sure either enable_shared or enable_static is yes.
9042
 
    test "$enable_shared" = yes || enable_static=yes
9043
 
    AC_MSG_RESULT([$enable_static])
9044
 
 
9045
 
    _LT_TAGVAR(GCC, $1)="$G77"
9046
 
    _LT_TAGVAR(LD, $1)="$LD"
9047
 
 
9048
 
    ## CAVEAT EMPTOR:
9049
 
    ## There is no encapsulation within the following macros, do not change
9050
 
    ## the running order or otherwise move them around unless you know exactly
9051
 
    ## what you are doing...
9052
 
    _LT_COMPILER_PIC($1)
9053
 
    _LT_COMPILER_C_O($1)
9054
 
    _LT_COMPILER_FILE_LOCKS($1)
9055
 
    _LT_LINKER_SHLIBS($1)
9056
 
    _LT_SYS_DYNAMIC_LINKER($1)
9057
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
9058
 
 
9059
 
    _LT_CONFIG($1)
9060
 
  fi # test -n "$compiler"
9061
 
 
9062
 
  GCC=$lt_save_GCC
9063
 
  CC="$lt_save_CC"
9064
 
  CFLAGS="$lt_save_CFLAGS"
9065
 
fi # test "$_lt_disable_F77" != yes
9066
 
 
9067
 
AC_LANG_POP
9068
 
])# _LT_LANG_F77_CONFIG
9069
 
 
9070
 
 
9071
 
# _LT_LANG_FC_CONFIG([TAG])
9072
 
# -------------------------
9073
 
# Ensure that the configuration variables for a Fortran compiler are
9074
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
9075
 
# to write the compiler configuration to `libtool'.
9076
 
m4_defun([_LT_LANG_FC_CONFIG],
9077
 
[AC_LANG_PUSH(Fortran)
9078
 
 
9079
 
if test -z "$FC" || test "X$FC" = "Xno"; then
9080
 
  _lt_disable_FC=yes
9081
 
fi
9082
 
 
9083
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9084
 
_LT_TAGVAR(allow_undefined_flag, $1)=
9085
 
_LT_TAGVAR(always_export_symbols, $1)=no
9086
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
9087
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9088
 
_LT_TAGVAR(hardcode_direct, $1)=no
9089
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9090
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9091
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9092
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
9093
 
_LT_TAGVAR(hardcode_automatic, $1)=no
9094
 
_LT_TAGVAR(inherit_rpath, $1)=no
9095
 
_LT_TAGVAR(module_cmds, $1)=
9096
 
_LT_TAGVAR(module_expsym_cmds, $1)=
9097
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
9098
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9099
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9100
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9101
 
_LT_TAGVAR(no_undefined_flag, $1)=
9102
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
9103
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9104
 
 
9105
 
# Source file extension for fc test sources.
9106
 
ac_ext=${ac_fc_srcext-f}
9107
 
 
9108
 
# Object file extension for compiled fc test sources.
9109
 
objext=o
9110
 
_LT_TAGVAR(objext, $1)=$objext
9111
 
 
9112
 
# No sense in running all these tests if we already determined that
9113
 
# the FC compiler isn't working.  Some variables (like enable_shared)
9114
 
# are currently assumed to apply to all compilers on this platform,
9115
 
# and will be corrupted by setting them based on a non-working compiler.
9116
 
if test "$_lt_disable_FC" != yes; then
9117
 
  # Code to be used in simple compile tests
9118
 
  lt_simple_compile_test_code="\
9119
 
      subroutine t
9120
 
      return
9121
 
      end
9122
 
"
9123
 
 
9124
 
  # Code to be used in simple link tests
9125
 
  lt_simple_link_test_code="\
9126
 
      program t
9127
 
      end
9128
 
"
9129
 
 
9130
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9131
 
  _LT_TAG_COMPILER
9132
 
 
9133
 
  # save warnings/boilerplate of simple test code
9134
 
  _LT_COMPILER_BOILERPLATE
9135
 
  _LT_LINKER_BOILERPLATE
9136
 
 
9137
 
  # Allow CC to be a program name with arguments.
9138
 
  lt_save_CC="$CC"
9139
 
  lt_save_GCC=$GCC
9140
 
  lt_save_CFLAGS=$CFLAGS
9141
 
  CC=${FC-"f95"}
9142
 
  CFLAGS=$FCFLAGS
9143
 
  compiler=$CC
9144
 
  GCC=$ac_cv_fc_compiler_gnu
9145
 
 
9146
 
  _LT_TAGVAR(compiler, $1)=$CC
9147
 
  _LT_CC_BASENAME([$compiler])
9148
 
 
9149
 
  if test -n "$compiler"; then
9150
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
9151
 
    AC_MSG_RESULT([$can_build_shared])
9152
 
 
9153
 
    AC_MSG_CHECKING([whether to build shared libraries])
9154
 
    test "$can_build_shared" = "no" && enable_shared=no
9155
 
 
9156
 
    # On AIX, shared libraries and static libraries use the same namespace, and
9157
 
    # are all built from PIC.
9158
 
    case $host_os in
9159
 
      aix3*)
9160
 
        test "$enable_shared" = yes && enable_static=no
9161
 
        if test -n "$RANLIB"; then
9162
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
9163
 
          postinstall_cmds='$RANLIB $lib'
9164
 
        fi
9165
 
        ;;
9166
 
      aix[[4-9]]*)
9167
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9168
 
          test "$enable_shared" = yes && enable_static=no
9169
 
        fi
9170
 
        ;;
9171
 
    esac
9172
 
    AC_MSG_RESULT([$enable_shared])
9173
 
 
9174
 
    AC_MSG_CHECKING([whether to build static libraries])
9175
 
    # Make sure either enable_shared or enable_static is yes.
9176
 
    test "$enable_shared" = yes || enable_static=yes
9177
 
    AC_MSG_RESULT([$enable_static])
9178
 
 
9179
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
9180
 
    _LT_TAGVAR(LD, $1)="$LD"
9181
 
 
9182
 
    ## CAVEAT EMPTOR:
9183
 
    ## There is no encapsulation within the following macros, do not change
9184
 
    ## the running order or otherwise move them around unless you know exactly
9185
 
    ## what you are doing...
9186
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
9187
 
    _LT_COMPILER_PIC($1)
9188
 
    _LT_COMPILER_C_O($1)
9189
 
    _LT_COMPILER_FILE_LOCKS($1)
9190
 
    _LT_LINKER_SHLIBS($1)
9191
 
    _LT_SYS_DYNAMIC_LINKER($1)
9192
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
9193
 
 
9194
 
    _LT_CONFIG($1)
9195
 
  fi # test -n "$compiler"
9196
 
 
9197
 
  GCC=$lt_save_GCC
9198
 
  CC=$lt_save_CC
9199
 
  CFLAGS=$lt_save_CFLAGS
9200
 
fi # test "$_lt_disable_FC" != yes
9201
 
 
9202
 
AC_LANG_POP
9203
 
])# _LT_LANG_FC_CONFIG
9204
 
 
9205
 
 
9206
 
# _LT_LANG_GCJ_CONFIG([TAG])
9207
 
# --------------------------
9208
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
9209
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
9210
 
# to write the compiler configuration to `libtool'.
9211
 
m4_defun([_LT_LANG_GCJ_CONFIG],
9212
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
9213
 
AC_LANG_SAVE
9214
 
 
9215
 
# Source file extension for Java test sources.
9216
 
ac_ext=java
9217
 
 
9218
 
# Object file extension for compiled Java test sources.
9219
 
objext=o
9220
 
_LT_TAGVAR(objext, $1)=$objext
9221
 
 
9222
 
# Code to be used in simple compile tests
9223
 
lt_simple_compile_test_code="class foo {}"
9224
 
 
9225
 
# Code to be used in simple link tests
9226
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9227
 
 
9228
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9229
 
_LT_TAG_COMPILER
9230
 
 
9231
 
# save warnings/boilerplate of simple test code
9232
 
_LT_COMPILER_BOILERPLATE
9233
 
_LT_LINKER_BOILERPLATE
9234
 
 
9235
 
# Allow CC to be a program name with arguments.
9236
 
lt_save_CC=$CC
9237
 
lt_save_CFLAGS=$CFLAGS
9238
 
lt_save_GCC=$GCC
9239
 
GCC=yes
9240
 
CC=${GCJ-"gcj"}
9241
 
CFLAGS=$GCJFLAGS
9242
 
compiler=$CC
9243
 
_LT_TAGVAR(compiler, $1)=$CC
9244
 
_LT_TAGVAR(LD, $1)="$LD"
9245
 
_LT_CC_BASENAME([$compiler])
9246
 
 
9247
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9248
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9249
 
 
9250
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9251
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9252
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9253
 
 
9254
 
if test -n "$compiler"; then
9255
 
  _LT_COMPILER_NO_RTTI($1)
9256
 
  _LT_COMPILER_PIC($1)
9257
 
  _LT_COMPILER_C_O($1)
9258
 
  _LT_COMPILER_FILE_LOCKS($1)
9259
 
  _LT_LINKER_SHLIBS($1)
9260
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
9261
 
 
9262
 
  _LT_CONFIG($1)
9263
 
fi
9264
 
 
9265
 
AC_LANG_RESTORE
9266
 
 
9267
 
GCC=$lt_save_GCC
9268
 
CC=$lt_save_CC
9269
 
CFLAGS=$lt_save_CFLAGS
9270
 
])# _LT_LANG_GCJ_CONFIG
9271
 
 
9272
 
 
9273
 
# _LT_LANG_GO_CONFIG([TAG])
9274
 
# --------------------------
9275
 
# Ensure that the configuration variables for the GNU Go compiler
9276
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
9277
 
# to write the compiler configuration to `libtool'.
9278
 
m4_defun([_LT_LANG_GO_CONFIG],
9279
 
[AC_REQUIRE([LT_PROG_GO])dnl
9280
 
AC_LANG_SAVE
9281
 
 
9282
 
# Source file extension for Go test sources.
9283
 
ac_ext=go
9284
 
 
9285
 
# Object file extension for compiled Go test sources.
9286
 
objext=o
9287
 
_LT_TAGVAR(objext, $1)=$objext
9288
 
 
9289
 
# Code to be used in simple compile tests
9290
 
lt_simple_compile_test_code="package main; func main() { }"
9291
 
 
9292
 
# Code to be used in simple link tests
9293
 
lt_simple_link_test_code='package main; func main() { }'
9294
 
 
9295
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9296
 
_LT_TAG_COMPILER
9297
 
 
9298
 
# save warnings/boilerplate of simple test code
9299
 
_LT_COMPILER_BOILERPLATE
9300
 
_LT_LINKER_BOILERPLATE
9301
 
 
9302
 
# Allow CC to be a program name with arguments.
9303
 
lt_save_CC=$CC
9304
 
lt_save_CFLAGS=$CFLAGS
9305
 
lt_save_GCC=$GCC
9306
 
GCC=yes
9307
 
CC=${GOC-"gccgo"}
9308
 
CFLAGS=$GOFLAGS
9309
 
compiler=$CC
9310
 
_LT_TAGVAR(compiler, $1)=$CC
9311
 
_LT_TAGVAR(LD, $1)="$LD"
9312
 
_LT_CC_BASENAME([$compiler])
9313
 
 
9314
 
# Go did not exist at the time GCC didn't implicitly link libc in.
9315
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9316
 
 
9317
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9318
 
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9319
 
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9320
 
 
9321
 
if test -n "$compiler"; then
9322
 
  _LT_COMPILER_NO_RTTI($1)
9323
 
  _LT_COMPILER_PIC($1)
9324
 
  _LT_COMPILER_C_O($1)
9325
 
  _LT_COMPILER_FILE_LOCKS($1)
9326
 
  _LT_LINKER_SHLIBS($1)
9327
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
9328
 
 
9329
 
  _LT_CONFIG($1)
9330
 
fi
9331
 
 
9332
 
AC_LANG_RESTORE
9333
 
 
9334
 
GCC=$lt_save_GCC
9335
 
CC=$lt_save_CC
9336
 
CFLAGS=$lt_save_CFLAGS
9337
 
])# _LT_LANG_GO_CONFIG
9338
 
 
9339
 
 
9340
 
# _LT_LANG_RC_CONFIG([TAG])
9341
 
# -------------------------
9342
 
# Ensure that the configuration variables for the Windows resource compiler
9343
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
9344
 
# to write the compiler configuration to `libtool'.
9345
 
m4_defun([_LT_LANG_RC_CONFIG],
9346
 
[AC_REQUIRE([LT_PROG_RC])dnl
9347
 
AC_LANG_SAVE
9348
 
 
9349
 
# Source file extension for RC test sources.
9350
 
ac_ext=rc
9351
 
 
9352
 
# Object file extension for compiled RC test sources.
9353
 
objext=o
9354
 
_LT_TAGVAR(objext, $1)=$objext
9355
 
 
9356
 
# Code to be used in simple compile tests
9357
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9358
 
 
9359
 
# Code to be used in simple link tests
9360
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
9361
 
 
9362
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9363
 
_LT_TAG_COMPILER
9364
 
 
9365
 
# save warnings/boilerplate of simple test code
9366
 
_LT_COMPILER_BOILERPLATE
9367
 
_LT_LINKER_BOILERPLATE
9368
 
 
9369
 
# Allow CC to be a program name with arguments.
9370
 
lt_save_CC="$CC"
9371
 
lt_save_CFLAGS=$CFLAGS
9372
 
lt_save_GCC=$GCC
9373
 
GCC=
9374
 
CC=${RC-"windres"}
9375
 
CFLAGS=
9376
 
compiler=$CC
9377
 
_LT_TAGVAR(compiler, $1)=$CC
9378
 
_LT_CC_BASENAME([$compiler])
9379
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9380
 
 
9381
 
if test -n "$compiler"; then
9382
 
  :
9383
 
  _LT_CONFIG($1)
9384
 
fi
9385
 
 
9386
 
GCC=$lt_save_GCC
9387
 
AC_LANG_RESTORE
9388
 
CC=$lt_save_CC
9389
 
CFLAGS=$lt_save_CFLAGS
9390
 
])# _LT_LANG_RC_CONFIG
9391
 
 
9392
 
 
9393
 
# LT_PROG_GCJ
9394
 
# -----------
9395
 
AC_DEFUN([LT_PROG_GCJ],
9396
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9397
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9398
 
    [AC_CHECK_TOOL(GCJ, gcj,)
9399
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9400
 
      AC_SUBST(GCJFLAGS)])])[]dnl
9401
 
])
9402
 
 
9403
 
# Old name:
9404
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9405
 
dnl aclocal-1.4 backwards compatibility:
9406
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
9407
 
 
9408
 
 
9409
 
# LT_PROG_GO
9410
 
# ----------
9411
 
AC_DEFUN([LT_PROG_GO],
9412
 
[AC_CHECK_TOOL(GOC, gccgo,)
9413
 
])
9414
 
 
9415
 
 
9416
 
# LT_PROG_RC
9417
 
# ----------
9418
 
AC_DEFUN([LT_PROG_RC],
9419
 
[AC_CHECK_TOOL(RC, windres,)
9420
 
])
9421
 
 
9422
 
# Old name:
9423
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
9424
 
dnl aclocal-1.4 backwards compatibility:
9425
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
9426
 
 
9427
 
 
9428
 
# _LT_DECL_EGREP
9429
 
# --------------
9430
 
# If we don't have a new enough Autoconf to choose the best grep
9431
 
# available, choose the one first in the user's PATH.
9432
 
m4_defun([_LT_DECL_EGREP],
9433
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
9434
 
AC_REQUIRE([AC_PROG_FGREP])dnl
9435
 
test -z "$GREP" && GREP=grep
9436
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
9437
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
9438
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
9439
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
9440
 
AC_SUBST([GREP])
9441
 
])
9442
 
 
9443
 
 
9444
 
# _LT_DECL_OBJDUMP
9445
 
# --------------
9446
 
# If we don't have a new enough Autoconf to choose the best objdump
9447
 
# available, choose the one first in the user's PATH.
9448
 
m4_defun([_LT_DECL_OBJDUMP],
9449
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
9450
 
test -z "$OBJDUMP" && OBJDUMP=objdump
9451
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
9452
 
AC_SUBST([OBJDUMP])
9453
 
])
9454
 
 
9455
 
# _LT_DECL_DLLTOOL
9456
 
# ----------------
9457
 
# Ensure DLLTOOL variable is set.
9458
 
m4_defun([_LT_DECL_DLLTOOL],
9459
 
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9460
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
9461
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
9462
 
AC_SUBST([DLLTOOL])
9463
 
])
9464
 
 
9465
 
# _LT_DECL_SED
9466
 
# ------------
9467
 
# Check for a fully-functional sed program, that truncates
9468
 
# as few characters as possible.  Prefer GNU sed if found.
9469
 
m4_defun([_LT_DECL_SED],
9470
 
[AC_PROG_SED
9471
 
test -z "$SED" && SED=sed
9472
 
Xsed="$SED -e 1s/^X//"
9473
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
9474
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
9475
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
9476
 
])# _LT_DECL_SED
9477
 
 
9478
 
m4_ifndef([AC_PROG_SED], [
9479
 
# NOTE: This macro has been submitted for inclusion into   #
9480
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
9481
 
#  a released version of Autoconf we should remove this    #
9482
 
#  macro and use it instead.                               #
9483
 
 
9484
 
m4_defun([AC_PROG_SED],
9485
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
9486
 
AC_CACHE_VAL(lt_cv_path_SED,
9487
 
[# Loop through the user's path and test for sed and gsed.
9488
 
# Then use that list of sed's as ones to test for truncation.
9489
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490
 
for as_dir in $PATH
9491
 
do
9492
 
  IFS=$as_save_IFS
9493
 
  test -z "$as_dir" && as_dir=.
9494
 
  for lt_ac_prog in sed gsed; do
9495
 
    for ac_exec_ext in '' $ac_executable_extensions; do
9496
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9497
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9498
 
      fi
9499
 
    done
9500
 
  done
9501
 
done
9502
 
IFS=$as_save_IFS
9503
 
lt_ac_max=0
9504
 
lt_ac_count=0
9505
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9506
 
# along with /bin/sed that truncates output.
9507
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9508
 
  test ! -f $lt_ac_sed && continue
9509
 
  cat /dev/null > conftest.in
9510
 
  lt_ac_count=0
9511
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9512
 
  # Check for GNU sed and select it if it is found.
9513
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9514
 
    lt_cv_path_SED=$lt_ac_sed
9515
 
    break
9516
 
  fi
9517
 
  while true; do
9518
 
    cat conftest.in conftest.in >conftest.tmp
9519
 
    mv conftest.tmp conftest.in
9520
 
    cp conftest.in conftest.nl
9521
 
    echo >>conftest.nl
9522
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9523
 
    cmp -s conftest.out conftest.nl || break
9524
 
    # 10000 chars as input seems more than enough
9525
 
    test $lt_ac_count -gt 10 && break
9526
 
    lt_ac_count=`expr $lt_ac_count + 1`
9527
 
    if test $lt_ac_count -gt $lt_ac_max; then
9528
 
      lt_ac_max=$lt_ac_count
9529
 
      lt_cv_path_SED=$lt_ac_sed
9530
 
    fi
9531
 
  done
9532
 
done
9533
 
])
9534
 
SED=$lt_cv_path_SED
9535
 
AC_SUBST([SED])
9536
 
AC_MSG_RESULT([$SED])
9537
 
])#AC_PROG_SED
9538
 
])#m4_ifndef
9539
 
 
9540
 
# Old name:
9541
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
9542
 
dnl aclocal-1.4 backwards compatibility:
9543
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
9544
 
 
9545
 
 
9546
 
# _LT_CHECK_SHELL_FEATURES
9547
 
# ------------------------
9548
 
# Find out whether the shell is Bourne or XSI compatible,
9549
 
# or has some other useful features.
9550
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
9551
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
9552
 
# Try some XSI features
9553
 
xsi_shell=no
9554
 
( _lt_dummy="a/b/c"
9555
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9556
 
      = c,a/b,b/c, \
9557
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
9558
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9559
 
  && xsi_shell=yes
9560
 
AC_MSG_RESULT([$xsi_shell])
9561
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
9562
 
 
9563
 
AC_MSG_CHECKING([whether the shell understands "+="])
9564
 
lt_shell_append=no
9565
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
9566
 
    >/dev/null 2>&1 \
9567
 
  && lt_shell_append=yes
9568
 
AC_MSG_RESULT([$lt_shell_append])
9569
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
9570
 
 
9571
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9572
 
  lt_unset=unset
9573
 
else
9574
 
  lt_unset=false
9575
 
fi
9576
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
9577
 
 
9578
 
# test EBCDIC or ASCII
9579
 
case `echo X|tr X '\101'` in
9580
 
 A) # ASCII based system
9581
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9582
 
  lt_SP2NL='tr \040 \012'
9583
 
  lt_NL2SP='tr \015\012 \040\040'
9584
 
  ;;
9585
 
 *) # EBCDIC based system
9586
 
  lt_SP2NL='tr \100 \n'
9587
 
  lt_NL2SP='tr \r\n \100\100'
9588
 
  ;;
9589
 
esac
9590
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
9591
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
9592
 
])# _LT_CHECK_SHELL_FEATURES
9593
 
 
9594
 
 
9595
 
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
9596
 
# ------------------------------------------------------
9597
 
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
9598
 
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
9599
 
m4_defun([_LT_PROG_FUNCTION_REPLACE],
9600
 
[dnl {
9601
 
sed -e '/^$1 ()$/,/^} # $1 /c\
9602
 
$1 ()\
9603
 
{\
9604
 
m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
9605
 
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
9606
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
9607
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9608
 
test 0 -eq $? || _lt_function_replace_fail=:
9609
 
])
9610
 
 
9611
 
 
9612
 
# _LT_PROG_REPLACE_SHELLFNS
9613
 
# -------------------------
9614
 
# Replace existing portable implementations of several shell functions with
9615
 
# equivalent extended shell implementations where those features are available..
9616
 
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
9617
 
[if test x"$xsi_shell" = xyes; then
9618
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
9619
 
    case ${1} in
9620
 
      */*) func_dirname_result="${1%/*}${2}" ;;
9621
 
      *  ) func_dirname_result="${3}" ;;
9622
 
    esac])
9623
 
 
9624
 
  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9625
 
    func_basename_result="${1##*/}"])
9626
 
 
9627
 
  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9628
 
    case ${1} in
9629
 
      */*) func_dirname_result="${1%/*}${2}" ;;
9630
 
      *  ) func_dirname_result="${3}" ;;
9631
 
    esac
9632
 
    func_basename_result="${1##*/}"])
9633
 
 
9634
 
  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
9635
 
    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9636
 
    # positional parameters, so assign one to ordinary parameter first.
9637
 
    func_stripname_result=${3}
9638
 
    func_stripname_result=${func_stripname_result#"${1}"}
9639
 
    func_stripname_result=${func_stripname_result%"${2}"}])
9640
 
 
9641
 
  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
9642
 
    func_split_long_opt_name=${1%%=*}
9643
 
    func_split_long_opt_arg=${1#*=}])
9644
 
 
9645
 
  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
9646
 
    func_split_short_opt_arg=${1#??}
9647
 
    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
9648
 
 
9649
 
  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
9650
 
    case ${1} in
9651
 
      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9652
 
      *)    func_lo2o_result=${1} ;;
9653
 
    esac])
9654
 
 
9655
 
  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
9656
 
 
9657
 
  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
9658
 
 
9659
 
  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
9660
 
fi
9661
 
 
9662
 
if test x"$lt_shell_append" = xyes; then
9663
 
  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
9664
 
 
9665
 
  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
9666
 
    func_quote_for_eval "${2}"
9667
 
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
9668
 
    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
9669
 
 
9670
 
  # Save a `func_append' function call where possible by direct use of '+='
9671
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
9672
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
9673
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9674
 
  test 0 -eq $? || _lt_function_replace_fail=:
9675
 
else
9676
 
  # Save a `func_append' function call even when '+=' is not available
9677
 
  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
9678
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
9679
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9680
 
  test 0 -eq $? || _lt_function_replace_fail=:
9681
 
fi
9682
 
 
9683
 
if test x"$_lt_function_replace_fail" = x":"; then
9684
 
  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
9685
 
fi
9686
 
])
9687
 
 
9688
 
# _LT_PATH_CONVERSION_FUNCTIONS
9689
 
# -----------------------------
9690
 
# Determine which file name conversion functions should be used by
9691
 
# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
9692
 
# for certain cross-compile configurations and native mingw.
9693
 
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
9694
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9695
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
9696
 
AC_MSG_CHECKING([how to convert $build file names to $host format])
9697
 
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
9698
 
[case $host in
9699
 
  *-*-mingw* )
9700
 
    case $build in
9701
 
      *-*-mingw* ) # actually msys
9702
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9703
 
        ;;
9704
 
      *-*-cygwin* )
9705
 
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9706
 
        ;;
9707
 
      * ) # otherwise, assume *nix
9708
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9709
 
        ;;
9710
 
    esac
9711
 
    ;;
9712
 
  *-*-cygwin* )
9713
 
    case $build in
9714
 
      *-*-mingw* ) # actually msys
9715
 
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9716
 
        ;;
9717
 
      *-*-cygwin* )
9718
 
        lt_cv_to_host_file_cmd=func_convert_file_noop
9719
 
        ;;
9720
 
      * ) # otherwise, assume *nix
9721
 
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9722
 
        ;;
9723
 
    esac
9724
 
    ;;
9725
 
  * ) # unhandled hosts (and "normal" native builds)
9726
 
    lt_cv_to_host_file_cmd=func_convert_file_noop
9727
 
    ;;
9728
 
esac
9729
 
])
9730
 
to_host_file_cmd=$lt_cv_to_host_file_cmd
9731
 
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9732
 
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9733
 
         [0], [convert $build file names to $host format])dnl
9734
 
 
9735
 
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9736
 
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9737
 
[#assume ordinary cross tools, or native build.
9738
 
lt_cv_to_tool_file_cmd=func_convert_file_noop
9739
 
case $host in
9740
 
  *-*-mingw* )
9741
 
    case $build in
9742
 
      *-*-mingw* ) # actually msys
9743
 
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9744
 
        ;;
9745
 
    esac
9746
 
    ;;
9747
 
esac
9748
 
])
9749
 
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9750
 
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9751
 
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9752
 
         [0], [convert $build files to toolchain format])dnl
9753
 
])# _LT_PATH_CONVERSION_FUNCTIONS
9754
 
 
9755
 
# Helper functions for option handling.                    -*- Autoconf -*-
9756
 
#
9757
 
#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
9758
 
#   Inc.
9759
 
#   Written by Gary V. Vaughan, 2004
9760
 
#
9761
 
# This file is free software; the Free Software Foundation gives
9762
 
# unlimited permission to copy and/or distribute it, with or without
9763
 
# modifications, as long as this notice is preserved.
9764
 
 
9765
 
# serial 7 ltoptions.m4
9766
 
 
9767
 
# This is to help aclocal find these macros, as it can't see m4_define.
9768
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9769
 
 
9770
 
 
9771
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9772
 
# ------------------------------------------
9773
 
m4_define([_LT_MANGLE_OPTION],
9774
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9775
 
 
9776
 
 
9777
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9778
 
# ---------------------------------------
9779
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9780
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
9781
 
# saved as a flag.
9782
 
m4_define([_LT_SET_OPTION],
9783
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9784
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9785
 
        _LT_MANGLE_DEFUN([$1], [$2]),
9786
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
9787
 
])
9788
 
 
9789
 
 
9790
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9791
 
# ------------------------------------------------------------
9792
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9793
 
m4_define([_LT_IF_OPTION],
9794
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9795
 
 
9796
 
 
9797
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9798
 
# -------------------------------------------------------
9799
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9800
 
# are set.
9801
 
m4_define([_LT_UNLESS_OPTIONS],
9802
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9803
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9804
 
                      [m4_define([$0_found])])])[]dnl
9805
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9806
 
])[]dnl
9807
 
])
9808
 
 
9809
 
 
9810
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9811
 
# ----------------------------------------
9812
 
# OPTION-LIST is a space-separated list of Libtool options associated
9813
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
9814
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9815
 
# the unknown option and exit.
9816
 
m4_defun([_LT_SET_OPTIONS],
9817
 
[# Set options
9818
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9819
 
    [_LT_SET_OPTION([$1], _LT_Option)])
9820
 
 
9821
 
m4_if([$1],[LT_INIT],[
9822
 
  dnl
9823
 
  dnl Simply set some default values (i.e off) if boolean options were not
9824
 
  dnl specified:
9825
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9826
 
  ])
9827
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9828
 
  ])
9829
 
  dnl
9830
 
  dnl If no reference was made to various pairs of opposing options, then
9831
 
  dnl we run the default mode handler for the pair.  For example, if neither
9832
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
9833
 
  dnl archives by default:
9834
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9835
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9836
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9837
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9838
 
                   [_LT_ENABLE_FAST_INSTALL])
9839
 
  ])
9840
 
])# _LT_SET_OPTIONS
9841
 
 
9842
 
 
9843
 
 
9844
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9845
 
# -----------------------------------------
9846
 
m4_define([_LT_MANGLE_DEFUN],
9847
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9848
 
 
9849
 
 
9850
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9851
 
# -----------------------------------------------
9852
 
m4_define([LT_OPTION_DEFINE],
9853
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9854
 
])# LT_OPTION_DEFINE
9855
 
 
9856
 
 
9857
 
# dlopen
9858
 
# ------
9859
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9860
 
])
9861
 
 
9862
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
9863
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
9864
 
AC_DIAGNOSE([obsolete],
9865
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9866
 
put the `dlopen' option into LT_INIT's first parameter.])
9867
 
])
9868
 
 
9869
 
dnl aclocal-1.4 backwards compatibility:
9870
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9871
 
 
9872
 
 
9873
 
# win32-dll
9874
 
# ---------
9875
 
# Declare package support for building win32 dll's.
9876
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9877
 
[enable_win32_dll=yes
9878
 
 
9879
 
case $host in
9880
 
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9881
 
  AC_CHECK_TOOL(AS, as, false)
9882
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9883
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
9884
 
  ;;
9885
 
esac
9886
 
 
9887
 
test -z "$AS" && AS=as
9888
 
_LT_DECL([], [AS],      [1], [Assembler program])dnl
9889
 
 
9890
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
9891
 
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9892
 
 
9893
 
test -z "$OBJDUMP" && OBJDUMP=objdump
9894
 
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9895
 
])# win32-dll
9896
 
 
9897
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9898
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9899
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
9900
 
AC_DIAGNOSE([obsolete],
9901
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
9902
 
put the `win32-dll' option into LT_INIT's first parameter.])
9903
 
])
9904
 
 
9905
 
dnl aclocal-1.4 backwards compatibility:
9906
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9907
 
 
9908
 
 
9909
 
# _LT_ENABLE_SHARED([DEFAULT])
9910
 
# ----------------------------
9911
 
# implement the --enable-shared flag, and supports the `shared' and
9912
 
# `disable-shared' LT_INIT options.
9913
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9914
 
m4_define([_LT_ENABLE_SHARED],
9915
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9916
 
AC_ARG_ENABLE([shared],
9917
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9918
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9919
 
    [p=${PACKAGE-default}
9920
 
    case $enableval in
9921
 
    yes) enable_shared=yes ;;
9922
 
    no) enable_shared=no ;;
9923
 
    *)
9924
 
      enable_shared=no
9925
 
      # Look at the argument we got.  We use all the common list separators.
9926
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9927
 
      for pkg in $enableval; do
9928
 
        IFS="$lt_save_ifs"
9929
 
        if test "X$pkg" = "X$p"; then
9930
 
          enable_shared=yes
9931
 
        fi
9932
 
      done
9933
 
      IFS="$lt_save_ifs"
9934
 
      ;;
9935
 
    esac],
9936
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9937
 
 
9938
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
9939
 
        [Whether or not to build shared libraries])
9940
 
])# _LT_ENABLE_SHARED
9941
 
 
9942
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9943
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9944
 
 
9945
 
# Old names:
9946
 
AC_DEFUN([AC_ENABLE_SHARED],
9947
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9948
 
])
9949
 
 
9950
 
AC_DEFUN([AC_DISABLE_SHARED],
9951
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
9952
 
])
9953
 
 
9954
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9955
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9956
 
 
9957
 
dnl aclocal-1.4 backwards compatibility:
9958
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9959
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9960
 
 
9961
 
 
9962
 
 
9963
 
# _LT_ENABLE_STATIC([DEFAULT])
9964
 
# ----------------------------
9965
 
# implement the --enable-static flag, and support the `static' and
9966
 
# `disable-static' LT_INIT options.
9967
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9968
 
m4_define([_LT_ENABLE_STATIC],
9969
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9970
 
AC_ARG_ENABLE([static],
9971
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9972
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9973
 
    [p=${PACKAGE-default}
9974
 
    case $enableval in
9975
 
    yes) enable_static=yes ;;
9976
 
    no) enable_static=no ;;
9977
 
    *)
9978
 
     enable_static=no
9979
 
      # Look at the argument we got.  We use all the common list separators.
9980
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9981
 
      for pkg in $enableval; do
9982
 
        IFS="$lt_save_ifs"
9983
 
        if test "X$pkg" = "X$p"; then
9984
 
          enable_static=yes
9985
 
        fi
9986
 
      done
9987
 
      IFS="$lt_save_ifs"
9988
 
      ;;
9989
 
    esac],
9990
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9991
 
 
9992
 
    _LT_DECL([build_old_libs], [enable_static], [0],
9993
 
        [Whether or not to build static libraries])
9994
 
])# _LT_ENABLE_STATIC
9995
 
 
9996
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9997
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9998
 
 
9999
 
# Old names:
10000
 
AC_DEFUN([AC_ENABLE_STATIC],
10001
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
10002
 
])
10003
 
 
10004
 
AC_DEFUN([AC_DISABLE_STATIC],
10005
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
10006
 
])
10007
 
 
10008
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
10009
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
10010
 
 
10011
 
dnl aclocal-1.4 backwards compatibility:
10012
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
10013
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
10014
 
 
10015
 
 
10016
 
 
10017
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
10018
 
# ----------------------------------
10019
 
# implement the --enable-fast-install flag, and support the `fast-install'
10020
 
# and `disable-fast-install' LT_INIT options.
10021
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
10022
 
m4_define([_LT_ENABLE_FAST_INSTALL],
10023
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
10024
 
AC_ARG_ENABLE([fast-install],
10025
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10026
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
10027
 
    [p=${PACKAGE-default}
10028
 
    case $enableval in
10029
 
    yes) enable_fast_install=yes ;;
10030
 
    no) enable_fast_install=no ;;
10031
 
    *)
10032
 
      enable_fast_install=no
10033
 
      # Look at the argument we got.  We use all the common list separators.
10034
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10035
 
      for pkg in $enableval; do
10036
 
        IFS="$lt_save_ifs"
10037
 
        if test "X$pkg" = "X$p"; then
10038
 
          enable_fast_install=yes
10039
 
        fi
10040
 
      done
10041
 
      IFS="$lt_save_ifs"
10042
 
      ;;
10043
 
    esac],
10044
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
10045
 
 
10046
 
_LT_DECL([fast_install], [enable_fast_install], [0],
10047
 
         [Whether or not to optimize for fast installation])dnl
10048
 
])# _LT_ENABLE_FAST_INSTALL
10049
 
 
10050
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10051
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10052
 
 
10053
 
# Old names:
10054
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
10055
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10056
 
AC_DIAGNOSE([obsolete],
10057
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10058
 
the `fast-install' option into LT_INIT's first parameter.])
10059
 
])
10060
 
 
10061
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
10062
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10063
 
AC_DIAGNOSE([obsolete],
10064
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
10065
 
the `disable-fast-install' option into LT_INIT's first parameter.])
10066
 
])
10067
 
 
10068
 
dnl aclocal-1.4 backwards compatibility:
10069
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
10070
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
10071
 
 
10072
 
 
10073
 
# _LT_WITH_PIC([MODE])
10074
 
# --------------------
10075
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
10076
 
# LT_INIT options.
10077
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
10078
 
m4_define([_LT_WITH_PIC],
10079
 
[AC_ARG_WITH([pic],
10080
 
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
10081
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10082
 
    [lt_p=${PACKAGE-default}
10083
 
    case $withval in
10084
 
    yes|no) pic_mode=$withval ;;
10085
 
    *)
10086
 
      pic_mode=default
10087
 
      # Look at the argument we got.  We use all the common list separators.
10088
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10089
 
      for lt_pkg in $withval; do
10090
 
        IFS="$lt_save_ifs"
10091
 
        if test "X$lt_pkg" = "X$lt_p"; then
10092
 
          pic_mode=yes
10093
 
        fi
10094
 
      done
10095
 
      IFS="$lt_save_ifs"
10096
 
      ;;
10097
 
    esac],
10098
 
    [pic_mode=default])
10099
 
 
10100
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10101
 
 
10102
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
10103
 
])# _LT_WITH_PIC
10104
 
 
10105
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10106
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10107
 
 
10108
 
# Old name:
10109
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
10110
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
10111
 
AC_DIAGNOSE([obsolete],
10112
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
10113
 
put the `pic-only' option into LT_INIT's first parameter.])
10114
 
])
10115
 
 
10116
 
dnl aclocal-1.4 backwards compatibility:
10117
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10118
 
 
10119
 
 
10120
 
m4_define([_LTDL_MODE], [])
10121
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10122
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
10123
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10124
 
                 [m4_define([_LTDL_MODE], [recursive])])
10125
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10126
 
                 [m4_define([_LTDL_MODE], [subproject])])
10127
 
 
10128
 
m4_define([_LTDL_TYPE], [])
10129
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
10130
 
                 [m4_define([_LTDL_TYPE], [installable])])
10131
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10132
 
                 [m4_define([_LTDL_TYPE], [convenience])])
10133
 
 
10134
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
10135
 
#
10136
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
10137
 
# Written by Gary V. Vaughan, 2004
10138
 
#
10139
 
# This file is free software; the Free Software Foundation gives
10140
 
# unlimited permission to copy and/or distribute it, with or without
10141
 
# modifications, as long as this notice is preserved.
10142
 
 
10143
 
# serial 6 ltsugar.m4
10144
 
 
10145
 
# This is to help aclocal find these macros, as it can't see m4_define.
10146
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10147
 
 
10148
 
 
10149
 
# lt_join(SEP, ARG1, [ARG2...])
10150
 
# -----------------------------
10151
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10152
 
# associated separator.
10153
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10154
 
# versions in m4sugar had bugs.
10155
 
m4_define([lt_join],
10156
 
[m4_if([$#], [1], [],
10157
 
       [$#], [2], [[$2]],
10158
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10159
 
m4_define([_lt_join],
10160
 
[m4_if([$#$2], [2], [],
10161
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10162
 
 
10163
 
 
10164
 
# lt_car(LIST)
10165
 
# lt_cdr(LIST)
10166
 
# ------------
10167
 
# Manipulate m4 lists.
10168
 
# These macros are necessary as long as will still need to support
10169
 
# Autoconf-2.59 which quotes differently.
10170
 
m4_define([lt_car], [[$1]])
10171
 
m4_define([lt_cdr],
10172
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10173
 
       [$#], 1, [],
10174
 
       [m4_dquote(m4_shift($@))])])
10175
 
m4_define([lt_unquote], $1)
10176
 
 
10177
 
 
10178
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
10179
 
# ------------------------------------------
10180
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
10181
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
10182
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10183
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
10184
 
# than defined and empty).
10185
 
#
10186
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
10187
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10188
 
m4_define([lt_append],
10189
 
[m4_define([$1],
10190
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10191
 
 
10192
 
 
10193
 
 
10194
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10195
 
# ----------------------------------------------------------
10196
 
# Produce a SEP delimited list of all paired combinations of elements of
10197
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
10198
 
# has the form PREFIXmINFIXSUFFIXn.
10199
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
10200
 
m4_define([lt_combine],
10201
 
[m4_if(m4_eval([$# > 3]), [1],
10202
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10203
 
[[m4_foreach([_Lt_prefix], [$2],
10204
 
             [m4_foreach([_Lt_suffix],
10205
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10206
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10207
 
 
10208
 
 
10209
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10210
 
# -----------------------------------------------------------------------
10211
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10212
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10213
 
m4_define([lt_if_append_uniq],
10214
 
[m4_ifdef([$1],
10215
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10216
 
                 [lt_append([$1], [$2], [$3])$4],
10217
 
                 [$5])],
10218
 
          [lt_append([$1], [$2], [$3])$4])])
10219
 
 
10220
 
 
10221
 
# lt_dict_add(DICT, KEY, VALUE)
10222
 
# -----------------------------
10223
 
m4_define([lt_dict_add],
10224
 
[m4_define([$1($2)], [$3])])
10225
 
 
10226
 
 
10227
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10228
 
# --------------------------------------------
10229
 
m4_define([lt_dict_add_subkey],
10230
 
[m4_define([$1($2:$3)], [$4])])
10231
 
 
10232
 
 
10233
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
10234
 
# ----------------------------------
10235
 
m4_define([lt_dict_fetch],
10236
 
[m4_ifval([$3],
10237
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10238
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10239
 
 
10240
 
 
10241
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10242
 
# -----------------------------------------------------------------
10243
 
m4_define([lt_if_dict_fetch],
10244
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10245
 
        [$5],
10246
 
    [$6])])
10247
 
 
10248
 
 
10249
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10250
 
# --------------------------------------------------------------
10251
 
m4_define([lt_dict_filter],
10252
 
[m4_if([$5], [], [],
10253
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
10254
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10255
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10256
 
])
10257
 
 
10258
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
10259
 
#
10260
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
10261
 
#   Written by Scott James Remnant, 2004
10262
 
#
10263
 
# This file is free software; the Free Software Foundation gives
10264
 
# unlimited permission to copy and/or distribute it, with or without
10265
 
# modifications, as long as this notice is preserved.
10266
 
 
10267
 
# @configure_input@
10268
 
 
10269
 
# serial 3337 ltversion.m4
10270
 
# This file is part of GNU Libtool
10271
 
 
10272
 
m4_define([LT_PACKAGE_VERSION], [2.4.2])
10273
 
m4_define([LT_PACKAGE_REVISION], [1.3337])
10274
 
 
10275
 
AC_DEFUN([LTVERSION_VERSION],
10276
 
[macro_version='2.4.2'
10277
 
macro_revision='1.3337'
10278
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10279
 
_LT_DECL(, macro_revision, 0)
10280
 
])
10281
 
 
10282
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
10283
 
#
10284
 
#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
10285
 
#   Written by Scott James Remnant, 2004.
10286
 
#
10287
 
# This file is free software; the Free Software Foundation gives
10288
 
# unlimited permission to copy and/or distribute it, with or without
10289
 
# modifications, as long as this notice is preserved.
10290
 
 
10291
 
# serial 5 lt~obsolete.m4
10292
 
 
10293
 
# These exist entirely to fool aclocal when bootstrapping libtool.
10294
 
#
10295
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
10296
 
# which have later been changed to m4_define as they aren't part of the
10297
 
# exported API, or moved to Autoconf or Automake where they belong.
10298
 
#
10299
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
10300
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10301
 
# using a macro with the same name in our local m4/libtool.m4 it'll
10302
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10303
 
# and doesn't know about Autoconf macros at all.)
10304
 
#
10305
 
# So we provide this file, which has a silly filename so it's always
10306
 
# included after everything else.  This provides aclocal with the
10307
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10308
 
# because those macros already exist, or will be overwritten later.
10309
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
10310
 
#
10311
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10312
 
# Yes, that means every name once taken will need to remain here until
10313
 
# we give up compatibility with versions before 1.7, at which point
10314
 
# we need to keep only those names which we still refer to.
10315
 
 
10316
 
# This is to help aclocal find these macros, as it can't see m4_define.
10317
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10318
 
 
10319
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10320
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
10321
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10322
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
10323
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10324
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
10325
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
10326
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10327
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
10328
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10329
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
10330
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10331
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10332
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10333
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10334
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10335
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
10336
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10337
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10338
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
10339
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
10340
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10341
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10342
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10343
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10344
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10345
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10346
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10347
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
10348
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
10349
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
10350
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10351
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10352
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
10353
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
10354
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10355
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10356
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
10357
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10358
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
10359
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
10360
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
10361
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10362
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10363
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10364
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10365
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10366
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10367
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10368
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10369
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10370
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10371
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10372
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
10373
 
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
10374
 
m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
10375
 
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
10376
 
m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
10377
 
m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
10378
 
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
10379
 
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
10380
 
 
10381
1785
# nls.m4 serial 5 (gettext-0.18)
10382
1786
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
10383
1787
dnl Inc.
12124
3528
 
12125
3529
m4_include([expansions.m4])
12126
3530
m4_include([intltool.m4])
 
3531
m4_include([libtool.m4])
 
3532
m4_include([ltoptions.m4])
 
3533
m4_include([ltsugar.m4])
 
3534
m4_include([ltversion.m4])
 
3535
m4_include([lt~obsolete.m4])
12127
3536
m4_include([mono.m4])
12128
3537
m4_include([programs.m4])