Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/libxml/src/m4/libtool.m4

Issue 1977213002: Roll libxml to 8effcb578e0590cc01bbcab0f9dccefc6bdbcdbd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update README.chromium. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2 # 2 #
3 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
4 # Written by Gordon Matzigkeit, 1996 6 # Written by Gordon Matzigkeit, 1996
5 # 7 #
6 # This file is free software; the Free Software Foundation gives 8 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without 9 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved. 10 # modifications, as long as this notice is preserved.
9 11
10 m4_define([_LT_COPYING], [dnl 12 m4_define([_LT_COPYING], [dnl
11 # Copyright (C) 2014 Free Software Foundation, Inc. 13 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12 # This is free software; see the source for copying conditions. There is NO 14 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15 # Foundation, Inc.
14 16 # Written by Gordon Matzigkeit, 1996
15 # GNU Libtool is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU General Public License as published by
17 # the Free Software Foundation; either version 2 of of the License, or
18 # (at your option) any later version.
19 # 17 #
20 # As a special exception to the GNU General Public License, if you 18 # This file is part of GNU Libtool.
21 # distribute this file as part of a program or library that is built
22 # using GNU Libtool, you may include this file under the same
23 # distribution terms that you use for the rest of that program.
24 # 19 #
25 # GNU Libtool is distributed in the hope that it will be useful, but 20 # GNU Libtool is free software; you can redistribute it and/or
26 # WITHOUT ANY WARRANTY; without even the implied warranty of 21 # modify it under the terms of the GNU General Public License as
22 # published by the Free Software Foundation; either version 2 of
23 # the License, or (at your option) any later version.
24 #
25 # As a special exception to the GNU General Public License,
26 # if you distribute this file as part of a program or library that
27 # is built using GNU Libtool, you may include this file under the
28 # same distribution terms that you use for the rest of that program.
29 #
30 # GNU Libtool is distributed in the hope that it will be useful,
31 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 # GNU General Public License for more details. 33 # GNU General Public License for more details.
29 # 34 #
30 # You should have received a copy of the GNU General Public License 35 # You should have received a copy of the GNU General Public License
31 # along with this program. If not, see <http://www.gnu.org/licenses/>. 36 # along with GNU Libtool; see the file COPYING. If not, a copy
37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38 # obtained by writing to the Free Software Foundation, Inc.,
39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32 ]) 40 ])
33 41
34 # serial 58 LT_INIT 42 # serial 57 LT_INIT
35 43
36 44
37 # LT_PREREQ(VERSION) 45 # LT_PREREQ(VERSION)
38 # ------------------ 46 # ------------------
39 # Complain and exit if this libtool version is less that VERSION. 47 # Complain and exit if this libtool version is less that VERSION.
40 m4_defun([LT_PREREQ], 48 m4_defun([LT_PREREQ],
41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 49 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
42 [m4_default([$3], 50 [m4_default([$3],
43 [m4_fatal([Libtool version $1 or higher is required], 51 [m4_fatal([Libtool version $1 or higher is required],
44 63)])], 52 63)])],
45 [$2])]) 53 [$2])])
46 54
47 55
48 # _LT_CHECK_BUILDDIR 56 # _LT_CHECK_BUILDDIR
49 # ------------------ 57 # ------------------
50 # Complain if the absolute build directory name contains unusual characters 58 # Complain if the absolute build directory name contains unusual characters
51 m4_defun([_LT_CHECK_BUILDDIR], 59 m4_defun([_LT_CHECK_BUILDDIR],
52 [case `pwd` in 60 [case `pwd` in
53 *\ * | *\ *) 61 *\ * | *\ *)
54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 62 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
55 esac 63 esac
56 ]) 64 ])
57 65
58 66
59 # LT_INIT([OPTIONS]) 67 # LT_INIT([OPTIONS])
60 # ------------------ 68 # ------------------
61 AC_DEFUN([LT_INIT], 69 AC_DEFUN([LT_INIT],
62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 70 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 71 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
64 AC_BEFORE([$0], [LT_LANG])dnl 72 AC_BEFORE([$0], [LT_LANG])dnl
65 AC_BEFORE([$0], [LT_OUTPUT])dnl 73 AC_BEFORE([$0], [LT_OUTPUT])dnl
66 AC_BEFORE([$0], [LTDL_INIT])dnl 74 AC_BEFORE([$0], [LTDL_INIT])dnl
67 m4_require([_LT_CHECK_BUILDDIR])dnl 75 m4_require([_LT_CHECK_BUILDDIR])dnl
68 76
69 dnl Autoconf doesn't catch unexpanded LT_ macros by default: 77 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 78 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 79 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 80 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
73 dnl unless we require an AC_DEFUNed macro: 81 dnl unless we require an AC_DEFUNed macro:
74 AC_REQUIRE([LTOPTIONS_VERSION])dnl 82 AC_REQUIRE([LTOPTIONS_VERSION])dnl
75 AC_REQUIRE([LTSUGAR_VERSION])dnl 83 AC_REQUIRE([LTSUGAR_VERSION])dnl
76 AC_REQUIRE([LTVERSION_VERSION])dnl 84 AC_REQUIRE([LTVERSION_VERSION])dnl
77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl 85 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
78 m4_require([_LT_PROG_LTMAIN])dnl 86 m4_require([_LT_PROG_LTMAIN])dnl
79 87
80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
81 89
82 dnl Parse OPTIONS 90 dnl Parse OPTIONS
83 _LT_SET_OPTIONS([$0], [$1]) 91 _LT_SET_OPTIONS([$0], [$1])
84 92
85 # This can be used to rebuild libtool when needed 93 # This can be used to rebuild libtool when needed
86 LIBTOOL_DEPS=$ltmain 94 LIBTOOL_DEPS="$ltmain"
87 95
88 # Always use our own libtool. 96 # Always use our own libtool.
89 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 97 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
90 AC_SUBST(LIBTOOL)dnl 98 AC_SUBST(LIBTOOL)dnl
91 99
92 _LT_SETUP 100 _LT_SETUP
93 101
94 # Only expand once: 102 # Only expand once:
95 m4_define([LT_INIT]) 103 m4_define([LT_INIT])
96 ])# LT_INIT 104 ])# LT_INIT
97 105
98 # Old names: 106 # Old names:
99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 107 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 108 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
101 dnl aclocal-1.4 backwards compatibility: 109 dnl aclocal-1.4 backwards compatibility:
102 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 110 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
103 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 111 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
104 112
105 113
106 # _LT_PREPARE_CC_BASENAME
107 # -----------------------
108 m4_defun([_LT_PREPARE_CC_BASENAME], [
109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
110 func_cc_basename ()
111 {
112 for cc_temp in @S|@*""; do
113 case $cc_temp in
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 \-*) ;;
117 *) break;;
118 esac
119 done
120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%% "`
121 }
122 ])# _LT_PREPARE_CC_BASENAME
123
124
125 # _LT_CC_BASENAME(CC) 114 # _LT_CC_BASENAME(CC)
126 # ------------------- 115 # -------------------
127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
128 # but that macro is also expanded into generated libtool script, which
129 # arranges for $SED and $ECHO to be set by different means.
130 m4_defun([_LT_CC_BASENAME], 117 m4_defun([_LT_CC_BASENAME],
131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl 118 [for cc_temp in $1""; do
132 AC_REQUIRE([_LT_DECL_SED])dnl 119 case $cc_temp in
133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 120 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
134 func_cc_basename $1 121 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
135 cc_basename=$func_cc_basename_result 122 \-*) ;;
123 *) break;;
124 esac
125 done
126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
136 ]) 127 ])
137 128
138 129
139 # _LT_FILEUTILS_DEFAULTS 130 # _LT_FILEUTILS_DEFAULTS
140 # ---------------------- 131 # ----------------------
141 # It is okay to use these file commands and assume they have been set 132 # It is okay to use these file commands and assume they have been set
142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 133 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
143 m4_defun([_LT_FILEUTILS_DEFAULTS], 134 m4_defun([_LT_FILEUTILS_DEFAULTS],
144 [: ${CP="cp -f"} 135 [: ${CP="cp -f"}
145 : ${MV="mv -f"} 136 : ${MV="mv -f"}
146 : ${RM="rm -f"} 137 : ${RM="rm -f"}
147 ])# _LT_FILEUTILS_DEFAULTS 138 ])# _LT_FILEUTILS_DEFAULTS
148 139
149 140
150 # _LT_SETUP 141 # _LT_SETUP
151 # --------- 142 # ---------
152 m4_defun([_LT_SETUP], 143 m4_defun([_LT_SETUP],
(...skipping 26 matching lines...) Expand all
179 dnl 170 dnl
180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 171 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 172 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 173 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
183 m4_require([_LT_CMD_RELOAD])dnl 174 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl 175 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 176 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl 177 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 178 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
188 m4_require([_LT_WITH_SYSROOT])dnl 179 m4_require([_LT_WITH_SYSROOT])dnl
189 m4_require([_LT_CMD_TRUNCATE])dnl
190 180
191 _LT_CONFIG_LIBTOOL_INIT([ 181 _LT_CONFIG_LIBTOOL_INIT([
192 # See if we are running on zsh, and set the options that allow our 182 # See if we are running on zsh, and set the options which allow our
193 # commands through without removal of \ escapes INIT. 183 # commands through without removal of \ escapes INIT.
194 if test -n "\${ZSH_VERSION+set}"; then 184 if test -n "\${ZSH_VERSION+set}" ; then
195 setopt NO_GLOB_SUBST 185 setopt NO_GLOB_SUBST
196 fi 186 fi
197 ]) 187 ])
198 if test -n "${ZSH_VERSION+set}"; then 188 if test -n "${ZSH_VERSION+set}" ; then
199 setopt NO_GLOB_SUBST 189 setopt NO_GLOB_SUBST
200 fi 190 fi
201 191
202 _LT_CHECK_OBJDIR 192 _LT_CHECK_OBJDIR
203 193
204 m4_require([_LT_TAG_COMPILER])dnl 194 m4_require([_LT_TAG_COMPILER])dnl
205 195
206 case $host_os in 196 case $host_os in
207 aix3*) 197 aix3*)
208 # AIX sometimes has problems with the GCC collect2 program. For some 198 # AIX sometimes has problems with the GCC collect2 program. For some
209 # reason, if we set the COLLECT_NAMES environment variable, the problems 199 # reason, if we set the COLLECT_NAMES environment variable, the problems
210 # vanish in a puff of smoke. 200 # vanish in a puff of smoke.
211 if test set != "${COLLECT_NAMES+set}"; then 201 if test "X${COLLECT_NAMES+set}" != Xset; then
212 COLLECT_NAMES= 202 COLLECT_NAMES=
213 export COLLECT_NAMES 203 export COLLECT_NAMES
214 fi 204 fi
215 ;; 205 ;;
216 esac 206 esac
217 207
218 # Global variables: 208 # Global variables:
219 ofile=libtool 209 ofile=libtool
220 can_build_shared=yes 210 can_build_shared=yes
221 211
222 # All known linkers require a '.a' archive for static linking (except MSVC, 212 # All known linkers require a `.a' archive for static linking (except MSVC,
223 # which needs '.lib'). 213 # which needs '.lib').
224 libext=a 214 libext=a
225 215
226 with_gnu_ld=$lt_cv_prog_gnu_ld 216 with_gnu_ld="$lt_cv_prog_gnu_ld"
227 217
228 old_CC=$CC 218 old_CC="$CC"
229 old_CFLAGS=$CFLAGS 219 old_CFLAGS="$CFLAGS"
230 220
231 # Set sane defaults for various variables 221 # Set sane defaults for various variables
232 test -z "$CC" && CC=cc 222 test -z "$CC" && CC=cc
233 test -z "$LTCC" && LTCC=$CC 223 test -z "$LTCC" && LTCC=$CC
234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
235 test -z "$LD" && LD=ld 225 test -z "$LD" && LD=ld
236 test -z "$ac_objext" && ac_objext=o 226 test -z "$ac_objext" && ac_objext=o
237 227
238 _LT_CC_BASENAME([$compiler]) 228 _LT_CC_BASENAME([$compiler])
239 229
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 262
273 # Sed substitution to delay expansion of an escaped single quote. 263 # Sed substitution to delay expansion of an escaped single quote.
274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 264 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
275 265
276 # Sed substitution to avoid accidental globbing in evaled expressions 266 # Sed substitution to avoid accidental globbing in evaled expressions
277 no_glob_subst='s/\*/\\\*/g' 267 no_glob_subst='s/\*/\\\*/g'
278 ]) 268 ])
279 269
280 # _LT_PROG_LTMAIN 270 # _LT_PROG_LTMAIN
281 # --------------- 271 # ---------------
282 # Note that this code is called both from 'configure', and 'config.status' 272 # Note that this code is called both from `configure', and `config.status'
283 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 273 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
284 # 'config.status' has no value for ac_aux_dir unless we are using Automake, 274 # `config.status' has no value for ac_aux_dir unless we are using Automake,
285 # so we pass a copy along to make sure it has a sensible value anyway. 275 # so we pass a copy along to make sure it has a sensible value anyway.
286 m4_defun([_LT_PROG_LTMAIN], 276 m4_defun([_LT_PROG_LTMAIN],
287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 277 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 278 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
289 ltmain=$ac_aux_dir/ltmain.sh 279 ltmain="$ac_aux_dir/ltmain.sh"
290 ])# _LT_PROG_LTMAIN 280 ])# _LT_PROG_LTMAIN
291 281
292 282
293 ## ------------------------------------- ## 283 ## ------------------------------------- ##
294 ## Accumulate code for creating libtool. ## 284 ## Accumulate code for creating libtool. ##
295 ## ------------------------------------- ## 285 ## ------------------------------------- ##
296 286
297 # So that we can recreate a full libtool script including additional 287 # So that we can recreate a full libtool script including additional
298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
299 # in macros and then make a single call at the end using the 'libtool' 289 # in macros and then make a single call at the end using the `libtool'
300 # label. 290 # label.
301 291
302 292
303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
304 # ---------------------------------------- 294 # ----------------------------------------
305 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
306 m4_define([_LT_CONFIG_LIBTOOL_INIT], 296 m4_define([_LT_CONFIG_LIBTOOL_INIT],
307 [m4_ifval([$1], 297 [m4_ifval([$1],
308 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 298 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
309 [$1 299 [$1
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 m4_quote(m4_shift($@))))[]dnl 414 m4_quote(m4_shift($@))))[]dnl
425 ]) 415 ])
426 m4_define([_lt_decl_all_varnames], 416 m4_define([_lt_decl_all_varnames],
427 [lt_join($@, lt_decl_varnames_tagged([$1], 417 [lt_join($@, lt_decl_varnames_tagged([$1],
428 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 418 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
429 ]) 419 ])
430 420
431 421
432 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) 422 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
433 # ------------------------------------ 423 # ------------------------------------
434 # Quote a variable value, and forward it to 'config.status' so that its 424 # Quote a variable value, and forward it to `config.status' so that its
435 # declaration there will have the same value as in 'configure'. VARNAME 425 # declaration there will have the same value as in `configure'. VARNAME
436 # must have a single quote delimited value for this to work. 426 # must have a single quote delimited value for this to work.
437 m4_define([_LT_CONFIG_STATUS_DECLARE], 427 m4_define([_LT_CONFIG_STATUS_DECLARE],
438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 428 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
439 429
440 430
441 # _LT_CONFIG_STATUS_DECLARATIONS 431 # _LT_CONFIG_STATUS_DECLARATIONS
442 # ------------------------------ 432 # ------------------------------
443 # We delimit libtool config variables with single quotes, so when 433 # We delimit libtool config variables with single quotes, so when
444 # we write them to config.status, we have to be sure to quote all 434 # we write them to config.status, we have to be sure to quote all
445 # embedded single quotes properly. In configure, this macro expands 435 # embedded single quotes properly. In configure, this macro expands
446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: 436 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
447 # 437 #
448 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 438 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 439 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 440 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 441 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
452 442
453 443
454 # _LT_LIBTOOL_TAGS 444 # _LT_LIBTOOL_TAGS
455 # ---------------- 445 # ----------------
456 # Output comment and list of tags supported by the script 446 # Output comment and list of tags supported by the script
457 m4_defun([_LT_LIBTOOL_TAGS], 447 m4_defun([_LT_LIBTOOL_TAGS],
458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc ript])dnl 448 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc ript])dnl
459 available_tags='_LT_TAGS'dnl 449 available_tags="_LT_TAGS"dnl
460 ]) 450 ])
461 451
462 452
463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 453 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
464 # ----------------------------------- 454 # -----------------------------------
465 # Extract the dictionary values for VARNAME (optionally with TAG) and 455 # Extract the dictionary values for VARNAME (optionally with TAG) and
466 # expand to a commented shell variable setting: 456 # expand to a commented shell variable setting:
467 # 457 #
468 # # Some comment about what VAR is for. 458 # # Some comment about what VAR is for.
469 # visible_name=$lt_internal_name 459 # visible_name=$lt_internal_name
470 m4_define([_LT_LIBTOOL_DECLARE], 460 m4_define([_LT_LIBTOOL_DECLARE],
471 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 461 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
472 [description])))[]dnl 462 [description])))[]dnl
473 m4_pushdef([_libtool_name], 463 m4_pushdef([_libtool_name],
474 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 464 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
475 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 465 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
476 [0], [_libtool_name=[$]$1], 466 [0], [_libtool_name=[$]$1],
477 [1], [_libtool_name=$lt_[]$1], 467 [1], [_libtool_name=$lt_[]$1],
478 [2], [_libtool_name=$lt_[]$1], 468 [2], [_libtool_name=$lt_[]$1],
479 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 469 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
480 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 470 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
481 ]) 471 ])
482 472
483 473
484 # _LT_LIBTOOL_CONFIG_VARS 474 # _LT_LIBTOOL_CONFIG_VARS
485 # ----------------------- 475 # -----------------------
486 # Produce commented declarations of non-tagged libtool config variables 476 # Produce commented declarations of non-tagged libtool config variables
487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 477 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
488 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG 478 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
489 # section) are produced by _LT_LIBTOOL_TAG_VARS. 479 # section) are produced by _LT_LIBTOOL_TAG_VARS.
490 m4_defun([_LT_LIBTOOL_CONFIG_VARS], 480 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
491 [m4_foreach([_lt_var], 481 [m4_foreach([_lt_var],
492 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 482 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
493 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 483 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
494 484
495 485
496 # _LT_LIBTOOL_TAG_VARS(TAG) 486 # _LT_LIBTOOL_TAG_VARS(TAG)
497 # ------------------------- 487 # -------------------------
498 m4_define([_LT_LIBTOOL_TAG_VARS], 488 m4_define([_LT_LIBTOOL_TAG_VARS],
499 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 489 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
500 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 490 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
501 491
502 492
503 # _LT_TAGVAR(VARNAME, [TAGNAME]) 493 # _LT_TAGVAR(VARNAME, [TAGNAME])
504 # ------------------------------ 494 # ------------------------------
505 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 495 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
506 496
507 497
508 # _LT_CONFIG_COMMANDS 498 # _LT_CONFIG_COMMANDS
509 # ------------------- 499 # -------------------
510 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 500 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
511 # variables for single and double quote escaping we saved from calls 501 # variables for single and double quote escaping we saved from calls
512 # to _LT_DECL, we can put quote escaped variables declarations 502 # to _LT_DECL, we can put quote escaped variables declarations
513 # into 'config.status', and then the shell code to quote escape them in 503 # into `config.status', and then the shell code to quote escape them in
514 # for loops in 'config.status'. Finally, any additional code accumulated 504 # for loops in `config.status'. Finally, any additional code accumulated
515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 505 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
516 m4_defun([_LT_CONFIG_COMMANDS], 506 m4_defun([_LT_CONFIG_COMMANDS],
517 [AC_PROVIDE_IFELSE([LT_OUTPUT], 507 [AC_PROVIDE_IFELSE([LT_OUTPUT],
518 dnl If the libtool generation code has been placed in $CONFIG_LT, 508 dnl If the libtool generation code has been placed in $CONFIG_LT,
519 dnl instead of duplicating it all over again into config.status, 509 dnl instead of duplicating it all over again into config.status,
520 dnl then we will have config.status run $CONFIG_LT later, so it 510 dnl then we will have config.status run $CONFIG_LT later, so it
521 dnl needs to know what name is stored there: 511 dnl needs to know what name is stored there:
522 [AC_CONFIG_COMMANDS([libtool], 512 [AC_CONFIG_COMMANDS([libtool],
523 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 513 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
524 dnl If the libtool generation code is destined for config.status, 514 dnl If the libtool generation code is destined for config.status,
(...skipping 25 matching lines...) Expand all
550 eval 'cat <<_LTECHO_EOF 540 eval 'cat <<_LTECHO_EOF
551 \$[]1 541 \$[]1
552 _LTECHO_EOF' 542 _LTECHO_EOF'
553 } 543 }
554 544
555 # Quote evaled strings. 545 # Quote evaled strings.
556 for var in lt_decl_all_varnames([[ \ 546 for var in lt_decl_all_varnames([[ \
557 ]], lt_decl_quote_varnames); do 547 ]], lt_decl_quote_varnames); do
558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
559 *[[\\\\\\\`\\"\\\$]]*) 549 *[[\\\\\\\`\\"\\\$]]*)
560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu ote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu ote_subst\\"\\\`\\\\\\""
561 ;; 551 ;;
562 *) 552 *)
563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
564 ;; 554 ;;
565 esac 555 esac
566 done 556 done
567 557
568 # Double-quote double-evaled strings. 558 # Double-quote double-evaled strings.
569 for var in lt_decl_all_varnames([[ \ 559 for var in lt_decl_all_varnames([[ \
570 ]], lt_decl_dquote_varnames); do 560 ]], lt_decl_dquote_varnames); do
571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
572 *[[\\\\\\\`\\"\\\$]]*) 562 *[[\\\\\\\`\\"\\\$]]*)
573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\ "\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\ "\\\`\\\\\\""
574 ;; 564 ;;
575 *) 565 *)
576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
577 ;; 567 ;;
578 esac 568 esac
579 done 569 done
580 570
581 _LT_OUTPUT_LIBTOOL_INIT 571 _LT_OUTPUT_LIBTOOL_INIT
582 ]) 572 ])
583 573
584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 574 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
585 # ------------------------------------ 575 # ------------------------------------
586 # Generate a child script FILE with all initialization necessary to 576 # Generate a child script FILE with all initialization necessary to
587 # reuse the environment learned by the parent script, and make the 577 # reuse the environment learned by the parent script, and make the
588 # file executable. If COMMENT is supplied, it is inserted after the 578 # file executable. If COMMENT is supplied, it is inserted after the
589 # '#!' sequence but before initialization text begins. After this 579 # `#!' sequence but before initialization text begins. After this
590 # macro, additional text can be appended to FILE to form the body of 580 # macro, additional text can be appended to FILE to form the body of
591 # the child script. The macro ends with non-zero status if the 581 # the child script. The macro ends with non-zero status if the
592 # file could not be fully written (such as if the disk is full). 582 # file could not be fully written (such as if the disk is full).
593 m4_ifdef([AS_INIT_GENERATED], 583 m4_ifdef([AS_INIT_GENERATED],
594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 584 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
595 [m4_defun([_LT_GENERATED_FILE_INIT], 585 [m4_defun([_LT_GENERATED_FILE_INIT],
596 [m4_require([AS_PREPARE])]dnl 586 [m4_require([AS_PREPARE])]dnl
597 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 587 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
598 [lt_write_fail=0 588 [lt_write_fail=0
599 cat >$1 <<_ASEOF || lt_write_fail=1 589 cat >$1 <<_ASEOF || lt_write_fail=1
600 #! $SHELL 590 #! $SHELL
601 # Generated by $as_me. 591 # Generated by $as_me.
602 $2 592 $2
603 SHELL=\${CONFIG_SHELL-$SHELL} 593 SHELL=\${CONFIG_SHELL-$SHELL}
604 export SHELL 594 export SHELL
605 _ASEOF 595 _ASEOF
606 cat >>$1 <<\_ASEOF || lt_write_fail=1 596 cat >>$1 <<\_ASEOF || lt_write_fail=1
607 AS_SHELL_SANITIZE 597 AS_SHELL_SANITIZE
608 _AS_PREPARE 598 _AS_PREPARE
609 exec AS_MESSAGE_FD>&1 599 exec AS_MESSAGE_FD>&1
610 _ASEOF 600 _ASEOF
611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl 601 test $lt_write_fail = 0 && chmod +x $1[]dnl
612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 602 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
613 603
614 # LT_OUTPUT 604 # LT_OUTPUT
615 # --------- 605 # ---------
616 # This macro allows early generation of the libtool script (before 606 # This macro allows early generation of the libtool script (before
617 # AC_OUTPUT is called), incase it is used in configure for compilation 607 # AC_OUTPUT is called), incase it is used in configure for compilation
618 # tests. 608 # tests.
619 AC_DEFUN([LT_OUTPUT], 609 AC_DEFUN([LT_OUTPUT],
620 [: ${CONFIG_LT=./config.lt} 610 [: ${CONFIG_LT=./config.lt}
621 AC_MSG_NOTICE([creating $CONFIG_LT]) 611 AC_MSG_NOTICE([creating $CONFIG_LT])
622 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 612 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
623 [# Run this file to recreate a libtool stub with the current configuration.]) 613 [# Run this file to recreate a libtool stub with the current configuration.])
624 614
625 cat >>"$CONFIG_LT" <<\_LTEOF 615 cat >>"$CONFIG_LT" <<\_LTEOF
626 lt_cl_silent=false 616 lt_cl_silent=false
627 exec AS_MESSAGE_LOG_FD>>config.log 617 exec AS_MESSAGE_LOG_FD>>config.log
628 { 618 {
629 echo 619 echo
630 AS_BOX([Running $as_me.]) 620 AS_BOX([Running $as_me.])
631 } >&AS_MESSAGE_LOG_FD 621 } >&AS_MESSAGE_LOG_FD
632 622
633 lt_cl_help="\ 623 lt_cl_help="\
634 '$as_me' creates a local libtool stub from the current configuration, 624 \`$as_me' creates a local libtool stub from the current configuration,
635 for use in further configure time tests before the real libtool is 625 for use in further configure time tests before the real libtool is
636 generated. 626 generated.
637 627
638 Usage: $[0] [[OPTIONS]] 628 Usage: $[0] [[OPTIONS]]
639 629
640 -h, --help print this help, then exit 630 -h, --help print this help, then exit
641 -V, --version print version number, then exit 631 -V, --version print version number, then exit
642 -q, --quiet do not print progress messages 632 -q, --quiet do not print progress messages
643 -d, --debug don't remove temporary files 633 -d, --debug don't remove temporary files
644 634
645 Report bugs to <bug-libtool@gnu.org>." 635 Report bugs to <bug-libtool@gnu.org>."
646 636
647 lt_cl_version="\ 637 lt_cl_version="\
648 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 638 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 639 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
650 configured by $[0], generated by m4_PACKAGE_STRING. 640 configured by $[0], generated by m4_PACKAGE_STRING.
651 641
652 Copyright (C) 2011 Free Software Foundation, Inc. 642 Copyright (C) 2011 Free Software Foundation, Inc.
653 This config.lt script is free software; the Free Software Foundation 643 This config.lt script is free software; the Free Software Foundation
654 gives unlimited permision to copy, distribute and modify it." 644 gives unlimited permision to copy, distribute and modify it."
655 645
656 while test 0 != $[#] 646 while test $[#] != 0
657 do 647 do
658 case $[1] in 648 case $[1] in
659 --version | --v* | -V ) 649 --version | --v* | -V )
660 echo "$lt_cl_version"; exit 0 ;; 650 echo "$lt_cl_version"; exit 0 ;;
661 --help | --h* | -h ) 651 --help | --h* | -h )
662 echo "$lt_cl_help"; exit 0 ;; 652 echo "$lt_cl_help"; exit 0 ;;
663 --debug | --d* | -d ) 653 --debug | --d* | -d )
664 debug=: ;; 654 debug=: ;;
665 --quiet | --q* | --silent | --s* | -q ) 655 --quiet | --q* | --silent | --s* | -q )
666 lt_cl_silent=: ;; 656 lt_cl_silent=: ;;
667 657
668 -*) AC_MSG_ERROR([unrecognized option: $[1] 658 -*) AC_MSG_ERROR([unrecognized option: $[1]
669 Try '$[0] --help' for more information.]) ;; 659 Try \`$[0] --help' for more information.]) ;;
670 660
671 *) AC_MSG_ERROR([unrecognized argument: $[1] 661 *) AC_MSG_ERROR([unrecognized argument: $[1]
672 Try '$[0] --help' for more information.]) ;; 662 Try \`$[0] --help' for more information.]) ;;
673 esac 663 esac
674 shift 664 shift
675 done 665 done
676 666
677 if $lt_cl_silent; then 667 if $lt_cl_silent; then
678 exec AS_MESSAGE_FD>/dev/null 668 exec AS_MESSAGE_FD>/dev/null
679 fi 669 fi
680 _LTEOF 670 _LTEOF
681 671
682 cat >>"$CONFIG_LT" <<_LTEOF 672 cat >>"$CONFIG_LT" <<_LTEOF
683 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT 673 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
684 _LTEOF 674 _LTEOF
685 675
686 cat >>"$CONFIG_LT" <<\_LTEOF 676 cat >>"$CONFIG_LT" <<\_LTEOF
687 AC_MSG_NOTICE([creating $ofile]) 677 AC_MSG_NOTICE([creating $ofile])
688 _LT_OUTPUT_LIBTOOL_COMMANDS 678 _LT_OUTPUT_LIBTOOL_COMMANDS
689 AS_EXIT(0) 679 AS_EXIT(0)
690 _LTEOF 680 _LTEOF
691 chmod +x "$CONFIG_LT" 681 chmod +x "$CONFIG_LT"
692 682
693 # configure is writing to config.log, but config.lt does its own redirection, 683 # configure is writing to config.log, but config.lt does its own redirection,
694 # appending to config.log, which fails on DOS, as config.log is still kept 684 # appending to config.log, which fails on DOS, as config.log is still kept
695 # open by configure. Here we exec the FD to /dev/null, effectively closing 685 # open by configure. Here we exec the FD to /dev/null, effectively closing
696 # config.log, so it can be properly (re)opened and appended to by config.lt. 686 # config.log, so it can be properly (re)opened and appended to by config.lt.
697 lt_cl_success=: 687 lt_cl_success=:
698 test yes = "$silent" && 688 test "$silent" = yes &&
699 lt_config_lt_args="$lt_config_lt_args --quiet" 689 lt_config_lt_args="$lt_config_lt_args --quiet"
700 exec AS_MESSAGE_LOG_FD>/dev/null 690 exec AS_MESSAGE_LOG_FD>/dev/null
701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 691 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
702 exec AS_MESSAGE_LOG_FD>>config.log 692 exec AS_MESSAGE_LOG_FD>>config.log
703 $lt_cl_success || AS_EXIT(1) 693 $lt_cl_success || AS_EXIT(1)
704 ])# LT_OUTPUT 694 ])# LT_OUTPUT
705 695
706 696
707 # _LT_CONFIG(TAG) 697 # _LT_CONFIG(TAG)
708 # --------------- 698 # ---------------
709 # If TAG is the built-in tag, create an initial libtool script with a 699 # If TAG is the built-in tag, create an initial libtool script with a
710 # default configuration from the untagged config vars. Otherwise add code 700 # default configuration from the untagged config vars. Otherwise add code
711 # to config.status for appending the configuration named by TAG from the 701 # to config.status for appending the configuration named by TAG from the
712 # matching tagged config vars. 702 # matching tagged config vars.
713 m4_defun([_LT_CONFIG], 703 m4_defun([_LT_CONFIG],
714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 704 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
715 _LT_CONFIG_SAVE_COMMANDS([ 705 _LT_CONFIG_SAVE_COMMANDS([
716 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 706 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
717 m4_if(_LT_TAG, [C], [ 707 m4_if(_LT_TAG, [C], [
718 # See if we are running on zsh, and set the options that allow our 708 # See if we are running on zsh, and set the options which allow our
719 # commands through without removal of \ escapes. 709 # commands through without removal of \ escapes.
720 if test -n "${ZSH_VERSION+set}"; then 710 if test -n "${ZSH_VERSION+set}" ; then
721 setopt NO_GLOB_SUBST 711 setopt NO_GLOB_SUBST
722 fi 712 fi
723 713
724 cfgfile=${ofile}T 714 cfgfile="${ofile}T"
725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 715 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
726 $RM "$cfgfile" 716 $RM "$cfgfile"
727 717
728 cat <<_LT_EOF >> "$cfgfile" 718 cat <<_LT_EOF >> "$cfgfile"
729 #! $SHELL 719 #! $SHELL
730 # Generated automatically by $as_me ($PACKAGE) $VERSION 720
721 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo rt services.
722 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
732 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
733 725 #
734 # Provide generalized library-building support services.
735 # Written by Gordon Matzigkeit, 1996
736
737 _LT_COPYING 726 _LT_COPYING
738 _LT_LIBTOOL_TAGS 727 _LT_LIBTOOL_TAGS
739 728
740 # Configured defaults for sys_lib_dlsearch_path munging.
741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
742
743 # ### BEGIN LIBTOOL CONFIG 729 # ### BEGIN LIBTOOL CONFIG
744 _LT_LIBTOOL_CONFIG_VARS 730 _LT_LIBTOOL_CONFIG_VARS
745 _LT_LIBTOOL_TAG_VARS 731 _LT_LIBTOOL_TAG_VARS
746 # ### END LIBTOOL CONFIG 732 # ### END LIBTOOL CONFIG
747 733
748 _LT_EOF 734 _LT_EOF
749 735
750 cat <<'_LT_EOF' >> "$cfgfile"
751
752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
753
754 _LT_PREPARE_MUNGE_PATH_LIST
755 _LT_PREPARE_CC_BASENAME
756
757 # ### END FUNCTIONS SHARED WITH CONFIGURE
758
759 _LT_EOF
760
761 case $host_os in 736 case $host_os in
762 aix3*) 737 aix3*)
763 cat <<\_LT_EOF >> "$cfgfile" 738 cat <<\_LT_EOF >> "$cfgfile"
764 # AIX sometimes has problems with the GCC collect2 program. For some 739 # AIX sometimes has problems with the GCC collect2 program. For some
765 # reason, if we set the COLLECT_NAMES environment variable, the problems 740 # reason, if we set the COLLECT_NAMES environment variable, the problems
766 # vanish in a puff of smoke. 741 # vanish in a puff of smoke.
767 if test set != "${COLLECT_NAMES+set}"; then 742 if test "X${COLLECT_NAMES+set}" != Xset; then
768 COLLECT_NAMES= 743 COLLECT_NAMES=
769 export COLLECT_NAMES 744 export COLLECT_NAMES
770 fi 745 fi
771 _LT_EOF 746 _LT_EOF
772 ;; 747 ;;
773 esac 748 esac
774 749
775 _LT_PROG_LTMAIN 750 _LT_PROG_LTMAIN
776 751
777 # We use sed instead of cat because bash on DJGPP gets confused if 752 # We use sed instead of cat because bash on DJGPP gets confused if
778 # if finds mixed CR/LF and LF-only lines. Since sed operates in 753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
779 # text mode, it properly converts lines to CR/LF. This bash problem 754 # text mode, it properly converts lines to CR/LF. This bash problem
780 # is reportedly fixed, but why not run on old versions too? 755 # is reportedly fixed, but why not run on old versions too?
781 sed '$q' "$ltmain" >> "$cfgfile" \ 756 sed '$q' "$ltmain" >> "$cfgfile" \
782 || (rm -f "$cfgfile"; exit 1) 757 || (rm -f "$cfgfile"; exit 1)
783 758
759 _LT_PROG_REPLACE_SHELLFNS
760
784 mv -f "$cfgfile" "$ofile" || 761 mv -f "$cfgfile" "$ofile" ||
785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
786 chmod +x "$ofile" 763 chmod +x "$ofile"
787 ], 764 ],
788 [cat <<_LT_EOF >> "$ofile" 765 [cat <<_LT_EOF >> "$ofile"
789 766
790 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 767 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
791 dnl in a comment (ie after a #). 768 dnl in a comment (ie after a #).
792 # ### BEGIN LIBTOOL TAG CONFIG: $1 769 # ### BEGIN LIBTOOL TAG CONFIG: $1
793 _LT_LIBTOOL_TAG_VARS(_LT_TAG) 770 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
794 # ### END LIBTOOL TAG CONFIG: $1 771 # ### END LIBTOOL TAG CONFIG: $1
795 _LT_EOF 772 _LT_EOF
796 ])dnl /m4_if 773 ])dnl /m4_if
797 ], 774 ],
798 [m4_if([$1], [], [ 775 [m4_if([$1], [], [
799 PACKAGE='$PACKAGE' 776 PACKAGE='$PACKAGE'
800 VERSION='$VERSION' 777 VERSION='$VERSION'
778 TIMESTAMP='$TIMESTAMP'
801 RM='$RM' 779 RM='$RM'
802 ofile='$ofile'], []) 780 ofile='$ofile'], [])
803 ])dnl /_LT_CONFIG_SAVE_COMMANDS 781 ])dnl /_LT_CONFIG_SAVE_COMMANDS
804 ])# _LT_CONFIG 782 ])# _LT_CONFIG
805 783
806 784
807 # LT_SUPPORTED_TAG(TAG) 785 # LT_SUPPORTED_TAG(TAG)
808 # --------------------- 786 # ---------------------
809 # Trace this macro to discover what tags are supported by the libtool 787 # Trace this macro to discover what tags are supported by the libtool
810 # --tag option, using: 788 # --tag option, using:
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 [Tool to change global to local symbols on Mac OS X]) 967 [Tool to change global to local symbols on Mac OS X])
990 _LT_DECL([], [LIPO], [1], 968 _LT_DECL([], [LIPO], [1],
991 [Tool to manipulate fat objects and archives on Mac OS X]) 969 [Tool to manipulate fat objects and archives on Mac OS X])
992 _LT_DECL([], [OTOOL], [1], 970 _LT_DECL([], [OTOOL], [1],
993 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 971 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
994 _LT_DECL([], [OTOOL64], [1], 972 _LT_DECL([], [OTOOL64], [1],
995 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 973 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
996 974
997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 975 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
998 [lt_cv_apple_cc_single_mod=no 976 [lt_cv_apple_cc_single_mod=no
999 if test -z "$LT_MULTI_MODULE"; then 977 if test -z "${LT_MULTI_MODULE}"; then
1000 # By default we will add the -single_module flag. You can override 978 # By default we will add the -single_module flag. You can override
1001 # by either setting the environment variable LT_MULTI_MODULE 979 # by either setting the environment variable LT_MULTI_MODULE
1002 # non-empty at configure time, or by adding -multi_module to the 980 # non-empty at configure time, or by adding -multi_module to the
1003 # link flags. 981 # link flags.
1004 rm -rf libconftest.dylib* 982 rm -rf libconftest.dylib*
1005 echo "int foo(void){return 1;}" > conftest.c 983 echo "int foo(void){return 1;}" > conftest.c
1006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1007 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 985 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1010 _lt_result=$? 988 _lt_result=$?
1011 # If there is a non-empty error log, and "single_module" 989 # If there is a non-empty error log, and "single_module"
1012 # appears in it, assume the flag caused a linker warning 990 # appears in it, assume the flag caused a linker warning
1013 if test -s conftest.err && $GREP single_module conftest.err; then 991 if test -s conftest.err && $GREP single_module conftest.err; then
1014 cat conftest.err >&AS_MESSAGE_LOG_FD 992 cat conftest.err >&AS_MESSAGE_LOG_FD
1015 # Otherwise, if the output was created with a 0 exit code from 993 # Otherwise, if the output was created with a 0 exit code from
1016 # the compiler, it worked. 994 # the compiler, it worked.
1017 » elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 995 » elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1018 lt_cv_apple_cc_single_mod=yes 996 lt_cv_apple_cc_single_mod=yes
1019 else 997 else
1020 cat conftest.err >&AS_MESSAGE_LOG_FD 998 cat conftest.err >&AS_MESSAGE_LOG_FD
1021 fi 999 fi
1022 rm -rf libconftest.dylib* 1000 rm -rf libconftest.dylib*
1023 rm -f conftest.* 1001 rm -f conftest.*
1024 fi]) 1002 fi])
1025 1003
1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1004 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1027 [lt_cv_ld_exported_symbols_list], 1005 [lt_cv_ld_exported_symbols_list],
1028 [lt_cv_ld_exported_symbols_list=no 1006 [lt_cv_ld_exported_symbols_list=no
1029 save_LDFLAGS=$LDFLAGS 1007 save_LDFLAGS=$LDFLAGS
1030 echo "_main" > conftest.sym 1008 echo "_main" > conftest.sym
1031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1009 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1032 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1010 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1033 [lt_cv_ld_exported_symbols_list=yes], 1011 [lt_cv_ld_exported_symbols_list=yes],
1034 [lt_cv_ld_exported_symbols_list=no]) 1012 [lt_cv_ld_exported_symbols_list=no])
1035 » LDFLAGS=$save_LDFLAGS 1013 » LDFLAGS="$save_LDFLAGS"
1036 ]) 1014 ])
1037 1015
1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1016 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1039 [lt_cv_ld_force_load=no 1017 [lt_cv_ld_force_load=no
1040 cat > conftest.c << _LT_EOF 1018 cat > conftest.c << _LT_EOF
1041 int forced_loaded() { return 2;} 1019 int forced_loaded() { return 2;}
1042 _LT_EOF 1020 _LT_EOF
1043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1045 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1023 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1046 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1024 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1025 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1026 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1049 cat > conftest.c << _LT_EOF 1027 cat > conftest.c << _LT_EOF
1050 int main() { return 0;} 1028 int main() { return 0;}
1051 _LT_EOF 1029 _LT_EOF
1052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&AS_MESSAGE_LOG_FD 1030 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&AS_MESSAGE_LOG_FD
1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err 1031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err
1054 _lt_result=$? 1032 _lt_result=$?
1055 if test -s conftest.err && $GREP force_load conftest.err; then 1033 if test -s conftest.err && $GREP force_load conftest.err; then
1056 cat conftest.err >&AS_MESSAGE_LOG_FD 1034 cat conftest.err >&AS_MESSAGE_LOG_FD
1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conft est >/dev/null 2>&1; then 1035 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conft est >/dev/null 2>&1 ; then
1058 lt_cv_ld_force_load=yes 1036 lt_cv_ld_force_load=yes
1059 else 1037 else
1060 cat conftest.err >&AS_MESSAGE_LOG_FD 1038 cat conftest.err >&AS_MESSAGE_LOG_FD
1061 fi 1039 fi
1062 rm -f conftest.err libconftest.a conftest conftest.c 1040 rm -f conftest.err libconftest.a conftest conftest.c
1063 rm -rf conftest.dSYM 1041 rm -rf conftest.dSYM
1064 ]) 1042 ])
1065 case $host_os in 1043 case $host_os in
1066 rhapsody* | darwin1.[[012]]) 1044 rhapsody* | darwin1.[[012]])
1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1068 darwin1.*) 1046 darwin1.*)
1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ; ; 1047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;;
1070 darwin*) # darwin 5.x on 1048 darwin*) # darwin 5.x on
1071 # if running on 10.5 or later, the deployment target defaults 1049 # if running on 10.5 or later, the deployment target defaults
1072 # to the OS version, if on x86, and 10.4, the deployment 1050 # to the OS version, if on x86, and 10.4, the deployment
1073 # target defaults to 10.4. Don't you love it? 1051 # target defaults to 10.4. Don't you love it?
1074 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1075 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1053 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1076 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1054 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1077 » 10.[[012]][[,.]]*) 1055 » 10.[[012]]*)
1078 » _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppres s' ;; 1056 » _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup press' ;;
1079 10.*) 1057 10.*)
1080 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1058 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1081 esac 1059 esac
1082 ;; 1060 ;;
1083 esac 1061 esac
1084 if test yes = "$lt_cv_apple_cc_single_mod"; then 1062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1085 _lt_dar_single_mod='$single_module' 1063 _lt_dar_single_mod='$single_module'
1086 fi 1064 fi
1087 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1088 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-sy mbols.expsym' 1066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname }-symbols.expsym'
1089 else 1067 else
1090 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $l ib' 1068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1091 fi 1069 fi
1092 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1093 _lt_dsymutil='~$DSYMUTIL $lib || :' 1071 _lt_dsymutil='~$DSYMUTIL $lib || :'
1094 else 1072 else
1095 _lt_dsymutil= 1073 _lt_dsymutil=
1096 fi 1074 fi
1097 ;; 1075 ;;
1098 esac 1076 esac
1099 ]) 1077 ])
1100 1078
1101 1079
1102 # _LT_DARWIN_LINKER_FEATURES([TAG]) 1080 # _LT_DARWIN_LINKER_FEATURES([TAG])
1103 # --------------------------------- 1081 # ---------------------------------
1104 # Checks for linker and compiler features on darwin 1082 # Checks for linker and compiler features on darwin
1105 m4_defun([_LT_DARWIN_LINKER_FEATURES], 1083 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1106 [ 1084 [
1107 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1085 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1108 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1086 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1109 _LT_TAGVAR(hardcode_direct, $1)=no 1087 _LT_TAGVAR(hardcode_direct, $1)=no
1110 _LT_TAGVAR(hardcode_automatic, $1)=yes 1088 _LT_TAGVAR(hardcode_automatic, $1)=yes
1111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1089 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1112 if test yes = "$lt_cv_ld_force_load"; then 1090 if test "$lt_cv_ld_force_load" = "yes"; then
1113 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do t est -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 1091 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do t est -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\" ; done; func_echo_all \"$new_convenience\"`'
1114 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1092 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1115 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1093 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1116 else 1094 else
1117 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1095 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1118 fi 1096 fi
1119 _LT_TAGVAR(link_all_deplibs, $1)=yes 1097 _LT_TAGVAR(link_all_deplibs, $1)=yes
1120 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1098 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1121 case $cc_basename in 1099 case $cc_basename in
1122 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1100 ifort*) _lt_dar_can_shared=yes ;;
1123 *) _lt_dar_can_shared=$GCC ;; 1101 *) _lt_dar_can_shared=$GCC ;;
1124 esac 1102 esac
1125 if test yes = "$_lt_dar_can_shared"; then 1103 if test "$_lt_dar_can_shared" = "yes"; then
1126 output_verbose_link_cmd=func_echo_all 1104 output_verbose_link_cmd=func_echo_all
1127 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$l ib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstri ng $_lt_dar_single_mod$_lt_dsymutil" 1105 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$l ib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstri ng $_lt_dar_single_mod${_lt_dsymutil}"
1128 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$ libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1106 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$ libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1129 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$out put_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \ $lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verst ring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 1107 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$out put_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$ver string ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1130 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$o utput_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bund le \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 1108 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$o utput_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bu ndle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1131 m4_if([$1], [CXX], 1109 m4_if([$1], [CXX],
1132 [ if test yes != "$lt_cv_apple_cc_single_mod"; then 1110 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1133 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \ $lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-m aster.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_l t_dsymutil" 1111 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \ ${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${li b}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstrin g${_lt_dsymutil}"
1134 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$o utput_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" 1112 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$o utput_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 \$vers tring${_lt_dar_export_syms}${_lt_dsymutil}"
1135 fi 1113 fi
1136 ],[]) 1114 ],[])
1137 else 1115 else
1138 _LT_TAGVAR(ld_shlibs, $1)=no 1116 _LT_TAGVAR(ld_shlibs, $1)=no
1139 fi 1117 fi
1140 ]) 1118 ])
1141 1119
1142 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1120 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1143 # ---------------------------------- 1121 # ----------------------------------
1144 # Links a minimal program and checks the executable 1122 # Links a minimal program and checks the executable
1145 # for the system default hardcoded library path. In most cases, 1123 # for the system default hardcoded library path. In most cases,
1146 # this is /usr/lib:/lib, but when the MPI compilers are used 1124 # this is /usr/lib:/lib, but when the MPI compilers are used
1147 # the location of the communication and MPI libs are included too. 1125 # the location of the communication and MPI libs are included too.
1148 # If we don't find anything, use the default library path according 1126 # If we don't find anything, use the default library path according
1149 # to the aix ld manual. 1127 # to the aix ld manual.
1150 # Store the results from the different compilers for each TAGNAME. 1128 # Store the results from the different compilers for each TAGNAME.
1151 # Allow to override them for all tags through lt_cv_aix_libpath. 1129 # Allow to override them for all tags through lt_cv_aix_libpath.
1152 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1130 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1153 [m4_require([_LT_DECL_SED])dnl 1131 [m4_require([_LT_DECL_SED])dnl
1154 if test set = "${lt_cv_aix_libpath+set}"; then 1132 if test "${lt_cv_aix_libpath+set}" = set; then
1155 aix_libpath=$lt_cv_aix_libpath 1133 aix_libpath=$lt_cv_aix_libpath
1156 else 1134 else
1157 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1135 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1158 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1136 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1159 lt_aix_libpath_sed='[ 1137 lt_aix_libpath_sed='[
1160 /Import File Strings/,/^$/ { 1138 /Import File Strings/,/^$/ {
1161 /^0/ { 1139 /^0/ {
1162 s/^0 *\([^ ]*\) *$/\1/ 1140 s/^0 *\([^ ]*\) *$/\1/
1163 p 1141 p
1164 } 1142 }
1165 }]' 1143 }]'
1166 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1144 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1167 # Check for a 64-bit object if we didn't find anything. 1145 # Check for a 64-bit object if we didn't find anything.
1168 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1146 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1169 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev /null | $SED -n -e "$lt_aix_libpath_sed"` 1147 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev /null | $SED -n -e "$lt_aix_libpath_sed"`
1170 fi],[]) 1148 fi],[])
1171 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1149 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1172 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1150 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1173 fi 1151 fi
1174 ]) 1152 ])
1175 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1153 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1176 fi 1154 fi
1177 ])# _LT_SYS_MODULE_PATH_AIX 1155 ])# _LT_SYS_MODULE_PATH_AIX
1178 1156
1179 1157
1180 # _LT_SHELL_INIT(ARG) 1158 # _LT_SHELL_INIT(ARG)
1181 # ------------------- 1159 # -------------------
1182 m4_define([_LT_SHELL_INIT], 1160 m4_define([_LT_SHELL_INIT],
1183 [m4_divert_text([M4SH-INIT], [$1 1161 [m4_divert_text([M4SH-INIT], [$1
1184 ])])# _LT_SHELL_INIT 1162 ])])# _LT_SHELL_INIT
1185 1163
1186 1164
1187 1165
1188 # _LT_PROG_ECHO_BACKSLASH 1166 # _LT_PROG_ECHO_BACKSLASH
1189 # ----------------------- 1167 # -----------------------
1190 # Find how we can fake an echo command that does not interpret backslash. 1168 # Find how we can fake an echo command that does not interpret backslash.
1191 # In particular, with Autoconf 2.60 or later we add some code to the start 1169 # In particular, with Autoconf 2.60 or later we add some code to the start
1192 # of the generated configure script that will find a shell with a builtin 1170 # of the generated configure script which will find a shell with a builtin
1193 # printf (that we can use as an echo command). 1171 # printf (which we can use as an echo command).
1194 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1172 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1173 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1175 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1198 1176
1199 AC_MSG_CHECKING([how to print strings]) 1177 AC_MSG_CHECKING([how to print strings])
1200 # Test print first, because it will be a builtin if present. 1178 # Test print first, because it will be a builtin if present.
1201 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1179 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1202 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1180 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1203 ECHO='print -r --' 1181 ECHO='print -r --'
1204 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1182 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1205 ECHO='printf %s\n' 1183 ECHO='printf %s\n'
1206 else 1184 else
1207 # Use this function as a fallback that always works. 1185 # Use this function as a fallback that always works.
1208 func_fallback_echo () 1186 func_fallback_echo ()
1209 { 1187 {
1210 eval 'cat <<_LTECHO_EOF 1188 eval 'cat <<_LTECHO_EOF
1211 $[]1 1189 $[]1
1212 _LTECHO_EOF' 1190 _LTECHO_EOF'
1213 } 1191 }
1214 ECHO='func_fallback_echo' 1192 ECHO='func_fallback_echo'
1215 fi 1193 fi
1216 1194
1217 # func_echo_all arg... 1195 # func_echo_all arg...
1218 # Invoke $ECHO with all args, space-separated. 1196 # Invoke $ECHO with all args, space-separated.
1219 func_echo_all () 1197 func_echo_all ()
1220 { 1198 {
1221 $ECHO "$*" 1199 $ECHO "$*"
1222 } 1200 }
1223 1201
1224 case $ECHO in 1202 case "$ECHO" in
1225 printf*) AC_MSG_RESULT([printf]) ;; 1203 printf*) AC_MSG_RESULT([printf]) ;;
1226 print*) AC_MSG_RESULT([print -r]) ;; 1204 print*) AC_MSG_RESULT([print -r]) ;;
1227 *) AC_MSG_RESULT([cat]) ;; 1205 *) AC_MSG_RESULT([cat]) ;;
1228 esac 1206 esac
1229 1207
1230 m4_ifdef([_AS_DETECT_SUGGESTED], 1208 m4_ifdef([_AS_DETECT_SUGGESTED],
1231 [_AS_DETECT_SUGGESTED([ 1209 [_AS_DETECT_SUGGESTED([
1232 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1210 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1211 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1213 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1236 PATH=/empty FPATH=/empty; export PATH FPATH 1214 PATH=/empty FPATH=/empty; export PATH FPATH
1237 test "X`printf %s $ECHO`" = "X$ECHO" \ 1215 test "X`printf %s $ECHO`" = "X$ECHO" \
1238 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1216 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1239 1217
1240 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1218 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1241 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1219 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1242 ])# _LT_PROG_ECHO_BACKSLASH 1220 ])# _LT_PROG_ECHO_BACKSLASH
1243 1221
1244 1222
1245 # _LT_WITH_SYSROOT 1223 # _LT_WITH_SYSROOT
1246 # ---------------- 1224 # ----------------
1247 AC_DEFUN([_LT_WITH_SYSROOT], 1225 AC_DEFUN([_LT_WITH_SYSROOT],
1248 [AC_MSG_CHECKING([for sysroot]) 1226 [AC_MSG_CHECKING([for sysroot])
1249 AC_ARG_WITH([sysroot], 1227 AC_ARG_WITH([sysroot],
1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1228 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1251 [Search for dependent libraries within DIR (or the compiler's sysroot 1229 (or the compiler's sysroot if not specified).],
1252 if not specified).])],
1253 [], [with_sysroot=no]) 1230 [], [with_sysroot=no])
1254 1231
1255 dnl lt_sysroot will always be passed unquoted. We quote it here 1232 dnl lt_sysroot will always be passed unquoted. We quote it here
1256 dnl in case the user passed a directory name. 1233 dnl in case the user passed a directory name.
1257 lt_sysroot= 1234 lt_sysroot=
1258 case $with_sysroot in #( 1235 case ${with_sysroot} in #(
1259 yes) 1236 yes)
1260 if test yes = "$GCC"; then 1237 if test "$GCC" = yes; then
1261 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1238 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1262 fi 1239 fi
1263 ;; #( 1240 ;; #(
1264 /*) 1241 /*)
1265 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1242 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1266 ;; #( 1243 ;; #(
1267 no|'') 1244 no|'')
1268 ;; #( 1245 ;; #(
1269 *) 1246 *)
1270 AC_MSG_RESULT([$with_sysroot]) 1247 AC_MSG_RESULT([${with_sysroot}])
1271 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1248 AC_MSG_ERROR([The sysroot must be an absolute path.])
1272 ;; 1249 ;;
1273 esac 1250 esac
1274 1251
1275 AC_MSG_RESULT([${lt_sysroot:-no}]) 1252 AC_MSG_RESULT([${lt_sysroot:-no}])
1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1253 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1277 [dependent libraries, and where our libraries should be installed.])]) 1254 [dependent libraries, and in which our libraries should be installed.])])
1278 1255
1279 # _LT_ENABLE_LOCK 1256 # _LT_ENABLE_LOCK
1280 # --------------- 1257 # ---------------
1281 m4_defun([_LT_ENABLE_LOCK], 1258 m4_defun([_LT_ENABLE_LOCK],
1282 [AC_ARG_ENABLE([libtool-lock], 1259 [AC_ARG_ENABLE([libtool-lock],
1283 [AS_HELP_STRING([--disable-libtool-lock], 1260 [AS_HELP_STRING([--disable-libtool-lock],
1284 [avoid locking (might break parallel builds)])]) 1261 [avoid locking (might break parallel builds)])])
1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 1262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1286 1263
1287 # Some flags need to be propagated to the compiler or linker for good 1264 # Some flags need to be propagated to the compiler or linker for good
1288 # libtool support. 1265 # libtool support.
1289 case $host in 1266 case $host in
1290 ia64-*-hpux*) 1267 ia64-*-hpux*)
1291 # Find out what ABI is being produced by ac_compile, and set mode 1268 # Find out which ABI we are using.
1292 # options accordingly.
1293 echo 'int i;' > conftest.$ac_ext 1269 echo 'int i;' > conftest.$ac_ext
1294 if AC_TRY_EVAL(ac_compile); then 1270 if AC_TRY_EVAL(ac_compile); then
1295 case `/usr/bin/file conftest.$ac_objext` in 1271 case `/usr/bin/file conftest.$ac_objext` in
1296 *ELF-32*) 1272 *ELF-32*)
1297 » HPUX_IA64_MODE=32 1273 » HPUX_IA64_MODE="32"
1298 ;; 1274 ;;
1299 *ELF-64*) 1275 *ELF-64*)
1300 » HPUX_IA64_MODE=64 1276 » HPUX_IA64_MODE="64"
1301 ;; 1277 ;;
1302 esac 1278 esac
1303 fi 1279 fi
1304 rm -rf conftest* 1280 rm -rf conftest*
1305 ;; 1281 ;;
1306 *-*-irix6*) 1282 *-*-irix6*)
1307 # Find out what ABI is being produced by ac_compile, and set linker 1283 # Find out which ABI we are using.
1308 # options accordingly.
1309 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1284 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1310 if AC_TRY_EVAL(ac_compile); then 1285 if AC_TRY_EVAL(ac_compile); then
1311 if test yes = "$lt_cv_prog_gnu_ld"; then 1286 if test "$lt_cv_prog_gnu_ld" = yes; then
1312 case `/usr/bin/file conftest.$ac_objext` in 1287 case `/usr/bin/file conftest.$ac_objext` in
1313 *32-bit*) 1288 *32-bit*)
1314 LD="${LD-ld} -melf32bsmip" 1289 LD="${LD-ld} -melf32bsmip"
1315 ;; 1290 ;;
1316 *N32*) 1291 *N32*)
1317 LD="${LD-ld} -melf32bmipn32" 1292 LD="${LD-ld} -melf32bmipn32"
1318 ;; 1293 ;;
1319 *64-bit*) 1294 *64-bit*)
1320 LD="${LD-ld} -melf64bmip" 1295 LD="${LD-ld} -melf64bmip"
1321 ;; 1296 ;;
1322 esac 1297 esac
1323 else 1298 else
1324 case `/usr/bin/file conftest.$ac_objext` in 1299 case `/usr/bin/file conftest.$ac_objext` in
1325 *32-bit*) 1300 *32-bit*)
1326 LD="${LD-ld} -32" 1301 LD="${LD-ld} -32"
1327 ;; 1302 ;;
1328 *N32*) 1303 *N32*)
1329 LD="${LD-ld} -n32" 1304 LD="${LD-ld} -n32"
1330 ;; 1305 ;;
1331 *64-bit*) 1306 *64-bit*)
1332 LD="${LD-ld} -64" 1307 LD="${LD-ld} -64"
1333 ;; 1308 ;;
1334 esac 1309 esac
1335 fi 1310 fi
1336 fi 1311 fi
1337 rm -rf conftest* 1312 rm -rf conftest*
1338 ;; 1313 ;;
1339 1314
1340 mips64*-*linux*)
1341 # Find out what ABI is being produced by ac_compile, and set linker
1342 # options accordingly.
1343 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1344 if AC_TRY_EVAL(ac_compile); then
1345 emul=elf
1346 case `/usr/bin/file conftest.$ac_objext` in
1347 *32-bit*)
1348 emul="${emul}32"
1349 ;;
1350 *64-bit*)
1351 emul="${emul}64"
1352 ;;
1353 esac
1354 case `/usr/bin/file conftest.$ac_objext` in
1355 *MSB*)
1356 emul="${emul}btsmip"
1357 ;;
1358 *LSB*)
1359 emul="${emul}ltsmip"
1360 ;;
1361 esac
1362 case `/usr/bin/file conftest.$ac_objext` in
1363 *N32*)
1364 emul="${emul}n32"
1365 ;;
1366 esac
1367 LD="${LD-ld} -m $emul"
1368 fi
1369 rm -rf conftest*
1370 ;;
1371
1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 1315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1374 # Find out what ABI is being produced by ac_compile, and set linker 1317 # Find out which ABI we are using.
1375 # options accordingly. Note that the listed cases only cover the
1376 # situations where additional linker options are needed (such as when
1377 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1378 # vice versa); the common cases where no linker options are needed do
1379 # not appear in the list.
1380 echo 'int i;' > conftest.$ac_ext 1318 echo 'int i;' > conftest.$ac_ext
1381 if AC_TRY_EVAL(ac_compile); then 1319 if AC_TRY_EVAL(ac_compile); then
1382 case `/usr/bin/file conftest.o` in 1320 case `/usr/bin/file conftest.o` in
1383 *32-bit*) 1321 *32-bit*)
1384 case $host in 1322 case $host in
1385 x86_64-*kfreebsd*-gnu) 1323 x86_64-*kfreebsd*-gnu)
1386 LD="${LD-ld} -m elf_i386_fbsd" 1324 LD="${LD-ld} -m elf_i386_fbsd"
1387 ;; 1325 ;;
1388 x86_64-*linux*) 1326 x86_64-*linux*)
1389 case `/usr/bin/file conftest.o` in 1327 case `/usr/bin/file conftest.o` in
1390 *x86-64*) 1328 *x86-64*)
1391 LD="${LD-ld} -m elf32_x86_64" 1329 LD="${LD-ld} -m elf32_x86_64"
1392 ;; 1330 ;;
1393 *) 1331 *)
1394 LD="${LD-ld} -m elf_i386" 1332 LD="${LD-ld} -m elf_i386"
1395 ;; 1333 ;;
1396 esac 1334 esac
1397 ;; 1335 ;;
1398 » powerpc64le-*linux*) 1336 » powerpc64le-*)
1399 LD="${LD-ld} -m elf32lppclinux" 1337 LD="${LD-ld} -m elf32lppclinux"
1400 ;; 1338 ;;
1401 » powerpc64-*linux*) 1339 » powerpc64-*)
1402 LD="${LD-ld} -m elf32ppclinux" 1340 LD="${LD-ld} -m elf32ppclinux"
1403 ;; 1341 ;;
1404 s390x-*linux*) 1342 s390x-*linux*)
1405 LD="${LD-ld} -m elf_s390" 1343 LD="${LD-ld} -m elf_s390"
1406 ;; 1344 ;;
1407 sparc64-*linux*) 1345 sparc64-*linux*)
1408 LD="${LD-ld} -m elf32_sparc" 1346 LD="${LD-ld} -m elf32_sparc"
1409 ;; 1347 ;;
1410 esac 1348 esac
1411 ;; 1349 ;;
1412 *64-bit*) 1350 *64-bit*)
1413 case $host in 1351 case $host in
1414 x86_64-*kfreebsd*-gnu) 1352 x86_64-*kfreebsd*-gnu)
1415 LD="${LD-ld} -m elf_x86_64_fbsd" 1353 LD="${LD-ld} -m elf_x86_64_fbsd"
1416 ;; 1354 ;;
1417 x86_64-*linux*) 1355 x86_64-*linux*)
1418 LD="${LD-ld} -m elf_x86_64" 1356 LD="${LD-ld} -m elf_x86_64"
1419 ;; 1357 ;;
1420 » powerpcle-*linux*) 1358 » powerpcle-*)
1421 LD="${LD-ld} -m elf64lppc" 1359 LD="${LD-ld} -m elf64lppc"
1422 ;; 1360 ;;
1423 » powerpc-*linux*) 1361 » powerpc-*)
1424 LD="${LD-ld} -m elf64ppc" 1362 LD="${LD-ld} -m elf64ppc"
1425 ;; 1363 ;;
1426 s390*-*linux*|s390*-*tpf*) 1364 s390*-*linux*|s390*-*tpf*)
1427 LD="${LD-ld} -m elf64_s390" 1365 LD="${LD-ld} -m elf64_s390"
1428 ;; 1366 ;;
1429 sparc*-*linux*) 1367 sparc*-*linux*)
1430 LD="${LD-ld} -m elf64_sparc" 1368 LD="${LD-ld} -m elf64_sparc"
1431 ;; 1369 ;;
1432 esac 1370 esac
1433 ;; 1371 ;;
1434 esac 1372 esac
1435 fi 1373 fi
1436 rm -rf conftest* 1374 rm -rf conftest*
1437 ;; 1375 ;;
1438 1376
1439 *-*-sco3.2v5*) 1377 *-*-sco3.2v5*)
1440 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1441 SAVE_CFLAGS=$CFLAGS 1379 SAVE_CFLAGS="$CFLAGS"
1442 CFLAGS="$CFLAGS -belf" 1380 CFLAGS="$CFLAGS -belf"
1443 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1381 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1444 [AC_LANG_PUSH(C) 1382 [AC_LANG_PUSH(C)
1445 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c v_cc_needs_belf=no]) 1383 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c v_cc_needs_belf=no])
1446 AC_LANG_POP]) 1384 AC_LANG_POP])
1447 if test yes != "$lt_cv_cc_needs_belf"; then 1385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1449 CFLAGS=$SAVE_CFLAGS 1387 CFLAGS="$SAVE_CFLAGS"
1450 fi 1388 fi
1451 ;; 1389 ;;
1452 *-*solaris*) 1390 *-*solaris*)
1453 # Find out what ABI is being produced by ac_compile, and set linker 1391 # Find out which ABI we are using.
1454 # options accordingly.
1455 echo 'int i;' > conftest.$ac_ext 1392 echo 'int i;' > conftest.$ac_ext
1456 if AC_TRY_EVAL(ac_compile); then 1393 if AC_TRY_EVAL(ac_compile); then
1457 case `/usr/bin/file conftest.o` in 1394 case `/usr/bin/file conftest.o` in
1458 *64-bit*) 1395 *64-bit*)
1459 case $lt_cv_prog_gnu_ld in 1396 case $lt_cv_prog_gnu_ld in
1460 yes*) 1397 yes*)
1461 case $host in 1398 case $host in
1462 i?86-*-solaris*|x86_64-*-solaris*) 1399 i?86-*-solaris*)
1463 LD="${LD-ld} -m elf_x86_64" 1400 LD="${LD-ld} -m elf_x86_64"
1464 ;; 1401 ;;
1465 sparc*-*-solaris*) 1402 sparc*-*-solaris*)
1466 LD="${LD-ld} -m elf64_sparc" 1403 LD="${LD-ld} -m elf64_sparc"
1467 ;; 1404 ;;
1468 esac 1405 esac
1469 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1470 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 1407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1471 LD=${LD-ld}_sol2 1408 LD="${LD-ld}_sol2"
1472 fi 1409 fi
1473 ;; 1410 ;;
1474 *) 1411 *)
1475 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1476 LD="${LD-ld} -64" 1413 LD="${LD-ld} -64"
1477 fi 1414 fi
1478 ;; 1415 ;;
1479 esac 1416 esac
1480 ;; 1417 ;;
1481 esac 1418 esac
1482 fi 1419 fi
1483 rm -rf conftest* 1420 rm -rf conftest*
1484 ;; 1421 ;;
1485 esac 1422 esac
1486 1423
1487 need_locks=$enable_libtool_lock 1424 need_locks="$enable_libtool_lock"
1488 ])# _LT_ENABLE_LOCK 1425 ])# _LT_ENABLE_LOCK
1489 1426
1490 1427
1491 # _LT_PROG_AR 1428 # _LT_PROG_AR
1492 # ----------- 1429 # -----------
1493 m4_defun([_LT_PROG_AR], 1430 m4_defun([_LT_PROG_AR],
1494 [AC_CHECK_TOOLS(AR, [ar], false) 1431 [AC_CHECK_TOOLS(AR, [ar], false)
1495 : ${AR=ar} 1432 : ${AR=ar}
1496 : ${AR_FLAGS=cru} 1433 : ${AR_FLAGS=cru}
1497 _LT_DECL([], [AR], [1], [The archiver]) 1434 _LT_DECL([], [AR], [1], [The archiver])
1498 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1435 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1499 1436
1500 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1437 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1501 [lt_cv_ar_at_file=no 1438 [lt_cv_ar_at_file=no
1502 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1439 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1503 [echo conftest.$ac_objext > conftest.lst 1440 [echo conftest.$ac_objext > conftest.lst
1504 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1505 AC_TRY_EVAL([lt_ar_try]) 1442 AC_TRY_EVAL([lt_ar_try])
1506 if test 0 -eq "$ac_status"; then 1443 if test "$ac_status" -eq 0; then
1507 # Ensure the archiver fails upon bogus file names. 1444 # Ensure the archiver fails upon bogus file names.
1508 rm -f conftest.$ac_objext libconftest.a 1445 rm -f conftest.$ac_objext libconftest.a
1509 AC_TRY_EVAL([lt_ar_try]) 1446 AC_TRY_EVAL([lt_ar_try])
1510 » if test 0 -ne "$ac_status"; then 1447 » if test "$ac_status" -ne 0; then
1511 lt_cv_ar_at_file=@ 1448 lt_cv_ar_at_file=@
1512 fi 1449 fi
1513 fi 1450 fi
1514 rm -f conftest.* libconftest.a 1451 rm -f conftest.* libconftest.a
1515 ]) 1452 ])
1516 ]) 1453 ])
1517 1454
1518 if test no = "$lt_cv_ar_at_file"; then 1455 if test "x$lt_cv_ar_at_file" = xno; then
1519 archiver_list_spec= 1456 archiver_list_spec=
1520 else 1457 else
1521 archiver_list_spec=$lt_cv_ar_at_file 1458 archiver_list_spec=$lt_cv_ar_at_file
1522 fi 1459 fi
1523 _LT_DECL([], [archiver_list_spec], [1], 1460 _LT_DECL([], [archiver_list_spec], [1],
1524 [How to feed a file listing to the archiver]) 1461 [How to feed a file listing to the archiver])
1525 ])# _LT_PROG_AR 1462 ])# _LT_PROG_AR
1526 1463
1527 1464
1528 # _LT_CMD_OLD_ARCHIVE 1465 # _LT_CMD_OLD_ARCHIVE
(...skipping 10 matching lines...) Expand all
1539 _LT_DECL([], [RANLIB], [1], 1476 _LT_DECL([], [RANLIB], [1],
1540 [Commands used to install an old-style archive]) 1477 [Commands used to install an old-style archive])
1541 1478
1542 # Determine commands to create old-style static archives. 1479 # Determine commands to create old-style static archives.
1543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1480 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1544 old_postinstall_cmds='chmod 644 $oldlib' 1481 old_postinstall_cmds='chmod 644 $oldlib'
1545 old_postuninstall_cmds= 1482 old_postuninstall_cmds=
1546 1483
1547 if test -n "$RANLIB"; then 1484 if test -n "$RANLIB"; then
1548 case $host_os in 1485 case $host_os in
1549 bitrig* | openbsd*) 1486 openbsd*)
1550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1551 ;; 1488 ;;
1552 *) 1489 *)
1553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1554 ;; 1491 ;;
1555 esac 1492 esac
1556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1557 fi 1494 fi
1558 1495
1559 case $host_os in 1496 case $host_os in
(...skipping 15 matching lines...) Expand all
1575 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1512 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1576 # ---------------------------------------------------------------- 1513 # ----------------------------------------------------------------
1577 # Check whether the given compiler option works 1514 # Check whether the given compiler option works
1578 AC_DEFUN([_LT_COMPILER_OPTION], 1515 AC_DEFUN([_LT_COMPILER_OPTION],
1579 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1516 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1580 m4_require([_LT_DECL_SED])dnl 1517 m4_require([_LT_DECL_SED])dnl
1581 AC_CACHE_CHECK([$1], [$2], 1518 AC_CACHE_CHECK([$1], [$2],
1582 [$2=no 1519 [$2=no
1583 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1520 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1585 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 1522 lt_compiler_flag="$3"
1586 # Insert the option either (1) after the last *FLAGS variable, or 1523 # Insert the option either (1) after the last *FLAGS variable, or
1587 # (2) before a word containing "conftest.", or (3) at the end. 1524 # (2) before a word containing "conftest.", or (3) at the end.
1588 # Note that $ac_compile itself does not contain backslashes and begins 1525 # Note that $ac_compile itself does not contain backslashes and begins
1589 # with a dollar sign (not a hyphen), so the echo should work correctly. 1526 # with a dollar sign (not a hyphen), so the echo should work correctly.
1590 # The option is referenced via a variable to avoid confusing sed. 1527 # The option is referenced via a variable to avoid confusing sed.
1591 lt_compile=`echo "$ac_compile" | $SED \ 1528 lt_compile=`echo "$ac_compile" | $SED \
1592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1593 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1530 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1594 -e 's:$: $lt_compiler_flag:'` 1531 -e 's:$: $lt_compiler_flag:'`
1595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1596 (eval "$lt_compile" 2>conftest.err) 1533 (eval "$lt_compile" 2>conftest.err)
1597 ac_status=$? 1534 ac_status=$?
1598 cat conftest.err >&AS_MESSAGE_LOG_FD 1535 cat conftest.err >&AS_MESSAGE_LOG_FD
1599 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1536 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1600 if (exit $ac_status) && test -s "$ac_outfile"; then 1537 if (exit $ac_status) && test -s "$ac_outfile"; then
1601 # The compiler can only warn and ignore the option if not recognized 1538 # The compiler can only warn and ignore the option if not recognized
1602 # So say no if there are warnings other than the usual output. 1539 # So say no if there are warnings other than the usual output.
1603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n 1542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
1606 $2=yes 1543 $2=yes
1607 fi 1544 fi
1608 fi 1545 fi
1609 $RM conftest* 1546 $RM conftest*
1610 ]) 1547 ])
1611 1548
1612 if test yes = "[$]$2"; then 1549 if test x"[$]$2" = xyes; then
1613 m4_if([$5], , :, [$5]) 1550 m4_if([$5], , :, [$5])
1614 else 1551 else
1615 m4_if([$6], , :, [$6]) 1552 m4_if([$6], , :, [$6])
1616 fi 1553 fi
1617 ])# _LT_COMPILER_OPTION 1554 ])# _LT_COMPILER_OPTION
1618 1555
1619 # Old name: 1556 # Old name:
1620 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1557 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1621 dnl aclocal-1.4 backwards compatibility: 1558 dnl aclocal-1.4 backwards compatibility:
1622 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1559 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1623 1560
1624 1561
1625 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1562 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1626 # [ACTION-SUCCESS], [ACTION-FAILURE]) 1563 # [ACTION-SUCCESS], [ACTION-FAILURE])
1627 # ---------------------------------------------------- 1564 # ----------------------------------------------------
1628 # Check whether the given linker option works 1565 # Check whether the given linker option works
1629 AC_DEFUN([_LT_LINKER_OPTION], 1566 AC_DEFUN([_LT_LINKER_OPTION],
1630 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1567 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1631 m4_require([_LT_DECL_SED])dnl 1568 m4_require([_LT_DECL_SED])dnl
1632 AC_CACHE_CHECK([$1], [$2], 1569 AC_CACHE_CHECK([$1], [$2],
1633 [$2=no 1570 [$2=no
1634 save_LDFLAGS=$LDFLAGS 1571 save_LDFLAGS="$LDFLAGS"
1635 LDFLAGS="$LDFLAGS $3" 1572 LDFLAGS="$LDFLAGS $3"
1636 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1638 # The linker can only warn and ignore the option if not recognized 1575 # The linker can only warn and ignore the option if not recognized
1639 # So say no if there are warnings 1576 # So say no if there are warnings
1640 if test -s conftest.err; then 1577 if test -s conftest.err; then
1641 # Append any errors to the config.log. 1578 # Append any errors to the config.log.
1642 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1579 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1645 if diff conftest.exp conftest.er2 >/dev/null; then 1582 if diff conftest.exp conftest.er2 >/dev/null; then
1646 $2=yes 1583 $2=yes
1647 fi 1584 fi
1648 else 1585 else
1649 $2=yes 1586 $2=yes
1650 fi 1587 fi
1651 fi 1588 fi
1652 $RM -r conftest* 1589 $RM -r conftest*
1653 LDFLAGS=$save_LDFLAGS 1590 LDFLAGS="$save_LDFLAGS"
1654 ]) 1591 ])
1655 1592
1656 if test yes = "[$]$2"; then 1593 if test x"[$]$2" = xyes; then
1657 m4_if([$4], , :, [$4]) 1594 m4_if([$4], , :, [$4])
1658 else 1595 else
1659 m4_if([$5], , :, [$5]) 1596 m4_if([$5], , :, [$5])
1660 fi 1597 fi
1661 ])# _LT_LINKER_OPTION 1598 ])# _LT_LINKER_OPTION
1662 1599
1663 # Old name: 1600 # Old name:
1664 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1601 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1665 dnl aclocal-1.4 backwards compatibility: 1602 dnl aclocal-1.4 backwards compatibility:
1666 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1603 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1667 1604
1668 1605
1669 # LT_CMD_MAX_LEN 1606 # LT_CMD_MAX_LEN
1670 #--------------- 1607 #---------------
1671 AC_DEFUN([LT_CMD_MAX_LEN], 1608 AC_DEFUN([LT_CMD_MAX_LEN],
1672 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 1609 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1673 # find the maximum length of command line arguments 1610 # find the maximum length of command line arguments
1674 AC_MSG_CHECKING([the maximum length of command line arguments]) 1611 AC_MSG_CHECKING([the maximum length of command line arguments])
1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1612 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1676 i=0 1613 i=0
1677 teststring=ABCD 1614 teststring="ABCD"
1678 1615
1679 case $build_os in 1616 case $build_os in
1680 msdosdjgpp*) 1617 msdosdjgpp*)
1681 # On DJGPP, this test can blow up pretty badly due to problems in libc 1618 # On DJGPP, this test can blow up pretty badly due to problems in libc
1682 # (any single argument exceeding 2000 bytes causes a buffer overrun 1619 # (any single argument exceeding 2000 bytes causes a buffer overrun
1683 # during glob expansion). Even if it were fixed, the result of this 1620 # during glob expansion). Even if it were fixed, the result of this
1684 # check would be larger than it should be. 1621 # check would be larger than it should be.
1685 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1622 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1686 ;; 1623 ;;
1687 1624
(...skipping 19 matching lines...) Expand all
1707 # On MiNT this can take a long time and run out of memory. 1644 # On MiNT this can take a long time and run out of memory.
1708 lt_cv_sys_max_cmd_len=8192; 1645 lt_cv_sys_max_cmd_len=8192;
1709 ;; 1646 ;;
1710 1647
1711 amigaos*) 1648 amigaos*)
1712 # On AmigaOS with pdksh, this test takes hours, literally. 1649 # On AmigaOS with pdksh, this test takes hours, literally.
1713 # So we just punt and use a minimum line length of 8192. 1650 # So we just punt and use a minimum line length of 8192.
1714 lt_cv_sys_max_cmd_len=8192; 1651 lt_cv_sys_max_cmd_len=8192;
1715 ;; 1652 ;;
1716 1653
1717 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 1654 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1718 # This has been around since 386BSD, at least. Likely further. 1655 # This has been around since 386BSD, at least. Likely further.
1719 if test -x /sbin/sysctl; then 1656 if test -x /sbin/sysctl; then
1720 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1657 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1721 elif test -x /usr/sbin/sysctl; then 1658 elif test -x /usr/sbin/sysctl; then
1722 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1659 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1723 else 1660 else
1724 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1661 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1725 fi 1662 fi
1726 # And add a safety zone 1663 # And add a safety zone
1727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
(...skipping 30 matching lines...) Expand all
1758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1695 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1759 if test -n "$kargmax"; then 1696 if test -n "$kargmax"; then
1760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1697 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1761 else 1698 else
1762 lt_cv_sys_max_cmd_len=32768 1699 lt_cv_sys_max_cmd_len=32768
1763 fi 1700 fi
1764 ;; 1701 ;;
1765 *) 1702 *)
1766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1703 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1767 if test -n "$lt_cv_sys_max_cmd_len" && \ 1704 if test -n "$lt_cv_sys_max_cmd_len" && \
1768 test undefined != "$lt_cv_sys_max_cmd_len"; then 1705 » test undefined != "$lt_cv_sys_max_cmd_len"; then
1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1771 else 1708 else
1772 # Make teststring a little bigger before we do anything with it. 1709 # Make teststring a little bigger before we do anything with it.
1773 # a 1K string should be a reasonable start. 1710 # a 1K string should be a reasonable start.
1774 for i in 1 2 3 4 5 6 7 8; do 1711 for i in 1 2 3 4 5 6 7 8 ; do
1775 teststring=$teststring$teststring 1712 teststring=$teststring$teststring
1776 done 1713 done
1777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1778 # If test is not a shell built-in, we'll probably end up computing a 1715 # If test is not a shell built-in, we'll probably end up computing a
1779 # maximum length that is only half of the actual maximum length, but 1716 # maximum length that is only half of the actual maximum length, but
1780 # we can't tell. 1717 # we can't tell.
1781 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 1718 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1782 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1783 » test 17 != "$i" # 1/2 MB should be enough 1720 » test $i != 17 # 1/2 MB should be enough
1784 do 1721 do
1785 i=`expr $i + 1` 1722 i=`expr $i + 1`
1786 teststring=$teststring$teststring 1723 teststring=$teststring$teststring
1787 done 1724 done
1788 # Only check the string length outside the loop. 1725 # Only check the string length outside the loop.
1789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1790 teststring= 1727 teststring=
1791 # Add a significant safety factor because C++ compilers can tack on 1728 # Add a significant safety factor because C++ compilers can tack on
1792 # massive amounts of additional arguments before passing them to the 1729 # massive amounts of additional arguments before passing them to the
1793 # linker. It appears as though 1/2 is a usable value. 1730 # linker. It appears as though 1/2 is a usable value.
1794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1795 fi 1732 fi
1796 ;; 1733 ;;
1797 esac 1734 esac
1798 ]) 1735 ])
1799 if test -n "$lt_cv_sys_max_cmd_len"; then 1736 if test -n $lt_cv_sys_max_cmd_len ; then
1800 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1737 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1801 else 1738 else
1802 AC_MSG_RESULT(none) 1739 AC_MSG_RESULT(none)
1803 fi 1740 fi
1804 max_cmd_len=$lt_cv_sys_max_cmd_len 1741 max_cmd_len=$lt_cv_sys_max_cmd_len
1805 _LT_DECL([], [max_cmd_len], [0], 1742 _LT_DECL([], [max_cmd_len], [0],
1806 [What is the maximum length of a command?]) 1743 [What is the maximum length of a command?])
1807 ])# LT_CMD_MAX_LEN 1744 ])# LT_CMD_MAX_LEN
1808 1745
1809 # Old name: 1746 # Old name:
1810 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1747 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1811 dnl aclocal-1.4 backwards compatibility: 1748 dnl aclocal-1.4 backwards compatibility:
1812 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1749 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1813 1750
1814 1751
1815 # _LT_HEADER_DLFCN 1752 # _LT_HEADER_DLFCN
1816 # ---------------- 1753 # ----------------
1817 m4_defun([_LT_HEADER_DLFCN], 1754 m4_defun([_LT_HEADER_DLFCN],
1818 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1755 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1819 ])# _LT_HEADER_DLFCN 1756 ])# _LT_HEADER_DLFCN
1820 1757
1821 1758
1822 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1759 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1823 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1760 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1824 # ---------------------------------------------------------------- 1761 # ----------------------------------------------------------------
1825 m4_defun([_LT_TRY_DLOPEN_SELF], 1762 m4_defun([_LT_TRY_DLOPEN_SELF],
1826 [m4_require([_LT_HEADER_DLFCN])dnl 1763 [m4_require([_LT_HEADER_DLFCN])dnl
1827 if test yes = "$cross_compiling"; then : 1764 if test "$cross_compiling" = yes; then :
1828 [$4] 1765 [$4]
1829 else 1766 else
1830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1831 lt_status=$lt_dlunknown 1768 lt_status=$lt_dlunknown
1832 cat > conftest.$ac_ext <<_LT_EOF 1769 cat > conftest.$ac_ext <<_LT_EOF
1833 [#line $LINENO "configure" 1770 [#line $LINENO "configure"
1834 #include "confdefs.h" 1771 #include "confdefs.h"
1835 1772
1836 #if HAVE_DLFCN_H 1773 #if HAVE_DLFCN_H
1837 #include <dlfcn.h> 1774 #include <dlfcn.h>
(...skipping 26 matching lines...) Expand all
1864 # ifdef DL_NOW 1801 # ifdef DL_NOW
1865 # define LT_DLLAZY_OR_NOW DL_NOW 1802 # define LT_DLLAZY_OR_NOW DL_NOW
1866 # else 1803 # else
1867 # define LT_DLLAZY_OR_NOW 0 1804 # define LT_DLLAZY_OR_NOW 0
1868 # endif 1805 # endif
1869 # endif 1806 # endif
1870 # endif 1807 # endif
1871 # endif 1808 # endif
1872 #endif 1809 #endif
1873 1810
1874 /* When -fvisibility=hidden is used, assume the code has been annotated 1811 /* When -fvisbility=hidden is used, assume the code has been annotated
1875 correspondingly for the symbols needed. */ 1812 correspondingly for the symbols needed. */
1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1813 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_ _ > 3))
1877 int fnord () __attribute__((visibility("default"))); 1814 int fnord () __attribute__((visibility("default")));
1878 #endif 1815 #endif
1879 1816
1880 int fnord () { return 42; } 1817 int fnord () { return 42; }
1881 int main () 1818 int main ()
1882 { 1819 {
1883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1884 int status = $lt_dlunknown; 1821 int status = $lt_dlunknown;
1885 1822
1886 if (self) 1823 if (self)
1887 { 1824 {
1888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1889 else 1826 else
1890 { 1827 {
1891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1892 else puts (dlerror ()); 1829 else puts (dlerror ());
1893 } 1830 }
1894 /* dlclose (self); */ 1831 /* dlclose (self); */
1895 } 1832 }
1896 else 1833 else
1897 puts (dlerror ()); 1834 puts (dlerror ());
1898 1835
1899 return status; 1836 return status;
1900 }] 1837 }]
1901 _LT_EOF 1838 _LT_EOF
1902 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 1839 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1903 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1840 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1904 lt_status=$? 1841 lt_status=$?
1905 case x$lt_status in 1842 case x$lt_status in
1906 x$lt_dlno_uscore) $1 ;; 1843 x$lt_dlno_uscore) $1 ;;
1907 x$lt_dlneed_uscore) $2 ;; 1844 x$lt_dlneed_uscore) $2 ;;
1908 x$lt_dlunknown|x*) $3 ;; 1845 x$lt_dlunknown|x*) $3 ;;
1909 esac 1846 esac
1910 else : 1847 else :
1911 # compilation failed 1848 # compilation failed
1912 $3 1849 $3
1913 fi 1850 fi
1914 fi 1851 fi
1915 rm -fr conftest* 1852 rm -fr conftest*
1916 ])# _LT_TRY_DLOPEN_SELF 1853 ])# _LT_TRY_DLOPEN_SELF
1917 1854
1918 1855
1919 # LT_SYS_DLOPEN_SELF 1856 # LT_SYS_DLOPEN_SELF
1920 # ------------------ 1857 # ------------------
1921 AC_DEFUN([LT_SYS_DLOPEN_SELF], 1858 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1922 [m4_require([_LT_HEADER_DLFCN])dnl 1859 [m4_require([_LT_HEADER_DLFCN])dnl
1923 if test yes != "$enable_dlopen"; then 1860 if test "x$enable_dlopen" != xyes; then
1924 enable_dlopen=unknown 1861 enable_dlopen=unknown
1925 enable_dlopen_self=unknown 1862 enable_dlopen_self=unknown
1926 enable_dlopen_self_static=unknown 1863 enable_dlopen_self_static=unknown
1927 else 1864 else
1928 lt_cv_dlopen=no 1865 lt_cv_dlopen=no
1929 lt_cv_dlopen_libs= 1866 lt_cv_dlopen_libs=
1930 1867
1931 case $host_os in 1868 case $host_os in
1932 beos*) 1869 beos*)
1933 lt_cv_dlopen=load_add_on 1870 lt_cv_dlopen="load_add_on"
1934 lt_cv_dlopen_libs= 1871 lt_cv_dlopen_libs=
1935 lt_cv_dlopen_self=yes 1872 lt_cv_dlopen_self=yes
1936 ;; 1873 ;;
1937 1874
1938 mingw* | pw32* | cegcc*) 1875 mingw* | pw32* | cegcc*)
1939 lt_cv_dlopen=LoadLibrary 1876 lt_cv_dlopen="LoadLibrary"
1940 lt_cv_dlopen_libs= 1877 lt_cv_dlopen_libs=
1941 ;; 1878 ;;
1942 1879
1943 cygwin*) 1880 cygwin*)
1944 lt_cv_dlopen=dlopen 1881 lt_cv_dlopen="dlopen"
1945 lt_cv_dlopen_libs= 1882 lt_cv_dlopen_libs=
1946 ;; 1883 ;;
1947 1884
1948 darwin*) 1885 darwin*)
1949 # if libdl is installed we need to link against it 1886 # if libdl is installed we need to link against it
1950 AC_CHECK_LIB([dl], [dlopen], 1887 AC_CHECK_LIB([dl], [dlopen],
1951 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 1888 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1952 lt_cv_dlopen=dyld 1889 lt_cv_dlopen="dyld"
1953 lt_cv_dlopen_libs= 1890 lt_cv_dlopen_libs=
1954 lt_cv_dlopen_self=yes 1891 lt_cv_dlopen_self=yes
1955 ]) 1892 ])
1956 ;; 1893 ;;
1957 1894
1958 tpf*)
1959 # Don't try to run any link tests for TPF. We know it's impossible
1960 # because TPF is a cross-compiler, and we know how we open DSOs.
1961 lt_cv_dlopen=dlopen
1962 lt_cv_dlopen_libs=
1963 lt_cv_dlopen_self=no
1964 ;;
1965
1966 *) 1895 *)
1967 AC_CHECK_FUNC([shl_load], 1896 AC_CHECK_FUNC([shl_load],
1968 » [lt_cv_dlopen=shl_load], 1897 » [lt_cv_dlopen="shl_load"],
1969 [AC_CHECK_LIB([dld], [shl_load], 1898 [AC_CHECK_LIB([dld], [shl_load],
1970 » [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 1899 » [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1971 [AC_CHECK_FUNC([dlopen], 1900 [AC_CHECK_FUNC([dlopen],
1972 » [lt_cv_dlopen=dlopen], 1901 » [lt_cv_dlopen="dlopen"],
1973 [AC_CHECK_LIB([dl], [dlopen], 1902 [AC_CHECK_LIB([dl], [dlopen],
1974 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 1903 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1975 [AC_CHECK_LIB([svld], [dlopen], 1904 [AC_CHECK_LIB([svld], [dlopen],
1976 » » [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 1905 » » [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1977 [AC_CHECK_LIB([dld], [dld_link], 1906 [AC_CHECK_LIB([dld], [dld_link],
1978 » » [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 1907 » » [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1979 ]) 1908 ])
1980 ]) 1909 ])
1981 ]) 1910 ])
1982 ]) 1911 ])
1983 ]) 1912 ])
1984 ;; 1913 ;;
1985 esac 1914 esac
1986 1915
1987 if test no = "$lt_cv_dlopen"; then 1916 if test "x$lt_cv_dlopen" != xno; then
1917 enable_dlopen=yes
1918 else
1988 enable_dlopen=no 1919 enable_dlopen=no
1989 else
1990 enable_dlopen=yes
1991 fi 1920 fi
1992 1921
1993 case $lt_cv_dlopen in 1922 case $lt_cv_dlopen in
1994 dlopen) 1923 dlopen)
1995 save_CPPFLAGS=$CPPFLAGS 1924 save_CPPFLAGS="$CPPFLAGS"
1996 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1925 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1997 1926
1998 save_LDFLAGS=$LDFLAGS 1927 save_LDFLAGS="$LDFLAGS"
1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2000 1929
2001 save_LIBS=$LIBS 1930 save_LIBS="$LIBS"
2002 LIBS="$lt_cv_dlopen_libs $LIBS" 1931 LIBS="$lt_cv_dlopen_libs $LIBS"
2003 1932
2004 AC_CACHE_CHECK([whether a program can dlopen itself], 1933 AC_CACHE_CHECK([whether a program can dlopen itself],
2005 lt_cv_dlopen_self, [dnl 1934 lt_cv_dlopen_self, [dnl
2006 _LT_TRY_DLOPEN_SELF( 1935 _LT_TRY_DLOPEN_SELF(
2007 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1936 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2008 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1937 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2009 ]) 1938 ])
2010 1939
2011 if test yes = "$lt_cv_dlopen_self"; then 1940 if test "x$lt_cv_dlopen_self" = xyes; then
2012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ " 1941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
2013 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1942 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2014 lt_cv_dlopen_self_static, [dnl 1943 lt_cv_dlopen_self_static, [dnl
2015 _LT_TRY_DLOPEN_SELF( 1944 _LT_TRY_DLOPEN_SELF(
2016 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1945 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2017 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1946 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2018 ]) 1947 ])
2019 fi 1948 fi
2020 1949
2021 CPPFLAGS=$save_CPPFLAGS 1950 CPPFLAGS="$save_CPPFLAGS"
2022 LDFLAGS=$save_LDFLAGS 1951 LDFLAGS="$save_LDFLAGS"
2023 LIBS=$save_LIBS 1952 LIBS="$save_LIBS"
2024 ;; 1953 ;;
2025 esac 1954 esac
2026 1955
2027 case $lt_cv_dlopen_self in 1956 case $lt_cv_dlopen_self in
2028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1957 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2029 *) enable_dlopen_self=unknown ;; 1958 *) enable_dlopen_self=unknown ;;
2030 esac 1959 esac
2031 1960
2032 case $lt_cv_dlopen_self_static in 1961 case $lt_cv_dlopen_self_static in
2033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1962 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 2034
2106 2035
2107 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2036 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2108 # ---------------------------------- 2037 # ----------------------------------
2109 # Check to see if we can do hard links to lock some files if needed 2038 # Check to see if we can do hard links to lock some files if needed
2110 m4_defun([_LT_COMPILER_FILE_LOCKS], 2039 m4_defun([_LT_COMPILER_FILE_LOCKS],
2111 [m4_require([_LT_ENABLE_LOCK])dnl 2040 [m4_require([_LT_ENABLE_LOCK])dnl
2112 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2041 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2113 _LT_COMPILER_C_O([$1]) 2042 _LT_COMPILER_C_O([$1])
2114 2043
2115 hard_links=nottested 2044 hard_links="nottested"
2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_loc ks"; then 2045 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2117 # do not overwrite the value of need_locks provided by the user 2046 # do not overwrite the value of need_locks provided by the user
2118 AC_MSG_CHECKING([if we can lock with hard links]) 2047 AC_MSG_CHECKING([if we can lock with hard links])
2119 hard_links=yes 2048 hard_links=yes
2120 $RM conftest* 2049 $RM conftest*
2121 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2122 touch conftest.a 2051 touch conftest.a
2123 ln conftest.a conftest.b 2>&5 || hard_links=no 2052 ln conftest.a conftest.b 2>&5 || hard_links=no
2124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2125 AC_MSG_RESULT([$hard_links]) 2054 AC_MSG_RESULT([$hard_links])
2126 if test no = "$hard_links"; then 2055 if test "$hard_links" = no; then
2127 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 2056 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2128 need_locks=warn 2057 need_locks=warn
2129 fi 2058 fi
2130 else 2059 else
2131 need_locks=no 2060 need_locks=no
2132 fi 2061 fi
2133 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2062 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2134 ])# _LT_COMPILER_FILE_LOCKS 2063 ])# _LT_COMPILER_FILE_LOCKS
2135 2064
2136 2065
2137 # _LT_CHECK_OBJDIR 2066 # _LT_CHECK_OBJDIR
2138 # ---------------- 2067 # ----------------
2139 m4_defun([_LT_CHECK_OBJDIR], 2068 m4_defun([_LT_CHECK_OBJDIR],
2140 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2069 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2141 [rm -f .libs 2>/dev/null 2070 [rm -f .libs 2>/dev/null
2142 mkdir .libs 2>/dev/null 2071 mkdir .libs 2>/dev/null
2143 if test -d .libs; then 2072 if test -d .libs; then
2144 lt_cv_objdir=.libs 2073 lt_cv_objdir=.libs
2145 else 2074 else
2146 # MS-DOS does not allow filenames that begin with a dot. 2075 # MS-DOS does not allow filenames that begin with a dot.
2147 lt_cv_objdir=_libs 2076 lt_cv_objdir=_libs
2148 fi 2077 fi
2149 rmdir .libs 2>/dev/null]) 2078 rmdir .libs 2>/dev/null])
2150 objdir=$lt_cv_objdir 2079 objdir=$lt_cv_objdir
2151 _LT_DECL([], [objdir], [0], 2080 _LT_DECL([], [objdir], [0],
2152 [The name of the directory that contains temporary libtool files])dnl 2081 [The name of the directory that contains temporary libtool files])dnl
2153 m4_pattern_allow([LT_OBJDIR])dnl 2082 m4_pattern_allow([LT_OBJDIR])dnl
2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2083 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2155 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2084 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2156 ])# _LT_CHECK_OBJDIR 2085 ])# _LT_CHECK_OBJDIR
2157 2086
2158 2087
2159 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2088 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2160 # -------------------------------------- 2089 # --------------------------------------
2161 # Check hardcoding attributes. 2090 # Check hardcoding attributes.
2162 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2091 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2163 [AC_MSG_CHECKING([how to hardcode library paths into programs]) 2092 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2164 _LT_TAGVAR(hardcode_action, $1)= 2093 _LT_TAGVAR(hardcode_action, $1)=
2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2094 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2166 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2095 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2167 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2096 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2168 2097
2169 # We can hardcode non-existent directories. 2098 # We can hardcode non-existent directories.
2170 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2099 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2171 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2172 # have to relink, otherwise we might link with an installed library 2101 # have to relink, otherwise we might link with an installed library
2173 # when we should be linking with a yet-to-be-installed one 2102 # when we should be linking with a yet-to-be-installed one
2174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2175 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2104 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2176 # Linking always hardcodes the temporary library directory. 2105 # Linking always hardcodes the temporary library directory.
2177 _LT_TAGVAR(hardcode_action, $1)=relink 2106 _LT_TAGVAR(hardcode_action, $1)=relink
2178 else 2107 else
2179 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2180 _LT_TAGVAR(hardcode_action, $1)=immediate 2109 _LT_TAGVAR(hardcode_action, $1)=immediate
2181 fi 2110 fi
2182 else 2111 else
2183 # We cannot hardcode anything, or else we can only hardcode existing 2112 # We cannot hardcode anything, or else we can only hardcode existing
2184 # directories. 2113 # directories.
2185 _LT_TAGVAR(hardcode_action, $1)=unsupported 2114 _LT_TAGVAR(hardcode_action, $1)=unsupported
2186 fi 2115 fi
2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2116 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2188 2117
2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2118 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2190 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2119 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2191 # Fast installation is not supported 2120 # Fast installation is not supported
2192 enable_fast_install=no 2121 enable_fast_install=no
2193 elif test yes = "$shlibpath_overrides_runpath" || 2122 elif test "$shlibpath_overrides_runpath" = yes ||
2194 test no = "$enable_shared"; then 2123 test "$enable_shared" = no; then
2195 # Fast installation is not necessary 2124 # Fast installation is not necessary
2196 enable_fast_install=needless 2125 enable_fast_install=needless
2197 fi 2126 fi
2198 _LT_TAGDECL([], [hardcode_action], [0], 2127 _LT_TAGDECL([], [hardcode_action], [0],
2199 [How to hardcode a shared library path into an executable]) 2128 [How to hardcode a shared library path into an executable])
2200 ])# _LT_LINKER_HARDCODE_LIBPATH 2129 ])# _LT_LINKER_HARDCODE_LIBPATH
2201 2130
2202 2131
2203 # _LT_CMD_STRIPLIB 2132 # _LT_CMD_STRIPLIB
2204 # ---------------- 2133 # ----------------
2205 m4_defun([_LT_CMD_STRIPLIB], 2134 m4_defun([_LT_CMD_STRIPLIB],
2206 [m4_require([_LT_DECL_EGREP]) 2135 [m4_require([_LT_DECL_EGREP])
2207 striplib= 2136 striplib=
2208 old_striplib= 2137 old_striplib=
2209 AC_MSG_CHECKING([whether stripping libraries is possible]) 2138 AC_MSG_CHECKING([whether stripping libraries is possible])
2210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2139 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2213 AC_MSG_RESULT([yes]) 2142 AC_MSG_RESULT([yes])
2214 else 2143 else
2215 # FIXME - insert some real tests, host_os isn't really good enough 2144 # FIXME - insert some real tests, host_os isn't really good enough
2216 case $host_os in 2145 case $host_os in
2217 darwin*) 2146 darwin*)
2218 if test -n "$STRIP"; then 2147 if test -n "$STRIP" ; then
2219 striplib="$STRIP -x" 2148 striplib="$STRIP -x"
2220 old_striplib="$STRIP -S" 2149 old_striplib="$STRIP -S"
2221 AC_MSG_RESULT([yes]) 2150 AC_MSG_RESULT([yes])
2222 else 2151 else
2223 AC_MSG_RESULT([no]) 2152 AC_MSG_RESULT([no])
2224 fi 2153 fi
2225 ;; 2154 ;;
2226 *) 2155 *)
2227 AC_MSG_RESULT([no]) 2156 AC_MSG_RESULT([no])
2228 ;; 2157 ;;
2229 esac 2158 esac
2230 fi 2159 fi
2231 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2160 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2232 _LT_DECL([], [striplib], [1]) 2161 _LT_DECL([], [striplib], [1])
2233 ])# _LT_CMD_STRIPLIB 2162 ])# _LT_CMD_STRIPLIB
2234 2163
2235 2164
2236 # _LT_PREPARE_MUNGE_PATH_LIST
2237 # ---------------------------
2238 # Make sure func_munge_path_list() is defined correctly.
2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2240 [[# func_munge_path_list VARIABLE PATH
2241 # -----------------------------------
2242 # VARIABLE is name of variable containing _space_ separated list of
2243 # directories to be munged by the contents of PATH, which is string
2244 # having a format:
2245 # "DIR[:DIR]:"
2246 # string "DIR[ DIR]" will be prepended to VARIABLE
2247 # ":DIR[:DIR]"
2248 # string "DIR[ DIR]" will be appended to VARIABLE
2249 # "DIRP[:DIRP]::[DIRA:]DIRA"
2250 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2251 # "DIRA[ DIRA]" will be appended to VARIABLE
2252 # "DIR[:DIR]"
2253 # VARIABLE will be replaced by "DIR[ DIR]"
2254 func_munge_path_list ()
2255 {
2256 case x@S|@2 in
2257 x)
2258 ;;
2259 *:)
2260 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2261 ;;
2262 x:*)
2263 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2264 ;;
2265 *::*)
2266 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'` \"
2267 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1 \"
2268 ;;
2269 *)
2270 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2271 ;;
2272 esac
2273 }
2274 ]])# _LT_PREPARE_PATH_LIST
2275
2276
2277 # _LT_SYS_DYNAMIC_LINKER([TAG]) 2165 # _LT_SYS_DYNAMIC_LINKER([TAG])
2278 # ----------------------------- 2166 # -----------------------------
2279 # PORTME Fill in your ld.so characteristics 2167 # PORTME Fill in your ld.so characteristics
2280 m4_defun([_LT_SYS_DYNAMIC_LINKER], 2168 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2281 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 2169 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2282 m4_require([_LT_DECL_EGREP])dnl 2170 m4_require([_LT_DECL_EGREP])dnl
2283 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2171 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2284 m4_require([_LT_DECL_OBJDUMP])dnl 2172 m4_require([_LT_DECL_OBJDUMP])dnl
2285 m4_require([_LT_DECL_SED])dnl 2173 m4_require([_LT_DECL_SED])dnl
2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2174 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2288 AC_MSG_CHECKING([dynamic linker characteristics]) 2175 AC_MSG_CHECKING([dynamic linker characteristics])
2289 m4_if([$1], 2176 m4_if([$1],
2290 [], [ 2177 [], [
2291 if test yes = "$GCC"; then 2178 if test "$GCC" = yes; then
2292 case $host_os in 2179 case $host_os in
2293 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2180 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2294 *) lt_awk_arg='/^libraries:/' ;; 2181 *) lt_awk_arg="/^libraries:/" ;;
2295 esac 2182 esac
2296 case $host_os in 2183 case $host_os in
2297 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2298 *) lt_sed_strip_eq='s|=/|/|g' ;; 2185 *) lt_sed_strip_eq="s,=/,/,g" ;;
2299 esac 2186 esac
2300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e $lt_sed_strip_eq` 2187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e $lt_sed_strip_eq`
2301 case $lt_search_path_spec in 2188 case $lt_search_path_spec in
2302 *\;*) 2189 *\;*)
2303 # if the path contains ";" then we assume it to be the separator 2190 # if the path contains ";" then we assume it to be the separator
2304 # otherwise default to the standard path separator (i.e. ":") - it is 2191 # otherwise default to the standard path separator (i.e. ":") - it is
2305 # assumed that no part of a normal pathname contains ";" but that should 2192 # assumed that no part of a normal pathname contains ";" but that should
2306 # okay in the real world where ";" in dirpaths is itself problematic. 2193 # okay in the real world where ";" in dirpaths is itself problematic.
2307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2308 ;; 2195 ;;
2309 *) 2196 *)
2310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2311 ;; 2198 ;;
2312 esac 2199 esac
2313 # Ok, now we have the path, separated by spaces, we can step through it 2200 # Ok, now we have the path, separated by spaces, we can step through it
2314 # and add multilib dir if necessary... 2201 # and add multilib dir if necessary.
2315 lt_tmp_lt_search_path_spec= 2202 lt_tmp_lt_search_path_spec=
2316 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/ dev/null` 2203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null`
2317 # ...but if some path component already ends with the multilib dir we assume
2318 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2319 case "$lt_multi_os_dir; $lt_search_path_spec " in
2320 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2321 lt_multi_os_dir=
2322 ;;
2323 esac
2324 for lt_sys_path in $lt_search_path_spec; do 2204 for lt_sys_path in $lt_search_path_spec; do
2325 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_mu lti_os_dir" 2206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir"
2327 elif test -n "$lt_multi_os_dir"; then 2207 else
2328 test -d "$lt_sys_path" && \ 2208 test -d "$lt_sys_path" && \
2329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2330 fi 2210 fi
2331 done 2211 done
2332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2333 BEGIN {RS = " "; FS = "/|\n";} { 2213 BEGIN {RS=" "; FS="/|\n";} {
2334 lt_foo = ""; 2214 lt_foo="";
2335 lt_count = 0; 2215 lt_count=0;
2336 for (lt_i = NF; lt_i > 0; lt_i--) { 2216 for (lt_i = NF; lt_i > 0; lt_i--) {
2337 if ($lt_i != "" && $lt_i != ".") { 2217 if ($lt_i != "" && $lt_i != ".") {
2338 if ($lt_i == "..") { 2218 if ($lt_i == "..") {
2339 lt_count++; 2219 lt_count++;
2340 } else { 2220 } else {
2341 if (lt_count == 0) { 2221 if (lt_count == 0) {
2342 lt_foo = "/" $lt_i lt_foo; 2222 lt_foo="/" $lt_i lt_foo;
2343 } else { 2223 } else {
2344 lt_count--; 2224 lt_count--;
2345 } 2225 }
2346 } 2226 }
2347 } 2227 }
2348 } 2228 }
2349 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2229 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2350 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2230 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2351 }'` 2231 }'`
2352 # AWK program above erroneously prepends '/' to C:/dos/paths 2232 # AWK program above erroneously prepends '/' to C:/dos/paths
2353 # for these hosts. 2233 # for these hosts.
2354 case $host_os in 2234 case $host_os in
2355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2356 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 2236 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2357 esac 2237 esac
2358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2359 else 2239 else
2360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2361 fi]) 2241 fi])
2362 library_names_spec= 2242 library_names_spec=
2363 libname_spec='lib$name' 2243 libname_spec='lib$name'
2364 soname_spec= 2244 soname_spec=
2365 shrext_cmds=.so 2245 shrext_cmds=".so"
2366 postinstall_cmds= 2246 postinstall_cmds=
2367 postuninstall_cmds= 2247 postuninstall_cmds=
2368 finish_cmds= 2248 finish_cmds=
2369 finish_eval= 2249 finish_eval=
2370 shlibpath_var= 2250 shlibpath_var=
2371 shlibpath_overrides_runpath=unknown 2251 shlibpath_overrides_runpath=unknown
2372 version_type=none 2252 version_type=none
2373 dynamic_linker="$host_os ld.so" 2253 dynamic_linker="$host_os ld.so"
2374 sys_lib_dlsearch_path_spec="/lib /usr/lib" 2254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2375 need_lib_prefix=unknown 2255 need_lib_prefix=unknown
2376 hardcode_into_libs=no 2256 hardcode_into_libs=no
2377 2257
2378 # when you set need_version to no, make sure it does not cause -set_version 2258 # when you set need_version to no, make sure it does not cause -set_version
2379 # flags to be left without arguments 2259 # flags to be left without arguments
2380 need_version=unknown 2260 need_version=unknown
2381 2261
2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2383 [User-defined run-time library search path.])
2384
2385 case $host_os in 2262 case $host_os in
2386 aix3*) 2263 aix3*)
2387 version_type=linux # correct to gnu/linux during the next big refactor 2264 version_type=linux # correct to gnu/linux during the next big refactor
2388 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 2265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2389 shlibpath_var=LIBPATH 2266 shlibpath_var=LIBPATH
2390 2267
2391 # AIX 3 has no versioning support, so we append a major version to the name. 2268 # AIX 3 has no versioning support, so we append a major version to the name.
2392 soname_spec='$libname$release$shared_ext$major' 2269 soname_spec='${libname}${release}${shared_ext}$major'
2393 ;; 2270 ;;
2394 2271
2395 aix[[4-9]]*) 2272 aix[[4-9]]*)
2396 version_type=linux # correct to gnu/linux during the next big refactor 2273 version_type=linux # correct to gnu/linux during the next big refactor
2397 need_lib_prefix=no 2274 need_lib_prefix=no
2398 need_version=no 2275 need_version=no
2399 hardcode_into_libs=yes 2276 hardcode_into_libs=yes
2400 if test ia64 = "$host_cpu"; then 2277 if test "$host_cpu" = ia64; then
2401 # AIX 5 supports IA64 2278 # AIX 5 supports IA64
2402 library_names_spec='$libname$release$shared_ext$major $libname$release$share d_ext$versuffix $libname$shared_ext' 2279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
2403 shlibpath_var=LD_LIBRARY_PATH 2280 shlibpath_var=LD_LIBRARY_PATH
2404 else 2281 else
2405 # With GCC up to 2.95.x, collect2 would create an import file 2282 # With GCC up to 2.95.x, collect2 would create an import file
2406 # for dependence libraries. The import file would start with 2283 # for dependence libraries. The import file would start with
2407 # the line '#! .'. This would cause the generated library to 2284 # the line `#! .'. This would cause the generated library to
2408 # depend on '.', always an invalid library. This was fixed in 2285 # depend on `.', always an invalid library. This was fixed in
2409 # development snapshots of GCC prior to 3.0. 2286 # development snapshots of GCC prior to 3.0.
2410 case $host_os in 2287 case $host_os in
2411 aix4 | aix4.[[01]] | aix4.[[01]].*) 2288 aix4 | aix4.[[01]] | aix4.[[01]].*)
2412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2413 echo ' yes ' 2290 echo ' yes '
2414 » echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 2291 » echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2415 : 2292 :
2416 else 2293 else
2417 can_build_shared=no 2294 can_build_shared=no
2418 fi 2295 fi
2419 ;; 2296 ;;
2420 esac 2297 esac
2421 # Using Import Files as archive members, it is possible to support 2298 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
2422 # filename-based versioning of shared library archives on AIX. While
2423 # this would work for both with and without runtime linking, it will
2424 # prevent static linking of such archives. So we do filename-based
2425 # shared library versioning with .so extension only, which is used
2426 # when both runtime linking and shared linking is enabled.
2427 # Unfortunately, runtime linking may impact performance, so we do
2428 # not want this to be the default eventually. Also, we use the
2429 # versioned .so libs for executables only if there is the -brtl
2430 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2431 # To allow for filename-based versioning support, we need to create
2432 # libNAME.so.V as an archive file, containing:
2433 # *) an Import File, referring to the versioned filename of the
2434 # archive as well as the shared archive member, telling the
2435 # bitwidth (32 or 64) of that shared object, and providing the
2436 # list of exported symbols of that shared object, eventually
2437 # decorated with the 'weak' keyword
2438 # *) the shared object with the F_LOADONLY flag set, to really avoid
2439 # it being seen by the linker.
2440 # At run time we better use the real file rather than another symlink,
2441 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2442
2443 case $with_aix_soname,$aix_use_runtimelinking in
2444 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2445 # soname into executable. Probably we can add versioning support to 2299 # soname into executable. Probably we can add versioning support to
2446 # collect2, so additional links can be useful in future. 2300 # collect2, so additional links can be useful in future.
2447 aix,yes) # traditional libtool 2301 if test "$aix_use_runtimelinking" = yes; then
2448 dynamic_linker='AIX unversionable lib.so'
2449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2450 # instead of lib<name>.a to let people know that these are not 2303 # instead of lib<name>.a to let people know that these are not
2451 # typical AIX shared libraries. 2304 # typical AIX shared libraries.
2452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release $shared_ext$major $libname$shared_ext' 2305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
2453 ;; 2306 else
2454 aix,no) # traditional AIX only
2455 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2456 # We preserve .a as extension for shared libraries through AIX4.2 2307 # We preserve .a as extension for shared libraries through AIX4.2
2457 # and later when we are not doing run time linking. 2308 # and later when we are not doing run time linking.
2458 library_names_spec='$libname$release.a $libname.a' 2309 library_names_spec='${libname}${release}.a $libname.a'
2459 soname_spec='$libname$release$shared_ext$major' 2310 soname_spec='${libname}${release}${shared_ext}$major'
2460 ;; 2311 fi
2461 svr4,*) # full svr4 only
2462 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2464 # We do not specify a path in Import Files, so LIBPATH fires.
2465 shlibpath_overrides_runpath=yes
2466 ;;
2467 *,yes) # both, prefer svr4
2468 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]l ib.so.V[)]"
2469 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2470 # unpreferred sharedlib libNAME.a needs extra handling
2471 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripna me "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libex t" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$st riplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2472 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_ stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfi les " $odir/$func_stripname_result.$libext"'
2473 # We do not specify a path in Import Files, so LIBPATH fires.
2474 shlibpath_overrides_runpath=yes
2475 ;;
2476 *,no) # both, prefer aix
2477 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member _spec.o[)]"
2478 library_names_spec='$libname$release.a $libname.a'
2479 soname_spec='$libname$release$shared_ext$major'
2480 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra han dling
2481 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $ destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir /$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$link name"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2482 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlna me"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n" ~func_append rmfiles " $odir/$func_stripname_result.so"'
2483 ;;
2484 esac
2485 shlibpath_var=LIBPATH 2312 shlibpath_var=LIBPATH
2486 fi 2313 fi
2487 ;; 2314 ;;
2488 2315
2489 amigaos*) 2316 amigaos*)
2490 case $host_cpu in 2317 case $host_cpu in
2491 powerpc) 2318 powerpc)
2492 # Since July 2007 AmigaOS4 officially supports .so libraries. 2319 # Since July 2007 AmigaOS4 officially supports .so libraries.
2493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext' 2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
2495 ;; 2322 ;;
2496 m68k) 2323 m68k)
2497 library_names_spec='$libname.ixlibrary $libname.a' 2324 library_names_spec='$libname.ixlibrary $libname.a'
2498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu nc_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/l ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2326 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu nc_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM / sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ix library.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2500 ;; 2327 ;;
2501 esac 2328 esac
2502 ;; 2329 ;;
2503 2330
2504 beos*) 2331 beos*)
2505 library_names_spec='$libname$shared_ext' 2332 library_names_spec='${libname}${shared_ext}'
2506 dynamic_linker="$host_os ld.so" 2333 dynamic_linker="$host_os ld.so"
2507 shlibpath_var=LIBRARY_PATH 2334 shlibpath_var=LIBRARY_PATH
2508 ;; 2335 ;;
2509 2336
2510 bsdi[[45]]*) 2337 bsdi[[45]]*)
2511 version_type=linux # correct to gnu/linux during the next big refactor 2338 version_type=linux # correct to gnu/linux during the next big refactor
2512 need_version=no 2339 need_version=no
2513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2514 soname_spec='$libname$release$shared_ext$major' 2341 soname_spec='${libname}${release}${shared_ext}$major'
2515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2516 shlibpath_var=LD_LIBRARY_PATH 2343 shlibpath_var=LD_LIBRARY_PATH
2517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib" 2344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
2518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2519 # the default ld.so.conf also contains /usr/contrib/lib and 2346 # the default ld.so.conf also contains /usr/contrib/lib and
2520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2521 # libtool to hard-code these into programs 2348 # libtool to hard-code these into programs
2522 ;; 2349 ;;
2523 2350
2524 cygwin* | mingw* | pw32* | cegcc*) 2351 cygwin* | mingw* | pw32* | cegcc*)
2525 version_type=windows 2352 version_type=windows
2526 shrext_cmds=.dll 2353 shrext_cmds=".dll"
2527 need_version=no 2354 need_version=no
2528 need_lib_prefix=no 2355 need_lib_prefix=no
2529 2356
2530 case $GCC,$cc_basename in 2357 case $GCC,$cc_basename in
2531 yes,*) 2358 yes,*)
2532 # gcc 2359 # gcc
2533 library_names_spec='$libname.dll.a' 2360 library_names_spec='$libname.dll.a'
2534 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2535 postinstall_cmds='base_file=`basename \$file`~ 2362 postinstall_cmds='base_file=`basename \${file}`~
2536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''` ~ 2363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
2537 dldir=$destdir/`dirname \$dlpath`~ 2364 dldir=$destdir/`dirname \$dlpath`~
2538 test -d \$dldir || mkdir -p \$dldir~ 2365 test -d \$dldir || mkdir -p \$dldir~
2539 $install_prog $dir/$dlname \$dldir/$dlname~ 2366 $install_prog $dir/$dlname \$dldir/$dlname~
2540 chmod a+x \$dldir/$dlname~ 2367 chmod a+x \$dldir/$dlname~
2541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2543 fi' 2370 fi'
2544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2545 dlpath=$dir/\$dldll~ 2372 dlpath=$dir/\$dldll~
2546 $RM \$dlpath' 2373 $RM \$dlpath'
2547 shlibpath_overrides_runpath=yes 2374 shlibpath_overrides_runpath=yes
2548 2375
2549 case $host_os in 2376 case $host_os in
2550 cygwin*) 2377 cygwin*)
2551 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2552 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED - e 's/[[.]]/-/g'`$versuffix$shared_ext' 2379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2553 m4_if([$1], [],[ 2380 m4_if([$1], [],[
2554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2555 ;; 2382 ;;
2556 mingw* | cegcc*) 2383 mingw* | cegcc*)
2557 # MinGW DLLs use traditional 'lib' prefix 2384 # MinGW DLLs use traditional 'lib' prefix
2558 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$sha red_ext' 2385 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi x}${shared_ext}'
2559 ;; 2386 ;;
2560 pw32*) 2387 pw32*)
2561 # pw32 DLLs use 'pw' prefix rather than 'lib' 2388 # pw32 DLLs use 'pw' prefix rather than 'lib'
2562 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2563 ;; 2390 ;;
2564 esac 2391 esac
2565 dynamic_linker='Win32 ld.exe' 2392 dynamic_linker='Win32 ld.exe'
2566 ;; 2393 ;;
2567 2394
2568 *,cl*) 2395 *,cl*)
2569 # Native MSVC 2396 # Native MSVC
2570 libname_spec='$name' 2397 libname_spec='$name'
2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$share d_ext' 2398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix} ${shared_ext}'
2572 library_names_spec='$libname.dll.lib' 2399 library_names_spec='${libname}.dll.lib'
2573 2400
2574 case $build_os in 2401 case $build_os in
2575 mingw*) 2402 mingw*)
2576 sys_lib_search_path_spec= 2403 sys_lib_search_path_spec=
2577 lt_save_ifs=$IFS 2404 lt_save_ifs=$IFS
2578 IFS=';' 2405 IFS=';'
2579 for lt_path in $LIB 2406 for lt_path in $LIB
2580 do 2407 do
2581 IFS=$lt_save_ifs 2408 IFS=$lt_save_ifs
2582 # Let DOS variable expansion print the short 8.3 style file name. 2409 # Let DOS variable expansion print the short 8.3 style file name.
2583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 2410 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 2411 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2585 done 2412 done
2586 IFS=$lt_save_ifs 2413 IFS=$lt_save_ifs
2587 # Convert to MSYS style. 2414 # Convert to MSYS style.
2588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\ \\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\ \\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2589 ;; 2416 ;;
2590 cygwin*) 2417 cygwin*)
2591 # Convert to unix form, then to dos form, then back to unix form 2418 # Convert to unix form, then to dos form, then back to unix form
2592 # but this time dos style (no spaces!) so that the unix form looks 2419 # but this time dos style (no spaces!) so that the unix form looks
2593 # like /cygdrive/c/PROGRA~1:/cygdr... 2420 # like /cygdrive/c/PROGRA~1:/cygdr...
2594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec " | $SED -e "s/$PATH_SEPARATOR/ /g"` 2423 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec " | $SED -e "s/$PATH_SEPARATOR/ /g"`
2597 ;; 2424 ;;
2598 *) 2425 *)
2599 sys_lib_search_path_spec=$LIB 2426 sys_lib_search_path_spec="$LIB"
2600 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t hen 2427 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t hen
2601 # It is most probably a Windows format PATH. 2428 # It is most probably a Windows format PATH.
2602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'` 2429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
2603 else 2430 else
2604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"` 2431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
2605 fi 2432 fi
2606 # FIXME: find the short name or the path components, as spaces are 2433 # FIXME: find the short name or the path components, as spaces are
2607 # common. (e.g. "Program Files" -> "PROGRA~1") 2434 # common. (e.g. "Program Files" -> "PROGRA~1")
2608 ;; 2435 ;;
2609 esac 2436 esac
2610 2437
2611 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2612 postinstall_cmds='base_file=`basename \$file`~ 2439 postinstall_cmds='base_file=`basename \${file}`~
2613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''` ~ 2440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
2614 dldir=$destdir/`dirname \$dlpath`~ 2441 dldir=$destdir/`dirname \$dlpath`~
2615 test -d \$dldir || mkdir -p \$dldir~ 2442 test -d \$dldir || mkdir -p \$dldir~
2616 $install_prog $dir/$dlname \$dldir/$dlname' 2443 $install_prog $dir/$dlname \$dldir/$dlname'
2617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2618 dlpath=$dir/\$dldll~ 2445 dlpath=$dir/\$dldll~
2619 $RM \$dlpath' 2446 $RM \$dlpath'
2620 shlibpath_overrides_runpath=yes 2447 shlibpath_overrides_runpath=yes
2621 dynamic_linker='Win32 link.exe' 2448 dynamic_linker='Win32 link.exe'
2622 ;; 2449 ;;
2623 2450
2624 *) 2451 *)
2625 # Assume MSVC wrapper 2452 # Assume MSVC wrapper
2626 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffi x$shared_ext $libname.lib' 2453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver suffix}${shared_ext} $libname.lib'
2627 dynamic_linker='Win32 ld.exe' 2454 dynamic_linker='Win32 ld.exe'
2628 ;; 2455 ;;
2629 esac 2456 esac
2630 # FIXME: first we should search . and the directory the executable is in 2457 # FIXME: first we should search . and the directory the executable is in
2631 shlibpath_var=PATH 2458 shlibpath_var=PATH
2632 ;; 2459 ;;
2633 2460
2634 darwin* | rhapsody*) 2461 darwin* | rhapsody*)
2635 dynamic_linker="$host_os dyld" 2462 dynamic_linker="$host_os dyld"
2636 version_type=darwin 2463 version_type=darwin
2637 need_lib_prefix=no 2464 need_lib_prefix=no
2638 need_version=no 2465 need_version=no
2639 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ ext'
2640 soname_spec='$libname$release$major$shared_ext' 2467 soname_spec='${libname}${release}${major}$shared_ext'
2641 shlibpath_overrides_runpath=yes 2468 shlibpath_overrides_runpath=yes
2642 shlibpath_var=DYLD_LIBRARY_PATH 2469 shlibpath_var=DYLD_LIBRARY_PATH
2643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2644 m4_if([$1], [],[ 2471 m4_if([$1], [],[
2645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2647 ;; 2474 ;;
2648 2475
2649 dgux*) 2476 dgux*)
2650 version_type=linux # correct to gnu/linux during the next big refactor 2477 version_type=linux # correct to gnu/linux during the next big refactor
2651 need_lib_prefix=no 2478 need_lib_prefix=no
2652 need_version=no 2479 need_version=no
2653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
2654 soname_spec='$libname$release$shared_ext$major' 2481 soname_spec='${libname}${release}${shared_ext}$major'
2655 shlibpath_var=LD_LIBRARY_PATH 2482 shlibpath_var=LD_LIBRARY_PATH
2656 ;; 2483 ;;
2657 2484
2658 freebsd* | dragonfly*) 2485 freebsd* | dragonfly*)
2659 # DragonFly does not have aout. When/if they implement a new 2486 # DragonFly does not have aout. When/if they implement a new
2660 # versioning mechanism, adjust this. 2487 # versioning mechanism, adjust this.
2661 if test -x /usr/bin/objformat; then 2488 if test -x /usr/bin/objformat; then
2662 objformat=`/usr/bin/objformat` 2489 objformat=`/usr/bin/objformat`
2663 else 2490 else
2664 case $host_os in 2491 case $host_os in
2665 freebsd[[23]].*) objformat=aout ;; 2492 freebsd[[23]].*) objformat=aout ;;
2666 *) objformat=elf ;; 2493 *) objformat=elf ;;
2667 esac 2494 esac
2668 fi 2495 fi
2669 version_type=freebsd-$objformat 2496 version_type=freebsd-$objformat
2670 case $version_type in 2497 case $version_type in
2671 freebsd-elf*) 2498 freebsd-elf*)
2672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release $shared_ext$major $libname$shared_ext' 2499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
2673 soname_spec='$libname$release$shared_ext$major'
2674 need_version=no 2500 need_version=no
2675 need_lib_prefix=no 2501 need_lib_prefix=no
2676 ;; 2502 ;;
2677 freebsd-*) 2503 freebsd-*)
2678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ ext$versuffix' 2504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
2679 need_version=yes 2505 need_version=yes
2680 ;; 2506 ;;
2681 esac 2507 esac
2682 shlibpath_var=LD_LIBRARY_PATH 2508 shlibpath_var=LD_LIBRARY_PATH
2683 case $host_os in 2509 case $host_os in
2684 freebsd2.*) 2510 freebsd2.*)
2685 shlibpath_overrides_runpath=yes 2511 shlibpath_overrides_runpath=yes
2686 ;; 2512 ;;
2687 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2513 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2688 shlibpath_overrides_runpath=yes 2514 shlibpath_overrides_runpath=yes
2689 hardcode_into_libs=yes 2515 hardcode_into_libs=yes
2690 ;; 2516 ;;
2691 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2517 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2692 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2518 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2693 shlibpath_overrides_runpath=no 2519 shlibpath_overrides_runpath=no
2694 hardcode_into_libs=yes 2520 hardcode_into_libs=yes
2695 ;; 2521 ;;
2696 *) # from 4.6 on, and DragonFly 2522 *) # from 4.6 on, and DragonFly
2697 shlibpath_overrides_runpath=yes 2523 shlibpath_overrides_runpath=yes
2698 hardcode_into_libs=yes 2524 hardcode_into_libs=yes
2699 ;; 2525 ;;
2700 esac 2526 esac
2701 ;; 2527 ;;
2702 2528
2703 haiku*) 2529 haiku*)
2704 version_type=linux # correct to gnu/linux during the next big refactor 2530 version_type=linux # correct to gnu/linux during the next big refactor
2705 need_lib_prefix=no 2531 need_lib_prefix=no
2706 need_version=no 2532 need_version=no
2707 dynamic_linker="$host_os runtime_loader" 2533 dynamic_linker="$host_os runtime_loader"
2708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
2709 soname_spec='$libname$release$shared_ext$major' 2535 soname_spec='${libname}${release}${shared_ext}$major'
2710 shlibpath_var=LIBRARY_PATH 2536 shlibpath_var=LIBRARY_PATH
2711 shlibpath_overrides_runpath=no 2537 shlibpath_overrides_runpath=yes
2712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste m/lib' 2538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste m/lib'
2713 hardcode_into_libs=yes 2539 hardcode_into_libs=yes
2714 ;; 2540 ;;
2715 2541
2716 hpux9* | hpux10* | hpux11*) 2542 hpux9* | hpux10* | hpux11*)
2717 # Give a soname corresponding to the major version so that dld.sl refuses to 2543 # Give a soname corresponding to the major version so that dld.sl refuses to
2718 # link against other versions. 2544 # link against other versions.
2719 version_type=sunos 2545 version_type=sunos
2720 need_lib_prefix=no 2546 need_lib_prefix=no
2721 need_version=no 2547 need_version=no
2722 case $host_cpu in 2548 case $host_cpu in
2723 ia64*) 2549 ia64*)
2724 shrext_cmds='.so' 2550 shrext_cmds='.so'
2725 hardcode_into_libs=yes 2551 hardcode_into_libs=yes
2726 dynamic_linker="$host_os dld.so" 2552 dynamic_linker="$host_os dld.so"
2727 shlibpath_var=LD_LIBRARY_PATH 2553 shlibpath_var=LD_LIBRARY_PATH
2728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext' 2555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
2730 soname_spec='$libname$release$shared_ext$major' 2556 soname_spec='${libname}${release}${shared_ext}$major'
2731 if test 32 = "$HPUX_IA64_MODE"; then 2557 if test "X$HPUX_IA64_MODE" = X32; then
2732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib" 2558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
2733 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2734 else 2559 else
2735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2736 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2737 fi 2561 fi
2562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2738 ;; 2563 ;;
2739 hppa*64*) 2564 hppa*64*)
2740 shrext_cmds='.sl' 2565 shrext_cmds='.sl'
2741 hardcode_into_libs=yes 2566 hardcode_into_libs=yes
2742 dynamic_linker="$host_os dld.sl" 2567 dynamic_linker="$host_os dld.sl"
2743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext' 2570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
2746 soname_spec='$libname$release$shared_ext$major' 2571 soname_spec='${libname}${release}${shared_ext}$major'
2747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2749 ;; 2574 ;;
2750 *) 2575 *)
2751 shrext_cmds='.sl' 2576 shrext_cmds='.sl'
2752 dynamic_linker="$host_os dld.sl" 2577 dynamic_linker="$host_os dld.sl"
2753 shlibpath_var=SHLIB_PATH 2578 shlibpath_var=SHLIB_PATH
2754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext' 2580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
2756 soname_spec='$libname$release$shared_ext$major' 2581 soname_spec='${libname}${release}${shared_ext}$major'
2757 ;; 2582 ;;
2758 esac 2583 esac
2759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2760 postinstall_cmds='chmod 555 $lib' 2585 postinstall_cmds='chmod 555 $lib'
2761 # or fails outright, so override atomically: 2586 # or fails outright, so override atomically:
2762 install_override_mode=555 2587 install_override_mode=555
2763 ;; 2588 ;;
2764 2589
2765 interix[[3-9]]*) 2590 interix[[3-9]]*)
2766 version_type=linux # correct to gnu/linux during the next big refactor 2591 version_type=linux # correct to gnu/linux during the next big refactor
2767 need_lib_prefix=no 2592 need_lib_prefix=no
2768 need_version=no 2593 need_version=no
2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
2770 soname_spec='$libname$release$shared_ext$major' 2595 soname_spec='${libname}${release}${shared_ext}$major'
2771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2772 shlibpath_var=LD_LIBRARY_PATH 2597 shlibpath_var=LD_LIBRARY_PATH
2773 shlibpath_overrides_runpath=no 2598 shlibpath_overrides_runpath=no
2774 hardcode_into_libs=yes 2599 hardcode_into_libs=yes
2775 ;; 2600 ;;
2776 2601
2777 irix5* | irix6* | nonstopux*) 2602 irix5* | irix6* | nonstopux*)
2778 case $host_os in 2603 case $host_os in
2779 nonstopux*) version_type=nonstopux ;; 2604 nonstopux*) version_type=nonstopux ;;
2780 *) 2605 *)
2781 » if test yes = "$lt_cv_prog_gnu_ld"; then 2606 » if test "$lt_cv_prog_gnu_ld" = yes; then
2782 version_type=linux # correct to gnu/linux during the next big re factor 2607 version_type=linux # correct to gnu/linux during the next big re factor
2783 else 2608 else
2784 version_type=irix 2609 version_type=irix
2785 fi ;; 2610 fi ;;
2786 esac 2611 esac
2787 need_lib_prefix=no 2612 need_lib_prefix=no
2788 need_version=no 2613 need_version=no
2789 soname_spec='$libname$release$shared_ext$major' 2614 soname_spec='${libname}${release}${shared_ext}$major'
2790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$release$shared_ext $libname$shared_ext' 2615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
2791 case $host_os in 2616 case $host_os in
2792 irix5* | nonstopux*) 2617 irix5* | nonstopux*)
2793 libsuff= shlibsuff= 2618 libsuff= shlibsuff=
2794 ;; 2619 ;;
2795 *) 2620 *)
2796 case $LD in # libtool.m4 will add one of these switches to LD 2621 case $LD in # libtool.m4 will add one of these switches to LD
2797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2798 libsuff= shlibsuff= libmagic=32-bit;; 2623 libsuff= shlibsuff= libmagic=32-bit;;
2799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2800 libsuff=32 shlibsuff=N32 libmagic=N32;; 2625 libsuff=32 shlibsuff=N32 libmagic=N32;;
2801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2802 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2803 *) libsuff= shlibsuff= libmagic=never-match;; 2628 *) libsuff= shlibsuff= libmagic=never-match;;
2804 esac 2629 esac
2805 ;; 2630 ;;
2806 esac 2631 esac
2807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2808 shlibpath_overrides_runpath=no 2633 shlibpath_overrides_runpath=no
2809 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff " 2634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
2810 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 2635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2811 hardcode_into_libs=yes 2636 hardcode_into_libs=yes
2812 ;; 2637 ;;
2813 2638
2814 # No shared lib support for Linux oldld, aout, or coff. 2639 # No shared lib support for Linux oldld, aout, or coff.
2815 linux*oldld* | linux*aout* | linux*coff*) 2640 linux*oldld* | linux*aout* | linux*coff*)
2816 dynamic_linker=no 2641 dynamic_linker=no
2817 ;; 2642 ;;
2818 2643
2819 linux*android*)
2820 version_type=none # Android doesn't support versioned libraries.
2821 need_lib_prefix=no
2822 need_version=no
2823 library_names_spec='$libname$release$shared_ext'
2824 soname_spec='$libname$release$shared_ext'
2825 finish_cmds=
2826 shlibpath_var=LD_LIBRARY_PATH
2827 shlibpath_overrides_runpath=yes
2828
2829 # This implies no fast_install, which is unacceptable.
2830 # Some rework will be needed to allow for fast_install
2831 # before this can be enabled.
2832 hardcode_into_libs=yes
2833
2834 dynamic_linker='Android linker'
2835 # Don't embed -rpath directories since the linker doesn't support them.
2836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2837 ;;
2838
2839 # This must be glibc/ELF. 2644 # This must be glibc/ELF.
2840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 2645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2841 version_type=linux # correct to gnu/linux during the next big refactor 2646 version_type=linux # correct to gnu/linux during the next big refactor
2842 need_lib_prefix=no 2647 need_lib_prefix=no
2843 need_version=no 2648 need_version=no
2844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2845 soname_spec='$libname$release$shared_ext$major' 2650 soname_spec='${libname}${release}${shared_ext}$major'
2846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2847 shlibpath_var=LD_LIBRARY_PATH 2652 shlibpath_var=LD_LIBRARY_PATH
2848 shlibpath_overrides_runpath=no 2653 shlibpath_overrides_runpath=no
2849 2654
2850 # Some binutils ld are patched to set DT_RUNPATH 2655 # Some binutils ld are patched to set DT_RUNPATH
2851 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2656 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2852 [lt_cv_shlibpath_overrides_runpath=no 2657 [lt_cv_shlibpath_overrides_runpath=no
2853 save_LDFLAGS=$LDFLAGS 2658 save_LDFLAGS=$LDFLAGS
2854 save_libdir=$libdir 2659 save_libdir=$libdir
2855 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2660 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2856 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2661 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2857 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2662 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2858 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$li bdir" >/dev/null], 2663 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$li bdir" >/dev/null],
2859 [lt_cv_shlibpath_overrides_runpath=yes])]) 2664 [lt_cv_shlibpath_overrides_runpath=yes])])
2860 LDFLAGS=$save_LDFLAGS 2665 LDFLAGS=$save_LDFLAGS
2861 libdir=$save_libdir 2666 libdir=$save_libdir
2862 ]) 2667 ])
2863 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2864 2669
2865 # This implies no fast_install, which is unacceptable. 2670 # This implies no fast_install, which is unacceptable.
2866 # Some rework will be needed to allow for fast_install 2671 # Some rework will be needed to allow for fast_install
2867 # before this can be enabled. 2672 # before this can be enabled.
2868 hardcode_into_libs=yes 2673 hardcode_into_libs=yes
2869 2674
2870 # Add ABI-specific directories to the system library path. 2675 # Append ld.so.conf contents to the search path
2871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2872
2873 # Ideally, we could use ldconfig to report *all* directores which are
2874 # searched for libraries, however this is still not possible. Aside from not
2875 # being certain /sbin/ldconfig is available, command
2876 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2877 # even though it is searched at run-time. Try to do the best guess by
2878 # appending ld.so.conf contents (and includes) to the search path.
2879 if test -f /etc/ld.so.conf; then 2676 if test -f /etc/ld.so.conf; then
2880 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' ' '` 2677 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' ' '`
2881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 2678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2882 fi 2679 fi
2883 2680
2884 # We used to test for /lib/ld.so.1 and disable shared libraries on 2681 # We used to test for /lib/ld.so.1 and disable shared libraries on
2885 # powerpc, because MkLinux only supported shared libraries with the 2682 # powerpc, because MkLinux only supported shared libraries with the
2886 # GNU dynamic linker. Since this was broken with cross compilers, 2683 # GNU dynamic linker. Since this was broken with cross compilers,
2887 # most powerpc-linux boxes support dynamic linking these days and 2684 # most powerpc-linux boxes support dynamic linking these days and
2888 # people can always --disable-shared, the test was removed, and we 2685 # people can always --disable-shared, the test was removed, and we
2889 # assume the GNU/Linux dynamic linker is in use. 2686 # assume the GNU/Linux dynamic linker is in use.
2890 dynamic_linker='GNU/Linux ld.so' 2687 dynamic_linker='GNU/Linux ld.so'
2891 ;; 2688 ;;
2892 2689
2690 netbsdelf*-gnu)
2691 version_type=linux
2692 need_lib_prefix=no
2693 need_version=no
2694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
2695 soname_spec='${libname}${release}${shared_ext}$major'
2696 shlibpath_var=LD_LIBRARY_PATH
2697 shlibpath_overrides_runpath=no
2698 hardcode_into_libs=yes
2699 dynamic_linker='NetBSD ld.elf_so'
2700 ;;
2701
2893 netbsd*) 2702 netbsd*)
2894 version_type=sunos 2703 version_type=sunos
2895 need_lib_prefix=no 2704 need_lib_prefix=no
2896 need_version=no 2705 need_version=no
2897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ex t$versuffix' 2707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
2899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2900 dynamic_linker='NetBSD (a.out) ld.so' 2709 dynamic_linker='NetBSD (a.out) ld.so'
2901 else 2710 else
2902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext' 2711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
2903 soname_spec='$libname$release$shared_ext$major' 2712 soname_spec='${libname}${release}${shared_ext}$major'
2904 dynamic_linker='NetBSD ld.elf_so' 2713 dynamic_linker='NetBSD ld.elf_so'
2905 fi 2714 fi
2906 shlibpath_var=LD_LIBRARY_PATH 2715 shlibpath_var=LD_LIBRARY_PATH
2907 shlibpath_overrides_runpath=yes 2716 shlibpath_overrides_runpath=yes
2908 hardcode_into_libs=yes 2717 hardcode_into_libs=yes
2909 ;; 2718 ;;
2910 2719
2911 newsos6) 2720 newsos6)
2912 version_type=linux # correct to gnu/linux during the next big refactor 2721 version_type=linux # correct to gnu/linux during the next big refactor
2913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2914 shlibpath_var=LD_LIBRARY_PATH 2723 shlibpath_var=LD_LIBRARY_PATH
2915 shlibpath_overrides_runpath=yes 2724 shlibpath_overrides_runpath=yes
2916 ;; 2725 ;;
2917 2726
2918 *nto* | *qnx*) 2727 *nto* | *qnx*)
2919 version_type=qnx 2728 version_type=qnx
2920 need_lib_prefix=no 2729 need_lib_prefix=no
2921 need_version=no 2730 need_version=no
2922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2923 soname_spec='$libname$release$shared_ext$major' 2732 soname_spec='${libname}${release}${shared_ext}$major'
2924 shlibpath_var=LD_LIBRARY_PATH 2733 shlibpath_var=LD_LIBRARY_PATH
2925 shlibpath_overrides_runpath=no 2734 shlibpath_overrides_runpath=no
2926 hardcode_into_libs=yes 2735 hardcode_into_libs=yes
2927 dynamic_linker='ldqnx.so' 2736 dynamic_linker='ldqnx.so'
2928 ;; 2737 ;;
2929 2738
2930 openbsd* | bitrig*) 2739 openbsd*)
2931 version_type=sunos 2740 version_type=sunos
2932 sys_lib_dlsearch_path_spec=/usr/lib 2741 sys_lib_dlsearch_path_spec="/usr/lib"
2933 need_lib_prefix=no 2742 need_lib_prefix=no
2934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 2743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2935 need_version=no 2744 case $host_os in
2936 else 2745 openbsd3.3 | openbsd3.3.*)» need_version=yes ;;
2937 need_version=yes 2746 *)» » » » need_version=no ;;
2938 fi 2747 esac
2939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$ versuffix' 2748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
2940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2941 shlibpath_var=LD_LIBRARY_PATH 2750 shlibpath_var=LD_LIBRARY_PATH
2942 shlibpath_overrides_runpath=yes 2751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
2752 case $host_os in
2753 openbsd2.[[89]] | openbsd2.[[89]].*)
2754 » shlibpath_overrides_runpath=no
2755 » ;;
2756 *)
2757 » shlibpath_overrides_runpath=yes
2758 » ;;
2759 esac
2760 else
2761 shlibpath_overrides_runpath=yes
2762 fi
2943 ;; 2763 ;;
2944 2764
2945 os2*) 2765 os2*)
2946 libname_spec='$name' 2766 libname_spec='$name'
2947 version_type=windows 2767 shrext_cmds=".dll"
2948 shrext_cmds=.dll
2949 need_version=no
2950 need_lib_prefix=no 2768 need_lib_prefix=no
2951 # OS/2 can only load a DLL with a base name of 8 characters or less. 2769 library_names_spec='$libname${shared_ext} $libname.a'
2952 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2953 v=$($ECHO $release$versuffix | tr -d .-);
2954 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2955 $ECHO $n$v`$shared_ext'
2956 library_names_spec='${libname}_dll.$libext'
2957 dynamic_linker='OS/2 ld.exe' 2770 dynamic_linker='OS/2 ld.exe'
2958 shlibpath_var=BEGINLIBPATH 2771 shlibpath_var=LIBPATH
2959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2961 postinstall_cmds='base_file=`basename \$file`~
2962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2963 dldir=$destdir/`dirname \$dlpath`~
2964 test -d \$dldir || mkdir -p \$dldir~
2965 $install_prog $dir/$dlname \$dldir/$dlname~
2966 chmod a+x \$dldir/$dlname~
2967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2969 fi'
2970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2971 dlpath=$dir/\$dldll~
2972 $RM \$dlpath'
2973 ;; 2772 ;;
2974 2773
2975 osf3* | osf4* | osf5*) 2774 osf3* | osf4* | osf5*)
2976 version_type=osf 2775 version_type=osf
2977 need_lib_prefix=no 2776 need_lib_prefix=no
2978 need_version=no 2777 need_version=no
2979 soname_spec='$libname$release$shared_ext$major' 2778 soname_spec='${libname}${release}${shared_ext}$major'
2980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2981 shlibpath_var=LD_LIBRARY_PATH 2780 shlibpath_var=LD_LIBRARY_PATH
2982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2984 ;; 2783 ;;
2985 2784
2986 rdos*) 2785 rdos*)
2987 dynamic_linker=no 2786 dynamic_linker=no
2988 ;; 2787 ;;
2989 2788
2990 solaris*) 2789 solaris*)
2991 version_type=linux # correct to gnu/linux during the next big refactor 2790 version_type=linux # correct to gnu/linux during the next big refactor
2992 need_lib_prefix=no 2791 need_lib_prefix=no
2993 need_version=no 2792 need_version=no
2994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
2995 soname_spec='$libname$release$shared_ext$major' 2794 soname_spec='${libname}${release}${shared_ext}$major'
2996 shlibpath_var=LD_LIBRARY_PATH 2795 shlibpath_var=LD_LIBRARY_PATH
2997 shlibpath_overrides_runpath=yes 2796 shlibpath_overrides_runpath=yes
2998 hardcode_into_libs=yes 2797 hardcode_into_libs=yes
2999 # ldd complains unless libraries are executable 2798 # ldd complains unless libraries are executable
3000 postinstall_cmds='chmod +x $lib' 2799 postinstall_cmds='chmod +x $lib'
3001 ;; 2800 ;;
3002 2801
3003 sunos4*) 2802 sunos4*)
3004 version_type=sunos 2803 version_type=sunos
3005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$ versuffix' 2804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
3006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3007 shlibpath_var=LD_LIBRARY_PATH 2806 shlibpath_var=LD_LIBRARY_PATH
3008 shlibpath_overrides_runpath=yes 2807 shlibpath_overrides_runpath=yes
3009 if test yes = "$with_gnu_ld"; then 2808 if test "$with_gnu_ld" = yes; then
3010 need_lib_prefix=no 2809 need_lib_prefix=no
3011 fi 2810 fi
3012 need_version=yes 2811 need_version=yes
3013 ;; 2812 ;;
3014 2813
3015 sysv4 | sysv4.3*) 2814 sysv4 | sysv4.3*)
3016 version_type=linux # correct to gnu/linux during the next big refactor 2815 version_type=linux # correct to gnu/linux during the next big refactor
3017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
3018 soname_spec='$libname$release$shared_ext$major' 2817 soname_spec='${libname}${release}${shared_ext}$major'
3019 shlibpath_var=LD_LIBRARY_PATH 2818 shlibpath_var=LD_LIBRARY_PATH
3020 case $host_vendor in 2819 case $host_vendor in
3021 sni) 2820 sni)
3022 shlibpath_overrides_runpath=no 2821 shlibpath_overrides_runpath=no
3023 need_lib_prefix=no 2822 need_lib_prefix=no
3024 runpath_var=LD_RUN_PATH 2823 runpath_var=LD_RUN_PATH
3025 ;; 2824 ;;
3026 siemens) 2825 siemens)
3027 need_lib_prefix=no 2826 need_lib_prefix=no
3028 ;; 2827 ;;
3029 motorola) 2828 motorola)
3030 need_lib_prefix=no 2829 need_lib_prefix=no
3031 need_version=no 2830 need_version=no
3032 shlibpath_overrides_runpath=no 2831 shlibpath_overrides_runpath=no
3033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3034 ;; 2833 ;;
3035 esac 2834 esac
3036 ;; 2835 ;;
3037 2836
3038 sysv4*MP*) 2837 sysv4*MP*)
3039 if test -d /usr/nec; then 2838 if test -d /usr/nec ;then
3040 version_type=linux # correct to gnu/linux during the next big refactor 2839 version_type=linux # correct to gnu/linux during the next big refactor
3041 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$majo r $libname$shared_ext' 2840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
3042 soname_spec='$libname$shared_ext.$major' 2841 soname_spec='$libname${shared_ext}.$major'
3043 shlibpath_var=LD_LIBRARY_PATH 2842 shlibpath_var=LD_LIBRARY_PATH
3044 fi 2843 fi
3045 ;; 2844 ;;
3046 2845
3047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3048 version_type=sco 2847 version_type=freebsd-elf
3049 need_lib_prefix=no 2848 need_lib_prefix=no
3050 need_version=no 2849 need_version=no
3051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext $libname$shared_ext' 2850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
3052 soname_spec='$libname$release$shared_ext$major' 2851 soname_spec='${libname}${release}${shared_ext}$major'
3053 shlibpath_var=LD_LIBRARY_PATH 2852 shlibpath_var=LD_LIBRARY_PATH
3054 shlibpath_overrides_runpath=yes 2853 shlibpath_overrides_runpath=yes
3055 hardcode_into_libs=yes 2854 hardcode_into_libs=yes
3056 if test yes = "$with_gnu_ld"; then 2855 if test "$with_gnu_ld" = yes; then
3057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3058 else 2857 else
3059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3060 case $host_os in 2859 case $host_os in
3061 sco3.2v5*) 2860 sco3.2v5*)
3062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3063 ;; 2862 ;;
3064 esac 2863 esac
3065 fi 2864 fi
3066 sys_lib_dlsearch_path_spec='/usr/lib' 2865 sys_lib_dlsearch_path_spec='/usr/lib'
3067 ;; 2866 ;;
3068 2867
3069 tpf*) 2868 tpf*)
3070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3071 version_type=linux # correct to gnu/linux during the next big refactor 2870 version_type=linux # correct to gnu/linux during the next big refactor
3072 need_lib_prefix=no 2871 need_lib_prefix=no
3073 need_version=no 2872 need_version=no
3074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
3075 shlibpath_var=LD_LIBRARY_PATH 2874 shlibpath_var=LD_LIBRARY_PATH
3076 shlibpath_overrides_runpath=no 2875 shlibpath_overrides_runpath=no
3077 hardcode_into_libs=yes 2876 hardcode_into_libs=yes
3078 ;; 2877 ;;
3079 2878
3080 uts4*) 2879 uts4*)
3081 version_type=linux # correct to gnu/linux during the next big refactor 2880 version_type=linux # correct to gnu/linux during the next big refactor
3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext' 2881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
3083 soname_spec='$libname$release$shared_ext$major' 2882 soname_spec='${libname}${release}${shared_ext}$major'
3084 shlibpath_var=LD_LIBRARY_PATH 2883 shlibpath_var=LD_LIBRARY_PATH
3085 ;; 2884 ;;
3086 2885
3087 *) 2886 *)
3088 dynamic_linker=no 2887 dynamic_linker=no
3089 ;; 2888 ;;
3090 esac 2889 esac
3091 AC_MSG_RESULT([$dynamic_linker]) 2890 AC_MSG_RESULT([$dynamic_linker])
3092 test no = "$dynamic_linker" && can_build_shared=no 2891 test "$dynamic_linker" = no && can_build_shared=no
3093 2892
3094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3095 if test yes = "$GCC"; then 2894 if test "$GCC" = yes; then
3096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH" 2895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
3097 fi 2896 fi
3098 2897
3099 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 2898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 2899 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3101 fi 2900 fi
3102 2901 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3103 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 2902 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3105 fi 2903 fi
3106 2904
3107 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3108 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3109
3110 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3111 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3112
3113 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3114 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3115
3116 _LT_DECL([], [variables_saved_for_relink], [1], 2905 _LT_DECL([], [variables_saved_for_relink], [1],
3117 [Variables whose values should be saved in libtool wrapper scripts and 2906 [Variables whose values should be saved in libtool wrapper scripts and
3118 restored at link time]) 2907 restored at link time])
3119 _LT_DECL([], [need_lib_prefix], [0], 2908 _LT_DECL([], [need_lib_prefix], [0],
3120 [Do we need the "lib" prefix for modules?]) 2909 [Do we need the "lib" prefix for modules?])
3121 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 2910 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3122 _LT_DECL([], [version_type], [0], [Library versioning type]) 2911 _LT_DECL([], [version_type], [0], [Library versioning type])
3123 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 2912 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3124 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 2913 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3125 _LT_DECL([], [shlibpath_overrides_runpath], [0], 2914 _LT_DECL([], [shlibpath_overrides_runpath], [0],
(...skipping 12 matching lines...) Expand all
3138 [Command to use after uninstallation of a shared archive]) 2927 [Command to use after uninstallation of a shared archive])
3139 _LT_DECL([], [finish_cmds], [2], 2928 _LT_DECL([], [finish_cmds], [2],
3140 [Commands used to finish a libtool library installation in a directory]) 2929 [Commands used to finish a libtool library installation in a directory])
3141 _LT_DECL([], [finish_eval], [1], 2930 _LT_DECL([], [finish_eval], [1],
3142 [[As "finish_cmds", except a single script fragment to be evaled but 2931 [[As "finish_cmds", except a single script fragment to be evaled but
3143 not shown]]) 2932 not shown]])
3144 _LT_DECL([], [hardcode_into_libs], [0], 2933 _LT_DECL([], [hardcode_into_libs], [0],
3145 [Whether we should hardcode library paths into libraries]) 2934 [Whether we should hardcode library paths into libraries])
3146 _LT_DECL([], [sys_lib_search_path_spec], [2], 2935 _LT_DECL([], [sys_lib_search_path_spec], [2],
3147 [Compile-time system search path for libraries]) 2936 [Compile-time system search path for libraries])
3148 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 2937 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3149 [Detected run-time system search path for libraries]) 2938 [Run-time system search path for libraries])
3150 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3151 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3152 ])# _LT_SYS_DYNAMIC_LINKER 2939 ])# _LT_SYS_DYNAMIC_LINKER
3153 2940
3154 2941
3155 # _LT_PATH_TOOL_PREFIX(TOOL) 2942 # _LT_PATH_TOOL_PREFIX(TOOL)
3156 # -------------------------- 2943 # --------------------------
3157 # find a file program that can recognize shared library 2944 # find a file program which can recognize shared library
3158 AC_DEFUN([_LT_PATH_TOOL_PREFIX], 2945 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3159 [m4_require([_LT_DECL_EGREP])dnl 2946 [m4_require([_LT_DECL_EGREP])dnl
3160 AC_MSG_CHECKING([for $1]) 2947 AC_MSG_CHECKING([for $1])
3161 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2948 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3162 [case $MAGIC_CMD in 2949 [case $MAGIC_CMD in
3163 [[\\/*] | ?:[\\/]*]) 2950 [[\\/*] | ?:[\\/]*])
3164 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 2951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
3165 ;; 2952 ;;
3166 *) 2953 *)
3167 lt_save_MAGIC_CMD=$MAGIC_CMD 2954 lt_save_MAGIC_CMD="$MAGIC_CMD"
3168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 2955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3169 dnl $ac_dummy forces splitting on constant user-supplied paths. 2956 dnl $ac_dummy forces splitting on constant user-supplied paths.
3170 dnl POSIX.2 word splitting is done only on the output of word expansions, 2957 dnl POSIX.2 word splitting is done only on the output of word expansions,
3171 dnl not every word. This closes a longstanding sh security hole. 2958 dnl not every word. This closes a longstanding sh security hole.
3172 ac_dummy="m4_if([$2], , $PATH, [$2])" 2959 ac_dummy="m4_if([$2], , $PATH, [$2])"
3173 for ac_dir in $ac_dummy; do 2960 for ac_dir in $ac_dummy; do
3174 IFS=$lt_save_ifs 2961 IFS="$lt_save_ifs"
3175 test -z "$ac_dir" && ac_dir=. 2962 test -z "$ac_dir" && ac_dir=.
3176 if test -f "$ac_dir/$1"; then 2963 if test -f $ac_dir/$1; then
3177 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 2964 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3178 if test -n "$file_magic_test_file"; then 2965 if test -n "$file_magic_test_file"; then
3179 case $deplibs_check_method in 2966 case $deplibs_check_method in
3180 "file_magic "*) 2967 "file_magic "*)
3181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3182 » MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2969 » MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3184 $EGREP "$file_magic_regex" > /dev/null; then 2971 $EGREP "$file_magic_regex" > /dev/null; then
3185 : 2972 :
3186 else 2973 else
3187 cat <<_LT_EOF 1>&2 2974 cat <<_LT_EOF 1>&2
3188 2975
3189 *** Warning: the command libtool uses to detect shared libraries, 2976 *** Warning: the command libtool uses to detect shared libraries,
3190 *** $file_magic_cmd, produces output that libtool cannot recognize. 2977 *** $file_magic_cmd, produces output that libtool cannot recognize.
3191 *** The result is that libtool may fail to recognize shared libraries 2978 *** The result is that libtool may fail to recognize shared libraries
3192 *** as such. This will affect the creation of libtool libraries that 2979 *** as such. This will affect the creation of libtool libraries that
3193 *** depend on shared libraries, but programs linked with such libtool 2980 *** depend on shared libraries, but programs linked with such libtool
3194 *** libraries will work regardless of this problem. Nevertheless, you 2981 *** libraries will work regardless of this problem. Nevertheless, you
3195 *** may want to report the problem to your system manager and/or to 2982 *** may want to report the problem to your system manager and/or to
3196 *** bug-libtool@gnu.org 2983 *** bug-libtool@gnu.org
3197 2984
3198 _LT_EOF 2985 _LT_EOF
3199 fi ;; 2986 fi ;;
3200 esac 2987 esac
3201 fi 2988 fi
3202 break 2989 break
3203 fi 2990 fi
3204 done 2991 done
3205 IFS=$lt_save_ifs 2992 IFS="$lt_save_ifs"
3206 MAGIC_CMD=$lt_save_MAGIC_CMD 2993 MAGIC_CMD="$lt_save_MAGIC_CMD"
3207 ;; 2994 ;;
3208 esac]) 2995 esac])
3209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 2996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3210 if test -n "$MAGIC_CMD"; then 2997 if test -n "$MAGIC_CMD"; then
3211 AC_MSG_RESULT($MAGIC_CMD) 2998 AC_MSG_RESULT($MAGIC_CMD)
3212 else 2999 else
3213 AC_MSG_RESULT(no) 3000 AC_MSG_RESULT(no)
3214 fi 3001 fi
3215 _LT_DECL([], [MAGIC_CMD], [0], 3002 _LT_DECL([], [MAGIC_CMD], [0],
3216 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3003 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3217 ])# _LT_PATH_TOOL_PREFIX 3004 ])# _LT_PATH_TOOL_PREFIX
3218 3005
3219 # Old name: 3006 # Old name:
3220 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3007 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3221 dnl aclocal-1.4 backwards compatibility: 3008 dnl aclocal-1.4 backwards compatibility:
3222 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3009 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3223 3010
3224 3011
3225 # _LT_PATH_MAGIC 3012 # _LT_PATH_MAGIC
3226 # -------------- 3013 # --------------
3227 # find a file program that can recognize a shared library 3014 # find a file program which can recognize a shared library
3228 m4_defun([_LT_PATH_MAGIC], 3015 m4_defun([_LT_PATH_MAGIC],
3229 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3016 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3230 if test -z "$lt_cv_path_MAGIC_CMD"; then 3017 if test -z "$lt_cv_path_MAGIC_CMD"; then
3231 if test -n "$ac_tool_prefix"; then 3018 if test -n "$ac_tool_prefix"; then
3232 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3019 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3233 else 3020 else
3234 MAGIC_CMD=: 3021 MAGIC_CMD=:
3235 fi 3022 fi
3236 fi 3023 fi
3237 ])# _LT_PATH_MAGIC 3024 ])# _LT_PATH_MAGIC
3238 3025
3239 3026
3240 # LT_PATH_LD 3027 # LT_PATH_LD
3241 # ---------- 3028 # ----------
3242 # find the pathname to the GNU or non-GNU linker 3029 # find the pathname to the GNU or non-GNU linker
3243 AC_DEFUN([LT_PATH_LD], 3030 AC_DEFUN([LT_PATH_LD],
3244 [AC_REQUIRE([AC_PROG_CC])dnl 3031 [AC_REQUIRE([AC_PROG_CC])dnl
3245 AC_REQUIRE([AC_CANONICAL_HOST])dnl 3032 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3246 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3033 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3247 m4_require([_LT_DECL_SED])dnl 3034 m4_require([_LT_DECL_SED])dnl
3248 m4_require([_LT_DECL_EGREP])dnl 3035 m4_require([_LT_DECL_EGREP])dnl
3249 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3036 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3250 3037
3251 AC_ARG_WITH([gnu-ld], 3038 AC_ARG_WITH([gnu-ld],
3252 [AS_HELP_STRING([--with-gnu-ld], 3039 [AS_HELP_STRING([--with-gnu-ld],
3253 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3040 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3254 [test no = "$withval" || with_gnu_ld=yes], 3041 [test "$withval" = no || with_gnu_ld=yes],
3255 [with_gnu_ld=no])dnl 3042 [with_gnu_ld=no])dnl
3256 3043
3257 ac_prog=ld 3044 ac_prog=ld
3258 if test yes = "$GCC"; then 3045 if test "$GCC" = yes; then
3259 # Check if gcc -print-prog-name=ld gives a path. 3046 # Check if gcc -print-prog-name=ld gives a path.
3260 AC_MSG_CHECKING([for ld used by $CC]) 3047 AC_MSG_CHECKING([for ld used by $CC])
3261 case $host in 3048 case $host in
3262 *-*-mingw*) 3049 *-*-mingw*)
3263 # gcc leaves a trailing carriage return, which upsets mingw 3050 # gcc leaves a trailing carriage return which upsets mingw
3264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3265 *) 3052 *)
3266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3267 esac 3054 esac
3268 case $ac_prog in 3055 case $ac_prog in
3269 # Accept absolute paths. 3056 # Accept absolute paths.
3270 [[\\/]]* | ?:[[\\/]]*) 3057 [[\\/]]* | ?:[[\\/]]*)
3271 re_direlt='/[[^/]][[^/]]*/\.\./' 3058 re_direlt='/[[^/]][[^/]]*/\.\./'
3272 # Canonicalize the pathname of ld 3059 # Canonicalize the pathname of ld
3273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3276 done 3063 done
3277 test -z "$LD" && LD=$ac_prog 3064 test -z "$LD" && LD="$ac_prog"
3278 ;; 3065 ;;
3279 "") 3066 "")
3280 # If it fails, then pretend we aren't using GCC. 3067 # If it fails, then pretend we aren't using GCC.
3281 ac_prog=ld 3068 ac_prog=ld
3282 ;; 3069 ;;
3283 *) 3070 *)
3284 # If it is relative, then search for the first ld in PATH. 3071 # If it is relative, then search for the first ld in PATH.
3285 with_gnu_ld=unknown 3072 with_gnu_ld=unknown
3286 ;; 3073 ;;
3287 esac 3074 esac
3288 elif test yes = "$with_gnu_ld"; then 3075 elif test "$with_gnu_ld" = yes; then
3289 AC_MSG_CHECKING([for GNU ld]) 3076 AC_MSG_CHECKING([for GNU ld])
3290 else 3077 else
3291 AC_MSG_CHECKING([for non-GNU ld]) 3078 AC_MSG_CHECKING([for non-GNU ld])
3292 fi 3079 fi
3293 AC_CACHE_VAL(lt_cv_path_LD, 3080 AC_CACHE_VAL(lt_cv_path_LD,
3294 [if test -z "$LD"; then 3081 [if test -z "$LD"; then
3295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3296 for ac_dir in $PATH; do 3083 for ac_dir in $PATH; do
3297 IFS=$lt_save_ifs 3084 IFS="$lt_save_ifs"
3298 test -z "$ac_dir" && ac_dir=. 3085 test -z "$ac_dir" && ac_dir=.
3299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3300 lt_cv_path_LD=$ac_dir/$ac_prog 3087 lt_cv_path_LD="$ac_dir/$ac_prog"
3301 # Check to see if the program is GNU ld. I'd rather use --version, 3088 # Check to see if the program is GNU ld. I'd rather use --version,
3302 # but apparently some variants of GNU ld only accept -v. 3089 # but apparently some variants of GNU ld only accept -v.
3303 # Break only if it was the GNU/non-GNU ld that we prefer. 3090 # Break only if it was the GNU/non-GNU ld that we prefer.
3304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3305 *GNU* | *'with BFD'*) 3092 *GNU* | *'with BFD'*)
3306 » test no != "$with_gnu_ld" && break 3093 » test "$with_gnu_ld" != no && break
3307 ;; 3094 ;;
3308 *) 3095 *)
3309 » test yes != "$with_gnu_ld" && break 3096 » test "$with_gnu_ld" != yes && break
3310 ;; 3097 ;;
3311 esac 3098 esac
3312 fi 3099 fi
3313 done 3100 done
3314 IFS=$lt_save_ifs 3101 IFS="$lt_save_ifs"
3315 else 3102 else
3316 lt_cv_path_LD=$LD # Let the user override the test with a path. 3103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3317 fi]) 3104 fi])
3318 LD=$lt_cv_path_LD 3105 LD="$lt_cv_path_LD"
3319 if test -n "$LD"; then 3106 if test -n "$LD"; then
3320 AC_MSG_RESULT($LD) 3107 AC_MSG_RESULT($LD)
3321 else 3108 else
3322 AC_MSG_RESULT(no) 3109 AC_MSG_RESULT(no)
3323 fi 3110 fi
3324 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3111 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3325 _LT_PATH_LD_GNU 3112 _LT_PATH_LD_GNU
3326 AC_SUBST([LD]) 3113 AC_SUBST([LD])
3327 3114
3328 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3115 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3362 lt_cv_ld_reload_flag, 3149 lt_cv_ld_reload_flag,
3363 [lt_cv_ld_reload_flag='-r']) 3150 [lt_cv_ld_reload_flag='-r'])
3364 reload_flag=$lt_cv_ld_reload_flag 3151 reload_flag=$lt_cv_ld_reload_flag
3365 case $reload_flag in 3152 case $reload_flag in
3366 "" | " "*) ;; 3153 "" | " "*) ;;
3367 *) reload_flag=" $reload_flag" ;; 3154 *) reload_flag=" $reload_flag" ;;
3368 esac 3155 esac
3369 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3370 case $host_os in 3157 case $host_os in
3371 cygwin* | mingw* | pw32* | cegcc*) 3158 cygwin* | mingw* | pw32* | cegcc*)
3372 if test yes != "$GCC"; then 3159 if test "$GCC" != yes; then
3373 reload_cmds=false 3160 reload_cmds=false
3374 fi 3161 fi
3375 ;; 3162 ;;
3376 darwin*) 3163 darwin*)
3377 if test yes = "$GCC"; then 3164 if test "$GCC" = yes; then
3378 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 3165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3379 else 3166 else
3380 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3381 fi 3168 fi
3382 ;; 3169 ;;
3383 esac 3170 esac
3384 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3171 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3385 _LT_TAGDECL([], [reload_cmds], [2])dnl 3172 _LT_TAGDECL([], [reload_cmds], [2])dnl
3386 ])# _LT_CMD_RELOAD 3173 ])# _LT_CMD_RELOAD
3387 3174
3388 3175
3389 # _LT_PATH_DD
3390 # -----------
3391 # find a working dd
3392 m4_defun([_LT_PATH_DD],
3393 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3394 [printf 0123456789abcdef0123456789abcdef >conftest.i
3395 cat conftest.i conftest.i >conftest2.i
3396 : ${lt_DD:=$DD}
3397 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3398 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3399 cmp -s conftest.i conftest.out \
3400 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3401 fi])
3402 rm -f conftest.i conftest2.i conftest.out])
3403 ])# _LT_PATH_DD
3404
3405
3406 # _LT_CMD_TRUNCATE
3407 # ----------------
3408 # find command to truncate a binary pipe
3409 m4_defun([_LT_CMD_TRUNCATE],
3410 [m4_require([_LT_PATH_DD])
3411 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3412 [printf 0123456789abcdef0123456789abcdef >conftest.i
3413 cat conftest.i conftest.i >conftest2.i
3414 lt_cv_truncate_bin=
3415 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; the n
3416 cmp -s conftest.i conftest.out \
3417 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3418 fi
3419 rm -f conftest.i conftest2.i conftest.out
3420 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3421 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3422 [Command to truncate a binary pipe])
3423 ])# _LT_CMD_TRUNCATE
3424
3425
3426 # _LT_CHECK_MAGIC_METHOD 3176 # _LT_CHECK_MAGIC_METHOD
3427 # ---------------------- 3177 # ----------------------
3428 # how to check for library dependencies 3178 # how to check for library dependencies
3429 # -- PORTME fill in with the dynamic library characteristics 3179 # -- PORTME fill in with the dynamic library characteristics
3430 m4_defun([_LT_CHECK_MAGIC_METHOD], 3180 m4_defun([_LT_CHECK_MAGIC_METHOD],
3431 [m4_require([_LT_DECL_EGREP]) 3181 [m4_require([_LT_DECL_EGREP])
3432 m4_require([_LT_DECL_OBJDUMP]) 3182 m4_require([_LT_DECL_OBJDUMP])
3433 AC_CACHE_CHECK([how to recognize dependent libraries], 3183 AC_CACHE_CHECK([how to recognize dependent libraries],
3434 lt_cv_deplibs_check_method, 3184 lt_cv_deplibs_check_method,
3435 [lt_cv_file_magic_cmd='$MAGIC_CMD' 3185 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3436 lt_cv_file_magic_test_file= 3186 lt_cv_file_magic_test_file=
3437 lt_cv_deplibs_check_method='unknown' 3187 lt_cv_deplibs_check_method='unknown'
3438 # Need to set the preceding variable on all platforms that support 3188 # Need to set the preceding variable on all platforms that support
3439 # interlibrary dependencies. 3189 # interlibrary dependencies.
3440 # 'none' -- dependencies not supported. 3190 # 'none' -- dependencies not supported.
3441 # 'unknown' -- same as none, but documents that we really don't know. 3191 # `unknown' -- same as none, but documents that we really don't know.
3442 # 'pass_all' -- all dependencies passed with no checks. 3192 # 'pass_all' -- all dependencies passed with no checks.
3443 # 'test_compile' -- check by making test program. 3193 # 'test_compile' -- check by making test program.
3444 # 'file_magic [[regex]]' -- check by looking for files in library path 3194 # 'file_magic [[regex]]' -- check by looking for files in library path
3445 # that responds to the $file_magic_cmd with a given extended regex. 3195 # which responds to the $file_magic_cmd with a given extended regex.
3446 # If you have 'file' or equivalent on your system and you're not sure 3196 # If you have `file' or equivalent on your system and you're not sure
3447 # whether 'pass_all' will *always* work, you probably want this one. 3197 # whether `pass_all' will *always* work, you probably want this one.
3448 3198
3449 case $host_os in 3199 case $host_os in
3450 aix[[4-9]]*) 3200 aix[[4-9]]*)
3451 lt_cv_deplibs_check_method=pass_all 3201 lt_cv_deplibs_check_method=pass_all
3452 ;; 3202 ;;
3453 3203
3454 beos*) 3204 beos*)
3455 lt_cv_deplibs_check_method=pass_all 3205 lt_cv_deplibs_check_method=pass_all
3456 ;; 3206 ;;
3457 3207
3458 bsdi[[45]]*) 3208 bsdi[[45]]*)
3459 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (share d object|dynamic lib)' 3209 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (share d object|dynamic lib)'
3460 lt_cv_file_magic_cmd='/usr/bin/file -L' 3210 lt_cv_file_magic_cmd='/usr/bin/file -L'
3461 lt_cv_file_magic_test_file=/shlib/libc.so 3211 lt_cv_file_magic_test_file=/shlib/libc.so
3462 ;; 3212 ;;
3463 3213
3464 cygwin*) 3214 cygwin*)
3465 # func_win32_libid is a shell function defined in ltmain.sh 3215 # func_win32_libid is a shell function defined in ltmain.sh
3466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3467 lt_cv_file_magic_cmd='func_win32_libid' 3217 lt_cv_file_magic_cmd='func_win32_libid'
3468 ;; 3218 ;;
3469 3219
3470 mingw* | pw32*) 3220 mingw* | pw32*)
3471 # Base MSYS/MinGW do not provide the 'file' command needed by 3221 # Base MSYS/MinGW do not provide the 'file' command needed by
3472 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3222 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3473 # unless we find 'file', for example because we are cross-compiling. 3223 # unless we find 'file', for example because we are cross-compiling.
3474 if ( file / ) >/dev/null 2>&1; then 3224 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3225 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3476 lt_cv_file_magic_cmd='func_win32_libid' 3227 lt_cv_file_magic_cmd='func_win32_libid'
3477 else 3228 else
3478 # Keep this pattern in sync with the one in func_win32_libid. 3229 # Keep this pattern in sync with the one in func_win32_libid.
3479 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture : i386)?|pe-arm-wince|pe-x86-64)' 3230 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture : i386)?|pe-arm-wince|pe-x86-64)'
3480 lt_cv_file_magic_cmd='$OBJDUMP -f' 3231 lt_cv_file_magic_cmd='$OBJDUMP -f'
3481 fi 3232 fi
3482 ;; 3233 ;;
3483 3234
3484 cegcc*) 3235 cegcc*)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
3542 *) libmagic=never-match;; 3293 *) libmagic=never-match;;
3543 esac 3294 esac
3544 lt_cv_deplibs_check_method=pass_all 3295 lt_cv_deplibs_check_method=pass_all
3545 ;; 3296 ;;
3546 3297
3547 # This must be glibc/ELF. 3298 # This must be glibc/ELF.
3548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3299 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3549 lt_cv_deplibs_check_method=pass_all 3300 lt_cv_deplibs_check_method=pass_all
3550 ;; 3301 ;;
3551 3302
3552 netbsd*) 3303 netbsd* | netbsdelf*-gnu)
3553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3304 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3554 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|_pic\.a)$' 3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|_pic\.a)$'
3555 else 3306 else
3556 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3307 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3557 fi 3308 fi
3558 ;; 3309 ;;
3559 3310
3560 newos6*) 3311 newos6*)
3561 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu table|dynamic lib)' 3312 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu table|dynamic lib)'
3562 lt_cv_file_magic_cmd=/usr/bin/file 3313 lt_cv_file_magic_cmd=/usr/bin/file
3563 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3314 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3564 ;; 3315 ;;
3565 3316
3566 *nto* | *qnx*) 3317 *nto* | *qnx*)
3567 lt_cv_deplibs_check_method=pass_all 3318 lt_cv_deplibs_check_method=pass_all
3568 ;; 3319 ;;
3569 3320
3570 openbsd* | bitrig*) 3321 openbsd*)
3571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
3572 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|\.so|_pic\.a)$' 3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|\.so|_pic\.a)$'
3573 else 3324 else
3574 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|_pic\.a)$' 3325 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9] ]+|_pic\.a)$'
3575 fi 3326 fi
3576 ;; 3327 ;;
3577 3328
3578 osf3* | osf4* | osf5*) 3329 osf3* | osf4* | osf5*)
3579 lt_cv_deplibs_check_method=pass_all 3330 lt_cv_deplibs_check_method=pass_all
3580 ;; 3331 ;;
3581 3332
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
3614 ;; 3365 ;;
3615 pc) 3366 pc)
3616 lt_cv_deplibs_check_method=pass_all 3367 lt_cv_deplibs_check_method=pass_all
3617 ;; 3368 ;;
3618 esac 3369 esac
3619 ;; 3370 ;;
3620 3371
3621 tpf*) 3372 tpf*)
3622 lt_cv_deplibs_check_method=pass_all 3373 lt_cv_deplibs_check_method=pass_all
3623 ;; 3374 ;;
3624 os2*)
3625 lt_cv_deplibs_check_method=pass_all
3626 ;;
3627 esac 3375 esac
3628 ]) 3376 ])
3629 3377
3630 file_magic_glob= 3378 file_magic_glob=
3631 want_nocaseglob=no 3379 want_nocaseglob=no
3632 if test "$build" = "$host"; then 3380 if test "$build" = "$host"; then
3633 case $host_os in 3381 case $host_os in
3634 mingw* | pw32*) 3382 mingw* | pw32*)
3635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 3383 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3636 want_nocaseglob=yes 3384 want_nocaseglob=yes
(...skipping 20 matching lines...) Expand all
3657 3405
3658 3406
3659 # LT_PATH_NM 3407 # LT_PATH_NM
3660 # ---------- 3408 # ----------
3661 # find the pathname to a BSD- or MS-compatible name lister 3409 # find the pathname to a BSD- or MS-compatible name lister
3662 AC_DEFUN([LT_PATH_NM], 3410 AC_DEFUN([LT_PATH_NM],
3663 [AC_REQUIRE([AC_PROG_CC])dnl 3411 [AC_REQUIRE([AC_PROG_CC])dnl
3664 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3412 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3665 [if test -n "$NM"; then 3413 [if test -n "$NM"; then
3666 # Let the user override the test. 3414 # Let the user override the test.
3667 lt_cv_path_NM=$NM 3415 lt_cv_path_NM="$NM"
3668 else 3416 else
3669 lt_nm_to_check=${ac_tool_prefix}nm 3417 lt_nm_to_check="${ac_tool_prefix}nm"
3670 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3671 lt_nm_to_check="$lt_nm_to_check nm" 3419 lt_nm_to_check="$lt_nm_to_check nm"
3672 fi 3420 fi
3673 for lt_tmp_nm in $lt_nm_to_check; do 3421 for lt_tmp_nm in $lt_nm_to_check; do
3674 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3675 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3676 IFS=$lt_save_ifs 3424 IFS="$lt_save_ifs"
3677 test -z "$ac_dir" && ac_dir=. 3425 test -z "$ac_dir" && ac_dir=.
3678 tmp_nm=$ac_dir/$lt_tmp_nm 3426 tmp_nm="$ac_dir/$lt_tmp_nm"
3679 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3680 # Check to see if the nm accepts a BSD-compat flag. 3428 # Check to see if the nm accepts a BSD-compat flag.
3681 » # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3429 » # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3682 # nm: unknown option "B" ignored 3430 # nm: unknown option "B" ignored
3683 # Tru64's nm complains that /dev/null is an invalid object file 3431 # Tru64's nm complains that /dev/null is an invalid object file
3684 » # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3432 » case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3685 » case $build_os in 3433 » */dev/null* | *'Invalid file or object type'*)
3686 » mingw*) lt_bad_file=conftest.nm/nofile ;;
3687 » *) lt_bad_file=/dev/null ;;
3688 » esac
3689 » case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3690 » *$lt_bad_file* | *'Invalid file or object type'*)
3691 lt_cv_path_NM="$tmp_nm -B" 3434 lt_cv_path_NM="$tmp_nm -B"
3692 » break 2 3435 » break
3693 ;; 3436 ;;
3694 *) 3437 *)
3695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3696 */dev/null*) 3439 */dev/null*)
3697 lt_cv_path_NM="$tmp_nm -p" 3440 lt_cv_path_NM="$tmp_nm -p"
3698 » break 2 3441 » break
3699 ;; 3442 ;;
3700 *) 3443 *)
3701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702 continue # so that we can try to find one that supports BSD flags 3445 continue # so that we can try to find one that supports BSD flags
3703 ;; 3446 ;;
3704 esac 3447 esac
3705 ;; 3448 ;;
3706 esac 3449 esac
3707 fi 3450 fi
3708 done 3451 done
3709 IFS=$lt_save_ifs 3452 IFS="$lt_save_ifs"
3710 done 3453 done
3711 : ${lt_cv_path_NM=no} 3454 : ${lt_cv_path_NM=no}
3712 fi]) 3455 fi])
3713 if test no != "$lt_cv_path_NM"; then 3456 if test "$lt_cv_path_NM" != "no"; then
3714 NM=$lt_cv_path_NM 3457 NM="$lt_cv_path_NM"
3715 else 3458 else
3716 # Didn't find any BSD compatible name lister, look for dumpbin. 3459 # Didn't find any BSD compatible name lister, look for dumpbin.
3717 if test -n "$DUMPBIN"; then : 3460 if test -n "$DUMPBIN"; then :
3718 # Let the user override the test. 3461 # Let the user override the test.
3719 else 3462 else
3720 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3463 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3721 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 3464 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3722 *COFF*) 3465 *COFF*)
3723 DUMPBIN="$DUMPBIN -symbols -headers" 3466 DUMPBIN="$DUMPBIN -symbols"
3724 ;; 3467 ;;
3725 *) 3468 *)
3726 DUMPBIN=: 3469 DUMPBIN=:
3727 ;; 3470 ;;
3728 esac 3471 esac
3729 fi 3472 fi
3730 AC_SUBST([DUMPBIN]) 3473 AC_SUBST([DUMPBIN])
3731 if test : != "$DUMPBIN"; then 3474 if test "$DUMPBIN" != ":"; then
3732 NM=$DUMPBIN 3475 NM="$DUMPBIN"
3733 fi 3476 fi
3734 fi 3477 fi
3735 test -z "$NM" && NM=nm 3478 test -z "$NM" && NM=nm
3736 AC_SUBST([NM]) 3479 AC_SUBST([NM])
3737 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3480 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3738 3481
3739 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3482 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3740 [lt_cv_nm_interface="BSD nm" 3483 [lt_cv_nm_interface="BSD nm"
3741 echo "int some_variable = 0;" > conftest.$ac_ext 3484 echo "int some_variable = 0;" > conftest.$ac_ext
3742 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
(...skipping 25 matching lines...) Expand all
3768 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 3511 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3769 [m4_require([_LT_DECL_EGREP]) 3512 [m4_require([_LT_DECL_EGREP])
3770 m4_require([_LT_DECL_OBJDUMP]) 3513 m4_require([_LT_DECL_OBJDUMP])
3771 m4_require([_LT_DECL_DLLTOOL]) 3514 m4_require([_LT_DECL_DLLTOOL])
3772 AC_CACHE_CHECK([how to associate runtime and link libraries], 3515 AC_CACHE_CHECK([how to associate runtime and link libraries],
3773 lt_cv_sharedlib_from_linklib_cmd, 3516 lt_cv_sharedlib_from_linklib_cmd,
3774 [lt_cv_sharedlib_from_linklib_cmd='unknown' 3517 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3775 3518
3776 case $host_os in 3519 case $host_os in
3777 cygwin* | mingw* | pw32* | cegcc*) 3520 cygwin* | mingw* | pw32* | cegcc*)
3778 # two different shell functions defined in ltmain.sh; 3521 # two different shell functions defined in ltmain.sh
3779 # decide which one to use based on capabilities of $DLLTOOL 3522 # decide which to use based on capabilities of $DLLTOOL
3780 case `$DLLTOOL --help 2>&1` in 3523 case `$DLLTOOL --help 2>&1` in
3781 *--identify-strict*) 3524 *--identify-strict*)
3782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3783 ;; 3526 ;;
3784 *) 3527 *)
3785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3786 ;; 3529 ;;
3787 esac 3530 esac
3788 ;; 3531 ;;
3789 *) 3532 *)
3790 # fallback: assume linklib IS sharedlib 3533 # fallback: assume linklib IS sharedlib
3791 lt_cv_sharedlib_from_linklib_cmd=$ECHO 3534 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3792 ;; 3535 ;;
3793 esac 3536 esac
3794 ]) 3537 ])
3795 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3538 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3796 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3539 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3797 3540
3798 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3541 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3799 [Command to associate shared and link libraries]) 3542 [Command to associate shared and link libraries])
3800 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3543 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3801 3544
3802 3545
3803 # _LT_PATH_MANIFEST_TOOL 3546 # _LT_PATH_MANIFEST_TOOL
3804 # ---------------------- 3547 # ----------------------
3805 # locate the manifest tool 3548 # locate the manifest tool
3806 m4_defun([_LT_PATH_MANIFEST_TOOL], 3549 m4_defun([_LT_PATH_MANIFEST_TOOL],
3807 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 3550 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3808 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 3551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3809 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool ], 3552 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool ],
3810 [lt_cv_path_mainfest_tool=no 3553 [lt_cv_path_mainfest_tool=no
3811 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3812 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3813 cat conftest.err >&AS_MESSAGE_LOG_FD 3556 cat conftest.err >&AS_MESSAGE_LOG_FD
3814 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3815 lt_cv_path_mainfest_tool=yes 3558 lt_cv_path_mainfest_tool=yes
3816 fi 3559 fi
3817 rm -f conftest*]) 3560 rm -f conftest*])
3818 if test yes != "$lt_cv_path_mainfest_tool"; then 3561 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3819 MANIFEST_TOOL=: 3562 MANIFEST_TOOL=:
3820 fi 3563 fi
3821 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3564 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3822 ])# _LT_PATH_MANIFEST_TOOL 3565 ])# _LT_PATH_MANIFEST_TOOL
3823 3566
3824 3567
3825 # _LT_DLL_DEF_P([FILE])
3826 # ---------------------
3827 # True iff FILE is a Windows DLL '.def' file.
3828 # Keep in sync with func_dll_def_p in the libtool script
3829 AC_DEFUN([_LT_DLL_DEF_P],
3830 [dnl
3831 test DEF = "`$SED -n dnl
3832 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3833 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3834 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3835 -e q dnl Only consider the first "real" line
3836 $1`" dnl
3837 ])# _LT_DLL_DEF_P
3838
3839
3840 # LT_LIB_M 3568 # LT_LIB_M
3841 # -------- 3569 # --------
3842 # check for math library 3570 # check for math library
3843 AC_DEFUN([LT_LIB_M], 3571 AC_DEFUN([LT_LIB_M],
3844 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3572 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3845 LIBM= 3573 LIBM=
3846 case $host in 3574 case $host in
3847 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3575 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3848 # These system don't have libm, or don't need it 3576 # These system don't have libm, or don't need it
3849 ;; 3577 ;;
3850 *-ncr-sysv4.3*) 3578 *-ncr-sysv4.3*)
3851 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 3579 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3852 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3580 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3853 ;; 3581 ;;
3854 *) 3582 *)
3855 AC_CHECK_LIB(m, cos, LIBM=-lm) 3583 AC_CHECK_LIB(m, cos, LIBM="-lm")
3856 ;; 3584 ;;
3857 esac 3585 esac
3858 AC_SUBST([LIBM]) 3586 AC_SUBST([LIBM])
3859 ])# LT_LIB_M 3587 ])# LT_LIB_M
3860 3588
3861 # Old name: 3589 # Old name:
3862 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3590 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3863 dnl aclocal-1.4 backwards compatibility: 3591 dnl aclocal-1.4 backwards compatibility:
3864 dnl AC_DEFUN([AC_CHECK_LIBM], []) 3592 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3865 3593
3866 3594
3867 # _LT_COMPILER_NO_RTTI([TAGNAME]) 3595 # _LT_COMPILER_NO_RTTI([TAGNAME])
3868 # ------------------------------- 3596 # -------------------------------
3869 m4_defun([_LT_COMPILER_NO_RTTI], 3597 m4_defun([_LT_COMPILER_NO_RTTI],
3870 [m4_require([_LT_TAG_COMPILER])dnl 3598 [m4_require([_LT_TAG_COMPILER])dnl
3871 3599
3872 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3600 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3873 3601
3874 if test yes = "$GCC"; then 3602 if test "$GCC" = yes; then
3875 case $cc_basename in 3603 case $cc_basename in
3876 nvcc*) 3604 nvcc*)
3877 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3878 *) 3606 *)
3879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3880 esac 3608 esac
3881 3609
3882 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3610 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3883 lt_cv_prog_compiler_rtti_exceptions, 3611 lt_cv_prog_compiler_rtti_exceptions,
3884 [-fno-rtti -fno-exceptions], [], 3612 [-fno-rtti -fno-exceptions], [],
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
3916 3644
3917 # Define system-specific variables. 3645 # Define system-specific variables.
3918 case $host_os in 3646 case $host_os in
3919 aix*) 3647 aix*)
3920 symcode='[[BCDT]]' 3648 symcode='[[BCDT]]'
3921 ;; 3649 ;;
3922 cygwin* | mingw* | pw32* | cegcc*) 3650 cygwin* | mingw* | pw32* | cegcc*)
3923 symcode='[[ABCDGISTW]]' 3651 symcode='[[ABCDGISTW]]'
3924 ;; 3652 ;;
3925 hpux*) 3653 hpux*)
3926 if test ia64 = "$host_cpu"; then 3654 if test "$host_cpu" = ia64; then
3927 symcode='[[ABCDEGRST]]' 3655 symcode='[[ABCDEGRST]]'
3928 fi 3656 fi
3929 ;; 3657 ;;
3930 irix* | nonstopux*) 3658 irix* | nonstopux*)
3931 symcode='[[BCDEGRST]]' 3659 symcode='[[BCDEGRST]]'
3932 ;; 3660 ;;
3933 osf*) 3661 osf*)
3934 symcode='[[BCDEGQRST]]' 3662 symcode='[[BCDEGQRST]]'
3935 ;; 3663 ;;
3936 solaris*) 3664 solaris*)
(...skipping 12 matching lines...) Expand all
3949 symcode='[[DFNSTU]]' 3677 symcode='[[DFNSTU]]'
3950 ;; 3678 ;;
3951 esac 3679 esac
3952 3680
3953 # If we're using GNU nm, then use its standard symbol codes. 3681 # If we're using GNU nm, then use its standard symbol codes.
3954 case `$NM -V 2>&1` in 3682 case `$NM -V 2>&1` in
3955 *GNU* | *'with BFD'*) 3683 *GNU* | *'with BFD'*)
3956 symcode='[[ABCDGIRSTW]]' ;; 3684 symcode='[[ABCDGIRSTW]]' ;;
3957 esac 3685 esac
3958 3686
3959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3960 # Gets list of data symbols to import.
3961 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3962 # Adjust the below global symbol transforms to fixup imported variables.
3963 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3964 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3965 lt_c_name_lib_hook="\
3966 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3967 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3968 else
3969 # Disable hooks by default.
3970 lt_cv_sys_global_symbol_to_import=
3971 lt_cdecl_hook=
3972 lt_c_name_hook=
3973 lt_c_name_lib_hook=
3974 fi
3975
3976 # Transform an extracted symbol line into a proper C declaration. 3687 # Transform an extracted symbol line into a proper C declaration.
3977 # Some systems (esp. on ia64) link data and code symbols differently, 3688 # Some systems (esp. on ia64) link data and code symbols differently,
3978 # so use this general approach. 3689 # so use this general approach.
3979 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 3690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3980 $lt_cdecl_hook\
3981 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3982 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3983 3691
3984 # Transform an extracted symbol line into symbol name and symbol address 3692 # Transform an extracted symbol line into symbol name and symbol address
3985 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 3693 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\" , (void *) \&\2},/p'"
3986 $lt_c_name_hook\ 3694 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'"
3987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3988 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3989
3990 # Transform an extracted symbol line into symbol name with lib prefix and
3991 # symbol address.
3992 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
3993 $lt_c_name_lib_hook\
3994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3995 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
3997 3695
3998 # Handle CRLF in mingw tool chain 3696 # Handle CRLF in mingw tool chain
3999 opt_cr= 3697 opt_cr=
4000 case $build_os in 3698 case $build_os in
4001 mingw*) 3699 mingw*)
4002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3700 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4003 ;; 3701 ;;
4004 esac 3702 esac
4005 3703
4006 # Try without a prefix underscore, then with it. 3704 # Try without a prefix underscore, then with it.
4007 for ac_symprfx in "" "_"; do 3705 for ac_symprfx in "" "_"; do
4008 3706
4009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4010 symxfrm="\\1 $ac_symprfx\\2 \\2" 3708 symxfrm="\\1 $ac_symprfx\\2 \\2"
4011 3709
4012 # Write the raw and C identifiers. 3710 # Write the raw and C identifiers.
4013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3711 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4014 # Fake it for dumpbin and say T for any non-static function, 3712 # Fake it for dumpbin and say T for any non-static function
4015 # D for any global variable and I for any imported variable. 3713 # and D for any global variable.
4016 # Also find C++ and __fastcall symbols from MSVC++, 3714 # Also find C++ and __fastcall symbols from MSVC++,
4017 # which start with @ or ?. 3715 # which start with @ or ?.
4018 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3716 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4019 " {last_section=section; section=\$ 3};"\ 3717 " {last_section=section; section=\$ 3};"\
4020 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 3718 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4021 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3719 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4022 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4023 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4024 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4025 " \$ 0!~/External *\|/{next};"\ 3720 " \$ 0!~/External *\|/{next};"\
4026 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3721 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4027 " {if(hide[section]) next};"\ 3722 " {if(hide[section]) next};"\
4028 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 3723 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4029 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 3724 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4030 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 3725 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4031 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 3726 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4032 " ' prfx=^$ac_symprfx]" 3727 " ' prfx=^$ac_symprfx]"
4033 else 3728 else
4034 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\) [[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3729 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\) [[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4035 fi 3730 fi
4036 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'" 3731 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'"
4037 3732
4038 # Check to see that the pipe works correctly. 3733 # Check to see that the pipe works correctly.
4039 pipe_works=no 3734 pipe_works=no
4040 3735
4041 rm -f conftest* 3736 rm -f conftest*
(...skipping 19 matching lines...) Expand all
4061 mv -f "$nlist"T "$nlist" 3756 mv -f "$nlist"T "$nlist"
4062 else 3757 else
4063 rm -f "$nlist"T 3758 rm -f "$nlist"T
4064 fi 3759 fi
4065 3760
4066 # Make sure that we snagged all the symbols we need. 3761 # Make sure that we snagged all the symbols we need.
4067 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4068 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4069 cat <<_LT_EOF > conftest.$ac_ext 3764 cat <<_LT_EOF > conftest.$ac_ext
4070 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * / 3765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * /
4071 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 3766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4072 /* DATA imports from DLLs on WIN32 can't be const, because runtime 3767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4073 relocations are performed -- see ld's documentation on pseudo-relocs. */ 3768 relocations are performed -- see ld's documentation on pseudo-relocs. */
4074 # define LT@&t@_DLSYM_CONST 3769 # define LT@&t@_DLSYM_CONST
4075 #elif defined __osf__ 3770 #elif defined(__osf__)
4076 /* This system does not cope well with relocations in const data. */ 3771 /* This system does not cope well with relocations in const data. */
4077 # define LT@&t@_DLSYM_CONST 3772 # define LT@&t@_DLSYM_CONST
4078 #else 3773 #else
4079 # define LT@&t@_DLSYM_CONST const 3774 # define LT@&t@_DLSYM_CONST const
4080 #endif 3775 #endif
4081 3776
4082 #ifdef __cplusplus 3777 #ifdef __cplusplus
4083 extern "C" { 3778 extern "C" {
4084 #endif 3779 #endif
4085 3780
4086 _LT_EOF 3781 _LT_EOF
4087 # Now generate the symbol file. 3782 # Now generate the symbol file.
4088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext' 3783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
4089 3784
4090 cat <<_LT_EOF >> conftest.$ac_ext 3785 cat <<_LT_EOF >> conftest.$ac_ext
4091 3786
4092 /* The mapping between symbol names and symbols. */ 3787 /* The mapping between symbol names and symbols. */
4093 LT@&t@_DLSYM_CONST struct { 3788 LT@&t@_DLSYM_CONST struct {
4094 const char *name; 3789 const char *name;
4095 void *address; 3790 void *address;
4096 } 3791 }
4097 lt__PROGRAM__LTX_preloaded_symbols[[]] = 3792 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4098 { 3793 {
4099 { "@PROGRAM@", (void *) 0 }, 3794 { "@PROGRAM@", (void *) 0 },
4100 _LT_EOF 3795 _LT_EOF
4101 » $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < " $nlist" | $GREP -v main >> conftest.$ac_ext 3796 » $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4102 cat <<\_LT_EOF >> conftest.$ac_ext 3797 cat <<\_LT_EOF >> conftest.$ac_ext
4103 {0, (void *) 0} 3798 {0, (void *) 0}
4104 }; 3799 };
4105 3800
4106 /* This works around a problem in FreeBSD linker */ 3801 /* This works around a problem in FreeBSD linker */
4107 #ifdef FREEBSD_WORKAROUND 3802 #ifdef FREEBSD_WORKAROUND
4108 static const void *lt_preloaded_setup() { 3803 static const void *lt_preloaded_setup() {
4109 return lt__PROGRAM__LTX_preloaded_symbols; 3804 return lt__PROGRAM__LTX_preloaded_symbols;
4110 } 3805 }
4111 #endif 3806 #endif
4112 3807
4113 #ifdef __cplusplus 3808 #ifdef __cplusplus
4114 } 3809 }
4115 #endif 3810 #endif
4116 _LT_EOF 3811 _LT_EOF
4117 # Now try linking the two files. 3812 # Now try linking the two files.
4118 mv conftest.$ac_objext conftstm.$ac_objext 3813 mv conftest.$ac_objext conftstm.$ac_objext
4119 lt_globsym_save_LIBS=$LIBS 3814 lt_globsym_save_LIBS=$LIBS
4120 lt_globsym_save_CFLAGS=$CFLAGS 3815 lt_globsym_save_CFLAGS=$CFLAGS
4121 » LIBS=conftstm.$ac_objext 3816 » LIBS="conftstm.$ac_objext"
4122 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3817 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4123 » if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 3818 » if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4124 pipe_works=yes 3819 pipe_works=yes
4125 fi 3820 fi
4126 LIBS=$lt_globsym_save_LIBS 3821 LIBS=$lt_globsym_save_LIBS
4127 CFLAGS=$lt_globsym_save_CFLAGS 3822 CFLAGS=$lt_globsym_save_CFLAGS
4128 else 3823 else
4129 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 3824 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4130 fi 3825 fi
4131 else 3826 else
4132 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 3827 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4133 fi 3828 fi
4134 else 3829 else
4135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 3830 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4136 fi 3831 fi
4137 else 3832 else
4138 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3833 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4139 cat conftest.$ac_ext >&5 3834 cat conftest.$ac_ext >&5
4140 fi 3835 fi
4141 rm -rf conftest* conftst* 3836 rm -rf conftest* conftst*
4142 3837
4143 # Do not use the global_symbol_pipe unless it works. 3838 # Do not use the global_symbol_pipe unless it works.
4144 if test yes = "$pipe_works"; then 3839 if test "$pipe_works" = yes; then
4145 break 3840 break
4146 else 3841 else
4147 lt_cv_sys_global_symbol_pipe= 3842 lt_cv_sys_global_symbol_pipe=
4148 fi 3843 fi
4149 done 3844 done
4150 ]) 3845 ])
4151 if test -z "$lt_cv_sys_global_symbol_pipe"; then 3846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4152 lt_cv_sys_global_symbol_to_cdecl= 3847 lt_cv_sys_global_symbol_to_cdecl=
4153 fi 3848 fi
4154 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n 3849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
4155 AC_MSG_RESULT(failed) 3850 AC_MSG_RESULT(failed)
4156 else 3851 else
4157 AC_MSG_RESULT(ok) 3852 AC_MSG_RESULT(ok)
4158 fi 3853 fi
4159 3854
4160 # Response file support. 3855 # Response file support.
4161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4162 nm_file_list_spec='@' 3857 nm_file_list_spec='@'
4163 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 3858 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4164 nm_file_list_spec='@' 3859 nm_file_list_spec='@'
4165 fi 3860 fi
4166 3861
4167 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3862 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4168 [Take the output of nm and produce a listing of raw symbols and C names]) 3863 [Take the output of nm and produce a listing of raw symbols and C names])
4169 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3864 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4170 [Transform the output of nm in a proper C declaration]) 3865 [Transform the output of nm in a proper C declaration])
4171 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4172 [Transform the output of nm into a list of symbols to manually relocate])
4173 _LT_DECL([global_symbol_to_c_name_address], 3866 _LT_DECL([global_symbol_to_c_name_address],
4174 [lt_cv_sys_global_symbol_to_c_name_address], [1], 3867 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4175 [Transform the output of nm in a C name address pair]) 3868 [Transform the output of nm in a C name address pair])
4176 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3869 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4177 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3870 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4178 [Transform the output of nm in a C name address pair when lib prefix is need ed]) 3871 [Transform the output of nm in a C name address pair when lib prefix is need ed])
4179 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4180 [The name lister interface])
4181 _LT_DECL([], [nm_file_list_spec], [1], 3872 _LT_DECL([], [nm_file_list_spec], [1],
4182 [Specify filename containing input files for $NM]) 3873 [Specify filename containing input files for $NM])
4183 ]) # _LT_CMD_GLOBAL_SYMBOLS 3874 ]) # _LT_CMD_GLOBAL_SYMBOLS
4184 3875
4185 3876
4186 # _LT_COMPILER_PIC([TAGNAME]) 3877 # _LT_COMPILER_PIC([TAGNAME])
4187 # --------------------------- 3878 # ---------------------------
4188 m4_defun([_LT_COMPILER_PIC], 3879 m4_defun([_LT_COMPILER_PIC],
4189 [m4_require([_LT_TAG_COMPILER])dnl 3880 [m4_require([_LT_TAG_COMPILER])dnl
4190 _LT_TAGVAR(lt_prog_compiler_wl, $1)= 3881 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4191 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3882 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4192 _LT_TAGVAR(lt_prog_compiler_static, $1)= 3883 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4193 3884
4194 m4_if([$1], [CXX], [ 3885 m4_if([$1], [CXX], [
4195 # C++ specific cases for pic, static, wl, etc. 3886 # C++ specific cases for pic, static, wl, etc.
4196 if test yes = "$GXX"; then 3887 if test "$GXX" = yes; then
4197 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3888 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4198 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4199 3890
4200 case $host_os in 3891 case $host_os in
4201 aix*) 3892 aix*)
4202 # All AIX code is PIC. 3893 # All AIX code is PIC.
4203 if test ia64 = "$host_cpu"; then 3894 if test "$host_cpu" = ia64; then
4204 # AIX 5 now supports IA64 processor 3895 # AIX 5 now supports IA64 processor
4205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3896 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4206 fi 3897 fi
4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4208 ;; 3898 ;;
4209 3899
4210 amigaos*) 3900 amigaos*)
4211 case $host_cpu in 3901 case $host_cpu in
4212 powerpc) 3902 powerpc)
4213 # see comment about AmigaOS4 .so support 3903 # see comment about AmigaOS4 .so support
4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4215 ;; 3905 ;;
4216 m68k) 3906 m68k)
4217 # FIXME: we need at least 68020 code to build shared libraries, but 3907 # FIXME: we need at least 68020 code to build shared libraries, but
4218 # adding the '-m68020' flag to GCC prevents building anything better , 3908 # adding the `-m68020' flag to GCC prevents building anything better ,
4219 # like '-m68040'. 3909 # like `-m68040'.
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r estore-a4' 3910 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r estore-a4'
4221 ;; 3911 ;;
4222 esac 3912 esac
4223 ;; 3913 ;;
4224 3914
4225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4226 # PIC is the default for these OSes. 3916 # PIC is the default for these OSes.
4227 ;; 3917 ;;
4228 mingw* | cygwin* | os2* | pw32* | cegcc*) 3918 mingw* | cygwin* | os2* | pw32* | cegcc*)
4229 # This hack is so that the source file can tell whether it is being 3919 # This hack is so that the source file can tell whether it is being
4230 # built for inclusion in a dll (and should export symbols for example). 3920 # built for inclusion in a dll (and should export symbols for example).
4231 # Although the cygwin gcc ignores -fPIC, still need this for old-style 3921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4232 # (--disable-auto-import) libraries 3922 # (--disable-auto-import) libraries
4233 m4_if([$1], [GCJ], [], 3923 m4_if([$1], [GCJ], [],
4234 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3924 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4235 case $host_os in
4236 os2*)
4237 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4238 ;;
4239 esac
4240 ;; 3925 ;;
4241 darwin* | rhapsody*) 3926 darwin* | rhapsody*)
4242 # PIC is the default on this platform 3927 # PIC is the default on this platform
4243 # Common symbols not allowed in MH_DYLIB files 3928 # Common symbols not allowed in MH_DYLIB files
4244 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4245 ;; 3930 ;;
4246 *djgpp*) 3931 *djgpp*)
4247 # DJGPP does not support shared libraries at all 3932 # DJGPP does not support shared libraries at all
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3933 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4249 ;; 3934 ;;
(...skipping 29 matching lines...) Expand all
4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3964 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4280 ;; 3965 ;;
4281 *) 3966 *)
4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3967 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4283 ;; 3968 ;;
4284 esac 3969 esac
4285 else 3970 else
4286 case $host_os in 3971 case $host_os in
4287 aix[[4-9]]*) 3972 aix[[4-9]]*)
4288 # All AIX code is PIC. 3973 # All AIX code is PIC.
4289 » if test ia64 = "$host_cpu"; then 3974 » if test "$host_cpu" = ia64; then
4290 # AIX 5 now supports IA64 processor 3975 # AIX 5 now supports IA64 processor
4291 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4292 else 3977 else
4293 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4294 fi 3979 fi
4295 ;; 3980 ;;
4296 chorus*) 3981 chorus*)
4297 case $cc_basename in 3982 case $cc_basename in
4298 cxch68*) 3983 cxch68*)
4299 # Green Hills C++ Compiler 3984 # Green Hills C++ Compiler
(...skipping 20 matching lines...) Expand all
4320 ;; 4005 ;;
4321 esac 4006 esac
4322 ;; 4007 ;;
4323 freebsd* | dragonfly*) 4008 freebsd* | dragonfly*)
4324 # FreeBSD uses GNU C++ 4009 # FreeBSD uses GNU C++
4325 ;; 4010 ;;
4326 hpux9* | hpux10* | hpux11*) 4011 hpux9* | hpux10* | hpux11*)
4327 case $cc_basename in 4012 case $cc_basename in
4328 CC*) 4013 CC*)
4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4330 » _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4015 » _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4331 » if test ia64 != "$host_cpu"; then 4016 » if test "$host_cpu" != ia64; then
4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4333 fi 4018 fi
4334 ;; 4019 ;;
4335 aCC*) 4020 aCC*)
4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4337 » _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4022 » _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4338 case $host_cpu in 4023 case $host_cpu in
4339 hppa*64*|ia64*) 4024 hppa*64*|ia64*)
4340 # +Z the default 4025 # +Z the default
4341 ;; 4026 ;;
4342 *) 4027 *)
4343 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4344 ;; 4029 ;;
4345 esac 4030 esac
4346 ;; 4031 ;;
4347 *) 4032 *)
(...skipping 16 matching lines...) Expand all
4364 esac 4049 esac
4365 ;; 4050 ;;
4366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4367 case $cc_basename in 4052 case $cc_basename in
4368 KCC*) 4053 KCC*)
4369 # KAI C++ Compiler 4054 # KAI C++ Compiler
4370 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4055 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4372 ;; 4057 ;;
4373 ecpc* ) 4058 ecpc* )
4374 » # old Intel C++ for x86_64, which still supported -KPIC. 4059 » # old Intel C++ for x86_64 which still supported -KPIC.
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4061 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4062 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4378 ;; 4063 ;;
4379 icpc* ) 4064 icpc* )
4380 # Intel C++, used to be incompatible with GCC. 4065 # Intel C++, used to be incompatible with GCC.
4381 # ICC 10 doesn't accept -KPIC any more. 4066 # ICC 10 doesn't accept -KPIC any more.
4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4068 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
4420 ;; 4105 ;;
4421 mvs*) 4106 mvs*)
4422 case $cc_basename in 4107 case $cc_basename in
4423 cxx*) 4108 cxx*)
4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4425 ;; 4110 ;;
4426 *) 4111 *)
4427 ;; 4112 ;;
4428 esac 4113 esac
4429 ;; 4114 ;;
4430 netbsd*) 4115 netbsd* | netbsdelf*-gnu)
4431 ;; 4116 ;;
4432 *qnx* | *nto*) 4117 *qnx* | *nto*)
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise 4118 # QNX uses GNU C++, but need to define -shared option too, otherwise
4434 # it will coredump. 4119 # it will coredump.
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4436 ;; 4121 ;;
4437 osf3* | osf4* | osf5*) 4122 osf3* | osf4* | osf5*)
4438 case $cc_basename in 4123 case $cc_basename in
4439 KCC*) 4124 KCC*)
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
4509 ;; 4194 ;;
4510 vxworks*) 4195 vxworks*)
4511 ;; 4196 ;;
4512 *) 4197 *)
4513 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4198 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4514 ;; 4199 ;;
4515 esac 4200 esac
4516 fi 4201 fi
4517 ], 4202 ],
4518 [ 4203 [
4519 if test yes = "$GCC"; then 4204 if test "$GCC" = yes; then
4520 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4521 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4522 4207
4523 case $host_os in 4208 case $host_os in
4524 aix*) 4209 aix*)
4525 # All AIX code is PIC. 4210 # All AIX code is PIC.
4526 if test ia64 = "$host_cpu"; then 4211 if test "$host_cpu" = ia64; then
4527 # AIX 5 now supports IA64 processor 4212 # AIX 5 now supports IA64 processor
4528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4529 fi 4214 fi
4530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4531 ;; 4215 ;;
4532 4216
4533 amigaos*) 4217 amigaos*)
4534 case $host_cpu in 4218 case $host_cpu in
4535 powerpc) 4219 powerpc)
4536 # see comment about AmigaOS4 .so support 4220 # see comment about AmigaOS4 .so support
4537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4221 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4538 ;; 4222 ;;
4539 m68k) 4223 m68k)
4540 # FIXME: we need at least 68020 code to build shared libraries, but 4224 # FIXME: we need at least 68020 code to build shared libraries, but
4541 # adding the '-m68020' flag to GCC prevents building anything better , 4225 # adding the `-m68020' flag to GCC prevents building anything better ,
4542 # like '-m68040'. 4226 # like `-m68040'.
4543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r estore-a4' 4227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-r estore-a4'
4544 ;; 4228 ;;
4545 esac 4229 esac
4546 ;; 4230 ;;
4547 4231
4548 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4232 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4549 # PIC is the default for these OSes. 4233 # PIC is the default for these OSes.
4550 ;; 4234 ;;
4551 4235
4552 mingw* | cygwin* | pw32* | os2* | cegcc*) 4236 mingw* | cygwin* | pw32* | os2* | cegcc*)
4553 # This hack is so that the source file can tell whether it is being 4237 # This hack is so that the source file can tell whether it is being
4554 # built for inclusion in a dll (and should export symbols for example). 4238 # built for inclusion in a dll (and should export symbols for example).
4555 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4556 # (--disable-auto-import) libraries 4240 # (--disable-auto-import) libraries
4557 m4_if([$1], [GCJ], [], 4241 m4_if([$1], [GCJ], [],
4558 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4559 case $host_os in
4560 os2*)
4561 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4562 ;;
4563 esac
4564 ;; 4243 ;;
4565 4244
4566 darwin* | rhapsody*) 4245 darwin* | rhapsody*)
4567 # PIC is the default on this platform 4246 # PIC is the default on this platform
4568 # Common symbols not allowed in MH_DYLIB files 4247 # Common symbols not allowed in MH_DYLIB files
4569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4570 ;; 4249 ;;
4571 4250
4572 haiku*) 4251 haiku*)
4573 # PIC is the default for Haiku. 4252 # PIC is the default for Haiku.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
4624 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4303 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_com piler_pic, $1)" 4304 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_com piler_pic, $1)"
4626 fi 4305 fi
4627 ;; 4306 ;;
4628 esac 4307 esac
4629 else 4308 else
4630 # PORTME Check for flag to pass linker flags through the system compiler. 4309 # PORTME Check for flag to pass linker flags through the system compiler.
4631 case $host_os in 4310 case $host_os in
4632 aix*) 4311 aix*)
4633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4312 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4634 if test ia64 = "$host_cpu"; then 4313 if test "$host_cpu" = ia64; then
4635 # AIX 5 now supports IA64 processor 4314 # AIX 5 now supports IA64 processor
4636 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4637 else 4316 else
4638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4317 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4639 fi 4318 fi
4640 ;; 4319 ;;
4641 4320
4642 darwin* | rhapsody*)
4643 # PIC is the default on this platform
4644 # Common symbols not allowed in MH_DYLIB files
4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4646 case $cc_basename in
4647 nagfor*)
4648 # NAG Fortran compiler
4649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4650 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4651 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4652 ;;
4653 esac
4654 ;;
4655
4656 mingw* | cygwin* | pw32* | os2* | cegcc*) 4321 mingw* | cygwin* | pw32* | os2* | cegcc*)
4657 # This hack is so that the source file can tell whether it is being 4322 # This hack is so that the source file can tell whether it is being
4658 # built for inclusion in a dll (and should export symbols for example). 4323 # built for inclusion in a dll (and should export symbols for example).
4659 m4_if([$1], [GCJ], [], 4324 m4_if([$1], [GCJ], [],
4660 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4325 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4661 case $host_os in
4662 os2*)
4663 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4664 ;;
4665 esac
4666 ;; 4326 ;;
4667 4327
4668 hpux9* | hpux10* | hpux11*) 4328 hpux9* | hpux10* | hpux11*)
4669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4671 # not for PA HP-UX. 4331 # not for PA HP-UX.
4672 case $host_cpu in 4332 case $host_cpu in
4673 hppa*64*|ia64*) 4333 hppa*64*|ia64*)
4674 # +Z the default 4334 # +Z the default
4675 ;; 4335 ;;
4676 *) 4336 *)
4677 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4678 ;; 4338 ;;
4679 esac 4339 esac
4680 # Is there a better lt_prog_compiler_static that works with the bundled CC ? 4340 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
4681 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4341 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4682 ;; 4342 ;;
4683 4343
4684 irix5* | irix6* | nonstopux*) 4344 irix5* | irix6* | nonstopux*)
4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4686 # PIC (with -KPIC) is the default. 4346 # PIC (with -KPIC) is the default.
4687 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4347 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4688 ;; 4348 ;;
4689 4349
4690 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4691 case $cc_basename in 4351 case $cc_basename in
4692 # old Intel for x86_64, which still supported -KPIC. 4352 # old Intel for x86_64 which still supported -KPIC.
4693 ecc*) 4353 ecc*)
4694 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4354 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4355 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4696 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4356 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4697 ;; 4357 ;;
4698 # icc used to be incompatible with GCC. 4358 # icc used to be incompatible with GCC.
4699 # ICC 10 doesn't accept -KPIC any more. 4359 # ICC 10 doesn't accept -KPIC any more.
4700 icc* | ifort*) 4360 icc* | ifort*)
4701 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4362 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4704 ;; 4364 ;;
4705 # Lahey Fortran 8.1. 4365 # Lahey Fortran 8.1.
4706 lf95*) 4366 lf95*)
4707 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4367 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4368 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4369 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4710 ;; 4370 ;;
4711 nagfor*) 4371 nagfor*)
4712 # NAG Fortran compiler 4372 # NAG Fortran compiler
4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4373 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4714 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4716 ;; 4376 ;;
4717 tcc*)
4718 # Fabrice Bellard et al's Tiny C Compiler
4719 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4720 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4721 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4722 ;;
4723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4377 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4724 # Portland Group compilers (*not* the Pentium gcc compiler, 4378 # Portland Group compilers (*not* the Pentium gcc compiler,
4725 # which looks to be a dead project) 4379 # which looks to be a dead project)
4726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4728 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4729 ;; 4383 ;;
4730 ccc*) 4384 ccc*)
4731 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4732 # All Alpha code is PIC. 4386 # All Alpha code is PIC.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
4810 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4464 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4811 ;; 4465 ;;
4812 4466
4813 sysv4 | sysv4.2uw2* | sysv4.3*) 4467 sysv4 | sysv4.2uw2* | sysv4.3*)
4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4469 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4816 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4470 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4817 ;; 4471 ;;
4818 4472
4819 sysv4*MP*) 4473 sysv4*MP*)
4820 if test -d /usr/nec; then 4474 if test -d /usr/nec ;then
4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4475 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4476 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4823 fi 4477 fi
4824 ;; 4478 ;;
4825 4479
4826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4827 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4481 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4828 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4482 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4829 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4483 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4830 ;; 4484 ;;
4831 4485
4832 unicos*) 4486 unicos*)
4833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4487 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4834 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4488 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4835 ;; 4489 ;;
4836 4490
4837 uts4*) 4491 uts4*)
4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4840 ;; 4494 ;;
4841 4495
4842 *) 4496 *)
4843 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4497 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4844 ;; 4498 ;;
4845 esac 4499 esac
4846 fi 4500 fi
4847 ]) 4501 ])
4848 case $host_os in 4502 case $host_os in
4849 # For platforms that do not support PIC, -DPIC is meaningless: 4503 # For platforms which do not support PIC, -DPIC is meaningless:
4850 *djgpp*) 4504 *djgpp*)
4851 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4505 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4852 ;; 4506 ;;
4853 *) 4507 *)
4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@ &t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@ &t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4855 ;; 4509 ;;
4856 esac 4510 esac
4857 4511
4858 AC_CACHE_CHECK([for $compiler option to produce PIC], 4512 AC_CACHE_CHECK([for $compiler option to produce PIC],
4859 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 4513 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4905 m4_require([_LT_DECL_SED])dnl 4559 m4_require([_LT_DECL_SED])dnl
4906 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4560 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4907 m4_require([_LT_TAG_COMPILER])dnl 4561 m4_require([_LT_TAG_COMPILER])dnl
4908 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4562 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4909 m4_if([$1], [CXX], [ 4563 m4_if([$1], [CXX], [
4910 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4564 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4911 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4565 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4912 case $host_os in 4566 case $host_os in
4913 aix[[4-9]]*) 4567 aix[[4-9]]*)
4914 # If we're using GNU nm, then we don't want the "-C" option. 4568 # If we're using GNU nm, then we don't want the "-C" option.
4915 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4916 # Without the "-l" option, or with the "-B" option, AIX nm treats 4570 # Also, AIX nm treats weak defined symbols like other global defined
4917 # weak defined symbols like other global defined symbols, whereas 4571 # symbols, whereas GNU nm marks them as "W".
4918 # GNU nm marks them as "W".
4919 # While the 'weak' keyword is ignored in the Export File, we need
4920 # it in the Import File for the 'aix-soname' feature, so we have
4921 # to replace the "-B" option with "-P" for AIX nm.
4922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4923 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { pr int \$ 3 } } }'\'' | sort -u > $export_symbols' 4573 _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'
4924 else 4574 else
4925 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\ ([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T" ) || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 = = "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $e xport_symbols' 4575 _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'
4926 fi 4576 fi
4927 ;; 4577 ;;
4928 pw32*) 4578 pw32*)
4929 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 4579 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4930 ;; 4580 ;;
4931 cygwin* | mingw* | cegcc*) 4581 cygwin* | mingw* | cegcc*)
4932 case $cc_basename in 4582 case $cc_basename in
4933 cl*) 4583 cl*)
4934 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTO R_.*' 4584 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTO R_.*'
4935 ;; 4585 ;;
4936 *) 4586 *)
4937 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4938 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4588 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4939 ;; 4589 ;;
4940 esac 4590 esac
4941 ;; 4591 ;;
4592 linux* | k*bsd*-gnu | gnu*)
4593 _LT_TAGVAR(link_all_deplibs, $1)=no
4594 ;;
4942 *) 4595 *)
4943 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4596 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4944 ;; 4597 ;;
4945 esac 4598 esac
4946 ], [ 4599 ], [
4947 runpath_var= 4600 runpath_var=
4948 _LT_TAGVAR(allow_undefined_flag, $1)= 4601 _LT_TAGVAR(allow_undefined_flag, $1)=
4949 _LT_TAGVAR(always_export_symbols, $1)=no 4602 _LT_TAGVAR(always_export_symbols, $1)=no
4950 _LT_TAGVAR(archive_cmds, $1)= 4603 _LT_TAGVAR(archive_cmds, $1)=
4951 _LT_TAGVAR(archive_expsym_cmds, $1)= 4604 _LT_TAGVAR(archive_expsym_cmds, $1)=
(...skipping 13 matching lines...) Expand all
4965 _LT_TAGVAR(module_cmds, $1)= 4618 _LT_TAGVAR(module_cmds, $1)=
4966 _LT_TAGVAR(module_expsym_cmds, $1)= 4619 _LT_TAGVAR(module_expsym_cmds, $1)=
4967 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4620 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4968 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4621 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4969 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4622 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4970 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4623 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4971 # include_expsyms should be a list of space-separated symbols to be *always* 4624 # include_expsyms should be a list of space-separated symbols to be *always*
4972 # included in the symbol list 4625 # included in the symbol list
4973 _LT_TAGVAR(include_expsyms, $1)= 4626 _LT_TAGVAR(include_expsyms, $1)=
4974 # exclude_expsyms can be an extended regexp of symbols to exclude 4627 # exclude_expsyms can be an extended regexp of symbols to exclude
4975 # it will be wrapped by ' (' and ')$', so one must not match beginning or 4628 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4976 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 4629 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4977 # as well as any symbol that contains 'd'. 4630 # as well as any symbol that contains `d'.
4978 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4631 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4980 # platforms (ab)use it in PIC code, but their linkers get confused if 4633 # platforms (ab)use it in PIC code, but their linkers get confused if
4981 # the symbol is explicitly referenced. Since portable code cannot 4634 # the symbol is explicitly referenced. Since portable code cannot
4982 # rely on this symbol name, it's probably fine to never include it in 4635 # rely on this symbol name, it's probably fine to never include it in
4983 # preloaded symbol tables. 4636 # preloaded symbol tables.
4984 # Exclude shared library initialization/finalization symbols. 4637 # Exclude shared library initialization/finalization symbols.
4985 dnl Note also adjust exclude_expsyms for C++ above. 4638 dnl Note also adjust exclude_expsyms for C++ above.
4986 extract_expsyms_cmds= 4639 extract_expsyms_cmds=
4987 4640
4988 case $host_os in 4641 case $host_os in
4989 cygwin* | mingw* | pw32* | cegcc*) 4642 cygwin* | mingw* | pw32* | cegcc*)
4990 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4643 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4991 # When not using gcc, we currently assume that we are using 4644 # When not using gcc, we currently assume that we are using
4992 # Microsoft Visual C++. 4645 # Microsoft Visual C++.
4993 if test yes != "$GCC"; then 4646 if test "$GCC" != yes; then
4994 with_gnu_ld=no 4647 with_gnu_ld=no
4995 fi 4648 fi
4996 ;; 4649 ;;
4997 interix*) 4650 interix*)
4998 # we just hope/assume this is gcc and not c89 (= MSVC++) 4651 # we just hope/assume this is gcc and not c89 (= MSVC++)
4999 with_gnu_ld=yes 4652 with_gnu_ld=yes
5000 ;; 4653 ;;
5001 openbsd* | bitrig*) 4654 openbsd*)
5002 with_gnu_ld=no 4655 with_gnu_ld=no
5003 ;; 4656 ;;
4657 linux* | k*bsd*-gnu | gnu*)
4658 _LT_TAGVAR(link_all_deplibs, $1)=no
4659 ;;
5004 esac 4660 esac
5005 4661
5006 _LT_TAGVAR(ld_shlibs, $1)=yes 4662 _LT_TAGVAR(ld_shlibs, $1)=yes
5007 4663
5008 # On some targets, GNU ld is compatible enough with the native linker 4664 # On some targets, GNU ld is compatible enough with the native linker
5009 # that we're better off using the native interface for both. 4665 # that we're better off using the native interface for both.
5010 lt_use_gnu_ld_interface=no 4666 lt_use_gnu_ld_interface=no
5011 if test yes = "$with_gnu_ld"; then 4667 if test "$with_gnu_ld" = yes; then
5012 case $host_os in 4668 case $host_os in
5013 aix*) 4669 aix*)
5014 # The AIX port of GNU ld has always aspired to compatibility 4670 # The AIX port of GNU ld has always aspired to compatibility
5015 # with the native linker. However, as the warning in the GNU ld 4671 # with the native linker. However, as the warning in the GNU ld
5016 # block says, versions before 2.19.5* couldn't really create working 4672 # block says, versions before 2.19.5* couldn't really create working
5017 # shared libraries, regardless of the interface used. 4673 # shared libraries, regardless of the interface used.
5018 case `$LD -v 2>&1` in 4674 case `$LD -v 2>&1` in
5019 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 4675 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5020 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 4676 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5021 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 4677 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5022 *) 4678 *)
5023 lt_use_gnu_ld_interface=yes 4679 lt_use_gnu_ld_interface=yes
5024 ;; 4680 ;;
5025 esac 4681 esac
5026 ;; 4682 ;;
5027 *) 4683 *)
5028 lt_use_gnu_ld_interface=yes 4684 lt_use_gnu_ld_interface=yes
5029 ;; 4685 ;;
5030 esac 4686 esac
5031 fi 4687 fi
5032 4688
5033 if test yes = "$lt_use_gnu_ld_interface"; then 4689 if test "$lt_use_gnu_ld_interface" = yes; then
5034 # If archive_cmds runs LD, not CC, wlarc should be empty 4690 # If archive_cmds runs LD, not CC, wlarc should be empty
5035 wlarc='$wl' 4691 wlarc='${wl}'
5036 4692
5037 # Set some defaults for GNU ld with shared library support. These 4693 # Set some defaults for GNU ld with shared library support. These
5038 # are reset later if shared libraries are not supported. Putting them 4694 # are reset later if shared libraries are not supported. Putting them
5039 # here allows them to be overridden if necessary. 4695 # here allows them to be overridden if necessary.
5040 runpath_var=LD_RUN_PATH 4696 runpath_var=LD_RUN_PATH
5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 4697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 4698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5043 # ancient GNU ld didn't support --whole-archive et. al. 4699 # ancient GNU ld didn't support --whole-archive et. al.
5044 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4700 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5045 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 4701 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenien ce '"$wlarc"'--no-whole-archive'
5046 else 4702 else
5047 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4703 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5048 fi 4704 fi
5049 supports_anon_versioning=no 4705 supports_anon_versioning=no
5050 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 4706 case `$LD -v 2>&1` in
5051 *GNU\ gold*) supports_anon_versioning=yes ;; 4707 *GNU\ gold*) supports_anon_versioning=yes ;;
5052 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4708 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4709 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4710 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5055 *\ 2.11.*) ;; # other 2.11 versions 4711 *\ 2.11.*) ;; # other 2.11 versions
5056 *) supports_anon_versioning=yes ;; 4712 *) supports_anon_versioning=yes ;;
5057 esac 4713 esac
5058 4714
5059 # See if GNU ld supports shared libraries. 4715 # See if GNU ld supports shared libraries.
5060 case $host_os in 4716 case $host_os in
5061 aix[[3-9]]*) 4717 aix[[3-9]]*)
5062 # On AIX/PPC, the GNU linker is very broken 4718 # On AIX/PPC, the GNU linker is very broken
5063 if test ia64 != "$host_cpu"; then 4719 if test "$host_cpu" != ia64; then
5064 _LT_TAGVAR(ld_shlibs, $1)=no 4720 _LT_TAGVAR(ld_shlibs, $1)=no
5065 cat <<_LT_EOF 1>&2 4721 cat <<_LT_EOF 1>&2
5066 4722
5067 *** Warning: the GNU linker, at least up to release 2.19, is reported 4723 *** Warning: the GNU linker, at least up to release 2.19, is reported
5068 *** to be unable to reliably create shared libraries on AIX. 4724 *** to be unable to reliably create shared libraries on AIX.
5069 *** Therefore, libtool is disabling shared libraries support. If you 4725 *** Therefore, libtool is disabling shared libraries support. If you
5070 *** really care for shared libraries, you may want to install binutils 4726 *** really care for shared libraries, you may want to install binutils
5071 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 4727 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5072 *** You will then need to restart the configuration process. 4728 *** You will then need to restart the configuration process.
5073 4729
5074 _LT_EOF 4730 _LT_EOF
5075 fi 4731 fi
5076 ;; 4732 ;;
5077 4733
5078 amigaos*) 4734 amigaos*)
5079 case $host_cpu in 4735 case $host_cpu in
5080 powerpc) 4736 powerpc)
5081 # see comment about AmigaOS4 .so support 4737 # see comment about AmigaOS4 .so support
5082 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags $wl-soname $wl$soname -o $lib' 4738 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname -o $lib'
5083 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4739 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5084 ;; 4740 ;;
5085 m68k) 4741 m68k)
5086 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi r && a2ixlibrary -32)' 4742 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi r && a2ixlibrary -32)'
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4743 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5088 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4744 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5089 ;; 4745 ;;
5090 esac 4746 esac
5091 ;; 4747 ;;
5092 4748
5093 beos*) 4749 beos*)
5094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5095 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4751 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5097 # support --undefined. This deserves some investigation. FIXME 4753 # support --undefined. This deserves some investigation. FIXME
5098 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f lags $wl-soname $wl$soname -o $lib' 4754 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f lags ${wl}-soname $wl$soname -o $lib'
5099 else 4755 else
5100 _LT_TAGVAR(ld_shlibs, $1)=no 4756 _LT_TAGVAR(ld_shlibs, $1)=no
5101 fi 4757 fi
5102 ;; 4758 ;;
5103 4759
5104 cygwin* | mingw* | pw32* | cegcc*) 4760 cygwin* | mingw* | pw32* | cegcc*)
5105 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4761 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5106 # as there is no search path for DLLs. 4762 # as there is no search path for DLLs.
5107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4763 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5108 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 4764 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4765 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5110 _LT_TAGVAR(always_export_symbols, $1)=no 4766 _LT_TAGVAR(always_export_symbols, $1)=no
5111 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4767 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5112 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4768 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5113 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4769 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5114 4770
5115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5116 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-impli b -Xlinker $lib'
5117 » # If the export-symbols file already is a .def file, use it as 4773 » # If the export-symbols file already is a .def file (1st line
5118 » # is; otherwise, prepend EXPORTS... 4774 » # is EXPORTS), use it as is; otherwise, prepend...
5119 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]) ; then 4775 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols` " = xEXPORTS; then
5120 cp $export_symbols $output_objdir/$soname.def; 4776 » cp $export_symbols $output_objdir/$soname.def;
5121 else 4777 » else
5122 echo EXPORTS > $output_objdir/$soname.def; 4778 » echo EXPORTS > $output_objdir/$soname.def;
5123 cat $export_symbols >> $output_objdir/$soname.def; 4779 » cat $export_symbols >> $output_objdir/$soname.def;
5124 fi~ 4780 » fi~
5125 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xl inker $lib' 4781 » $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
5126 else 4782 else
5127 _LT_TAGVAR(ld_shlibs, $1)=no 4783 _LT_TAGVAR(ld_shlibs, $1)=no
5128 fi 4784 fi
5129 ;; 4785 ;;
5130 4786
5131 haiku*) 4787 haiku*)
5132 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flag s $wl-soname $wl$soname -o $lib' 4788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flag s ${wl}-soname $wl$soname -o $lib'
5133 _LT_TAGVAR(link_all_deplibs, $1)=yes 4789 _LT_TAGVAR(link_all_deplibs, $1)=yes
5134 ;; 4790 ;;
5135 4791
5136 os2*)
5137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5138 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5139 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5140 shrext_cmds=.dll
5141 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINS TANCE TERMINSTANCE" > $output_objdir/$libname.def~
5142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5144 $ECHO EXPORTS >> $output_objdir/$libname.def~
5145 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def ~
5146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
5147 emximp -o $lib $output_objdir/$libname.def'
5148 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5151 $ECHO EXPORTS >> $output_objdir/$libname.def~
5152 prefix_cmds="$SED"~
5153 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5154 prefix_cmds="$prefix_cmds -e 1d";
5155 fi~
5156 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5157 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
5159 emximp -o $lib $output_objdir/$libname.def'
5160 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libn ame}_dll.a $output_objdir/$libname.def'
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162 ;;
5163
5164 interix[[3-9]]*) 4792 interix[[3-9]]*)
5165 _LT_TAGVAR(hardcode_direct, $1)=no 4793 _LT_TAGVAR(hardcode_direct, $1)=no
5166 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 4795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5168 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 4796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5170 # Instead, shared libraries are loaded at an image base (0x10000000 by 4798 # Instead, shared libraries are loaded at an image base (0x10000000 by
5171 # default) and relocated if they conflict, which is a slow very memory 4799 # default) and relocated if they conflict, which is a slow very memory
5172 # consuming and fragmenting process. To avoid this, we pick a random, 4800 # consuming and fragmenting process. To avoid this, we pick a random,
5173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5174 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $com piler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 26214 4 + 1342177280` -o $lib' 4803 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $com piler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 2 62144 + 1342177280` -o $lib'
5176 _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-b ase,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4804 _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}--i mage-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5177 ;; 4805 ;;
5178 4806
5179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4807 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5180 tmp_diet=no 4808 tmp_diet=no
5181 if test linux-dietlibc = "$host_os"; then 4809 if test "$host_os" = linux-dietlibc; then
5182 case $cc_basename in 4810 case $cc_basename in
5183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn) 4811 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
5184 esac 4812 esac
5185 fi 4813 fi
5186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4814 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5187 » && test no = "$tmp_diet" 4815 » && test "$tmp_diet" = no
5188 then 4816 then
5189 tmp_addflag=' $pic_flag' 4817 tmp_addflag=' $pic_flag'
5190 tmp_sharedflag='-shared' 4818 tmp_sharedflag='-shared'
5191 case $cc_basename,$host_cpu in 4819 case $cc_basename,$host_cpu in
5192 pgcc*) # Portland Group C compiler 4820 pgcc*) # Portland Group C compiler
5193 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience, $conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4821 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc e,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5194 tmp_addflag=' $pic_flag' 4822 tmp_addflag=' $pic_flag'
5195 ;; 4823 ;;
5196 pgf77* | pgf90* | pgf95* | pgfortran*) 4824 pgf77* | pgf90* | pgf95* | pgfortran*)
5197 # Portland Group f77 and f90 compilers 4825 # Portland Group f77 and f90 compilers
5198 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience, $conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4826 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc e,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5199 tmp_addflag=' $pic_flag -Mnomain' ;; 4827 tmp_addflag=' $pic_flag -Mnomain' ;;
5200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4828 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5201 tmp_addflag=' -i_dynamic' ;; 4829 tmp_addflag=' -i_dynamic' ;;
5202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4830 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5203 tmp_addflag=' -i_dynamic -nofor_main' ;; 4831 tmp_addflag=' -i_dynamic -nofor_main' ;;
5204 ifc* | ifort*) # Intel Fortran compiler 4832 ifc* | ifort*) # Intel Fortran compiler
5205 tmp_addflag=' -nofor_main' ;; 4833 tmp_addflag=' -nofor_main' ;;
5206 lf95*) # Lahey Fortran 8.1 4834 lf95*) # Lahey Fortran 8.1
5207 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4835 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5208 tmp_sharedflag='--shared' ;; 4836 tmp_sharedflag='--shared' ;;
5209 nagfor*) # NAGFOR 5.3
5210 tmp_sharedflag='-Wl,-shared' ;;
5211 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4837 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5212 tmp_sharedflag='-qmkshrobj' 4838 tmp_sharedflag='-qmkshrobj'
5213 tmp_addflag= ;; 4839 tmp_addflag= ;;
5214 nvcc*) # Cuda Compiler Driver 2.2 4840 nvcc*) # Cuda Compiler Driver 2.2
5215 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv i n $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience, $conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 4841 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc e,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5216 _LT_TAGVAR(compiler_needs_object, $1)=yes 4842 _LT_TAGVAR(compiler_needs_object, $1)=yes
5217 ;; 4843 ;;
5218 esac 4844 esac
5219 case `$CC -V 2>&1 | sed 5q` in 4845 case `$CC -V 2>&1 | sed 5q` in
5220 *Sun\ C*) # Sun C 5.9 4846 *Sun\ C*) # Sun C 5.9
5221 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_conven ience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\" $new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whol e-archive' 4847 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_conv enience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience= \"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no- whole-archive'
5222 _LT_TAGVAR(compiler_needs_object, $1)=yes 4848 _LT_TAGVAR(compiler_needs_object, $1)=yes
5223 tmp_sharedflag='-G' ;; 4849 tmp_sharedflag='-G' ;;
5224 *Sun\ F*) # Sun Fortran 8.3 4850 *Sun\ F*) # Sun Fortran 8.3
5225 tmp_sharedflag='-G' ;; 4851 tmp_sharedflag='-G' ;;
5226 esac 4852 esac
5227 » _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib objs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 4853 » _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib objs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5228 4854
5229 if test yes = "$supports_anon_versioning"; then 4855 if test "x$supports_anon_versioning" = xyes; then
5230 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir /$libname.ver~ 4856 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir /$libname.ver~
5231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~ 4857 » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
5232 echo "local: *; };" >> $output_objdir/$libname.ver~ 4858 » echo "local: *; };" >> $output_objdir/$libname.ver~
5233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $ lib' 4859 » $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve r -o $lib'
5234 fi 4860 fi
5235 4861
5236 case $cc_basename in 4862 case $cc_basename in
5237 tcc*)
5238 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5239 ;;
5240 xlf* | bgf* | bgxlf* | mpixlf*) 4863 xlf* | bgf* | bgxlf* | mpixlf*)
5241 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5242 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience - -no-whole-archive' 4865 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience - -no-whole-archive'
5243 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 4866 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5244 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_fl ags -soname $soname -o $lib' 4867 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_fl ags -soname $soname -o $lib'
5245 » if test yes = "$supports_anon_versioning"; then 4868 » if test "x$supports_anon_versioning" = xyes; then
5246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd ir/$libname.ver~ 4869 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd ir/$libname.ver~
5247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~ 4870 » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
5248 echo "local: *; };" >> $output_objdir/$libname.ver~ 4871 » echo "local: *; };" >> $output_objdir/$libname.ver~
5249 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi on-script $output_objdir/$libname.ver -o $lib' 4872 » $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi on-script $output_objdir/$libname.ver -o $lib'
5250 fi 4873 fi
5251 ;; 4874 ;;
5252 esac 4875 esac
5253 else 4876 else
5254 _LT_TAGVAR(ld_shlibs, $1)=no 4877 _LT_TAGVAR(ld_shlibs, $1)=no
5255 fi 4878 fi
5256 ;; 4879 ;;
5257 4880
5258 netbsd*) 4881 netbsd* | netbsdelf*-gnu)
5259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5260 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_ flags -o $lib' 4883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_ flags -o $lib'
5261 wlarc= 4884 wlarc=
5262 else 4885 else
5263 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags $wl-soname $wl$soname -o $lib' 4886 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
5264 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy mbols -o $lib' 4887 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$expor t_symbols -o $lib'
5265 fi 4888 fi
5266 ;; 4889 ;;
5267 4890
5268 solaris*) 4891 solaris*)
5269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5270 _LT_TAGVAR(ld_shlibs, $1)=no 4893 _LT_TAGVAR(ld_shlibs, $1)=no
5271 cat <<_LT_EOF 1>&2 4894 cat <<_LT_EOF 1>&2
5272 4895
5273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 4896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5274 *** create shared libraries on Solaris systems. Therefore, libtool 4897 *** create shared libraries on Solaris systems. Therefore, libtool
5275 *** is disabling shared libraries support. We urge you to upgrade GNU 4898 *** is disabling shared libraries support. We urge you to upgrade GNU
5276 *** binutils to release 2.9.1 or newer. Another option is to modify 4899 *** binutils to release 2.9.1 or newer. Another option is to modify
5277 *** your PATH or compiler configuration so that the native linker is 4900 *** your PATH or compiler configuration so that the native linker is
5278 *** used, and then restart. 4901 *** used, and then restart.
5279 4902
5280 _LT_EOF 4903 _LT_EOF
5281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n 4904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
5282 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags $wl-soname $wl$soname -o $lib' 4905 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
5283 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy mbols -o $lib' 4906 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$expor t_symbols -o $lib'
5284 else 4907 else
5285 _LT_TAGVAR(ld_shlibs, $1)=no 4908 _LT_TAGVAR(ld_shlibs, $1)=no
5286 fi 4909 fi
5287 ;; 4910 ;;
5288 4911
5289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5290 case `$LD -v 2>&1` in 4913 case `$LD -v 2>&1` in
5291 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4914 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5292 _LT_TAGVAR(ld_shlibs, $1)=no 4915 _LT_TAGVAR(ld_shlibs, $1)=no
5293 cat <<_LT_EOF 1>&2 4916 cat <<_LT_EOF 1>&2
5294 4917
5295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 4918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5296 *** reliably create shared libraries on SCO systems. Therefore, libtool 4919 *** reliably create shared libraries on SCO systems. Therefore, libtool
5297 *** is disabling shared libraries support. We urge you to upgrade GNU 4920 *** is disabling shared libraries support. We urge you to upgrade GNU
5298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 4921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5299 *** your PATH or compiler configuration so that the native linker is 4922 *** your PATH or compiler configuration so that the native linker is
5300 *** used, and then restart. 4923 *** used, and then restart.
5301 4924
5302 _LT_EOF 4925 _LT_EOF
5303 ;; 4926 ;;
5304 *) 4927 *)
5305 # For security reasons, it is highly recommended that you always 4928 # For security reasons, it is highly recommended that you always
5306 # use absolute paths for naming shared libraries, and exclude the 4929 # use absolute paths for naming shared libraries, and exclude the
5307 # DT_RUNPATH tag from executables and libraries. But doing so 4930 # DT_RUNPATH tag from executables and libraries. But doing so
5308 # requires that you compile everything twice, which is a pain. 4931 # requires that you compile everything twice, which is a pain.
5309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen 4932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
5310 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 4933 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5311 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags $wl-soname $wl$soname -o $lib' 4934 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname -o $lib'
5312 » _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' 4935 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symb ols -o $lib'
5313 else 4936 else
5314 _LT_TAGVAR(ld_shlibs, $1)=no 4937 _LT_TAGVAR(ld_shlibs, $1)=no
5315 fi 4938 fi
5316 ;; 4939 ;;
5317 esac 4940 esac
5318 ;; 4941 ;;
5319 4942
5320 sunos4*) 4943 sunos4*)
5321 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l ibobjs $deplibs $linker_flags' 4944 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l ibobjs $deplibs $linker_flags'
5322 wlarc= 4945 wlarc=
5323 _LT_TAGVAR(hardcode_direct, $1)=yes 4946 _LT_TAGVAR(hardcode_direct, $1)=yes
5324 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4947 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5325 ;; 4948 ;;
5326 4949
5327 *) 4950 *)
5328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5329 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags $wl-soname $wl$soname -o $lib' 4952 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
5330 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_sy mbols -o $lib' 4953 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $dep libs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$expor t_symbols -o $lib'
5331 else 4954 else
5332 _LT_TAGVAR(ld_shlibs, $1)=no 4955 _LT_TAGVAR(ld_shlibs, $1)=no
5333 fi 4956 fi
5334 ;; 4957 ;;
5335 esac 4958 esac
5336 4959
5337 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 4960 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5338 runpath_var= 4961 runpath_var=
5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5340 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4963 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5341 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4964 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5342 fi 4965 fi
5343 else 4966 else
5344 # PORTME fill in a description of your system's linker (not GNU ld) 4967 # PORTME fill in a description of your system's linker (not GNU ld)
5345 case $host_os in 4968 case $host_os in
5346 aix3*) 4969 aix3*)
5347 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5348 _LT_TAGVAR(always_export_symbols, $1)=yes 4971 _LT_TAGVAR(always_export_symbols, $1)=yes
5349 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobj s $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $ lib $output_objdir/$soname' 4972 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobj s $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $ lib $output_objdir/$soname'
5350 # Note: this linker hardcodes the directories in LIBPATH if there 4973 # Note: this linker hardcodes the directories in LIBPATH if there
5351 # are no directories specified by -L. 4974 # are no directories specified by -L.
5352 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4975 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5353 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 4976 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5354 # Neither direct hardcoding nor static linking is supported with a 4977 # Neither direct hardcoding nor static linking is supported with a
5355 # broken collect2. 4978 # broken collect2.
5356 _LT_TAGVAR(hardcode_direct, $1)=unsupported 4979 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5357 fi 4980 fi
5358 ;; 4981 ;;
5359 4982
5360 aix[[4-9]]*) 4983 aix[[4-9]]*)
5361 if test ia64 = "$host_cpu"; then 4984 if test "$host_cpu" = ia64; then
5362 # On IA64, the linker does run time linking by default, so we don't 4985 # On IA64, the linker does run time linking by default, so we don't
5363 # have to do anything special. 4986 # have to do anything special.
5364 aix_use_runtimelinking=no 4987 aix_use_runtimelinking=no
5365 exp_sym_flag='-Bexport' 4988 exp_sym_flag='-Bexport'
5366 » no_entry_flag= 4989 » no_entry_flag=""
5367 else 4990 else
5368 # If we're using GNU nm, then we don't want the "-C" option. 4991 # If we're using GNU nm, then we don't want the "-C" option.
5369 » # -C means demangle to GNU nm, but means don't demangle to AIX nm. 4992 » # -C means demangle to AIX nm, but means don't demangle with GNU nm
5370 » # Without the "-l" option, or with the "-B" option, AIX nm treats 4993 » # Also, AIX nm treats weak defined symbols like other global
5371 » # weak defined symbols like other global defined symbols, whereas 4994 » # defined symbols, whereas GNU nm marks them as "W".
5372 » # GNU nm marks them as "W".
5373 » # While the 'weak' keyword is ignored in the Export File, we need
5374 » # it in the Import File for the 'aix-soname' feature, so we have
5375 » # to replace the "-B" option with "-P" for AIX nm.
5376 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5377 » _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 4996 » _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_symbol s'
5378 else 4997 else
5379 » _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\'' s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 4998 » _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'
5380 fi 4999 fi
5381 aix_use_runtimelinking=no 5000 aix_use_runtimelinking=no
5382 5001
5383 # Test if we are trying to use run time linking or normal 5002 # Test if we are trying to use run time linking or normal
5384 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5385 » # have runtime linking enabled, and use it for executables. 5004 » # need to do runtime linking.
5386 » # For shared libraries, we enable/disable runtime linking
5387 » # depending on the kind of the shared library created -
5388 » # when "with_aix_soname,aix_use_runtimelinking" is:
5389 » # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5390 » # "aix,yes" lib.so shared, rtl:yes, for executables
5391 » # lib.a static archive
5392 » # "both,no" lib.so.V(shr.o) shared, rtl:yes
5393 » # lib.a(lib.so.V) shared, rtl:no, for executables
5394 » # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5395 » # lib.a(lib.so.V) shared, rtl:no
5396 » # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5397 » # lib.a static archive
5398 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5005 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5399 for ld_flag in $LDFLAGS; do 5006 for ld_flag in $LDFLAGS; do
5400 » if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 5007 » if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5401 aix_use_runtimelinking=yes 5008 aix_use_runtimelinking=yes
5402 break 5009 break
5403 fi 5010 fi
5404 done 5011 done
5405 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5406 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5407 # so we don't have lib.a shared libs to link our executables.
5408 # We have to force runtime linking in this case.
5409 aix_use_runtimelinking=yes
5410 LDFLAGS="$LDFLAGS -Wl,-brtl"
5411 fi
5412 ;; 5012 ;;
5413 esac 5013 esac
5414 5014
5415 exp_sym_flag='-bexport' 5015 exp_sym_flag='-bexport'
5416 no_entry_flag='-bnoentry' 5016 no_entry_flag='-bnoentry'
5417 fi 5017 fi
5418 5018
5419 # When large executables or shared objects are built, AIX ld can 5019 # When large executables or shared objects are built, AIX ld can
5420 # have problems creating the table of contents. If linking a library 5020 # have problems creating the table of contents. If linking a library
5421 # or program results in "error TOC overflow" add -mminimal-toc to 5021 # or program results in "error TOC overflow" add -mminimal-toc to
5422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5424 5024
5425 _LT_TAGVAR(archive_cmds, $1)='' 5025 _LT_TAGVAR(archive_cmds, $1)=''
5426 _LT_TAGVAR(hardcode_direct, $1)=yes 5026 _LT_TAGVAR(hardcode_direct, $1)=yes
5427 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5027 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5428 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5028 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5429 _LT_TAGVAR(link_all_deplibs, $1)=yes 5029 _LT_TAGVAR(link_all_deplibs, $1)=yes
5430 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5030 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5431 case $with_aix_soname,$aix_use_runtimelinking in
5432 aix,*) ;; # traditional, no import file
5433 svr4,* | *,yes) # use import file
5434 » # The Import File defines what to hardcode.
5435 » _LT_TAGVAR(hardcode_direct, $1)=no
5436 » _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5437 » ;;
5438 esac
5439 5031
5440 if test yes = "$GCC"; then 5032 if test "$GCC" = yes; then
5441 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5033 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5442 # We only want to do this on AIX 4.2 and lower, the check 5034 # We only want to do this on AIX 4.2 and lower, the check
5443 # below for broken collect2 doesn't work under 4.3+ 5035 # below for broken collect2 doesn't work under 4.3+
5444 » collect2name=`$CC -print-prog-name=collect2` 5036 » collect2name=`${CC} -print-prog-name=collect2`
5445 if test -f "$collect2name" && 5037 if test -f "$collect2name" &&
5446 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5038 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5447 then 5039 then
5448 # We have reworked collect2 5040 # We have reworked collect2
5449 : 5041 :
5450 else 5042 else
5451 # We have old collect2 5043 # We have old collect2
5452 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5044 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5453 # It fails to find uninstalled libraries when the uninstalled 5045 # It fails to find uninstalled libraries when the uninstalled
5454 # path is not listed in the libpath. Setting hardcode_minus_L 5046 # path is not listed in the libpath. Setting hardcode_minus_L
5455 # to unsupported forces relinking 5047 # to unsupported forces relinking
5456 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5048 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5457 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5458 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5050 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5459 fi 5051 fi
5460 ;; 5052 ;;
5461 esac 5053 esac
5462 shared_flag='-shared' 5054 shared_flag='-shared'
5463 » if test yes = "$aix_use_runtimelinking"; then 5055 » if test "$aix_use_runtimelinking" = yes; then
5464 » shared_flag="$shared_flag "'$wl-G' 5056 » shared_flag="$shared_flag "'${wl}-G'
5465 fi 5057 fi
5466 » # Need to ensure runtime linking is disabled for the traditional 5058 » _LT_TAGVAR(link_all_deplibs, $1)=no
5467 » # shared library, or the linker may eventually find shared libraries
5468 » # /with/ Import File - we do not want to mix them.
5469 » shared_flag_aix='-shared'
5470 » shared_flag_svr4='-shared $wl-G'
5471 else 5059 else
5472 # not using gcc 5060 # not using gcc
5473 » if test ia64 = "$host_cpu"; then 5061 » if test "$host_cpu" = ia64; then
5474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5475 # chokes on -Wl,-G. The following line is correct: 5063 # chokes on -Wl,-G. The following line is correct:
5476 shared_flag='-G' 5064 shared_flag='-G'
5477 else 5065 else
5478 » if test yes = "$aix_use_runtimelinking"; then 5066 » if test "$aix_use_runtimelinking" = yes; then
5479 » shared_flag='$wl-G' 5067 » shared_flag='${wl}-G'
5480 else 5068 else
5481 » shared_flag='$wl-bM:SRE' 5069 » shared_flag='${wl}-bM:SRE'
5482 fi 5070 fi
5483 shared_flag_aix='$wl-bM:SRE'
5484 shared_flag_svr4='$wl-G'
5485 fi 5071 fi
5486 fi 5072 fi
5487 5073
5488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 5074 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5489 # It seems that -bexpall does not export symbols beginning with 5075 # It seems that -bexpall does not export symbols beginning with
5490 # underscore (_), so it is better to generate a list of symbols to export. 5076 # underscore (_), so it is better to generate a list of symbols to export.
5491 _LT_TAGVAR(always_export_symbols, $1)=yes 5077 _LT_TAGVAR(always_export_symbols, $1)=yes
5492 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 5078 if test "$aix_use_runtimelinking" = yes; then
5493 # Warning - without using the other runtime loading flags (-brtl), 5079 # Warning - without using the other runtime loading flags (-brtl),
5494 # -berok will link without error, but may produce a broken library. 5080 # -berok will link without error, but may produce a broken library.
5495 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5496 # Determine the default libpath from the value encoded in an 5082 # Determine the default libpath from the value encoded in an
5497 # empty executable. 5083 # empty executable.
5498 _LT_SYS_MODULE_PATH_AIX([$1]) 5084 _LT_SYS_MODULE_PATH_AIX([$1])
5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_l ibpath" 5085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix _libpath"
5500 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libo bjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_f lag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_fl ag:\$export_symbols' '$shared_flag 5086 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libo bjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefin ed_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5501 else 5087 else
5502 » if test ia64 = "$host_cpu"; then 5088 » if test "$host_cpu" = ia64; then
5503 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib ' 5089 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/l ib'
5504 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5090 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5505 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob jdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_ undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 5091 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob jdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${a llow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5506 else 5092 else
5507 # Determine the default libpath from the value encoded in an 5093 # Determine the default libpath from the value encoded in an
5508 # empty executable. 5094 # empty executable.
5509 _LT_SYS_MODULE_PATH_AIX([$1]) 5095 _LT_SYS_MODULE_PATH_AIX([$1])
5510 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_ libpath" 5096 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai x_libpath"
5511 # Warning - without using the other run time loading flags, 5097 # Warning - without using the other run time loading flags,
5512 # -berok will link without error, but may produce a broken library. 5098 # -berok will link without error, but may produce a broken library.
5513 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5099 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5514 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5100 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5515 » if test yes = "$with_gnu_ld"; then 5101 » if test "$with_gnu_ld" = yes; then
5516 # We only use this code for GNU lds that support --whole-archive. 5102 # We only use this code for GNU lds that support --whole-archive.
5517 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenie nce $wl--no-whole-archive' 5103 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven ience ${wl}--no-whole-archive'
5518 else 5104 else
5519 # Exported symbols can be pulled into shared objects from archives 5105 # Exported symbols can be pulled into shared objects from archives
5520 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5106 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5521 fi 5107 fi
5522 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5108 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5523 » _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d ~$MKDIR $output_objdir/$realname.d' 5109 » # This is similar to how AIX traditionally builds its shared libraries .
5524 » # -brtl affects multiple linker settings, -berok does not and is overr idden later 5110 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ob jdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_s ymbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $o utput_objdir/$soname'
5525 » compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e " s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5526 » if test svr4 != "$with_aix_soname"; then
5527 » # This is similar to how AIX traditionally builds its shared librari es.
5528 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds , $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $d eplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undef ined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realna me.d/$soname'
5529 » fi
5530 » if test aix != "$with_aix_soname"; then
5531 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds , $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_me mber_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$exp ort_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_ar chive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$s hared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdi r/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_a rchive_member_spec.imp'
5532 » else
5533 » # used by -dlpreopen to get the symbols
5534 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds , $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5535 » fi
5536 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5537 fi 5111 fi
5538 fi 5112 fi
5539 ;; 5113 ;;
5540 5114
5541 amigaos*) 5115 amigaos*)
5542 case $host_cpu in 5116 case $host_cpu in
5543 powerpc) 5117 powerpc)
5544 # see comment about AmigaOS4 .so support 5118 # see comment about AmigaOS4 .so support
5545 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags $wl-soname $wl$soname -o $lib' 5119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname -o $lib'
5546 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5120 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5547 ;; 5121 ;;
5548 m68k) 5122 m68k)
5549 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi r && a2ixlibrary -32)' 5123 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$E CHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIB RARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_ob jdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdi r && a2ixlibrary -32)'
5550 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5551 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5125 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5552 ;; 5126 ;;
5553 esac 5127 esac
5554 ;; 5128 ;;
5555 5129
5556 bsdi[[45]]*) 5130 bsdi[[45]]*)
5557 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5131 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5558 ;; 5132 ;;
5559 5133
5560 cygwin* | mingw* | pw32* | cegcc*) 5134 cygwin* | mingw* | pw32* | cegcc*)
5561 # When not using gcc, we currently assume that we are using 5135 # When not using gcc, we currently assume that we are using
5562 # Microsoft Visual C++. 5136 # Microsoft Visual C++.
5563 # hardcode_libdir_flag_spec is actually meaningless, as there is 5137 # hardcode_libdir_flag_spec is actually meaningless, as there is
5564 # no search path for DLLs. 5138 # no search path for DLLs.
5565 case $cc_basename in 5139 case $cc_basename in
5566 cl*) 5140 cl*)
5567 # Native MSVC 5141 # Native MSVC
5568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5569 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5143 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5570 _LT_TAGVAR(always_export_symbols, $1)=yes 5144 _LT_TAGVAR(always_export_symbols, $1)=yes
5571 _LT_TAGVAR(file_list_spec, $1)='@' 5145 _LT_TAGVAR(file_list_spec, $1)='@'
5572 # Tell ltmain to make .lib files, not .a files. 5146 # Tell ltmain to make .lib files, not .a files.
5573 libext=lib 5147 libext=lib
5574 # Tell ltmain to make .dll files, not .so files. 5148 # Tell ltmain to make .dll files, not .so files.
5575 » shrext_cmds=.dll 5149 » shrext_cmds=".dll"
5576 # FIXME: Setting linknames here is a bad hack. 5150 # FIXME: Setting linknames here is a bad hack.
5577 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $co mpiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~lin knames=' 5151 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $co mpiler_flags $deplibs -Wl,-dll~linknames='
5578 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]) ; then 5152 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols` " = xEXPORTS; then
5579 cp "$export_symbols" "$output_objdir/$soname.def"; 5153 » sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\ !p' < $export_symbols > $output_objdir/$soname.exp;
5580 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp" ; 5154 » else
5581 else 5155 » sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_s ymbols > $output_objdir/$soname.exp;
5582 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objd ir/$soname.exp; 5156 » fi~
5583 fi~ 5157 » $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@ $tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dl l.lib"~
5584 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@ $tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dl l.lib"~ 5158 » linknames='
5585 linknames='
5586 # The linker will not automatically build a static lib if we build a DLL . 5159 # The linker will not automatically build a static lib if we build a DLL .
5587 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5160 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5588 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5589 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIP TOR_.*' 5162 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIP TOR_.*'
5590 _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' 5163 _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'
5591 # Don't use ranlib 5164 # Don't use ranlib
5592 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5165 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5593 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5166 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5594 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5167 » lt_tool_outputfile="@TOOL_OUTPUT@"~
5595 case $lt_outputfile in 5168 » case $lt_outputfile in
5596 *.exe|*.EXE) ;; 5169 » *.exe|*.EXE) ;;
5597 *) 5170 » *)
5598 lt_outputfile=$lt_outputfile.exe 5171 » lt_outputfile="$lt_outputfile.exe"
5599 lt_tool_outputfile=$lt_tool_outputfile.exe 5172 » lt_tool_outputfile="$lt_tool_outputfile.exe"
5600 ;; 5173 » ;;
5601 esac~ 5174 » esac~
5602 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; th en 5175 » if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5603 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou rce:"$lt_tool_outputfile" || exit 1; 5176 » $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou rce:"$lt_tool_outputfile" || exit 1;
5604 $RM "$lt_outputfile.manifest"; 5177 » $RM "$lt_outputfile.manifest";
5605 fi' 5178 » fi'
5606 ;; 5179 ;;
5607 *) 5180 *)
5608 # Assume MSVC wrapper 5181 # Assume MSVC wrapper
5609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5610 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5611 # Tell ltmain to make .lib files, not .a files. 5184 # Tell ltmain to make .lib files, not .a files.
5612 libext=lib 5185 libext=lib
5613 # Tell ltmain to make .dll files, not .so files. 5186 # Tell ltmain to make .dll files, not .so files.
5614 » shrext_cmds=.dll 5187 » shrext_cmds=".dll"
5615 # FIXME: Setting linknames here is a bad hack. 5188 # FIXME: Setting linknames here is a bad hack.
5616 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func _echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5189 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func _echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5617 # The linker will automatically build a .lib file if we build a DLL. 5190 # The linker will automatically build a .lib file if we build a DLL.
5618 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5191 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5619 # FIXME: Should let the user specify the lib program. 5192 # FIXME: Should let the user specify the lib program.
5620 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5621 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5194 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5622 ;; 5195 ;;
5623 esac 5196 esac
5624 ;; 5197 ;;
(...skipping 29 matching lines...) Expand all
5654 5227
5655 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5656 freebsd* | dragonfly*) 5229 freebsd* | dragonfly*)
5657 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $depl ibs $compiler_flags' 5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $depl ibs $compiler_flags'
5658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5659 _LT_TAGVAR(hardcode_direct, $1)=yes 5232 _LT_TAGVAR(hardcode_direct, $1)=yes
5660 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5661 ;; 5234 ;;
5662 5235
5663 hpux9*) 5236 hpux9*)
5664 if test yes = "$GCC"; then 5237 if test "$GCC" = yes; then
5665 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pi c_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $com piler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$sonam e $lib' 5238 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pi c_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5666 else 5239 else
5667 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $inst all_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$out put_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 5240 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $inst all_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $outpu t_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5668 fi 5241 fi
5669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5670 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5243 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5671 _LT_TAGVAR(hardcode_direct, $1)=yes 5244 _LT_TAGVAR(hardcode_direct, $1)=yes
5672 5245
5673 # hardcode_minus_L: Not really in the search PATH, 5246 # hardcode_minus_L: Not really in the search PATH,
5674 # but as the default location of the library. 5247 # but as the default location of the library.
5675 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5248 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5676 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5249 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5677 ;; 5250 ;;
5678 5251
5679 hpux10*) 5252 hpux10*)
5680 if test yes,no = "$GCC,$with_gnu_ld"; then 5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5681 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl +b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5254 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5682 else 5255 else
5683 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l ib $libobjs $deplibs $linker_flags' 5256 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l ib $libobjs $deplibs $linker_flags'
5684 fi 5257 fi
5685 if test no = "$with_gnu_ld"; then 5258 if test "$with_gnu_ld" = no; then
5686 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5259 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5687 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5260 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5688 _LT_TAGVAR(hardcode_direct, $1)=yes 5261 _LT_TAGVAR(hardcode_direct, $1)=yes
5689 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5262 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5690 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5263 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5691 # hardcode_minus_L: Not really in the search PATH, 5264 # hardcode_minus_L: Not really in the search PATH,
5692 # but as the default location of the library. 5265 # but as the default location of the library.
5693 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5266 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5694 fi 5267 fi
5695 ;; 5268 ;;
5696 5269
5697 hpux11*) 5270 hpux11*)
5698 if test yes,no = "$GCC,$with_gnu_ld"; then 5271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5699 case $host_cpu in 5272 case $host_cpu in
5700 hppa*64*) 5273 hppa*64*)
5701 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $li bobjs $deplibs $compiler_flags' 5274 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5702 ;; 5275 ;;
5703 ia64*) 5276 ia64*)
5704 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $ wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5277 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$sona me ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5705 ;; 5278 ;;
5706 *) 5279 *)
5707 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $ wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5280 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$sona me ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5708 ;; 5281 ;;
5709 esac 5282 esac
5710 else 5283 else
5711 case $host_cpu in 5284 case $host_cpu in
5712 hppa*64*) 5285 hppa*64*)
5713 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5286 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $lib objs $deplibs $compiler_flags'
5714 ;; 5287 ;;
5715 ia64*) 5288 ia64*)
5716 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpa th -o $lib $libobjs $deplibs $compiler_flags' 5289 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefa ultrpath -o $lib $libobjs $deplibs $compiler_flags'
5717 ;; 5290 ;;
5718 *) 5291 *)
5719 m4_if($1, [], [ 5292 m4_if($1, [], [
5720 # Older versions of the 11.00 compiler do not understand -b yet 5293 # Older versions of the 11.00 compiler do not understand -b yet
5721 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe s) 5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe s)
5722 _LT_LINKER_OPTION([if $CC understands -b], 5295 _LT_LINKER_OPTION([if $CC understands -b],
5723 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5724 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$ins tall_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5297 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b $ {wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5725 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5298 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5726 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$insta ll_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5299 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${w l}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5727 ;; 5300 ;;
5728 esac 5301 esac
5729 fi 5302 fi
5730 if test no = "$with_gnu_ld"; then 5303 if test "$with_gnu_ld" = no; then
5731 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5304 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5732 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5305 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5733 5306
5734 case $host_cpu in 5307 case $host_cpu in
5735 hppa*64*|ia64*) 5308 hppa*64*|ia64*)
5736 _LT_TAGVAR(hardcode_direct, $1)=no 5309 _LT_TAGVAR(hardcode_direct, $1)=no
5737 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5310 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5738 ;; 5311 ;;
5739 *) 5312 *)
5740 _LT_TAGVAR(hardcode_direct, $1)=yes 5313 _LT_TAGVAR(hardcode_direct, $1)=yes
5741 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5314 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5742 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5315 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5743 5316
5744 # hardcode_minus_L: Not really in the search PATH, 5317 # hardcode_minus_L: Not really in the search PATH,
5745 # but as the default location of the library. 5318 # but as the default location of the library.
5746 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5319 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5747 ;; 5320 ;;
5748 esac 5321 esac
5749 fi 5322 fi
5750 ;; 5323 ;;
5751 5324
5752 irix5* | irix6* | nonstopux*) 5325 irix5* | irix6* | nonstopux*)
5753 if test yes = "$GCC"; then 5326 if test "$GCC" = yes; then
5754 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_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' 5327 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_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'
5755 # Try to use the -exported_symbol ld option, if it does not 5328 # Try to use the -exported_symbol ld option, if it does not
5756 # work, assume that -exports_file does not work either and 5329 # work, assume that -exports_file does not work either and
5757 # implicitly export all symbols. 5330 # implicitly export all symbols.
5758 # This should be the same for all languages, so no per-tag cache variabl e. 5331 # This should be the same for all languages, so no per-tag cache variabl e.
5759 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5760 [lt_cv_irix_exported_symbol], 5333 [lt_cv_irix_exported_symbol],
5761 » [save_LDFLAGS=$LDFLAGS 5334 » [save_LDFLAGS="$LDFLAGS"
5762 » LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_reg istry $wl/dev/null" 5335 » LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update _registry ${wl}/dev/null"
5763 AC_LINK_IFELSE( 5336 AC_LINK_IFELSE(
5764 [AC_LANG_SOURCE( 5337 [AC_LANG_SOURCE(
5765 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5338 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5766 [C++], [[int foo (void) { return 0; }]], 5339 [C++], [[int foo (void) { return 0; }]],
5767 [Fortran 77], [[ 5340 [Fortran 77], [[
5768 subroutine foo 5341 subroutine foo
5769 end]], 5342 end]],
5770 [Fortran], [[ 5343 [Fortran], [[
5771 subroutine foo 5344 subroutine foo
5772 end]])])], 5345 end]])])],
5773 [lt_cv_irix_exported_symbol=yes], 5346 [lt_cv_irix_exported_symbol=yes],
5774 [lt_cv_irix_exported_symbol=no]) 5347 [lt_cv_irix_exported_symbol=no])
5775 LDFLAGS=$save_LDFLAGS]) 5348 LDFLAGS="$save_LDFLAGS"])
5776 » if test yes = "$lt_cv_irix_exported_symbol"; then 5349 » if test "$lt_cv_irix_exported_symbol" = yes; then
5777 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $d eplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_ all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_lo cations $wl-exports_file $wl$export_symbols -o $lib' 5350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $d eplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_e cho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output _objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5778 fi 5351 fi
5779 else 5352 else
5780 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstr ing"` -update_registry $output_objdir/so_locations -o $lib' 5353 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstr ing"` -update_registry ${output_objdir}/so_locations -o $lib'
5781 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_ symbols -o $lib' 5354 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $expor t_symbols -o $lib'
5782 fi 5355 fi
5783 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5356 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5784 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5785 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5358 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5786 _LT_TAGVAR(inherit_rpath, $1)=yes 5359 _LT_TAGVAR(inherit_rpath, $1)=yes
5787 _LT_TAGVAR(link_all_deplibs, $1)=yes 5360 _LT_TAGVAR(link_all_deplibs, $1)=yes
5788 ;; 5361 ;;
5789 5362
5790 linux*) 5363 netbsd* | netbsdelf*-gnu)
5791 case $cc_basename in
5792 tcc*)
5793 » # Fabrice Bellard et al's Tiny C Compiler
5794 » _LT_TAGVAR(ld_shlibs, $1)=yes
5795 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $de plibs $compiler_flags'
5796 » ;;
5797 esac
5798 ;;
5799
5800 netbsd*)
5801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5802 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5365 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5803 else 5366 else
5804 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin ker_flags' # ELF 5367 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin ker_flags' # ELF
5805 fi 5368 fi
5806 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5807 _LT_TAGVAR(hardcode_direct, $1)=yes 5370 _LT_TAGVAR(hardcode_direct, $1)=yes
5808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5371 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5809 ;; 5372 ;;
5810 5373
5811 newsos6) 5374 newsos6)
5812 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5375 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5813 _LT_TAGVAR(hardcode_direct, $1)=yes 5376 _LT_TAGVAR(hardcode_direct, $1)=yes
5814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5377 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5815 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5378 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5816 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5379 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5817 ;; 5380 ;;
5818 5381
5819 *nto* | *qnx*) 5382 *nto* | *qnx*)
5820 ;; 5383 ;;
5821 5384
5822 openbsd* | bitrig*) 5385 openbsd*)
5823 if test -f /usr/libexec/ld.so; then 5386 if test -f /usr/libexec/ld.so; then
5824 _LT_TAGVAR(hardcode_direct, $1)=yes 5387 _LT_TAGVAR(hardcode_direct, $1)=yes
5825 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5388 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5826 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5389 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5827 » if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5390 » if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os -$host_cpu" = "openbsd2.8-powerpc"; then
5828 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $ deplibs $compiler_flags' 5391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $ deplibs $compiler_flags'
5829 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $li bobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5392 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $li bobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5830 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5393 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5831 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5394 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5832 else 5395 else
5833 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $ deplibs $compiler_flags' 5396 » case $host_os in
5834 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5397 » openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5398 » _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $dep libs $linker_flags'
5399 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5400 » ;;
5401 » *)
5402 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobj s $deplibs $compiler_flags'
5403 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5404 » ;;
5405 » esac
5835 fi 5406 fi
5836 else 5407 else
5837 _LT_TAGVAR(ld_shlibs, $1)=no 5408 _LT_TAGVAR(ld_shlibs, $1)=no
5838 fi 5409 fi
5839 ;; 5410 ;;
5840 5411
5841 os2*) 5412 os2*)
5842 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5843 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5414 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5844 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5415 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5845 shrext_cmds=.dll 5416 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $out put_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libn ame.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $ou tput_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $lib objs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5846 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINS TANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5417 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libna me.a $output_objdir/$libname.def'
5847 » $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5848 » $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5849 » $ECHO EXPORTS >> $output_objdir/$libname.def~
5850 » emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def ~
5851 » $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
5852 » emximp -o $lib $output_objdir/$libname.def'
5853 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5854 » $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5855 » $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5856 » $ECHO EXPORTS >> $output_objdir/$libname.def~
5857 » prefix_cmds="$SED"~
5858 » if test EXPORTS = "`$SED 1q $export_symbols`"; then
5859 » prefix_cmds="$prefix_cmds -e 1d";
5860 » fi~
5861 » prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5862 » cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5863 » $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
5864 » emximp -o $lib $output_objdir/$libname.def'
5865 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libn ame}_dll.a $output_objdir/$libname.def'
5866 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5867 ;; 5418 ;;
5868 5419
5869 osf3*) 5420 osf3*)
5870 if test yes = "$GCC"; then 5421 if test "$GCC" = yes; then
5871 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5422 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5872 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_ech o_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_ locations -o $lib' 5423 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj s $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && fu nc_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${ou tput_objdir}/so_locations -o $lib'
5873 else 5424 else
5874 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5875 » _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' 5426 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj s $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_al l "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $ lib'
5876 fi 5427 fi
5877 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5428 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5879 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5430 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5880 ;; 5431 ;;
5881 5432
5882 osf4* | osf5*) # as osf3* with the addition of -msym flag 5433 osf4* | osf5*) # as osf3* with the addition of -msym flag
5883 if test yes = "$GCC"; then 5434 if test "$GCC" = yes; then
5884 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5435 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5885 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$ver string" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $w l$output_objdir/so_locations -o $lib' 5436 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_fl ag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-upda te_registry ${wl}${output_objdir}/so_locations -o $lib'
5886 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5437 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5887 else 5438 else
5888 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5889 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_ech o_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 5440 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj s $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_e cho_all "-set_version $verstring"` -update_registry ${output_objdir}/so_location s -o $lib'
5890 _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" "-hid den">> $lib.exp~ 5441 _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" "-hid den">> $lib.exp~
5891 $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' 5442 » $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_vers ion $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib .exp'
5892 5443
5893 # Both c and cxx compiler support -rpath directly 5444 # Both c and cxx compiler support -rpath directly
5894 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5895 fi 5446 fi
5896 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5447 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5897 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5448 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5898 ;; 5449 ;;
5899 5450
5900 solaris*) 5451 solaris*)
5901 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5902 if test yes = "$GCC"; then 5453 if test "$GCC" = yes; then
5903 » wlarc='$wl' 5454 » wlarc='${wl}'
5904 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl- h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5455 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${ wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5905 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ex port_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.e xp~ 5456 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ex port_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.e xp~
5906 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$sona me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5457 » $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'
5907 else 5458 else
5908 case `$CC -V 2>&1` in 5459 case `$CC -V 2>&1` in
5909 *"Compilers 5.0"*) 5460 *"Compilers 5.0"*)
5910 wlarc='' 5461 wlarc=''
5911 » _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname - o $lib $libobjs $deplibs $linker_flags' 5462 » _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5912 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib .exp~ 5463 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib .exp~
5913 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5464 » $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5914 ;; 5465 ;;
5915 *) 5466 *)
5916 » wlarc='$wl' 5467 » wlarc='${wl}'
5917 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname - o $lib $libobjs $deplibs $compiler_flags' 5468 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5918 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib .exp~ 5469 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $ export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib .exp~
5919 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5470 » $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5920 ;; 5471 ;;
5921 esac 5472 esac
5922 fi 5473 fi
5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5474 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5924 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5475 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5925 case $host_os in 5476 case $host_os in
5926 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5477 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5927 *) 5478 *)
5928 # The compiler driver will combine and reorder linker options, 5479 # The compiler driver will combine and reorder linker options,
5929 » # but understands '-z linker_flag'. GCC discards it without '$wl', 5480 » # but understands `-z linker_flag'. GCC discards it without `$wl',
5930 # but is careful enough not to reorder. 5481 # but is careful enough not to reorder.
5931 # Supported since Solaris 2.6 (maybe 2.5.1?) 5482 # Supported since Solaris 2.6 (maybe 2.5.1?)
5932 » if test yes = "$GCC"; then 5483 » if test "$GCC" = yes; then
5933 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$conveni ence $wl-z ${wl}defaultextract' 5484 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$conve nience ${wl}-z ${wl}defaultextract'
5934 else 5485 else
5935 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5486 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5936 fi 5487 fi
5937 ;; 5488 ;;
5938 esac 5489 esac
5939 _LT_TAGVAR(link_all_deplibs, $1)=yes 5490 _LT_TAGVAR(link_all_deplibs, $1)=yes
5940 ;; 5491 ;;
5941 5492
5942 sunos4*) 5493 sunos4*)
5943 if test sequent = "$host_vendor"; then 5494 if test "x$host_vendor" = xsequent; then
5944 # Use $CC to link under sequent, because it throws in some extra .o 5495 # Use $CC to link under sequent, because it throws in some extra .o
5945 # files that make .init and .fini sections work. 5496 # files that make .init and .fini sections work.
5946 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $dep libs $compiler_flags' 5497 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $d eplibs $compiler_flags'
5947 else 5498 else
5948 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $li bobjs $deplibs $linker_flags' 5499 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $li bobjs $deplibs $linker_flags'
5949 fi 5500 fi
5950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5951 _LT_TAGVAR(hardcode_direct, $1)=yes 5502 _LT_TAGVAR(hardcode_direct, $1)=yes
5952 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5503 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5953 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5504 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5954 ;; 5505 ;;
5955 5506
5956 sysv4) 5507 sysv4)
(...skipping 28 matching lines...) Expand all
5985 if test -d /usr/nec; then 5536 if test -d /usr/nec; then
5986 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplib s $linker_flags' 5537 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplib s $linker_flags'
5987 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5538 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5988 runpath_var=LD_RUN_PATH 5539 runpath_var=LD_RUN_PATH
5989 hardcode_runpath_var=yes 5540 hardcode_runpath_var=yes
5990 _LT_TAGVAR(ld_shlibs, $1)=yes 5541 _LT_TAGVAR(ld_shlibs, $1)=yes
5991 fi 5542 fi
5992 ;; 5543 ;;
5993 5544
5994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s co3.2v5.0.[[024]]*) 5545 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s co3.2v5.0.[[024]]*)
5995 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 5546 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5996 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5547 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5548 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5998 runpath_var='LD_RUN_PATH' 5549 runpath_var='LD_RUN_PATH'
5999 5550
6000 if test yes = "$GCC"; then 5551 if test "$GCC" = yes; then
6001 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5552 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libob js $deplibs $compiler_flags'
6002 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_sym bols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5553 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_s ymbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6003 else 5554 else
6004 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $dep libs $compiler_flags' 5555 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $d eplibs $compiler_flags'
6005 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5556 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbol s ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6006 fi 5557 fi
6007 ;; 5558 ;;
6008 5559
6009 sysv5* | sco3.2v5* | sco5v6*) 5560 sysv5* | sco3.2v5* | sco5v6*)
6010 # Note: We CANNOT use -z defs as we might desire, because we do not 5561 # Note: We can NOT use -z defs as we might desire, because we do not
6011 # link with -lc, and that would cause any symbols used from libc to 5562 # link with -lc, and that would cause any symbols used from libc to
6012 # always be unresolved, which means just about no library would 5563 # always be unresolved, which means just about no library would
6013 # ever link correctly. If we're not using GNU ld we use -z text 5564 # ever link correctly. If we're not using GNU ld we use -z text
6014 # though, which does catch some bad symbols but isn't as heavy-handed 5565 # though, which does catch some bad symbols but isn't as heavy-handed
6015 # as -z defs. 5566 # as -z defs.
6016 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 5567 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6017 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 5568 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6018 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5569 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6019 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5570 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6021 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5572 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6022 _LT_TAGVAR(link_all_deplibs, $1)=yes 5573 _LT_TAGVAR(link_all_deplibs, $1)=yes
6023 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 5574 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6024 runpath_var='LD_RUN_PATH' 5575 runpath_var='LD_RUN_PATH'
6025 5576
6026 if test yes = "$GCC"; then 5577 if test "$GCC" = yes; then
6027 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5578 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libob js $deplibs $compiler_flags'
6028 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_sym bols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5579 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_s ymbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6029 else 5580 else
6030 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $dep libs $compiler_flags' 5581 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $d eplibs $compiler_flags'
6031 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5582 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbol s ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6032 fi 5583 fi
6033 ;; 5584 ;;
6034 5585
6035 uts4*) 5586 uts4*)
6036 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5587 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5588 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5589 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6039 ;; 5590 ;;
6040 5591
6041 *) 5592 *)
6042 _LT_TAGVAR(ld_shlibs, $1)=no 5593 _LT_TAGVAR(ld_shlibs, $1)=no
6043 ;; 5594 ;;
6044 esac 5595 esac
6045 5596
6046 if test sni = "$host_vendor"; then 5597 if test x$host_vendor = xsni; then
6047 case $host in 5598 case $host in
6048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5599 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6049 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 5600 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6050 ;; 5601 ;;
6051 esac 5602 esac
6052 fi 5603 fi
6053 fi 5604 fi
6054 ]) 5605 ])
6055 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5606 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6056 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 5607 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6057 5608
6058 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5609 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6059 5610
6060 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5611 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6061 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5612 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6062 _LT_DECL([], [extract_expsyms_cmds], [2], 5613 _LT_DECL([], [extract_expsyms_cmds], [2],
6063 [The commands to extract the exported symbol list from a shared archive]) 5614 [The commands to extract the exported symbol list from a shared archive])
6064 5615
6065 # 5616 #
6066 # Do we need to explicitly link libc? 5617 # Do we need to explicitly link libc?
6067 # 5618 #
6068 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5619 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6069 x|xyes) 5620 x|xyes)
6070 # Assume -lc should be added 5621 # Assume -lc should be added
6071 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5622 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6072 5623
6073 if test yes,yes = "$GCC,$enable_shared"; then 5624 if test "$enable_shared" = yes && test "$GCC" = yes; then
6074 case $_LT_TAGVAR(archive_cmds, $1) in 5625 case $_LT_TAGVAR(archive_cmds, $1) in
6075 *'~'*) 5626 *'~'*)
6076 # FIXME: we may have to deal with multi-command sequences. 5627 # FIXME: we may have to deal with multi-command sequences.
6077 ;; 5628 ;;
6078 '$CC '*) 5629 '$CC '*)
6079 # Test whether the compiler implicitly links with -lc since on some 5630 # Test whether the compiler implicitly links with -lc since on some
6080 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6081 # to ld, don't add -lc before -lgcc. 5632 # to ld, don't add -lc before -lgcc.
6082 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6083 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 5634 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
6143 _LT_TAGDECL([], [allow_undefined_flag], [1], 5694 _LT_TAGDECL([], [allow_undefined_flag], [1],
6144 [Flag that allows shared libraries with undefined symbols to be built]) 5695 [Flag that allows shared libraries with undefined symbols to be built])
6145 _LT_TAGDECL([], [no_undefined_flag], [1], 5696 _LT_TAGDECL([], [no_undefined_flag], [1],
6146 [Flag that enforces no undefined symbols]) 5697 [Flag that enforces no undefined symbols])
6147 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5698 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6148 [Flag to hardcode $libdir into a binary during linking. 5699 [Flag to hardcode $libdir into a binary during linking.
6149 This must work even if $libdir does not exist]) 5700 This must work even if $libdir does not exist])
6150 _LT_TAGDECL([], [hardcode_libdir_separator], [1], 5701 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6151 [Whether we need a single "-rpath" flag with a separated argument]) 5702 [Whether we need a single "-rpath" flag with a separated argument])
6152 _LT_TAGDECL([], [hardcode_direct], [0], 5703 _LT_TAGDECL([], [hardcode_direct], [0],
6153 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5704 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6154 DIR into the resulting binary]) 5705 DIR into the resulting binary])
6155 _LT_TAGDECL([], [hardcode_direct_absolute], [0], 5706 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6156 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 5707 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6157 DIR into the resulting binary and the resulting library dependency is 5708 DIR into the resulting binary and the resulting library dependency is
6158 "absolute", i.e impossible to change by setting $shlibpath_var if the 5709 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6159 library is relocated]) 5710 library is relocated])
6160 _LT_TAGDECL([], [hardcode_minus_L], [0], 5711 _LT_TAGDECL([], [hardcode_minus_L], [0],
6161 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5712 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6162 into the resulting binary]) 5713 into the resulting binary])
6163 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5714 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6164 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5715 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6165 into the resulting binary]) 5716 into the resulting binary])
6166 _LT_TAGDECL([], [hardcode_automatic], [0], 5717 _LT_TAGDECL([], [hardcode_automatic], [0],
6167 [Set to "yes" if building a shared library automatically hardcodes DIR 5718 [Set to "yes" if building a shared library automatically hardcodes DIR
6168 into the library and all subsequent libraries and executables linked 5719 into the library and all subsequent libraries and executables linked
(...skipping 20 matching lines...) Expand all
6189 dnl FIXME: Not yet implemented 5740 dnl FIXME: Not yet implemented
6190 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5741 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6191 dnl [Compiler flag to generate thread safe objects]) 5742 dnl [Compiler flag to generate thread safe objects])
6192 ])# _LT_LINKER_SHLIBS 5743 ])# _LT_LINKER_SHLIBS
6193 5744
6194 5745
6195 # _LT_LANG_C_CONFIG([TAG]) 5746 # _LT_LANG_C_CONFIG([TAG])
6196 # ------------------------ 5747 # ------------------------
6197 # Ensure that the configuration variables for a C compiler are suitably 5748 # Ensure that the configuration variables for a C compiler are suitably
6198 # defined. These variables are subsequently used by _LT_CONFIG to write 5749 # defined. These variables are subsequently used by _LT_CONFIG to write
6199 # the compiler configuration to 'libtool'. 5750 # the compiler configuration to `libtool'.
6200 m4_defun([_LT_LANG_C_CONFIG], 5751 m4_defun([_LT_LANG_C_CONFIG],
6201 [m4_require([_LT_DECL_EGREP])dnl 5752 [m4_require([_LT_DECL_EGREP])dnl
6202 lt_save_CC=$CC 5753 lt_save_CC="$CC"
6203 AC_LANG_PUSH(C) 5754 AC_LANG_PUSH(C)
6204 5755
6205 # Source file extension for C test sources. 5756 # Source file extension for C test sources.
6206 ac_ext=c 5757 ac_ext=c
6207 5758
6208 # Object file extension for compiled C test sources. 5759 # Object file extension for compiled C test sources.
6209 objext=o 5760 objext=o
6210 _LT_TAGVAR(objext, $1)=$objext 5761 _LT_TAGVAR(objext, $1)=$objext
6211 5762
6212 # Code to be used in simple compile tests 5763 # Code to be used in simple compile tests
(...skipping 19 matching lines...) Expand all
6232 _LT_COMPILER_NO_RTTI($1) 5783 _LT_COMPILER_NO_RTTI($1)
6233 _LT_COMPILER_PIC($1) 5784 _LT_COMPILER_PIC($1)
6234 _LT_COMPILER_C_O($1) 5785 _LT_COMPILER_C_O($1)
6235 _LT_COMPILER_FILE_LOCKS($1) 5786 _LT_COMPILER_FILE_LOCKS($1)
6236 _LT_LINKER_SHLIBS($1) 5787 _LT_LINKER_SHLIBS($1)
6237 _LT_SYS_DYNAMIC_LINKER($1) 5788 _LT_SYS_DYNAMIC_LINKER($1)
6238 _LT_LINKER_HARDCODE_LIBPATH($1) 5789 _LT_LINKER_HARDCODE_LIBPATH($1)
6239 LT_SYS_DLOPEN_SELF 5790 LT_SYS_DLOPEN_SELF
6240 _LT_CMD_STRIPLIB 5791 _LT_CMD_STRIPLIB
6241 5792
6242 # Report what library types will actually be built 5793 # Report which library types will actually be built
6243 AC_MSG_CHECKING([if libtool supports shared libraries]) 5794 AC_MSG_CHECKING([if libtool supports shared libraries])
6244 AC_MSG_RESULT([$can_build_shared]) 5795 AC_MSG_RESULT([$can_build_shared])
6245 5796
6246 AC_MSG_CHECKING([whether to build shared libraries]) 5797 AC_MSG_CHECKING([whether to build shared libraries])
6247 test no = "$can_build_shared" && enable_shared=no 5798 test "$can_build_shared" = "no" && enable_shared=no
6248 5799
6249 # On AIX, shared libraries and static libraries use the same namespace, and 5800 # On AIX, shared libraries and static libraries use the same namespace, and
6250 # are all built from PIC. 5801 # are all built from PIC.
6251 case $host_os in 5802 case $host_os in
6252 aix3*) 5803 aix3*)
6253 test yes = "$enable_shared" && enable_static=no 5804 test "$enable_shared" = yes && enable_static=no
6254 if test -n "$RANLIB"; then 5805 if test -n "$RANLIB"; then
6255 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6256 postinstall_cmds='$RANLIB $lib' 5807 postinstall_cmds='$RANLIB $lib'
6257 fi 5808 fi
6258 ;; 5809 ;;
6259 5810
6260 aix[[4-9]]*) 5811 aix[[4-9]]*)
6261 if test ia64 != "$host_cpu"; then 5812 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6262 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 5813 test "$enable_shared" = yes && enable_static=no
6263 yes,aix,yes) ;;» » » # shared object as lib.so file only
6264 yes,svr4,*) ;;» » » # shared object as lib.so archive member only
6265 yes,*) enable_static=no ;;» # shared object in lib.a archive as well
6266 esac
6267 fi 5814 fi
6268 ;; 5815 ;;
6269 esac 5816 esac
6270 AC_MSG_RESULT([$enable_shared]) 5817 AC_MSG_RESULT([$enable_shared])
6271 5818
6272 AC_MSG_CHECKING([whether to build static libraries]) 5819 AC_MSG_CHECKING([whether to build static libraries])
6273 # Make sure either enable_shared or enable_static is yes. 5820 # Make sure either enable_shared or enable_static is yes.
6274 test yes = "$enable_shared" || enable_static=yes 5821 test "$enable_shared" = yes || enable_static=yes
6275 AC_MSG_RESULT([$enable_static]) 5822 AC_MSG_RESULT([$enable_static])
6276 5823
6277 _LT_CONFIG($1) 5824 _LT_CONFIG($1)
6278 fi 5825 fi
6279 AC_LANG_POP 5826 AC_LANG_POP
6280 CC=$lt_save_CC 5827 CC="$lt_save_CC"
6281 ])# _LT_LANG_C_CONFIG 5828 ])# _LT_LANG_C_CONFIG
6282 5829
6283 5830
6284 # _LT_LANG_CXX_CONFIG([TAG]) 5831 # _LT_LANG_CXX_CONFIG([TAG])
6285 # -------------------------- 5832 # --------------------------
6286 # Ensure that the configuration variables for a C++ compiler are suitably 5833 # Ensure that the configuration variables for a C++ compiler are suitably
6287 # defined. These variables are subsequently used by _LT_CONFIG to write 5834 # defined. These variables are subsequently used by _LT_CONFIG to write
6288 # the compiler configuration to 'libtool'. 5835 # the compiler configuration to `libtool'.
6289 m4_defun([_LT_LANG_CXX_CONFIG], 5836 m4_defun([_LT_LANG_CXX_CONFIG],
6290 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5837 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6291 m4_require([_LT_DECL_EGREP])dnl 5838 m4_require([_LT_DECL_EGREP])dnl
6292 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 5839 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6293 if test -n "$CXX" && ( test no != "$CXX" && 5840 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6294 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 5841 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6295 (test g++ != "$CXX"))); then 5842 (test "X$CXX" != "Xg++"))) ; then
6296 AC_PROG_CXXCPP 5843 AC_PROG_CXXCPP
6297 else 5844 else
6298 _lt_caught_CXX_error=yes 5845 _lt_caught_CXX_error=yes
6299 fi 5846 fi
6300 5847
6301 AC_LANG_PUSH(C++) 5848 AC_LANG_PUSH(C++)
6302 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5849 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6303 _LT_TAGVAR(allow_undefined_flag, $1)= 5850 _LT_TAGVAR(allow_undefined_flag, $1)=
6304 _LT_TAGVAR(always_export_symbols, $1)=no 5851 _LT_TAGVAR(always_export_symbols, $1)=no
6305 _LT_TAGVAR(archive_expsym_cmds, $1)= 5852 _LT_TAGVAR(archive_expsym_cmds, $1)=
(...skipping 21 matching lines...) Expand all
6327 ac_ext=cpp 5874 ac_ext=cpp
6328 5875
6329 # Object file extension for compiled C++ test sources. 5876 # Object file extension for compiled C++ test sources.
6330 objext=o 5877 objext=o
6331 _LT_TAGVAR(objext, $1)=$objext 5878 _LT_TAGVAR(objext, $1)=$objext
6332 5879
6333 # No sense in running all these tests if we already determined that 5880 # No sense in running all these tests if we already determined that
6334 # the CXX compiler isn't working. Some variables (like enable_shared) 5881 # the CXX compiler isn't working. Some variables (like enable_shared)
6335 # are currently assumed to apply to all compilers on this platform, 5882 # are currently assumed to apply to all compilers on this platform,
6336 # and will be corrupted by setting them based on a non-working compiler. 5883 # and will be corrupted by setting them based on a non-working compiler.
6337 if test yes != "$_lt_caught_CXX_error"; then 5884 if test "$_lt_caught_CXX_error" != yes; then
6338 # Code to be used in simple compile tests 5885 # Code to be used in simple compile tests
6339 lt_simple_compile_test_code="int some_variable = 0;" 5886 lt_simple_compile_test_code="int some_variable = 0;"
6340 5887
6341 # Code to be used in simple link tests 5888 # Code to be used in simple link tests
6342 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5889 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6343 5890
6344 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6345 _LT_TAG_COMPILER 5892 _LT_TAG_COMPILER
6346 5893
6347 # save warnings/boilerplate of simple test code 5894 # save warnings/boilerplate of simple test code
(...skipping 21 matching lines...) Expand all
6369 test -z "${LDCXX+set}" || LD=$LDCXX 5916 test -z "${LDCXX+set}" || LD=$LDCXX
6370 CC=${CXX-"c++"} 5917 CC=${CXX-"c++"}
6371 CFLAGS=$CXXFLAGS 5918 CFLAGS=$CXXFLAGS
6372 compiler=$CC 5919 compiler=$CC
6373 _LT_TAGVAR(compiler, $1)=$CC 5920 _LT_TAGVAR(compiler, $1)=$CC
6374 _LT_CC_BASENAME([$compiler]) 5921 _LT_CC_BASENAME([$compiler])
6375 5922
6376 if test -n "$compiler"; then 5923 if test -n "$compiler"; then
6377 # We don't want -fno-exception when compiling C++ code, so set the 5924 # We don't want -fno-exception when compiling C++ code, so set the
6378 # no_builtin_flag separately 5925 # no_builtin_flag separately
6379 if test yes = "$GXX"; then 5926 if test "$GXX" = yes; then
6380 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5927 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6381 else 5928 else
6382 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5929 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6383 fi 5930 fi
6384 5931
6385 if test yes = "$GXX"; then 5932 if test "$GXX" = yes; then
6386 # Set up default GNU C++ configuration 5933 # Set up default GNU C++ configuration
6387 5934
6388 LT_PATH_LD 5935 LT_PATH_LD
6389 5936
6390 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6391 # archiving commands below assume that GNU ld is being used. 5938 # archiving commands below assume that GNU ld is being used.
6392 if test yes = "$with_gnu_ld"; then 5939 if test "$with_gnu_ld" = yes; then
6393 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_ob jects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname - o $lib' 5940 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_ob jects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6394 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $pr edep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$s oname $wl-retain-symbols-file $wl$export_symbols -o $lib' 5941 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $pr edep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl $soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6395 5942
6396 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6397 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5944 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6398 5945
6399 # If archive_cmds runs LD, not CC, wlarc should be empty 5946 # If archive_cmds runs LD, not CC, wlarc should be empty
6400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6401 # investigate it a little bit more. (MM) 5948 # investigate it a little bit more. (MM)
6402 wlarc='$wl' 5949 wlarc='${wl}'
6403 5950
6404 # ancient GNU ld didn't support --whole-archive et. al. 5951 # ancient GNU ld didn't support --whole-archive et. al.
6405 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5952 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6406 $GREP 'no-whole-archive' > /dev/null; then 5953 $GREP 'no-whole-archive' > /dev/null; then
6407 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conveni ence '$wlarc'--no-whole-archive' 5954 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conve nience '"$wlarc"'--no-whole-archive'
6408 else 5955 else
6409 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5956 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6410 fi 5957 fi
6411 else 5958 else
6412 with_gnu_ld=no 5959 with_gnu_ld=no
6413 wlarc= 5960 wlarc=
6414 5961
6415 # A generic and very simple default shared library creation 5962 # A generic and very simple default shared library creation
6416 # command for GNU C++ for the case where it uses the native 5963 # command for GNU C++ for the case where it uses the native
6417 # linker, instead of GNU ld. If possible, this setting should 5964 # linker, instead of GNU ld. If possible, this setting should
(...skipping 15 matching lines...) Expand all
6433 5980
6434 # PORTME: fill in a description of your system's C++ link characteristics 5981 # PORTME: fill in a description of your system's C++ link characteristics
6435 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie s]) 5982 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie s])
6436 _LT_TAGVAR(ld_shlibs, $1)=yes 5983 _LT_TAGVAR(ld_shlibs, $1)=yes
6437 case $host_os in 5984 case $host_os in
6438 aix3*) 5985 aix3*)
6439 # FIXME: insert proper C++ library support 5986 # FIXME: insert proper C++ library support
6440 _LT_TAGVAR(ld_shlibs, $1)=no 5987 _LT_TAGVAR(ld_shlibs, $1)=no
6441 ;; 5988 ;;
6442 aix[[4-9]]*) 5989 aix[[4-9]]*)
6443 if test ia64 = "$host_cpu"; then 5990 if test "$host_cpu" = ia64; then
6444 # On IA64, the linker does run time linking by default, so we don't 5991 # On IA64, the linker does run time linking by default, so we don't
6445 # have to do anything special. 5992 # have to do anything special.
6446 aix_use_runtimelinking=no 5993 aix_use_runtimelinking=no
6447 exp_sym_flag='-Bexport' 5994 exp_sym_flag='-Bexport'
6448 no_entry_flag= 5995 no_entry_flag=""
6449 else 5996 else
6450 aix_use_runtimelinking=no 5997 aix_use_runtimelinking=no
6451 5998
6452 # Test if we are trying to use run time linking or normal 5999 # Test if we are trying to use run time linking or normal
6453 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6454 # have runtime linking enabled, and use it for executables. 6001 # need to do runtime linking.
6455 # For shared libraries, we enable/disable runtime linking
6456 # depending on the kind of the shared library created -
6457 # when "with_aix_soname,aix_use_runtimelinking" is:
6458 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6459 # "aix,yes" lib.so shared, rtl:yes, for executables
6460 # lib.a static archive
6461 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6462 # lib.a(lib.so.V) shared, rtl:no, for executables
6463 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6464 # lib.a(lib.so.V) shared, rtl:no
6465 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6466 # lib.a static archive
6467 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6002 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6468 for ld_flag in $LDFLAGS; do 6003 for ld_flag in $LDFLAGS; do
6469 case $ld_flag in 6004 case $ld_flag in
6470 *-brtl*) 6005 *-brtl*)
6471 aix_use_runtimelinking=yes 6006 aix_use_runtimelinking=yes
6472 break 6007 break
6473 ;; 6008 ;;
6474 esac 6009 esac
6475 done 6010 done
6476 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6477 # With aix-soname=svr4, we create the lib.so.V shared archives onl y,
6478 # so we don't have lib.a shared libs to link our executables.
6479 # We have to force runtime linking in this case.
6480 aix_use_runtimelinking=yes
6481 LDFLAGS="$LDFLAGS -Wl,-brtl"
6482 fi
6483 ;; 6011 ;;
6484 esac 6012 esac
6485 6013
6486 exp_sym_flag='-bexport' 6014 exp_sym_flag='-bexport'
6487 no_entry_flag='-bnoentry' 6015 no_entry_flag='-bnoentry'
6488 fi 6016 fi
6489 6017
6490 # When large executables or shared objects are built, AIX ld can 6018 # When large executables or shared objects are built, AIX ld can
6491 # have problems creating the table of contents. If linking a library 6019 # have problems creating the table of contents. If linking a library
6492 # or program results in "error TOC overflow" add -mminimal-toc to 6020 # or program results in "error TOC overflow" add -mminimal-toc to
6493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6495 6023
6496 _LT_TAGVAR(archive_cmds, $1)='' 6024 _LT_TAGVAR(archive_cmds, $1)=''
6497 _LT_TAGVAR(hardcode_direct, $1)=yes 6025 _LT_TAGVAR(hardcode_direct, $1)=yes
6498 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6026 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6499 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6027 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6500 _LT_TAGVAR(link_all_deplibs, $1)=yes 6028 _LT_TAGVAR(link_all_deplibs, $1)=yes
6501 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6502 case $with_aix_soname,$aix_use_runtimelinking in
6503 aix,*) ;;» # no import file
6504 svr4,* | *,yes) # use import file
6505 # The Import File defines what to hardcode.
6506 _LT_TAGVAR(hardcode_direct, $1)=no
6507 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6508 ;;
6509 esac
6510 6030
6511 if test yes = "$GXX"; then 6031 if test "$GXX" = yes; then
6512 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6032 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6513 # We only want to do this on AIX 4.2 and lower, the check 6033 # We only want to do this on AIX 4.2 and lower, the check
6514 # below for broken collect2 doesn't work under 4.3+ 6034 # below for broken collect2 doesn't work under 4.3+
6515 » collect2name=`$CC -print-prog-name=collect2` 6035 » collect2name=`${CC} -print-prog-name=collect2`
6516 if test -f "$collect2name" && 6036 if test -f "$collect2name" &&
6517 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6518 then 6038 then
6519 # We have reworked collect2 6039 # We have reworked collect2
6520 : 6040 :
6521 else 6041 else
6522 # We have old collect2 6042 # We have old collect2
6523 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6043 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6524 # It fails to find uninstalled libraries when the uninstalled 6044 # It fails to find uninstalled libraries when the uninstalled
6525 # path is not listed in the libpath. Setting hardcode_minus_L 6045 # path is not listed in the libpath. Setting hardcode_minus_L
6526 # to unsupported forces relinking 6046 # to unsupported forces relinking
6527 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6047 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6528 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6529 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6049 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6530 fi 6050 fi
6531 esac 6051 esac
6532 shared_flag='-shared' 6052 shared_flag='-shared'
6533 » if test yes = "$aix_use_runtimelinking"; then 6053 » if test "$aix_use_runtimelinking" = yes; then
6534 » shared_flag=$shared_flag' $wl-G' 6054 » shared_flag="$shared_flag "'${wl}-G'
6535 fi 6055 fi
6536 # Need to ensure runtime linking is disabled for the traditional
6537 # shared library, or the linker may eventually find shared libraries
6538 # /with/ Import File - we do not want to mix them.
6539 shared_flag_aix='-shared'
6540 shared_flag_svr4='-shared $wl-G'
6541 else 6056 else
6542 # not using gcc 6057 # not using gcc
6543 if test ia64 = "$host_cpu"; then 6058 if test "$host_cpu" = ia64; then
6544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6545 # chokes on -Wl,-G. The following line is correct: 6060 # chokes on -Wl,-G. The following line is correct:
6546 shared_flag='-G' 6061 shared_flag='-G'
6547 else 6062 else
6548 » if test yes = "$aix_use_runtimelinking"; then 6063 » if test "$aix_use_runtimelinking" = yes; then
6549 » shared_flag='$wl-G' 6064 » shared_flag='${wl}-G'
6550 else 6065 else
6551 » shared_flag='$wl-bM:SRE' 6066 » shared_flag='${wl}-bM:SRE'
6552 fi 6067 fi
6553 shared_flag_aix='$wl-bM:SRE'
6554 shared_flag_svr4='$wl-G'
6555 fi 6068 fi
6556 fi 6069 fi
6557 6070
6558 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6071 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6559 # It seems that -bexpall does not export symbols beginning with 6072 # It seems that -bexpall does not export symbols beginning with
6560 # underscore (_), so it is better to generate a list of symbols to 6073 # underscore (_), so it is better to generate a list of symbols to
6561 # export. 6074 # export.
6562 _LT_TAGVAR(always_export_symbols, $1)=yes 6075 _LT_TAGVAR(always_export_symbols, $1)=yes
6563 » if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6076 if test "$aix_use_runtimelinking" = yes; then
6564 # Warning - without using the other runtime loading flags (-brtl), 6077 # Warning - without using the other runtime loading flags (-brtl),
6565 # -berok will link without error, but may produce a broken library. 6078 # -berok will link without error, but may produce a broken library.
6566 # The "-G" linker flag allows undefined symbols. 6079 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6567 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6568 # Determine the default libpath from the value encoded in an empty 6080 # Determine the default libpath from the value encoded in an empty
6569 # executable. 6081 # executable.
6570 _LT_SYS_MODULE_PATH_AIX([$1]) 6082 _LT_SYS_MODULE_PATH_AIX([$1])
6571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix _libpath" 6083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a ix_libpath"
6572 6084
6573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $li bobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined _flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_ flag:\$export_symbols' '$shared_flag 6085 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undef ined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; f i` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6574 else 6086 else
6575 if test ia64 = "$host_cpu"; then 6087 if test "$host_cpu" = ia64; then
6576 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/l ib' 6088 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib: /lib'
6577 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6089 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6578 » _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_ objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allo w_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 6090 » _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"
6579 else 6091 else
6580 # Determine the default libpath from the value encoded in an 6092 # Determine the default libpath from the value encoded in an
6581 # empty executable. 6093 # empty executable.
6582 _LT_SYS_MODULE_PATH_AIX([$1]) 6094 _LT_SYS_MODULE_PATH_AIX([$1])
6583 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$a ix_libpath" 6095 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'" $aix_libpath"
6584 # Warning - without using the other run time loading flags, 6096 # Warning - without using the other run time loading flags,
6585 # -berok will link without error, but may produce a broken library. 6097 # -berok will link without error, but may produce a broken library.
6586 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6098 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6587 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6099 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6588 » if test yes = "$with_gnu_ld"; then 6100 » if test "$with_gnu_ld" = yes; then
6589 # We only use this code for GNU lds that support --whole-archive. 6101 # We only use this code for GNU lds that support --whole-archive.
6590 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$conven ience $wl--no-whole-archive' 6102 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conv enience ${wl}--no-whole-archive'
6591 else 6103 else
6592 # Exported symbols can be pulled into shared objects from archives 6104 # Exported symbols can be pulled into shared objects from archives
6593 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6105 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6594 fi 6106 fi
6595 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6107 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6596 » _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname .d~$MKDIR $output_objdir/$realname.d' 6108 » # This is similar to how AIX traditionally builds its shared
6597 » # -brtl affects multiple linker settings, -berok does not and is ove rridden later 6109 » # libraries.
6598 » compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6110 » _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'
6599 » if test svr4 != "$with_aix_soname"; then
6600 » # This is similar to how AIX traditionally builds its shared
6601 » # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6602 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm ds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_und efined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$real name.d/$soname'
6603 » fi
6604 » if test aix != "$with_aix_soname"; then
6605 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm ds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_ member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$e xport_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_ archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o) "; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; el se func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/ $shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_obj dir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared _archive_member_spec.imp'
6606 » else
6607 » # used by -dlpreopen to get the symbols
6608 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cm ds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6609 » fi
6610 » _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds , $1)"'~$RM -r $output_objdir/$realname.d'
6611 fi 6111 fi
6612 fi 6112 fi
6613 ;; 6113 ;;
6614 6114
6615 beos*) 6115 beos*)
6616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n 6116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
6617 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6117 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6618 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6619 # support --undefined. This deserves some investigation. FIXME 6119 # support --undefined. This deserves some investigation. FIXME
6620 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler _flags $wl-soname $wl$soname -o $lib' 6120 » _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler _flags ${wl}-soname $wl$soname -o $lib'
6621 else 6121 else
6622 _LT_TAGVAR(ld_shlibs, $1)=no 6122 _LT_TAGVAR(ld_shlibs, $1)=no
6623 fi 6123 fi
6624 ;; 6124 ;;
6625 6125
6626 chorus*) 6126 chorus*)
6627 case $cc_basename in 6127 case $cc_basename in
6628 *) 6128 *)
6629 # FIXME: insert proper C++ library support 6129 # FIXME: insert proper C++ library support
6630 _LT_TAGVAR(ld_shlibs, $1)=no 6130 _LT_TAGVAR(ld_shlibs, $1)=no
6631 ;; 6131 ;;
6632 esac 6132 esac
6633 ;; 6133 ;;
6634 6134
6635 cygwin* | mingw* | pw32* | cegcc*) 6135 cygwin* | mingw* | pw32* | cegcc*)
6636 case $GXX,$cc_basename in 6136 case $GXX,$cc_basename in
6637 ,cl* | no,cl*) 6137 ,cl* | no,cl*)
6638 # Native MSVC 6138 # Native MSVC
6639 # hardcode_libdir_flag_spec is actually meaningless, as there is 6139 # hardcode_libdir_flag_spec is actually meaningless, as there is
6640 # no search path for DLLs. 6140 # no search path for DLLs.
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6642 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6142 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6643 _LT_TAGVAR(always_export_symbols, $1)=yes 6143 _LT_TAGVAR(always_export_symbols, $1)=yes
6644 _LT_TAGVAR(file_list_spec, $1)='@' 6144 _LT_TAGVAR(file_list_spec, $1)='@'
6645 # Tell ltmain to make .lib files, not .a files. 6145 # Tell ltmain to make .lib files, not .a files.
6646 libext=lib 6146 libext=lib
6647 # Tell ltmain to make .dll files, not .so files. 6147 # Tell ltmain to make .dll files, not .so files.
6648 » shrext_cmds=.dll 6148 » shrext_cmds=".dll"
6649 # FIXME: Setting linknames here is a bad hack. 6149 # FIXME: Setting linknames here is a bad hack.
6650 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $ compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~l inknames=' 6150 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $ compiler_flags $deplibs -Wl,-dll~linknames='
6651 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols ]); then 6151 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbol s`" = xEXPORTS; then
6652 cp "$export_symbols" "$output_objdir/$soname.def"; 6152 » $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1 \\\!p' < $export_symbols > $output_objdir/$soname.exp;
6653 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.ex p"; 6153 » else
6654 else 6154 » $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expor t_symbols > $output_objdir/$soname.exp;
6655 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_ob jdir/$soname.exp; 6155 » fi~
6656 fi~ 6156 » $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname. dll.lib"~
6657 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname. dll.lib"~ 6157 » linknames='
6658 linknames='
6659 # The linker will not automatically build a static lib if we build a D LL. 6158 # The linker will not automatically build a static lib if we build a D LL.
6660 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6159 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6661 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6662 # Don't use ranlib 6161 # Don't use ranlib
6663 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6162 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6664 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6163 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6665 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6164 » lt_tool_outputfile="@TOOL_OUTPUT@"~
6666 case $lt_outputfile in 6165 » case $lt_outputfile in
6667 *.exe|*.EXE) ;; 6166 » *.exe|*.EXE) ;;
6668 *) 6167 » *)
6669 lt_outputfile=$lt_outputfile.exe 6168 » » lt_outputfile="$lt_outputfile.exe"
6670 lt_tool_outputfile=$lt_tool_outputfile.exe 6169 » » lt_tool_outputfile="$lt_tool_outputfile.exe"
6671 ;; 6170 » » ;;
6672 esac~ 6171 » esac~
6673 func_to_tool_file "$lt_outputfile"~ 6172 » func_to_tool_file "$lt_outputfile"~
6674 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6173 » if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest" ; then
6675 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputres ource:"$lt_tool_outputfile" || exit 1; 6174 » $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputres ource:"$lt_tool_outputfile" || exit 1;
6676 $RM "$lt_outputfile.manifest"; 6175 » $RM "$lt_outputfile.manifest";
6677 fi' 6176 » fi'
6678 ;; 6177 ;;
6679 *) 6178 *)
6680 # g++ 6179 # g++
6681 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6180 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6682 # as there is no search path for DLLs. 6181 # as there is no search path for DLLs.
6683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6684 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6183 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6685 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6184 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6686 _LT_TAGVAR(always_export_symbols, $1)=no 6185 _LT_TAGVAR(always_export_symbols, $1)=no
6687 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6186 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6688 6187
6689 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6690 » _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' 6189 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${w l}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6691 » # If the export-symbols file already is a .def file, use it as 6190 » # If the export-symbols file already is a .def file (1st line
6692 » # is; otherwise, prepend EXPORTS... 6191 » # is EXPORTS), use it as is; otherwise, prepend...
6693 » _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbo ls]); then 6192 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb ols`" = xEXPORTS; then
6694 cp $export_symbols $output_objdir/$soname.def; 6193 » cp $export_symbols $output_objdir/$soname.def;
6695 else 6194 » else
6696 echo EXPORTS > $output_objdir/$soname.def; 6195 » echo EXPORTS > $output_objdir/$soname.def;
6697 cat $export_symbols >> $output_objdir/$soname.def; 6196 » cat $export_symbols >> $output_objdir/$soname.def;
6698 fi~ 6197 » fi~
6699 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--e nable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6198 » $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}- -enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6700 else 6199 else
6701 _LT_TAGVAR(ld_shlibs, $1)=no 6200 _LT_TAGVAR(ld_shlibs, $1)=no
6702 fi 6201 fi
6703 ;; 6202 ;;
6704 esac 6203 esac
6705 ;; 6204 ;;
6706 darwin* | rhapsody*) 6205 darwin* | rhapsody*)
6707 _LT_DARWIN_LINKER_FEATURES($1) 6206 _LT_DARWIN_LINKER_FEATURES($1)
6708 ;; 6207 ;;
6709 6208
6710 os2*)
6711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6712 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6713 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6714 shrext_cmds=.dll
6715 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITI NSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6718 $ECHO EXPORTS >> $output_objdir/$libname.def~
6719 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.d ef~
6720 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compil er_flags $output_objdir/$libname.def~
6721 emximp -o $lib $output_objdir/$libname.def'
6722 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext } INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6725 $ECHO EXPORTS >> $output_objdir/$libname.def~
6726 prefix_cmds="$SED"~
6727 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6728 prefix_cmds="$prefix_cmds -e 1d";
6729 fi~
6730 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6731 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compil er_flags $output_objdir/$libname.def~
6733 emximp -o $lib $output_objdir/$libname.def'
6734 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${li bname}_dll.a $output_objdir/$libname.def'
6735 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6736 ;;
6737
6738 dgux*) 6209 dgux*)
6739 case $cc_basename in 6210 case $cc_basename in
6740 ec++*) 6211 ec++*)
6741 # FIXME: insert proper C++ library support 6212 # FIXME: insert proper C++ library support
6742 _LT_TAGVAR(ld_shlibs, $1)=no 6213 _LT_TAGVAR(ld_shlibs, $1)=no
6743 ;; 6214 ;;
6744 ghcx*) 6215 ghcx*)
6745 # Green Hills C++ Compiler 6216 # Green Hills C++ Compiler
6746 # FIXME: insert proper C++ library support 6217 # FIXME: insert proper C++ library support
6747 _LT_TAGVAR(ld_shlibs, $1)=no 6218 _LT_TAGVAR(ld_shlibs, $1)=no
(...skipping 15 matching lines...) Expand all
6763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6234 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6764 ;; 6235 ;;
6765 6236
6766 freebsd* | dragonfly*) 6237 freebsd* | dragonfly*)
6767 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6238 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6768 # conventions 6239 # conventions
6769 _LT_TAGVAR(ld_shlibs, $1)=yes 6240 _LT_TAGVAR(ld_shlibs, $1)=yes
6770 ;; 6241 ;;
6771 6242
6772 haiku*) 6243 haiku*)
6773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags $wl-soname $wl$soname -o $lib' 6244 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname -o $lib'
6774 _LT_TAGVAR(link_all_deplibs, $1)=yes 6245 _LT_TAGVAR(link_all_deplibs, $1)=yes
6775 ;; 6246 ;;
6776 6247
6777 hpux9*) 6248 hpux9*)
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6779 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6250 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6780 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6251 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6781 _LT_TAGVAR(hardcode_direct, $1)=yes 6252 _LT_TAGVAR(hardcode_direct, $1)=yes
6782 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6253 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6783 # but as the default 6254 # but as the default
6784 # location of the library. 6255 # location of the library.
6785 6256
6786 case $cc_basename in 6257 case $cc_basename in
6787 CC*) 6258 CC*)
6788 # FIXME: insert proper C++ library support 6259 # FIXME: insert proper C++ library support
6789 _LT_TAGVAR(ld_shlibs, $1)=no 6260 _LT_TAGVAR(ld_shlibs, $1)=no
6790 ;; 6261 ;;
6791 aCC*) 6262 aCC*)
6792 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6263 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl }+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $dep libs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $ output_objdir/$soname $lib'
6793 # Commands to make compiler produce verbose output that lists 6264 # Commands to make compiler produce verbose output that lists
6794 # what "hidden" libraries, object files and flags are used when 6265 # what "hidden" libraries, object files and flags are used when
6795 # linking a shared library. 6266 # linking a shared library.
6796 # 6267 #
6797 # There doesn't appear to be a way to prevent this compiler from 6268 # There doesn't appear to be a way to prevent this compiler from
6798 # explicitly linking system object files so we need to strip them 6269 # explicitly linking system object files so we need to strip them
6799 # from the output so that they don't get included in the library 6270 # from the output so that they don't get included in the library
6800 # dependencies. 6271 # dependencies.
6801 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje xt 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$ob jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a ll "$list"' 6272 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje xt 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$o bjext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_ all "$list"'
6802 ;; 6273 ;;
6803 *) 6274 *)
6804 if test yes = "$GXX"; then 6275 if test "$GXX" = yes; then
6805 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shar ed -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $prede p_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objd ir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 6276 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shar ed -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_ob jdir/$soname = $lib || mv $output_objdir/$soname $lib'
6806 else 6277 else
6807 # FIXME: insert proper C++ library support 6278 # FIXME: insert proper C++ library support
6808 _LT_TAGVAR(ld_shlibs, $1)=no 6279 _LT_TAGVAR(ld_shlibs, $1)=no
6809 fi 6280 fi
6810 ;; 6281 ;;
6811 esac 6282 esac
6812 ;; 6283 ;;
6813 6284
6814 hpux10*|hpux11*) 6285 hpux10*|hpux11*)
6815 if test no = "$with_gnu_ld"; then 6286 if test $with_gnu_ld = no; then
6816 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6287 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6817 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6288 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6818 6289
6819 case $host_cpu in 6290 case $host_cpu in
6820 hppa*64*|ia64*) 6291 hppa*64*|ia64*)
6821 ;; 6292 ;;
6822 *) 6293 *)
6823 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6294 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6824 ;; 6295 ;;
6825 esac 6296 esac
6826 fi 6297 fi
6827 case $host_cpu in 6298 case $host_cpu in
6828 hppa*64*|ia64*) 6299 hppa*64*|ia64*)
6829 _LT_TAGVAR(hardcode_direct, $1)=no 6300 _LT_TAGVAR(hardcode_direct, $1)=no
6830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6831 ;; 6302 ;;
6832 *) 6303 *)
6833 _LT_TAGVAR(hardcode_direct, $1)=yes 6304 _LT_TAGVAR(hardcode_direct, $1)=yes
6834 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6305 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6835 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6306 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6836 # but as the default 6307 # but as the default
6837 # location of the library. 6308 # location of the library.
6838 ;; 6309 ;;
6839 esac 6310 esac
6840 6311
6841 case $cc_basename in 6312 case $cc_basename in
6842 CC*) 6313 CC*)
6843 # FIXME: insert proper C++ library support 6314 # FIXME: insert proper C++ library support
6844 _LT_TAGVAR(ld_shlibs, $1)=no 6315 _LT_TAGVAR(ld_shlibs, $1)=no
6845 ;; 6316 ;;
6846 aCC*) 6317 aCC*)
6847 case $host_cpu in 6318 case $host_cpu in
6848 hppa*64*) 6319 hppa*64*)
6849 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6320 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $li b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6850 ;; 6321 ;;
6851 ia64*) 6322 ia64*)
6852 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefa ultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl ags' 6323 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+ nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags'
6853 ;; 6324 ;;
6854 *) 6325 *)
6855 » _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$ install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags' 6326 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+ b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_object s $compiler_flags'
6856 ;; 6327 ;;
6857 esac 6328 esac
6858 # Commands to make compiler produce verbose output that lists 6329 # Commands to make compiler produce verbose output that lists
6859 # what "hidden" libraries, object files and flags are used when 6330 # what "hidden" libraries, object files and flags are used when
6860 # linking a shared library. 6331 # linking a shared library.
6861 # 6332 #
6862 # There doesn't appear to be a way to prevent this compiler from 6333 # There doesn't appear to be a way to prevent this compiler from
6863 # explicitly linking system object files so we need to strip them 6334 # explicitly linking system object files so we need to strip them
6864 # from the output so that they don't get included in the library 6335 # from the output so that they don't get included in the library
6865 # dependencies. 6336 # dependencies.
6866 » output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje xt 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$obj ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_al l "$list"' 6337 » output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje xt 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$ob jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a ll "$list"'
6867 ;; 6338 ;;
6868 *) 6339 *)
6869 » if test yes = "$GXX"; then 6340 » if test "$GXX" = yes; then
6870 » if test no = "$with_gnu_ld"; then 6341 » if test $with_gnu_ld = no; then
6871 case $host_cpu in 6342 case $host_cpu in
6872 hppa*64*) 6343 hppa*64*)
6873 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $w l+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags' 6344 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${ wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c ompiler_flags'
6874 ;; 6345 ;;
6875 ia64*) 6346 ia64*)
6876 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla g $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6347 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla g ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $de plibs $postdep_objects $compiler_flags'
6877 ;; 6348 ;;
6878 *) 6349 *)
6879 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla g $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $de plibs $postdep_objects $compiler_flags' 6350 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_fla g ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $lib objs $deplibs $postdep_objects $compiler_flags'
6880 ;; 6351 ;;
6881 esac 6352 esac
6882 fi 6353 fi
6883 else 6354 else
6884 # FIXME: insert proper C++ library support 6355 # FIXME: insert proper C++ library support
6885 _LT_TAGVAR(ld_shlibs, $1)=no 6356 _LT_TAGVAR(ld_shlibs, $1)=no
6886 fi 6357 fi
6887 ;; 6358 ;;
6888 esac 6359 esac
6889 ;; 6360 ;;
6890 6361
6891 interix[[3-9]]*) 6362 interix[[3-9]]*)
6892 _LT_TAGVAR(hardcode_direct, $1)=no 6363 _LT_TAGVAR(hardcode_direct, $1)=no
6893 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6364 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6894 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6365 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6895 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6366 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6897 # Instead, shared libraries are loaded at an image base (0x10000000 by 6368 # Instead, shared libraries are loaded at an image base (0x10000000 by
6898 # default) and relocated if they conflict, which is a slow very memory 6369 # default) and relocated if they conflict, which is a slow very memory
6899 # consuming and fragmenting process. To avoid this, we pick a random, 6370 # consuming and fragmenting process. To avoid this, we pick a random,
6900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6901 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6902 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262 144 + 1342177280` -o $lib' 6373 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c ompiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6903 » _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$outp ut_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' 6374 » _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$outp ut_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'
6904 ;; 6375 ;;
6905 irix5* | irix6*) 6376 irix5* | irix6*)
6906 case $cc_basename in 6377 case $cc_basename in
6907 CC*) 6378 CC*)
6908 # SGI C++ 6379 # SGI C++
6909 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obj ects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $outp ut_objdir/so_locations -o $lib' 6380 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obj ects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${out put_objdir}/so_locations -o $lib'
6910 6381
6911 # Archives containing C++ object files must be created using 6382 # Archives containing C++ object files must be created using
6912 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6383 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6913 # necessary to make sure instantiated templates are included 6384 # necessary to make sure instantiated templates are included
6914 # in the archive. 6385 # in the archive.
6915 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs ' 6386 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs '
6916 ;; 6387 ;;
6917 *) 6388 *)
6918 » if test yes = "$GXX"; then 6389 » if test "$GXX" = yes; then
6919 » if test no = "$with_gnu_ld"; then 6390 » if test "$with_gnu_ld" = no; then
6920 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p redep_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' 6391 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${ wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verst ring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6921 else 6392 else
6922 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$ soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` - o $lib' 6393 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${ wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verst ring"` -o $lib'
6923 fi 6394 fi
6924 fi 6395 fi
6925 _LT_TAGVAR(link_all_deplibs, $1)=yes 6396 _LT_TAGVAR(link_all_deplibs, $1)=yes
6926 ;; 6397 ;;
6927 esac 6398 esac
6928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6929 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6400 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6930 _LT_TAGVAR(inherit_rpath, $1)=yes 6401 _LT_TAGVAR(inherit_rpath, $1)=yes
6931 ;; 6402 ;;
6932 6403
6933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6404 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6934 case $cc_basename in 6405 case $cc_basename in
6935 KCC*) 6406 KCC*)
6936 # Kuck and Associates, Inc. (KAI) C++ Compiler 6407 # Kuck and Associates, Inc. (KAI) C++ Compiler
6937 6408
6938 # KCC will only create a shared library if the output file 6409 # KCC will only create a shared library if the output file
6939 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6940 # to its proper name (with version) after linking. 6411 # to its proper name (with version) after linking.
6941 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\ ''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$temp ext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler _flags --soname $soname -o \$templib; mv \$templib $lib' 6412 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\ ''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tem pext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compil er_flags --soname $soname -o \$templib; mv \$templib $lib'
6942 » _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SE D -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s /\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $c ompiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symb ols; mv \$templib $lib' 6413 » _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SE D -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'
6943 # Commands to make compiler produce verbose output that lists 6414 # Commands to make compiler produce verbose output that lists
6944 # what "hidden" libraries, object files and flags are used when 6415 # what "hidden" libraries, object files and flags are used when
6945 # linking a shared library. 6416 # linking a shared library.
6946 # 6417 #
6947 # There doesn't appear to be a way to prevent this compiler from 6418 # There doesn't appear to be a way to prevent this compiler from
6948 # explicitly linking system object files so we need to strip them 6419 # explicitly linking system object files so we need to strip them
6949 # from the output so that they don't get included in the library 6420 # from the output so that they don't get included in the library
6950 # dependencies. 6421 # dependencies.
6951 » 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";; *.$obje xt);; *) list="$list $z";;esac; done; func_echo_all "$list"' 6422 » 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";; *.$obj ext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6952 6423
6953 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6424 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6954 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6425 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6955 6426
6956 # Archives containing C++ object files must be created using 6427 # Archives containing C++ object files must be created using
6957 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6958 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6429 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6959 ;; 6430 ;;
6960 icpc* | ecpc* ) 6431 icpc* | ecpc* )
6961 # Intel C++ 6432 # Intel C++
6962 with_gnu_ld=yes 6433 with_gnu_ld=yes
6963 # version 8.0 and above of icpc choke on multiply defined symbols 6434 # version 8.0 and above of icpc choke on multiply defined symbols
6964 # if we add $predep_objects and $postdep_objects, however 7.1 and 6435 # if we add $predep_objects and $postdep_objects, however 7.1 and
6965 # earlier do not add the objects themselves. 6436 # earlier do not add the objects themselves.
6966 case `$CC -V 2>&1` in 6437 case `$CC -V 2>&1` in
6967 *"Version 7."*) 6438 *"Version 7."*)
6968 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6439 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6969 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-re tain-symbols-file $wl$export_symbols -o $lib' 6440 » » _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'
6970 ;; 6441 ;;
6971 *) # Version 8.0 or newer 6442 *) # Version 8.0 or newer
6972 tmp_idyn= 6443 tmp_idyn=
6973 case $host_cpu in 6444 case $host_cpu in
6974 ia64*) tmp_idyn=' -i_dynamic';; 6445 ia64*) tmp_idyn=' -i_dynamic';;
6975 esac 6446 esac
6976 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6447 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $l ibobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $w l$export_symbols -o $lib' 6448 » » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $l ibobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-fil e $wl$export_symbols -o $lib'
6978 ;; 6449 ;;
6979 esac 6450 esac
6980 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6451 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6981 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6452 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6982 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6453 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6983 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenie nce $wl--no-whole-archive' 6454 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven ience ${wl}--no-whole-archive'
6984 ;; 6455 ;;
6985 pgCC* | pgcpp*) 6456 pgCC* | pgcpp*)
6986 # Portland Group C++ compiler 6457 # Portland Group C++ compiler
6987 case `$CC -V` in 6458 case `$CC -V` in
6988 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6459 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6989 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6460 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6990 rm -rf $tpldir~ 6461 » » rm -rf $tpldir~
6991 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6462 » » $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6992 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 6463 » » compile_command="$compile_command `find $tpldir -name \*.o | sor t | $NL2SP`"'
6993 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6464 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6994 rm -rf $tpldir~ 6465 » » rm -rf $tpldir~
6995 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d eplibs~ 6466 » » $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d eplibs~
6996 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \* .o | sort | $NL2SP`~ 6467 » » $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \* .o | sort | $NL2SP`~
6997 $RANLIB $oldlib' 6468 » » $RANLIB $oldlib'
6998 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6469 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6999 rm -rf $tpldir~ 6470 » » rm -rf $tpldir~
7000 $CC --prelink_objects --instantiation_dir $tpldir $predep_object s $libobjs $deplibs $convenience $postdep_objects~ 6471 » » $CC --prelink_objects --instantiation_dir $tpldir $predep_object s $libobjs $deplibs $convenience $postdep_objects~
7001 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $w l$soname -o $lib' 6472 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7002 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6473 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7003 rm -rf $tpldir~ 6474 » » rm -rf $tpldir~
7004 $CC --prelink_objects --instantiation_dir $tpldir $predep_object s $libobjs $deplibs $convenience $postdep_objects~ 6475 » » $CC --prelink_objects --instantiation_dir $tpldir $predep_object s $libobjs $deplibs $convenience $postdep_objects~
7005 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $w l$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 6476 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7006 ;; 6477 ;;
7007 *) # Version 6 and above use weak symbols 6478 *) # Version 6 and above use weak symbols
7008 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object s $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $l ib' 6479 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object s $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname - o $lib'
7009 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$sonam e $wl-retain-symbols-file $wl$export_symbols -o $lib' 6480 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$s oname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7010 ;; 6481 ;;
7011 esac 6482 esac
7012 6483
7013 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 6484 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir '
7014 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6485 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7015 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc e,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 6486 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for co nv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenie nce,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7016 ;; 6487 ;;
7017 cxx*) 6488 cxx*)
7018 # Compaq C++ 6489 # Compaq C++
7019 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $ deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6490 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $ deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $ wl-retain-symbols-file $wl$export_symbols' 6491 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7021 6492
7022 runpath_var=LD_RUN_PATH 6493 runpath_var=LD_RUN_PATH
7023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7024 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6495 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7025 6496
7026 # Commands to make compiler produce verbose output that lists 6497 # Commands to make compiler produce verbose output that lists
7027 # what "hidden" libraries, object files and flags are used when 6498 # what "hidden" libraries, object files and flags are used when
7028 # linking a shared library. 6499 # linking a shared library.
7029 # 6500 #
7030 # There doesn't appear to be a way to prevent this compiler from 6501 # There doesn't appear to be a way to prevent this compiler from
7031 # explicitly linking system object files so we need to strip them 6502 # explicitly linking system object files so we need to strip them
7032 # from the output so that they don't get included in the library 6503 # from the output so that they don't get included in the library
7033 # dependencies. 6504 # dependencies.
7034 » 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.$obj ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_al l "X$list" | $Xsed' 6505 » 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.$ob jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a ll "X$list" | $Xsed'
7035 ;; 6506 ;;
7036 xl* | mpixl* | bgxl*) 6507 xl* | mpixl* | bgxl*)
7037 # IBM XL 8.0 on PPC, with GNU ld 6508 # IBM XL 8.0 on PPC, with GNU ld
7038 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6509 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7039 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6510 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7040 » _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp iler_flags $wl-soname $wl$soname -o $lib' 6511 » _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp iler_flags ${wl}-soname $wl$soname -o $lib'
7041 » if test yes = "$supports_anon_versioning"; then 6512 » if test "x$supports_anon_versioning" = xyes; then
7042 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob jdir/$libname.ver~ 6513 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob jdir/$libname.ver~
7043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$ libname.ver~ 6514 » » cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$ libname.ver~
7044 echo "local: *; };" >> $output_objdir/$libname.ver~ 6515 » » echo "local: *; };" >> $output_objdir/$libname.ver~
7045 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$ soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 6516 » » $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $w l$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7046 fi 6517 fi
7047 ;; 6518 ;;
7048 *) 6519 *)
7049 case `$CC -V 2>&1 | sed 5q` in 6520 case `$CC -V 2>&1 | sed 5q` in
7050 *Sun\ C*) 6521 *Sun\ C*)
7051 # Sun C++ 5.9 6522 # Sun C++ 5.9
7052 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6523 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7053 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$sonam e -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6524 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$son ame -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7054 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag - h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl ags $wl-retain-symbols-file $wl$export_symbols' 6525 » _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'
7055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7056 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_co nvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenienc e=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no- whole-archive' 6527 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_ convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenie nce=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}- -no-whole-archive'
7057 _LT_TAGVAR(compiler_needs_object, $1)=yes 6528 _LT_TAGVAR(compiler_needs_object, $1)=yes
7058 6529
7059 # Not sure whether something based on 6530 # Not sure whether something based on
7060 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6531 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7061 # would be better. 6532 # would be better.
7062 output_verbose_link_cmd='func_echo_all' 6533 output_verbose_link_cmd='func_echo_all'
7063 6534
7064 # Archives containing C++ object files must be created using 6535 # Archives containing C++ object files must be created using
7065 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6536 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7066 # necessary to make sure instantiated templates are included 6537 # necessary to make sure instantiated templates are included
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
7104 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6575 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7105 fi 6576 fi
7106 # Workaround some broken pre-1.5 toolchains 6577 # Workaround some broken pre-1.5 toolchains
7107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6578 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7108 ;; 6579 ;;
7109 6580
7110 *nto* | *qnx*) 6581 *nto* | *qnx*)
7111 _LT_TAGVAR(ld_shlibs, $1)=yes 6582 _LT_TAGVAR(ld_shlibs, $1)=yes
7112 ;; 6583 ;;
7113 6584
7114 openbsd* | bitrig*) 6585 openbsd2*)
6586 # C++ shared libraries are fairly broken
6587 » _LT_TAGVAR(ld_shlibs, $1)=no
6588 » ;;
6589
6590 openbsd*)
7115 if test -f /usr/libexec/ld.so; then 6591 if test -f /usr/libexec/ld.so; then
7116 _LT_TAGVAR(hardcode_direct, $1)=yes 6592 _LT_TAGVAR(hardcode_direct, $1)=yes
7117 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6593 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7118 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6594 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7119 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l ibobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6595 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l ibobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7120 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6596 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7121 » if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 6597 » if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_o s-$host_cpu" = "openbsd2.8-powerpc"; then
7122 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_o bjects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-fil e,$export_symbols -o $lib' 6598 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_o bjects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-f ile,$export_symbols -o $lib'
7123 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6599 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7124 » _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conve nience '$wlarc'--no-whole-archive' 6600 » _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$con venience '"$wlarc"'--no-whole-archive'
7125 fi 6601 fi
7126 output_verbose_link_cmd=func_echo_all 6602 output_verbose_link_cmd=func_echo_all
7127 else 6603 else
7128 _LT_TAGVAR(ld_shlibs, $1)=no 6604 _LT_TAGVAR(ld_shlibs, $1)=no
7129 fi 6605 fi
7130 ;; 6606 ;;
7131 6607
7132 osf3* | osf4* | osf5*) 6608 osf3* | osf4* | osf5*)
7133 case $cc_basename in 6609 case $cc_basename in
7134 KCC*) 6610 KCC*)
7135 # Kuck and Associates, Inc. (KAI) C++ Compiler 6611 # Kuck and Associates, Inc. (KAI) C++ Compiler
7136 6612
7137 # KCC will only create a shared library if the output file 6613 # KCC will only create a shared library if the output file
7138 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7139 # to its proper name (with version) after linking. 6615 # to its proper name (with version) after linking.
7140 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\ ''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$te mpext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compil er_flags --soname $soname -o \$templib; mv \$templib $lib' 6616 » _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\ ''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${t empext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $comp iler_flags --soname $soname -o \$templib; mv \$templib $lib'
7141 6617
7142 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6618 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7143 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6619 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7144 6620
7145 # Archives containing C++ object files must be created using 6621 # Archives containing C++ object files must be created using
7146 # the KAI C++ compiler. 6622 # the KAI C++ compiler.
7147 case $host in 6623 case $host in
7148 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $ oldobjs' ;; 6624 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $ oldobjs' ;;
7149 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6625 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7150 esac 6626 esac
7151 ;; 6627 ;;
7152 RCC*) 6628 RCC*)
7153 # Rational C++ 2.4.1 6629 # Rational C++ 2.4.1
7154 # FIXME: insert proper C++ library support 6630 # FIXME: insert proper C++ library support
7155 _LT_TAGVAR(ld_shlibs, $1)=no 6631 _LT_TAGVAR(ld_shlibs, $1)=no
7156 ;; 6632 ;;
7157 cxx*) 6633 cxx*)
7158 case $host in 6634 case $host in
7159 osf3*) 6635 osf3*)
7160 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl \*' 6636 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved $ {wl}\*'
7161 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $ predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $so name `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -updat e_registry $output_objdir/so_locations -o $lib' 6637 » _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'
7162 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6638 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib dir'
7163 ;; 6639 ;;
7164 *) 6640 *)
7165 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6641 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7166 » _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"` -updat e_registry $output_objdir/so_locations -o $lib' 6642 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -sonam e $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -upd ate_registry ${output_objdir}/so_locations -o $lib'
7167 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6643 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7168 echo "-hidden">> $lib.exp~ 6644 » echo "-hidden">> $lib.exp~
7169 $CC -shared$allow_undefined_flag $predep_objects $libobjs $dep libs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.ex p `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $o utput_objdir/so_locations -o $lib~ 6645 » $CC -shared$allow_undefined_flag $predep_objects $libobjs $dep libs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$li b.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registr y ${output_objdir}/so_locations -o $lib~
7170 $RM $lib.exp' 6646 » $RM $lib.exp'
7171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7172 ;; 6648 ;;
7173 esac 6649 esac
7174 6650
7175 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6651 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7176 6652
7177 # Commands to make compiler produce verbose output that lists 6653 # Commands to make compiler produce verbose output that lists
7178 # what "hidden" libraries, object files and flags are used when 6654 # what "hidden" libraries, object files and flags are used when
7179 # linking a shared library. 6655 # linking a shared library.
7180 # 6656 #
7181 # There doesn't appear to be a way to prevent this compiler from 6657 # There doesn't appear to be a way to prevent this compiler from
7182 # explicitly linking system object files so we need to strip them 6658 # explicitly linking system object files so we need to strip them
7183 # from the output so that they don't get included in the library 6659 # from the output so that they don't get included in the library
7184 # dependencies. 6660 # dependencies.
7185 » 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; do ne; func_echo_all "$list"' 6661 » 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; d one; func_echo_all "$list"'
7186 ;; 6662 ;;
7187 *) 6663 *)
7188 » if test yes,no = "$GXX,$with_gnu_ld"; then 6664 » if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7189 » _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\* ' 6665 » _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${w l}\*'
7190 case $host in 6666 case $host in
7191 osf3*) 6667 osf3*)
7192 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_und efined_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' 6668 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_un defined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_ver sion ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7193 ;; 6669 ;;
7194 *) 6670 *)
7195 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil er_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_locatio ns -o $lib' 6671 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp iler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_ec ho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_ objdir}/so_locations -o $lib'
7196 ;; 6672 ;;
7197 esac 6673 esac
7198 6674
7199 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6675 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdi r'
7200 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6676 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7201 6677
7202 # Commands to make compiler produce verbose output that lists 6678 # Commands to make compiler produce verbose output that lists
7203 # what "hidden" libraries, object files and flags are used when 6679 # what "hidden" libraries, object files and flags are used when
7204 # linking a shared library. 6680 # linking a shared library.
7205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2 >&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2 >&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7206 6682
7207 else 6683 else
7208 # FIXME: insert proper C++ library support 6684 # FIXME: insert proper C++ library support
7209 _LT_TAGVAR(ld_shlibs, $1)=no 6685 _LT_TAGVAR(ld_shlibs, $1)=no
(...skipping 25 matching lines...) Expand all
7235 ;; 6711 ;;
7236 esac 6712 esac
7237 ;; 6713 ;;
7238 6714
7239 solaris*) 6715 solaris*)
7240 case $cc_basename in 6716 case $cc_basename in
7241 CC* | sunCC*) 6717 CC* | sunCC*)
7242 # Sun C++ 4.2, 5.x and Centerline C++ 6718 # Sun C++ 4.2, 5.x and Centerline C++
7243 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6719 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7244 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6720 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7245 » _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6721 » _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sona me -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7246 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l ib.exp~ 6722 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l ib.exp~
7247 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6723 » $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'
7248 6724
7249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7250 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6726 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7251 case $host_os in 6727 case $host_os in
7252 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6728 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7253 *) 6729 *)
7254 # The compiler driver will combine and reorder linker options, 6730 # The compiler driver will combine and reorder linker options,
7255 » » # but understands '-z linker_flag'. 6731 » » # but understands `-z linker_flag'.
7256 # Supported since Solaris 2.6 (maybe 2.5.1?) 6732 # Supported since Solaris 2.6 (maybe 2.5.1?)
7257 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien ce -z defaultextract' 6733 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien ce -z defaultextract'
7258 ;; 6734 ;;
7259 esac 6735 esac
7260 _LT_TAGVAR(link_all_deplibs, $1)=yes 6736 _LT_TAGVAR(link_all_deplibs, $1)=yes
7261 6737
7262 output_verbose_link_cmd='func_echo_all' 6738 output_verbose_link_cmd='func_echo_all'
7263 6739
7264 # Archives containing C++ object files must be created using 6740 # Archives containing C++ object files must be created using
7265 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7266 # necessary to make sure instantiated templates are included 6742 # necessary to make sure instantiated templates are included
7267 # in the archive. 6743 # in the archive.
7268 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6744 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7269 ;; 6745 ;;
7270 gcx*) 6746 gcx*)
7271 # Green Hills C++ Compiler 6747 # Green Hills C++ Compiler
7272 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $ deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6748 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $ deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7273 6749
7274 # The C++ compiler must be used to create the archive. 6750 # The C++ compiler must be used to create the archive.
7275 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $ oldobjs' 6751 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $ oldobjs'
7276 ;; 6752 ;;
7277 *) 6753 *)
7278 # GNU C++ compiler with Solaris linker 6754 # GNU C++ compiler with Solaris linker
7279 » if test yes,no = "$GXX,$with_gnu_ld"; then 6755 » if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7280 » _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 6756 » _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6757 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7282 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$sonam e -o $lib' 6758 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $L DFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}- h $wl$soname -o $lib'
7283 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" > > $lib.exp~ 6759 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" > > $lib.exp~
7284 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$so name -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~ $RM $lib.exp' 6760 » » $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7285 6761
7286 # Commands to make compiler produce verbose output that lists 6762 # Commands to make compiler produce verbose output that lists
7287 # what "hidden" libraries, object files and flags are used when 6763 # what "hidden" libraries, object files and flags are used when
7288 # linking a shared library. 6764 # linking a shared library.
7289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7290 else 6766 else
7291 » # g++ 2.7 appears to require '-G' NOT '-shared' on this 6767 » # g++ 2.7 appears to require `-G' NOT `-shared' on this
7292 # platform. 6768 # platform.
7293 » _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $ libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 6769 » _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7294 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" > > $lib.exp~ 6770 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" > > $lib.exp~
7295 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $p redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6771 » » $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $ libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7296 6772
7297 # Commands to make compiler produce verbose output that lists 6773 # Commands to make compiler produce verbose output that lists
7298 # what "hidden" libraries, object files and flags are used when 6774 # what "hidden" libraries, object files and flags are used when
7299 # linking a shared library. 6775 # linking a shared library.
7300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6776 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7301 fi 6777 fi
7302 6778
7303 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 6779 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7304 case $host_os in 6780 case $host_os in
7305 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6781 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7306 *) 6782 *)
7307 » » _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract $convenience $wl-z ${wl}defaultextract' 6783 » » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextra ct$convenience ${wl}-z ${wl}defaultextract'
7308 ;; 6784 ;;
7309 esac 6785 esac
7310 fi 6786 fi
7311 ;; 6787 ;;
7312 esac 6788 esac
7313 ;; 6789 ;;
7314 6790
7315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s co3.2v5.0.[[024]]*) 6791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | s co3.2v5.0.[[024]]*)
7316 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6792 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6793 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7319 runpath_var='LD_RUN_PATH' 6795 runpath_var='LD_RUN_PATH'
7320 6796
7321 case $cc_basename in 6797 case $cc_basename in
7322 CC*) 6798 CC*)
7323 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $d eplibs $compiler_flags' 6799 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7324 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbol s $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6800 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symb ols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7325 ;; 6801 ;;
7326 *) 6802 *)
7327 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libob js $deplibs $compiler_flags' 6803 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $lib objs $deplibs $compiler_flags'
7328 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_s ymbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6804 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export _symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7329 ;; 6805 ;;
7330 esac 6806 esac
7331 ;; 6807 ;;
7332 6808
7333 sysv5* | sco3.2v5* | sco5v6*) 6809 sysv5* | sco3.2v5* | sco5v6*)
7334 » # Note: We CANNOT use -z defs as we might desire, because we do not 6810 » # Note: We can NOT use -z defs as we might desire, because we do not
7335 # link with -lc, and that would cause any symbols used from libc to 6811 # link with -lc, and that would cause any symbols used from libc to
7336 # always be unresolved, which means just about no library would 6812 # always be unresolved, which means just about no library would
7337 # ever link correctly. If we're not using GNU ld we use -z text 6813 # ever link correctly. If we're not using GNU ld we use -z text
7338 # though, which does catch some bad symbols but isn't as heavy-handed 6814 # though, which does catch some bad symbols but isn't as heavy-handed
7339 # as -z defs. 6815 # as -z defs.
7340 » _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6816 » _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7341 » _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6817 » _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7342 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6818 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6819 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7344 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6820 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7345 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6821 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7346 _LT_TAGVAR(link_all_deplibs, $1)=yes 6822 _LT_TAGVAR(link_all_deplibs, $1)=yes
7347 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6823 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7348 runpath_var='LD_RUN_PATH' 6824 runpath_var='LD_RUN_PATH'
7349 6825
7350 case $cc_basename in 6826 case $cc_basename in
7351 CC*) 6827 CC*)
7352 » _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6828 » _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobj s $deplibs $compiler_flags'
7353 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symb ols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6829 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sy mbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7354 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6830 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7355 '"$_LT_TAGVAR(old_archive_cmds, $1)" 6831 » '"$_LT_TAGVAR(old_archive_cmds, $1)"
7356 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6832 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7357 '"$_LT_TAGVAR(reload_cmds, $1)" 6833 » '"$_LT_TAGVAR(reload_cmds, $1)"
7358 ;; 6834 ;;
7359 *) 6835 *)
7360 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $lib objs $deplibs $compiler_flags' 6836 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $l ibobjs $deplibs $compiler_flags'
7361 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export _symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6837 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expo rt_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7362 ;; 6838 ;;
7363 esac 6839 esac
7364 ;; 6840 ;;
7365 6841
7366 tandem*) 6842 tandem*)
7367 case $cc_basename in 6843 case $cc_basename in
7368 NCC*) 6844 NCC*)
7369 # NonStop-UX NCC 3.20 6845 # NonStop-UX NCC 3.20
7370 # FIXME: insert proper C++ library support 6846 # FIXME: insert proper C++ library support
7371 _LT_TAGVAR(ld_shlibs, $1)=no 6847 _LT_TAGVAR(ld_shlibs, $1)=no
(...skipping 10 matching lines...) Expand all
7382 _LT_TAGVAR(ld_shlibs, $1)=no 6858 _LT_TAGVAR(ld_shlibs, $1)=no
7383 ;; 6859 ;;
7384 6860
7385 *) 6861 *)
7386 # FIXME: insert proper C++ library support 6862 # FIXME: insert proper C++ library support
7387 _LT_TAGVAR(ld_shlibs, $1)=no 6863 _LT_TAGVAR(ld_shlibs, $1)=no
7388 ;; 6864 ;;
7389 esac 6865 esac
7390 6866
7391 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6867 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7392 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 6868 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7393 6869
7394 _LT_TAGVAR(GCC, $1)=$GXX 6870 _LT_TAGVAR(GCC, $1)="$GXX"
7395 _LT_TAGVAR(LD, $1)=$LD 6871 _LT_TAGVAR(LD, $1)="$LD"
7396 6872
7397 ## CAVEAT EMPTOR: 6873 ## CAVEAT EMPTOR:
7398 ## There is no encapsulation within the following macros, do not change 6874 ## There is no encapsulation within the following macros, do not change
7399 ## the running order or otherwise move them around unless you know exactly 6875 ## the running order or otherwise move them around unless you know exactly
7400 ## what you are doing... 6876 ## what you are doing...
7401 _LT_SYS_HIDDEN_LIBDEPS($1) 6877 _LT_SYS_HIDDEN_LIBDEPS($1)
7402 _LT_COMPILER_PIC($1) 6878 _LT_COMPILER_PIC($1)
7403 _LT_COMPILER_C_O($1) 6879 _LT_COMPILER_C_O($1)
7404 _LT_COMPILER_FILE_LOCKS($1) 6880 _LT_COMPILER_FILE_LOCKS($1)
7405 _LT_LINKER_SHLIBS($1) 6881 _LT_LINKER_SHLIBS($1)
7406 _LT_SYS_DYNAMIC_LINKER($1) 6882 _LT_SYS_DYNAMIC_LINKER($1)
7407 _LT_LINKER_HARDCODE_LIBPATH($1) 6883 _LT_LINKER_HARDCODE_LIBPATH($1)
7408 6884
7409 _LT_CONFIG($1) 6885 _LT_CONFIG($1)
7410 fi # test -n "$compiler" 6886 fi # test -n "$compiler"
7411 6887
7412 CC=$lt_save_CC 6888 CC=$lt_save_CC
7413 CFLAGS=$lt_save_CFLAGS 6889 CFLAGS=$lt_save_CFLAGS
7414 LDCXX=$LD 6890 LDCXX=$LD
7415 LD=$lt_save_LD 6891 LD=$lt_save_LD
7416 GCC=$lt_save_GCC 6892 GCC=$lt_save_GCC
7417 with_gnu_ld=$lt_save_with_gnu_ld 6893 with_gnu_ld=$lt_save_with_gnu_ld
7418 lt_cv_path_LDCXX=$lt_cv_path_LD 6894 lt_cv_path_LDCXX=$lt_cv_path_LD
7419 lt_cv_path_LD=$lt_save_path_LD 6895 lt_cv_path_LD=$lt_save_path_LD
7420 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6896 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7421 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6897 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7422 fi # test yes != "$_lt_caught_CXX_error" 6898 fi # test "$_lt_caught_CXX_error" != yes
7423 6899
7424 AC_LANG_POP 6900 AC_LANG_POP
7425 ])# _LT_LANG_CXX_CONFIG 6901 ])# _LT_LANG_CXX_CONFIG
7426 6902
7427 6903
7428 # _LT_FUNC_STRIPNAME_CNF 6904 # _LT_FUNC_STRIPNAME_CNF
7429 # ---------------------- 6905 # ----------------------
7430 # func_stripname_cnf prefix suffix name 6906 # func_stripname_cnf prefix suffix name
7431 # strip PREFIX and SUFFIX off of NAME. 6907 # strip PREFIX and SUFFIX off of NAME.
7432 # PREFIX and SUFFIX must not contain globbing or regex special 6908 # PREFIX and SUFFIX must not contain globbing or regex special
7433 # characters, hashes, percent signs, but SUFFIX may contain a leading 6909 # characters, hashes, percent signs, but SUFFIX may contain a leading
7434 # dot (in which case that matches only a dot). 6910 # dot (in which case that matches only a dot).
7435 # 6911 #
7436 # This function is identical to the (non-XSI) version of func_stripname, 6912 # This function is identical to the (non-XSI) version of func_stripname,
7437 # except this one can be used by m4 code that may be executed by configure, 6913 # except this one can be used by m4 code that may be executed by configure,
7438 # rather than the libtool script. 6914 # rather than the libtool script.
7439 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 6915 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7440 AC_REQUIRE([_LT_DECL_SED]) 6916 AC_REQUIRE([_LT_DECL_SED])
7441 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 6917 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7442 func_stripname_cnf () 6918 func_stripname_cnf ()
7443 { 6919 {
7444 case @S|@2 in 6920 case ${2} in
7445 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"` ;; 6921 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7446 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 6922 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7447 esac 6923 esac
7448 } # func_stripname_cnf 6924 } # func_stripname_cnf
7449 ])# _LT_FUNC_STRIPNAME_CNF 6925 ])# _LT_FUNC_STRIPNAME_CNF
7450 6926
7451
7452 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6927 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7453 # --------------------------------- 6928 # ---------------------------------
7454 # Figure out "hidden" library dependencies from verbose 6929 # Figure out "hidden" library dependencies from verbose
7455 # compiler output when linking a shared library. 6930 # compiler output when linking a shared library.
7456 # Parse the compiler output and extract the necessary 6931 # Parse the compiler output and extract the necessary
7457 # objects, libraries and library flags. 6932 # objects, libraries and library flags.
7458 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6933 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7459 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6934 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7460 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 6935 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7461 # Dependencies to place before and after the object being linked: 6936 # Dependencies to place before and after the object being linked:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
7525 dnl objects, libraries and library flags. 7000 dnl objects, libraries and library flags.
7526 if AC_TRY_EVAL(ac_compile); then 7001 if AC_TRY_EVAL(ac_compile); then
7527 # Parse the compiler output and extract the necessary 7002 # Parse the compiler output and extract the necessary
7528 # objects, libraries and library flags. 7003 # objects, libraries and library flags.
7529 7004
7530 # Sentinel used to keep track of whether or not we are before 7005 # Sentinel used to keep track of whether or not we are before
7531 # the conftest object file. 7006 # the conftest object file.
7532 pre_test_object_deps_done=no 7007 pre_test_object_deps_done=no
7533 7008
7534 for p in `eval "$output_verbose_link_cmd"`; do 7009 for p in `eval "$output_verbose_link_cmd"`; do
7535 case $prev$p in 7010 case ${prev}${p} in
7536 7011
7537 -L* | -R* | -l*) 7012 -L* | -R* | -l*)
7538 # Some compilers place space between "-{L,R}" and the path. 7013 # Some compilers place space between "-{L,R}" and the path.
7539 # Remove the space. 7014 # Remove the space.
7540 if test x-L = "$p" || 7015 if test $p = "-L" ||
7541 test x-R = "$p"; then 7016 test $p = "-R"; then
7542 prev=$p 7017 prev=$p
7543 continue 7018 continue
7544 fi 7019 fi
7545 7020
7546 # Expand the sysroot to ease extracting the directories later. 7021 # Expand the sysroot to ease extracting the directories later.
7547 if test -z "$prev"; then 7022 if test -z "$prev"; then
7548 case $p in 7023 case $p in
7549 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7024 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7550 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7025 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7551 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7026 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7552 esac 7027 esac
7553 fi 7028 fi
7554 case $p in 7029 case $p in
7555 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ; ; 7030 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ; ;
7556 esac 7031 esac
7557 if test no = "$pre_test_object_deps_done"; then 7032 if test "$pre_test_object_deps_done" = no; then
7558 » case $prev in 7033 » case ${prev} in
7559 -L | -R) 7034 -L | -R)
7560 # Internal compiler library paths should come after those 7035 # Internal compiler library paths should come after those
7561 # provided the user. The postdeps already come after the 7036 # provided the user. The postdeps already come after the
7562 # user supplied libs so there is no need to process them. 7037 # user supplied libs so there is no need to process them.
7563 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7038 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7564 » _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 7039 » _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7565 else 7040 else
7566 » _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib _search_path, $1)} $prev$p" 7041 » _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib _search_path, $1)} ${prev}${p}"
7567 fi 7042 fi
7568 ;; 7043 ;;
7569 # The "-l" case would never come before the object being 7044 # The "-l" case would never come before the object being
7570 # linked, so don't bother handling this case. 7045 # linked, so don't bother handling this case.
7571 esac 7046 esac
7572 else 7047 else
7573 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7048 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7574 » _LT_TAGVAR(postdeps, $1)=$prev$p 7049 » _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7575 else 7050 else
7576 » _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 7051 » _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7577 fi 7052 fi
7578 fi 7053 fi
7579 prev= 7054 prev=
7580 ;; 7055 ;;
7581 7056
7582 *.lto.$objext) ;; # Ignore GCC LTO objects 7057 *.lto.$objext) ;; # Ignore GCC LTO objects
7583 *.$objext) 7058 *.$objext)
7584 # This assumes that the test object file only shows up 7059 # This assumes that the test object file only shows up
7585 # once in the compiler output. 7060 # once in the compiler output.
7586 if test "$p" = "conftest.$objext"; then 7061 if test "$p" = "conftest.$objext"; then
7587 pre_test_object_deps_done=yes 7062 pre_test_object_deps_done=yes
7588 continue 7063 continue
7589 fi 7064 fi
7590 7065
7591 if test no = "$pre_test_object_deps_done"; then 7066 if test "$pre_test_object_deps_done" = no; then
7592 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7067 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7593 » _LT_TAGVAR(predep_objects, $1)=$p 7068 » _LT_TAGVAR(predep_objects, $1)="$p"
7594 else 7069 else
7595 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7070 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7596 fi 7071 fi
7597 else 7072 else
7598 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7073 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7599 » _LT_TAGVAR(postdep_objects, $1)=$p 7074 » _LT_TAGVAR(postdep_objects, $1)="$p"
7600 else 7075 else
7601 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7076 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7602 fi 7077 fi
7603 fi 7078 fi
7604 ;; 7079 ;;
7605 7080
7606 *) ;; # Ignore the rest. 7081 *) ;; # Ignore the rest.
7607 7082
7608 esac 7083 esac
7609 done 7084 done
(...skipping 10 matching lines...) Expand all
7620 # PORTME: override above test on systems where it is broken 7095 # PORTME: override above test on systems where it is broken
7621 m4_if([$1], [CXX], 7096 m4_if([$1], [CXX],
7622 [case $host_os in 7097 [case $host_os in
7623 interix[[3-9]]*) 7098 interix[[3-9]]*)
7624 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7099 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7625 # hack all around it, let's just trust "g++" to DTRT. 7100 # hack all around it, let's just trust "g++" to DTRT.
7626 _LT_TAGVAR(predep_objects,$1)= 7101 _LT_TAGVAR(predep_objects,$1)=
7627 _LT_TAGVAR(postdep_objects,$1)= 7102 _LT_TAGVAR(postdep_objects,$1)=
7628 _LT_TAGVAR(postdeps,$1)= 7103 _LT_TAGVAR(postdeps,$1)=
7629 ;; 7104 ;;
7105
7106 linux*)
7107 case `$CC -V 2>&1 | sed 5q` in
7108 *Sun\ C*)
7109 # Sun C++ 5.9
7110
7111 # The more standards-conforming stlport4 library is
7112 # incompatible with the Cstd library. Avoid specifying
7113 # it if it's in CXXFLAGS. Ignore libCrun as
7114 # -library=stlport4 depends on it.
7115 case " $CXX $CXXFLAGS " in
7116 *" -library=stlport4 "*)
7117 solaris_use_stlport4=yes
7118 ;;
7119 esac
7120
7121 if test "$solaris_use_stlport4" != yes; then
7122 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7123 fi
7124 ;;
7125 esac
7126 ;;
7127
7128 solaris*)
7129 case $cc_basename in
7130 CC* | sunCC*)
7131 # The more standards-conforming stlport4 library is
7132 # incompatible with the Cstd library. Avoid specifying
7133 # it if it's in CXXFLAGS. Ignore libCrun as
7134 # -library=stlport4 depends on it.
7135 case " $CXX $CXXFLAGS " in
7136 *" -library=stlport4 "*)
7137 solaris_use_stlport4=yes
7138 ;;
7139 esac
7140
7141 # Adding this requires a known-good setup of shared libraries for
7142 # Sun compiler versions before 5.6, else PIC objects from an old
7143 # archive will be linked into the output, leading to subtle bugs.
7144 if test "$solaris_use_stlport4" != yes; then
7145 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7146 fi
7147 ;;
7148 esac
7149 ;;
7630 esac 7150 esac
7631 ]) 7151 ])
7632 7152
7633 case " $_LT_TAGVAR(postdeps, $1) " in 7153 case " $_LT_TAGVAR(postdeps, $1) " in
7634 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7154 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7635 esac 7155 esac
7636 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7156 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7637 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7157 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7638 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_sear ch_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 7158 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_sear ch_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7639 fi 7159 fi
7640 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7160 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7641 [The directories searched by this compiler when creating a shared library]) 7161 [The directories searched by this compiler when creating a shared library])
7642 _LT_TAGDECL([], [predep_objects], [1], 7162 _LT_TAGDECL([], [predep_objects], [1],
7643 [Dependencies to place before and after the objects being linked to 7163 [Dependencies to place before and after the objects being linked to
7644 create a shared library]) 7164 create a shared library])
7645 _LT_TAGDECL([], [postdep_objects], [1]) 7165 _LT_TAGDECL([], [postdep_objects], [1])
7646 _LT_TAGDECL([], [predeps], [1]) 7166 _LT_TAGDECL([], [predeps], [1])
7647 _LT_TAGDECL([], [postdeps], [1]) 7167 _LT_TAGDECL([], [postdeps], [1])
7648 _LT_TAGDECL([], [compiler_lib_search_path], [1], 7168 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7649 [The library search path used internally by the compiler when linking 7169 [The library search path used internally by the compiler when linking
7650 a shared library]) 7170 a shared library])
7651 ])# _LT_SYS_HIDDEN_LIBDEPS 7171 ])# _LT_SYS_HIDDEN_LIBDEPS
7652 7172
7653 7173
7654 # _LT_LANG_F77_CONFIG([TAG]) 7174 # _LT_LANG_F77_CONFIG([TAG])
7655 # -------------------------- 7175 # --------------------------
7656 # Ensure that the configuration variables for a Fortran 77 compiler are 7176 # Ensure that the configuration variables for a Fortran 77 compiler are
7657 # suitably defined. These variables are subsequently used by _LT_CONFIG 7177 # suitably defined. These variables are subsequently used by _LT_CONFIG
7658 # to write the compiler configuration to 'libtool'. 7178 # to write the compiler configuration to `libtool'.
7659 m4_defun([_LT_LANG_F77_CONFIG], 7179 m4_defun([_LT_LANG_F77_CONFIG],
7660 [AC_LANG_PUSH(Fortran 77) 7180 [AC_LANG_PUSH(Fortran 77)
7661 if test -z "$F77" || test no = "$F77"; then 7181 if test -z "$F77" || test "X$F77" = "Xno"; then
7662 _lt_disable_F77=yes 7182 _lt_disable_F77=yes
7663 fi 7183 fi
7664 7184
7665 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7185 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7666 _LT_TAGVAR(allow_undefined_flag, $1)= 7186 _LT_TAGVAR(allow_undefined_flag, $1)=
7667 _LT_TAGVAR(always_export_symbols, $1)=no 7187 _LT_TAGVAR(always_export_symbols, $1)=no
7668 _LT_TAGVAR(archive_expsym_cmds, $1)= 7188 _LT_TAGVAR(archive_expsym_cmds, $1)=
7669 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7189 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7670 _LT_TAGVAR(hardcode_direct, $1)=no 7190 _LT_TAGVAR(hardcode_direct, $1)=no
7671 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7191 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
(...skipping 16 matching lines...) Expand all
7688 ac_ext=f 7208 ac_ext=f
7689 7209
7690 # Object file extension for compiled f77 test sources. 7210 # Object file extension for compiled f77 test sources.
7691 objext=o 7211 objext=o
7692 _LT_TAGVAR(objext, $1)=$objext 7212 _LT_TAGVAR(objext, $1)=$objext
7693 7213
7694 # No sense in running all these tests if we already determined that 7214 # No sense in running all these tests if we already determined that
7695 # the F77 compiler isn't working. Some variables (like enable_shared) 7215 # the F77 compiler isn't working. Some variables (like enable_shared)
7696 # are currently assumed to apply to all compilers on this platform, 7216 # are currently assumed to apply to all compilers on this platform,
7697 # and will be corrupted by setting them based on a non-working compiler. 7217 # and will be corrupted by setting them based on a non-working compiler.
7698 if test yes != "$_lt_disable_F77"; then 7218 if test "$_lt_disable_F77" != yes; then
7699 # Code to be used in simple compile tests 7219 # Code to be used in simple compile tests
7700 lt_simple_compile_test_code="\ 7220 lt_simple_compile_test_code="\
7701 subroutine t 7221 subroutine t
7702 return 7222 return
7703 end 7223 end
7704 " 7224 "
7705 7225
7706 # Code to be used in simple link tests 7226 # Code to be used in simple link tests
7707 lt_simple_link_test_code="\ 7227 lt_simple_link_test_code="\
7708 program t 7228 program t
7709 end 7229 end
7710 " 7230 "
7711 7231
7712 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7713 _LT_TAG_COMPILER 7233 _LT_TAG_COMPILER
7714 7234
7715 # save warnings/boilerplate of simple test code 7235 # save warnings/boilerplate of simple test code
7716 _LT_COMPILER_BOILERPLATE 7236 _LT_COMPILER_BOILERPLATE
7717 _LT_LINKER_BOILERPLATE 7237 _LT_LINKER_BOILERPLATE
7718 7238
7719 # Allow CC to be a program name with arguments. 7239 # Allow CC to be a program name with arguments.
7720 lt_save_CC=$CC 7240 lt_save_CC="$CC"
7721 lt_save_GCC=$GCC 7241 lt_save_GCC=$GCC
7722 lt_save_CFLAGS=$CFLAGS 7242 lt_save_CFLAGS=$CFLAGS
7723 CC=${F77-"f77"} 7243 CC=${F77-"f77"}
7724 CFLAGS=$FFLAGS 7244 CFLAGS=$FFLAGS
7725 compiler=$CC 7245 compiler=$CC
7726 _LT_TAGVAR(compiler, $1)=$CC 7246 _LT_TAGVAR(compiler, $1)=$CC
7727 _LT_CC_BASENAME([$compiler]) 7247 _LT_CC_BASENAME([$compiler])
7728 GCC=$G77 7248 GCC=$G77
7729 if test -n "$compiler"; then 7249 if test -n "$compiler"; then
7730 AC_MSG_CHECKING([if libtool supports shared libraries]) 7250 AC_MSG_CHECKING([if libtool supports shared libraries])
7731 AC_MSG_RESULT([$can_build_shared]) 7251 AC_MSG_RESULT([$can_build_shared])
7732 7252
7733 AC_MSG_CHECKING([whether to build shared libraries]) 7253 AC_MSG_CHECKING([whether to build shared libraries])
7734 test no = "$can_build_shared" && enable_shared=no 7254 test "$can_build_shared" = "no" && enable_shared=no
7735 7255
7736 # On AIX, shared libraries and static libraries use the same namespace, and 7256 # On AIX, shared libraries and static libraries use the same namespace, and
7737 # are all built from PIC. 7257 # are all built from PIC.
7738 case $host_os in 7258 case $host_os in
7739 aix3*) 7259 aix3*)
7740 test yes = "$enable_shared" && enable_static=no 7260 test "$enable_shared" = yes && enable_static=no
7741 if test -n "$RANLIB"; then 7261 if test -n "$RANLIB"; then
7742 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7743 postinstall_cmds='$RANLIB $lib' 7263 postinstall_cmds='$RANLIB $lib'
7744 fi 7264 fi
7745 ;; 7265 ;;
7746 aix[[4-9]]*) 7266 aix[[4-9]]*)
7747 » if test ia64 != "$host_cpu"; then 7267 » if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; the n
7748 » case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7268 » test "$enable_shared" = yes && enable_static=no
7749 » yes,aix,yes) ;;» » # shared object as lib.so file only
7750 » yes,svr4,*) ;;» » # shared object as lib.so archive member only
7751 » yes,*) enable_static=no ;;» # shared object in lib.a archive as well
7752 » esac
7753 fi 7269 fi
7754 ;; 7270 ;;
7755 esac 7271 esac
7756 AC_MSG_RESULT([$enable_shared]) 7272 AC_MSG_RESULT([$enable_shared])
7757 7273
7758 AC_MSG_CHECKING([whether to build static libraries]) 7274 AC_MSG_CHECKING([whether to build static libraries])
7759 # Make sure either enable_shared or enable_static is yes. 7275 # Make sure either enable_shared or enable_static is yes.
7760 test yes = "$enable_shared" || enable_static=yes 7276 test "$enable_shared" = yes || enable_static=yes
7761 AC_MSG_RESULT([$enable_static]) 7277 AC_MSG_RESULT([$enable_static])
7762 7278
7763 _LT_TAGVAR(GCC, $1)=$G77 7279 _LT_TAGVAR(GCC, $1)="$G77"
7764 _LT_TAGVAR(LD, $1)=$LD 7280 _LT_TAGVAR(LD, $1)="$LD"
7765 7281
7766 ## CAVEAT EMPTOR: 7282 ## CAVEAT EMPTOR:
7767 ## There is no encapsulation within the following macros, do not change 7283 ## There is no encapsulation within the following macros, do not change
7768 ## the running order or otherwise move them around unless you know exactly 7284 ## the running order or otherwise move them around unless you know exactly
7769 ## what you are doing... 7285 ## what you are doing...
7770 _LT_COMPILER_PIC($1) 7286 _LT_COMPILER_PIC($1)
7771 _LT_COMPILER_C_O($1) 7287 _LT_COMPILER_C_O($1)
7772 _LT_COMPILER_FILE_LOCKS($1) 7288 _LT_COMPILER_FILE_LOCKS($1)
7773 _LT_LINKER_SHLIBS($1) 7289 _LT_LINKER_SHLIBS($1)
7774 _LT_SYS_DYNAMIC_LINKER($1) 7290 _LT_SYS_DYNAMIC_LINKER($1)
7775 _LT_LINKER_HARDCODE_LIBPATH($1) 7291 _LT_LINKER_HARDCODE_LIBPATH($1)
7776 7292
7777 _LT_CONFIG($1) 7293 _LT_CONFIG($1)
7778 fi # test -n "$compiler" 7294 fi # test -n "$compiler"
7779 7295
7780 GCC=$lt_save_GCC 7296 GCC=$lt_save_GCC
7781 CC=$lt_save_CC 7297 CC="$lt_save_CC"
7782 CFLAGS=$lt_save_CFLAGS 7298 CFLAGS="$lt_save_CFLAGS"
7783 fi # test yes != "$_lt_disable_F77" 7299 fi # test "$_lt_disable_F77" != yes
7784 7300
7785 AC_LANG_POP 7301 AC_LANG_POP
7786 ])# _LT_LANG_F77_CONFIG 7302 ])# _LT_LANG_F77_CONFIG
7787 7303
7788 7304
7789 # _LT_LANG_FC_CONFIG([TAG]) 7305 # _LT_LANG_FC_CONFIG([TAG])
7790 # ------------------------- 7306 # -------------------------
7791 # Ensure that the configuration variables for a Fortran compiler are 7307 # Ensure that the configuration variables for a Fortran compiler are
7792 # suitably defined. These variables are subsequently used by _LT_CONFIG 7308 # suitably defined. These variables are subsequently used by _LT_CONFIG
7793 # to write the compiler configuration to 'libtool'. 7309 # to write the compiler configuration to `libtool'.
7794 m4_defun([_LT_LANG_FC_CONFIG], 7310 m4_defun([_LT_LANG_FC_CONFIG],
7795 [AC_LANG_PUSH(Fortran) 7311 [AC_LANG_PUSH(Fortran)
7796 7312
7797 if test -z "$FC" || test no = "$FC"; then 7313 if test -z "$FC" || test "X$FC" = "Xno"; then
7798 _lt_disable_FC=yes 7314 _lt_disable_FC=yes
7799 fi 7315 fi
7800 7316
7801 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7802 _LT_TAGVAR(allow_undefined_flag, $1)= 7318 _LT_TAGVAR(allow_undefined_flag, $1)=
7803 _LT_TAGVAR(always_export_symbols, $1)=no 7319 _LT_TAGVAR(always_export_symbols, $1)=no
7804 _LT_TAGVAR(archive_expsym_cmds, $1)= 7320 _LT_TAGVAR(archive_expsym_cmds, $1)=
7805 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7321 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7806 _LT_TAGVAR(hardcode_direct, $1)=no 7322 _LT_TAGVAR(hardcode_direct, $1)=no
7807 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7323 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
(...skipping 16 matching lines...) Expand all
7824 ac_ext=${ac_fc_srcext-f} 7340 ac_ext=${ac_fc_srcext-f}
7825 7341
7826 # Object file extension for compiled fc test sources. 7342 # Object file extension for compiled fc test sources.
7827 objext=o 7343 objext=o
7828 _LT_TAGVAR(objext, $1)=$objext 7344 _LT_TAGVAR(objext, $1)=$objext
7829 7345
7830 # No sense in running all these tests if we already determined that 7346 # No sense in running all these tests if we already determined that
7831 # the FC compiler isn't working. Some variables (like enable_shared) 7347 # the FC compiler isn't working. Some variables (like enable_shared)
7832 # are currently assumed to apply to all compilers on this platform, 7348 # are currently assumed to apply to all compilers on this platform,
7833 # and will be corrupted by setting them based on a non-working compiler. 7349 # and will be corrupted by setting them based on a non-working compiler.
7834 if test yes != "$_lt_disable_FC"; then 7350 if test "$_lt_disable_FC" != yes; then
7835 # Code to be used in simple compile tests 7351 # Code to be used in simple compile tests
7836 lt_simple_compile_test_code="\ 7352 lt_simple_compile_test_code="\
7837 subroutine t 7353 subroutine t
7838 return 7354 return
7839 end 7355 end
7840 " 7356 "
7841 7357
7842 # Code to be used in simple link tests 7358 # Code to be used in simple link tests
7843 lt_simple_link_test_code="\ 7359 lt_simple_link_test_code="\
7844 program t 7360 program t
7845 end 7361 end
7846 " 7362 "
7847 7363
7848 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7849 _LT_TAG_COMPILER 7365 _LT_TAG_COMPILER
7850 7366
7851 # save warnings/boilerplate of simple test code 7367 # save warnings/boilerplate of simple test code
7852 _LT_COMPILER_BOILERPLATE 7368 _LT_COMPILER_BOILERPLATE
7853 _LT_LINKER_BOILERPLATE 7369 _LT_LINKER_BOILERPLATE
7854 7370
7855 # Allow CC to be a program name with arguments. 7371 # Allow CC to be a program name with arguments.
7856 lt_save_CC=$CC 7372 lt_save_CC="$CC"
7857 lt_save_GCC=$GCC 7373 lt_save_GCC=$GCC
7858 lt_save_CFLAGS=$CFLAGS 7374 lt_save_CFLAGS=$CFLAGS
7859 CC=${FC-"f95"} 7375 CC=${FC-"f95"}
7860 CFLAGS=$FCFLAGS 7376 CFLAGS=$FCFLAGS
7861 compiler=$CC 7377 compiler=$CC
7862 GCC=$ac_cv_fc_compiler_gnu 7378 GCC=$ac_cv_fc_compiler_gnu
7863 7379
7864 _LT_TAGVAR(compiler, $1)=$CC 7380 _LT_TAGVAR(compiler, $1)=$CC
7865 _LT_CC_BASENAME([$compiler]) 7381 _LT_CC_BASENAME([$compiler])
7866 7382
7867 if test -n "$compiler"; then 7383 if test -n "$compiler"; then
7868 AC_MSG_CHECKING([if libtool supports shared libraries]) 7384 AC_MSG_CHECKING([if libtool supports shared libraries])
7869 AC_MSG_RESULT([$can_build_shared]) 7385 AC_MSG_RESULT([$can_build_shared])
7870 7386
7871 AC_MSG_CHECKING([whether to build shared libraries]) 7387 AC_MSG_CHECKING([whether to build shared libraries])
7872 test no = "$can_build_shared" && enable_shared=no 7388 test "$can_build_shared" = "no" && enable_shared=no
7873 7389
7874 # On AIX, shared libraries and static libraries use the same namespace, and 7390 # On AIX, shared libraries and static libraries use the same namespace, and
7875 # are all built from PIC. 7391 # are all built from PIC.
7876 case $host_os in 7392 case $host_os in
7877 aix3*) 7393 aix3*)
7878 test yes = "$enable_shared" && enable_static=no 7394 test "$enable_shared" = yes && enable_static=no
7879 if test -n "$RANLIB"; then 7395 if test -n "$RANLIB"; then
7880 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7396 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7881 postinstall_cmds='$RANLIB $lib' 7397 postinstall_cmds='$RANLIB $lib'
7882 fi 7398 fi
7883 ;; 7399 ;;
7884 aix[[4-9]]*) 7400 aix[[4-9]]*)
7885 » if test ia64 != "$host_cpu"; then 7401 » if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; the n
7886 » case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7402 » test "$enable_shared" = yes && enable_static=no
7887 » yes,aix,yes) ;;» » # shared object as lib.so file only
7888 » yes,svr4,*) ;;» » # shared object as lib.so archive member only
7889 » yes,*) enable_static=no ;;» # shared object in lib.a archive as well
7890 » esac
7891 fi 7403 fi
7892 ;; 7404 ;;
7893 esac 7405 esac
7894 AC_MSG_RESULT([$enable_shared]) 7406 AC_MSG_RESULT([$enable_shared])
7895 7407
7896 AC_MSG_CHECKING([whether to build static libraries]) 7408 AC_MSG_CHECKING([whether to build static libraries])
7897 # Make sure either enable_shared or enable_static is yes. 7409 # Make sure either enable_shared or enable_static is yes.
7898 test yes = "$enable_shared" || enable_static=yes 7410 test "$enable_shared" = yes || enable_static=yes
7899 AC_MSG_RESULT([$enable_static]) 7411 AC_MSG_RESULT([$enable_static])
7900 7412
7901 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7413 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7902 _LT_TAGVAR(LD, $1)=$LD 7414 _LT_TAGVAR(LD, $1)="$LD"
7903 7415
7904 ## CAVEAT EMPTOR: 7416 ## CAVEAT EMPTOR:
7905 ## There is no encapsulation within the following macros, do not change 7417 ## There is no encapsulation within the following macros, do not change
7906 ## the running order or otherwise move them around unless you know exactly 7418 ## the running order or otherwise move them around unless you know exactly
7907 ## what you are doing... 7419 ## what you are doing...
7908 _LT_SYS_HIDDEN_LIBDEPS($1) 7420 _LT_SYS_HIDDEN_LIBDEPS($1)
7909 _LT_COMPILER_PIC($1) 7421 _LT_COMPILER_PIC($1)
7910 _LT_COMPILER_C_O($1) 7422 _LT_COMPILER_C_O($1)
7911 _LT_COMPILER_FILE_LOCKS($1) 7423 _LT_COMPILER_FILE_LOCKS($1)
7912 _LT_LINKER_SHLIBS($1) 7424 _LT_LINKER_SHLIBS($1)
7913 _LT_SYS_DYNAMIC_LINKER($1) 7425 _LT_SYS_DYNAMIC_LINKER($1)
7914 _LT_LINKER_HARDCODE_LIBPATH($1) 7426 _LT_LINKER_HARDCODE_LIBPATH($1)
7915 7427
7916 _LT_CONFIG($1) 7428 _LT_CONFIG($1)
7917 fi # test -n "$compiler" 7429 fi # test -n "$compiler"
7918 7430
7919 GCC=$lt_save_GCC 7431 GCC=$lt_save_GCC
7920 CC=$lt_save_CC 7432 CC=$lt_save_CC
7921 CFLAGS=$lt_save_CFLAGS 7433 CFLAGS=$lt_save_CFLAGS
7922 fi # test yes != "$_lt_disable_FC" 7434 fi # test "$_lt_disable_FC" != yes
7923 7435
7924 AC_LANG_POP 7436 AC_LANG_POP
7925 ])# _LT_LANG_FC_CONFIG 7437 ])# _LT_LANG_FC_CONFIG
7926 7438
7927 7439
7928 # _LT_LANG_GCJ_CONFIG([TAG]) 7440 # _LT_LANG_GCJ_CONFIG([TAG])
7929 # -------------------------- 7441 # --------------------------
7930 # Ensure that the configuration variables for the GNU Java Compiler compiler 7442 # Ensure that the configuration variables for the GNU Java Compiler compiler
7931 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7443 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7932 # to write the compiler configuration to 'libtool'. 7444 # to write the compiler configuration to `libtool'.
7933 m4_defun([_LT_LANG_GCJ_CONFIG], 7445 m4_defun([_LT_LANG_GCJ_CONFIG],
7934 [AC_REQUIRE([LT_PROG_GCJ])dnl 7446 [AC_REQUIRE([LT_PROG_GCJ])dnl
7935 AC_LANG_SAVE 7447 AC_LANG_SAVE
7936 7448
7937 # Source file extension for Java test sources. 7449 # Source file extension for Java test sources.
7938 ac_ext=java 7450 ac_ext=java
7939 7451
7940 # Object file extension for compiled Java test sources. 7452 # Object file extension for compiled Java test sources.
7941 objext=o 7453 objext=o
7942 _LT_TAGVAR(objext, $1)=$objext 7454 _LT_TAGVAR(objext, $1)=$objext
(...skipping 13 matching lines...) Expand all
7956 7468
7957 # Allow CC to be a program name with arguments. 7469 # Allow CC to be a program name with arguments.
7958 lt_save_CC=$CC 7470 lt_save_CC=$CC
7959 lt_save_CFLAGS=$CFLAGS 7471 lt_save_CFLAGS=$CFLAGS
7960 lt_save_GCC=$GCC 7472 lt_save_GCC=$GCC
7961 GCC=yes 7473 GCC=yes
7962 CC=${GCJ-"gcj"} 7474 CC=${GCJ-"gcj"}
7963 CFLAGS=$GCJFLAGS 7475 CFLAGS=$GCJFLAGS
7964 compiler=$CC 7476 compiler=$CC
7965 _LT_TAGVAR(compiler, $1)=$CC 7477 _LT_TAGVAR(compiler, $1)=$CC
7966 _LT_TAGVAR(LD, $1)=$LD 7478 _LT_TAGVAR(LD, $1)="$LD"
7967 _LT_CC_BASENAME([$compiler]) 7479 _LT_CC_BASENAME([$compiler])
7968 7480
7969 # GCJ did not exist at the time GCC didn't implicitly link libc in. 7481 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7970 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7482 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7971 7483
7972 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7484 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7973 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7485 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7974 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7486 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7975 7487
7976 ## CAVEAT EMPTOR: 7488 ## CAVEAT EMPTOR:
(...skipping 16 matching lines...) Expand all
7993 GCC=$lt_save_GCC 7505 GCC=$lt_save_GCC
7994 CC=$lt_save_CC 7506 CC=$lt_save_CC
7995 CFLAGS=$lt_save_CFLAGS 7507 CFLAGS=$lt_save_CFLAGS
7996 ])# _LT_LANG_GCJ_CONFIG 7508 ])# _LT_LANG_GCJ_CONFIG
7997 7509
7998 7510
7999 # _LT_LANG_GO_CONFIG([TAG]) 7511 # _LT_LANG_GO_CONFIG([TAG])
8000 # -------------------------- 7512 # --------------------------
8001 # Ensure that the configuration variables for the GNU Go compiler 7513 # Ensure that the configuration variables for the GNU Go compiler
8002 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7514 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8003 # to write the compiler configuration to 'libtool'. 7515 # to write the compiler configuration to `libtool'.
8004 m4_defun([_LT_LANG_GO_CONFIG], 7516 m4_defun([_LT_LANG_GO_CONFIG],
8005 [AC_REQUIRE([LT_PROG_GO])dnl 7517 [AC_REQUIRE([LT_PROG_GO])dnl
8006 AC_LANG_SAVE 7518 AC_LANG_SAVE
8007 7519
8008 # Source file extension for Go test sources. 7520 # Source file extension for Go test sources.
8009 ac_ext=go 7521 ac_ext=go
8010 7522
8011 # Object file extension for compiled Go test sources. 7523 # Object file extension for compiled Go test sources.
8012 objext=o 7524 objext=o
8013 _LT_TAGVAR(objext, $1)=$objext 7525 _LT_TAGVAR(objext, $1)=$objext
(...skipping 13 matching lines...) Expand all
8027 7539
8028 # Allow CC to be a program name with arguments. 7540 # Allow CC to be a program name with arguments.
8029 lt_save_CC=$CC 7541 lt_save_CC=$CC
8030 lt_save_CFLAGS=$CFLAGS 7542 lt_save_CFLAGS=$CFLAGS
8031 lt_save_GCC=$GCC 7543 lt_save_GCC=$GCC
8032 GCC=yes 7544 GCC=yes
8033 CC=${GOC-"gccgo"} 7545 CC=${GOC-"gccgo"}
8034 CFLAGS=$GOFLAGS 7546 CFLAGS=$GOFLAGS
8035 compiler=$CC 7547 compiler=$CC
8036 _LT_TAGVAR(compiler, $1)=$CC 7548 _LT_TAGVAR(compiler, $1)=$CC
8037 _LT_TAGVAR(LD, $1)=$LD 7549 _LT_TAGVAR(LD, $1)="$LD"
8038 _LT_CC_BASENAME([$compiler]) 7550 _LT_CC_BASENAME([$compiler])
8039 7551
8040 # Go did not exist at the time GCC didn't implicitly link libc in. 7552 # Go did not exist at the time GCC didn't implicitly link libc in.
8041 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7553 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8042 7554
8043 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7555 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8044 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7556 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8045 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7557 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8046 7558
8047 ## CAVEAT EMPTOR: 7559 ## CAVEAT EMPTOR:
(...skipping 16 matching lines...) Expand all
8064 GCC=$lt_save_GCC 7576 GCC=$lt_save_GCC
8065 CC=$lt_save_CC 7577 CC=$lt_save_CC
8066 CFLAGS=$lt_save_CFLAGS 7578 CFLAGS=$lt_save_CFLAGS
8067 ])# _LT_LANG_GO_CONFIG 7579 ])# _LT_LANG_GO_CONFIG
8068 7580
8069 7581
8070 # _LT_LANG_RC_CONFIG([TAG]) 7582 # _LT_LANG_RC_CONFIG([TAG])
8071 # ------------------------- 7583 # -------------------------
8072 # Ensure that the configuration variables for the Windows resource compiler 7584 # Ensure that the configuration variables for the Windows resource compiler
8073 # are suitably defined. These variables are subsequently used by _LT_CONFIG 7585 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8074 # to write the compiler configuration to 'libtool'. 7586 # to write the compiler configuration to `libtool'.
8075 m4_defun([_LT_LANG_RC_CONFIG], 7587 m4_defun([_LT_LANG_RC_CONFIG],
8076 [AC_REQUIRE([LT_PROG_RC])dnl 7588 [AC_REQUIRE([LT_PROG_RC])dnl
8077 AC_LANG_SAVE 7589 AC_LANG_SAVE
8078 7590
8079 # Source file extension for RC test sources. 7591 # Source file extension for RC test sources.
8080 ac_ext=rc 7592 ac_ext=rc
8081 7593
8082 # Object file extension for compiled RC test sources. 7594 # Object file extension for compiled RC test sources.
8083 objext=o 7595 objext=o
8084 _LT_TAGVAR(objext, $1)=$objext 7596 _LT_TAGVAR(objext, $1)=$objext
8085 7597
8086 # Code to be used in simple compile tests 7598 # Code to be used in simple compile tests
8087 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7599 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8088 7600
8089 # Code to be used in simple link tests 7601 # Code to be used in simple link tests
8090 lt_simple_link_test_code=$lt_simple_compile_test_code 7602 lt_simple_link_test_code="$lt_simple_compile_test_code"
8091 7603
8092 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8093 _LT_TAG_COMPILER 7605 _LT_TAG_COMPILER
8094 7606
8095 # save warnings/boilerplate of simple test code 7607 # save warnings/boilerplate of simple test code
8096 _LT_COMPILER_BOILERPLATE 7608 _LT_COMPILER_BOILERPLATE
8097 _LT_LINKER_BOILERPLATE 7609 _LT_LINKER_BOILERPLATE
8098 7610
8099 # Allow CC to be a program name with arguments. 7611 # Allow CC to be a program name with arguments.
8100 lt_save_CC=$CC 7612 lt_save_CC="$CC"
8101 lt_save_CFLAGS=$CFLAGS 7613 lt_save_CFLAGS=$CFLAGS
8102 lt_save_GCC=$GCC 7614 lt_save_GCC=$GCC
8103 GCC= 7615 GCC=
8104 CC=${RC-"windres"} 7616 CC=${RC-"windres"}
8105 CFLAGS= 7617 CFLAGS=
8106 compiler=$CC 7618 compiler=$CC
8107 _LT_TAGVAR(compiler, $1)=$CC 7619 _LT_TAGVAR(compiler, $1)=$CC
8108 _LT_CC_BASENAME([$compiler]) 7620 _LT_CC_BASENAME([$compiler])
8109 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 7621 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8110 7622
8111 if test -n "$compiler"; then 7623 if test -n "$compiler"; then
8112 : 7624 :
8113 _LT_CONFIG($1) 7625 _LT_CONFIG($1)
8114 fi 7626 fi
8115 7627
8116 GCC=$lt_save_GCC 7628 GCC=$lt_save_GCC
8117 AC_LANG_RESTORE 7629 AC_LANG_RESTORE
8118 CC=$lt_save_CC 7630 CC=$lt_save_CC
8119 CFLAGS=$lt_save_CFLAGS 7631 CFLAGS=$lt_save_CFLAGS
8120 ])# _LT_LANG_RC_CONFIG 7632 ])# _LT_LANG_RC_CONFIG
8121 7633
8122 7634
8123 # LT_PROG_GCJ 7635 # LT_PROG_GCJ
8124 # ----------- 7636 # -----------
8125 AC_DEFUN([LT_PROG_GCJ], 7637 AC_DEFUN([LT_PROG_GCJ],
8126 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7638 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8127 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7639 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8128 [AC_CHECK_TOOL(GCJ, gcj,) 7640 [AC_CHECK_TOOL(GCJ, gcj,)
8129 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 7641 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8130 AC_SUBST(GCJFLAGS)])])[]dnl 7642 AC_SUBST(GCJFLAGS)])])[]dnl
8131 ]) 7643 ])
8132 7644
8133 # Old name: 7645 # Old name:
8134 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7646 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8135 dnl aclocal-1.4 backwards compatibility: 7647 dnl aclocal-1.4 backwards compatibility:
8136 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7648 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8137 7649
8138 7650
8139 # LT_PROG_GO 7651 # LT_PROG_GO
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
8230 fi 7742 fi
8231 done 7743 done
8232 done 7744 done
8233 done 7745 done
8234 IFS=$as_save_IFS 7746 IFS=$as_save_IFS
8235 lt_ac_max=0 7747 lt_ac_max=0
8236 lt_ac_count=0 7748 lt_ac_count=0
8237 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 7749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8238 # along with /bin/sed that truncates output. 7750 # along with /bin/sed that truncates output.
8239 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8240 test ! -f "$lt_ac_sed" && continue 7752 test ! -f $lt_ac_sed && continue
8241 cat /dev/null > conftest.in 7753 cat /dev/null > conftest.in
8242 lt_ac_count=0 7754 lt_ac_count=0
8243 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8244 # Check for GNU sed and select it if it is found. 7756 # Check for GNU sed and select it if it is found.
8245 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8246 lt_cv_path_SED=$lt_ac_sed 7758 lt_cv_path_SED=$lt_ac_sed
8247 break 7759 break
8248 fi 7760 fi
8249 while true; do 7761 while true; do
8250 cat conftest.in conftest.in >conftest.tmp 7762 cat conftest.in conftest.in >conftest.tmp
8251 mv conftest.tmp conftest.in 7763 mv conftest.tmp conftest.in
8252 cp conftest.in conftest.nl 7764 cp conftest.in conftest.nl
8253 echo >>conftest.nl 7765 echo >>conftest.nl
8254 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8255 cmp -s conftest.out conftest.nl || break 7767 cmp -s conftest.out conftest.nl || break
8256 # 10000 chars as input seems more than enough 7768 # 10000 chars as input seems more than enough
8257 test 10 -lt "$lt_ac_count" && break 7769 test $lt_ac_count -gt 10 && break
8258 lt_ac_count=`expr $lt_ac_count + 1` 7770 lt_ac_count=`expr $lt_ac_count + 1`
8259 if test "$lt_ac_count" -gt "$lt_ac_max"; then 7771 if test $lt_ac_count -gt $lt_ac_max; then
8260 lt_ac_max=$lt_ac_count 7772 lt_ac_max=$lt_ac_count
8261 lt_cv_path_SED=$lt_ac_sed 7773 lt_cv_path_SED=$lt_ac_sed
8262 fi 7774 fi
8263 done 7775 done
8264 done 7776 done
8265 ]) 7777 ])
8266 SED=$lt_cv_path_SED 7778 SED=$lt_cv_path_SED
8267 AC_SUBST([SED]) 7779 AC_SUBST([SED])
8268 AC_MSG_RESULT([$SED]) 7780 AC_MSG_RESULT([$SED])
8269 ])#AC_PROG_SED 7781 ])#AC_PROG_SED
8270 ])#m4_ifndef 7782 ])#m4_ifndef
8271 7783
8272 # Old name: 7784 # Old name:
8273 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7785 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8274 dnl aclocal-1.4 backwards compatibility: 7786 dnl aclocal-1.4 backwards compatibility:
8275 dnl AC_DEFUN([LT_AC_PROG_SED], []) 7787 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8276 7788
8277 7789
8278 # _LT_CHECK_SHELL_FEATURES 7790 # _LT_CHECK_SHELL_FEATURES
8279 # ------------------------ 7791 # ------------------------
8280 # Find out whether the shell is Bourne or XSI compatible, 7792 # Find out whether the shell is Bourne or XSI compatible,
8281 # or has some other useful features. 7793 # or has some other useful features.
8282 m4_defun([_LT_CHECK_SHELL_FEATURES], 7794 m4_defun([_LT_CHECK_SHELL_FEATURES],
8283 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7795 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7796 # Try some XSI features
7797 xsi_shell=no
7798 ( _lt_dummy="a/b/c"
7799 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy "}, \
7800 = c,a/b,b/c, \
7801 && eval 'test $(( 1 + 1 )) -eq 2 \
7802 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7803 && xsi_shell=yes
7804 AC_MSG_RESULT([$xsi_shell])
7805 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7806
7807 AC_MSG_CHECKING([whether the shell understands "+="])
7808 lt_shell_append=no
7809 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7810 >/dev/null 2>&1 \
7811 && lt_shell_append=yes
7812 AC_MSG_RESULT([$lt_shell_append])
7813 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7814
7815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8284 lt_unset=unset 7816 lt_unset=unset
8285 else 7817 else
8286 lt_unset=false 7818 lt_unset=false
8287 fi 7819 fi
8288 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7820 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8289 7821
8290 # test EBCDIC or ASCII 7822 # test EBCDIC or ASCII
8291 case `echo X|tr X '\101'` in 7823 case `echo X|tr X '\101'` in
8292 A) # ASCII based system 7824 A) # ASCII based system
8293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8294 lt_SP2NL='tr \040 \012' 7826 lt_SP2NL='tr \040 \012'
8295 lt_NL2SP='tr \015\012 \040\040' 7827 lt_NL2SP='tr \015\012 \040\040'
8296 ;; 7828 ;;
8297 *) # EBCDIC based system 7829 *) # EBCDIC based system
8298 lt_SP2NL='tr \100 \n' 7830 lt_SP2NL='tr \100 \n'
8299 lt_NL2SP='tr \r\n \100\100' 7831 lt_NL2SP='tr \r\n \100\100'
8300 ;; 7832 ;;
8301 esac 7833 esac
8302 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7834 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8303 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7835 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8304 ])# _LT_CHECK_SHELL_FEATURES 7836 ])# _LT_CHECK_SHELL_FEATURES
8305 7837
8306 7838
7839 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7840 # ------------------------------------------------------
7841 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7842 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7843 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7844 [dnl {
7845 sed -e '/^$1 ()$/,/^} # $1 /c\
7846 $1 ()\
7847 {\
7848 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7849 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7850 && mv -f "$cfgfile.tmp" "$cfgfile" \
7851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
7852 test 0 -eq $? || _lt_function_replace_fail=:
7853 ])
7854
7855
7856 # _LT_PROG_REPLACE_SHELLFNS
7857 # -------------------------
7858 # Replace existing portable implementations of several shell functions with
7859 # equivalent extended shell implementations where those features are available..
7860 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7861 [if test x"$xsi_shell" = xyes; then
7862 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7863 case ${1} in
7864 */*) func_dirname_result="${1%/*}${2}" ;;
7865 * ) func_dirname_result="${3}" ;;
7866 esac])
7867
7868 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7869 func_basename_result="${1##*/}"])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7872 case ${1} in
7873 */*) func_dirname_result="${1%/*}${2}" ;;
7874 * ) func_dirname_result="${3}" ;;
7875 esac
7876 func_basename_result="${1##*/}"])
7877
7878 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7879 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7880 # positional parameters, so assign one to ordinary parameter first.
7881 func_stripname_result=${3}
7882 func_stripname_result=${func_stripname_result#"${1}"}
7883 func_stripname_result=${func_stripname_result%"${2}"}])
7884
7885 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7886 func_split_long_opt_name=${1%%=*}
7887 func_split_long_opt_arg=${1#*=}])
7888
7889 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7890 func_split_short_opt_arg=${1#??}
7891 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7894 case ${1} in
7895 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7896 *) func_lo2o_result=${1} ;;
7897 esac])
7898
7899 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7900
7901 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7902
7903 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7904 fi
7905
7906 if test x"$lt_shell_append" = xyes; then
7907 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7908
7909 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7910 func_quote_for_eval "${2}"
7911 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7912 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7913
7914 # Save a `func_append' function call where possible by direct use of '+='
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tm p")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7919 else
7920 # Save a `func_append' function call even when '+=' is not available
7921 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.t mp \
7922 && mv -f "$cfgfile.tmp" "$cfgfile" \
7923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tm p")
7924 test 0 -eq $? || _lt_function_replace_fail=:
7925 fi
7926
7927 if test x"$_lt_function_replace_fail" = x":"; then
7928 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7929 fi
7930 ])
7931
8307 # _LT_PATH_CONVERSION_FUNCTIONS 7932 # _LT_PATH_CONVERSION_FUNCTIONS
8308 # ----------------------------- 7933 # -----------------------------
8309 # Determine what file name conversion functions should be used by 7934 # Determine which file name conversion functions should be used by
8310 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7935 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8311 # for certain cross-compile configurations and native mingw. 7936 # for certain cross-compile configurations and native mingw.
8312 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 7937 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8313 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 7938 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8314 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 7939 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8315 AC_MSG_CHECKING([how to convert $build file names to $host format]) 7940 AC_MSG_CHECKING([how to convert $build file names to $host format])
8316 AC_CACHE_VAL(lt_cv_to_host_file_cmd, 7941 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8317 [case $host in 7942 [case $host in
8318 *-*-mingw* ) 7943 *-*-mingw* )
8319 case $build in 7944 case $build in
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8363 ;; 7988 ;;
8364 esac 7989 esac
8365 ;; 7990 ;;
8366 esac 7991 esac
8367 ]) 7992 ])
8368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7993 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8369 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 7994 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8370 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 7995 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8371 [0], [convert $build files to toolchain format])dnl 7996 [0], [convert $build files to toolchain format])dnl
8372 ])# _LT_PATH_CONVERSION_FUNCTIONS 7997 ])# _LT_PATH_CONVERSION_FUNCTIONS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698