OLD | NEW |
1 # generated automatically by aclocal 1.10.2 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.14.1 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 4 |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
8 | 8 |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
13 | 13 |
| 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun
([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
| 15 m4_ifndef([AC_AUTOCONF_VERSION], |
| 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
| 18 [m4_warning([this file was generated for autoconf 2.69. |
| 19 You have another version of autoconf. It may work, but is not guaranteed to. |
| 20 If you have problems, you may need to regenerate the build system entirely. |
| 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])
]) |
| 22 |
14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 23 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 # | 24 # |
16 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 25 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
17 # 2006, 2007, 2008 Free Software Foundation, Inc. | 26 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 27 # Foundation, Inc. |
18 # Written by Gordon Matzigkeit, 1996 | 28 # Written by Gordon Matzigkeit, 1996 |
19 # | 29 # |
20 # This file is free software; the Free Software Foundation gives | 30 # This file is free software; the Free Software Foundation gives |
21 # unlimited permission to copy and/or distribute it, with or without | 31 # unlimited permission to copy and/or distribute it, with or without |
22 # modifications, as long as this notice is preserved. | 32 # modifications, as long as this notice is preserved. |
23 | 33 |
24 m4_define([_LT_COPYING], [dnl | 34 m4_define([_LT_COPYING], [dnl |
25 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 35 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
26 # 2006, 2007, 2008 Free Software Foundation, Inc. | 36 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 37 # Foundation, Inc. |
27 # Written by Gordon Matzigkeit, 1996 | 38 # Written by Gordon Matzigkeit, 1996 |
28 # | 39 # |
29 # This file is part of GNU Libtool. | 40 # This file is part of GNU Libtool. |
30 # | 41 # |
31 # GNU Libtool is free software; you can redistribute it and/or | 42 # GNU Libtool is free software; you can redistribute it and/or |
32 # modify it under the terms of the GNU General Public License as | 43 # modify it under the terms of the GNU General Public License as |
33 # published by the Free Software Foundation; either version 2 of | 44 # published by the Free Software Foundation; either version 2 of |
34 # the License, or (at your option) any later version. | 45 # the License, or (at your option) any later version. |
35 # | 46 # |
36 # As a special exception to the GNU General Public License, | 47 # As a special exception to the GNU General Public License, |
37 # if you distribute this file as part of a program or library that | 48 # if you distribute this file as part of a program or library that |
38 # is built using GNU Libtool, you may include this file under the | 49 # is built using GNU Libtool, you may include this file under the |
39 # same distribution terms that you use for the rest of that program. | 50 # same distribution terms that you use for the rest of that program. |
40 # | 51 # |
41 # GNU Libtool is distributed in the hope that it will be useful, | 52 # GNU Libtool is distributed in the hope that it will be useful, |
42 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 53 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
43 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 54 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
44 # GNU General Public License for more details. | 55 # GNU General Public License for more details. |
45 # | 56 # |
46 # You should have received a copy of the GNU General Public License | 57 # You should have received a copy of the GNU General Public License |
47 # along with GNU Libtool; see the file COPYING. If not, a copy | 58 # along with GNU Libtool; see the file COPYING. If not, a copy |
48 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | 59 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
49 # obtained by writing to the Free Software Foundation, Inc., | 60 # obtained by writing to the Free Software Foundation, Inc., |
50 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 61 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
51 ]) | 62 ]) |
52 | 63 |
53 # serial 56 LT_INIT | 64 # serial 57 LT_INIT |
54 | 65 |
55 | 66 |
56 # LT_PREREQ(VERSION) | 67 # LT_PREREQ(VERSION) |
57 # ------------------ | 68 # ------------------ |
58 # Complain and exit if this libtool version is less that VERSION. | 69 # Complain and exit if this libtool version is less that VERSION. |
59 m4_defun([LT_PREREQ], | 70 m4_defun([LT_PREREQ], |
60 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | 71 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
61 [m4_default([$3], | 72 [m4_default([$3], |
62 [m4_fatal([Libtool version $1 or higher is required], | 73 [m4_fatal([Libtool version $1 or higher is required], |
63 63)])], | 74 63)])], |
64 [$2])]) | 75 [$2])]) |
65 | 76 |
66 | 77 |
67 # _LT_CHECK_BUILDDIR | 78 # _LT_CHECK_BUILDDIR |
68 # ------------------ | 79 # ------------------ |
69 # Complain if the absolute build directory name contains unusual characters | 80 # Complain if the absolute build directory name contains unusual characters |
70 m4_defun([_LT_CHECK_BUILDDIR], | 81 m4_defun([_LT_CHECK_BUILDDIR], |
71 [case `pwd` in | 82 [case `pwd` in |
72 *\ * | *\ *) | 83 *\ * | *\ *) |
73 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | 84 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
74 esac | 85 esac |
75 ]) | 86 ]) |
76 | 87 |
77 | 88 |
78 # LT_INIT([OPTIONS]) | 89 # LT_INIT([OPTIONS]) |
79 # ------------------ | 90 # ------------------ |
80 AC_DEFUN([LT_INIT], | 91 AC_DEFUN([LT_INIT], |
81 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | 92 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
| 93 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
82 AC_BEFORE([$0], [LT_LANG])dnl | 94 AC_BEFORE([$0], [LT_LANG])dnl |
83 AC_BEFORE([$0], [LT_OUTPUT])dnl | 95 AC_BEFORE([$0], [LT_OUTPUT])dnl |
84 AC_BEFORE([$0], [LTDL_INIT])dnl | 96 AC_BEFORE([$0], [LTDL_INIT])dnl |
85 m4_require([_LT_CHECK_BUILDDIR])dnl | 97 m4_require([_LT_CHECK_BUILDDIR])dnl |
86 | 98 |
87 dnl Autoconf doesn't catch unexpanded LT_ macros by default: | 99 dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
88 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | 100 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
89 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | 101 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
90 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | 102 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
91 dnl unless we require an AC_DEFUNed macro: | 103 dnl unless we require an AC_DEFUNed macro: |
92 AC_REQUIRE([LTOPTIONS_VERSION])dnl | 104 AC_REQUIRE([LTOPTIONS_VERSION])dnl |
93 AC_REQUIRE([LTSUGAR_VERSION])dnl | 105 AC_REQUIRE([LTSUGAR_VERSION])dnl |
94 AC_REQUIRE([LTVERSION_VERSION])dnl | 106 AC_REQUIRE([LTVERSION_VERSION])dnl |
95 AC_REQUIRE([LTOBSOLETE_VERSION])dnl | 107 AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
96 m4_require([_LT_PROG_LTMAIN])dnl | 108 m4_require([_LT_PROG_LTMAIN])dnl |
97 | 109 |
| 110 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
| 111 |
98 dnl Parse OPTIONS | 112 dnl Parse OPTIONS |
99 _LT_SET_OPTIONS([$0], [$1]) | 113 _LT_SET_OPTIONS([$0], [$1]) |
100 | 114 |
101 # This can be used to rebuild libtool when needed | 115 # This can be used to rebuild libtool when needed |
102 LIBTOOL_DEPS="$ltmain" | 116 LIBTOOL_DEPS="$ltmain" |
103 | 117 |
104 # Always use our own libtool. | 118 # Always use our own libtool. |
105 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 119 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
106 AC_SUBST(LIBTOOL)dnl | 120 AC_SUBST(LIBTOOL)dnl |
107 | 121 |
(...skipping 16 matching lines...) Expand all Loading... |
124 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | 138 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
125 m4_defun([_LT_CC_BASENAME], | 139 m4_defun([_LT_CC_BASENAME], |
126 [for cc_temp in $1""; do | 140 [for cc_temp in $1""; do |
127 case $cc_temp in | 141 case $cc_temp in |
128 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | 142 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
129 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | 143 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
130 \-*) ;; | 144 \-*) ;; |
131 *) break;; | 145 *) break;; |
132 esac | 146 esac |
133 done | 147 done |
134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
135 ]) | 149 ]) |
136 | 150 |
137 | 151 |
138 # _LT_FILEUTILS_DEFAULTS | 152 # _LT_FILEUTILS_DEFAULTS |
139 # ---------------------- | 153 # ---------------------- |
140 # It is okay to use these file commands and assume they have been set | 154 # It is okay to use these file commands and assume they have been set |
141 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | 155 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
142 m4_defun([_LT_FILEUTILS_DEFAULTS], | 156 m4_defun([_LT_FILEUTILS_DEFAULTS], |
143 [: ${CP="cp -f"} | 157 [: ${CP="cp -f"} |
144 : ${MV="mv -f"} | 158 : ${MV="mv -f"} |
145 : ${RM="rm -f"} | 159 : ${RM="rm -f"} |
146 ])# _LT_FILEUTILS_DEFAULTS | 160 ])# _LT_FILEUTILS_DEFAULTS |
147 | 161 |
148 | 162 |
149 # _LT_SETUP | 163 # _LT_SETUP |
150 # --------- | 164 # --------- |
151 m4_defun([_LT_SETUP], | 165 m4_defun([_LT_SETUP], |
152 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 166 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
153 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 167 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 168 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
| 169 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
| 170 |
| 171 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dn
l |
| 172 dnl |
154 _LT_DECL([], [host_alias], [0], [The host system])dnl | 173 _LT_DECL([], [host_alias], [0], [The host system])dnl |
155 _LT_DECL([], [host], [0])dnl | 174 _LT_DECL([], [host], [0])dnl |
156 _LT_DECL([], [host_os], [0])dnl | 175 _LT_DECL([], [host_os], [0])dnl |
157 dnl | 176 dnl |
158 _LT_DECL([], [build_alias], [0], [The build system])dnl | 177 _LT_DECL([], [build_alias], [0], [The build system])dnl |
159 _LT_DECL([], [build], [0])dnl | 178 _LT_DECL([], [build], [0])dnl |
160 _LT_DECL([], [build_os], [0])dnl | 179 _LT_DECL([], [build_os], [0])dnl |
161 dnl | 180 dnl |
162 AC_REQUIRE([AC_PROG_CC])dnl | 181 AC_REQUIRE([AC_PROG_CC])dnl |
163 AC_REQUIRE([LT_PATH_LD])dnl | 182 AC_REQUIRE([LT_PATH_LD])dnl |
164 AC_REQUIRE([LT_PATH_NM])dnl | 183 AC_REQUIRE([LT_PATH_NM])dnl |
165 dnl | 184 dnl |
166 AC_REQUIRE([AC_PROG_LN_S])dnl | 185 AC_REQUIRE([AC_PROG_LN_S])dnl |
167 test -z "$LN_S" && LN_S="ln -s" | 186 test -z "$LN_S" && LN_S="ln -s" |
168 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | 187 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
169 dnl | 188 dnl |
170 AC_REQUIRE([LT_CMD_MAX_LEN])dnl | 189 AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
171 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | 190 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
172 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | 191 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
173 dnl | 192 dnl |
174 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 193 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
175 m4_require([_LT_CHECK_SHELL_FEATURES])dnl | 194 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 195 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
176 m4_require([_LT_CMD_RELOAD])dnl | 196 m4_require([_LT_CMD_RELOAD])dnl |
177 m4_require([_LT_CHECK_MAGIC_METHOD])dnl | 197 m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| 198 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
178 m4_require([_LT_CMD_OLD_ARCHIVE])dnl | 199 m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
179 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | 200 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 201 m4_require([_LT_WITH_SYSROOT])dnl |
180 | 202 |
181 _LT_CONFIG_LIBTOOL_INIT([ | 203 _LT_CONFIG_LIBTOOL_INIT([ |
182 # See if we are running on zsh, and set the options which allow our | 204 # See if we are running on zsh, and set the options which allow our |
183 # commands through without removal of \ escapes INIT. | 205 # commands through without removal of \ escapes INIT. |
184 if test -n "\${ZSH_VERSION+set}" ; then | 206 if test -n "\${ZSH_VERSION+set}" ; then |
185 setopt NO_GLOB_SUBST | 207 setopt NO_GLOB_SUBST |
186 fi | 208 fi |
187 ]) | 209 ]) |
188 if test -n "${ZSH_VERSION+set}" ; then | 210 if test -n "${ZSH_VERSION+set}" ; then |
189 setopt NO_GLOB_SUBST | 211 setopt NO_GLOB_SUBST |
190 fi | 212 fi |
191 | 213 |
192 _LT_CHECK_OBJDIR | 214 _LT_CHECK_OBJDIR |
193 | 215 |
194 m4_require([_LT_TAG_COMPILER])dnl | 216 m4_require([_LT_TAG_COMPILER])dnl |
195 _LT_PROG_ECHO_BACKSLASH | |
196 | 217 |
197 case $host_os in | 218 case $host_os in |
198 aix3*) | 219 aix3*) |
199 # AIX sometimes has problems with the GCC collect2 program. For some | 220 # AIX sometimes has problems with the GCC collect2 program. For some |
200 # reason, if we set the COLLECT_NAMES environment variable, the problems | 221 # reason, if we set the COLLECT_NAMES environment variable, the problems |
201 # vanish in a puff of smoke. | 222 # vanish in a puff of smoke. |
202 if test "X${COLLECT_NAMES+set}" != Xset; then | 223 if test "X${COLLECT_NAMES+set}" != Xset; then |
203 COLLECT_NAMES= | 224 COLLECT_NAMES= |
204 export COLLECT_NAMES | 225 export COLLECT_NAMES |
205 fi | 226 fi |
206 ;; | 227 ;; |
207 esac | 228 esac |
208 | 229 |
209 # Sed substitution that helps us do robust quoting. It backslashifies | |
210 # metacharacters that are still active within double-quoted strings. | |
211 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
212 | |
213 # Same as above, but do not quote variable references. | |
214 double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
215 | |
216 # Sed substitution to delay expansion of an escaped shell variable in a | |
217 # double_quote_subst'ed string. | |
218 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
219 | |
220 # Sed substitution to delay expansion of an escaped single quote. | |
221 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
222 | |
223 # Sed substitution to avoid accidental globbing in evaled expressions | |
224 no_glob_subst='s/\*/\\\*/g' | |
225 | |
226 # Global variables: | 230 # Global variables: |
227 ofile=libtool | 231 ofile=libtool |
228 can_build_shared=yes | 232 can_build_shared=yes |
229 | 233 |
230 # All known linkers require a `.a' archive for static linking (except MSVC, | 234 # All known linkers require a `.a' archive for static linking (except MSVC, |
231 # which needs '.lib'). | 235 # which needs '.lib'). |
232 libext=a | 236 libext=a |
233 | 237 |
234 with_gnu_ld="$lt_cv_prog_gnu_ld" | 238 with_gnu_ld="$lt_cv_prog_gnu_ld" |
235 | 239 |
(...skipping 20 matching lines...) Expand all Loading... |
256 esac | 260 esac |
257 | 261 |
258 # Use C for the default configuration in the libtool script | 262 # Use C for the default configuration in the libtool script |
259 LT_SUPPORTED_TAG([CC]) | 263 LT_SUPPORTED_TAG([CC]) |
260 _LT_LANG_C_CONFIG | 264 _LT_LANG_C_CONFIG |
261 _LT_LANG_DEFAULT_CONFIG | 265 _LT_LANG_DEFAULT_CONFIG |
262 _LT_CONFIG_COMMANDS | 266 _LT_CONFIG_COMMANDS |
263 ])# _LT_SETUP | 267 ])# _LT_SETUP |
264 | 268 |
265 | 269 |
| 270 # _LT_PREPARE_SED_QUOTE_VARS |
| 271 # -------------------------- |
| 272 # Define a few sed substitution that help us do robust quoting. |
| 273 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
| 274 [# Backslashify metacharacters that are still active within |
| 275 # double-quoted strings. |
| 276 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
| 277 |
| 278 # Same as above, but do not quote variable references. |
| 279 double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
| 280 |
| 281 # Sed substitution to delay expansion of an escaped shell variable in a |
| 282 # double_quote_subst'ed string. |
| 283 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 284 |
| 285 # Sed substitution to delay expansion of an escaped single quote. |
| 286 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 287 |
| 288 # Sed substitution to avoid accidental globbing in evaled expressions |
| 289 no_glob_subst='s/\*/\\\*/g' |
| 290 ]) |
| 291 |
266 # _LT_PROG_LTMAIN | 292 # _LT_PROG_LTMAIN |
267 # --------------- | 293 # --------------- |
268 # Note that this code is called both from `configure', and `config.status' | 294 # Note that this code is called both from `configure', and `config.status' |
269 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | 295 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
270 # `config.status' has no value for ac_aux_dir unless we are using Automake, | 296 # `config.status' has no value for ac_aux_dir unless we are using Automake, |
271 # so we pass a copy along to make sure it has a sensible value anyway. | 297 # so we pass a copy along to make sure it has a sensible value anyway. |
272 m4_defun([_LT_PROG_LTMAIN], | 298 m4_defun([_LT_PROG_LTMAIN], |
273 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | 299 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
274 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | 300 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
275 ltmain="$ac_aux_dir/ltmain.sh" | 301 ltmain="$ac_aux_dir/ltmain.sh" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | 434 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
409 ]) | 435 ]) |
410 | 436 |
411 | 437 |
412 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | 438 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
413 # ------------------------------------ | 439 # ------------------------------------ |
414 # Quote a variable value, and forward it to `config.status' so that its | 440 # Quote a variable value, and forward it to `config.status' so that its |
415 # declaration there will have the same value as in `configure'. VARNAME | 441 # declaration there will have the same value as in `configure'. VARNAME |
416 # must have a single quote delimited value for this to work. | 442 # must have a single quote delimited value for this to work. |
417 m4_define([_LT_CONFIG_STATUS_DECLARE], | 443 m4_define([_LT_CONFIG_STATUS_DECLARE], |
418 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | 444 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
419 | 445 |
420 | 446 |
421 # _LT_CONFIG_STATUS_DECLARATIONS | 447 # _LT_CONFIG_STATUS_DECLARATIONS |
422 # ------------------------------ | 448 # ------------------------------ |
423 # We delimit libtool config variables with single quotes, so when | 449 # We delimit libtool config variables with single quotes, so when |
424 # we write them to config.status, we have to be sure to quote all | 450 # we write them to config.status, we have to be sure to quote all |
425 # embedded single quotes properly. In configure, this macro expands | 451 # embedded single quotes properly. In configure, this macro expands |
426 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | 452 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
427 # | 453 # |
428 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | 454 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
429 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | 455 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
430 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | 456 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
431 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | 457 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
432 | 458 |
433 | 459 |
434 # _LT_LIBTOOL_TAGS | 460 # _LT_LIBTOOL_TAGS |
435 # ---------------- | 461 # ---------------- |
436 # Output comment and list of tags supported by the script | 462 # Output comment and list of tags supported by the script |
437 m4_defun([_LT_LIBTOOL_TAGS], | 463 m4_defun([_LT_LIBTOOL_TAGS], |
438 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc
ript])dnl | 464 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this sc
ript])dnl |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 543 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
518 | 544 |
519 sed_quote_subst='$sed_quote_subst' | 545 sed_quote_subst='$sed_quote_subst' |
520 double_quote_subst='$double_quote_subst' | 546 double_quote_subst='$double_quote_subst' |
521 delay_variable_subst='$delay_variable_subst' | 547 delay_variable_subst='$delay_variable_subst' |
522 _LT_CONFIG_STATUS_DECLARATIONS | 548 _LT_CONFIG_STATUS_DECLARATIONS |
523 LTCC='$LTCC' | 549 LTCC='$LTCC' |
524 LTCFLAGS='$LTCFLAGS' | 550 LTCFLAGS='$LTCFLAGS' |
525 compiler='$compiler_DEFAULT' | 551 compiler='$compiler_DEFAULT' |
526 | 552 |
| 553 # A function that is used when there is no print builtin or printf. |
| 554 func_fallback_echo () |
| 555 { |
| 556 eval 'cat <<_LTECHO_EOF |
| 557 \$[]1 |
| 558 _LTECHO_EOF' |
| 559 } |
| 560 |
527 # Quote evaled strings. | 561 # Quote evaled strings. |
528 for var in lt_decl_all_varnames([[ \ | 562 for var in lt_decl_all_varnames([[ \ |
529 ]], lt_decl_quote_varnames); do | 563 ]], lt_decl_quote_varnames); do |
530 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
531 *[[\\\\\\\`\\"\\\$]]*) | 565 *[[\\\\\\\`\\"\\\$]]*) |
532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$s
ed_quote_subst\\"\\\`\\\\\\"" | 566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu
ote_subst\\"\\\`\\\\\\"" |
533 ;; | 567 ;; |
534 *) | 568 *) |
535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
536 ;; | 570 ;; |
537 esac | 571 esac |
538 done | 572 done |
539 | 573 |
540 # Double-quote double-evaled strings. | 574 # Double-quote double-evaled strings. |
541 for var in lt_decl_all_varnames([[ \ | 575 for var in lt_decl_all_varnames([[ \ |
542 ]], lt_decl_dquote_varnames); do | 576 ]], lt_decl_dquote_varnames); do |
543 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | 577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
544 *[[\\\\\\\`\\"\\\$]]*) | 578 *[[\\\\\\\`\\"\\\$]]*) |
545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$d
ouble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst
\\"\\\`\\\\\\"" | 579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou
ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\
"\\\`\\\\\\"" |
546 ;; | 580 ;; |
547 *) | 581 *) |
548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
549 ;; | 583 ;; |
550 esac | 584 esac |
551 done | 585 done |
552 | 586 |
553 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
554 case \$lt_ECHO in | |
555 *'\\\[$]0 --fallback-echo"')dnl " | |
556 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-ec
ho"\[$]/\[$]0 --fallback-echo"/'\` | |
557 ;; | |
558 esac | |
559 | |
560 _LT_OUTPUT_LIBTOOL_INIT | 587 _LT_OUTPUT_LIBTOOL_INIT |
561 ]) | 588 ]) |
562 | 589 |
| 590 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
| 591 # ------------------------------------ |
| 592 # Generate a child script FILE with all initialization necessary to |
| 593 # reuse the environment learned by the parent script, and make the |
| 594 # file executable. If COMMENT is supplied, it is inserted after the |
| 595 # `#!' sequence but before initialization text begins. After this |
| 596 # macro, additional text can be appended to FILE to form the body of |
| 597 # the child script. The macro ends with non-zero status if the |
| 598 # file could not be fully written (such as if the disk is full). |
| 599 m4_ifdef([AS_INIT_GENERATED], |
| 600 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
| 601 [m4_defun([_LT_GENERATED_FILE_INIT], |
| 602 [m4_require([AS_PREPARE])]dnl |
| 603 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
| 604 [lt_write_fail=0 |
| 605 cat >$1 <<_ASEOF || lt_write_fail=1 |
| 606 #! $SHELL |
| 607 # Generated by $as_me. |
| 608 $2 |
| 609 SHELL=\${CONFIG_SHELL-$SHELL} |
| 610 export SHELL |
| 611 _ASEOF |
| 612 cat >>$1 <<\_ASEOF || lt_write_fail=1 |
| 613 AS_SHELL_SANITIZE |
| 614 _AS_PREPARE |
| 615 exec AS_MESSAGE_FD>&1 |
| 616 _ASEOF |
| 617 test $lt_write_fail = 0 && chmod +x $1[]dnl |
| 618 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
563 | 619 |
564 # LT_OUTPUT | 620 # LT_OUTPUT |
565 # --------- | 621 # --------- |
566 # This macro allows early generation of the libtool script (before | 622 # This macro allows early generation of the libtool script (before |
567 # AC_OUTPUT is called), incase it is used in configure for compilation | 623 # AC_OUTPUT is called), incase it is used in configure for compilation |
568 # tests. | 624 # tests. |
569 AC_DEFUN([LT_OUTPUT], | 625 AC_DEFUN([LT_OUTPUT], |
570 [: ${CONFIG_LT=./config.lt} | 626 [: ${CONFIG_LT=./config.lt} |
571 AC_MSG_NOTICE([creating $CONFIG_LT]) | 627 AC_MSG_NOTICE([creating $CONFIG_LT]) |
572 cat >"$CONFIG_LT" <<_LTEOF | 628 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
573 #! $SHELL | 629 [# Run this file to recreate a libtool stub with the current configuration.]) |
574 # Generated by $as_me. | |
575 # Run this file to recreate a libtool stub with the current configuration. | |
576 | |
577 lt_cl_silent=false | |
578 SHELL=\${CONFIG_SHELL-$SHELL} | |
579 _LTEOF | |
580 | 630 |
581 cat >>"$CONFIG_LT" <<\_LTEOF | 631 cat >>"$CONFIG_LT" <<\_LTEOF |
582 AS_SHELL_SANITIZE | 632 lt_cl_silent=false |
583 _AS_PREPARE | |
584 | |
585 exec AS_MESSAGE_FD>&1 | |
586 exec AS_MESSAGE_LOG_FD>>config.log | 633 exec AS_MESSAGE_LOG_FD>>config.log |
587 { | 634 { |
588 echo | 635 echo |
589 AS_BOX([Running $as_me.]) | 636 AS_BOX([Running $as_me.]) |
590 } >&AS_MESSAGE_LOG_FD | 637 } >&AS_MESSAGE_LOG_FD |
591 | 638 |
592 lt_cl_help="\ | 639 lt_cl_help="\ |
593 \`$as_me' creates a local libtool stub from the current configuration, | 640 \`$as_me' creates a local libtool stub from the current configuration, |
594 for use in further configure time tests before the real libtool is | 641 for use in further configure time tests before the real libtool is |
595 generated. | 642 generated. |
596 | 643 |
597 Usage: $[0] [[OPTIONS]] | 644 Usage: $[0] [[OPTIONS]] |
598 | 645 |
599 -h, --help print this help, then exit | 646 -h, --help print this help, then exit |
600 -V, --version print version number, then exit | 647 -V, --version print version number, then exit |
601 -q, --quiet do not print progress messages | 648 -q, --quiet do not print progress messages |
602 -d, --debug don't remove temporary files | 649 -d, --debug don't remove temporary files |
603 | 650 |
604 Report bugs to <bug-libtool@gnu.org>." | 651 Report bugs to <bug-libtool@gnu.org>." |
605 | 652 |
606 lt_cl_version="\ | 653 lt_cl_version="\ |
607 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | 654 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
608 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | 655 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
609 configured by $[0], generated by m4_PACKAGE_STRING. | 656 configured by $[0], generated by m4_PACKAGE_STRING. |
610 | 657 |
611 Copyright (C) 2008 Free Software Foundation, Inc. | 658 Copyright (C) 2011 Free Software Foundation, Inc. |
612 This config.lt script is free software; the Free Software Foundation | 659 This config.lt script is free software; the Free Software Foundation |
613 gives unlimited permision to copy, distribute and modify it." | 660 gives unlimited permision to copy, distribute and modify it." |
614 | 661 |
615 while test $[#] != 0 | 662 while test $[#] != 0 |
616 do | 663 do |
617 case $[1] in | 664 case $[1] in |
618 --version | --v* | -V ) | 665 --version | --v* | -V ) |
619 echo "$lt_cl_version"; exit 0 ;; | 666 echo "$lt_cl_version"; exit 0 ;; |
620 --help | --h* | -h ) | 667 --help | --h* | -h ) |
621 echo "$lt_cl_help"; exit 0 ;; | 668 echo "$lt_cl_help"; exit 0 ;; |
(...skipping 24 matching lines...) Expand all Loading... |
646 AC_MSG_NOTICE([creating $ofile]) | 693 AC_MSG_NOTICE([creating $ofile]) |
647 _LT_OUTPUT_LIBTOOL_COMMANDS | 694 _LT_OUTPUT_LIBTOOL_COMMANDS |
648 AS_EXIT(0) | 695 AS_EXIT(0) |
649 _LTEOF | 696 _LTEOF |
650 chmod +x "$CONFIG_LT" | 697 chmod +x "$CONFIG_LT" |
651 | 698 |
652 # configure is writing to config.log, but config.lt does its own redirection, | 699 # configure is writing to config.log, but config.lt does its own redirection, |
653 # appending to config.log, which fails on DOS, as config.log is still kept | 700 # appending to config.log, which fails on DOS, as config.log is still kept |
654 # open by configure. Here we exec the FD to /dev/null, effectively closing | 701 # open by configure. Here we exec the FD to /dev/null, effectively closing |
655 # config.log, so it can be properly (re)opened and appended to by config.lt. | 702 # config.log, so it can be properly (re)opened and appended to by config.lt. |
656 if test "$no_create" != yes; then | 703 lt_cl_success=: |
657 lt_cl_success=: | 704 test "$silent" = yes && |
658 test "$silent" = yes && | 705 lt_config_lt_args="$lt_config_lt_args --quiet" |
659 lt_config_lt_args="$lt_config_lt_args --quiet" | 706 exec AS_MESSAGE_LOG_FD>/dev/null |
660 exec AS_MESSAGE_LOG_FD>/dev/null | 707 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
661 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | 708 exec AS_MESSAGE_LOG_FD>>config.log |
662 exec AS_MESSAGE_LOG_FD>>config.log | 709 $lt_cl_success || AS_EXIT(1) |
663 $lt_cl_success || AS_EXIT(1) | |
664 fi | |
665 ])# LT_OUTPUT | 710 ])# LT_OUTPUT |
666 | 711 |
667 | 712 |
668 # _LT_CONFIG(TAG) | 713 # _LT_CONFIG(TAG) |
669 # --------------- | 714 # --------------- |
670 # If TAG is the built-in tag, create an initial libtool script with a | 715 # If TAG is the built-in tag, create an initial libtool script with a |
671 # default configuration from the untagged config vars. Otherwise add code | 716 # default configuration from the untagged config vars. Otherwise add code |
672 # to config.status for appending the configuration named by TAG from the | 717 # to config.status for appending the configuration named by TAG from the |
673 # matching tagged config vars. | 718 # matching tagged config vars. |
674 m4_defun([_LT_CONFIG], | 719 m4_defun([_LT_CONFIG], |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 _LT_EOF | 762 _LT_EOF |
718 ;; | 763 ;; |
719 esac | 764 esac |
720 | 765 |
721 _LT_PROG_LTMAIN | 766 _LT_PROG_LTMAIN |
722 | 767 |
723 # We use sed instead of cat because bash on DJGPP gets confused if | 768 # We use sed instead of cat because bash on DJGPP gets confused if |
724 # if finds mixed CR/LF and LF-only lines. Since sed operates in | 769 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
725 # text mode, it properly converts lines to CR/LF. This bash problem | 770 # text mode, it properly converts lines to CR/LF. This bash problem |
726 # is reportedly fixed, but why not run on old versions too? | 771 # is reportedly fixed, but why not run on old versions too? |
727 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | 772 sed '$q' "$ltmain" >> "$cfgfile" \ |
728 || (rm -f "$cfgfile"; exit 1) | 773 || (rm -f "$cfgfile"; exit 1) |
729 | 774 |
730 _LT_PROG_XSI_SHELLFNS | 775 _LT_PROG_REPLACE_SHELLFNS |
731 | 776 |
732 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil
e" \ | 777 mv -f "$cfgfile" "$ofile" || |
733 || (rm -f "$cfgfile"; exit 1) | |
734 | |
735 mv -f "$cfgfile" "$ofile" || | |
736 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 778 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
737 chmod +x "$ofile" | 779 chmod +x "$ofile" |
738 ], | 780 ], |
739 [cat <<_LT_EOF >> "$ofile" | 781 [cat <<_LT_EOF >> "$ofile" |
740 | 782 |
741 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | 783 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
742 dnl in a comment (ie after a #). | 784 dnl in a comment (ie after a #). |
743 # ### BEGIN LIBTOOL TAG CONFIG: $1 | 785 # ### BEGIN LIBTOOL TAG CONFIG: $1 |
744 _LT_LIBTOOL_TAG_VARS(_LT_TAG) | 786 _LT_LIBTOOL_TAG_VARS(_LT_TAG) |
745 # ### END LIBTOOL TAG CONFIG: $1 | 787 # ### END LIBTOOL TAG CONFIG: $1 |
(...skipping 24 matching lines...) Expand all Loading... |
770 | 812 |
771 | 813 |
772 # LT_LANG(LANG) | 814 # LT_LANG(LANG) |
773 # ------------- | 815 # ------------- |
774 # Enable libtool support for the given language if not already enabled. | 816 # Enable libtool support for the given language if not already enabled. |
775 AC_DEFUN([LT_LANG], | 817 AC_DEFUN([LT_LANG], |
776 [AC_BEFORE([$0], [LT_OUTPUT])dnl | 818 [AC_BEFORE([$0], [LT_OUTPUT])dnl |
777 m4_case([$1], | 819 m4_case([$1], |
778 [C], [_LT_LANG(C)], | 820 [C], [_LT_LANG(C)], |
779 [C++], [_LT_LANG(CXX)], | 821 [C++], [_LT_LANG(CXX)], |
| 822 [Go], [_LT_LANG(GO)], |
780 [Java], [_LT_LANG(GCJ)], | 823 [Java], [_LT_LANG(GCJ)], |
781 [Fortran 77], [_LT_LANG(F77)], | 824 [Fortran 77], [_LT_LANG(F77)], |
782 [Fortran], [_LT_LANG(FC)], | 825 [Fortran], [_LT_LANG(FC)], |
783 [Windows Resource], [_LT_LANG(RC)], | 826 [Windows Resource], [_LT_LANG(RC)], |
784 [m4_ifdef([_LT_LANG_]$1[_CONFIG], | 827 [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
785 [_LT_LANG($1)], | 828 [_LT_LANG($1)], |
786 [m4_fatal([$0: unsupported language: "$1"])])])dnl | 829 [m4_fatal([$0: unsupported language: "$1"])])])dnl |
787 ])# LT_LANG | 830 ])# LT_LANG |
788 | 831 |
789 | 832 |
790 # _LT_LANG(LANGNAME) | 833 # _LT_LANG(LANGNAME) |
791 # ------------------ | 834 # ------------------ |
792 m4_defun([_LT_LANG], | 835 m4_defun([_LT_LANG], |
793 [m4_ifdef([_LT_LANG_]$1[_enabled], [], | 836 [m4_ifdef([_LT_LANG_]$1[_enabled], [], |
794 [LT_SUPPORTED_TAG([$1])dnl | 837 [LT_SUPPORTED_TAG([$1])dnl |
795 m4_append([_LT_TAGS], [$1 ])dnl | 838 m4_append([_LT_TAGS], [$1 ])dnl |
796 m4_define([_LT_LANG_]$1[_enabled], [])dnl | 839 m4_define([_LT_LANG_]$1[_enabled], [])dnl |
797 _LT_LANG_$1_CONFIG($1)])dnl | 840 _LT_LANG_$1_CONFIG($1)])dnl |
798 ])# _LT_LANG | 841 ])# _LT_LANG |
799 | 842 |
800 | 843 |
| 844 m4_ifndef([AC_PROG_GO], [ |
| 845 # NOTE: This macro has been submitted for inclusion into # |
| 846 # GNU Autoconf as AC_PROG_GO. When it is available in # |
| 847 # a released version of Autoconf we should remove this # |
| 848 # macro and use it instead. # |
| 849 m4_defun([AC_PROG_GO], |
| 850 [AC_LANG_PUSH(Go)dnl |
| 851 AC_ARG_VAR([GOC], [Go compiler command])dnl |
| 852 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
| 853 _AC_ARG_VAR_LDFLAGS()dnl |
| 854 AC_CHECK_TOOL(GOC, gccgo) |
| 855 if test -z "$GOC"; then |
| 856 if test -n "$ac_tool_prefix"; then |
| 857 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
| 858 fi |
| 859 fi |
| 860 if test -z "$GOC"; then |
| 861 AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
| 862 fi |
| 863 ])#m4_defun |
| 864 ])#m4_ifndef |
| 865 |
| 866 |
801 # _LT_LANG_DEFAULT_CONFIG | 867 # _LT_LANG_DEFAULT_CONFIG |
802 # ----------------------- | 868 # ----------------------- |
803 m4_defun([_LT_LANG_DEFAULT_CONFIG], | 869 m4_defun([_LT_LANG_DEFAULT_CONFIG], |
804 [AC_PROVIDE_IFELSE([AC_PROG_CXX], | 870 [AC_PROVIDE_IFELSE([AC_PROG_CXX], |
805 [LT_LANG(CXX)], | 871 [LT_LANG(CXX)], |
806 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | 872 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
807 | 873 |
808 AC_PROVIDE_IFELSE([AC_PROG_F77], | 874 AC_PROVIDE_IFELSE([AC_PROG_F77], |
809 [LT_LANG(F77)], | 875 [LT_LANG(F77)], |
810 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | 876 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
(...skipping 10 matching lines...) Expand all Loading... |
821 [LT_LANG(GCJ)], | 887 [LT_LANG(GCJ)], |
822 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | 888 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
823 [LT_LANG(GCJ)], | 889 [LT_LANG(GCJ)], |
824 [m4_ifdef([AC_PROG_GCJ], | 890 [m4_ifdef([AC_PROG_GCJ], |
825 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | 891 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
826 m4_ifdef([A][M_PROG_GCJ], | 892 m4_ifdef([A][M_PROG_GCJ], |
827 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | 893 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
828 m4_ifdef([LT_PROG_GCJ], | 894 m4_ifdef([LT_PROG_GCJ], |
829 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | 895 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
830 | 896 |
| 897 AC_PROVIDE_IFELSE([AC_PROG_GO], |
| 898 [LT_LANG(GO)], |
| 899 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
| 900 |
831 AC_PROVIDE_IFELSE([LT_PROG_RC], | 901 AC_PROVIDE_IFELSE([LT_PROG_RC], |
832 [LT_LANG(RC)], | 902 [LT_LANG(RC)], |
833 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | 903 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
834 ])# _LT_LANG_DEFAULT_CONFIG | 904 ])# _LT_LANG_DEFAULT_CONFIG |
835 | 905 |
836 # Obsolete macros: | 906 # Obsolete macros: |
837 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | 907 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
838 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | 908 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
839 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | 909 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
840 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | 910 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
| 911 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
841 dnl aclocal-1.4 backwards compatibility: | 912 dnl aclocal-1.4 backwards compatibility: |
842 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | 913 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
843 dnl AC_DEFUN([AC_LIBTOOL_F77], []) | 914 dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
844 dnl AC_DEFUN([AC_LIBTOOL_FC], []) | 915 dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
845 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | 916 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
| 917 dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
846 | 918 |
847 | 919 |
848 # _LT_TAG_COMPILER | 920 # _LT_TAG_COMPILER |
849 # ---------------- | 921 # ---------------- |
850 m4_defun([_LT_TAG_COMPILER], | 922 m4_defun([_LT_TAG_COMPILER], |
851 [AC_REQUIRE([AC_PROG_CC])dnl | 923 [AC_REQUIRE([AC_PROG_CC])dnl |
852 | 924 |
853 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | 925 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
854 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | 926 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
855 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | 927 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 # by either setting the environment variable LT_MULTI_MODULE | 993 # by either setting the environment variable LT_MULTI_MODULE |
922 # non-empty at configure time, or by adding -multi_module to the | 994 # non-empty at configure time, or by adding -multi_module to the |
923 # link flags. | 995 # link flags. |
924 rm -rf libconftest.dylib* | 996 rm -rf libconftest.dylib* |
925 echo "int foo(void){return 1;}" > conftest.c | 997 echo "int foo(void){return 1;}" > conftest.c |
926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 998 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
927 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | 999 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 1000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 1001 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
930 _lt_result=$? | 1002 _lt_result=$? |
931 » if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu
lt = 0; then | 1003 » # If there is a non-empty error log, and "single_module" |
| 1004 » # appears in it, assume the flag caused a linker warning |
| 1005 if test -s conftest.err && $GREP single_module conftest.err; then |
| 1006 » cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1007 » # Otherwise, if the output was created with a 0 exit code from |
| 1008 » # the compiler, it worked. |
| 1009 » elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
932 lt_cv_apple_cc_single_mod=yes | 1010 lt_cv_apple_cc_single_mod=yes |
933 else | 1011 else |
934 cat conftest.err >&AS_MESSAGE_LOG_FD | 1012 cat conftest.err >&AS_MESSAGE_LOG_FD |
935 fi | 1013 fi |
936 rm -rf libconftest.dylib* | 1014 rm -rf libconftest.dylib* |
937 rm -f conftest.* | 1015 rm -f conftest.* |
938 fi]) | 1016 fi]) |
| 1017 |
939 AC_CACHE_CHECK([for -exported_symbols_list linker flag], | 1018 AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
940 [lt_cv_ld_exported_symbols_list], | 1019 [lt_cv_ld_exported_symbols_list], |
941 [lt_cv_ld_exported_symbols_list=no | 1020 [lt_cv_ld_exported_symbols_list=no |
942 save_LDFLAGS=$LDFLAGS | 1021 save_LDFLAGS=$LDFLAGS |
943 echo "_main" > conftest.sym | 1022 echo "_main" > conftest.sym |
944 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | 1023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
945 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | 1024 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
946 [lt_cv_ld_exported_symbols_list=yes], | 1025 [lt_cv_ld_exported_symbols_list=yes], |
947 [lt_cv_ld_exported_symbols_list=no]) | 1026 [lt_cv_ld_exported_symbols_list=no]) |
948 LDFLAGS="$save_LDFLAGS" | 1027 LDFLAGS="$save_LDFLAGS" |
949 ]) | 1028 ]) |
| 1029 |
| 1030 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
| 1031 [lt_cv_ld_force_load=no |
| 1032 cat > conftest.c << _LT_EOF |
| 1033 int forced_loaded() { return 2;} |
| 1034 _LT_EOF |
| 1035 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
| 1036 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
| 1037 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
| 1038 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
| 1039 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
| 1040 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
| 1041 cat > conftest.c << _LT_EOF |
| 1042 int main() { return 0;} |
| 1043 _LT_EOF |
| 1044 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li
bconftest.a" >&AS_MESSAGE_LOG_FD |
| 1045 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft
est.a 2>conftest.err |
| 1046 _lt_result=$? |
| 1047 if test -s conftest.err && $GREP force_load conftest.err; then |
| 1048 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1049 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conft
est >/dev/null 2>&1 ; then |
| 1050 lt_cv_ld_force_load=yes |
| 1051 else |
| 1052 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1053 fi |
| 1054 rm -f conftest.err libconftest.a conftest conftest.c |
| 1055 rm -rf conftest.dSYM |
| 1056 ]) |
950 case $host_os in | 1057 case $host_os in |
951 rhapsody* | darwin1.[[012]]) | 1058 rhapsody* | darwin1.[[012]]) |
952 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 1059 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
953 darwin1.*) | 1060 darwin1.*) |
954 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres
s' ;; | 1061 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres
s' ;; |
955 darwin*) # darwin 5.x on | 1062 darwin*) # darwin 5.x on |
956 # if running on 10.5 or later, the deployment target defaults | 1063 # if running on 10.5 or later, the deployment target defaults |
957 # to the OS version, if on x86, and 10.4, the deployment | 1064 # to the OS version, if on x86, and 10.4, the deployment |
958 # target defaults to 10.4. Don't you love it? | 1065 # target defaults to 10.4. Don't you love it? |
959 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 1066 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
960 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | 1067 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 1068 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
962 10.[[012]]*) | 1069 10.[[012]]*) |
963 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup
press' ;; | 1070 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup
press' ;; |
964 10.*) | 1071 10.*) |
965 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 1072 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
966 esac | 1073 esac |
967 ;; | 1074 ;; |
968 esac | 1075 esac |
969 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 1076 if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
970 _lt_dar_single_mod='$single_module' | 1077 _lt_dar_single_mod='$single_module' |
971 fi | 1078 fi |
972 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 1079 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
973 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname
}-symbols.expsym' | 1080 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname
}-symbols.expsym' |
974 else | 1081 else |
975 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym
${lib}' | 1082 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym
${lib}' |
976 fi | 1083 fi |
977 if test "$DSYMUTIL" != ":"; then | 1084 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
978 _lt_dsymutil='~$DSYMUTIL $lib || :' | 1085 _lt_dsymutil='~$DSYMUTIL $lib || :' |
979 else | 1086 else |
980 _lt_dsymutil= | 1087 _lt_dsymutil= |
981 fi | 1088 fi |
982 ;; | 1089 ;; |
983 esac | 1090 esac |
984 ]) | 1091 ]) |
985 | 1092 |
986 | 1093 |
987 # _LT_DARWIN_LINKER_FEATURES | 1094 # _LT_DARWIN_LINKER_FEATURES([TAG]) |
988 # -------------------------- | 1095 # --------------------------------- |
989 # Checks for linker and compiler features on darwin | 1096 # Checks for linker and compiler features on darwin |
990 m4_defun([_LT_DARWIN_LINKER_FEATURES], | 1097 m4_defun([_LT_DARWIN_LINKER_FEATURES], |
991 [ | 1098 [ |
992 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | 1099 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
993 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 1100 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
994 _LT_TAGVAR(hardcode_direct, $1)=no | 1101 _LT_TAGVAR(hardcode_direct, $1)=no |
995 _LT_TAGVAR(hardcode_automatic, $1)=yes | 1102 _LT_TAGVAR(hardcode_automatic, $1)=yes |
996 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 1103 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
997 _LT_TAGVAR(whole_archive_flag_spec, $1)='' | 1104 if test "$lt_cv_ld_force_load" = "yes"; then |
| 1105 _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\"`' |
| 1106 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
| 1107 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
| 1108 else |
| 1109 _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
| 1110 fi |
998 _LT_TAGVAR(link_all_deplibs, $1)=yes | 1111 _LT_TAGVAR(link_all_deplibs, $1)=yes |
999 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | 1112 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1000 case $cc_basename in | 1113 case $cc_basename in |
1001 ifort*) _lt_dar_can_shared=yes ;; | 1114 ifort*) _lt_dar_can_shared=yes ;; |
1002 *) _lt_dar_can_shared=$GCC ;; | 1115 *) _lt_dar_can_shared=$GCC ;; |
1003 esac | 1116 esac |
1004 if test "$_lt_dar_can_shared" = "yes"; then | 1117 if test "$_lt_dar_can_shared" = "yes"; then |
1005 output_verbose_link_cmd=echo | 1118 output_verbose_link_cmd=func_echo_all |
1006 _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}" | 1119 _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}" |
1007 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$
libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 1120 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$
libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1008 _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}" | 1121 _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}" |
1009 _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}" | 1122 _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}" |
1010 m4_if([$1], [CXX], | 1123 m4_if([$1], [CXX], |
1011 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | 1124 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
1012 _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}" | 1125 _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}" |
1013 _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}" | 1126 _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}" |
1014 fi | 1127 fi |
1015 ],[]) | 1128 ],[]) |
1016 else | 1129 else |
1017 _LT_TAGVAR(ld_shlibs, $1)=no | 1130 _LT_TAGVAR(ld_shlibs, $1)=no |
1018 fi | 1131 fi |
1019 ]) | 1132 ]) |
1020 | 1133 |
1021 # _LT_SYS_MODULE_PATH_AIX | 1134 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
1022 # ----------------------- | 1135 # ---------------------------------- |
1023 # Links a minimal program and checks the executable | 1136 # Links a minimal program and checks the executable |
1024 # for the system default hardcoded library path. In most cases, | 1137 # for the system default hardcoded library path. In most cases, |
1025 # this is /usr/lib:/lib, but when the MPI compilers are used | 1138 # this is /usr/lib:/lib, but when the MPI compilers are used |
1026 # the location of the communication and MPI libs are included too. | 1139 # the location of the communication and MPI libs are included too. |
1027 # If we don't find anything, use the default library path according | 1140 # If we don't find anything, use the default library path according |
1028 # to the aix ld manual. | 1141 # to the aix ld manual. |
| 1142 # Store the results from the different compilers for each TAGNAME. |
| 1143 # Allow to override them for all tags through lt_cv_aix_libpath. |
1029 m4_defun([_LT_SYS_MODULE_PATH_AIX], | 1144 m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1030 [m4_require([_LT_DECL_SED])dnl | 1145 [m4_require([_LT_DECL_SED])dnl |
1031 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | 1146 if test "${lt_cv_aix_libpath+set}" = set; then |
1032 lt_aix_libpath_sed=' | 1147 aix_libpath=$lt_cv_aix_libpath |
1033 /Import File Strings/,/^$/ { | 1148 else |
1034 » /^0/ { | 1149 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
1035 » s/^0 *\(.*\)$/\1/ | 1150 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
1036 » p | 1151 lt_aix_libpath_sed='[ |
1037 » } | 1152 /Import File Strings/,/^$/ { |
1038 }' | 1153 » /^0/ { |
1039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` | 1154 » s/^0 *\([^ ]*\) *$/\1/ |
1040 # Check for a 64-bit object if we didn't find anything. | 1155 » p |
1041 if test -z "$aix_libpath"; then | 1156 » } |
1042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` | 1157 }]' |
1043 fi],[]) | 1158 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null
| $SED -n -e "$lt_aix_libpath_sed"` |
1044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 1159 # Check for a 64-bit object if we didn't find anything. |
| 1160 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1161 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev
/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1162 fi],[]) |
| 1163 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| 1164 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
| 1165 fi |
| 1166 ]) |
| 1167 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
| 1168 fi |
1045 ])# _LT_SYS_MODULE_PATH_AIX | 1169 ])# _LT_SYS_MODULE_PATH_AIX |
1046 | 1170 |
1047 | 1171 |
1048 # _LT_SHELL_INIT(ARG) | 1172 # _LT_SHELL_INIT(ARG) |
1049 # ------------------- | 1173 # ------------------- |
1050 m4_define([_LT_SHELL_INIT], | 1174 m4_define([_LT_SHELL_INIT], |
1051 [ifdef([AC_DIVERSION_NOTICE], | 1175 [m4_divert_text([M4SH-INIT], [$1 |
1052 » [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | 1176 ])])# _LT_SHELL_INIT |
1053 » [AC_DIVERT_PUSH(NOTICE)]) | 1177 |
1054 $1 | |
1055 AC_DIVERT_POP | |
1056 ])# _LT_SHELL_INIT | |
1057 | 1178 |
1058 | 1179 |
1059 # _LT_PROG_ECHO_BACKSLASH | 1180 # _LT_PROG_ECHO_BACKSLASH |
1060 # ----------------------- | 1181 # ----------------------- |
1061 # Add some code to the start of the generated configure script which | 1182 # Find how we can fake an echo command that does not interpret backslash. |
1062 # will find an echo command which doesn't interpret backslashes. | 1183 # In particular, with Autoconf 2.60 or later we add some code to the start |
| 1184 # of the generated configure script which will find a shell with a builtin |
| 1185 # printf (which we can use as an echo command). |
1063 m4_defun([_LT_PROG_ECHO_BACKSLASH], | 1186 m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1064 [_LT_SHELL_INIT([ | 1187 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1065 # Check that we are running under the correct shell. | 1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1066 SHELL=${CONFIG_SHELL-/bin/sh} | 1189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1067 | 1190 |
1068 case X$lt_ECHO in | 1191 AC_MSG_CHECKING([how to print strings]) |
1069 X*--fallback-echo) | 1192 # Test print first, because it will be a builtin if present. |
1070 # Remove one level of quotation (which was required for Make). | 1193 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
1071 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | 1194 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
1072 ;; | 1195 ECHO='print -r --' |
| 1196 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 1197 ECHO='printf %s\n' |
| 1198 else |
| 1199 # Use this function as a fallback that always works. |
| 1200 func_fallback_echo () |
| 1201 { |
| 1202 eval 'cat <<_LTECHO_EOF |
| 1203 $[]1 |
| 1204 _LTECHO_EOF' |
| 1205 } |
| 1206 ECHO='func_fallback_echo' |
| 1207 fi |
| 1208 |
| 1209 # func_echo_all arg... |
| 1210 # Invoke $ECHO with all args, space-separated. |
| 1211 func_echo_all () |
| 1212 { |
| 1213 $ECHO "$*" |
| 1214 } |
| 1215 |
| 1216 case "$ECHO" in |
| 1217 printf*) AC_MSG_RESULT([printf]) ;; |
| 1218 print*) AC_MSG_RESULT([print -r]) ;; |
| 1219 *) AC_MSG_RESULT([cat]) ;; |
1073 esac | 1220 esac |
1074 | 1221 |
1075 ECHO=${lt_ECHO-echo} | 1222 m4_ifdef([_AS_DETECT_SUGGESTED], |
1076 if test "X[$]1" = X--no-reexec; then | 1223 [_AS_DETECT_SUGGESTED([ |
1077 # Discard the --no-reexec flag, and continue. | 1224 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
1078 shift | 1225 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1079 elif test "X[$]1" = X--fallback-echo; then | 1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1080 # Avoid inline document here, it may be left over | 1227 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1081 : | 1228 PATH=/empty FPATH=/empty; export PATH FPATH |
1082 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | 1229 test "X`printf %s $ECHO`" = "X$ECHO" \ |
1083 # Yippee, $ECHO works! | 1230 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
1084 : | |
1085 else | |
1086 # Restart under the correct shell. | |
1087 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1088 fi | |
1089 | 1231 |
1090 if test "X[$]1" = X--fallback-echo; then | |
1091 # used as fallback echo | |
1092 shift | |
1093 cat <<_LT_EOF | |
1094 [$]* | |
1095 _LT_EOF | |
1096 exit 0 | |
1097 fi | |
1098 | |
1099 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1100 # if CDPATH is set. | |
1101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1102 | |
1103 if test -z "$lt_ECHO"; then | |
1104 if test "X${echo_test_string+set}" != Xset; then | |
1105 # find a string as large as possible, as long as the shell can cope with it | |
1106 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"
' 'echo test'; do | |
1107 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
1108 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
1109 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
1110 then | |
1111 break | |
1112 fi | |
1113 done | |
1114 fi | |
1115 | |
1116 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1117 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1118 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1119 : | |
1120 else | |
1121 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
1122 # backslashes. This makes it impossible to quote backslashes using | |
1123 # echo "$something" | sed 's/\\/\\\\/g' | |
1124 # | |
1125 # So, first we look for a working echo in the user's PATH. | |
1126 | |
1127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1128 for dir in $PATH /usr/ucb; do | |
1129 IFS="$lt_save_ifs" | |
1130 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
1131 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
1132 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
1133 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1134 ECHO="$dir/echo" | |
1135 break | |
1136 fi | |
1137 done | |
1138 IFS="$lt_save_ifs" | |
1139 | |
1140 if test "X$ECHO" = Xecho; then | |
1141 # We didn't find a better echo, so look for alternatives. | |
1142 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
1143 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
1144 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1145 # This shell has a builtin print -r that does the trick. | |
1146 ECHO='print -r' | |
1147 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
1148 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
1149 # If we have ksh, try running configure again with it. | |
1150 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
1151 export ORIGINAL_CONFIG_SHELL | |
1152 CONFIG_SHELL=/bin/ksh | |
1153 export CONFIG_SHELL | |
1154 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1155 else | |
1156 # Try using printf. | |
1157 ECHO='printf %s\n' | |
1158 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1159 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1160 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1161 # Cool, printf works | |
1162 : | |
1163 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo
'\t') 2>/dev/null` && | |
1164 test "X$echo_testing_string" = 'X\t' && | |
1165 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo
"$echo_test_string") 2>/dev/null` && | |
1166 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1167 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
1168 export CONFIG_SHELL | |
1169 SHELL="$CONFIG_SHELL" | |
1170 export SHELL | |
1171 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1172 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>
/dev/null` && | |
1173 test "X$echo_testing_string" = 'X\t' && | |
1174 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_t
est_string") 2>/dev/null` && | |
1175 test "X$echo_testing_string" = "X$echo_test_string"; then | |
1176 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
1177 else | |
1178 # maybe with a smaller string... | |
1179 prev=: | |
1180 | |
1181 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0
"' 'sed 50q "[$]0"'; do | |
1182 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
1183 then | |
1184 break | |
1185 fi | |
1186 prev="$cmd" | |
1187 done | |
1188 | |
1189 if test "$prev" != 'sed 50q "[$]0"'; then | |
1190 echo_test_string=`eval $prev` | |
1191 export echo_test_string | |
1192 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$
]@"} | |
1193 else | |
1194 # Oops. We lost completely, so just stick with echo. | |
1195 ECHO=echo | |
1196 fi | |
1197 fi | |
1198 fi | |
1199 fi | |
1200 fi | |
1201 fi | |
1202 | |
1203 # Copy echo and quote the copy suitably for passing to libtool from | |
1204 # the Makefile, instead of quoting the original, which is used later. | |
1205 lt_ECHO=$ECHO | |
1206 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
1207 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
1208 fi | |
1209 | |
1210 AC_SUBST(lt_ECHO) | |
1211 ]) | |
1212 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | 1232 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1213 _LT_DECL([], [ECHO], [1], | 1233 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
1214 [An echo program that does not interpret backslashes]) | |
1215 ])# _LT_PROG_ECHO_BACKSLASH | 1234 ])# _LT_PROG_ECHO_BACKSLASH |
1216 | 1235 |
1217 | 1236 |
| 1237 # _LT_WITH_SYSROOT |
| 1238 # ---------------- |
| 1239 AC_DEFUN([_LT_WITH_SYSROOT], |
| 1240 [AC_MSG_CHECKING([for sysroot]) |
| 1241 AC_ARG_WITH([sysroot], |
| 1242 [ --with-sysroot[=DIR] Search for dependent libraries within DIR |
| 1243 (or the compiler's sysroot if not specified).], |
| 1244 [], [with_sysroot=no]) |
| 1245 |
| 1246 dnl lt_sysroot will always be passed unquoted. We quote it here |
| 1247 dnl in case the user passed a directory name. |
| 1248 lt_sysroot= |
| 1249 case ${with_sysroot} in #( |
| 1250 yes) |
| 1251 if test "$GCC" = yes; then |
| 1252 lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 1253 fi |
| 1254 ;; #( |
| 1255 /*) |
| 1256 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 1257 ;; #( |
| 1258 no|'') |
| 1259 ;; #( |
| 1260 *) |
| 1261 AC_MSG_RESULT([${with_sysroot}]) |
| 1262 AC_MSG_ERROR([The sysroot must be an absolute path.]) |
| 1263 ;; |
| 1264 esac |
| 1265 |
| 1266 AC_MSG_RESULT([${lt_sysroot:-no}]) |
| 1267 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
| 1268 [dependent libraries, and in which our libraries should be installed.])]) |
| 1269 |
1218 # _LT_ENABLE_LOCK | 1270 # _LT_ENABLE_LOCK |
1219 # --------------- | 1271 # --------------- |
1220 m4_defun([_LT_ENABLE_LOCK], | 1272 m4_defun([_LT_ENABLE_LOCK], |
1221 [AC_ARG_ENABLE([libtool-lock], | 1273 [AC_ARG_ENABLE([libtool-lock], |
1222 [AS_HELP_STRING([--disable-libtool-lock], | 1274 [AS_HELP_STRING([--disable-libtool-lock], |
1223 [avoid locking (might break parallel builds)])]) | 1275 [avoid locking (might break parallel builds)])]) |
1224 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 1276 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1225 | 1277 |
1226 # Some flags need to be propagated to the compiler or linker for good | 1278 # Some flags need to be propagated to the compiler or linker for good |
1227 # libtool support. | 1279 # libtool support. |
1228 case $host in | 1280 case $host in |
1229 ia64-*-hpux*) | 1281 ia64-*-hpux*) |
1230 # Find out which ABI we are using. | 1282 # Find out which ABI we are using. |
1231 echo 'int i;' > conftest.$ac_ext | 1283 echo 'int i;' > conftest.$ac_ext |
1232 if AC_TRY_EVAL(ac_compile); then | 1284 if AC_TRY_EVAL(ac_compile); then |
1233 case `/usr/bin/file conftest.$ac_objext` in | 1285 case `/usr/bin/file conftest.$ac_objext` in |
1234 *ELF-32*) | 1286 *ELF-32*) |
1235 HPUX_IA64_MODE="32" | 1287 HPUX_IA64_MODE="32" |
1236 ;; | 1288 ;; |
1237 *ELF-64*) | 1289 *ELF-64*) |
1238 HPUX_IA64_MODE="64" | 1290 HPUX_IA64_MODE="64" |
1239 ;; | 1291 ;; |
1240 esac | 1292 esac |
1241 fi | 1293 fi |
1242 rm -rf conftest* | 1294 rm -rf conftest* |
1243 ;; | 1295 ;; |
1244 *-*-irix6*) | 1296 *-*-irix6*) |
1245 # Find out which ABI we are using. | 1297 # Find out which ABI we are using. |
1246 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 1298 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1247 if AC_TRY_EVAL(ac_compile); then | 1299 if AC_TRY_EVAL(ac_compile); then |
1248 if test "$lt_cv_prog_gnu_ld" = yes; then | 1300 if test "$lt_cv_prog_gnu_ld" = yes; then |
1249 case `/usr/bin/file conftest.$ac_objext` in | 1301 case `/usr/bin/file conftest.$ac_objext` in |
1250 *32-bit*) | 1302 *32-bit*) |
1251 LD="${LD-ld} -melf32bsmip" | 1303 LD="${LD-ld} -melf32bsmip" |
1252 ;; | 1304 ;; |
1253 *N32*) | 1305 *N32*) |
1254 LD="${LD-ld} -melf32bmipn32" | 1306 LD="${LD-ld} -melf32bmipn32" |
1255 ;; | 1307 ;; |
1256 *64-bit*) | 1308 *64-bit*) |
(...skipping 10 matching lines...) Expand all Loading... |
1267 ;; | 1319 ;; |
1268 *64-bit*) | 1320 *64-bit*) |
1269 LD="${LD-ld} -64" | 1321 LD="${LD-ld} -64" |
1270 ;; | 1322 ;; |
1271 esac | 1323 esac |
1272 fi | 1324 fi |
1273 fi | 1325 fi |
1274 rm -rf conftest* | 1326 rm -rf conftest* |
1275 ;; | 1327 ;; |
1276 | 1328 |
1277 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 1329 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1278 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 1330 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1279 # Find out which ABI we are using. | 1331 # Find out which ABI we are using. |
1280 echo 'int i;' > conftest.$ac_ext | 1332 echo 'int i;' > conftest.$ac_ext |
1281 if AC_TRY_EVAL(ac_compile); then | 1333 if AC_TRY_EVAL(ac_compile); then |
1282 case `/usr/bin/file conftest.o` in | 1334 case `/usr/bin/file conftest.o` in |
1283 *32-bit*) | 1335 *32-bit*) |
1284 case $host in | 1336 case $host in |
1285 x86_64-*kfreebsd*-gnu) | 1337 x86_64-*kfreebsd*-gnu) |
1286 LD="${LD-ld} -m elf_i386_fbsd" | 1338 LD="${LD-ld} -m elf_i386_fbsd" |
1287 ;; | 1339 ;; |
1288 x86_64-*linux*) | 1340 x86_64-*linux*) |
1289 » LD="${LD-ld} -m elf_i386" | 1341 » case `/usr/bin/file conftest.o` in |
| 1342 » *x86-64*) |
| 1343 » » LD="${LD-ld} -m elf32_x86_64" |
| 1344 » » ;; |
| 1345 » *) |
| 1346 » » LD="${LD-ld} -m elf_i386" |
| 1347 » » ;; |
| 1348 » esac |
1290 ;; | 1349 ;; |
1291 » ppc64-*linux*|powerpc64-*linux*) | 1350 » powerpc64le-*) |
| 1351 » LD="${LD-ld} -m elf32lppclinux" |
| 1352 » ;; |
| 1353 » powerpc64-*) |
1292 LD="${LD-ld} -m elf32ppclinux" | 1354 LD="${LD-ld} -m elf32ppclinux" |
1293 ;; | 1355 ;; |
1294 s390x-*linux*) | 1356 s390x-*linux*) |
1295 LD="${LD-ld} -m elf_s390" | 1357 LD="${LD-ld} -m elf_s390" |
1296 ;; | 1358 ;; |
1297 sparc64-*linux*) | 1359 sparc64-*linux*) |
1298 LD="${LD-ld} -m elf32_sparc" | 1360 LD="${LD-ld} -m elf32_sparc" |
1299 ;; | 1361 ;; |
1300 esac | 1362 esac |
1301 ;; | 1363 ;; |
1302 *64-bit*) | 1364 *64-bit*) |
1303 case $host in | 1365 case $host in |
1304 x86_64-*kfreebsd*-gnu) | 1366 x86_64-*kfreebsd*-gnu) |
1305 LD="${LD-ld} -m elf_x86_64_fbsd" | 1367 LD="${LD-ld} -m elf_x86_64_fbsd" |
1306 ;; | 1368 ;; |
1307 x86_64-*linux*) | 1369 x86_64-*linux*) |
1308 LD="${LD-ld} -m elf_x86_64" | 1370 LD="${LD-ld} -m elf_x86_64" |
1309 ;; | 1371 ;; |
1310 » ppc*-*linux*|powerpc*-*linux*) | 1372 » powerpcle-*) |
| 1373 » LD="${LD-ld} -m elf64lppc" |
| 1374 » ;; |
| 1375 » powerpc-*) |
1311 LD="${LD-ld} -m elf64ppc" | 1376 LD="${LD-ld} -m elf64ppc" |
1312 ;; | 1377 ;; |
1313 s390*-*linux*|s390*-*tpf*) | 1378 s390*-*linux*|s390*-*tpf*) |
1314 LD="${LD-ld} -m elf64_s390" | 1379 LD="${LD-ld} -m elf64_s390" |
1315 ;; | 1380 ;; |
1316 sparc*-*linux*) | 1381 sparc*-*linux*) |
1317 LD="${LD-ld} -m elf64_sparc" | 1382 LD="${LD-ld} -m elf64_sparc" |
1318 ;; | 1383 ;; |
1319 esac | 1384 esac |
1320 ;; | 1385 ;; |
1321 esac | 1386 esac |
1322 fi | 1387 fi |
1323 rm -rf conftest* | 1388 rm -rf conftest* |
1324 ;; | 1389 ;; |
1325 | 1390 |
1326 *-*-sco3.2v5*) | 1391 *-*-sco3.2v5*) |
1327 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 1392 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1328 SAVE_CFLAGS="$CFLAGS" | 1393 SAVE_CFLAGS="$CFLAGS" |
1329 CFLAGS="$CFLAGS -belf" | 1394 CFLAGS="$CFLAGS -belf" |
1330 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | 1395 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1331 [AC_LANG_PUSH(C) | 1396 [AC_LANG_PUSH(C) |
1332 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c
v_cc_needs_belf=no]) | 1397 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_c
v_cc_needs_belf=no]) |
1333 AC_LANG_POP]) | 1398 AC_LANG_POP]) |
1334 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 1399 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1335 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 1400 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1336 CFLAGS="$SAVE_CFLAGS" | 1401 CFLAGS="$SAVE_CFLAGS" |
1337 fi | 1402 fi |
1338 ;; | 1403 ;; |
1339 sparc*-*solaris*) | 1404 *-*solaris*) |
1340 # Find out which ABI we are using. | 1405 # Find out which ABI we are using. |
1341 echo 'int i;' > conftest.$ac_ext | 1406 echo 'int i;' > conftest.$ac_ext |
1342 if AC_TRY_EVAL(ac_compile); then | 1407 if AC_TRY_EVAL(ac_compile); then |
1343 case `/usr/bin/file conftest.o` in | 1408 case `/usr/bin/file conftest.o` in |
1344 *64-bit*) | 1409 *64-bit*) |
1345 case $lt_cv_prog_gnu_ld in | 1410 case $lt_cv_prog_gnu_ld in |
1346 yes*) LD="${LD-ld} -m elf64_sparc" ;; | 1411 yes*) |
| 1412 case $host in |
| 1413 i?86-*-solaris*) |
| 1414 LD="${LD-ld} -m elf_x86_64" |
| 1415 ;; |
| 1416 sparc*-*-solaris*) |
| 1417 LD="${LD-ld} -m elf64_sparc" |
| 1418 ;; |
| 1419 esac |
| 1420 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 1421 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 1422 LD="${LD-ld}_sol2" |
| 1423 fi |
| 1424 ;; |
1347 *) | 1425 *) |
1348 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 1426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1349 LD="${LD-ld} -64" | 1427 LD="${LD-ld} -64" |
1350 fi | 1428 fi |
1351 ;; | 1429 ;; |
1352 esac | 1430 esac |
1353 ;; | 1431 ;; |
1354 esac | 1432 esac |
1355 fi | 1433 fi |
1356 rm -rf conftest* | 1434 rm -rf conftest* |
1357 ;; | 1435 ;; |
1358 esac | 1436 esac |
1359 | 1437 |
1360 need_locks="$enable_libtool_lock" | 1438 need_locks="$enable_libtool_lock" |
1361 ])# _LT_ENABLE_LOCK | 1439 ])# _LT_ENABLE_LOCK |
1362 | 1440 |
1363 | 1441 |
| 1442 # _LT_PROG_AR |
| 1443 # ----------- |
| 1444 m4_defun([_LT_PROG_AR], |
| 1445 [AC_CHECK_TOOLS(AR, [ar], false) |
| 1446 : ${AR=ar} |
| 1447 : ${AR_FLAGS=cru} |
| 1448 _LT_DECL([], [AR], [1], [The archiver]) |
| 1449 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
| 1450 |
| 1451 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
| 1452 [lt_cv_ar_at_file=no |
| 1453 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
| 1454 [echo conftest.$ac_objext > conftest.lst |
| 1455 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
| 1456 AC_TRY_EVAL([lt_ar_try]) |
| 1457 if test "$ac_status" -eq 0; then |
| 1458 # Ensure the archiver fails upon bogus file names. |
| 1459 rm -f conftest.$ac_objext libconftest.a |
| 1460 AC_TRY_EVAL([lt_ar_try]) |
| 1461 if test "$ac_status" -ne 0; then |
| 1462 lt_cv_ar_at_file=@ |
| 1463 fi |
| 1464 fi |
| 1465 rm -f conftest.* libconftest.a |
| 1466 ]) |
| 1467 ]) |
| 1468 |
| 1469 if test "x$lt_cv_ar_at_file" = xno; then |
| 1470 archiver_list_spec= |
| 1471 else |
| 1472 archiver_list_spec=$lt_cv_ar_at_file |
| 1473 fi |
| 1474 _LT_DECL([], [archiver_list_spec], [1], |
| 1475 [How to feed a file listing to the archiver]) |
| 1476 ])# _LT_PROG_AR |
| 1477 |
| 1478 |
1364 # _LT_CMD_OLD_ARCHIVE | 1479 # _LT_CMD_OLD_ARCHIVE |
1365 # ------------------- | 1480 # ------------------- |
1366 m4_defun([_LT_CMD_OLD_ARCHIVE], | 1481 m4_defun([_LT_CMD_OLD_ARCHIVE], |
1367 [AC_CHECK_TOOL(AR, ar, false) | 1482 [_LT_PROG_AR |
1368 test -z "$AR" && AR=ar | |
1369 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
1370 _LT_DECL([], [AR], [1], [The archiver]) | |
1371 _LT_DECL([], [AR_FLAGS], [1]) | |
1372 | 1483 |
1373 AC_CHECK_TOOL(STRIP, strip, :) | 1484 AC_CHECK_TOOL(STRIP, strip, :) |
1374 test -z "$STRIP" && STRIP=: | 1485 test -z "$STRIP" && STRIP=: |
1375 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | 1486 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
1376 | 1487 |
1377 AC_CHECK_TOOL(RANLIB, ranlib, :) | 1488 AC_CHECK_TOOL(RANLIB, ranlib, :) |
1378 test -z "$RANLIB" && RANLIB=: | 1489 test -z "$RANLIB" && RANLIB=: |
1379 _LT_DECL([], [RANLIB], [1], | 1490 _LT_DECL([], [RANLIB], [1], |
1380 [Commands used to install an old-style archive]) | 1491 [Commands used to install an old-style archive]) |
1381 | 1492 |
1382 # Determine commands to create old-style static archives. | 1493 # Determine commands to create old-style static archives. |
1383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | 1494 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1384 old_postinstall_cmds='chmod 644 $oldlib' | 1495 old_postinstall_cmds='chmod 644 $oldlib' |
1385 old_postuninstall_cmds= | 1496 old_postuninstall_cmds= |
1386 | 1497 |
1387 if test -n "$RANLIB"; then | 1498 if test -n "$RANLIB"; then |
1388 case $host_os in | 1499 case $host_os in |
1389 openbsd*) | 1500 openbsd*) |
1390 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 1501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
1391 ;; | 1502 ;; |
1392 *) | 1503 *) |
1393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 1504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
1394 ;; | 1505 ;; |
1395 esac | 1506 esac |
1396 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 1507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
1397 fi | 1508 fi |
| 1509 |
| 1510 case $host_os in |
| 1511 darwin*) |
| 1512 lock_old_archive_extraction=yes ;; |
| 1513 *) |
| 1514 lock_old_archive_extraction=no ;; |
| 1515 esac |
1398 _LT_DECL([], [old_postinstall_cmds], [2]) | 1516 _LT_DECL([], [old_postinstall_cmds], [2]) |
1399 _LT_DECL([], [old_postuninstall_cmds], [2]) | 1517 _LT_DECL([], [old_postuninstall_cmds], [2]) |
1400 _LT_TAGDECL([], [old_archive_cmds], [2], | 1518 _LT_TAGDECL([], [old_archive_cmds], [2], |
1401 [Commands used to build an old-style archive]) | 1519 [Commands used to build an old-style archive]) |
| 1520 _LT_DECL([], [lock_old_archive_extraction], [0], |
| 1521 [Whether to use a lock for old archive extraction]) |
1402 ])# _LT_CMD_OLD_ARCHIVE | 1522 ])# _LT_CMD_OLD_ARCHIVE |
1403 | 1523 |
1404 | 1524 |
1405 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 1525 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1406 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 1526 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1407 # ---------------------------------------------------------------- | 1527 # ---------------------------------------------------------------- |
1408 # Check whether the given compiler option works | 1528 # Check whether the given compiler option works |
1409 AC_DEFUN([_LT_COMPILER_OPTION], | 1529 AC_DEFUN([_LT_COMPILER_OPTION], |
1410 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 1530 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1411 m4_require([_LT_DECL_SED])dnl | 1531 m4_require([_LT_DECL_SED])dnl |
1412 AC_CACHE_CHECK([$1], [$2], | 1532 AC_CACHE_CHECK([$1], [$2], |
1413 [$2=no | 1533 [$2=no |
1414 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | 1534 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 1535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1416 lt_compiler_flag="$3" | 1536 lt_compiler_flag="$3" |
1417 # Insert the option either (1) after the last *FLAGS variable, or | 1537 # Insert the option either (1) after the last *FLAGS variable, or |
1418 # (2) before a word containing "conftest.", or (3) at the end. | 1538 # (2) before a word containing "conftest.", or (3) at the end. |
1419 # Note that $ac_compile itself does not contain backslashes and begins | 1539 # Note that $ac_compile itself does not contain backslashes and begins |
1420 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1540 # with a dollar sign (not a hyphen), so the echo should work correctly. |
1421 # The option is referenced via a variable to avoid confusing sed. | 1541 # The option is referenced via a variable to avoid confusing sed. |
1422 lt_compile=`echo "$ac_compile" | $SED \ | 1542 lt_compile=`echo "$ac_compile" | $SED \ |
1423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 1543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1424 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1544 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1425 -e 's:$: $lt_compiler_flag:'` | 1545 -e 's:$: $lt_compiler_flag:'` |
1426 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1427 (eval "$lt_compile" 2>conftest.err) | 1547 (eval "$lt_compile" 2>conftest.err) |
1428 ac_status=$? | 1548 ac_status=$? |
1429 cat conftest.err >&AS_MESSAGE_LOG_FD | 1549 cat conftest.err >&AS_MESSAGE_LOG_FD |
1430 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1550 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1431 if (exit $ac_status) && test -s "$ac_outfile"; then | 1551 if (exit $ac_status) && test -s "$ac_outfile"; then |
1432 # The compiler can only warn and ignore the option if not recognized | 1552 # The compiler can only warn and ignore the option if not recognized |
1433 # So say no if there are warnings other than the usual output. | 1553 # So say no if there are warnings other than the usual output. |
1434 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 1554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n | 1556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
1437 $2=yes | 1557 $2=yes |
1438 fi | 1558 fi |
1439 fi | 1559 fi |
1440 $RM conftest* | 1560 $RM conftest* |
1441 ]) | 1561 ]) |
1442 | 1562 |
1443 if test x"[$]$2" = xyes; then | 1563 if test x"[$]$2" = xyes; then |
1444 m4_if([$5], , :, [$5]) | 1564 m4_if([$5], , :, [$5]) |
(...skipping 19 matching lines...) Expand all Loading... |
1464 [$2=no | 1584 [$2=no |
1465 save_LDFLAGS="$LDFLAGS" | 1585 save_LDFLAGS="$LDFLAGS" |
1466 LDFLAGS="$LDFLAGS $3" | 1586 LDFLAGS="$LDFLAGS $3" |
1467 echo "$lt_simple_link_test_code" > conftest.$ac_ext | 1587 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
1468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 1588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
1469 # The linker can only warn and ignore the option if not recognized | 1589 # The linker can only warn and ignore the option if not recognized |
1470 # So say no if there are warnings | 1590 # So say no if there are warnings |
1471 if test -s conftest.err; then | 1591 if test -s conftest.err; then |
1472 # Append any errors to the config.log. | 1592 # Append any errors to the config.log. |
1473 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 1593 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1474 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 1594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 1595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1476 if diff conftest.exp conftest.er2 >/dev/null; then | 1596 if diff conftest.exp conftest.er2 >/dev/null; then |
1477 $2=yes | 1597 $2=yes |
1478 fi | 1598 fi |
1479 else | 1599 else |
1480 $2=yes | 1600 $2=yes |
1481 fi | 1601 fi |
1482 fi | 1602 fi |
1483 $RM -r conftest* | 1603 $RM -r conftest* |
1484 LDFLAGS="$save_LDFLAGS" | 1604 LDFLAGS="$save_LDFLAGS" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 # On Win9x/ME, this test blows up -- it succeeds, but takes | 1647 # On Win9x/ME, this test blows up -- it succeeds, but takes |
1528 # about 5 minutes as the teststring grows exponentially. | 1648 # about 5 minutes as the teststring grows exponentially. |
1529 # Worse, since 9x/ME are not pre-emptively multitasking, | 1649 # Worse, since 9x/ME are not pre-emptively multitasking, |
1530 # you end up with a "frozen" computer, even though with patience | 1650 # you end up with a "frozen" computer, even though with patience |
1531 # the test eventually succeeds (with a max line length of 256k). | 1651 # the test eventually succeeds (with a max line length of 256k). |
1532 # Instead, let's just punt: use the minimum linelength reported by | 1652 # Instead, let's just punt: use the minimum linelength reported by |
1533 # all of the supported platforms: 8192 (on NT/2K/XP). | 1653 # all of the supported platforms: 8192 (on NT/2K/XP). |
1534 lt_cv_sys_max_cmd_len=8192; | 1654 lt_cv_sys_max_cmd_len=8192; |
1535 ;; | 1655 ;; |
1536 | 1656 |
| 1657 mint*) |
| 1658 # On MiNT this can take a long time and run out of memory. |
| 1659 lt_cv_sys_max_cmd_len=8192; |
| 1660 ;; |
| 1661 |
1537 amigaos*) | 1662 amigaos*) |
1538 # On AmigaOS with pdksh, this test takes hours, literally. | 1663 # On AmigaOS with pdksh, this test takes hours, literally. |
1539 # So we just punt and use a minimum line length of 8192. | 1664 # So we just punt and use a minimum line length of 8192. |
1540 lt_cv_sys_max_cmd_len=8192; | 1665 lt_cv_sys_max_cmd_len=8192; |
1541 ;; | 1666 ;; |
1542 | 1667 |
1543 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 1668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
1544 # This has been around since 386BSD, at least. Likely further. | 1669 # This has been around since 386BSD, at least. Likely further. |
1545 if test -x /sbin/sysctl; then | 1670 if test -x /sbin/sysctl; then |
1546 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 1671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
1547 elif test -x /usr/sbin/sysctl; then | 1672 elif test -x /usr/sbin/sysctl; then |
1548 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 1673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
1549 else | 1674 else |
1550 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | 1675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
1551 fi | 1676 fi |
1552 # And add a safety zone | 1677 # And add a safety zone |
1553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 1678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 1679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1555 ;; | 1680 ;; |
1556 | 1681 |
1557 interix*) | 1682 interix*) |
1558 # We know the value 262144 and hardcode it with a safety zone (like BSD) | 1683 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
1559 lt_cv_sys_max_cmd_len=196608 | 1684 lt_cv_sys_max_cmd_len=196608 |
1560 ;; | 1685 ;; |
1561 | 1686 |
| 1687 os2*) |
| 1688 # The test takes a long time on OS/2. |
| 1689 lt_cv_sys_max_cmd_len=8192 |
| 1690 ;; |
| 1691 |
1562 osf*) | 1692 osf*) |
1563 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 1693 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
1564 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 1694 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
1565 # nice to cause kernel panics so lets avoid the loop below. | 1695 # nice to cause kernel panics so lets avoid the loop below. |
1566 # First set a reasonable default. | 1696 # First set a reasonable default. |
1567 lt_cv_sys_max_cmd_len=16384 | 1697 lt_cv_sys_max_cmd_len=16384 |
1568 # | 1698 # |
1569 if test -x /sbin/sysconfig; then | 1699 if test -x /sbin/sysconfig; then |
1570 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 1700 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
1571 *1*) lt_cv_sys_max_cmd_len=-1 ;; | 1701 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
1572 esac | 1702 esac |
1573 fi | 1703 fi |
1574 ;; | 1704 ;; |
1575 sco3.2v5*) | 1705 sco3.2v5*) |
1576 lt_cv_sys_max_cmd_len=102400 | 1706 lt_cv_sys_max_cmd_len=102400 |
1577 ;; | 1707 ;; |
1578 sysv5* | sco5v6* | sysv4.2uw2*) | 1708 sysv5* | sco5v6* | sysv4.2uw2*) |
1579 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 1709 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
1580 if test -n "$kargmax"; then | 1710 if test -n "$kargmax"; then |
1581 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | 1711 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
1582 else | 1712 else |
1583 lt_cv_sys_max_cmd_len=32768 | 1713 lt_cv_sys_max_cmd_len=32768 |
1584 fi | 1714 fi |
1585 ;; | 1715 ;; |
1586 *) | 1716 *) |
1587 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 1717 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
1588 if test -n "$lt_cv_sys_max_cmd_len"; then | 1718 if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 1719 » test undefined != "$lt_cv_sys_max_cmd_len"; then |
1589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 1720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 1721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1591 else | 1722 else |
1592 # Make teststring a little bigger before we do anything with it. | 1723 # Make teststring a little bigger before we do anything with it. |
1593 # a 1K string should be a reasonable start. | 1724 # a 1K string should be a reasonable start. |
1594 for i in 1 2 3 4 5 6 7 8 ; do | 1725 for i in 1 2 3 4 5 6 7 8 ; do |
1595 teststring=$teststring$teststring | 1726 teststring=$teststring$teststring |
1596 done | 1727 done |
1597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 1728 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1598 # If test is not a shell built-in, we'll probably end up computing a | 1729 # If test is not a shell built-in, we'll probably end up computing a |
1599 # maximum length that is only half of the actual maximum length, but | 1730 # maximum length that is only half of the actual maximum length, but |
1600 # we can't tell. | 1731 # we can't tell. |
1601 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/
dev/null` \ | 1732 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
1602 » = "XX$teststring$teststring"; } >/dev/null 2>&1 && | 1733 » = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1603 test $i != 17 # 1/2 MB should be enough | 1734 test $i != 17 # 1/2 MB should be enough |
1604 do | 1735 do |
1605 i=`expr $i + 1` | 1736 i=`expr $i + 1` |
1606 teststring=$teststring$teststring | 1737 teststring=$teststring$teststring |
1607 done | 1738 done |
1608 # Only check the string length outside the loop. | 1739 # Only check the string length outside the loop. |
1609 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | 1740 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
1610 teststring= | 1741 teststring= |
1611 # Add a significant safety factor because C++ compilers can tack on | 1742 # Add a significant safety factor because C++ compilers can tack on |
1612 # massive amounts of additional arguments before passing them to the | 1743 # massive amounts of additional arguments before passing them to the |
(...skipping 30 matching lines...) Expand all Loading... |
1643 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 1774 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
1644 # ---------------------------------------------------------------- | 1775 # ---------------------------------------------------------------- |
1645 m4_defun([_LT_TRY_DLOPEN_SELF], | 1776 m4_defun([_LT_TRY_DLOPEN_SELF], |
1646 [m4_require([_LT_HEADER_DLFCN])dnl | 1777 [m4_require([_LT_HEADER_DLFCN])dnl |
1647 if test "$cross_compiling" = yes; then : | 1778 if test "$cross_compiling" = yes; then : |
1648 [$4] | 1779 [$4] |
1649 else | 1780 else |
1650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 1781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1651 lt_status=$lt_dlunknown | 1782 lt_status=$lt_dlunknown |
1652 cat > conftest.$ac_ext <<_LT_EOF | 1783 cat > conftest.$ac_ext <<_LT_EOF |
1653 [#line __oline__ "configure" | 1784 [#line $LINENO "configure" |
1654 #include "confdefs.h" | 1785 #include "confdefs.h" |
1655 | 1786 |
1656 #if HAVE_DLFCN_H | 1787 #if HAVE_DLFCN_H |
1657 #include <dlfcn.h> | 1788 #include <dlfcn.h> |
1658 #endif | 1789 #endif |
1659 | 1790 |
1660 #include <stdio.h> | 1791 #include <stdio.h> |
1661 | 1792 |
1662 #ifdef RTLD_GLOBAL | 1793 #ifdef RTLD_GLOBAL |
1663 # define LT_DLGLOBAL RTLD_GLOBAL | 1794 # define LT_DLGLOBAL RTLD_GLOBAL |
(...skipping 20 matching lines...) Expand all Loading... |
1684 # ifdef DL_NOW | 1815 # ifdef DL_NOW |
1685 # define LT_DLLAZY_OR_NOW DL_NOW | 1816 # define LT_DLLAZY_OR_NOW DL_NOW |
1686 # else | 1817 # else |
1687 # define LT_DLLAZY_OR_NOW 0 | 1818 # define LT_DLLAZY_OR_NOW 0 |
1688 # endif | 1819 # endif |
1689 # endif | 1820 # endif |
1690 # endif | 1821 # endif |
1691 # endif | 1822 # endif |
1692 #endif | 1823 #endif |
1693 | 1824 |
1694 void fnord() { int i=42;} | 1825 /* When -fvisbility=hidden is used, assume the code has been annotated |
| 1826 correspondingly for the symbols needed. */ |
| 1827 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_
_ > 3)) |
| 1828 int fnord () __attribute__((visibility("default"))); |
| 1829 #endif |
| 1830 |
| 1831 int fnord () { return 42; } |
1695 int main () | 1832 int main () |
1696 { | 1833 { |
1697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 1834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1698 int status = $lt_dlunknown; | 1835 int status = $lt_dlunknown; |
1699 | 1836 |
1700 if (self) | 1837 if (self) |
1701 { | 1838 { |
1702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 1839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 1840 else |
| 1841 { |
| 1842 » if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 1843 else puts (dlerror ()); |
| 1844 » } |
1704 /* dlclose (self); */ | 1845 /* dlclose (self); */ |
1705 } | 1846 } |
1706 else | 1847 else |
1707 puts (dlerror ()); | 1848 puts (dlerror ()); |
1708 | 1849 |
1709 return status; | 1850 return status; |
1710 }] | 1851 }] |
1711 _LT_EOF | 1852 _LT_EOF |
1712 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 1853 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
1713 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | 1854 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 | 2010 |
1870 lt_compiler_flag="-o out/conftest2.$ac_objext" | 2011 lt_compiler_flag="-o out/conftest2.$ac_objext" |
1871 # Insert the option either (1) after the last *FLAGS variable, or | 2012 # Insert the option either (1) after the last *FLAGS variable, or |
1872 # (2) before a word containing "conftest.", or (3) at the end. | 2013 # (2) before a word containing "conftest.", or (3) at the end. |
1873 # Note that $ac_compile itself does not contain backslashes and begins | 2014 # Note that $ac_compile itself does not contain backslashes and begins |
1874 # with a dollar sign (not a hyphen), so the echo should work correctly. | 2015 # with a dollar sign (not a hyphen), so the echo should work correctly. |
1875 lt_compile=`echo "$ac_compile" | $SED \ | 2016 lt_compile=`echo "$ac_compile" | $SED \ |
1876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 2017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1877 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 2018 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1878 -e 's:$: $lt_compiler_flag:'` | 2019 -e 's:$: $lt_compiler_flag:'` |
1879 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 2020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1880 (eval "$lt_compile" 2>out/conftest.err) | 2021 (eval "$lt_compile" 2>out/conftest.err) |
1881 ac_status=$? | 2022 ac_status=$? |
1882 cat out/conftest.err >&AS_MESSAGE_LOG_FD | 2023 cat out/conftest.err >&AS_MESSAGE_LOG_FD |
1883 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1884 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 2025 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1885 then | 2026 then |
1886 # The compiler can only warn and ignore the option if not recognized | 2027 # The compiler can only warn and ignore the option if not recognized |
1887 # So say no if there are warnings | 2028 # So say no if there are warnings |
1888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 2029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 2030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then | 2031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
1891 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 2032 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1892 fi | 2033 fi |
1893 fi | 2034 fi |
1894 chmod u+w . 2>&AS_MESSAGE_LOG_FD | 2035 chmod u+w . 2>&AS_MESSAGE_LOG_FD |
1895 $RM conftest* | 2036 $RM conftest* |
1896 # SGI C++ compiler will create directory out/ii_files/ for | 2037 # SGI C++ compiler will create directory out/ii_files/ for |
1897 # template instantiation | 2038 # template instantiation |
1898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 2039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 | 2178 |
2038 # _LT_SYS_DYNAMIC_LINKER([TAG]) | 2179 # _LT_SYS_DYNAMIC_LINKER([TAG]) |
2039 # ----------------------------- | 2180 # ----------------------------- |
2040 # PORTME Fill in your ld.so characteristics | 2181 # PORTME Fill in your ld.so characteristics |
2041 m4_defun([_LT_SYS_DYNAMIC_LINKER], | 2182 m4_defun([_LT_SYS_DYNAMIC_LINKER], |
2042 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 2183 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2043 m4_require([_LT_DECL_EGREP])dnl | 2184 m4_require([_LT_DECL_EGREP])dnl |
2044 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 2185 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2045 m4_require([_LT_DECL_OBJDUMP])dnl | 2186 m4_require([_LT_DECL_OBJDUMP])dnl |
2046 m4_require([_LT_DECL_SED])dnl | 2187 m4_require([_LT_DECL_SED])dnl |
| 2188 m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
2047 AC_MSG_CHECKING([dynamic linker characteristics]) | 2189 AC_MSG_CHECKING([dynamic linker characteristics]) |
2048 m4_if([$1], | 2190 m4_if([$1], |
2049 [], [ | 2191 [], [ |
2050 if test "$GCC" = yes; then | 2192 if test "$GCC" = yes; then |
2051 case $host_os in | 2193 case $host_os in |
2052 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 2194 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2053 *) lt_awk_arg="/^libraries:/" ;; | 2195 *) lt_awk_arg="/^libraries:/" ;; |
2054 esac | 2196 esac |
2055 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e "s,=/,/,g"` | 2197 case $host_os in |
2056 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | 2198 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
| 2199 *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 2200 esac |
| 2201 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e $lt_sed_strip_eq` |
| 2202 case $lt_search_path_spec in |
| 2203 *\;*) |
2057 # if the path contains ";" then we assume it to be the separator | 2204 # if the path contains ";" then we assume it to be the separator |
2058 # otherwise default to the standard path separator (i.e. ":") - it is | 2205 # otherwise default to the standard path separator (i.e. ":") - it is |
2059 # assumed that no part of a normal pathname contains ";" but that should | 2206 # assumed that no part of a normal pathname contains ";" but that should |
2060 # okay in the real world where ";" in dirpaths is itself problematic. | 2207 # okay in the real world where ";" in dirpaths is itself problematic. |
2061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | 2208 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
2062 else | 2209 ;; |
2063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARA
TOR/ /g"` | 2210 *) |
2064 fi | 2211 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/
/g"` |
| 2212 ;; |
| 2213 esac |
2065 # Ok, now we have the path, separated by spaces, we can step through it | 2214 # Ok, now we have the path, separated by spaces, we can step through it |
2066 # and add multilib dir if necessary. | 2215 # and add multilib dir if necessary. |
2067 lt_tmp_lt_search_path_spec= | 2216 lt_tmp_lt_search_path_spec= |
2068 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d
ev/null` | 2217 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d
ev/null` |
2069 for lt_sys_path in $lt_search_path_spec; do | 2218 for lt_sys_path in $lt_search_path_spec; do |
2070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | 2219 if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
2071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m
ulti_os_dir" | 2220 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m
ulti_os_dir" |
2072 else | 2221 else |
2073 test -d "$lt_sys_path" && \ | 2222 test -d "$lt_sys_path" && \ |
2074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 2223 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2075 fi | 2224 fi |
2076 done | 2225 done |
2077 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | 2226 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
2078 BEGIN {RS=" "; FS="/|\n";} { | 2227 BEGIN {RS=" "; FS="/|\n";} { |
2079 lt_foo=""; | 2228 lt_foo=""; |
2080 lt_count=0; | 2229 lt_count=0; |
2081 for (lt_i = NF; lt_i > 0; lt_i--) { | 2230 for (lt_i = NF; lt_i > 0; lt_i--) { |
2082 if ($lt_i != "" && $lt_i != ".") { | 2231 if ($lt_i != "" && $lt_i != ".") { |
2083 if ($lt_i == "..") { | 2232 if ($lt_i == "..") { |
2084 lt_count++; | 2233 lt_count++; |
2085 } else { | 2234 } else { |
2086 if (lt_count == 0) { | 2235 if (lt_count == 0) { |
2087 lt_foo="/" $lt_i lt_foo; | 2236 lt_foo="/" $lt_i lt_foo; |
2088 } else { | 2237 } else { |
2089 lt_count--; | 2238 lt_count--; |
2090 } | 2239 } |
2091 } | 2240 } |
2092 } | 2241 } |
2093 } | 2242 } |
2094 if (lt_foo != "") { lt_freq[[lt_foo]]++; } | 2243 if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2095 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | 2244 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2096 }'` | 2245 }'` |
2097 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | 2246 # AWK program above erroneously prepends '/' to C:/dos/paths |
| 2247 # for these hosts. |
| 2248 case $host_os in |
| 2249 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 2250 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; |
| 2251 esac |
| 2252 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
2098 else | 2253 else |
2099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 2254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2100 fi]) | 2255 fi]) |
2101 library_names_spec= | 2256 library_names_spec= |
2102 libname_spec='lib$name' | 2257 libname_spec='lib$name' |
2103 soname_spec= | 2258 soname_spec= |
2104 shrext_cmds=".so" | 2259 shrext_cmds=".so" |
2105 postinstall_cmds= | 2260 postinstall_cmds= |
2106 postuninstall_cmds= | 2261 postuninstall_cmds= |
2107 finish_cmds= | 2262 finish_cmds= |
2108 finish_eval= | 2263 finish_eval= |
2109 shlibpath_var= | 2264 shlibpath_var= |
2110 shlibpath_overrides_runpath=unknown | 2265 shlibpath_overrides_runpath=unknown |
2111 version_type=none | 2266 version_type=none |
2112 dynamic_linker="$host_os ld.so" | 2267 dynamic_linker="$host_os ld.so" |
2113 sys_lib_dlsearch_path_spec="/lib /usr/lib" | 2268 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2114 need_lib_prefix=unknown | 2269 need_lib_prefix=unknown |
2115 hardcode_into_libs=no | 2270 hardcode_into_libs=no |
2116 | 2271 |
2117 # when you set need_version to no, make sure it does not cause -set_version | 2272 # when you set need_version to no, make sure it does not cause -set_version |
2118 # flags to be left without arguments | 2273 # flags to be left without arguments |
2119 need_version=unknown | 2274 need_version=unknown |
2120 | 2275 |
2121 case $host_os in | 2276 case $host_os in |
2122 aix3*) | 2277 aix3*) |
2123 version_type=linux | 2278 version_type=linux # correct to gnu/linux during the next big refactor |
2124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 2279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2125 shlibpath_var=LIBPATH | 2280 shlibpath_var=LIBPATH |
2126 | 2281 |
2127 # AIX 3 has no versioning support, so we append a major version to the name. | 2282 # AIX 3 has no versioning support, so we append a major version to the name. |
2128 soname_spec='${libname}${release}${shared_ext}$major' | 2283 soname_spec='${libname}${release}${shared_ext}$major' |
2129 ;; | 2284 ;; |
2130 | 2285 |
2131 aix[[4-9]]*) | 2286 aix[[4-9]]*) |
2132 version_type=linux | 2287 version_type=linux # correct to gnu/linux during the next big refactor |
2133 need_lib_prefix=no | 2288 need_lib_prefix=no |
2134 need_version=no | 2289 need_version=no |
2135 hardcode_into_libs=yes | 2290 hardcode_into_libs=yes |
2136 if test "$host_cpu" = ia64; then | 2291 if test "$host_cpu" = ia64; then |
2137 # AIX 5 supports IA64 | 2292 # AIX 5 supports IA64 |
2138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' | 2293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' |
2139 shlibpath_var=LD_LIBRARY_PATH | 2294 shlibpath_var=LD_LIBRARY_PATH |
2140 else | 2295 else |
2141 # With GCC up to 2.95.x, collect2 would create an import file | 2296 # With GCC up to 2.95.x, collect2 would create an import file |
2142 # for dependence libraries. The import file would start with | 2297 # for dependence libraries. The import file would start with |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2175 amigaos*) | 2330 amigaos*) |
2176 case $host_cpu in | 2331 case $host_cpu in |
2177 powerpc) | 2332 powerpc) |
2178 # Since July 2007 AmigaOS4 officially supports .so libraries. | 2333 # Since July 2007 AmigaOS4 officially supports .so libraries. |
2179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 2334 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
2180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
2181 ;; | 2336 ;; |
2182 m68k) | 2337 m68k) |
2183 library_names_spec='$libname.ixlibrary $libname.a' | 2338 library_names_spec='$libname.ixlibrary $libname.a' |
2184 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 2339 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2185 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$E
CHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys
/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlib
rary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 2340 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' |
2186 ;; | 2341 ;; |
2187 esac | 2342 esac |
2188 ;; | 2343 ;; |
2189 | 2344 |
2190 beos*) | 2345 beos*) |
2191 library_names_spec='${libname}${shared_ext}' | 2346 library_names_spec='${libname}${shared_ext}' |
2192 dynamic_linker="$host_os ld.so" | 2347 dynamic_linker="$host_os ld.so" |
2193 shlibpath_var=LIBRARY_PATH | 2348 shlibpath_var=LIBRARY_PATH |
2194 ;; | 2349 ;; |
2195 | 2350 |
2196 bsdi[[45]]*) | 2351 bsdi[[45]]*) |
2197 version_type=linux | 2352 version_type=linux # correct to gnu/linux during the next big refactor |
2198 need_version=no | 2353 need_version=no |
2199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2200 soname_spec='${libname}${release}${shared_ext}$major' | 2355 soname_spec='${libname}${release}${shared_ext}$major' |
2201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 2356 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2202 shlibpath_var=LD_LIBRARY_PATH | 2357 shlibpath_var=LD_LIBRARY_PATH |
2203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" | 2358 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" |
2204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 2359 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2205 # the default ld.so.conf also contains /usr/contrib/lib and | 2360 # the default ld.so.conf also contains /usr/contrib/lib and |
2206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 2361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2207 # libtool to hard-code these into programs | 2362 # libtool to hard-code these into programs |
2208 ;; | 2363 ;; |
2209 | 2364 |
2210 cygwin* | mingw* | pw32* | cegcc*) | 2365 cygwin* | mingw* | pw32* | cegcc*) |
2211 version_type=windows | 2366 version_type=windows |
2212 shrext_cmds=".dll" | 2367 shrext_cmds=".dll" |
2213 need_version=no | 2368 need_version=no |
2214 need_lib_prefix=no | 2369 need_lib_prefix=no |
2215 | 2370 |
2216 case $GCC,$host_os in | 2371 case $GCC,$cc_basename in |
2217 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | 2372 yes,*) |
| 2373 # gcc |
2218 library_names_spec='$libname.dll.a' | 2374 library_names_spec='$libname.dll.a' |
2219 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 2375 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2220 postinstall_cmds='base_file=`basename \${file}`~ | 2376 postinstall_cmds='base_file=`basename \${file}`~ |
2221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ | 2377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ |
2222 dldir=$destdir/`dirname \$dlpath`~ | 2378 dldir=$destdir/`dirname \$dlpath`~ |
2223 test -d \$dldir || mkdir -p \$dldir~ | 2379 test -d \$dldir || mkdir -p \$dldir~ |
2224 $install_prog $dir/$dlname \$dldir/$dlname~ | 2380 $install_prog $dir/$dlname \$dldir/$dlname~ |
2225 chmod a+x \$dldir/$dlname~ | 2381 chmod a+x \$dldir/$dlname~ |
2226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 2382 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
2227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 2383 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
2228 fi' | 2384 fi' |
2229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 2385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2230 dlpath=$dir/\$dldll~ | 2386 dlpath=$dir/\$dldll~ |
2231 $RM \$dlpath' | 2387 $RM \$dlpath' |
2232 shlibpath_overrides_runpath=yes | 2388 shlibpath_overrides_runpath=yes |
2233 | 2389 |
2234 case $host_os in | 2390 case $host_os in |
2235 cygwin*) | 2391 cygwin*) |
2236 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 2392 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 2394 m4_if([$1], [],[ |
| 2395 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
2239 ;; | 2396 ;; |
2240 mingw* | cegcc*) | 2397 mingw* | cegcc*) |
2241 # MinGW DLLs use traditional 'lib' prefix | 2398 # MinGW DLLs use traditional 'lib' prefix |
2242 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi
x}${shared_ext}' | 2399 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffi
x}${shared_ext}' |
2243 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $
SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2244 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t
hen | |
2245 # It is most probably a Windows format PATH printed by | |
2246 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
2247 # path with ; separators, and with drive letters. We can handle the | |
2248 # drive letters (cygwin fileutils understands them), so leave them, | |
2249 # especially as we might pass files found there to a mingw objdump, | |
2250 # which wouldn't understand a cygwinified path. Ahh. | |
2251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's
/;/ /g'` | |
2252 else | |
2253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "
s/$PATH_SEPARATOR/ /g"` | |
2254 fi | |
2255 ;; | 2400 ;; |
2256 pw32*) | 2401 pw32*) |
2257 # pw32 DLLs use 'pw' prefix rather than 'lib' | 2402 # pw32 DLLs use 'pw' prefix rather than 'lib' |
2258 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 2403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2259 ;; | 2404 ;; |
2260 esac | 2405 esac |
| 2406 dynamic_linker='Win32 ld.exe' |
| 2407 ;; |
| 2408 |
| 2409 *,cl*) |
| 2410 # Native MSVC |
| 2411 libname_spec='$name' |
| 2412 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}
${shared_ext}' |
| 2413 library_names_spec='${libname}.dll.lib' |
| 2414 |
| 2415 case $build_os in |
| 2416 mingw*) |
| 2417 sys_lib_search_path_spec= |
| 2418 lt_save_ifs=$IFS |
| 2419 IFS=';' |
| 2420 for lt_path in $LIB |
| 2421 do |
| 2422 IFS=$lt_save_ifs |
| 2423 # Let DOS variable expansion print the short 8.3 style file name. |
| 2424 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo
%~si"` |
| 2425 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 2426 done |
| 2427 IFS=$lt_save_ifs |
| 2428 # Convert to MSYS style. |
| 2429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\
\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
| 2430 ;; |
| 2431 cygwin*) |
| 2432 # Convert to unix form, then to dos form, then back to unix form |
| 2433 # but this time dos style (no spaces!) so that the unix form looks |
| 2434 # like /cygdrive/c/PROGRA~1:/cygdr... |
| 2435 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 2436 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec"
2>/dev/null` |
| 2437 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec
" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2438 ;; |
| 2439 *) |
| 2440 sys_lib_search_path_spec="$LIB" |
| 2441 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; t
hen |
| 2442 # It is most probably a Windows format PATH. |
| 2443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's
/;/ /g'` |
| 2444 else |
| 2445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s
/$PATH_SEPARATOR/ /g"` |
| 2446 fi |
| 2447 # FIXME: find the short name or the path components, as spaces are |
| 2448 # common. (e.g. "Program Files" -> "PROGRA~1") |
| 2449 ;; |
| 2450 esac |
| 2451 |
| 2452 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2453 postinstall_cmds='base_file=`basename \${file}`~ |
| 2454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ |
| 2455 dldir=$destdir/`dirname \$dlpath`~ |
| 2456 test -d \$dldir || mkdir -p \$dldir~ |
| 2457 $install_prog $dir/$dlname \$dldir/$dlname' |
| 2458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2459 dlpath=$dir/\$dldll~ |
| 2460 $RM \$dlpath' |
| 2461 shlibpath_overrides_runpath=yes |
| 2462 dynamic_linker='Win32 link.exe' |
2261 ;; | 2463 ;; |
2262 | 2464 |
2263 *) | 2465 *) |
| 2466 # Assume MSVC wrapper |
2264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver
suffix}${shared_ext} $libname.lib' | 2467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver
suffix}${shared_ext} $libname.lib' |
| 2468 dynamic_linker='Win32 ld.exe' |
2265 ;; | 2469 ;; |
2266 esac | 2470 esac |
2267 dynamic_linker='Win32 ld.exe' | |
2268 # FIXME: first we should search . and the directory the executable is in | 2471 # FIXME: first we should search . and the directory the executable is in |
2269 shlibpath_var=PATH | 2472 shlibpath_var=PATH |
2270 ;; | 2473 ;; |
2271 | 2474 |
2272 darwin* | rhapsody*) | 2475 darwin* | rhapsody*) |
2273 dynamic_linker="$host_os dyld" | 2476 dynamic_linker="$host_os dyld" |
2274 version_type=darwin | 2477 version_type=darwin |
2275 need_lib_prefix=no | 2478 need_lib_prefix=no |
2276 need_version=no | 2479 need_version=no |
2277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_
ext' | 2480 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_
ext' |
2278 soname_spec='${libname}${release}${major}$shared_ext' | 2481 soname_spec='${libname}${release}${major}$shared_ext' |
2279 shlibpath_overrides_runpath=yes | 2482 shlibpath_overrides_runpath=yes |
2280 shlibpath_var=DYLD_LIBRARY_PATH | 2483 shlibpath_var=DYLD_LIBRARY_PATH |
2281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 2484 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
2282 m4_if([$1], [],[ | 2485 m4_if([$1], [],[ |
2283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | 2486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
2284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 2487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2285 ;; | 2488 ;; |
2286 | 2489 |
2287 dgux*) | 2490 dgux*) |
2288 version_type=linux | 2491 version_type=linux # correct to gnu/linux during the next big refactor |
2289 need_lib_prefix=no | 2492 need_lib_prefix=no |
2290 need_version=no | 2493 need_version=no |
2291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' | 2494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' |
2292 soname_spec='${libname}${release}${shared_ext}$major' | 2495 soname_spec='${libname}${release}${shared_ext}$major' |
2293 shlibpath_var=LD_LIBRARY_PATH | 2496 shlibpath_var=LD_LIBRARY_PATH |
2294 ;; | 2497 ;; |
2295 | 2498 |
2296 freebsd1*) | |
2297 dynamic_linker=no | |
2298 ;; | |
2299 | |
2300 freebsd* | dragonfly*) | 2499 freebsd* | dragonfly*) |
2301 # DragonFly does not have aout. When/if they implement a new | 2500 # DragonFly does not have aout. When/if they implement a new |
2302 # versioning mechanism, adjust this. | 2501 # versioning mechanism, adjust this. |
2303 if test -x /usr/bin/objformat; then | 2502 if test -x /usr/bin/objformat; then |
2304 objformat=`/usr/bin/objformat` | 2503 objformat=`/usr/bin/objformat` |
2305 else | 2504 else |
2306 case $host_os in | 2505 case $host_os in |
2307 freebsd[[123]]*) objformat=aout ;; | 2506 freebsd[[23]].*) objformat=aout ;; |
2308 *) objformat=elf ;; | 2507 *) objformat=elf ;; |
2309 esac | 2508 esac |
2310 fi | 2509 fi |
2311 # Handle Gentoo/FreeBSD as it was Linux | 2510 version_type=freebsd-$objformat |
2312 case $host_vendor in | |
2313 gentoo) | |
2314 version_type=linux ;; | |
2315 *) | |
2316 version_type=freebsd-$objformat ;; | |
2317 esac | |
2318 | |
2319 case $version_type in | 2511 case $version_type in |
2320 freebsd-elf*) | 2512 freebsd-elf*) |
2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' | 2513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' |
2322 need_version=no | 2514 need_version=no |
2323 need_lib_prefix=no | 2515 need_lib_prefix=no |
2324 ;; | 2516 ;; |
2325 freebsd-*) | 2517 freebsd-*) |
2326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' | 2518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' |
2327 need_version=yes | 2519 need_version=yes |
2328 ;; | 2520 ;; |
2329 linux) | |
2330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major ${libname}${shared_ext}' | |
2331 soname_spec='${libname}${release}${shared_ext}$major' | |
2332 need_lib_prefix=no | |
2333 need_version=no | |
2334 ;; | |
2335 esac | 2521 esac |
2336 shlibpath_var=LD_LIBRARY_PATH | 2522 shlibpath_var=LD_LIBRARY_PATH |
2337 case $host_os in | 2523 case $host_os in |
2338 freebsd2*) | 2524 freebsd2.*) |
2339 shlibpath_overrides_runpath=yes | 2525 shlibpath_overrides_runpath=yes |
2340 ;; | 2526 ;; |
2341 freebsd3.[[01]]* | freebsdelf3.[[01]]*) | 2527 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2342 shlibpath_overrides_runpath=yes | 2528 shlibpath_overrides_runpath=yes |
2343 hardcode_into_libs=yes | 2529 hardcode_into_libs=yes |
2344 ;; | 2530 ;; |
2345 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | 2531 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
2346 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | 2532 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
2347 shlibpath_overrides_runpath=no | 2533 shlibpath_overrides_runpath=no |
2348 hardcode_into_libs=yes | 2534 hardcode_into_libs=yes |
2349 ;; | 2535 ;; |
2350 *) # from 4.6 on, and DragonFly | 2536 *) # from 4.6 on, and DragonFly |
2351 shlibpath_overrides_runpath=yes | 2537 shlibpath_overrides_runpath=yes |
2352 hardcode_into_libs=yes | 2538 hardcode_into_libs=yes |
2353 ;; | 2539 ;; |
2354 esac | 2540 esac |
2355 ;; | 2541 ;; |
2356 | 2542 |
2357 gnu*) | 2543 haiku*) |
2358 version_type=linux | 2544 version_type=linux # correct to gnu/linux during the next big refactor |
2359 need_lib_prefix=no | 2545 need_lib_prefix=no |
2360 need_version=no | 2546 need_version=no |
| 2547 dynamic_linker="$host_os runtime_loader" |
2361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' | 2548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
2362 soname_spec='${libname}${release}${shared_ext}$major' | 2549 soname_spec='${libname}${release}${shared_ext}$major' |
2363 shlibpath_var=LD_LIBRARY_PATH | 2550 shlibpath_var=LIBRARY_PATH |
| 2551 shlibpath_overrides_runpath=yes |
| 2552 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste
m/lib' |
2364 hardcode_into_libs=yes | 2553 hardcode_into_libs=yes |
2365 ;; | 2554 ;; |
2366 | 2555 |
2367 hpux9* | hpux10* | hpux11*) | 2556 hpux9* | hpux10* | hpux11*) |
2368 # Give a soname corresponding to the major version so that dld.sl refuses to | 2557 # Give a soname corresponding to the major version so that dld.sl refuses to |
2369 # link against other versions. | 2558 # link against other versions. |
2370 version_type=sunos | 2559 version_type=sunos |
2371 need_lib_prefix=no | 2560 need_lib_prefix=no |
2372 need_version=no | 2561 need_version=no |
2373 case $host_cpu in | 2562 case $host_cpu in |
(...skipping 25 matching lines...) Expand all Loading... |
2399 ;; | 2588 ;; |
2400 *) | 2589 *) |
2401 shrext_cmds='.sl' | 2590 shrext_cmds='.sl' |
2402 dynamic_linker="$host_os dld.sl" | 2591 dynamic_linker="$host_os dld.sl" |
2403 shlibpath_var=SHLIB_PATH | 2592 shlibpath_var=SHLIB_PATH |
2404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 2593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' | 2594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
2406 soname_spec='${libname}${release}${shared_ext}$major' | 2595 soname_spec='${libname}${release}${shared_ext}$major' |
2407 ;; | 2596 ;; |
2408 esac | 2597 esac |
2409 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 2598 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
2410 postinstall_cmds='chmod 555 $lib' | 2599 postinstall_cmds='chmod 555 $lib' |
| 2600 # or fails outright, so override atomically: |
| 2601 install_override_mode=555 |
2411 ;; | 2602 ;; |
2412 | 2603 |
2413 interix[[3-9]]*) | 2604 interix[[3-9]]*) |
2414 version_type=linux | 2605 version_type=linux # correct to gnu/linux during the next big refactor |
2415 need_lib_prefix=no | 2606 need_lib_prefix=no |
2416 need_version=no | 2607 need_version=no |
2417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' | 2608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' |
2418 soname_spec='${libname}${release}${shared_ext}$major' | 2609 soname_spec='${libname}${release}${shared_ext}$major' |
2419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 2610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
2420 shlibpath_var=LD_LIBRARY_PATH | 2611 shlibpath_var=LD_LIBRARY_PATH |
2421 shlibpath_overrides_runpath=no | 2612 shlibpath_overrides_runpath=no |
2422 hardcode_into_libs=yes | 2613 hardcode_into_libs=yes |
2423 ;; | 2614 ;; |
2424 | 2615 |
2425 irix5* | irix6* | nonstopux*) | 2616 irix5* | irix6* | nonstopux*) |
2426 case $host_os in | 2617 case $host_os in |
2427 nonstopux*) version_type=nonstopux ;; | 2618 nonstopux*) version_type=nonstopux ;; |
2428 *) | 2619 *) |
2429 if test "$lt_cv_prog_gnu_ld" = yes; then | 2620 if test "$lt_cv_prog_gnu_ld" = yes; then |
2430 » » version_type=linux | 2621 » » version_type=linux # correct to gnu/linux during the next big re
factor |
2431 else | 2622 else |
2432 version_type=irix | 2623 version_type=irix |
2433 fi ;; | 2624 fi ;; |
2434 esac | 2625 esac |
2435 need_lib_prefix=no | 2626 need_lib_prefix=no |
2436 need_version=no | 2627 need_version=no |
2437 soname_spec='${libname}${release}${shared_ext}$major' | 2628 soname_spec='${libname}${release}${shared_ext}$major' |
2438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' | 2629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' |
2439 case $host_os in | 2630 case $host_os in |
2440 irix5* | nonstopux*) | 2631 irix5* | nonstopux*) |
(...skipping 16 matching lines...) Expand all Loading... |
2457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" | 2648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" |
2458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 2649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2459 hardcode_into_libs=yes | 2650 hardcode_into_libs=yes |
2460 ;; | 2651 ;; |
2461 | 2652 |
2462 # No shared lib support for Linux oldld, aout, or coff. | 2653 # No shared lib support for Linux oldld, aout, or coff. |
2463 linux*oldld* | linux*aout* | linux*coff*) | 2654 linux*oldld* | linux*aout* | linux*coff*) |
2464 dynamic_linker=no | 2655 dynamic_linker=no |
2465 ;; | 2656 ;; |
2466 | 2657 |
2467 # This must be Linux ELF. | 2658 # This must be glibc/ELF. |
2468 linux* | k*bsd*-gnu) | 2659 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
2469 version_type=linux | 2660 version_type=linux # correct to gnu/linux during the next big refactor |
2470 need_lib_prefix=no | 2661 need_lib_prefix=no |
2471 need_version=no | 2662 need_version=no |
2472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2473 soname_spec='${libname}${release}${shared_ext}$major' | 2664 soname_spec='${libname}${release}${shared_ext}$major' |
2474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 2665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2475 shlibpath_var=LD_LIBRARY_PATH | 2666 shlibpath_var=LD_LIBRARY_PATH |
2476 shlibpath_overrides_runpath=no | 2667 shlibpath_overrides_runpath=no |
| 2668 |
2477 # Some binutils ld are patched to set DT_RUNPATH | 2669 # Some binutils ld are patched to set DT_RUNPATH |
2478 save_LDFLAGS=$LDFLAGS | 2670 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
2479 save_libdir=$libdir | 2671 [lt_cv_shlibpath_overrides_runpath=no |
2480 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | 2672 save_LDFLAGS=$LDFLAGS |
2481 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | 2673 save_libdir=$libdir |
2482 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | 2674 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
2483 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libd
ir" >/dev/null], | 2675 » LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
2484 [shlibpath_overrides_runpath=yes])]) | 2676 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2485 LDFLAGS=$save_LDFLAGS | 2677 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$li
bdir" >/dev/null], |
2486 libdir=$save_libdir | 2678 » [lt_cv_shlibpath_overrides_runpath=yes])]) |
| 2679 LDFLAGS=$save_LDFLAGS |
| 2680 libdir=$save_libdir |
| 2681 ]) |
| 2682 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
2487 | 2683 |
2488 # This implies no fast_install, which is unacceptable. | 2684 # This implies no fast_install, which is unacceptable. |
2489 # Some rework will be needed to allow for fast_install | 2685 # Some rework will be needed to allow for fast_install |
2490 # before this can be enabled. | 2686 # before this can be enabled. |
2491 hardcode_into_libs=yes | 2687 hardcode_into_libs=yes |
2492 | 2688 |
2493 # Append ld.so.conf contents to the search path | 2689 # Append ld.so.conf contents to the search path |
2494 if test -f /etc/ld.so.conf; then | 2690 if test -f /etc/ld.so.conf; then |
2495 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null"
, \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf
| $SED -e 's/#.*//;/^[» ]*hwcap[» ]/d;s/[:,» ]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;/^$/d' | tr '\n' ' '` | 2691 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' ' '` |
2496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 2692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2497 fi | 2693 fi |
2498 | 2694 |
2499 # We used to test for /lib/ld.so.1 and disable shared libraries on | 2695 # We used to test for /lib/ld.so.1 and disable shared libraries on |
2500 # powerpc, because MkLinux only supported shared libraries with the | 2696 # powerpc, because MkLinux only supported shared libraries with the |
2501 # GNU dynamic linker. Since this was broken with cross compilers, | 2697 # GNU dynamic linker. Since this was broken with cross compilers, |
2502 # most powerpc-linux boxes support dynamic linking these days and | 2698 # most powerpc-linux boxes support dynamic linking these days and |
2503 # people can always --disable-shared, the test was removed, and we | 2699 # people can always --disable-shared, the test was removed, and we |
2504 # assume the GNU/Linux dynamic linker is in use. | 2700 # assume the GNU/Linux dynamic linker is in use. |
2505 dynamic_linker='GNU/Linux ld.so' | 2701 dynamic_linker='GNU/Linux ld.so' |
2506 ;; | 2702 ;; |
2507 | 2703 |
| 2704 netbsdelf*-gnu) |
| 2705 version_type=linux |
| 2706 need_lib_prefix=no |
| 2707 need_version=no |
| 2708 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' |
| 2710 shlibpath_var=LD_LIBRARY_PATH |
| 2711 shlibpath_overrides_runpath=no |
| 2712 hardcode_into_libs=yes |
| 2713 dynamic_linker='NetBSD ld.elf_so' |
| 2714 ;; |
| 2715 |
2508 netbsd*) | 2716 netbsd*) |
2509 version_type=sunos | 2717 version_type=sunos |
2510 need_lib_prefix=no | 2718 need_lib_prefix=no |
2511 need_version=no | 2719 need_version=no |
2512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 2720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
2513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' | 2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' |
2514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 2722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2515 dynamic_linker='NetBSD (a.out) ld.so' | 2723 dynamic_linker='NetBSD (a.out) ld.so' |
2516 else | 2724 else |
2517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' | 2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' |
2518 soname_spec='${libname}${release}${shared_ext}$major' | 2726 soname_spec='${libname}${release}${shared_ext}$major' |
2519 dynamic_linker='NetBSD ld.elf_so' | 2727 dynamic_linker='NetBSD ld.elf_so' |
2520 fi | 2728 fi |
2521 shlibpath_var=LD_LIBRARY_PATH | 2729 shlibpath_var=LD_LIBRARY_PATH |
2522 shlibpath_overrides_runpath=yes | 2730 shlibpath_overrides_runpath=yes |
2523 hardcode_into_libs=yes | 2731 hardcode_into_libs=yes |
2524 ;; | 2732 ;; |
2525 | 2733 |
2526 newsos6) | 2734 newsos6) |
2527 version_type=linux | 2735 version_type=linux # correct to gnu/linux during the next big refactor |
2528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2529 shlibpath_var=LD_LIBRARY_PATH | 2737 shlibpath_var=LD_LIBRARY_PATH |
2530 shlibpath_overrides_runpath=yes | 2738 shlibpath_overrides_runpath=yes |
2531 ;; | 2739 ;; |
2532 | 2740 |
2533 *nto* | *qnx*) | 2741 *nto* | *qnx*) |
2534 version_type=qnx | 2742 version_type=qnx |
2535 need_lib_prefix=no | 2743 need_lib_prefix=no |
2536 need_version=no | 2744 need_version=no |
2537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2586 shlibpath_var=LD_LIBRARY_PATH | 2794 shlibpath_var=LD_LIBRARY_PATH |
2587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" | 2795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" |
2588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 2796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2589 ;; | 2797 ;; |
2590 | 2798 |
2591 rdos*) | 2799 rdos*) |
2592 dynamic_linker=no | 2800 dynamic_linker=no |
2593 ;; | 2801 ;; |
2594 | 2802 |
2595 solaris*) | 2803 solaris*) |
2596 version_type=linux | 2804 version_type=linux # correct to gnu/linux during the next big refactor |
2597 need_lib_prefix=no | 2805 need_lib_prefix=no |
2598 need_version=no | 2806 need_version=no |
2599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2600 soname_spec='${libname}${release}${shared_ext}$major' | 2808 soname_spec='${libname}${release}${shared_ext}$major' |
2601 shlibpath_var=LD_LIBRARY_PATH | 2809 shlibpath_var=LD_LIBRARY_PATH |
2602 shlibpath_overrides_runpath=yes | 2810 shlibpath_overrides_runpath=yes |
2603 hardcode_into_libs=yes | 2811 hardcode_into_libs=yes |
2604 # ldd complains unless libraries are executable | 2812 # ldd complains unless libraries are executable |
2605 postinstall_cmds='chmod +x $lib' | 2813 postinstall_cmds='chmod +x $lib' |
2606 ;; | 2814 ;; |
2607 | 2815 |
2608 sunos4*) | 2816 sunos4*) |
2609 version_type=sunos | 2817 version_type=sunos |
2610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' | 2818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
2611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 2819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
2612 shlibpath_var=LD_LIBRARY_PATH | 2820 shlibpath_var=LD_LIBRARY_PATH |
2613 shlibpath_overrides_runpath=yes | 2821 shlibpath_overrides_runpath=yes |
2614 if test "$with_gnu_ld" = yes; then | 2822 if test "$with_gnu_ld" = yes; then |
2615 need_lib_prefix=no | 2823 need_lib_prefix=no |
2616 fi | 2824 fi |
2617 need_version=yes | 2825 need_version=yes |
2618 ;; | 2826 ;; |
2619 | 2827 |
2620 sysv4 | sysv4.3*) | 2828 sysv4 | sysv4.3*) |
2621 version_type=linux | 2829 version_type=linux # correct to gnu/linux during the next big refactor |
2622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2623 soname_spec='${libname}${release}${shared_ext}$major' | 2831 soname_spec='${libname}${release}${shared_ext}$major' |
2624 shlibpath_var=LD_LIBRARY_PATH | 2832 shlibpath_var=LD_LIBRARY_PATH |
2625 case $host_vendor in | 2833 case $host_vendor in |
2626 sni) | 2834 sni) |
2627 shlibpath_overrides_runpath=no | 2835 shlibpath_overrides_runpath=no |
2628 need_lib_prefix=no | 2836 need_lib_prefix=no |
2629 runpath_var=LD_RUN_PATH | 2837 runpath_var=LD_RUN_PATH |
2630 ;; | 2838 ;; |
2631 siemens) | 2839 siemens) |
2632 need_lib_prefix=no | 2840 need_lib_prefix=no |
2633 ;; | 2841 ;; |
2634 motorola) | 2842 motorola) |
2635 need_lib_prefix=no | 2843 need_lib_prefix=no |
2636 need_version=no | 2844 need_version=no |
2637 shlibpath_overrides_runpath=no | 2845 shlibpath_overrides_runpath=no |
2638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 2846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
2639 ;; | 2847 ;; |
2640 esac | 2848 esac |
2641 ;; | 2849 ;; |
2642 | 2850 |
2643 sysv4*MP*) | 2851 sysv4*MP*) |
2644 if test -d /usr/nec ;then | 2852 if test -d /usr/nec ;then |
2645 version_type=linux | 2853 version_type=linux # correct to gnu/linux during the next big refactor |
2646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' | 2854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' |
2647 soname_spec='$libname${shared_ext}.$major' | 2855 soname_spec='$libname${shared_ext}.$major' |
2648 shlibpath_var=LD_LIBRARY_PATH | 2856 shlibpath_var=LD_LIBRARY_PATH |
2649 fi | 2857 fi |
2650 ;; | 2858 ;; |
2651 | 2859 |
2652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 2860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2653 version_type=freebsd-elf | 2861 version_type=freebsd-elf |
2654 need_lib_prefix=no | 2862 need_lib_prefix=no |
2655 need_version=no | 2863 need_version=no |
(...skipping 10 matching lines...) Expand all Loading... |
2666 sco3.2v5*) | 2874 sco3.2v5*) |
2667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 2875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
2668 ;; | 2876 ;; |
2669 esac | 2877 esac |
2670 fi | 2878 fi |
2671 sys_lib_dlsearch_path_spec='/usr/lib' | 2879 sys_lib_dlsearch_path_spec='/usr/lib' |
2672 ;; | 2880 ;; |
2673 | 2881 |
2674 tpf*) | 2882 tpf*) |
2675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | 2883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
2676 version_type=linux | 2884 version_type=linux # correct to gnu/linux during the next big refactor |
2677 need_lib_prefix=no | 2885 need_lib_prefix=no |
2678 need_version=no | 2886 need_version=no |
2679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2680 shlibpath_var=LD_LIBRARY_PATH | 2888 shlibpath_var=LD_LIBRARY_PATH |
2681 shlibpath_overrides_runpath=no | 2889 shlibpath_overrides_runpath=no |
2682 hardcode_into_libs=yes | 2890 hardcode_into_libs=yes |
2683 ;; | 2891 ;; |
2684 | 2892 |
2685 uts4*) | 2893 uts4*) |
2686 version_type=linux | 2894 version_type=linux # correct to gnu/linux during the next big refactor |
2687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' | 2895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
2688 soname_spec='${libname}${release}${shared_ext}$major' | 2896 soname_spec='${libname}${release}${shared_ext}$major' |
2689 shlibpath_var=LD_LIBRARY_PATH | 2897 shlibpath_var=LD_LIBRARY_PATH |
2690 ;; | 2898 ;; |
2691 | 2899 |
2692 *) | 2900 *) |
2693 dynamic_linker=no | 2901 dynamic_linker=no |
2694 ;; | 2902 ;; |
2695 esac | 2903 esac |
2696 AC_MSG_RESULT([$dynamic_linker]) | 2904 AC_MSG_RESULT([$dynamic_linker]) |
(...skipping 21 matching lines...) Expand all Loading... |
2718 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | 2926 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
2719 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | 2927 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
2720 _LT_DECL([], [shlibpath_overrides_runpath], [0], | 2928 _LT_DECL([], [shlibpath_overrides_runpath], [0], |
2721 [Is shlibpath searched before the hard-coded library search path?]) | 2929 [Is shlibpath searched before the hard-coded library search path?]) |
2722 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | 2930 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
2723 _LT_DECL([], [library_names_spec], [1], | 2931 _LT_DECL([], [library_names_spec], [1], |
2724 [[List of archive names. First name is the real one, the rest are links. | 2932 [[List of archive names. First name is the real one, the rest are links. |
2725 The last name is the one that the linker finds with -lNAME]]) | 2933 The last name is the one that the linker finds with -lNAME]]) |
2726 _LT_DECL([], [soname_spec], [1], | 2934 _LT_DECL([], [soname_spec], [1], |
2727 [[The coded name of the library, if different from the real name]]) | 2935 [[The coded name of the library, if different from the real name]]) |
| 2936 _LT_DECL([], [install_override_mode], [1], |
| 2937 [Permission mode override for installation of shared libraries]) |
2728 _LT_DECL([], [postinstall_cmds], [2], | 2938 _LT_DECL([], [postinstall_cmds], [2], |
2729 [Command to use after installation of a shared archive]) | 2939 [Command to use after installation of a shared archive]) |
2730 _LT_DECL([], [postuninstall_cmds], [2], | 2940 _LT_DECL([], [postuninstall_cmds], [2], |
2731 [Command to use after uninstallation of a shared archive]) | 2941 [Command to use after uninstallation of a shared archive]) |
2732 _LT_DECL([], [finish_cmds], [2], | 2942 _LT_DECL([], [finish_cmds], [2], |
2733 [Commands used to finish a libtool library installation in a directory]) | 2943 [Commands used to finish a libtool library installation in a directory]) |
2734 _LT_DECL([], [finish_eval], [1], | 2944 _LT_DECL([], [finish_eval], [1], |
2735 [[As "finish_cmds", except a single script fragment to be evaled but | 2945 [[As "finish_cmds", except a single script fragment to be evaled but |
2736 not shown]]) | 2946 not shown]]) |
2737 _LT_DECL([], [hardcode_into_libs], [0], | 2947 _LT_DECL([], [hardcode_into_libs], [0], |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2830 | 3040 |
2831 # LT_PATH_LD | 3041 # LT_PATH_LD |
2832 # ---------- | 3042 # ---------- |
2833 # find the pathname to the GNU or non-GNU linker | 3043 # find the pathname to the GNU or non-GNU linker |
2834 AC_DEFUN([LT_PATH_LD], | 3044 AC_DEFUN([LT_PATH_LD], |
2835 [AC_REQUIRE([AC_PROG_CC])dnl | 3045 [AC_REQUIRE([AC_PROG_CC])dnl |
2836 AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3046 AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2837 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 3047 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2838 m4_require([_LT_DECL_SED])dnl | 3048 m4_require([_LT_DECL_SED])dnl |
2839 m4_require([_LT_DECL_EGREP])dnl | 3049 m4_require([_LT_DECL_EGREP])dnl |
| 3050 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl |
2840 | 3051 |
2841 AC_ARG_WITH([gnu-ld], | 3052 AC_ARG_WITH([gnu-ld], |
2842 [AS_HELP_STRING([--with-gnu-ld], | 3053 [AS_HELP_STRING([--with-gnu-ld], |
2843 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 3054 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
2844 [test "$withval" = no || with_gnu_ld=yes], | 3055 [test "$withval" = no || with_gnu_ld=yes], |
2845 [with_gnu_ld=no])dnl | 3056 [with_gnu_ld=no])dnl |
2846 | 3057 |
2847 ac_prog=ld | 3058 ac_prog=ld |
2848 if test "$GCC" = yes; then | 3059 if test "$GCC" = yes; then |
2849 # Check if gcc -print-prog-name=ld gives a path. | 3060 # Check if gcc -print-prog-name=ld gives a path. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2951 [AC_CACHE_CHECK([for $LD option to reload object files], | 3162 [AC_CACHE_CHECK([for $LD option to reload object files], |
2952 lt_cv_ld_reload_flag, | 3163 lt_cv_ld_reload_flag, |
2953 [lt_cv_ld_reload_flag='-r']) | 3164 [lt_cv_ld_reload_flag='-r']) |
2954 reload_flag=$lt_cv_ld_reload_flag | 3165 reload_flag=$lt_cv_ld_reload_flag |
2955 case $reload_flag in | 3166 case $reload_flag in |
2956 "" | " "*) ;; | 3167 "" | " "*) ;; |
2957 *) reload_flag=" $reload_flag" ;; | 3168 *) reload_flag=" $reload_flag" ;; |
2958 esac | 3169 esac |
2959 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3170 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2960 case $host_os in | 3171 case $host_os in |
| 3172 cygwin* | mingw* | pw32* | cegcc*) |
| 3173 if test "$GCC" != yes; then |
| 3174 reload_cmds=false |
| 3175 fi |
| 3176 ;; |
2961 darwin*) | 3177 darwin*) |
2962 if test "$GCC" = yes; then | 3178 if test "$GCC" = yes; then |
2963 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 3179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
2964 else | 3180 else |
2965 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3181 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2966 fi | 3182 fi |
2967 ;; | 3183 ;; |
2968 esac | 3184 esac |
2969 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | 3185 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
2970 _LT_DECL([], [reload_cmds], [2])dnl | 3186 _LT_TAGDECL([], [reload_cmds], [2])dnl |
2971 ])# _LT_CMD_RELOAD | 3187 ])# _LT_CMD_RELOAD |
2972 | 3188 |
2973 | 3189 |
2974 # _LT_CHECK_MAGIC_METHOD | 3190 # _LT_CHECK_MAGIC_METHOD |
2975 # ---------------------- | 3191 # ---------------------- |
2976 # how to check for library dependencies | 3192 # how to check for library dependencies |
2977 # -- PORTME fill in with the dynamic library characteristics | 3193 # -- PORTME fill in with the dynamic library characteristics |
2978 m4_defun([_LT_CHECK_MAGIC_METHOD], | 3194 m4_defun([_LT_CHECK_MAGIC_METHOD], |
2979 [m4_require([_LT_DECL_EGREP]) | 3195 [m4_require([_LT_DECL_EGREP]) |
2980 m4_require([_LT_DECL_OBJDUMP]) | 3196 m4_require([_LT_DECL_OBJDUMP]) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3012 cygwin*) | 3228 cygwin*) |
3013 # func_win32_libid is a shell function defined in ltmain.sh | 3229 # func_win32_libid is a shell function defined in ltmain.sh |
3014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 3230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3015 lt_cv_file_magic_cmd='func_win32_libid' | 3231 lt_cv_file_magic_cmd='func_win32_libid' |
3016 ;; | 3232 ;; |
3017 | 3233 |
3018 mingw* | pw32*) | 3234 mingw* | pw32*) |
3019 # Base MSYS/MinGW do not provide the 'file' command needed by | 3235 # Base MSYS/MinGW do not provide the 'file' command needed by |
3020 # func_win32_libid shell function, so use a weaker test based on 'objdump', | 3236 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3021 # unless we find 'file', for example because we are cross-compiling. | 3237 # unless we find 'file', for example because we are cross-compiling. |
3022 if ( file / ) >/dev/null 2>&1; then | 3238 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 3239 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
3023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 3240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3024 lt_cv_file_magic_cmd='func_win32_libid' | 3241 lt_cv_file_magic_cmd='func_win32_libid' |
3025 else | 3242 else |
3026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture:
i386)?' | 3243 # Keep this pattern in sync with the one in func_win32_libid. |
| 3244 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture
: i386)?|pe-arm-wince|pe-x86-64)' |
3027 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3245 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3028 fi | 3246 fi |
3029 ;; | 3247 ;; |
3030 | 3248 |
3031 cegcc) | 3249 cegcc*) |
3032 # use the weaker test based on 'objdump'. See mingw*. | 3250 # use the weaker test based on 'objdump'. See mingw*. |
3033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect
ure: arm)?' | 3251 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect
ure: arm)?' |
3034 lt_cv_file_magic_cmd='$OBJDUMP -f' | 3252 lt_cv_file_magic_cmd='$OBJDUMP -f' |
3035 ;; | 3253 ;; |
3036 | 3254 |
3037 darwin* | rhapsody*) | 3255 darwin* | rhapsody*) |
3038 lt_cv_deplibs_check_method=pass_all | 3256 lt_cv_deplibs_check_method=pass_all |
3039 ;; | 3257 ;; |
3040 | 3258 |
3041 freebsd* | dragonfly*) | 3259 freebsd* | dragonfly*) |
3042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3043 case $host_cpu in | 3261 case $host_cpu in |
3044 i*86 ) | 3262 i*86 ) |
3045 # Not sure whether the presence of OpenBSD here was a mistake. | 3263 # Not sure whether the presence of OpenBSD here was a mistake. |
3046 # Let's accept both of them until this is cleared up. | 3264 # Let's accept both of them until this is cleared up. |
3047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]
]86 (compact )?demand paged shared library' | 3265 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]
]86 (compact )?demand paged shared library' |
3048 lt_cv_file_magic_cmd=/usr/bin/file | 3266 lt_cv_file_magic_cmd=/usr/bin/file |
3049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 3267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3050 ;; | 3268 ;; |
3051 esac | 3269 esac |
3052 else | 3270 else |
3053 lt_cv_deplibs_check_method=pass_all | 3271 lt_cv_deplibs_check_method=pass_all |
3054 fi | 3272 fi |
3055 ;; | 3273 ;; |
3056 | 3274 |
3057 gnu*) | 3275 haiku*) |
3058 lt_cv_deplibs_check_method=pass_all | 3276 lt_cv_deplibs_check_method=pass_all |
3059 ;; | 3277 ;; |
3060 | 3278 |
3061 hpux10.20* | hpux11*) | 3279 hpux10.20* | hpux11*) |
3062 lt_cv_file_magic_cmd=/usr/bin/file | 3280 lt_cv_file_magic_cmd=/usr/bin/file |
3063 case $host_cpu in | 3281 case $host_cpu in |
3064 ia64*) | 3282 ia64*) |
3065 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' | 3283 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[
0-9]]) shared object file - IA64' |
3066 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 3284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3067 ;; | 3285 ;; |
3068 hppa*64*) | 3286 hppa*64*) |
3069 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sh
ared object file - PA-RISC [0-9].[0-9]'] | 3287 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])
(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] |
3070 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 3288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3071 ;; | 3289 ;; |
3072 *) | 3290 *) |
3073 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
].[[0-9]]) shared library' | 3291 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]
]\.[[0-9]]) shared library' |
3074 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 3292 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3075 ;; | 3293 ;; |
3076 esac | 3294 esac |
3077 ;; | 3295 ;; |
3078 | 3296 |
3079 interix[[3-9]]*) | 3297 interix[[3-9]]*) |
3080 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 3298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3081 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | 3299 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
3082 ;; | 3300 ;; |
3083 | 3301 |
3084 irix5* | irix6* | nonstopux*) | 3302 irix5* | irix6* | nonstopux*) |
3085 case $LD in | 3303 case $LD in |
3086 *-32|*"-32 ") libmagic=32-bit;; | 3304 *-32|*"-32 ") libmagic=32-bit;; |
3087 *-n32|*"-n32 ") libmagic=N32;; | 3305 *-n32|*"-n32 ") libmagic=N32;; |
3088 *-64|*"-64 ") libmagic=64-bit;; | 3306 *-64|*"-64 ") libmagic=64-bit;; |
3089 *) libmagic=never-match;; | 3307 *) libmagic=never-match;; |
3090 esac | 3308 esac |
3091 lt_cv_deplibs_check_method=pass_all | 3309 lt_cv_deplibs_check_method=pass_all |
3092 ;; | 3310 ;; |
3093 | 3311 |
3094 # This must be Linux ELF. | 3312 # This must be glibc/ELF. |
3095 linux* | k*bsd*-gnu) | 3313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
3096 lt_cv_deplibs_check_method=pass_all | 3314 lt_cv_deplibs_check_method=pass_all |
3097 ;; | 3315 ;; |
3098 | 3316 |
3099 netbsd*) | 3317 netbsd* | netbsdelf*-gnu) |
3100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 3318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3101 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' | 3319 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]
]+|_pic\.a)$' |
3102 else | 3320 else |
3103 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | 3321 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3104 fi | 3322 fi |
3105 ;; | 3323 ;; |
3106 | 3324 |
3107 newos6*) | 3325 newos6*) |
3108 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' | 3326 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (execu
table|dynamic lib)' |
3109 lt_cv_file_magic_cmd=/usr/bin/file | 3327 lt_cv_file_magic_cmd=/usr/bin/file |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3163 lt_cv_deplibs_check_method=pass_all | 3381 lt_cv_deplibs_check_method=pass_all |
3164 ;; | 3382 ;; |
3165 esac | 3383 esac |
3166 ;; | 3384 ;; |
3167 | 3385 |
3168 tpf*) | 3386 tpf*) |
3169 lt_cv_deplibs_check_method=pass_all | 3387 lt_cv_deplibs_check_method=pass_all |
3170 ;; | 3388 ;; |
3171 esac | 3389 esac |
3172 ]) | 3390 ]) |
| 3391 |
| 3392 file_magic_glob= |
| 3393 want_nocaseglob=no |
| 3394 if test "$build" = "$host"; then |
| 3395 case $host_os in |
| 3396 mingw* | pw32*) |
| 3397 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 3398 want_nocaseglob=yes |
| 3399 else |
| 3400 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
| $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
| 3401 fi |
| 3402 ;; |
| 3403 esac |
| 3404 fi |
| 3405 |
3173 file_magic_cmd=$lt_cv_file_magic_cmd | 3406 file_magic_cmd=$lt_cv_file_magic_cmd |
3174 deplibs_check_method=$lt_cv_deplibs_check_method | 3407 deplibs_check_method=$lt_cv_deplibs_check_method |
3175 test -z "$deplibs_check_method" && deplibs_check_method=unknown | 3408 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3176 | 3409 |
3177 _LT_DECL([], [deplibs_check_method], [1], | 3410 _LT_DECL([], [deplibs_check_method], [1], |
3178 [Method to check whether dependent libraries are shared objects]) | 3411 [Method to check whether dependent libraries are shared objects]) |
3179 _LT_DECL([], [file_magic_cmd], [1], | 3412 _LT_DECL([], [file_magic_cmd], [1], |
3180 [Command to use when deplibs_check_method == "file_magic"]) | 3413 [Command to use when deplibs_check_method = "file_magic"]) |
| 3414 _LT_DECL([], [file_magic_glob], [1], |
| 3415 [How to find potential files when deplibs_check_method = "file_magic"]) |
| 3416 _LT_DECL([], [want_nocaseglob], [1], |
| 3417 [Find potential files using nocaseglob when deplibs_check_method = "file_mag
ic"]) |
3181 ])# _LT_CHECK_MAGIC_METHOD | 3418 ])# _LT_CHECK_MAGIC_METHOD |
3182 | 3419 |
3183 | 3420 |
3184 # LT_PATH_NM | 3421 # LT_PATH_NM |
3185 # ---------- | 3422 # ---------- |
3186 # find the pathname to a BSD- or MS-compatible name lister | 3423 # find the pathname to a BSD- or MS-compatible name lister |
3187 AC_DEFUN([LT_PATH_NM], | 3424 AC_DEFUN([LT_PATH_NM], |
3188 [AC_REQUIRE([AC_PROG_CC])dnl | 3425 [AC_REQUIRE([AC_PROG_CC])dnl |
3189 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | 3426 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
3190 [if test -n "$NM"; then | 3427 [if test -n "$NM"; then |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3227 fi | 3464 fi |
3228 done | 3465 done |
3229 IFS="$lt_save_ifs" | 3466 IFS="$lt_save_ifs" |
3230 done | 3467 done |
3231 : ${lt_cv_path_NM=no} | 3468 : ${lt_cv_path_NM=no} |
3232 fi]) | 3469 fi]) |
3233 if test "$lt_cv_path_NM" != "no"; then | 3470 if test "$lt_cv_path_NM" != "no"; then |
3234 NM="$lt_cv_path_NM" | 3471 NM="$lt_cv_path_NM" |
3235 else | 3472 else |
3236 # Didn't find any BSD compatible name lister, look for dumpbin. | 3473 # Didn't find any BSD compatible name lister, look for dumpbin. |
3237 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | 3474 if test -n "$DUMPBIN"; then : |
| 3475 # Let the user override the test. |
| 3476 else |
| 3477 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
| 3478 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 3479 *COFF*) |
| 3480 DUMPBIN="$DUMPBIN -symbols" |
| 3481 ;; |
| 3482 *) |
| 3483 DUMPBIN=: |
| 3484 ;; |
| 3485 esac |
| 3486 fi |
3238 AC_SUBST([DUMPBIN]) | 3487 AC_SUBST([DUMPBIN]) |
3239 if test "$DUMPBIN" != ":"; then | 3488 if test "$DUMPBIN" != ":"; then |
3240 NM="$DUMPBIN" | 3489 NM="$DUMPBIN" |
3241 fi | 3490 fi |
3242 fi | 3491 fi |
3243 test -z "$NM" && NM=nm | 3492 test -z "$NM" && NM=nm |
3244 AC_SUBST([NM]) | 3493 AC_SUBST([NM]) |
3245 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | 3494 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3246 | 3495 |
3247 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | 3496 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3248 [lt_cv_nm_interface="BSD nm" | 3497 [lt_cv_nm_interface="BSD nm" |
3249 echo "int some_variable = 0;" > conftest.$ac_ext | 3498 echo "int some_variable = 0;" > conftest.$ac_ext |
3250 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | 3499 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
3251 (eval "$ac_compile" 2>conftest.err) | 3500 (eval "$ac_compile" 2>conftest.err) |
3252 cat conftest.err >&AS_MESSAGE_LOG_FD | 3501 cat conftest.err >&AS_MESSAGE_LOG_FD |
3253 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSA
GE_LOG_FD) | 3502 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE
_LOG_FD) |
3254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 3503 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3255 cat conftest.err >&AS_MESSAGE_LOG_FD | 3504 cat conftest.err >&AS_MESSAGE_LOG_FD |
3256 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | 3505 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
3257 cat conftest.out >&AS_MESSAGE_LOG_FD | 3506 cat conftest.out >&AS_MESSAGE_LOG_FD |
3258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 3507 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3259 lt_cv_nm_interface="MS dumpbin" | 3508 lt_cv_nm_interface="MS dumpbin" |
3260 fi | 3509 fi |
3261 rm -f conftest*]) | 3510 rm -f conftest*]) |
3262 ])# LT_PATH_NM | 3511 ])# LT_PATH_NM |
3263 | 3512 |
3264 # Old names: | 3513 # Old names: |
3265 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | 3514 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
3266 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | 3515 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
3267 dnl aclocal-1.4 backwards compatibility: | 3516 dnl aclocal-1.4 backwards compatibility: |
3268 dnl AC_DEFUN([AM_PROG_NM], []) | 3517 dnl AC_DEFUN([AM_PROG_NM], []) |
3269 dnl AC_DEFUN([AC_PROG_NM], []) | 3518 dnl AC_DEFUN([AC_PROG_NM], []) |
3270 | 3519 |
| 3520 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3521 # -------------------------------- |
| 3522 # how to determine the name of the shared library |
| 3523 # associated with a specific link library. |
| 3524 # -- PORTME fill in with the dynamic library characteristics |
| 3525 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
| 3526 [m4_require([_LT_DECL_EGREP]) |
| 3527 m4_require([_LT_DECL_OBJDUMP]) |
| 3528 m4_require([_LT_DECL_DLLTOOL]) |
| 3529 AC_CACHE_CHECK([how to associate runtime and link libraries], |
| 3530 lt_cv_sharedlib_from_linklib_cmd, |
| 3531 [lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 3532 |
| 3533 case $host_os in |
| 3534 cygwin* | mingw* | pw32* | cegcc*) |
| 3535 # two different shell functions defined in ltmain.sh |
| 3536 # decide which to use based on capabilities of $DLLTOOL |
| 3537 case `$DLLTOOL --help 2>&1` in |
| 3538 *--identify-strict*) |
| 3539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 3540 ;; |
| 3541 *) |
| 3542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 3543 ;; |
| 3544 esac |
| 3545 ;; |
| 3546 *) |
| 3547 # fallback: assume linklib IS sharedlib |
| 3548 lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 3549 ;; |
| 3550 esac |
| 3551 ]) |
| 3552 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 3553 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 3554 |
| 3555 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
| 3556 [Command to associate shared and link libraries]) |
| 3557 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
| 3558 |
| 3559 |
| 3560 # _LT_PATH_MANIFEST_TOOL |
| 3561 # ---------------------- |
| 3562 # locate the manifest tool |
| 3563 m4_defun([_LT_PATH_MANIFEST_TOOL], |
| 3564 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
| 3565 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 3566 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool
], |
| 3567 [lt_cv_path_mainfest_tool=no |
| 3568 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
| 3569 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 3570 cat conftest.err >&AS_MESSAGE_LOG_FD |
| 3571 if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 3572 lt_cv_path_mainfest_tool=yes |
| 3573 fi |
| 3574 rm -f conftest*]) |
| 3575 if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 3576 MANIFEST_TOOL=: |
| 3577 fi |
| 3578 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
| 3579 ])# _LT_PATH_MANIFEST_TOOL |
| 3580 |
3271 | 3581 |
3272 # LT_LIB_M | 3582 # LT_LIB_M |
3273 # -------- | 3583 # -------- |
3274 # check for math library | 3584 # check for math library |
3275 AC_DEFUN([LT_LIB_M], | 3585 AC_DEFUN([LT_LIB_M], |
3276 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3586 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3277 LIBM= | 3587 LIBM= |
3278 case $host in | 3588 case $host in |
3279 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | 3589 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
3280 # These system don't have libm, or don't need it | 3590 # These system don't have libm, or don't need it |
3281 ;; | 3591 ;; |
3282 *-ncr-sysv4.3*) | 3592 *-ncr-sysv4.3*) |
3283 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | 3593 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3284 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | 3594 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3285 ;; | 3595 ;; |
3286 *) | 3596 *) |
3287 AC_CHECK_LIB(m, cos, LIBM="-lm") | 3597 AC_CHECK_LIB(m, cos, LIBM="-lm") |
3288 ;; | 3598 ;; |
3289 esac | 3599 esac |
3290 AC_SUBST([LIBM]) | 3600 AC_SUBST([LIBM]) |
3291 ])# LT_LIB_M | 3601 ])# LT_LIB_M |
3292 | 3602 |
3293 # Old name: | 3603 # Old name: |
3294 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | 3604 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
3295 dnl aclocal-1.4 backwards compatibility: | 3605 dnl aclocal-1.4 backwards compatibility: |
3296 dnl AC_DEFUN([AC_CHECK_LIBM], []) | 3606 dnl AC_DEFUN([AC_CHECK_LIBM], []) |
3297 | 3607 |
3298 | 3608 |
3299 # _LT_COMPILER_NO_RTTI([TAGNAME]) | 3609 # _LT_COMPILER_NO_RTTI([TAGNAME]) |
3300 # ------------------------------- | 3610 # ------------------------------- |
3301 m4_defun([_LT_COMPILER_NO_RTTI], | 3611 m4_defun([_LT_COMPILER_NO_RTTI], |
3302 [m4_require([_LT_TAG_COMPILER])dnl | 3612 [m4_require([_LT_TAG_COMPILER])dnl |
3303 | 3613 |
3304 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 3614 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3305 | 3615 |
3306 if test "$GCC" = yes; then | 3616 if test "$GCC" = yes; then |
3307 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 3617 case $cc_basename in |
| 3618 nvcc*) |
| 3619 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin'
;; |
| 3620 *) |
| 3621 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; |
| 3622 esac |
3308 | 3623 |
3309 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | 3624 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3310 lt_cv_prog_compiler_rtti_exceptions, | 3625 lt_cv_prog_compiler_rtti_exceptions, |
3311 [-fno-rtti -fno-exceptions], [], | 3626 [-fno-rtti -fno-exceptions], [], |
3312 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compi
ler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | 3627 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compi
ler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
3313 fi | 3628 fi |
3314 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | 3629 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
3315 [Compiler flag to turn off builtin functions]) | 3630 [Compiler flag to turn off builtin functions]) |
3316 ])# _LT_COMPILER_NO_RTTI | 3631 ])# _LT_COMPILER_NO_RTTI |
3317 | 3632 |
3318 | 3633 |
3319 # _LT_CMD_GLOBAL_SYMBOLS | 3634 # _LT_CMD_GLOBAL_SYMBOLS |
3320 # ---------------------- | 3635 # ---------------------- |
3321 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | 3636 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
3322 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3637 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3323 AC_REQUIRE([AC_PROG_CC])dnl | 3638 AC_REQUIRE([AC_PROG_CC])dnl |
| 3639 AC_REQUIRE([AC_PROG_AWK])dnl |
3324 AC_REQUIRE([LT_PATH_NM])dnl | 3640 AC_REQUIRE([LT_PATH_NM])dnl |
3325 AC_REQUIRE([LT_PATH_LD])dnl | 3641 AC_REQUIRE([LT_PATH_LD])dnl |
3326 m4_require([_LT_DECL_SED])dnl | 3642 m4_require([_LT_DECL_SED])dnl |
3327 m4_require([_LT_DECL_EGREP])dnl | 3643 m4_require([_LT_DECL_EGREP])dnl |
3328 m4_require([_LT_TAG_COMPILER])dnl | 3644 m4_require([_LT_TAG_COMPILER])dnl |
3329 | 3645 |
3330 # Check for command to grab the raw symbol name followed by C symbol from nm. | 3646 # Check for command to grab the raw symbol name followed by C symbol from nm. |
3331 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | 3647 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
3332 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | 3648 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
3333 [ | 3649 [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3381 *GNU* | *'with BFD'*) | 3697 *GNU* | *'with BFD'*) |
3382 symcode='[[ABCDGIRSTW]]' ;; | 3698 symcode='[[ABCDGIRSTW]]' ;; |
3383 esac | 3699 esac |
3384 | 3700 |
3385 # Transform an extracted symbol line into a proper C declaration. | 3701 # Transform an extracted symbol line into a proper C declaration. |
3386 # Some systems (esp. on ia64) link data and code symbols differently, | 3702 # Some systems (esp. on ia64) link data and code symbols differently, |
3387 # so use this general approach. | 3703 # so use this general approach. |
3388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p'
-e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 3704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p'
-e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
3389 | 3705 |
3390 # Transform an extracted symbol line into symbol name and symbol address | 3706 # Transform an extracted symbol line into symbol name and symbol address |
3391 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"
\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (vo
id *) \&\2},/p'" | 3707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/
{\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\"
, (void *) \&\2},/p'" |
3392 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'" | 3708 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'" |
3393 | 3709 |
3394 # Handle CRLF in mingw tool chain | 3710 # Handle CRLF in mingw tool chain |
3395 opt_cr= | 3711 opt_cr= |
3396 case $build_os in | 3712 case $build_os in |
3397 mingw*) | 3713 mingw*) |
3398 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 3714 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
3399 ;; | 3715 ;; |
3400 esac | 3716 esac |
3401 | 3717 |
3402 # Try without a prefix underscore, then with it. | 3718 # Try without a prefix underscore, then with it. |
3403 for ac_symprfx in "" "_"; do | 3719 for ac_symprfx in "" "_"; do |
3404 | 3720 |
3405 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 3721 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
3406 symxfrm="\\1 $ac_symprfx\\2 \\2" | 3722 symxfrm="\\1 $ac_symprfx\\2 \\2" |
3407 | 3723 |
3408 # Write the raw and C identifiers. | 3724 # Write the raw and C identifiers. |
3409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 3725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
3410 # Fake it for dumpbin and say T for any non-static function | 3726 # Fake it for dumpbin and say T for any non-static function |
3411 # and D for any global variable. | 3727 # and D for any global variable. |
3412 # Also find C++ and __fastcall symbols from MSVC++, | 3728 # Also find C++ and __fastcall symbols from MSVC++, |
3413 # which start with @ or ?. | 3729 # which start with @ or ?. |
3414 lt_cv_sys_global_symbol_pipe="$AWK ['"\ | 3730 lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
3415 " {last_section=section; section=\$ 3};"\ | 3731 " {last_section=section; section=\$ 3};"\ |
| 3732 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
3416 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 3733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
3417 " \$ 0!~/External *\|/{next};"\ | 3734 " \$ 0!~/External *\|/{next};"\ |
3418 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 3735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
3419 " {if(hide[section]) next};"\ | 3736 " {if(hide[section]) next};"\ |
3420 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | 3737 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
3421 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | 3738 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
3422 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | 3739 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
3423 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 3740 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
3424 " ' prfx=^$ac_symprfx]" | 3741 " ' prfx=^$ac_symprfx]" |
3425 else | 3742 else |
3426 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)
[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 3743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)
[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
3427 fi | 3744 fi |
| 3745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto
/d'" |
3428 | 3746 |
3429 # Check to see that the pipe works correctly. | 3747 # Check to see that the pipe works correctly. |
3430 pipe_works=no | 3748 pipe_works=no |
3431 | 3749 |
3432 rm -f conftest* | 3750 rm -f conftest* |
3433 cat > conftest.$ac_ext <<_LT_EOF | 3751 cat > conftest.$ac_ext <<_LT_EOF |
3434 #ifdef __cplusplus | 3752 #ifdef __cplusplus |
3435 extern "C" { | 3753 extern "C" { |
3436 #endif | 3754 #endif |
3437 char nm_test_var; | 3755 char nm_test_var; |
3438 void nm_test_func(void); | 3756 void nm_test_func(void); |
3439 void nm_test_func(void){} | 3757 void nm_test_func(void){} |
3440 #ifdef __cplusplus | 3758 #ifdef __cplusplus |
3441 } | 3759 } |
3442 #endif | 3760 #endif |
3443 int main(){nm_test_var='a';nm_test_func();return(0);} | 3761 int main(){nm_test_var='a';nm_test_func();return(0);} |
3444 _LT_EOF | 3762 _LT_EOF |
3445 | 3763 |
3446 if AC_TRY_EVAL(ac_compile); then | 3764 if AC_TRY_EVAL(ac_compile); then |
3447 # Now try to grab the symbols. | 3765 # Now try to grab the symbols. |
3448 nlist=conftest.nm | 3766 nlist=conftest.nm |
3449 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $n
list) && test -s "$nlist"; then | 3767 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \>
$nlist) && test -s "$nlist"; then |
3450 # Try sorting and uniquifying the output. | 3768 # Try sorting and uniquifying the output. |
3451 if sort "$nlist" | uniq > "$nlist"T; then | 3769 if sort "$nlist" | uniq > "$nlist"T; then |
3452 mv -f "$nlist"T "$nlist" | 3770 mv -f "$nlist"T "$nlist" |
3453 else | 3771 else |
3454 rm -f "$nlist"T | 3772 rm -f "$nlist"T |
3455 fi | 3773 fi |
3456 | 3774 |
3457 # Make sure that we snagged all the symbols we need. | 3775 # Make sure that we snagged all the symbols we need. |
3458 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 3776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
3459 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 3777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
3460 cat <<_LT_EOF > conftest.$ac_ext | 3778 cat <<_LT_EOF > conftest.$ac_ext |
| 3779 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. *
/ |
| 3780 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 3781 /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 3782 relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 3783 # define LT@&t@_DLSYM_CONST |
| 3784 #elif defined(__osf__) |
| 3785 /* This system does not cope well with relocations in const data. */ |
| 3786 # define LT@&t@_DLSYM_CONST |
| 3787 #else |
| 3788 # define LT@&t@_DLSYM_CONST const |
| 3789 #endif |
| 3790 |
3461 #ifdef __cplusplus | 3791 #ifdef __cplusplus |
3462 extern "C" { | 3792 extern "C" { |
3463 #endif | 3793 #endif |
3464 | 3794 |
3465 _LT_EOF | 3795 _LT_EOF |
3466 # Now generate the symbol file. | 3796 # Now generate the symbol file. |
3467 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >
> conftest.$ac_ext' | 3797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >
> conftest.$ac_ext' |
3468 | 3798 |
3469 cat <<_LT_EOF >> conftest.$ac_ext | 3799 cat <<_LT_EOF >> conftest.$ac_ext |
3470 | 3800 |
3471 /* The mapping between symbol names and symbols. */ | 3801 /* The mapping between symbol names and symbols. */ |
3472 const struct { | 3802 LT@&t@_DLSYM_CONST struct { |
3473 const char *name; | 3803 const char *name; |
3474 void *address; | 3804 void *address; |
3475 } | 3805 } |
3476 lt__PROGRAM__LTX_preloaded_symbols[[]] = | 3806 lt__PROGRAM__LTX_preloaded_symbols[[]] = |
3477 { | 3807 { |
3478 { "@PROGRAM@", (void *) 0 }, | 3808 { "@PROGRAM@", (void *) 0 }, |
3479 _LT_EOF | 3809 _LT_EOF |
3480 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/"
< "$nlist" | $GREP -v main >> conftest.$ac_ext | 3810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/"
< "$nlist" | $GREP -v main >> conftest.$ac_ext |
3481 cat <<\_LT_EOF >> conftest.$ac_ext | 3811 cat <<\_LT_EOF >> conftest.$ac_ext |
3482 {0, (void *) 0} | 3812 {0, (void *) 0} |
3483 }; | 3813 }; |
3484 | 3814 |
3485 /* This works around a problem in FreeBSD linker */ | 3815 /* This works around a problem in FreeBSD linker */ |
3486 #ifdef FREEBSD_WORKAROUND | 3816 #ifdef FREEBSD_WORKAROUND |
3487 static const void *lt_preloaded_setup() { | 3817 static const void *lt_preloaded_setup() { |
3488 return lt__PROGRAM__LTX_preloaded_symbols; | 3818 return lt__PROGRAM__LTX_preloaded_symbols; |
3489 } | 3819 } |
3490 #endif | 3820 #endif |
3491 | 3821 |
3492 #ifdef __cplusplus | 3822 #ifdef __cplusplus |
3493 } | 3823 } |
3494 #endif | 3824 #endif |
3495 _LT_EOF | 3825 _LT_EOF |
3496 # Now try linking the two files. | 3826 # Now try linking the two files. |
3497 mv conftest.$ac_objext conftstm.$ac_objext | 3827 mv conftest.$ac_objext conftstm.$ac_objext |
3498 » lt_save_LIBS="$LIBS" | 3828 » lt_globsym_save_LIBS=$LIBS |
3499 » lt_save_CFLAGS="$CFLAGS" | 3829 » lt_globsym_save_CFLAGS=$CFLAGS |
3500 LIBS="conftstm.$ac_objext" | 3830 LIBS="conftstm.$ac_objext" |
3501 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | 3831 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
3502 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | 3832 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
3503 pipe_works=yes | 3833 pipe_works=yes |
3504 fi | 3834 fi |
3505 » LIBS="$lt_save_LIBS" | 3835 » LIBS=$lt_globsym_save_LIBS |
3506 » CFLAGS="$lt_save_CFLAGS" | 3836 » CFLAGS=$lt_globsym_save_CFLAGS |
3507 else | 3837 else |
3508 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | 3838 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
3509 fi | 3839 fi |
3510 else | 3840 else |
3511 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | 3841 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
3512 fi | 3842 fi |
3513 else | 3843 else |
3514 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | 3844 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
3515 fi | 3845 fi |
3516 else | 3846 else |
(...skipping 12 matching lines...) Expand all Loading... |
3529 ]) | 3859 ]) |
3530 if test -z "$lt_cv_sys_global_symbol_pipe"; then | 3860 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
3531 lt_cv_sys_global_symbol_to_cdecl= | 3861 lt_cv_sys_global_symbol_to_cdecl= |
3532 fi | 3862 fi |
3533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n | 3863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n |
3534 AC_MSG_RESULT(failed) | 3864 AC_MSG_RESULT(failed) |
3535 else | 3865 else |
3536 AC_MSG_RESULT(ok) | 3866 AC_MSG_RESULT(ok) |
3537 fi | 3867 fi |
3538 | 3868 |
| 3869 # Response file support. |
| 3870 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3871 nm_file_list_spec='@' |
| 3872 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
| 3873 nm_file_list_spec='@' |
| 3874 fi |
| 3875 |
3539 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | 3876 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
3540 [Take the output of nm and produce a listing of raw symbols and C names]) | 3877 [Take the output of nm and produce a listing of raw symbols and C names]) |
3541 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | 3878 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
3542 [Transform the output of nm in a proper C declaration]) | 3879 [Transform the output of nm in a proper C declaration]) |
3543 _LT_DECL([global_symbol_to_c_name_address], | 3880 _LT_DECL([global_symbol_to_c_name_address], |
3544 [lt_cv_sys_global_symbol_to_c_name_address], [1], | 3881 [lt_cv_sys_global_symbol_to_c_name_address], [1], |
3545 [Transform the output of nm in a C name address pair]) | 3882 [Transform the output of nm in a C name address pair]) |
3546 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | 3883 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
3547 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | 3884 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
3548 [Transform the output of nm in a C name address pair when lib prefix is need
ed]) | 3885 [Transform the output of nm in a C name address pair when lib prefix is need
ed]) |
| 3886 _LT_DECL([], [nm_file_list_spec], [1], |
| 3887 [Specify filename containing input files for $NM]) |
3549 ]) # _LT_CMD_GLOBAL_SYMBOLS | 3888 ]) # _LT_CMD_GLOBAL_SYMBOLS |
3550 | 3889 |
3551 | 3890 |
3552 # _LT_COMPILER_PIC([TAGNAME]) | 3891 # _LT_COMPILER_PIC([TAGNAME]) |
3553 # --------------------------- | 3892 # --------------------------- |
3554 m4_defun([_LT_COMPILER_PIC], | 3893 m4_defun([_LT_COMPILER_PIC], |
3555 [m4_require([_LT_TAG_COMPILER])dnl | 3894 [m4_require([_LT_TAG_COMPILER])dnl |
3556 _LT_TAGVAR(lt_prog_compiler_wl, $1)= | 3895 _LT_TAGVAR(lt_prog_compiler_wl, $1)= |
3557 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 3896 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3558 _LT_TAGVAR(lt_prog_compiler_static, $1)= | 3897 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
3559 | 3898 |
3560 AC_MSG_CHECKING([for $compiler option to produce PIC]) | |
3561 m4_if([$1], [CXX], [ | 3899 m4_if([$1], [CXX], [ |
3562 # C++ specific cases for pic, static, wl, etc. | 3900 # C++ specific cases for pic, static, wl, etc. |
3563 if test "$GXX" = yes; then | 3901 if test "$GXX" = yes; then |
3564 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 3902 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3565 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 3903 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3566 | 3904 |
3567 case $host_os in | 3905 case $host_os in |
3568 aix*) | 3906 aix*) |
3569 # All AIX code is PIC. | 3907 # All AIX code is PIC. |
3570 if test "$host_cpu" = ia64; then | 3908 if test "$host_cpu" = ia64; then |
(...skipping 30 matching lines...) Expand all Loading... |
3601 ;; | 3939 ;; |
3602 darwin* | rhapsody*) | 3940 darwin* | rhapsody*) |
3603 # PIC is the default on this platform | 3941 # PIC is the default on this platform |
3604 # Common symbols not allowed in MH_DYLIB files | 3942 # Common symbols not allowed in MH_DYLIB files |
3605 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 3943 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3606 ;; | 3944 ;; |
3607 *djgpp*) | 3945 *djgpp*) |
3608 # DJGPP does not support shared libraries at all | 3946 # DJGPP does not support shared libraries at all |
3609 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 3947 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3610 ;; | 3948 ;; |
| 3949 haiku*) |
| 3950 # PIC is the default for Haiku. |
| 3951 # The "-static" flag exists, but is broken. |
| 3952 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 3953 ;; |
3611 interix[[3-9]]*) | 3954 interix[[3-9]]*) |
3612 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 3955 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
3613 # Instead, we relocate shared libraries at runtime. | 3956 # Instead, we relocate shared libraries at runtime. |
3614 ;; | 3957 ;; |
3615 sysv4*MP*) | 3958 sysv4*MP*) |
3616 if test -d /usr/nec; then | 3959 if test -d /usr/nec; then |
3617 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 3960 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3618 fi | 3961 fi |
3619 ;; | 3962 ;; |
3620 hpux*) | 3963 hpux*) |
(...skipping 29 matching lines...) Expand all Loading... |
3650 fi | 3993 fi |
3651 ;; | 3994 ;; |
3652 chorus*) | 3995 chorus*) |
3653 case $cc_basename in | 3996 case $cc_basename in |
3654 cxch68*) | 3997 cxch68*) |
3655 # Green Hills C++ Compiler | 3998 # Green Hills C++ Compiler |
3656 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u
__main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a
$MVME_DIR/lib/classix/libcx.s.a" | 3999 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u
__main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a
$MVME_DIR/lib/classix/libcx.s.a" |
3657 ;; | 4000 ;; |
3658 esac | 4001 esac |
3659 ;; | 4002 ;; |
| 4003 mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 4004 # This hack is so that the source file can tell whether it is being |
| 4005 # built for inclusion in a dll (and should export symbols for example). |
| 4006 m4_if([$1], [GCJ], [], |
| 4007 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 4008 ;; |
3660 dgux*) | 4009 dgux*) |
3661 case $cc_basename in | 4010 case $cc_basename in |
3662 ec++*) | 4011 ec++*) |
3663 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3664 ;; | 4013 ;; |
3665 ghcx*) | 4014 ghcx*) |
3666 # Green Hills C++ Compiler | 4015 # Green Hills C++ Compiler |
3667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3668 ;; | 4017 ;; |
3669 *) | 4018 *) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3706 case $cc_basename in | 4055 case $cc_basename in |
3707 CC*) | 4056 CC*) |
3708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3709 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3710 # CC pic flag -KPIC is the default. | 4059 # CC pic flag -KPIC is the default. |
3711 ;; | 4060 ;; |
3712 *) | 4061 *) |
3713 ;; | 4062 ;; |
3714 esac | 4063 esac |
3715 ;; | 4064 ;; |
3716 linux* | k*bsd*-gnu) | 4065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
3717 case $cc_basename in | 4066 case $cc_basename in |
3718 KCC*) | 4067 KCC*) |
3719 # KAI C++ Compiler | 4068 # KAI C++ Compiler |
3720 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3721 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3722 ;; | 4071 ;; |
3723 ecpc* ) | 4072 ecpc* ) |
3724 # old Intel C++ for x86_64 which still supported -KPIC. | 4073 # old Intel C++ for x86_64 which still supported -KPIC. |
3725 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4074 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3726 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4075 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
(...skipping 12 matching lines...) Expand all Loading... |
3739 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4088 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
3740 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3741 ;; | 4090 ;; |
3742 cxx*) | 4091 cxx*) |
3743 # Compaq C++ | 4092 # Compaq C++ |
3744 # Make sure the PIC flag is empty. It appears that all Alpha | 4093 # Make sure the PIC flag is empty. It appears that all Alpha |
3745 # Linux and Compaq Tru64 Unix objects are PIC. | 4094 # Linux and Compaq Tru64 Unix objects are PIC. |
3746 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3747 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3748 ;; | 4097 ;; |
3749 » xlc* | xlC*) | 4098 » xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
3750 » # IBM XL 8.0 on PPC | 4099 » # IBM XL 8.0, 9.0 on PPC and BlueGene |
3751 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3752 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4101 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
3753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
3754 ;; | 4103 ;; |
3755 *) | 4104 *) |
3756 case `$CC -V 2>&1 | sed 5q` in | 4105 case `$CC -V 2>&1 | sed 5q` in |
3757 *Sun\ C*) | 4106 *Sun\ C*) |
3758 # Sun C++ 5.9 | 4107 # Sun C++ 5.9 |
3759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4109 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3761 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4110 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
3762 ;; | 4111 ;; |
3763 esac | 4112 esac |
3764 ;; | 4113 ;; |
3765 esac | 4114 esac |
3766 ;; | 4115 ;; |
3767 lynxos*) | 4116 lynxos*) |
3768 ;; | 4117 ;; |
3769 m88k*) | 4118 m88k*) |
3770 ;; | 4119 ;; |
3771 mvs*) | 4120 mvs*) |
3772 case $cc_basename in | 4121 case $cc_basename in |
3773 cxx*) | 4122 cxx*) |
3774 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 4123 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
3775 ;; | 4124 ;; |
3776 *) | 4125 *) |
3777 ;; | 4126 ;; |
3778 esac | 4127 esac |
3779 ;; | 4128 ;; |
3780 netbsd*) | 4129 netbsd* | netbsdelf*-gnu) |
3781 ;; | 4130 ;; |
3782 *qnx* | *nto*) | 4131 *qnx* | *nto*) |
3783 # QNX uses GNU C++, but need to define -shared option too, otherwise | 4132 # QNX uses GNU C++, but need to define -shared option too, otherwise |
3784 # it will coredump. | 4133 # it will coredump. |
3785 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | 4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
3786 ;; | 4135 ;; |
3787 osf3* | osf4* | osf5*) | 4136 osf3* | osf4* | osf5*) |
3788 case $cc_basename in | 4137 case $cc_basename in |
3789 KCC*) | 4138 KCC*) |
3790 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4139 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
(...skipping 11 matching lines...) Expand all Loading... |
3802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4151 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3803 ;; | 4152 ;; |
3804 *) | 4153 *) |
3805 ;; | 4154 ;; |
3806 esac | 4155 esac |
3807 ;; | 4156 ;; |
3808 psos*) | 4157 psos*) |
3809 ;; | 4158 ;; |
3810 solaris*) | 4159 solaris*) |
3811 case $cc_basename in | 4160 case $cc_basename in |
3812 » CC*) | 4161 » CC* | sunCC*) |
3813 # Sun C++ 4.2, 5.x and Centerline C++ | 4162 # Sun C++ 4.2, 5.x and Centerline C++ |
3814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3816 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4165 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
3817 ;; | 4166 ;; |
3818 gcx*) | 4167 gcx*) |
3819 # Green Hills C++ Compiler | 4168 # Green Hills C++ Compiler |
3820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
3821 ;; | 4170 ;; |
3822 *) | 4171 *) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3906 m4_if([$1], [GCJ], [], | 4255 m4_if([$1], [GCJ], [], |
3907 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | 4256 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
3908 ;; | 4257 ;; |
3909 | 4258 |
3910 darwin* | rhapsody*) | 4259 darwin* | rhapsody*) |
3911 # PIC is the default on this platform | 4260 # PIC is the default on this platform |
3912 # Common symbols not allowed in MH_DYLIB files | 4261 # Common symbols not allowed in MH_DYLIB files |
3913 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4262 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3914 ;; | 4263 ;; |
3915 | 4264 |
| 4265 haiku*) |
| 4266 # PIC is the default for Haiku. |
| 4267 # The "-static" flag exists, but is broken. |
| 4268 _LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 4269 ;; |
| 4270 |
3916 hpux*) | 4271 hpux*) |
3917 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 4272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
3918 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | 4273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3919 # sets the default TLS model and affects inlining. | 4274 # sets the default TLS model and affects inlining. |
3920 case $host_cpu in | 4275 case $host_cpu in |
3921 hppa*64*) | 4276 hppa*64*) |
3922 # +Z the default | 4277 # +Z the default |
3923 ;; | 4278 ;; |
3924 *) | 4279 *) |
3925 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4280 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
(...skipping 22 matching lines...) Expand all Loading... |
3948 sysv4*MP*) | 4303 sysv4*MP*) |
3949 if test -d /usr/nec; then | 4304 if test -d /usr/nec; then |
3950 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4305 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3951 fi | 4306 fi |
3952 ;; | 4307 ;; |
3953 | 4308 |
3954 *) | 4309 *) |
3955 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3956 ;; | 4311 ;; |
3957 esac | 4312 esac |
| 4313 |
| 4314 case $cc_basename in |
| 4315 nvcc*) # Cuda Compiler Driver 2.2 |
| 4316 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
| 4317 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 4318 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_com
piler_pic, $1)" |
| 4319 fi |
| 4320 ;; |
| 4321 esac |
3958 else | 4322 else |
3959 # PORTME Check for flag to pass linker flags through the system compiler. | 4323 # PORTME Check for flag to pass linker flags through the system compiler. |
3960 case $host_os in | 4324 case $host_os in |
3961 aix*) | 4325 aix*) |
3962 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3963 if test "$host_cpu" = ia64; then | 4327 if test "$host_cpu" = ia64; then |
3964 # AIX 5 now supports IA64 processor | 4328 # AIX 5 now supports IA64 processor |
3965 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4329 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3966 else | 4330 else |
3967 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 4331 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
(...skipping 22 matching lines...) Expand all Loading... |
3990 # Is there a better lt_prog_compiler_static that works with the bundled CC
? | 4354 # Is there a better lt_prog_compiler_static that works with the bundled CC
? |
3991 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
3992 ;; | 4356 ;; |
3993 | 4357 |
3994 irix5* | irix6* | nonstopux*) | 4358 irix5* | irix6* | nonstopux*) |
3995 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3996 # PIC (with -KPIC) is the default. | 4360 # PIC (with -KPIC) is the default. |
3997 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3998 ;; | 4362 ;; |
3999 | 4363 |
4000 linux* | k*bsd*-gnu) | 4364 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
4001 case $cc_basename in | 4365 case $cc_basename in |
4002 # old Intel for x86_64 which still supported -KPIC. | 4366 # old Intel for x86_64 which still supported -KPIC. |
4003 ecc*) | 4367 ecc*) |
4004 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4005 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4369 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4006 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4370 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4007 ;; | 4371 ;; |
4008 # icc used to be incompatible with GCC. | 4372 # icc used to be incompatible with GCC. |
4009 # ICC 10 doesn't accept -KPIC any more. | 4373 # ICC 10 doesn't accept -KPIC any more. |
4010 icc* | ifort*) | 4374 icc* | ifort*) |
4011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4014 ;; | 4378 ;; |
4015 # Lahey Fortran 8.1. | 4379 # Lahey Fortran 8.1. |
4016 lf95*) | 4380 lf95*) |
4017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4381 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | 4382 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4019 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | 4383 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4020 ;; | 4384 ;; |
4021 pgcc* | pgf77* | pgf90* | pgf95*) | 4385 nagfor*) |
| 4386 » # NAG Fortran compiler |
| 4387 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
| 4388 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 4389 » _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4390 » ;; |
| 4391 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
4022 # Portland Group compilers (*not* the Pentium gcc compiler, | 4392 # Portland Group compilers (*not* the Pentium gcc compiler, |
4023 # which looks to be a dead project) | 4393 # which looks to be a dead project) |
4024 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | 4395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4027 ;; | 4397 ;; |
4028 ccc*) | 4398 ccc*) |
4029 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4030 # All Alpha code is PIC. | 4400 # All Alpha code is PIC. |
4031 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4401 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4032 ;; | 4402 ;; |
4033 xl*) | 4403 xl* | bgxl* | bgf* | mpixl*) |
4034 » # IBM XL C 8.0/Fortran 10.1 on PPC | 4404 » # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
4035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4036 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | 4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4037 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | 4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4038 ;; | 4408 ;; |
4039 *) | 4409 *) |
4040 case `$CC -V 2>&1 | sed 5q` in | 4410 case `$CC -V 2>&1 | sed 5q` in |
| 4411 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-
3]]*) |
| 4412 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 4416 ;; |
| 4417 *Sun\ F* | *Sun*Fortran*) |
| 4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 4421 ;; |
4041 *Sun\ C*) | 4422 *Sun\ C*) |
4042 # Sun C 5.9 | 4423 # Sun C 5.9 |
4043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4425 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4045 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4426 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4046 ;; | 4427 ;; |
4047 » *Sun\ F*) | 4428 *Intel*\ [[CF]]*Compiler*) |
4048 » # Sun Fortran 8.3 passes all unrecognized flags to the linker | 4429 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4049 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4430 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 4431 » _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 4432 » ;; |
| 4433 » *Portland\ Group*) |
| 4434 » _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 4435 » _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4052 ;; | 4437 ;; |
4053 esac | 4438 esac |
4054 ;; | 4439 ;; |
4055 esac | 4440 esac |
4056 ;; | 4441 ;; |
4057 | 4442 |
4058 newsos6) | 4443 newsos6) |
4059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4061 ;; | 4446 ;; |
(...skipping 11 matching lines...) Expand all Loading... |
4073 ;; | 4458 ;; |
4074 | 4459 |
4075 rdos*) | 4460 rdos*) |
4076 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4461 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4077 ;; | 4462 ;; |
4078 | 4463 |
4079 solaris*) | 4464 solaris*) |
4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4465 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4466 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4082 case $cc_basename in | 4467 case $cc_basename in |
4083 f77* | f90* | f95*) | 4468 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
4084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | 4469 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4085 *) | 4470 *) |
4086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | 4471 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
4087 esac | 4472 esac |
4088 ;; | 4473 ;; |
4089 | 4474 |
4090 sunos4*) | 4475 sunos4*) |
4091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4130 ]) | 4515 ]) |
4131 case $host_os in | 4516 case $host_os in |
4132 # For platforms which do not support PIC, -DPIC is meaningless: | 4517 # For platforms which do not support PIC, -DPIC is meaningless: |
4133 *djgpp*) | 4518 *djgpp*) |
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4519 _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4135 ;; | 4520 ;; |
4136 *) | 4521 *) |
4137 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@
&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | 4522 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@
&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
4138 ;; | 4523 ;; |
4139 esac | 4524 esac |
4140 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | 4525 |
4141 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | 4526 AC_CACHE_CHECK([for $compiler option to produce PIC], |
4142 » [How to pass a linker flag through the compiler]) | 4527 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
| 4528 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
]) |
| 4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
4143 | 4530 |
4144 # | 4531 # |
4145 # Check to make sure the PIC flag actually works. | 4532 # Check to make sure the PIC flag actually works. |
4146 # | 4533 # |
4147 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | 4534 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4148 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $
1) works], | 4535 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $
1) works], |
4149 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | 4536 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
4150 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1]
,[CXX],[ -DPIC],[])])], [], | 4537 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1]
,[CXX],[ -DPIC],[])])], [], |
4151 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | 4538 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
4152 "" | " "*) ;; | 4539 "" | " "*) ;; |
4153 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic,
$1)" ;; | 4540 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic,
$1)" ;; |
4154 esac], | 4541 esac], |
4155 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | 4542 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4156 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 4543 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4157 fi | 4544 fi |
4158 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | 4545 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4159 [Additional compiler flags for building library objects]) | 4546 [Additional compiler flags for building library objects]) |
4160 | 4547 |
| 4548 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 4549 [How to pass a linker flag through the compiler]) |
4161 # | 4550 # |
4162 # Check to make sure the static flag actually works. | 4551 # Check to make sure the static flag actually works. |
4163 # | 4552 # |
4164 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt
_prog_compiler_static, $1)\" | 4553 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt
_prog_compiler_static, $1)\" |
4165 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | 4554 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
4166 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | 4555 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
4167 $lt_tmp_static_flag, | 4556 $lt_tmp_static_flag, |
4168 [], | 4557 [], |
4169 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | 4558 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
4170 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | 4559 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
4171 [Compiler flag to prevent dynamic linking]) | 4560 [Compiler flag to prevent dynamic linking]) |
4172 ])# _LT_COMPILER_PIC | 4561 ])# _LT_COMPILER_PIC |
4173 | 4562 |
4174 | 4563 |
4175 # _LT_LINKER_SHLIBS([TAGNAME]) | 4564 # _LT_LINKER_SHLIBS([TAGNAME]) |
4176 # ---------------------------- | 4565 # ---------------------------- |
4177 # See if the linker supports building shared libraries. | 4566 # See if the linker supports building shared libraries. |
4178 m4_defun([_LT_LINKER_SHLIBS], | 4567 m4_defun([_LT_LINKER_SHLIBS], |
4179 [AC_REQUIRE([LT_PATH_LD])dnl | 4568 [AC_REQUIRE([LT_PATH_LD])dnl |
4180 AC_REQUIRE([LT_PATH_NM])dnl | 4569 AC_REQUIRE([LT_PATH_NM])dnl |
| 4570 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
4181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 4571 m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4182 m4_require([_LT_DECL_EGREP])dnl | 4572 m4_require([_LT_DECL_EGREP])dnl |
4183 m4_require([_LT_DECL_SED])dnl | 4573 m4_require([_LT_DECL_SED])dnl |
4184 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | 4574 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
4185 m4_require([_LT_TAG_COMPILER])dnl | 4575 m4_require([_LT_TAG_COMPILER])dnl |
4186 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | 4576 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4187 m4_if([$1], [CXX], [ | 4577 m4_if([$1], [CXX], [ |
4188 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4578 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4579 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4189 case $host_os in | 4580 case $host_os in |
4190 aix[[4-9]]*) | 4581 aix[[4-9]]*) |
4191 # If we're using GNU nm, then we don't want the "-C" option. | 4582 # If we're using GNU nm, then we don't want the "-C" option. |
4192 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 4583 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 4584 # Also, AIX nm treats weak defined symbols like other global defined |
| 4585 # symbols, whereas GNU nm marks them as "W". |
4193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 4586 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4194 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk
'\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,
1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 4587 _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' |
4195 else | 4588 else |
4196 _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' | 4589 _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' |
4197 fi | 4590 fi |
4198 ;; | 4591 ;; |
4199 pw32*) | 4592 pw32*) |
4200 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 4593 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4201 ;; | 4594 ;; |
4202 cygwin* | mingw* | cegcc*) | 4595 cygwin* | mingw* | cegcc*) |
4203 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]
__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
]]/s/.* //'\'' | sort | uniq > $export_symbols' | 4596 case $cc_basename in |
4204 ;; | 4597 cl*) |
| 4598 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTO
R_.*' |
| 4599 ;; |
| 4600 *) |
| 4601 _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' |
| 4602 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI
D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| 4603 ;; |
| 4604 esac |
| 4605 ;; |
| 4606 linux* | k*bsd*-gnu | gnu*) |
| 4607 _LT_TAGVAR(link_all_deplibs, $1)=no |
| 4608 ;; |
4205 *) | 4609 *) |
4206 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4610 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_sym
bol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4207 ;; | 4611 ;; |
4208 esac | 4612 esac |
4209 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
4210 ], [ | 4613 ], [ |
4211 runpath_var= | 4614 runpath_var= |
4212 _LT_TAGVAR(allow_undefined_flag, $1)= | 4615 _LT_TAGVAR(allow_undefined_flag, $1)= |
4213 _LT_TAGVAR(always_export_symbols, $1)=no | 4616 _LT_TAGVAR(always_export_symbols, $1)=no |
4214 _LT_TAGVAR(archive_cmds, $1)= | 4617 _LT_TAGVAR(archive_cmds, $1)= |
4215 _LT_TAGVAR(archive_expsym_cmds, $1)= | 4618 _LT_TAGVAR(archive_expsym_cmds, $1)= |
4216 _LT_TAGVAR(compiler_needs_object, $1)=no | 4619 _LT_TAGVAR(compiler_needs_object, $1)=no |
4217 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 4620 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
4218 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 4621 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
4219 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 4622 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbo
l_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4220 _LT_TAGVAR(hardcode_automatic, $1)=no | 4623 _LT_TAGVAR(hardcode_automatic, $1)=no |
4221 _LT_TAGVAR(hardcode_direct, $1)=no | 4624 _LT_TAGVAR(hardcode_direct, $1)=no |
4222 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 4625 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4224 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4225 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 4627 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4226 _LT_TAGVAR(hardcode_minus_L, $1)=no | 4628 _LT_TAGVAR(hardcode_minus_L, $1)=no |
4227 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 4629 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4228 _LT_TAGVAR(inherit_rpath, $1)=no | 4630 _LT_TAGVAR(inherit_rpath, $1)=no |
4229 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 4631 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
4230 _LT_TAGVAR(module_cmds, $1)= | 4632 _LT_TAGVAR(module_cmds, $1)= |
4231 _LT_TAGVAR(module_expsym_cmds, $1)= | 4633 _LT_TAGVAR(module_expsym_cmds, $1)= |
4232 _LT_TAGVAR(old_archive_from_new_cmds, $1)= | 4634 _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
4233 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | 4635 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
4234 _LT_TAGVAR(thread_safe_flag_spec, $1)= | 4636 _LT_TAGVAR(thread_safe_flag_spec, $1)= |
(...skipping 24 matching lines...) Expand all Loading... |
4259 with_gnu_ld=no | 4661 with_gnu_ld=no |
4260 fi | 4662 fi |
4261 ;; | 4663 ;; |
4262 interix*) | 4664 interix*) |
4263 # we just hope/assume this is gcc and not c89 (= MSVC++) | 4665 # we just hope/assume this is gcc and not c89 (= MSVC++) |
4264 with_gnu_ld=yes | 4666 with_gnu_ld=yes |
4265 ;; | 4667 ;; |
4266 openbsd*) | 4668 openbsd*) |
4267 with_gnu_ld=no | 4669 with_gnu_ld=no |
4268 ;; | 4670 ;; |
| 4671 linux* | k*bsd*-gnu | gnu*) |
| 4672 _LT_TAGVAR(link_all_deplibs, $1)=no |
| 4673 ;; |
4269 esac | 4674 esac |
4270 | 4675 |
4271 _LT_TAGVAR(ld_shlibs, $1)=yes | 4676 _LT_TAGVAR(ld_shlibs, $1)=yes |
| 4677 |
| 4678 # On some targets, GNU ld is compatible enough with the native linker |
| 4679 # that we're better off using the native interface for both. |
| 4680 lt_use_gnu_ld_interface=no |
4272 if test "$with_gnu_ld" = yes; then | 4681 if test "$with_gnu_ld" = yes; then |
| 4682 case $host_os in |
| 4683 aix*) |
| 4684 # The AIX port of GNU ld has always aspired to compatibility |
| 4685 # with the native linker. However, as the warning in the GNU ld |
| 4686 # block says, versions before 2.19.5* couldn't really create working |
| 4687 # shared libraries, regardless of the interface used. |
| 4688 case `$LD -v 2>&1` in |
| 4689 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 4690 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; |
| 4691 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; |
| 4692 *) |
| 4693 lt_use_gnu_ld_interface=yes |
| 4694 ;; |
| 4695 esac |
| 4696 ;; |
| 4697 *) |
| 4698 lt_use_gnu_ld_interface=yes |
| 4699 ;; |
| 4700 esac |
| 4701 fi |
| 4702 |
| 4703 if test "$lt_use_gnu_ld_interface" = yes; then |
4273 # If archive_cmds runs LD, not CC, wlarc should be empty | 4704 # If archive_cmds runs LD, not CC, wlarc should be empty |
4274 wlarc='${wl}' | 4705 wlarc='${wl}' |
4275 | 4706 |
4276 # Set some defaults for GNU ld with shared library support. These | 4707 # Set some defaults for GNU ld with shared library support. These |
4277 # are reset later if shared libraries are not supported. Putting them | 4708 # are reset later if shared libraries are not supported. Putting them |
4278 # here allows them to be overridden if necessary. | 4709 # here allows them to be overridden if necessary. |
4279 runpath_var=LD_RUN_PATH | 4710 runpath_var=LD_RUN_PATH |
4280 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 4711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4281 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 4712 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4282 # ancient GNU ld didn't support --whole-archive et. al. | 4713 # ancient GNU ld didn't support --whole-archive et. al. |
4283 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 4714 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
4284 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenien
ce '"$wlarc"'--no-whole-archive' | 4715 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenien
ce '"$wlarc"'--no-whole-archive' |
4285 else | 4716 else |
4286 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 4717 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4287 fi | 4718 fi |
4288 supports_anon_versioning=no | 4719 supports_anon_versioning=no |
4289 case `$LD -v 2>&1` in | 4720 case `$LD -v 2>&1` in |
| 4721 *GNU\ gold*) supports_anon_versioning=yes ;; |
4290 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | 4722 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
4291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 4723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
4292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 4724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
4293 *\ 2.11.*) ;; # other 2.11 versions | 4725 *\ 2.11.*) ;; # other 2.11 versions |
4294 *) supports_anon_versioning=yes ;; | 4726 *) supports_anon_versioning=yes ;; |
4295 esac | 4727 esac |
4296 | 4728 |
4297 # See if GNU ld supports shared libraries. | 4729 # See if GNU ld supports shared libraries. |
4298 case $host_os in | 4730 case $host_os in |
4299 aix[[3-9]]*) | 4731 aix[[3-9]]*) |
4300 # On AIX/PPC, the GNU linker is very broken | 4732 # On AIX/PPC, the GNU linker is very broken |
4301 if test "$host_cpu" != ia64; then | 4733 if test "$host_cpu" != ia64; then |
4302 _LT_TAGVAR(ld_shlibs, $1)=no | 4734 _LT_TAGVAR(ld_shlibs, $1)=no |
4303 cat <<_LT_EOF 1>&2 | 4735 cat <<_LT_EOF 1>&2 |
4304 | 4736 |
4305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 4737 *** Warning: the GNU linker, at least up to release 2.19, is reported |
4306 *** to be unable to reliably create shared libraries on AIX. | 4738 *** to be unable to reliably create shared libraries on AIX. |
4307 *** Therefore, libtool is disabling shared libraries support. If you | 4739 *** Therefore, libtool is disabling shared libraries support. If you |
4308 *** really care for shared libraries, you may want to modify your PATH | 4740 *** really care for shared libraries, you may want to install binutils |
4309 *** so that a non-GNU linker is found, and then restart. | 4741 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 4742 *** You will then need to restart the configuration process. |
4310 | 4743 |
4311 _LT_EOF | 4744 _LT_EOF |
4312 fi | 4745 fi |
4313 ;; | 4746 ;; |
4314 | 4747 |
4315 amigaos*) | 4748 amigaos*) |
4316 case $host_cpu in | 4749 case $host_cpu in |
4317 powerpc) | 4750 powerpc) |
4318 # see comment about AmigaOS4 .so support | 4751 # see comment about AmigaOS4 .so support |
4319 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' | 4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags ${wl}-soname $wl$soname -o $lib' |
(...skipping 15 matching lines...) Expand all Loading... |
4335 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f
lags ${wl}-soname $wl$soname -o $lib' | 4768 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_f
lags ${wl}-soname $wl$soname -o $lib' |
4336 else | 4769 else |
4337 _LT_TAGVAR(ld_shlibs, $1)=no | 4770 _LT_TAGVAR(ld_shlibs, $1)=no |
4338 fi | 4771 fi |
4339 ;; | 4772 ;; |
4340 | 4773 |
4341 cygwin* | mingw* | pw32* | cegcc*) | 4774 cygwin* | mingw* | pw32* | cegcc*) |
4342 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 4775 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4343 # as there is no search path for DLLs. | 4776 # as there is no search path for DLLs. |
4344 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 4777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 4778 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
4345 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 4779 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4346 _LT_TAGVAR(always_export_symbols, $1)=no | 4780 _LT_TAGVAR(always_export_symbols, $1)=no |
4347 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 4781 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4348 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_s
ymbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $
SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | 4782 _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' |
| 4783 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FI
D]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
4349 | 4784 |
4350 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 4785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
4351 _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' | 4786 _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' |
4352 # If the export-symbols file already is a .def file (1st line | 4787 # If the export-symbols file already is a .def file (1st line |
4353 # is EXPORTS), use it as is; otherwise, prepend... | 4788 # is EXPORTS), use it as is; otherwise, prepend... |
4354 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`
" = xEXPORTS; then | 4789 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`
" = xEXPORTS; then |
4355 cp $export_symbols $output_objdir/$soname.def; | 4790 cp $export_symbols $output_objdir/$soname.def; |
4356 else | 4791 else |
4357 echo EXPORTS > $output_objdir/$soname.def; | 4792 echo EXPORTS > $output_objdir/$soname.def; |
4358 cat $export_symbols >> $output_objdir/$soname.def; | 4793 cat $export_symbols >> $output_objdir/$soname.def; |
4359 fi~ | 4794 fi~ |
4360 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' | 4795 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' |
4361 else | 4796 else |
4362 _LT_TAGVAR(ld_shlibs, $1)=no | 4797 _LT_TAGVAR(ld_shlibs, $1)=no |
4363 fi | 4798 fi |
4364 ;; | 4799 ;; |
4365 | 4800 |
| 4801 haiku*) |
| 4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flag
s ${wl}-soname $wl$soname -o $lib' |
| 4803 _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 4804 ;; |
| 4805 |
4366 interix[[3-9]]*) | 4806 interix[[3-9]]*) |
4367 _LT_TAGVAR(hardcode_direct, $1)=no | 4807 _LT_TAGVAR(hardcode_direct, $1)=no |
4368 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 4808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 4809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4370 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 4810 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 4811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
4372 # Instead, shared libraries are loaded at an image base (0x10000000 by | 4812 # Instead, shared libraries are loaded at an image base (0x10000000 by |
4373 # default) and relocated if they conflict, which is a slow very memory | 4813 # default) and relocated if they conflict, which is a slow very memory |
4374 # consuming and fragmenting process. To avoid this, we pick a random, | 4814 # consuming and fragmenting process. To avoid this, we pick a random, |
4375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 4815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
4376 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 4816 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
4377 _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' | 4817 _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' |
4378 _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' | 4818 _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' |
4379 ;; | 4819 ;; |
4380 | 4820 |
4381 gnu* | linux* | tpf* | k*bsd*-gnu) | 4821 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
4382 tmp_diet=no | 4822 tmp_diet=no |
4383 if test "$host_os" = linux-dietlibc; then | 4823 if test "$host_os" = linux-dietlibc; then |
4384 case $cc_basename in | 4824 case $cc_basename in |
4385 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d
iet-dyn) | 4825 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d
iet-dyn) |
4386 esac | 4826 esac |
4387 fi | 4827 fi |
4388 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 4828 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
4389 && test "$tmp_diet" = no | 4829 && test "$tmp_diet" = no |
4390 then | 4830 then |
4391 » tmp_addflag= | 4831 » tmp_addflag=' $pic_flag' |
4392 tmp_sharedflag='-shared' | 4832 tmp_sharedflag='-shared' |
4393 case $cc_basename,$host_cpu in | 4833 case $cc_basename,$host_cpu in |
4394 pgcc*) # Portland Group C compiler | 4834 pgcc*) # Portland Group C compiler |
4395 » _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 4835 » _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' |
4396 tmp_addflag=' $pic_flag' | 4836 tmp_addflag=' $pic_flag' |
4397 ;; | 4837 ;; |
4398 » pgf77* | pgf90* | pgf95*)» # Portland Group f77 and f90 compilers | 4838 » pgf77* | pgf90* | pgf95* | pgfortran*) |
4399 » _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 4839 » » » » » # Portland Group f77 and f90 compilers |
| 4840 » _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' |
4400 tmp_addflag=' $pic_flag -Mnomain' ;; | 4841 tmp_addflag=' $pic_flag -Mnomain' ;; |
4401 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 4842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
4402 tmp_addflag=' -i_dynamic' ;; | 4843 tmp_addflag=' -i_dynamic' ;; |
4403 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | 4844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
4404 tmp_addflag=' -i_dynamic -nofor_main' ;; | 4845 tmp_addflag=' -i_dynamic -nofor_main' ;; |
4405 ifc* | ifort*) # Intel Fortran compiler | 4846 ifc* | ifort*) # Intel Fortran compiler |
4406 tmp_addflag=' -nofor_main' ;; | 4847 tmp_addflag=' -nofor_main' ;; |
4407 lf95*) # Lahey Fortran 8.1 | 4848 lf95*) # Lahey Fortran 8.1 |
4408 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 4849 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4409 tmp_sharedflag='--shared' ;; | 4850 tmp_sharedflag='--shared' ;; |
4410 » xl[[cC]]*)» » » # IBM XL C 8.0 on PPC (deal with xlf bel
ow) | 4851 » xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with
xlf below) |
4411 tmp_sharedflag='-qmkshrobj' | 4852 tmp_sharedflag='-qmkshrobj' |
4412 tmp_addflag= ;; | 4853 tmp_addflag= ;; |
| 4854 nvcc*) # Cuda Compiler Driver 2.2 |
| 4855 _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' |
| 4856 _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 4857 ;; |
4413 esac | 4858 esac |
4414 case `$CC -V 2>&1 | sed 5q` in | 4859 case `$CC -V 2>&1 | sed 5q` in |
4415 *Sun\ C*) # Sun C 5.9 | 4860 *Sun\ C*) # Sun C 5.9 |
4416 » _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-ar
chive' | 4861 » _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' |
4417 _LT_TAGVAR(compiler_needs_object, $1)=yes | 4862 _LT_TAGVAR(compiler_needs_object, $1)=yes |
4418 tmp_sharedflag='-G' ;; | 4863 tmp_sharedflag='-G' ;; |
4419 *Sun\ F*) # Sun Fortran 8.3 | 4864 *Sun\ F*) # Sun Fortran 8.3 |
4420 tmp_sharedflag='-G' ;; | 4865 tmp_sharedflag='-G' ;; |
4421 esac | 4866 esac |
4422 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib
objs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 4867 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $lib
objs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4423 | 4868 |
4424 if test "x$supports_anon_versioning" = xyes; then | 4869 if test "x$supports_anon_versioning" = xyes; then |
4425 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir
/$libname.ver~ | 4870 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir
/$libname.ver~ |
4426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn
ame.ver~ | 4871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn
ame.ver~ |
4427 echo "local: *; };" >> $output_objdir/$libname.ver~ | 4872 echo "local: *; };" >> $output_objdir/$libname.ver~ |
4428 $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' | 4873 $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' |
4429 fi | 4874 fi |
4430 | 4875 |
4431 case $cc_basename in | 4876 case $cc_basename in |
4432 » xlf*) | 4877 » xlf* | bgf* | bgxlf* | mpixlf*) |
4433 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 4878 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4434 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience -
-no-whole-archive' | 4879 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience -
-no-whole-archive' |
4435 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4880 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4436 » _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | 4881 » _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_fl
ags -soname $soname -o $lib' |
4437 » _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_
flags -soname $soname -o $lib' | |
4438 if test "x$supports_anon_versioning" = xyes; then | 4882 if test "x$supports_anon_versioning" = xyes; then |
4439 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd
ir/$libname.ver~ | 4883 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objd
ir/$libname.ver~ |
4440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li
bname.ver~ | 4884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li
bname.ver~ |
4441 echo "local: *; };" >> $output_objdir/$libname.ver~ | 4885 echo "local: *; };" >> $output_objdir/$libname.ver~ |
4442 » $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -ver
sion-script $output_objdir/$libname.ver -o $lib' | 4886 » $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi
on-script $output_objdir/$libname.ver -o $lib' |
4443 fi | 4887 fi |
4444 ;; | 4888 ;; |
4445 esac | 4889 esac |
4446 else | 4890 else |
4447 _LT_TAGVAR(ld_shlibs, $1)=no | 4891 _LT_TAGVAR(ld_shlibs, $1)=no |
4448 fi | 4892 fi |
4449 ;; | 4893 ;; |
4450 | 4894 |
4451 netbsd*) | 4895 netbsd* | netbsdelf*-gnu) |
4452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 4896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4453 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_
flags -o $lib' | 4897 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_
flags -o $lib' |
4454 wlarc= | 4898 wlarc= |
4455 else | 4899 else |
4456 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 4900 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname -o $lib' |
4457 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 4901 » _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' |
4458 fi | 4902 fi |
4459 ;; | 4903 ;; |
4460 | 4904 |
4461 solaris*) | 4905 solaris*) |
4462 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | 4906 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
4463 _LT_TAGVAR(ld_shlibs, $1)=no | 4907 _LT_TAGVAR(ld_shlibs, $1)=no |
4464 cat <<_LT_EOF 1>&2 | 4908 cat <<_LT_EOF 1>&2 |
4465 | 4909 |
4466 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 4910 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
4467 *** create shared libraries on Solaris systems. Therefore, libtool | 4911 *** create shared libraries on Solaris systems. Therefore, libtool |
4468 *** is disabling shared libraries support. We urge you to upgrade GNU | 4912 *** is disabling shared libraries support. We urge you to upgrade GNU |
4469 *** binutils to release 2.9.1 or newer. Another option is to modify | 4913 *** binutils to release 2.9.1 or newer. Another option is to modify |
4470 *** your PATH or compiler configuration so that the native linker is | 4914 *** your PATH or compiler configuration so that the native linker is |
4471 *** used, and then restart. | 4915 *** used, and then restart. |
4472 | 4916 |
4473 _LT_EOF | 4917 _LT_EOF |
4474 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n | 4918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
4475 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 4919 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname -o $lib' |
4476 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 4920 » _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' |
4477 else | 4921 else |
4478 _LT_TAGVAR(ld_shlibs, $1)=no | 4922 _LT_TAGVAR(ld_shlibs, $1)=no |
4479 fi | 4923 fi |
4480 ;; | 4924 ;; |
4481 | 4925 |
4482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 4926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
4483 case `$LD -v 2>&1` in | 4927 case `$LD -v 2>&1` in |
4484 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | 4928 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
4485 _LT_TAGVAR(ld_shlibs, $1)=no | 4929 _LT_TAGVAR(ld_shlibs, $1)=no |
4486 cat <<_LT_EOF 1>&2 | 4930 cat <<_LT_EOF 1>&2 |
(...skipping 25 matching lines...) Expand all Loading... |
4512 | 4956 |
4513 sunos4*) | 4957 sunos4*) |
4514 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l
ibobjs $deplibs $linker_flags' | 4958 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $l
ibobjs $deplibs $linker_flags' |
4515 wlarc= | 4959 wlarc= |
4516 _LT_TAGVAR(hardcode_direct, $1)=yes | 4960 _LT_TAGVAR(hardcode_direct, $1)=yes |
4517 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 4961 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4518 ;; | 4962 ;; |
4519 | 4963 |
4520 *) | 4964 *) |
4521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 4965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4522 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' | 4966 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname -o $lib' |
4523 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols
-o $lib' | 4967 » _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' |
4524 else | 4968 else |
4525 _LT_TAGVAR(ld_shlibs, $1)=no | 4969 _LT_TAGVAR(ld_shlibs, $1)=no |
4526 fi | 4970 fi |
4527 ;; | 4971 ;; |
4528 esac | 4972 esac |
4529 | 4973 |
4530 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then | 4974 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then |
4531 runpath_var= | 4975 runpath_var= |
4532 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 4976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4533 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 4977 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
(...skipping 19 matching lines...) Expand all Loading... |
4553 aix[[4-9]]*) | 4997 aix[[4-9]]*) |
4554 if test "$host_cpu" = ia64; then | 4998 if test "$host_cpu" = ia64; then |
4555 # On IA64, the linker does run time linking by default, so we don't | 4999 # On IA64, the linker does run time linking by default, so we don't |
4556 # have to do anything special. | 5000 # have to do anything special. |
4557 aix_use_runtimelinking=no | 5001 aix_use_runtimelinking=no |
4558 exp_sym_flag='-Bexport' | 5002 exp_sym_flag='-Bexport' |
4559 no_entry_flag="" | 5003 no_entry_flag="" |
4560 else | 5004 else |
4561 # If we're using GNU nm, then we don't want the "-C" option. | 5005 # If we're using GNU nm, then we don't want the "-C" option. |
4562 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 5006 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 5007 # Also, AIX nm treats weak defined symbols like other global |
| 5008 # defined symbols, whereas GNU nm marks them as "W". |
4563 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 5009 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4564 » _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$
3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 5010 » _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' |
4565 else | 5011 else |
4566 _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' | 5012 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$
3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
4567 fi | 5013 fi |
4568 aix_use_runtimelinking=no | 5014 aix_use_runtimelinking=no |
4569 | 5015 |
4570 # Test if we are trying to use run time linking or normal | 5016 # Test if we are trying to use run time linking or normal |
4571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 5017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4572 # need to do runtime linking. | 5018 # need to do runtime linking. |
4573 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | 5019 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
4574 for ld_flag in $LDFLAGS; do | 5020 for ld_flag in $LDFLAGS; do |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4616 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5062 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4618 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 5064 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4619 fi | 5065 fi |
4620 ;; | 5066 ;; |
4621 esac | 5067 esac |
4622 shared_flag='-shared' | 5068 shared_flag='-shared' |
4623 if test "$aix_use_runtimelinking" = yes; then | 5069 if test "$aix_use_runtimelinking" = yes; then |
4624 shared_flag="$shared_flag "'${wl}-G' | 5070 shared_flag="$shared_flag "'${wl}-G' |
4625 fi | 5071 fi |
| 5072 _LT_TAGVAR(link_all_deplibs, $1)=no |
4626 else | 5073 else |
4627 # not using gcc | 5074 # not using gcc |
4628 if test "$host_cpu" = ia64; then | 5075 if test "$host_cpu" = ia64; then |
4629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 5076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4630 # chokes on -Wl,-G. The following line is correct: | 5077 # chokes on -Wl,-G. The following line is correct: |
4631 shared_flag='-G' | 5078 shared_flag='-G' |
4632 else | 5079 else |
4633 if test "$aix_use_runtimelinking" = yes; then | 5080 if test "$aix_use_runtimelinking" = yes; then |
4634 shared_flag='${wl}-G' | 5081 shared_flag='${wl}-G' |
4635 else | 5082 else |
4636 shared_flag='${wl}-bM:SRE' | 5083 shared_flag='${wl}-bM:SRE' |
4637 fi | 5084 fi |
4638 fi | 5085 fi |
4639 fi | 5086 fi |
4640 | 5087 |
4641 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | 5088 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' |
4642 # It seems that -bexpall does not export symbols beginning with | 5089 # It seems that -bexpall does not export symbols beginning with |
4643 # underscore (_), so it is better to generate a list of symbols to export. | 5090 # underscore (_), so it is better to generate a list of symbols to export. |
4644 _LT_TAGVAR(always_export_symbols, $1)=yes | 5091 _LT_TAGVAR(always_export_symbols, $1)=yes |
4645 if test "$aix_use_runtimelinking" = yes; then | 5092 if test "$aix_use_runtimelinking" = yes; then |
4646 # Warning - without using the other runtime loading flags (-brtl), | 5093 # Warning - without using the other runtime loading flags (-brtl), |
4647 # -berok will link without error, but may produce a broken library. | 5094 # -berok will link without error, but may produce a broken library. |
4648 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 5095 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
4649 # Determine the default libpath from the value encoded in an | 5096 # Determine the default libpath from the value encoded in an |
4650 # empty executable. | 5097 # empty executable. |
4651 _LT_SYS_MODULE_PATH_AIX | 5098 _LT_SYS_MODULE_PATH_AIX([$1]) |
4652 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix
_libpath" | 5099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix
_libpath" |
4653 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi
` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5100 _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" |
4654 else | 5101 else |
4655 if test "$host_cpu" = ia64; then | 5102 if test "$host_cpu" = ia64; then |
4656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/l
ib' | 5103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/l
ib' |
4657 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5104 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4658 _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" | 5105 _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" |
4659 else | 5106 else |
4660 # Determine the default libpath from the value encoded in an | 5107 # Determine the default libpath from the value encoded in an |
4661 # empty executable. | 5108 # empty executable. |
4662 » _LT_SYS_MODULE_PATH_AIX | 5109 » _LT_SYS_MODULE_PATH_AIX([$1]) |
4663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai
x_libpath" | 5110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$ai
x_libpath" |
4664 # Warning - without using the other run time loading flags, | 5111 # Warning - without using the other run time loading flags, |
4665 # -berok will link without error, but may produce a broken library. | 5112 # -berok will link without error, but may produce a broken library. |
4666 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5113 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4667 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5114 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4668 » # Exported symbols can be pulled into shared objects from archives | 5115 » if test "$with_gnu_ld" = yes; then |
4669 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 5116 » # We only use this code for GNU lds that support --whole-archive. |
| 5117 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven
ience ${wl}--no-whole-archive' |
| 5118 » else |
| 5119 » # Exported symbols can be pulled into shared objects from archives |
| 5120 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 5121 » fi |
4670 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5122 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
4671 # This is similar to how AIX traditionally builds its shared libraries
. | 5123 # This is similar to how AIX traditionally builds its shared libraries
. |
4672 _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' | 5124 _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' |
4673 fi | 5125 fi |
4674 fi | 5126 fi |
4675 ;; | 5127 ;; |
4676 | 5128 |
4677 amigaos*) | 5129 amigaos*) |
4678 case $host_cpu in | 5130 case $host_cpu in |
4679 powerpc) | 5131 powerpc) |
(...skipping 11 matching lines...) Expand all Loading... |
4691 | 5143 |
4692 bsdi[[45]]*) | 5144 bsdi[[45]]*) |
4693 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 5145 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
4694 ;; | 5146 ;; |
4695 | 5147 |
4696 cygwin* | mingw* | pw32* | cegcc*) | 5148 cygwin* | mingw* | pw32* | cegcc*) |
4697 # When not using gcc, we currently assume that we are using | 5149 # When not using gcc, we currently assume that we are using |
4698 # Microsoft Visual C++. | 5150 # Microsoft Visual C++. |
4699 # hardcode_libdir_flag_spec is actually meaningless, as there is | 5151 # hardcode_libdir_flag_spec is actually meaningless, as there is |
4700 # no search path for DLLs. | 5152 # no search path for DLLs. |
4701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5153 case $cc_basename in |
4702 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5154 cl*) |
4703 # Tell ltmain to make .lib files, not .a files. | 5155 » # Native MSVC |
4704 libext=lib | 5156 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
4705 # Tell ltmain to make .dll files, not .so files. | 5157 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4706 shrext_cmds=".dll" | 5158 » _LT_TAGVAR(always_export_symbols, $1)=yes |
4707 # FIXME: Setting linknames here is a bad hack. | 5159 » _LT_TAGVAR(file_list_spec, $1)='@' |
4708 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO
"X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 5160 » # Tell ltmain to make .lib files, not .a files. |
4709 # The linker will automatically build a .lib file if we build a DLL. | 5161 » libext=lib |
4710 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | 5162 » # Tell ltmain to make .dll files, not .so files. |
4711 # FIXME: Should let the user specify the lib program. | 5163 » shrext_cmds=".dll" |
4712 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | 5164 » # FIXME: Setting linknames here is a bad hack. |
4713 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | 5165 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $co
mpiler_flags $deplibs -Wl,-dll~linknames=' |
4714 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5166 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`
" = xEXPORTS; then |
| 5167 » sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\
!p' < $export_symbols > $output_objdir/$soname.exp; |
| 5168 » else |
| 5169 » sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_s
ymbols > $output_objdir/$soname.exp; |
| 5170 » fi~ |
| 5171 » $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"~ |
| 5172 » linknames=' |
| 5173 » # The linker will not automatically build a static lib if we build a DLL
. |
| 5174 » # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5175 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5176 » _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIP
TOR_.*' |
| 5177 » _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' |
| 5178 » # Don't use ranlib |
| 5179 » _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 5180 » _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 5181 » lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 5182 » case $lt_outputfile in |
| 5183 » *.exe|*.EXE) ;; |
| 5184 » *) |
| 5185 » lt_outputfile="$lt_outputfile.exe" |
| 5186 » lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 5187 » ;; |
| 5188 » esac~ |
| 5189 » if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest";
then |
| 5190 » $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou
rce:"$lt_tool_outputfile" || exit 1; |
| 5191 » $RM "$lt_outputfile.manifest"; |
| 5192 » fi' |
| 5193 » ;; |
| 5194 *) |
| 5195 » # Assume MSVC wrapper |
| 5196 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 5197 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5198 » # Tell ltmain to make .lib files, not .a files. |
| 5199 » libext=lib |
| 5200 » # Tell ltmain to make .dll files, not .so files. |
| 5201 » shrext_cmds=".dll" |
| 5202 » # FIXME: Setting linknames here is a bad hack. |
| 5203 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func
_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5204 » # The linker will automatically build a .lib file if we build a DLL. |
| 5205 » _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 5206 » # FIXME: Should let the user specify the lib program. |
| 5207 » _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 5208 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5209 » ;; |
| 5210 esac |
4715 ;; | 5211 ;; |
4716 | 5212 |
4717 darwin* | rhapsody*) | 5213 darwin* | rhapsody*) |
4718 _LT_DARWIN_LINKER_FEATURES($1) | 5214 _LT_DARWIN_LINKER_FEATURES($1) |
4719 ;; | 5215 ;; |
4720 | 5216 |
4721 dgux*) | 5217 dgux*) |
4722 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' | 5218 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs
$linker_flags' |
4723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4724 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5220 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4725 ;; | 5221 ;; |
4726 | 5222 |
4727 freebsd1*) | |
4728 _LT_TAGVAR(ld_shlibs, $1)=no | |
4729 ;; | |
4730 | |
4731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 5223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
4732 # support. Future versions do this automatically, but an explicit c++rt0.o | 5224 # support. Future versions do this automatically, but an explicit c++rt0.o |
4733 # does not break anything, and helps significantly (at the cost of a little | 5225 # does not break anything, and helps significantly (at the cost of a little |
4734 # extra space). | 5226 # extra space). |
4735 freebsd2.2*) | 5227 freebsd2.2*) |
4736 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags /usr/lib/c++rt0.o' | 5228 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags /usr/lib/c++rt0.o' |
4737 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4738 _LT_TAGVAR(hardcode_direct, $1)=yes | 5230 _LT_TAGVAR(hardcode_direct, $1)=yes |
4739 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5231 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4740 ;; | 5232 ;; |
4741 | 5233 |
4742 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 5234 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
4743 freebsd2*) | 5235 freebsd2.*) |
4744 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags' | 5236 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $l
inker_flags' |
4745 _LT_TAGVAR(hardcode_direct, $1)=yes | 5237 _LT_TAGVAR(hardcode_direct, $1)=yes |
4746 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5238 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4747 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5239 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4748 ;; | 5240 ;; |
4749 | 5241 |
4750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
4751 freebsd* | dragonfly*) | 5243 freebsd* | dragonfly*) |
4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compi
ler_flags' | 5244 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $depl
ibs $compiler_flags' |
4753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4754 _LT_TAGVAR(hardcode_direct, $1)=yes | 5246 _LT_TAGVAR(hardcode_direct, $1)=yes |
4755 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5247 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4756 ;; | 5248 ;; |
4757 | 5249 |
4758 hpux9*) | 5250 hpux9*) |
4759 if test "$GCC" = yes; then | 5251 if test "$GCC" = yes; then |
4760 » _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fP
IC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $com
piler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib
' | 5252 » _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' |
4761 else | 5253 else |
4762 _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' | 5254 _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' |
4763 fi | 5255 fi |
4764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4765 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5257 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4766 _LT_TAGVAR(hardcode_direct, $1)=yes | 5258 _LT_TAGVAR(hardcode_direct, $1)=yes |
4767 | 5259 |
4768 # hardcode_minus_L: Not really in the search PATH, | 5260 # hardcode_minus_L: Not really in the search PATH, |
4769 # but as the default location of the library. | 5261 # but as the default location of the library. |
4770 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5262 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4771 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4772 ;; | 5264 ;; |
4773 | 5265 |
4774 hpux10*) | 5266 hpux10*) |
4775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
4776 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${w
l}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5268 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname
${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4777 else | 5269 else |
4778 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l
ib $libobjs $deplibs $linker_flags' | 5270 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $l
ib $libobjs $deplibs $linker_flags' |
4779 fi | 5271 fi |
4780 if test "$with_gnu_ld" = no; then | 5272 if test "$with_gnu_ld" = no; then |
4781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4782 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
4783 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5274 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4784 _LT_TAGVAR(hardcode_direct, $1)=yes | 5275 _LT_TAGVAR(hardcode_direct, $1)=yes |
4785 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5276 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4786 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5277 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4787 # hardcode_minus_L: Not really in the search PATH, | 5278 # hardcode_minus_L: Not really in the search PATH, |
4788 # but as the default location of the library. | 5279 # but as the default location of the library. |
4789 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5280 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4790 fi | 5281 fi |
4791 ;; | 5282 ;; |
4792 | 5283 |
4793 hpux11*) | 5284 hpux11*) |
4794 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
4795 case $host_cpu in | 5286 case $host_cpu in |
4796 hppa*64*) | 5287 hppa*64*) |
4797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib
$libobjs $deplibs $compiler_flags' | 5288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib
$libobjs $deplibs $compiler_flags' |
4798 ;; | 5289 ;; |
4799 ia64*) | 5290 ia64*) |
4800 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname $
{wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5291 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$sona
me ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4801 ;; | 5292 ;; |
4802 *) | 5293 *) |
4803 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname $
{wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5294 » _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' |
4804 ;; | 5295 ;; |
4805 esac | 5296 esac |
4806 else | 5297 else |
4807 case $host_cpu in | 5298 case $host_cpu in |
4808 hppa*64*) | 5299 hppa*64*) |
4809 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $lib
objs $deplibs $compiler_flags' | 5300 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $lib
objs $deplibs $compiler_flags' |
4810 ;; | 5301 ;; |
4811 ia64*) | 5302 ia64*) |
4812 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefa
ultrpath -o $lib $libobjs $deplibs $compiler_flags' | 5303 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefa
ultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4813 ;; | 5304 ;; |
4814 *) | 5305 *) |
4815 » _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl
}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5306 » m4_if($1, [], [ |
| 5307 » # Older versions of the 11.00 compiler do not understand -b yet |
| 5308 » # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe
s) |
| 5309 » _LT_LINKER_OPTION([if $CC understands -b], |
| 5310 » _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], |
| 5311 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b $
{wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], |
| 5312 » [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir
-o $lib $libobjs $deplibs $linker_flags'])], |
| 5313 » [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${w
l}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) |
4816 ;; | 5314 ;; |
4817 esac | 5315 esac |
4818 fi | 5316 fi |
4819 if test "$with_gnu_ld" = no; then | 5317 if test "$with_gnu_ld" = no; then |
4820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4821 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5319 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4822 | 5320 |
4823 case $host_cpu in | 5321 case $host_cpu in |
4824 hppa*64*|ia64*) | 5322 hppa*64*|ia64*) |
4825 _LT_TAGVAR(hardcode_direct, $1)=no | 5323 _LT_TAGVAR(hardcode_direct, $1)=no |
4826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5324 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4827 ;; | 5325 ;; |
4828 *) | 5326 *) |
4829 _LT_TAGVAR(hardcode_direct, $1)=yes | 5327 _LT_TAGVAR(hardcode_direct, $1)=yes |
4830 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 5328 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4831 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5329 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4832 | 5330 |
4833 # hardcode_minus_L: Not really in the search PATH, | 5331 # hardcode_minus_L: Not really in the search PATH, |
4834 # but as the default location of the library. | 5332 # but as the default location of the library. |
4835 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5333 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4836 ;; | 5334 ;; |
4837 esac | 5335 esac |
4838 fi | 5336 fi |
4839 ;; | 5337 ;; |
4840 | 5338 |
4841 irix5* | irix6* | nonstopux*) | 5339 irix5* | irix6* | nonstopux*) |
4842 if test "$GCC" = yes; then | 5340 if test "$GCC" = yes; then |
4843 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version
${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locati
ons -o $lib' | 5341 » _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' |
4844 # Try to use the -exported_symbol ld option, if it does not | 5342 # Try to use the -exported_symbol ld option, if it does not |
4845 # work, assume that -exports_file does not work either and | 5343 # work, assume that -exports_file does not work either and |
4846 # implicitly export all symbols. | 5344 # implicitly export all symbols. |
4847 save_LDFLAGS="$LDFLAGS" | 5345 » # This should be the same for all languages, so no per-tag cache variabl
e. |
4848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re
gistry ${wl}/dev/null" | 5346 » AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], |
4849 AC_LINK_IFELSE(int foo(void) {}, | 5347 » [lt_cv_irix_exported_symbol], |
4850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $co
mpiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-se
t_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/
so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 5348 » [save_LDFLAGS="$LDFLAGS" |
4851 ) | 5349 » LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update
_registry ${wl}/dev/null" |
4852 LDFLAGS="$save_LDFLAGS" | 5350 » AC_LINK_IFELSE( |
| 5351 » [AC_LANG_SOURCE( |
| 5352 » [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], |
| 5353 » » » [C++], [[int foo (void) { return 0; }]], |
| 5354 » » » [Fortran 77], [[ |
| 5355 subroutine foo |
| 5356 end]], |
| 5357 » » » [Fortran], [[ |
| 5358 subroutine foo |
| 5359 end]])])], |
| 5360 » [lt_cv_irix_exported_symbol=yes], |
| 5361 » [lt_cv_irix_exported_symbol=no]) |
| 5362 LDFLAGS="$save_LDFLAGS"]) |
| 5363 » if test "$lt_cv_irix_exported_symbol" = yes; then |
| 5364 _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' |
| 5365 » fi |
4853 else | 5366 else |
4854 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" |
$Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | 5367 » _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' |
4855 » _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $comp
iler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstr
ing" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $expo
rt_symbols -o $lib' | 5368 » _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' |
4856 fi | 5369 fi |
4857 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5370 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4859 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5372 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4860 _LT_TAGVAR(inherit_rpath, $1)=yes | 5373 _LT_TAGVAR(inherit_rpath, $1)=yes |
4861 _LT_TAGVAR(link_all_deplibs, $1)=yes | 5374 _LT_TAGVAR(link_all_deplibs, $1)=yes |
4862 ;; | 5375 ;; |
4863 | 5376 |
4864 netbsd*) | 5377 netbsd* | netbsdelf*-gnu) |
4865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 5378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4866 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out | 5379 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs
$linker_flags' # a.out |
4867 else | 5380 else |
4868 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin
ker_flags' # ELF | 5381 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $lin
ker_flags' # ELF |
4869 fi | 5382 fi |
4870 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5383 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4871 _LT_TAGVAR(hardcode_direct, $1)=yes | 5384 _LT_TAGVAR(hardcode_direct, $1)=yes |
4872 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 5385 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4873 ;; | 5386 ;; |
4874 | 5387 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4907 fi | 5420 fi |
4908 else | 5421 else |
4909 _LT_TAGVAR(ld_shlibs, $1)=no | 5422 _LT_TAGVAR(ld_shlibs, $1)=no |
4910 fi | 5423 fi |
4911 ;; | 5424 ;; |
4912 | 5425 |
4913 os2*) | 5426 os2*) |
4914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4915 _LT_TAGVAR(hardcode_minus_L, $1)=yes | 5428 _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4916 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 5429 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4917 _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" >> $
output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $
libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $depl
ibs $compiler_flags $output_objdir/$libname.def' | 5430 _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' |
4918 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libna
me.a $output_objdir/$libname.def' | 5431 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libna
me.a $output_objdir/$libname.def' |
4919 ;; | 5432 ;; |
4920 | 5433 |
4921 osf3*) | 5434 osf3*) |
4922 if test "$GCC" = yes; then | 5435 if test "$GCC" = yes; then |
4923 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5436 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4924 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $E
CHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${o
utput_objdir}/so_locations -o $lib' | 5437 » _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' |
4925 else | 5438 else |
4926 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4927 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set
_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o
$lib' | 5440 » _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' |
4928 fi | 5441 fi |
4929 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5442 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4931 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5444 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4932 ;; | 5445 ;; |
4933 | 5446 |
4934 osf4* | osf5*) # as osf3* with the addition of -msym flag | 5447 osf4* | osf5*) # as osf3* with the addition of -msym flag |
4935 if test "$GCC" = yes; then | 5448 if test "$GCC" = yes; then |
4936 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 5449 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4937 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verst
ring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_regist
ry ${wl}${output_objdir}/so_locations -o $lib' | 5450 » _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' |
4938 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4939 else | 5452 else |
4940 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5453 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4941 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobj
s $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO
"X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locatio
ns -o $lib' | 5454 » _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' |
4942 _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~ | 5455 _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~ |
4943 » $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f
lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_ver
sion $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib
~$RM $lib.exp' | 5456 » $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' |
4944 | 5457 |
4945 # Both c and cxx compiler support -rpath directly | 5458 # Both c and cxx compiler support -rpath directly |
4946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 5459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4947 fi | 5460 fi |
4948 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | 5461 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4949 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 5462 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4950 ;; | 5463 ;; |
4951 | 5464 |
4952 solaris*) | 5465 solaris*) |
4953 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | 5466 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
4954 if test "$GCC" = yes; then | 5467 if test "$GCC" = yes; then |
4955 wlarc='${wl}' | 5468 wlarc='${wl}' |
4956 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl
}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5469 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${
wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4957 _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~ | 5470 _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~ |
4958 » $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona
me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 5471 » $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' |
4959 else | 5472 else |
4960 case `$CC -V 2>&1` in | 5473 case `$CC -V 2>&1` in |
4961 *"Compilers 5.0"*) | 5474 *"Compilers 5.0"*) |
4962 wlarc='' | 5475 wlarc='' |
4963 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname
-o $lib $libobjs $deplibs $linker_flags' | 5476 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname
-o $lib $libobjs $deplibs $linker_flags' |
4964 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ | 5477 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $
export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib
.exp~ |
4965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$RM $lib.exp' | 5478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$RM $lib.exp' |
4966 ;; | 5479 ;; |
4967 *) | 5480 *) |
4968 wlarc='${wl}' | 5481 wlarc='${wl}' |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5124 | 5637 |
5125 if test "$enable_shared" = yes && test "$GCC" = yes; then | 5638 if test "$enable_shared" = yes && test "$GCC" = yes; then |
5126 case $_LT_TAGVAR(archive_cmds, $1) in | 5639 case $_LT_TAGVAR(archive_cmds, $1) in |
5127 *'~'*) | 5640 *'~'*) |
5128 # FIXME: we may have to deal with multi-command sequences. | 5641 # FIXME: we may have to deal with multi-command sequences. |
5129 ;; | 5642 ;; |
5130 '$CC '*) | 5643 '$CC '*) |
5131 # Test whether the compiler implicitly links with -lc since on some | 5644 # Test whether the compiler implicitly links with -lc since on some |
5132 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 5645 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5133 # to ld, don't add -lc before -lgcc. | 5646 # to ld, don't add -lc before -lgcc. |
5134 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 5647 AC_CACHE_CHECK([whether -lc should be explicitly linked in], |
5135 $RM conftest* | 5648 » [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), |
5136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 5649 » [$RM conftest* |
| 5650 » echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
5137 | 5651 |
5138 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 5652 » if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
5139 soname=conftest | 5653 » soname=conftest |
5140 lib=conftest | 5654 » lib=conftest |
5141 libobjs=conftest.$ac_objext | 5655 » libobjs=conftest.$ac_objext |
5142 deplibs= | 5656 » deplibs= |
5143 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | 5657 » wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
5144 » pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | 5658 » pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
5145 compiler_flags=-v | 5659 » compiler_flags=-v |
5146 linker_flags=-v | 5660 » linker_flags=-v |
5147 verstring= | 5661 » verstring= |
5148 output_objdir=. | 5662 » output_objdir=. |
5149 libname=conftest | 5663 » libname=conftest |
5150 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | 5664 » lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
5151 _LT_TAGVAR(allow_undefined_flag, $1)= | 5665 » _LT_TAGVAR(allow_undefined_flag, $1)= |
5152 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>
/dev/null 2\>\&1) | 5666 » if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \"
\>/dev/null 2\>\&1) |
5153 then | 5667 » then |
5154 » _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 5668 » lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5155 else | 5669 » else |
5156 » _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 5670 » lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5157 fi | 5671 » fi |
5158 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | 5672 » _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
5159 else | 5673 » else |
5160 cat conftest.err 1>&5 | 5674 » cat conftest.err 1>&5 |
5161 fi | 5675 » fi |
5162 $RM conftest* | 5676 » $RM conftest* |
5163 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) | 5677 » ]) |
| 5678 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need
_lc, $1) |
5164 ;; | 5679 ;; |
5165 esac | 5680 esac |
5166 fi | 5681 fi |
5167 ;; | 5682 ;; |
5168 esac | 5683 esac |
5169 | 5684 |
5170 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], | 5685 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
5171 [Whether or not to add -lc for building shared libraries]) | 5686 [Whether or not to add -lc for building shared libraries]) |
5172 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], | 5687 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
5173 [enable_shared_with_static_runtimes], [0], | 5688 [enable_shared_with_static_runtimes], [0], |
(...skipping 16 matching lines...) Expand all Loading... |
5190 _LT_TAGDECL([], [module_expsym_cmds], [2]) | 5705 _LT_TAGDECL([], [module_expsym_cmds], [2]) |
5191 _LT_TAGDECL([], [with_gnu_ld], [1], | 5706 _LT_TAGDECL([], [with_gnu_ld], [1], |
5192 [Whether we are building with GNU ld or not]) | 5707 [Whether we are building with GNU ld or not]) |
5193 _LT_TAGDECL([], [allow_undefined_flag], [1], | 5708 _LT_TAGDECL([], [allow_undefined_flag], [1], |
5194 [Flag that allows shared libraries with undefined symbols to be built]) | 5709 [Flag that allows shared libraries with undefined symbols to be built]) |
5195 _LT_TAGDECL([], [no_undefined_flag], [1], | 5710 _LT_TAGDECL([], [no_undefined_flag], [1], |
5196 [Flag that enforces no undefined symbols]) | 5711 [Flag that enforces no undefined symbols]) |
5197 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | 5712 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
5198 [Flag to hardcode $libdir into a binary during linking. | 5713 [Flag to hardcode $libdir into a binary during linking. |
5199 This must work even if $libdir does not exist]) | 5714 This must work even if $libdir does not exist]) |
5200 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | |
5201 [[If ld is used when linking, flag to hardcode $libdir into a binary | |
5202 during linking. This must work even if $libdir does not exist]]) | |
5203 _LT_TAGDECL([], [hardcode_libdir_separator], [1], | 5715 _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
5204 [Whether we need a single "-rpath" flag with a separated argument]) | 5716 [Whether we need a single "-rpath" flag with a separated argument]) |
5205 _LT_TAGDECL([], [hardcode_direct], [0], | 5717 _LT_TAGDECL([], [hardcode_direct], [0], |
5206 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 5718 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
5207 DIR into the resulting binary]) | 5719 DIR into the resulting binary]) |
5208 _LT_TAGDECL([], [hardcode_direct_absolute], [0], | 5720 _LT_TAGDECL([], [hardcode_direct_absolute], [0], |
5209 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | 5721 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
5210 DIR into the resulting binary and the resulting library dependency is | 5722 DIR into the resulting binary and the resulting library dependency is |
5211 "absolute", i.e impossible to change by setting ${shlibpath_var} if the | 5723 "absolute", i.e impossible to change by setting ${shlibpath_var} if the |
5212 library is relocated]) | 5724 library is relocated]) |
5213 _LT_TAGDECL([], [hardcode_minus_L], [0], | 5725 _LT_TAGDECL([], [hardcode_minus_L], [0], |
5214 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 5726 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
5215 into the resulting binary]) | 5727 into the resulting binary]) |
5216 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | 5728 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
5217 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 5729 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
5218 into the resulting binary]) | 5730 into the resulting binary]) |
5219 _LT_TAGDECL([], [hardcode_automatic], [0], | 5731 _LT_TAGDECL([], [hardcode_automatic], [0], |
5220 [Set to "yes" if building a shared library automatically hardcodes DIR | 5732 [Set to "yes" if building a shared library automatically hardcodes DIR |
5221 into the library and all subsequent libraries and executables linked | 5733 into the library and all subsequent libraries and executables linked |
5222 against it]) | 5734 against it]) |
5223 _LT_TAGDECL([], [inherit_rpath], [0], | 5735 _LT_TAGDECL([], [inherit_rpath], [0], |
5224 [Set to yes if linker adds runtime paths of dependent libraries | 5736 [Set to yes if linker adds runtime paths of dependent libraries |
5225 to runtime path list]) | 5737 to runtime path list]) |
5226 _LT_TAGDECL([], [link_all_deplibs], [0], | 5738 _LT_TAGDECL([], [link_all_deplibs], [0], |
5227 [Whether libtool must link a program against all its dependency libraries]) | 5739 [Whether libtool must link a program against all its dependency libraries]) |
5228 _LT_TAGDECL([], [fix_srcfile_path], [1], | |
5229 [Fix the shell variable $srcfile for the compiler]) | |
5230 _LT_TAGDECL([], [always_export_symbols], [0], | 5740 _LT_TAGDECL([], [always_export_symbols], [0], |
5231 [Set to "yes" if exported symbols are required]) | 5741 [Set to "yes" if exported symbols are required]) |
5232 _LT_TAGDECL([], [export_symbols_cmds], [2], | 5742 _LT_TAGDECL([], [export_symbols_cmds], [2], |
5233 [The commands to list exported symbols]) | 5743 [The commands to list exported symbols]) |
5234 _LT_TAGDECL([], [exclude_expsyms], [1], | 5744 _LT_TAGDECL([], [exclude_expsyms], [1], |
5235 [Symbols that should not be listed in the preloaded symbols]) | 5745 [Symbols that should not be listed in the preloaded symbols]) |
5236 _LT_TAGDECL([], [include_expsyms], [1], | 5746 _LT_TAGDECL([], [include_expsyms], [1], |
5237 [Symbols that must always be exported]) | 5747 [Symbols that must always be exported]) |
5238 _LT_TAGDECL([], [prelink_cmds], [2], | 5748 _LT_TAGDECL([], [prelink_cmds], [2], |
5239 [Commands necessary for linking programs (against libraries) with templates]
) | 5749 [Commands necessary for linking programs (against libraries) with templates]
) |
| 5750 _LT_TAGDECL([], [postlink_cmds], [2], |
| 5751 [Commands necessary for finishing linking programs]) |
5240 _LT_TAGDECL([], [file_list_spec], [1], | 5752 _LT_TAGDECL([], [file_list_spec], [1], |
5241 [Specify filename containing input files]) | 5753 [Specify filename containing input files]) |
5242 dnl FIXME: Not yet implemented | 5754 dnl FIXME: Not yet implemented |
5243 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | 5755 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
5244 dnl [Compiler flag to generate thread safe objects]) | 5756 dnl [Compiler flag to generate thread safe objects]) |
5245 ])# _LT_LINKER_SHLIBS | 5757 ])# _LT_LINKER_SHLIBS |
5246 | 5758 |
5247 | 5759 |
5248 # _LT_LANG_C_CONFIG([TAG]) | 5760 # _LT_LANG_C_CONFIG([TAG]) |
5249 # ------------------------ | 5761 # ------------------------ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5319 test "$enable_shared" = yes || enable_static=yes | 5831 test "$enable_shared" = yes || enable_static=yes |
5320 AC_MSG_RESULT([$enable_static]) | 5832 AC_MSG_RESULT([$enable_static]) |
5321 | 5833 |
5322 _LT_CONFIG($1) | 5834 _LT_CONFIG($1) |
5323 fi | 5835 fi |
5324 AC_LANG_POP | 5836 AC_LANG_POP |
5325 CC="$lt_save_CC" | 5837 CC="$lt_save_CC" |
5326 ])# _LT_LANG_C_CONFIG | 5838 ])# _LT_LANG_C_CONFIG |
5327 | 5839 |
5328 | 5840 |
5329 # _LT_PROG_CXX | |
5330 # ------------ | |
5331 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | |
5332 # compiler, we have our own version here. | |
5333 m4_defun([_LT_PROG_CXX], | |
5334 [ | |
5335 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | |
5336 AC_PROG_CXX | |
5337 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5338 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5339 (test "X$CXX" != "Xg++"))) ; then | |
5340 AC_PROG_CXXCPP | |
5341 else | |
5342 _lt_caught_CXX_error=yes | |
5343 fi | |
5344 popdef([AC_MSG_ERROR]) | |
5345 ])# _LT_PROG_CXX | |
5346 | |
5347 dnl aclocal-1.4 backwards compatibility: | |
5348 dnl AC_DEFUN([_LT_PROG_CXX], []) | |
5349 | |
5350 | |
5351 # _LT_LANG_CXX_CONFIG([TAG]) | 5841 # _LT_LANG_CXX_CONFIG([TAG]) |
5352 # -------------------------- | 5842 # -------------------------- |
5353 # Ensure that the configuration variables for a C++ compiler are suitably | 5843 # Ensure that the configuration variables for a C++ compiler are suitably |
5354 # defined. These variables are subsequently used by _LT_CONFIG to write | 5844 # defined. These variables are subsequently used by _LT_CONFIG to write |
5355 # the compiler configuration to `libtool'. | 5845 # the compiler configuration to `libtool'. |
5356 m4_defun([_LT_LANG_CXX_CONFIG], | 5846 m4_defun([_LT_LANG_CXX_CONFIG], |
5357 [AC_REQUIRE([_LT_PROG_CXX])dnl | 5847 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
5358 m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
5359 m4_require([_LT_DECL_EGREP])dnl | 5848 m4_require([_LT_DECL_EGREP])dnl |
| 5849 m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
| 5850 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5851 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5852 (test "X$CXX" != "Xg++"))) ; then |
| 5853 AC_PROG_CXXCPP |
| 5854 else |
| 5855 _lt_caught_CXX_error=yes |
| 5856 fi |
5360 | 5857 |
5361 AC_LANG_PUSH(C++) | 5858 AC_LANG_PUSH(C++) |
5362 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 5859 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5363 _LT_TAGVAR(allow_undefined_flag, $1)= | 5860 _LT_TAGVAR(allow_undefined_flag, $1)= |
5364 _LT_TAGVAR(always_export_symbols, $1)=no | 5861 _LT_TAGVAR(always_export_symbols, $1)=no |
5365 _LT_TAGVAR(archive_expsym_cmds, $1)= | 5862 _LT_TAGVAR(archive_expsym_cmds, $1)= |
5366 _LT_TAGVAR(compiler_needs_object, $1)=no | 5863 _LT_TAGVAR(compiler_needs_object, $1)=no |
5367 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 5864 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
5368 _LT_TAGVAR(hardcode_direct, $1)=no | 5865 _LT_TAGVAR(hardcode_direct, $1)=no |
5369 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 5866 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5371 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5372 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 5868 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5373 _LT_TAGVAR(hardcode_minus_L, $1)=no | 5869 _LT_TAGVAR(hardcode_minus_L, $1)=no |
5374 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5870 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5375 _LT_TAGVAR(hardcode_automatic, $1)=no | 5871 _LT_TAGVAR(hardcode_automatic, $1)=no |
5376 _LT_TAGVAR(inherit_rpath, $1)=no | 5872 _LT_TAGVAR(inherit_rpath, $1)=no |
5377 _LT_TAGVAR(module_cmds, $1)= | 5873 _LT_TAGVAR(module_cmds, $1)= |
5378 _LT_TAGVAR(module_expsym_cmds, $1)= | 5874 _LT_TAGVAR(module_expsym_cmds, $1)= |
5379 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 5875 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
5380 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 5876 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 5877 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 5878 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
5381 _LT_TAGVAR(no_undefined_flag, $1)= | 5879 _LT_TAGVAR(no_undefined_flag, $1)= |
5382 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 5880 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5383 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 5881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5384 | 5882 |
5385 # Source file extension for C++ test sources. | 5883 # Source file extension for C++ test sources. |
5386 ac_ext=cpp | 5884 ac_ext=cpp |
5387 | 5885 |
5388 # Object file extension for compiled C++ test sources. | 5886 # Object file extension for compiled C++ test sources. |
5389 objext=o | 5887 objext=o |
5390 _LT_TAGVAR(objext, $1)=$objext | 5888 _LT_TAGVAR(objext, $1)=$objext |
(...skipping 11 matching lines...) Expand all Loading... |
5402 | 5900 |
5403 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 5901 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
5404 _LT_TAG_COMPILER | 5902 _LT_TAG_COMPILER |
5405 | 5903 |
5406 # save warnings/boilerplate of simple test code | 5904 # save warnings/boilerplate of simple test code |
5407 _LT_COMPILER_BOILERPLATE | 5905 _LT_COMPILER_BOILERPLATE |
5408 _LT_LINKER_BOILERPLATE | 5906 _LT_LINKER_BOILERPLATE |
5409 | 5907 |
5410 # Allow CC to be a program name with arguments. | 5908 # Allow CC to be a program name with arguments. |
5411 lt_save_CC=$CC | 5909 lt_save_CC=$CC |
| 5910 lt_save_CFLAGS=$CFLAGS |
5412 lt_save_LD=$LD | 5911 lt_save_LD=$LD |
5413 lt_save_GCC=$GCC | 5912 lt_save_GCC=$GCC |
5414 GCC=$GXX | 5913 GCC=$GXX |
5415 lt_save_with_gnu_ld=$with_gnu_ld | 5914 lt_save_with_gnu_ld=$with_gnu_ld |
5416 lt_save_path_LD=$lt_cv_path_LD | 5915 lt_save_path_LD=$lt_cv_path_LD |
5417 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 5916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
5418 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 5917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
5419 else | 5918 else |
5420 $as_unset lt_cv_prog_gnu_ld | 5919 $as_unset lt_cv_prog_gnu_ld |
5421 fi | 5920 fi |
5422 if test -n "${lt_cv_path_LDCXX+set}"; then | 5921 if test -n "${lt_cv_path_LDCXX+set}"; then |
5423 lt_cv_path_LD=$lt_cv_path_LDCXX | 5922 lt_cv_path_LD=$lt_cv_path_LDCXX |
5424 else | 5923 else |
5425 $as_unset lt_cv_path_LD | 5924 $as_unset lt_cv_path_LD |
5426 fi | 5925 fi |
5427 test -z "${LDCXX+set}" || LD=$LDCXX | 5926 test -z "${LDCXX+set}" || LD=$LDCXX |
5428 CC=${CXX-"c++"} | 5927 CC=${CXX-"c++"} |
| 5928 CFLAGS=$CXXFLAGS |
5429 compiler=$CC | 5929 compiler=$CC |
5430 _LT_TAGVAR(compiler, $1)=$CC | 5930 _LT_TAGVAR(compiler, $1)=$CC |
5431 _LT_CC_BASENAME([$compiler]) | 5931 _LT_CC_BASENAME([$compiler]) |
5432 | 5932 |
5433 if test -n "$compiler"; then | 5933 if test -n "$compiler"; then |
5434 # We don't want -fno-exception when compiling C++ code, so set the | 5934 # We don't want -fno-exception when compiling C++ code, so set the |
5435 # no_builtin_flag separately | 5935 # no_builtin_flag separately |
5436 if test "$GXX" = yes; then | 5936 if test "$GXX" = yes; then |
5437 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 5937 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
5438 else | 5938 else |
5439 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | 5939 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
5440 fi | 5940 fi |
5441 | 5941 |
5442 if test "$GXX" = yes; then | 5942 if test "$GXX" = yes; then |
5443 # Set up default GNU C++ configuration | 5943 # Set up default GNU C++ configuration |
5444 | 5944 |
5445 LT_PATH_LD | 5945 LT_PATH_LD |
5446 | 5946 |
5447 # Check if GNU C++ uses GNU ld as the underlying linker, since the | 5947 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
5448 # archiving commands below assume that GNU ld is being used. | 5948 # archiving commands below assume that GNU ld is being used. |
5449 if test "$with_gnu_ld" = yes; then | 5949 if test "$with_gnu_ld" = yes; then |
5450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5950 _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' |
5451 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objec
ts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${
wl}-retain-symbols-file $wl$export_symbols -o $lib' | 5951 _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' |
5452 | 5952 |
5453 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5454 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5455 | 5955 |
5456 # If archive_cmds runs LD, not CC, wlarc should be empty | 5956 # If archive_cmds runs LD, not CC, wlarc should be empty |
5457 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 5957 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
5458 # investigate it a little bit more. (MM) | 5958 # investigate it a little bit more. (MM) |
5459 wlarc='${wl}' | 5959 wlarc='${wl}' |
5460 | 5960 |
5461 # ancient GNU ld didn't support --whole-archive et. al. | 5961 # ancient GNU ld didn't support --whole-archive et. al. |
(...skipping 11 matching lines...) Expand all Loading... |
5473 # command for GNU C++ for the case where it uses the native | 5973 # command for GNU C++ for the case where it uses the native |
5474 # linker, instead of GNU ld. If possible, this setting should | 5974 # linker, instead of GNU ld. If possible, this setting should |
5475 # overridden to take advantage of the native linker features on | 5975 # overridden to take advantage of the native linker features on |
5476 # the platform it is being used on. | 5976 # the platform it is being used on. |
5477 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags -o $lib' | 5977 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags -o $lib' |
5478 fi | 5978 fi |
5479 | 5979 |
5480 # Commands to make compiler produce verbose output that lists | 5980 # Commands to make compiler produce verbose output that lists |
5481 # what "hidden" libraries, object files and flags are used when | 5981 # what "hidden" libraries, object files and flags are used when |
5482 # linking a shared library. | 5982 # linking a shared library. |
5483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $G
REP "\-L"' | 5983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $G
REP -v "^Configured with:" | $GREP "\-L"' |
5484 | 5984 |
5485 else | 5985 else |
5486 GXX=no | 5986 GXX=no |
5487 with_gnu_ld=no | 5987 with_gnu_ld=no |
5488 wlarc= | 5988 wlarc= |
5489 fi | 5989 fi |
5490 | 5990 |
5491 # PORTME: fill in a description of your system's C++ link characteristics | 5991 # PORTME: fill in a description of your system's C++ link characteristics |
5492 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie
s]) | 5992 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librarie
s]) |
5493 _LT_TAGVAR(ld_shlibs, $1)=yes | 5993 _LT_TAGVAR(ld_shlibs, $1)=yes |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5582 # It seems that -bexpall does not export symbols beginning with | 6082 # It seems that -bexpall does not export symbols beginning with |
5583 # underscore (_), so it is better to generate a list of symbols to | 6083 # underscore (_), so it is better to generate a list of symbols to |
5584 # export. | 6084 # export. |
5585 _LT_TAGVAR(always_export_symbols, $1)=yes | 6085 _LT_TAGVAR(always_export_symbols, $1)=yes |
5586 if test "$aix_use_runtimelinking" = yes; then | 6086 if test "$aix_use_runtimelinking" = yes; then |
5587 # Warning - without using the other runtime loading flags (-brtl), | 6087 # Warning - without using the other runtime loading flags (-brtl), |
5588 # -berok will link without error, but may produce a broken library. | 6088 # -berok will link without error, but may produce a broken library. |
5589 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | 6089 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
5590 # Determine the default libpath from the value encoded in an empty | 6090 # Determine the default libpath from the value encoded in an empty |
5591 # executable. | 6091 # executable. |
5592 _LT_SYS_MODULE_PATH_AIX | 6092 _LT_SYS_MODULE_PATH_AIX([$1]) |
5593 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a
ix_libpath" | 6093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$a
ix_libpath" |
5594 | 6094 |
5595 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :;
fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 6095 _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" |
5596 else | 6096 else |
5597 if test "$host_cpu" = ia64; then | 6097 if test "$host_cpu" = ia64; then |
5598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:
/lib' | 6098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:
/lib' |
5599 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 6099 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5600 _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" | 6100 _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" |
5601 else | 6101 else |
5602 # Determine the default libpath from the value encoded in an | 6102 # Determine the default libpath from the value encoded in an |
5603 # empty executable. | 6103 # empty executable. |
5604 » _LT_SYS_MODULE_PATH_AIX | 6104 » _LT_SYS_MODULE_PATH_AIX([$1]) |
5605 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"
$aix_libpath" | 6105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"
$aix_libpath" |
5606 # Warning - without using the other run time loading flags, | 6106 # Warning - without using the other run time loading flags, |
5607 # -berok will link without error, but may produce a broken library. | 6107 # -berok will link without error, but may produce a broken library. |
5608 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 6108 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5609 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 6109 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5610 » # Exported symbols can be pulled into shared objects from archives | 6110 » if test "$with_gnu_ld" = yes; then |
5611 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 6111 » # We only use this code for GNU lds that support --whole-archive. |
| 6112 » _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conv
enience ${wl}--no-whole-archive' |
| 6113 » else |
| 6114 » # Exported symbols can be pulled into shared objects from archives |
| 6115 » _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 6116 » fi |
5612 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | 6117 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5613 # This is similar to how AIX traditionally builds its shared | 6118 # This is similar to how AIX traditionally builds its shared |
5614 # libraries. | 6119 # libraries. |
5615 _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' | 6120 _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' |
5616 fi | 6121 fi |
5617 fi | 6122 fi |
5618 ;; | 6123 ;; |
5619 | 6124 |
5620 beos*) | 6125 beos*) |
5621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n | 6126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
5622 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6127 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 6128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
5624 # support --undefined. This deserves some investigation. FIXME | 6129 # support --undefined. This deserves some investigation. FIXME |
5625 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' | 6130 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib' |
5626 else | 6131 else |
5627 _LT_TAGVAR(ld_shlibs, $1)=no | 6132 _LT_TAGVAR(ld_shlibs, $1)=no |
5628 fi | 6133 fi |
5629 ;; | 6134 ;; |
5630 | 6135 |
5631 chorus*) | 6136 chorus*) |
5632 case $cc_basename in | 6137 case $cc_basename in |
5633 *) | 6138 *) |
5634 # FIXME: insert proper C++ library support | 6139 # FIXME: insert proper C++ library support |
5635 _LT_TAGVAR(ld_shlibs, $1)=no | 6140 _LT_TAGVAR(ld_shlibs, $1)=no |
5636 ;; | 6141 ;; |
5637 esac | 6142 esac |
5638 ;; | 6143 ;; |
5639 | 6144 |
5640 cygwin* | mingw* | pw32* | cegcc*) | 6145 cygwin* | mingw* | pw32* | cegcc*) |
5641 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | 6146 » case $GXX,$cc_basename in |
5642 # as there is no search path for DLLs. | 6147 » ,cl* | no,cl*) |
5643 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6148 » # Native MSVC |
5644 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | 6149 » # hardcode_libdir_flag_spec is actually meaningless, as there is |
5645 _LT_TAGVAR(always_export_symbols, $1)=no | 6150 » # no search path for DLLs. |
5646 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 6151 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 6152 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6153 » _LT_TAGVAR(always_export_symbols, $1)=yes |
| 6154 » _LT_TAGVAR(file_list_spec, $1)='@' |
| 6155 » # Tell ltmain to make .lib files, not .a files. |
| 6156 » libext=lib |
| 6157 » # Tell ltmain to make .dll files, not .so files. |
| 6158 » shrext_cmds=".dll" |
| 6159 » # FIXME: Setting linknames here is a bad hack. |
| 6160 » _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $
compiler_flags $deplibs -Wl,-dll~linknames=' |
| 6161 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbol
s`" = xEXPORTS; then |
| 6162 » $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1
\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 6163 » else |
| 6164 » $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expor
t_symbols > $output_objdir/$soname.exp; |
| 6165 » fi~ |
| 6166 » $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs
"@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.
dll.lib"~ |
| 6167 » linknames=' |
| 6168 » # The linker will not automatically build a static lib if we build a D
LL. |
| 6169 » # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 6170 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 6171 » # Don't use ranlib |
| 6172 » _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| 6173 » _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| 6174 » lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 6175 » case $lt_outputfile in |
| 6176 » *.exe|*.EXE) ;; |
| 6177 » *) |
| 6178 » » lt_outputfile="$lt_outputfile.exe" |
| 6179 » » lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 6180 » » ;; |
| 6181 » esac~ |
| 6182 » func_to_tool_file "$lt_outputfile"~ |
| 6183 » if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"
; then |
| 6184 » $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputres
ource:"$lt_tool_outputfile" || exit 1; |
| 6185 » $RM "$lt_outputfile.manifest"; |
| 6186 » fi' |
| 6187 » ;; |
| 6188 » *) |
| 6189 » # g++ |
| 6190 » # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 6191 » # as there is no search path for DLLs. |
| 6192 » _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 6193 » _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
| 6194 » _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 6195 » _LT_TAGVAR(always_export_symbols, $1)=no |
| 6196 » _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5647 | 6197 |
5648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 6198 » if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5649 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}
--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 6199 » _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' |
5650 # If the export-symbols file already is a .def file (1st line | 6200 » # If the export-symbols file already is a .def file (1st line |
5651 # is EXPORTS), use it as is; otherwise, prepend... | 6201 » # is EXPORTS), use it as is; otherwise, prepend... |
5652 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbol
s`" = xEXPORTS; then | 6202 » _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb
ols`" = xEXPORTS; then |
5653 » cp $export_symbols $output_objdir/$soname.def; | 6203 » cp $export_symbols $output_objdir/$soname.def; |
5654 else | 6204 » else |
5655 » echo EXPORTS > $output_objdir/$soname.def; | 6205 » echo EXPORTS > $output_objdir/$soname.def; |
5656 » cat $export_symbols >> $output_objdir/$soname.def; | 6206 » cat $export_symbols >> $output_objdir/$soname.def; |
5657 fi~ | 6207 » fi~ |
5658 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libo
bjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--e
nable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 6208 » $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' |
5659 else | 6209 » else |
5660 _LT_TAGVAR(ld_shlibs, $1)=no | 6210 » _LT_TAGVAR(ld_shlibs, $1)=no |
5661 fi | 6211 » fi |
5662 ;; | 6212 » ;; |
| 6213 » esac |
| 6214 » ;; |
5663 darwin* | rhapsody*) | 6215 darwin* | rhapsody*) |
5664 _LT_DARWIN_LINKER_FEATURES($1) | 6216 _LT_DARWIN_LINKER_FEATURES($1) |
5665 ;; | 6217 ;; |
5666 | 6218 |
5667 dgux*) | 6219 dgux*) |
5668 case $cc_basename in | 6220 case $cc_basename in |
5669 ec++*) | 6221 ec++*) |
5670 # FIXME: insert proper C++ library support | 6222 # FIXME: insert proper C++ library support |
5671 _LT_TAGVAR(ld_shlibs, $1)=no | 6223 _LT_TAGVAR(ld_shlibs, $1)=no |
5672 ;; | 6224 ;; |
5673 ghcx*) | 6225 ghcx*) |
5674 # Green Hills C++ Compiler | 6226 # Green Hills C++ Compiler |
5675 # FIXME: insert proper C++ library support | 6227 # FIXME: insert proper C++ library support |
5676 _LT_TAGVAR(ld_shlibs, $1)=no | 6228 _LT_TAGVAR(ld_shlibs, $1)=no |
5677 ;; | 6229 ;; |
5678 *) | 6230 *) |
5679 # FIXME: insert proper C++ library support | 6231 # FIXME: insert proper C++ library support |
5680 _LT_TAGVAR(ld_shlibs, $1)=no | 6232 _LT_TAGVAR(ld_shlibs, $1)=no |
5681 ;; | 6233 ;; |
5682 esac | 6234 esac |
5683 ;; | 6235 ;; |
5684 | 6236 |
5685 freebsd[[12]]*) | 6237 freebsd2.*) |
5686 # C++ shared libraries reported to be fairly broken before | 6238 # C++ shared libraries reported to be fairly broken before |
5687 # switch to ELF | 6239 # switch to ELF |
5688 _LT_TAGVAR(ld_shlibs, $1)=no | 6240 _LT_TAGVAR(ld_shlibs, $1)=no |
5689 ;; | 6241 ;; |
5690 | 6242 |
5691 freebsd-elf*) | 6243 freebsd-elf*) |
5692 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6244 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5693 ;; | 6245 ;; |
5694 | 6246 |
5695 freebsd* | dragonfly*) | 6247 freebsd* | dragonfly*) |
5696 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 6248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
5697 # conventions | 6249 # conventions |
5698 _LT_TAGVAR(ld_shlibs, $1)=yes | 6250 _LT_TAGVAR(ld_shlibs, $1)=yes |
5699 ;; | 6251 ;; |
5700 | 6252 |
5701 gnu*) | 6253 haiku*) |
| 6254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname -o $lib' |
| 6255 _LT_TAGVAR(link_all_deplibs, $1)=yes |
5702 ;; | 6256 ;; |
5703 | 6257 |
5704 hpux9*) | 6258 hpux9*) |
5705 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 6259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5706 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6260 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5707 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6261 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5708 _LT_TAGVAR(hardcode_direct, $1)=yes | 6262 _LT_TAGVAR(hardcode_direct, $1)=yes |
5709 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 6263 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
5710 # but as the default | 6264 # but as the default |
5711 # location of the library. | 6265 # location of the library. |
5712 | 6266 |
5713 case $cc_basename in | 6267 case $cc_basename in |
5714 CC*) | 6268 CC*) |
5715 # FIXME: insert proper C++ library support | 6269 # FIXME: insert proper C++ library support |
5716 _LT_TAGVAR(ld_shlibs, $1)=no | 6270 _LT_TAGVAR(ld_shlibs, $1)=no |
5717 ;; | 6271 ;; |
5718 aCC*) | 6272 aCC*) |
5719 _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' | 6273 _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' |
5720 # Commands to make compiler produce verbose output that lists | 6274 # Commands to make compiler produce verbose output that lists |
5721 # what "hidden" libraries, object files and flags are used when | 6275 # what "hidden" libraries, object files and flags are used when |
5722 # linking a shared library. | 6276 # linking a shared library. |
5723 # | 6277 # |
5724 # There doesn't appear to be a way to prevent this compiler from | 6278 # There doesn't appear to be a way to prevent this compiler from |
5725 # explicitly linking system object files so we need to strip them | 6279 # explicitly linking system object files so we need to strip them |
5726 # from the output so that they don't get included in the library | 6280 # from the output so that they don't get included in the library |
5727 # dependencies. | 6281 # dependencies. |
5728 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; $ECHO "X$l
ist" | $Xsed' | 6282 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"' |
5729 ;; | 6283 ;; |
5730 *) | 6284 *) |
5731 if test "$GXX" = yes; then | 6285 if test "$GXX" = yes; then |
5732 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shar
ed -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $prede
p_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir
/$soname = $lib || mv $output_objdir/$soname $lib' | 6286 _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' |
5733 else | 6287 else |
5734 # FIXME: insert proper C++ library support | 6288 # FIXME: insert proper C++ library support |
5735 _LT_TAGVAR(ld_shlibs, $1)=no | 6289 _LT_TAGVAR(ld_shlibs, $1)=no |
5736 fi | 6290 fi |
5737 ;; | 6291 ;; |
5738 esac | 6292 esac |
5739 ;; | 6293 ;; |
5740 | 6294 |
5741 hpux10*|hpux11*) | 6295 hpux10*|hpux11*) |
5742 if test $with_gnu_ld = no; then | 6296 if test $with_gnu_ld = no; then |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5783 ;; | 6337 ;; |
5784 esac | 6338 esac |
5785 # Commands to make compiler produce verbose output that lists | 6339 # Commands to make compiler produce verbose output that lists |
5786 # what "hidden" libraries, object files and flags are used when | 6340 # what "hidden" libraries, object files and flags are used when |
5787 # linking a shared library. | 6341 # linking a shared library. |
5788 # | 6342 # |
5789 # There doesn't appear to be a way to prevent this compiler from | 6343 # There doesn't appear to be a way to prevent this compiler from |
5790 # explicitly linking system object files so we need to strip them | 6344 # explicitly linking system object files so we need to strip them |
5791 # from the output so that they don't get included in the library | 6345 # from the output so that they don't get included in the library |
5792 # dependencies. | 6346 # dependencies. |
5793 » 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; $ECHO "X$li
st" | $Xsed' | 6347 » 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"' |
5794 ;; | 6348 ;; |
5795 *) | 6349 *) |
5796 if test "$GXX" = yes; then | 6350 if test "$GXX" = yes; then |
5797 if test $with_gnu_ld = no; then | 6351 if test $with_gnu_ld = no; then |
5798 case $host_cpu in | 6352 case $host_cpu in |
5799 hppa*64*) | 6353 hppa*64*) |
5800 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c
ompiler_flags' | 6354 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c
ompiler_flags' |
5801 ;; | 6355 ;; |
5802 ia64*) | 6356 ia64*) |
5803 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags' | 6357 » _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' |
5804 ;; | 6358 ;; |
5805 *) | 6359 *) |
5806 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${
wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags' | 6360 » _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' |
5807 ;; | 6361 ;; |
5808 esac | 6362 esac |
5809 fi | 6363 fi |
5810 else | 6364 else |
5811 # FIXME: insert proper C++ library support | 6365 # FIXME: insert proper C++ library support |
5812 _LT_TAGVAR(ld_shlibs, $1)=no | 6366 _LT_TAGVAR(ld_shlibs, $1)=no |
5813 fi | 6367 fi |
5814 ;; | 6368 ;; |
5815 esac | 6369 esac |
5816 ;; | 6370 ;; |
5817 | 6371 |
5818 interix[[3-9]]*) | 6372 interix[[3-9]]*) |
5819 _LT_TAGVAR(hardcode_direct, $1)=no | 6373 _LT_TAGVAR(hardcode_direct, $1)=no |
5820 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6374 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5821 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6376 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5823 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 6377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
5824 # Instead, shared libraries are loaded at an image base (0x10000000 by | 6378 # Instead, shared libraries are loaded at an image base (0x10000000 by |
5825 # default) and relocated if they conflict, which is a slow very memory | 6379 # default) and relocated if they conflict, which is a slow very memory |
5826 # consuming and fragmenting process. To avoid this, we pick a random, | 6380 # consuming and fragmenting process. To avoid this, we pick a random, |
5827 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 6381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
5828 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 6382 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
5829 _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' | 6383 _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' |
5830 _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' | 6384 _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' |
5831 ;; | 6385 ;; |
5832 irix5* | irix6*) | 6386 irix5* | irix6*) |
5833 case $cc_basename in | 6387 case $cc_basename in |
5834 CC*) | 6388 CC*) |
5835 # SGI C++ | 6389 # SGI C++ |
5836 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_obj
ects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n
"$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${ou
tput_objdir}/so_locations -o $lib' | 6390 » _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' |
5837 | 6391 |
5838 # Archives containing C++ object files must be created using | 6392 # Archives containing C++ object files must be created using |
5839 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 6393 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
5840 # necessary to make sure instantiated templates are included | 6394 # necessary to make sure instantiated templates are included |
5841 # in the archive. | 6395 # in the archive. |
5842 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs
' | 6396 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs
' |
5843 ;; | 6397 ;; |
5844 *) | 6398 *) |
5845 if test "$GXX" = yes; then | 6399 if test "$GXX" = yes; then |
5846 if test "$with_gnu_ld" = no; then | 6400 if test "$with_gnu_ld" = no; then |
5847 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${
wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 6401 » _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' |
5848 else | 6402 else |
5849 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname
`test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o
$lib' | 6403 » _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' |
5850 fi | 6404 fi |
5851 fi | 6405 fi |
5852 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6406 _LT_TAGVAR(link_all_deplibs, $1)=yes |
5853 ;; | 6407 ;; |
5854 esac | 6408 esac |
5855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6409 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5856 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6410 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5857 _LT_TAGVAR(inherit_rpath, $1)=yes | 6411 _LT_TAGVAR(inherit_rpath, $1)=yes |
5858 ;; | 6412 ;; |
5859 | 6413 |
5860 linux* | k*bsd*-gnu) | 6414 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5861 case $cc_basename in | 6415 case $cc_basename in |
5862 KCC*) | 6416 KCC*) |
5863 # Kuck and Associates, Inc. (KAI) C++ Compiler | 6417 # Kuck and Associates, Inc. (KAI) C++ Compiler |
5864 | 6418 |
5865 # KCC will only create a shared library if the output file | 6419 # KCC will only create a shared library if the output file |
5866 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 6420 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
5867 # to its proper name (with version) after linking. | 6421 # to its proper name (with version) after linking. |
5868 _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' | 6422 _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' |
5869 _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' | 6423 _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' |
5870 # Commands to make compiler produce verbose output that lists | 6424 # Commands to make compiler produce verbose output that lists |
5871 # what "hidden" libraries, object files and flags are used when | 6425 # what "hidden" libraries, object files and flags are used when |
5872 # linking a shared library. | 6426 # linking a shared library. |
5873 # | 6427 # |
5874 # There doesn't appear to be a way to prevent this compiler from | 6428 # There doesn't appear to be a way to prevent this compiler from |
5875 # explicitly linking system object files so we need to strip them | 6429 # explicitly linking system object files so we need to strip them |
5876 # from the output so that they don't get included in the library | 6430 # from the output so that they don't get included in the library |
5877 # dependencies. | 6431 # dependencies. |
5878 » 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; $ECHO "X$list" | $Xsed' | 6432 » 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"' |
5879 | 6433 |
5880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5881 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6435 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5882 | 6436 |
5883 # Archives containing C++ object files must be created using | 6437 # Archives containing C++ object files must be created using |
5884 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 6438 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
5885 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 6439 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
5886 ;; | 6440 ;; |
5887 icpc* | ecpc* ) | 6441 icpc* | ecpc* ) |
5888 # Intel C++ | 6442 # Intel C++ |
(...skipping 16 matching lines...) Expand all Loading... |
5905 ;; | 6459 ;; |
5906 esac | 6460 esac |
5907 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 6461 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6462 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5909 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6463 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5910 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven
ience ${wl}--no-whole-archive' | 6464 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$conven
ience ${wl}--no-whole-archive' |
5911 ;; | 6465 ;; |
5912 pgCC* | pgcpp*) | 6466 pgCC* | pgcpp*) |
5913 # Portland Group C++ compiler | 6467 # Portland Group C++ compiler |
5914 case `$CC -V` in | 6468 case `$CC -V` in |
5915 » *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | 6469 » *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) |
5916 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | 6470 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
5917 rm -rf $tpldir~ | 6471 rm -rf $tpldir~ |
5918 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs
$compile_deplibs~ | 6472 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs
$compile_deplibs~ |
5919 » » compile_command="$compile_command `find $tpldir -name \*.o | $NL
2SP`"' | 6473 » » compile_command="$compile_command `find $tpldir -name \*.o | sor
t | $NL2SP`"' |
5920 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | 6474 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
5921 rm -rf $tpldir~ | 6475 rm -rf $tpldir~ |
5922 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d
eplibs~ | 6476 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d
eplibs~ |
5923 » » $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*
.o | $NL2SP`~ | 6477 » » $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*
.o | sort | $NL2SP`~ |
5924 $RANLIB $oldlib' | 6478 $RANLIB $oldlib' |
5925 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | 6479 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
5926 rm -rf $tpldir~ | 6480 rm -rf $tpldir~ |
5927 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ | 6481 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
5928 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$s
oname -o $lib' | 6482 » » $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' |
5929 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | 6483 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
5930 rm -rf $tpldir~ | 6484 rm -rf $tpldir~ |
5931 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ | 6485 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
5932 » » $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$s
oname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 6486 » » $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' |
5933 ;; | 6487 ;; |
5934 » *) # Version 6 will use weak symbols | 6488 » *) # Version 6 and above use weak symbols |
5935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object
s $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -
o $lib' | 6489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object
s $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -
o $lib' |
5936 _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' | 6490 _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' |
5937 ;; | 6491 ;; |
5938 esac | 6492 esac |
5939 | 6493 |
5940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir
' | 6494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir
' |
5941 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6495 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5942 » _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | 6496 » _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' |
5943 ;; | 6497 ;; |
5944 cxx*) | 6498 cxx*) |
5945 # Compaq C++ | 6499 # Compaq C++ |
5946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 6500 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5947 _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' | 6501 _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' |
5948 | 6502 |
5949 runpath_var=LD_RUN_PATH | 6503 runpath_var=LD_RUN_PATH |
5950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6504 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
5951 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6505 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5952 | 6506 |
5953 # Commands to make compiler produce verbose output that lists | 6507 # Commands to make compiler produce verbose output that lists |
5954 # what "hidden" libraries, object files and flags are used when | 6508 # what "hidden" libraries, object files and flags are used when |
5955 # linking a shared library. | 6509 # linking a shared library. |
5956 # | 6510 # |
5957 # There doesn't appear to be a way to prevent this compiler from | 6511 # There doesn't appear to be a way to prevent this compiler from |
5958 # explicitly linking system object files so we need to strip them | 6512 # explicitly linking system object files so we need to strip them |
5959 # from the output so that they don't get included in the library | 6513 # from the output so that they don't get included in the library |
5960 # dependencies. | 6514 # dependencies. |
5961 » output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\
)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objex
t) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list"
| $Xsed' | 6515 » 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' |
5962 ;; | 6516 ;; |
5963 » xl*) | 6517 » xl* | mpixl* | bgxl*) |
5964 # IBM XL 8.0 on PPC, with GNU ld | 6518 # IBM XL 8.0 on PPC, with GNU ld |
5965 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5966 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 6520 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5967 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname -o $lib' | 6521 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $comp
iler_flags ${wl}-soname $wl$soname -o $lib' |
5968 if test "x$supports_anon_versioning" = xyes; then | 6522 if test "x$supports_anon_versioning" = xyes; then |
5969 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob
jdir/$libname.ver~ | 6523 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ob
jdir/$libname.ver~ |
5970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~ | 6524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~ |
5971 echo "local: *; };" >> $output_objdir/$libname.ver~ | 6525 echo "local: *; };" >> $output_objdir/$libname.ver~ |
5972 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $w
l$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 6526 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $w
l$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
5973 fi | 6527 fi |
5974 ;; | 6528 ;; |
5975 *) | 6529 *) |
5976 case `$CC -V 2>&1 | sed 5q` in | 6530 case `$CC -V 2>&1 | sed 5q` in |
5977 *Sun\ C*) | 6531 *Sun\ C*) |
5978 # Sun C++ 5.9 | 6532 # Sun C++ 5.9 |
5979 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 6533 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
5980 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$son
ame -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6534 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$son
ame -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
5981 _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' | 6535 _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' |
5982 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6536 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5983 » _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; $ECHO \"$new_convenience\"` ${wl}--no-whol
e-archive' | 6537 » _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' |
5984 _LT_TAGVAR(compiler_needs_object, $1)=yes | 6538 _LT_TAGVAR(compiler_needs_object, $1)=yes |
5985 | 6539 |
5986 # Not sure whether something based on | 6540 # Not sure whether something based on |
5987 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 6541 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
5988 # would be better. | 6542 # would be better. |
5989 » output_verbose_link_cmd='echo' | 6543 » output_verbose_link_cmd='func_echo_all' |
5990 | 6544 |
5991 # Archives containing C++ object files must be created using | 6545 # Archives containing C++ object files must be created using |
5992 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 6546 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
5993 # necessary to make sure instantiated templates are included | 6547 # necessary to make sure instantiated templates are included |
5994 # in the archive. | 6548 # in the archive. |
5995 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 6549 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
5996 ;; | 6550 ;; |
5997 esac | 6551 esac |
5998 ;; | 6552 ;; |
5999 esac | 6553 esac |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6048 _LT_TAGVAR(hardcode_direct, $1)=yes | 6602 _LT_TAGVAR(hardcode_direct, $1)=yes |
6049 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6603 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6050 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | 6604 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
6051 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 6605 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
6052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6053 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_o
s-$host_cpu" = "openbsd2.8-powerpc"; then | 6607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_o
s-$host_cpu" = "openbsd2.8-powerpc"; then |
6054 _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' | 6608 _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' |
6055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6609 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6056 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$con
venience '"$wlarc"'--no-whole-archive' | 6610 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$con
venience '"$wlarc"'--no-whole-archive' |
6057 fi | 6611 fi |
6058 » output_verbose_link_cmd=echo | 6612 » output_verbose_link_cmd=func_echo_all |
6059 else | 6613 else |
6060 _LT_TAGVAR(ld_shlibs, $1)=no | 6614 _LT_TAGVAR(ld_shlibs, $1)=no |
6061 fi | 6615 fi |
6062 ;; | 6616 ;; |
6063 | 6617 |
6064 osf3* | osf4* | osf5*) | 6618 osf3* | osf4* | osf5*) |
6065 case $cc_basename in | 6619 case $cc_basename in |
6066 KCC*) | 6620 KCC*) |
6067 # Kuck and Associates, Inc. (KAI) C++ Compiler | 6621 # Kuck and Associates, Inc. (KAI) C++ Compiler |
6068 | 6622 |
(...skipping 14 matching lines...) Expand all Loading... |
6083 ;; | 6637 ;; |
6084 RCC*) | 6638 RCC*) |
6085 # Rational C++ 2.4.1 | 6639 # Rational C++ 2.4.1 |
6086 # FIXME: insert proper C++ library support | 6640 # FIXME: insert proper C++ library support |
6087 _LT_TAGVAR(ld_shlibs, $1)=no | 6641 _LT_TAGVAR(ld_shlibs, $1)=no |
6088 ;; | 6642 ;; |
6089 cxx*) | 6643 cxx*) |
6090 case $host in | 6644 case $host in |
6091 osf3*) | 6645 osf3*) |
6092 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved $
{wl}\*' | 6646 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved $
{wl}\*' |
6093 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag}
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname
$soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed`
-update_registry ${output_objdir}/so_locations -o $lib' | 6647 » _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' |
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib
dir' | 6648 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib
dir' |
6095 ;; | 6649 ;; |
6096 *) | 6650 *) |
6097 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6651 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6098 » _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" && $ECHO "X-set_version $verstring" | $Xsed` -up
date_registry ${output_objdir}/so_locations -o $lib' | 6652 » _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' |
6099 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo
ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 6653 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbo
ls`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6100 echo "-hidden">> $lib.exp~ | 6654 echo "-hidden">> $lib.exp~ |
6101 » $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 "X-set_version $verstring" | $Xsed` -updat
e_registry ${output_objdir}/so_locations -o $lib~ | 6655 » $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~ |
6102 $RM $lib.exp' | 6656 $RM $lib.exp' |
6103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6104 ;; | 6658 ;; |
6105 esac | 6659 esac |
6106 | 6660 |
6107 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6661 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6108 | 6662 |
6109 # Commands to make compiler produce verbose output that lists | 6663 # Commands to make compiler produce verbose output that lists |
6110 # what "hidden" libraries, object files and flags are used when | 6664 # what "hidden" libraries, object files and flags are used when |
6111 # linking a shared library. | 6665 # linking a shared library. |
6112 # | 6666 # |
6113 # There doesn't appear to be a way to prevent this compiler from | 6667 # There doesn't appear to be a way to prevent this compiler from |
6114 # explicitly linking system object files so we need to strip them | 6668 # explicitly linking system object files so we need to strip them |
6115 # from the output so that they don't get included in the library | 6669 # from the output so that they don't get included in the library |
6116 # dependencies. | 6670 # dependencies. |
6117 » output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed
-e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done
; $ECHO "X$list" | $Xsed' | 6671 » 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"' |
6118 ;; | 6672 ;; |
6119 *) | 6673 *) |
6120 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 6674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6121 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${w
l}\*' | 6675 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${w
l}\*' |
6122 case $host in | 6676 case $host in |
6123 osf3*) | 6677 osf3*) |
6124 » _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" && $ECHO "X${wl}-set_version ${
wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations
-o $lib' | 6678 » _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' |
6125 ;; | 6679 ;; |
6126 *) | 6680 *) |
6127 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_un
defined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_
version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so
_locations -o $lib' | 6681 » _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' |
6128 ;; | 6682 ;; |
6129 esac | 6683 esac |
6130 | 6684 |
6131 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdi
r' | 6685 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdi
r' |
6132 _LT_TAGVAR(hardcode_libdir_separator, $1)=: | 6686 _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6133 | 6687 |
6134 # Commands to make compiler produce verbose output that lists | 6688 # Commands to make compiler produce verbose output that lists |
6135 # what "hidden" libraries, object files and flags are used when | 6689 # what "hidden" libraries, object files and flags are used when |
6136 # linking a shared library. | 6690 # linking a shared library. |
6137 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2
>&1 | $GREP "\-L"' | 6691 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2
>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6138 | 6692 |
6139 else | 6693 else |
6140 # FIXME: insert proper C++ library support | 6694 # FIXME: insert proper C++ library support |
6141 _LT_TAGVAR(ld_shlibs, $1)=no | 6695 _LT_TAGVAR(ld_shlibs, $1)=no |
6142 fi | 6696 fi |
6143 ;; | 6697 ;; |
6144 esac | 6698 esac |
6145 ;; | 6699 ;; |
6146 | 6700 |
6147 psos*) | 6701 psos*) |
(...skipping 15 matching lines...) Expand all Loading... |
6163 ;; | 6717 ;; |
6164 *) | 6718 *) |
6165 # FIXME: insert proper C++ library support | 6719 # FIXME: insert proper C++ library support |
6166 _LT_TAGVAR(ld_shlibs, $1)=no | 6720 _LT_TAGVAR(ld_shlibs, $1)=no |
6167 ;; | 6721 ;; |
6168 esac | 6722 esac |
6169 ;; | 6723 ;; |
6170 | 6724 |
6171 solaris*) | 6725 solaris*) |
6172 case $cc_basename in | 6726 case $cc_basename in |
6173 CC*) | 6727 CC* | sunCC*) |
6174 # Sun C++ 4.2, 5.x and Centerline C++ | 6728 # Sun C++ 4.2, 5.x and Centerline C++ |
6175 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | 6729 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
6176 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 6730 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6177 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sona
me -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 6731 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$sona
me -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6178 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l
ib.exp~ | 6732 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $l
ib.exp~ |
6179 $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' | 6733 $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' |
6180 | 6734 |
6181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6182 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | 6736 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6183 case $host_os in | 6737 case $host_os in |
6184 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 6738 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6185 *) | 6739 *) |
6186 # The compiler driver will combine and reorder linker options, | 6740 # The compiler driver will combine and reorder linker options, |
6187 # but understands `-z linker_flag'. | 6741 # but understands `-z linker_flag'. |
6188 # Supported since Solaris 2.6 (maybe 2.5.1?) | 6742 # Supported since Solaris 2.6 (maybe 2.5.1?) |
6189 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien
ce -z defaultextract' | 6743 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenien
ce -z defaultextract' |
6190 ;; | 6744 ;; |
6191 esac | 6745 esac |
6192 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6746 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6193 | 6747 |
6194 » output_verbose_link_cmd='echo' | 6748 » output_verbose_link_cmd='func_echo_all' |
6195 | 6749 |
6196 # Archives containing C++ object files must be created using | 6750 # Archives containing C++ object files must be created using |
6197 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 6751 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6198 # necessary to make sure instantiated templates are included | 6752 # necessary to make sure instantiated templates are included |
6199 # in the archive. | 6753 # in the archive. |
6200 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 6754 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
6201 ;; | 6755 ;; |
6202 gcx*) | 6756 gcx*) |
6203 # Green Hills C++ Compiler | 6757 # Green Hills C++ Compiler |
6204 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 6758 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
6205 | 6759 |
6206 # The C++ compiler must be used to create the archive. | 6760 # The C++ compiler must be used to create the archive. |
6207 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $
oldobjs' | 6761 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $
oldobjs' |
6208 ;; | 6762 ;; |
6209 *) | 6763 *) |
6210 # GNU C++ compiler with Solaris linker | 6764 # GNU C++ compiler with Solaris linker |
6211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 6765 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6212 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | 6766 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
6213 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 6767 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
6214 » _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $pr
edep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$sona
me -o $lib' | 6768 » _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' |
6215 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ | 6769 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ |
6216 » » $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 6770 » » $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $p
redep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6217 | 6771 |
6218 # Commands to make compiler produce verbose output that lists | 6772 # Commands to make compiler produce verbose output that lists |
6219 # what "hidden" libraries, object files and flags are used when | 6773 # what "hidden" libraries, object files and flags are used when |
6220 # linking a shared library. | 6774 # linking a shared library. |
6221 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP "\-L"' | 6775 » output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
6222 else | 6776 else |
6223 # g++ 2.7 appears to require `-G' NOT `-shared' on this | 6777 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
6224 # platform. | 6778 # platform. |
6225 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_
objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o
$lib' | 6779 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_
objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o
$lib' |
6226 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ | 6780 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp
~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >
> $lib.exp~ |
6227 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 6781 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
6228 | 6782 |
6229 # Commands to make compiler produce verbose output that lists | 6783 # Commands to make compiler produce verbose output that lists |
6230 # what "hidden" libraries, object files and flags are used when | 6784 # what "hidden" libraries, object files and flags are used when |
6231 # linking a shared library. | 6785 # linking a shared library. |
6232 » output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1
| $GREP "\-L"' | 6786 » output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1
| $GREP -v "^Configured with:" | $GREP "\-L"' |
6233 fi | 6787 fi |
6234 | 6788 |
6235 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 6789 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
6236 case $host_os in | 6790 case $host_os in |
6237 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 6791 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6238 *) | 6792 *) |
6239 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextra
ct$convenience ${wl}-z ${wl}defaultextract' | 6793 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextra
ct$convenience ${wl}-z ${wl}defaultextract' |
6240 ;; | 6794 ;; |
6241 esac | 6795 esac |
6242 fi | 6796 fi |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6276 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | 6830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
6277 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | 6831 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
6278 _LT_TAGVAR(link_all_deplibs, $1)=yes | 6832 _LT_TAGVAR(link_all_deplibs, $1)=yes |
6279 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | 6833 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
6280 runpath_var='LD_RUN_PATH' | 6834 runpath_var='LD_RUN_PATH' |
6281 | 6835 |
6282 case $cc_basename in | 6836 case $cc_basename in |
6283 CC*) | 6837 CC*) |
6284 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobj
s $deplibs $compiler_flags' | 6838 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobj
s $deplibs $compiler_flags' |
6285 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sy
mbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6839 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_sy
mbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6840 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ |
| 6841 '"$_LT_TAGVAR(old_archive_cmds, $1)" |
| 6842 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ |
| 6843 '"$_LT_TAGVAR(reload_cmds, $1)" |
6286 ;; | 6844 ;; |
6287 *) | 6845 *) |
6288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $l
ibobjs $deplibs $compiler_flags' | 6846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $l
ibobjs $deplibs $compiler_flags' |
6289 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expo
rt_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 6847 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$expo
rt_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6290 ;; | 6848 ;; |
6291 esac | 6849 esac |
6292 ;; | 6850 ;; |
6293 | 6851 |
6294 tandem*) | 6852 tandem*) |
6295 case $cc_basename in | 6853 case $cc_basename in |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6331 _LT_COMPILER_C_O($1) | 6889 _LT_COMPILER_C_O($1) |
6332 _LT_COMPILER_FILE_LOCKS($1) | 6890 _LT_COMPILER_FILE_LOCKS($1) |
6333 _LT_LINKER_SHLIBS($1) | 6891 _LT_LINKER_SHLIBS($1) |
6334 _LT_SYS_DYNAMIC_LINKER($1) | 6892 _LT_SYS_DYNAMIC_LINKER($1) |
6335 _LT_LINKER_HARDCODE_LIBPATH($1) | 6893 _LT_LINKER_HARDCODE_LIBPATH($1) |
6336 | 6894 |
6337 _LT_CONFIG($1) | 6895 _LT_CONFIG($1) |
6338 fi # test -n "$compiler" | 6896 fi # test -n "$compiler" |
6339 | 6897 |
6340 CC=$lt_save_CC | 6898 CC=$lt_save_CC |
| 6899 CFLAGS=$lt_save_CFLAGS |
6341 LDCXX=$LD | 6900 LDCXX=$LD |
6342 LD=$lt_save_LD | 6901 LD=$lt_save_LD |
6343 GCC=$lt_save_GCC | 6902 GCC=$lt_save_GCC |
6344 with_gnu_ld=$lt_save_with_gnu_ld | 6903 with_gnu_ld=$lt_save_with_gnu_ld |
6345 lt_cv_path_LDCXX=$lt_cv_path_LD | 6904 lt_cv_path_LDCXX=$lt_cv_path_LD |
6346 lt_cv_path_LD=$lt_save_path_LD | 6905 lt_cv_path_LD=$lt_save_path_LD |
6347 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 6906 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
6348 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 6907 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
6349 fi # test "$_lt_caught_CXX_error" != yes | 6908 fi # test "$_lt_caught_CXX_error" != yes |
6350 | 6909 |
6351 AC_LANG_POP | 6910 AC_LANG_POP |
6352 ])# _LT_LANG_CXX_CONFIG | 6911 ])# _LT_LANG_CXX_CONFIG |
6353 | 6912 |
6354 | 6913 |
| 6914 # _LT_FUNC_STRIPNAME_CNF |
| 6915 # ---------------------- |
| 6916 # func_stripname_cnf prefix suffix name |
| 6917 # strip PREFIX and SUFFIX off of NAME. |
| 6918 # PREFIX and SUFFIX must not contain globbing or regex special |
| 6919 # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 6920 # dot (in which case that matches only a dot). |
| 6921 # |
| 6922 # This function is identical to the (non-XSI) version of func_stripname, |
| 6923 # except this one can be used by m4 code that may be executed by configure, |
| 6924 # rather than the libtool script. |
| 6925 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl |
| 6926 AC_REQUIRE([_LT_DECL_SED]) |
| 6927 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) |
| 6928 func_stripname_cnf () |
| 6929 { |
| 6930 case ${2} in |
| 6931 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 6932 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 6933 esac |
| 6934 } # func_stripname_cnf |
| 6935 ])# _LT_FUNC_STRIPNAME_CNF |
| 6936 |
6355 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | 6937 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
6356 # --------------------------------- | 6938 # --------------------------------- |
6357 # Figure out "hidden" library dependencies from verbose | 6939 # Figure out "hidden" library dependencies from verbose |
6358 # compiler output when linking a shared library. | 6940 # compiler output when linking a shared library. |
6359 # Parse the compiler output and extract the necessary | 6941 # Parse the compiler output and extract the necessary |
6360 # objects, libraries and library flags. | 6942 # objects, libraries and library flags. |
6361 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | 6943 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
6362 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | 6944 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 6945 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl |
6363 # Dependencies to place before and after the object being linked: | 6946 # Dependencies to place before and after the object being linked: |
6364 _LT_TAGVAR(predep_objects, $1)= | 6947 _LT_TAGVAR(predep_objects, $1)= |
6365 _LT_TAGVAR(postdep_objects, $1)= | 6948 _LT_TAGVAR(postdep_objects, $1)= |
6366 _LT_TAGVAR(predeps, $1)= | 6949 _LT_TAGVAR(predeps, $1)= |
6367 _LT_TAGVAR(postdeps, $1)= | 6950 _LT_TAGVAR(postdeps, $1)= |
6368 _LT_TAGVAR(compiler_lib_search_path, $1)= | 6951 _LT_TAGVAR(compiler_lib_search_path, $1)= |
6369 | 6952 |
6370 dnl we can't use the lt_simple_compile_test_code here, | 6953 dnl we can't use the lt_simple_compile_test_code here, |
6371 dnl because it contains code intended for an executable, | 6954 dnl because it contains code intended for an executable, |
6372 dnl not a library. It's possible we should let each | 6955 dnl not a library. It's possible we should let each |
(...skipping 29 matching lines...) Expand all Loading... |
6402 end | 6985 end |
6403 _LT_EOF | 6986 _LT_EOF |
6404 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | 6987 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
6405 public class foo { | 6988 public class foo { |
6406 private int a; | 6989 private int a; |
6407 public void bar (void) { | 6990 public void bar (void) { |
6408 a = 0; | 6991 a = 0; |
6409 } | 6992 } |
6410 }; | 6993 }; |
6411 _LT_EOF | 6994 _LT_EOF |
| 6995 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF |
| 6996 package foo |
| 6997 func foo() { |
| 6998 } |
| 6999 _LT_EOF |
6412 ]) | 7000 ]) |
| 7001 |
| 7002 _lt_libdeps_save_CFLAGS=$CFLAGS |
| 7003 case "$CC $CFLAGS " in #( |
| 7004 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 7005 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 7006 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 7007 esac |
| 7008 |
6413 dnl Parse the compiler output and extract the necessary | 7009 dnl Parse the compiler output and extract the necessary |
6414 dnl objects, libraries and library flags. | 7010 dnl objects, libraries and library flags. |
6415 if AC_TRY_EVAL(ac_compile); then | 7011 if AC_TRY_EVAL(ac_compile); then |
6416 # Parse the compiler output and extract the necessary | 7012 # Parse the compiler output and extract the necessary |
6417 # objects, libraries and library flags. | 7013 # objects, libraries and library flags. |
6418 | 7014 |
6419 # Sentinel used to keep track of whether or not we are before | 7015 # Sentinel used to keep track of whether or not we are before |
6420 # the conftest object file. | 7016 # the conftest object file. |
6421 pre_test_object_deps_done=no | 7017 pre_test_object_deps_done=no |
6422 | 7018 |
6423 for p in `eval "$output_verbose_link_cmd"`; do | 7019 for p in `eval "$output_verbose_link_cmd"`; do |
6424 case $p in | 7020 case ${prev}${p} in |
6425 | 7021 |
6426 -L* | -R* | -l*) | 7022 -L* | -R* | -l*) |
6427 # Some compilers place space between "-{L,R}" and the path. | 7023 # Some compilers place space between "-{L,R}" and the path. |
6428 # Remove the space. | 7024 # Remove the space. |
6429 if test $p = "-L" || | 7025 if test $p = "-L" || |
6430 test $p = "-R"; then | 7026 test $p = "-R"; then |
6431 prev=$p | 7027 prev=$p |
6432 continue | 7028 continue |
6433 else | |
6434 prev= | |
6435 fi | 7029 fi |
6436 | 7030 |
| 7031 # Expand the sysroot to ease extracting the directories later. |
| 7032 if test -z "$prev"; then |
| 7033 case $p in |
| 7034 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result
;; |
| 7035 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result
;; |
| 7036 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result
;; |
| 7037 esac |
| 7038 fi |
| 7039 case $p in |
| 7040 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;
; |
| 7041 esac |
6437 if test "$pre_test_object_deps_done" = no; then | 7042 if test "$pre_test_object_deps_done" = no; then |
6438 » case $p in | 7043 » case ${prev} in |
6439 » -L* | -R*) | 7044 » -L | -R) |
6440 # Internal compiler library paths should come after those | 7045 # Internal compiler library paths should come after those |
6441 # provided the user. The postdeps already come after the | 7046 # provided the user. The postdeps already come after the |
6442 # user supplied libs so there is no need to process them. | 7047 # user supplied libs so there is no need to process them. |
6443 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | 7048 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
6444 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | 7049 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
6445 else | 7050 else |
6446 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib
_search_path, $1)} ${prev}${p}" | 7051 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib
_search_path, $1)} ${prev}${p}" |
6447 fi | 7052 fi |
6448 ;; | 7053 ;; |
6449 # The "-l" case would never come before the object being | 7054 # The "-l" case would never come before the object being |
6450 # linked, so don't bother handling this case. | 7055 # linked, so don't bother handling this case. |
6451 esac | 7056 esac |
6452 else | 7057 else |
6453 if test -z "$_LT_TAGVAR(postdeps, $1)"; then | 7058 if test -z "$_LT_TAGVAR(postdeps, $1)"; then |
6454 _LT_TAGVAR(postdeps, $1)="${prev}${p}" | 7059 _LT_TAGVAR(postdeps, $1)="${prev}${p}" |
6455 else | 7060 else |
6456 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | 7061 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
6457 fi | 7062 fi |
6458 fi | 7063 fi |
| 7064 prev= |
6459 ;; | 7065 ;; |
6460 | 7066 |
| 7067 *.lto.$objext) ;; # Ignore GCC LTO objects |
6461 *.$objext) | 7068 *.$objext) |
6462 # This assumes that the test object file only shows up | 7069 # This assumes that the test object file only shows up |
6463 # once in the compiler output. | 7070 # once in the compiler output. |
6464 if test "$p" = "conftest.$objext"; then | 7071 if test "$p" = "conftest.$objext"; then |
6465 pre_test_object_deps_done=yes | 7072 pre_test_object_deps_done=yes |
6466 continue | 7073 continue |
6467 fi | 7074 fi |
6468 | 7075 |
6469 if test "$pre_test_object_deps_done" = no; then | 7076 if test "$pre_test_object_deps_done" = no; then |
6470 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | 7077 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then |
(...skipping 15 matching lines...) Expand all Loading... |
6486 esac | 7093 esac |
6487 done | 7094 done |
6488 | 7095 |
6489 # Clean up. | 7096 # Clean up. |
6490 rm -f a.out a.exe | 7097 rm -f a.out a.exe |
6491 else | 7098 else |
6492 echo "libtool.m4: error: problem compiling $1 test program" | 7099 echo "libtool.m4: error: problem compiling $1 test program" |
6493 fi | 7100 fi |
6494 | 7101 |
6495 $RM -f confest.$objext | 7102 $RM -f confest.$objext |
| 7103 CFLAGS=$_lt_libdeps_save_CFLAGS |
6496 | 7104 |
6497 # PORTME: override above test on systems where it is broken | 7105 # PORTME: override above test on systems where it is broken |
6498 m4_if([$1], [CXX], | 7106 m4_if([$1], [CXX], |
6499 [case $host_os in | 7107 [case $host_os in |
6500 interix[[3-9]]*) | 7108 interix[[3-9]]*) |
6501 # Interix 3.5 installs completely hosed .la files for C++, so rather than | 7109 # Interix 3.5 installs completely hosed .la files for C++, so rather than |
6502 # hack all around it, let's just trust "g++" to DTRT. | 7110 # hack all around it, let's just trust "g++" to DTRT. |
6503 _LT_TAGVAR(predep_objects,$1)= | 7111 _LT_TAGVAR(predep_objects,$1)= |
6504 _LT_TAGVAR(postdep_objects,$1)= | 7112 _LT_TAGVAR(postdep_objects,$1)= |
6505 _LT_TAGVAR(postdeps,$1)= | 7113 _LT_TAGVAR(postdeps,$1)= |
(...skipping 16 matching lines...) Expand all Loading... |
6522 | 7130 |
6523 if test "$solaris_use_stlport4" != yes; then | 7131 if test "$solaris_use_stlport4" != yes; then |
6524 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | 7132 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
6525 fi | 7133 fi |
6526 ;; | 7134 ;; |
6527 esac | 7135 esac |
6528 ;; | 7136 ;; |
6529 | 7137 |
6530 solaris*) | 7138 solaris*) |
6531 case $cc_basename in | 7139 case $cc_basename in |
6532 CC*) | 7140 CC* | sunCC*) |
6533 # The more standards-conforming stlport4 library is | 7141 # The more standards-conforming stlport4 library is |
6534 # incompatible with the Cstd library. Avoid specifying | 7142 # incompatible with the Cstd library. Avoid specifying |
6535 # it if it's in CXXFLAGS. Ignore libCrun as | 7143 # it if it's in CXXFLAGS. Ignore libCrun as |
6536 # -library=stlport4 depends on it. | 7144 # -library=stlport4 depends on it. |
6537 case " $CXX $CXXFLAGS " in | 7145 case " $CXX $CXXFLAGS " in |
6538 *" -library=stlport4 "*) | 7146 *" -library=stlport4 "*) |
6539 solaris_use_stlport4=yes | 7147 solaris_use_stlport4=yes |
6540 ;; | 7148 ;; |
6541 esac | 7149 esac |
6542 | 7150 |
(...skipping 23 matching lines...) Expand all Loading... |
6566 create a shared library]) | 7174 create a shared library]) |
6567 _LT_TAGDECL([], [postdep_objects], [1]) | 7175 _LT_TAGDECL([], [postdep_objects], [1]) |
6568 _LT_TAGDECL([], [predeps], [1]) | 7176 _LT_TAGDECL([], [predeps], [1]) |
6569 _LT_TAGDECL([], [postdeps], [1]) | 7177 _LT_TAGDECL([], [postdeps], [1]) |
6570 _LT_TAGDECL([], [compiler_lib_search_path], [1], | 7178 _LT_TAGDECL([], [compiler_lib_search_path], [1], |
6571 [The library search path used internally by the compiler when linking | 7179 [The library search path used internally by the compiler when linking |
6572 a shared library]) | 7180 a shared library]) |
6573 ])# _LT_SYS_HIDDEN_LIBDEPS | 7181 ])# _LT_SYS_HIDDEN_LIBDEPS |
6574 | 7182 |
6575 | 7183 |
6576 # _LT_PROG_F77 | |
6577 # ------------ | |
6578 # Since AC_PROG_F77 is broken, in that it returns the empty string | |
6579 # if there is no fortran compiler, we have our own version here. | |
6580 m4_defun([_LT_PROG_F77], | |
6581 [ | |
6582 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | |
6583 AC_PROG_F77 | |
6584 if test -z "$F77" || test "X$F77" = "Xno"; then | |
6585 _lt_disable_F77=yes | |
6586 fi | |
6587 popdef([AC_MSG_ERROR]) | |
6588 ])# _LT_PROG_F77 | |
6589 | |
6590 dnl aclocal-1.4 backwards compatibility: | |
6591 dnl AC_DEFUN([_LT_PROG_F77], []) | |
6592 | |
6593 | |
6594 # _LT_LANG_F77_CONFIG([TAG]) | 7184 # _LT_LANG_F77_CONFIG([TAG]) |
6595 # -------------------------- | 7185 # -------------------------- |
6596 # Ensure that the configuration variables for a Fortran 77 compiler are | 7186 # Ensure that the configuration variables for a Fortran 77 compiler are |
6597 # suitably defined. These variables are subsequently used by _LT_CONFIG | 7187 # suitably defined. These variables are subsequently used by _LT_CONFIG |
6598 # to write the compiler configuration to `libtool'. | 7188 # to write the compiler configuration to `libtool'. |
6599 m4_defun([_LT_LANG_F77_CONFIG], | 7189 m4_defun([_LT_LANG_F77_CONFIG], |
6600 [AC_REQUIRE([_LT_PROG_F77])dnl | 7190 [AC_LANG_PUSH(Fortran 77) |
6601 AC_LANG_PUSH(Fortran 77) | 7191 if test -z "$F77" || test "X$F77" = "Xno"; then |
| 7192 _lt_disable_F77=yes |
| 7193 fi |
6602 | 7194 |
6603 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7195 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6604 _LT_TAGVAR(allow_undefined_flag, $1)= | 7196 _LT_TAGVAR(allow_undefined_flag, $1)= |
6605 _LT_TAGVAR(always_export_symbols, $1)=no | 7197 _LT_TAGVAR(always_export_symbols, $1)=no |
6606 _LT_TAGVAR(archive_expsym_cmds, $1)= | 7198 _LT_TAGVAR(archive_expsym_cmds, $1)= |
6607 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 7199 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
6608 _LT_TAGVAR(hardcode_direct, $1)=no | 7200 _LT_TAGVAR(hardcode_direct, $1)=no |
6609 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7201 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7202 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6611 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6612 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7203 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6613 _LT_TAGVAR(hardcode_minus_L, $1)=no | 7204 _LT_TAGVAR(hardcode_minus_L, $1)=no |
6614 _LT_TAGVAR(hardcode_automatic, $1)=no | 7205 _LT_TAGVAR(hardcode_automatic, $1)=no |
6615 _LT_TAGVAR(inherit_rpath, $1)=no | 7206 _LT_TAGVAR(inherit_rpath, $1)=no |
6616 _LT_TAGVAR(module_cmds, $1)= | 7207 _LT_TAGVAR(module_cmds, $1)= |
6617 _LT_TAGVAR(module_expsym_cmds, $1)= | 7208 _LT_TAGVAR(module_expsym_cmds, $1)= |
6618 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7209 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6619 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7210 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7211 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7212 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
6620 _LT_TAGVAR(no_undefined_flag, $1)= | 7213 _LT_TAGVAR(no_undefined_flag, $1)= |
6621 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7214 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6622 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7215 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6623 | 7216 |
6624 # Source file extension for f77 test sources. | 7217 # Source file extension for f77 test sources. |
6625 ac_ext=f | 7218 ac_ext=f |
6626 | 7219 |
6627 # Object file extension for compiled f77 test sources. | 7220 # Object file extension for compiled f77 test sources. |
6628 objext=o | 7221 objext=o |
6629 _LT_TAGVAR(objext, $1)=$objext | 7222 _LT_TAGVAR(objext, $1)=$objext |
(...skipping 19 matching lines...) Expand all Loading... |
6649 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7242 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
6650 _LT_TAG_COMPILER | 7243 _LT_TAG_COMPILER |
6651 | 7244 |
6652 # save warnings/boilerplate of simple test code | 7245 # save warnings/boilerplate of simple test code |
6653 _LT_COMPILER_BOILERPLATE | 7246 _LT_COMPILER_BOILERPLATE |
6654 _LT_LINKER_BOILERPLATE | 7247 _LT_LINKER_BOILERPLATE |
6655 | 7248 |
6656 # Allow CC to be a program name with arguments. | 7249 # Allow CC to be a program name with arguments. |
6657 lt_save_CC="$CC" | 7250 lt_save_CC="$CC" |
6658 lt_save_GCC=$GCC | 7251 lt_save_GCC=$GCC |
| 7252 lt_save_CFLAGS=$CFLAGS |
6659 CC=${F77-"f77"} | 7253 CC=${F77-"f77"} |
| 7254 CFLAGS=$FFLAGS |
6660 compiler=$CC | 7255 compiler=$CC |
6661 _LT_TAGVAR(compiler, $1)=$CC | 7256 _LT_TAGVAR(compiler, $1)=$CC |
6662 _LT_CC_BASENAME([$compiler]) | 7257 _LT_CC_BASENAME([$compiler]) |
6663 GCC=$G77 | 7258 GCC=$G77 |
6664 if test -n "$compiler"; then | 7259 if test -n "$compiler"; then |
6665 AC_MSG_CHECKING([if libtool supports shared libraries]) | 7260 AC_MSG_CHECKING([if libtool supports shared libraries]) |
6666 AC_MSG_RESULT([$can_build_shared]) | 7261 AC_MSG_RESULT([$can_build_shared]) |
6667 | 7262 |
6668 AC_MSG_CHECKING([whether to build shared libraries]) | 7263 AC_MSG_CHECKING([whether to build shared libraries]) |
6669 test "$can_build_shared" = "no" && enable_shared=no | 7264 test "$can_build_shared" = "no" && enable_shared=no |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6703 _LT_COMPILER_FILE_LOCKS($1) | 7298 _LT_COMPILER_FILE_LOCKS($1) |
6704 _LT_LINKER_SHLIBS($1) | 7299 _LT_LINKER_SHLIBS($1) |
6705 _LT_SYS_DYNAMIC_LINKER($1) | 7300 _LT_SYS_DYNAMIC_LINKER($1) |
6706 _LT_LINKER_HARDCODE_LIBPATH($1) | 7301 _LT_LINKER_HARDCODE_LIBPATH($1) |
6707 | 7302 |
6708 _LT_CONFIG($1) | 7303 _LT_CONFIG($1) |
6709 fi # test -n "$compiler" | 7304 fi # test -n "$compiler" |
6710 | 7305 |
6711 GCC=$lt_save_GCC | 7306 GCC=$lt_save_GCC |
6712 CC="$lt_save_CC" | 7307 CC="$lt_save_CC" |
| 7308 CFLAGS="$lt_save_CFLAGS" |
6713 fi # test "$_lt_disable_F77" != yes | 7309 fi # test "$_lt_disable_F77" != yes |
6714 | 7310 |
6715 AC_LANG_POP | 7311 AC_LANG_POP |
6716 ])# _LT_LANG_F77_CONFIG | 7312 ])# _LT_LANG_F77_CONFIG |
6717 | 7313 |
6718 | 7314 |
6719 # _LT_PROG_FC | |
6720 # ----------- | |
6721 # Since AC_PROG_FC is broken, in that it returns the empty string | |
6722 # if there is no fortran compiler, we have our own version here. | |
6723 m4_defun([_LT_PROG_FC], | |
6724 [ | |
6725 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | |
6726 AC_PROG_FC | |
6727 if test -z "$FC" || test "X$FC" = "Xno"; then | |
6728 _lt_disable_FC=yes | |
6729 fi | |
6730 popdef([AC_MSG_ERROR]) | |
6731 ])# _LT_PROG_FC | |
6732 | |
6733 dnl aclocal-1.4 backwards compatibility: | |
6734 dnl AC_DEFUN([_LT_PROG_FC], []) | |
6735 | |
6736 | |
6737 # _LT_LANG_FC_CONFIG([TAG]) | 7315 # _LT_LANG_FC_CONFIG([TAG]) |
6738 # ------------------------- | 7316 # ------------------------- |
6739 # Ensure that the configuration variables for a Fortran compiler are | 7317 # Ensure that the configuration variables for a Fortran compiler are |
6740 # suitably defined. These variables are subsequently used by _LT_CONFIG | 7318 # suitably defined. These variables are subsequently used by _LT_CONFIG |
6741 # to write the compiler configuration to `libtool'. | 7319 # to write the compiler configuration to `libtool'. |
6742 m4_defun([_LT_LANG_FC_CONFIG], | 7320 m4_defun([_LT_LANG_FC_CONFIG], |
6743 [AC_REQUIRE([_LT_PROG_FC])dnl | 7321 [AC_LANG_PUSH(Fortran) |
6744 AC_LANG_PUSH(Fortran) | 7322 |
| 7323 if test -z "$FC" || test "X$FC" = "Xno"; then |
| 7324 _lt_disable_FC=yes |
| 7325 fi |
6745 | 7326 |
6746 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7327 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6747 _LT_TAGVAR(allow_undefined_flag, $1)= | 7328 _LT_TAGVAR(allow_undefined_flag, $1)= |
6748 _LT_TAGVAR(always_export_symbols, $1)=no | 7329 _LT_TAGVAR(always_export_symbols, $1)=no |
6749 _LT_TAGVAR(archive_expsym_cmds, $1)= | 7330 _LT_TAGVAR(archive_expsym_cmds, $1)= |
6750 _LT_TAGVAR(export_dynamic_flag_spec, $1)= | 7331 _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
6751 _LT_TAGVAR(hardcode_direct, $1)=no | 7332 _LT_TAGVAR(hardcode_direct, $1)=no |
6752 _LT_TAGVAR(hardcode_direct_absolute, $1)=no | 7333 _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | 7334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6754 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6755 _LT_TAGVAR(hardcode_libdir_separator, $1)= | 7335 _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6756 _LT_TAGVAR(hardcode_minus_L, $1)=no | 7336 _LT_TAGVAR(hardcode_minus_L, $1)=no |
6757 _LT_TAGVAR(hardcode_automatic, $1)=no | 7337 _LT_TAGVAR(hardcode_automatic, $1)=no |
6758 _LT_TAGVAR(inherit_rpath, $1)=no | 7338 _LT_TAGVAR(inherit_rpath, $1)=no |
6759 _LT_TAGVAR(module_cmds, $1)= | 7339 _LT_TAGVAR(module_cmds, $1)= |
6760 _LT_TAGVAR(module_expsym_cmds, $1)= | 7340 _LT_TAGVAR(module_expsym_cmds, $1)= |
6761 _LT_TAGVAR(link_all_deplibs, $1)=unknown | 7341 _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6762 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7342 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7343 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7344 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
6763 _LT_TAGVAR(no_undefined_flag, $1)= | 7345 _LT_TAGVAR(no_undefined_flag, $1)= |
6764 _LT_TAGVAR(whole_archive_flag_spec, $1)= | 7346 _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6765 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | 7347 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6766 | 7348 |
6767 # Source file extension for fc test sources. | 7349 # Source file extension for fc test sources. |
6768 ac_ext=${ac_fc_srcext-f} | 7350 ac_ext=${ac_fc_srcext-f} |
6769 | 7351 |
6770 # Object file extension for compiled fc test sources. | 7352 # Object file extension for compiled fc test sources. |
6771 objext=o | 7353 objext=o |
6772 _LT_TAGVAR(objext, $1)=$objext | 7354 _LT_TAGVAR(objext, $1)=$objext |
(...skipping 19 matching lines...) Expand all Loading... |
6792 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7374 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
6793 _LT_TAG_COMPILER | 7375 _LT_TAG_COMPILER |
6794 | 7376 |
6795 # save warnings/boilerplate of simple test code | 7377 # save warnings/boilerplate of simple test code |
6796 _LT_COMPILER_BOILERPLATE | 7378 _LT_COMPILER_BOILERPLATE |
6797 _LT_LINKER_BOILERPLATE | 7379 _LT_LINKER_BOILERPLATE |
6798 | 7380 |
6799 # Allow CC to be a program name with arguments. | 7381 # Allow CC to be a program name with arguments. |
6800 lt_save_CC="$CC" | 7382 lt_save_CC="$CC" |
6801 lt_save_GCC=$GCC | 7383 lt_save_GCC=$GCC |
| 7384 lt_save_CFLAGS=$CFLAGS |
6802 CC=${FC-"f95"} | 7385 CC=${FC-"f95"} |
| 7386 CFLAGS=$FCFLAGS |
6803 compiler=$CC | 7387 compiler=$CC |
6804 GCC=$ac_cv_fc_compiler_gnu | 7388 GCC=$ac_cv_fc_compiler_gnu |
6805 | 7389 |
6806 _LT_TAGVAR(compiler, $1)=$CC | 7390 _LT_TAGVAR(compiler, $1)=$CC |
6807 _LT_CC_BASENAME([$compiler]) | 7391 _LT_CC_BASENAME([$compiler]) |
6808 | 7392 |
6809 if test -n "$compiler"; then | 7393 if test -n "$compiler"; then |
6810 AC_MSG_CHECKING([if libtool supports shared libraries]) | 7394 AC_MSG_CHECKING([if libtool supports shared libraries]) |
6811 AC_MSG_RESULT([$can_build_shared]) | 7395 AC_MSG_RESULT([$can_build_shared]) |
6812 | 7396 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6848 _LT_COMPILER_C_O($1) | 7432 _LT_COMPILER_C_O($1) |
6849 _LT_COMPILER_FILE_LOCKS($1) | 7433 _LT_COMPILER_FILE_LOCKS($1) |
6850 _LT_LINKER_SHLIBS($1) | 7434 _LT_LINKER_SHLIBS($1) |
6851 _LT_SYS_DYNAMIC_LINKER($1) | 7435 _LT_SYS_DYNAMIC_LINKER($1) |
6852 _LT_LINKER_HARDCODE_LIBPATH($1) | 7436 _LT_LINKER_HARDCODE_LIBPATH($1) |
6853 | 7437 |
6854 _LT_CONFIG($1) | 7438 _LT_CONFIG($1) |
6855 fi # test -n "$compiler" | 7439 fi # test -n "$compiler" |
6856 | 7440 |
6857 GCC=$lt_save_GCC | 7441 GCC=$lt_save_GCC |
6858 CC="$lt_save_CC" | 7442 CC=$lt_save_CC |
| 7443 CFLAGS=$lt_save_CFLAGS |
6859 fi # test "$_lt_disable_FC" != yes | 7444 fi # test "$_lt_disable_FC" != yes |
6860 | 7445 |
6861 AC_LANG_POP | 7446 AC_LANG_POP |
6862 ])# _LT_LANG_FC_CONFIG | 7447 ])# _LT_LANG_FC_CONFIG |
6863 | 7448 |
6864 | 7449 |
6865 # _LT_LANG_GCJ_CONFIG([TAG]) | 7450 # _LT_LANG_GCJ_CONFIG([TAG]) |
6866 # -------------------------- | 7451 # -------------------------- |
6867 # Ensure that the configuration variables for the GNU Java Compiler compiler | 7452 # Ensure that the configuration variables for the GNU Java Compiler compiler |
6868 # are suitably defined. These variables are subsequently used by _LT_CONFIG | 7453 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
(...skipping 16 matching lines...) Expand all Loading... |
6885 lt_simple_link_test_code='public class conftest { public static void main(String
[[]] argv) {}; }' | 7470 lt_simple_link_test_code='public class conftest { public static void main(String
[[]] argv) {}; }' |
6886 | 7471 |
6887 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7472 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
6888 _LT_TAG_COMPILER | 7473 _LT_TAG_COMPILER |
6889 | 7474 |
6890 # save warnings/boilerplate of simple test code | 7475 # save warnings/boilerplate of simple test code |
6891 _LT_COMPILER_BOILERPLATE | 7476 _LT_COMPILER_BOILERPLATE |
6892 _LT_LINKER_BOILERPLATE | 7477 _LT_LINKER_BOILERPLATE |
6893 | 7478 |
6894 # Allow CC to be a program name with arguments. | 7479 # Allow CC to be a program name with arguments. |
6895 lt_save_CC="$CC" | 7480 lt_save_CC=$CC |
| 7481 lt_save_CFLAGS=$CFLAGS |
6896 lt_save_GCC=$GCC | 7482 lt_save_GCC=$GCC |
6897 GCC=yes | 7483 GCC=yes |
6898 CC=${GCJ-"gcj"} | 7484 CC=${GCJ-"gcj"} |
| 7485 CFLAGS=$GCJFLAGS |
6899 compiler=$CC | 7486 compiler=$CC |
6900 _LT_TAGVAR(compiler, $1)=$CC | 7487 _LT_TAGVAR(compiler, $1)=$CC |
6901 _LT_TAGVAR(LD, $1)="$LD" | 7488 _LT_TAGVAR(LD, $1)="$LD" |
6902 _LT_CC_BASENAME([$compiler]) | 7489 _LT_CC_BASENAME([$compiler]) |
6903 | 7490 |
6904 # GCJ did not exist at the time GCC didn't implicitly link libc in. | 7491 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
6905 _LT_TAGVAR(archive_cmds_need_lc, $1)=no | 7492 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6906 | 7493 |
6907 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 7494 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7495 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7496 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
6908 | 7497 |
6909 if test -n "$compiler"; then | 7498 if test -n "$compiler"; then |
6910 _LT_COMPILER_NO_RTTI($1) | 7499 _LT_COMPILER_NO_RTTI($1) |
6911 _LT_COMPILER_PIC($1) | 7500 _LT_COMPILER_PIC($1) |
6912 _LT_COMPILER_C_O($1) | 7501 _LT_COMPILER_C_O($1) |
6913 _LT_COMPILER_FILE_LOCKS($1) | 7502 _LT_COMPILER_FILE_LOCKS($1) |
6914 _LT_LINKER_SHLIBS($1) | 7503 _LT_LINKER_SHLIBS($1) |
6915 _LT_LINKER_HARDCODE_LIBPATH($1) | 7504 _LT_LINKER_HARDCODE_LIBPATH($1) |
6916 | 7505 |
6917 _LT_CONFIG($1) | 7506 _LT_CONFIG($1) |
6918 fi | 7507 fi |
6919 | 7508 |
6920 AC_LANG_RESTORE | 7509 AC_LANG_RESTORE |
6921 | 7510 |
6922 GCC=$lt_save_GCC | 7511 GCC=$lt_save_GCC |
6923 CC="$lt_save_CC" | 7512 CC=$lt_save_CC |
| 7513 CFLAGS=$lt_save_CFLAGS |
6924 ])# _LT_LANG_GCJ_CONFIG | 7514 ])# _LT_LANG_GCJ_CONFIG |
6925 | 7515 |
6926 | 7516 |
| 7517 # _LT_LANG_GO_CONFIG([TAG]) |
| 7518 # -------------------------- |
| 7519 # Ensure that the configuration variables for the GNU Go compiler |
| 7520 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 7521 # to write the compiler configuration to `libtool'. |
| 7522 m4_defun([_LT_LANG_GO_CONFIG], |
| 7523 [AC_REQUIRE([LT_PROG_GO])dnl |
| 7524 AC_LANG_SAVE |
| 7525 |
| 7526 # Source file extension for Go test sources. |
| 7527 ac_ext=go |
| 7528 |
| 7529 # Object file extension for compiled Go test sources. |
| 7530 objext=o |
| 7531 _LT_TAGVAR(objext, $1)=$objext |
| 7532 |
| 7533 # Code to be used in simple compile tests |
| 7534 lt_simple_compile_test_code="package main; func main() { }" |
| 7535 |
| 7536 # Code to be used in simple link tests |
| 7537 lt_simple_link_test_code='package main; func main() { }' |
| 7538 |
| 7539 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 7540 _LT_TAG_COMPILER |
| 7541 |
| 7542 # save warnings/boilerplate of simple test code |
| 7543 _LT_COMPILER_BOILERPLATE |
| 7544 _LT_LINKER_BOILERPLATE |
| 7545 |
| 7546 # Allow CC to be a program name with arguments. |
| 7547 lt_save_CC=$CC |
| 7548 lt_save_CFLAGS=$CFLAGS |
| 7549 lt_save_GCC=$GCC |
| 7550 GCC=yes |
| 7551 CC=${GOC-"gccgo"} |
| 7552 CFLAGS=$GOFLAGS |
| 7553 compiler=$CC |
| 7554 _LT_TAGVAR(compiler, $1)=$CC |
| 7555 _LT_TAGVAR(LD, $1)="$LD" |
| 7556 _LT_CC_BASENAME([$compiler]) |
| 7557 |
| 7558 # Go did not exist at the time GCC didn't implicitly link libc in. |
| 7559 _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 7560 |
| 7561 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7562 _LT_TAGVAR(reload_flag, $1)=$reload_flag |
| 7563 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
| 7564 |
| 7565 if test -n "$compiler"; then |
| 7566 _LT_COMPILER_NO_RTTI($1) |
| 7567 _LT_COMPILER_PIC($1) |
| 7568 _LT_COMPILER_C_O($1) |
| 7569 _LT_COMPILER_FILE_LOCKS($1) |
| 7570 _LT_LINKER_SHLIBS($1) |
| 7571 _LT_LINKER_HARDCODE_LIBPATH($1) |
| 7572 |
| 7573 _LT_CONFIG($1) |
| 7574 fi |
| 7575 |
| 7576 AC_LANG_RESTORE |
| 7577 |
| 7578 GCC=$lt_save_GCC |
| 7579 CC=$lt_save_CC |
| 7580 CFLAGS=$lt_save_CFLAGS |
| 7581 ])# _LT_LANG_GO_CONFIG |
| 7582 |
| 7583 |
6927 # _LT_LANG_RC_CONFIG([TAG]) | 7584 # _LT_LANG_RC_CONFIG([TAG]) |
6928 # ------------------------- | 7585 # ------------------------- |
6929 # Ensure that the configuration variables for the Windows resource compiler | 7586 # Ensure that the configuration variables for the Windows resource compiler |
6930 # are suitably defined. These variables are subsequently used by _LT_CONFIG | 7587 # are suitably defined. These variables are subsequently used by _LT_CONFIG |
6931 # to write the compiler configuration to `libtool'. | 7588 # to write the compiler configuration to `libtool'. |
6932 m4_defun([_LT_LANG_RC_CONFIG], | 7589 m4_defun([_LT_LANG_RC_CONFIG], |
6933 [AC_REQUIRE([LT_PROG_RC])dnl | 7590 [AC_REQUIRE([LT_PROG_RC])dnl |
6934 AC_LANG_SAVE | 7591 AC_LANG_SAVE |
6935 | 7592 |
6936 # Source file extension for RC test sources. | 7593 # Source file extension for RC test sources. |
(...skipping 11 matching lines...) Expand all Loading... |
6948 | 7605 |
6949 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 7606 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
6950 _LT_TAG_COMPILER | 7607 _LT_TAG_COMPILER |
6951 | 7608 |
6952 # save warnings/boilerplate of simple test code | 7609 # save warnings/boilerplate of simple test code |
6953 _LT_COMPILER_BOILERPLATE | 7610 _LT_COMPILER_BOILERPLATE |
6954 _LT_LINKER_BOILERPLATE | 7611 _LT_LINKER_BOILERPLATE |
6955 | 7612 |
6956 # Allow CC to be a program name with arguments. | 7613 # Allow CC to be a program name with arguments. |
6957 lt_save_CC="$CC" | 7614 lt_save_CC="$CC" |
| 7615 lt_save_CFLAGS=$CFLAGS |
6958 lt_save_GCC=$GCC | 7616 lt_save_GCC=$GCC |
6959 GCC= | 7617 GCC= |
6960 CC=${RC-"windres"} | 7618 CC=${RC-"windres"} |
| 7619 CFLAGS= |
6961 compiler=$CC | 7620 compiler=$CC |
6962 _LT_TAGVAR(compiler, $1)=$CC | 7621 _LT_TAGVAR(compiler, $1)=$CC |
6963 _LT_CC_BASENAME([$compiler]) | 7622 _LT_CC_BASENAME([$compiler]) |
6964 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 7623 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
6965 | 7624 |
6966 if test -n "$compiler"; then | 7625 if test -n "$compiler"; then |
6967 : | 7626 : |
6968 _LT_CONFIG($1) | 7627 _LT_CONFIG($1) |
6969 fi | 7628 fi |
6970 | 7629 |
6971 GCC=$lt_save_GCC | 7630 GCC=$lt_save_GCC |
6972 AC_LANG_RESTORE | 7631 AC_LANG_RESTORE |
6973 CC="$lt_save_CC" | 7632 CC=$lt_save_CC |
| 7633 CFLAGS=$lt_save_CFLAGS |
6974 ])# _LT_LANG_RC_CONFIG | 7634 ])# _LT_LANG_RC_CONFIG |
6975 | 7635 |
6976 | 7636 |
6977 # LT_PROG_GCJ | 7637 # LT_PROG_GCJ |
6978 # ----------- | 7638 # ----------- |
6979 AC_DEFUN([LT_PROG_GCJ], | 7639 AC_DEFUN([LT_PROG_GCJ], |
6980 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | 7640 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
6981 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | 7641 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
6982 [AC_CHECK_TOOL(GCJ, gcj,) | 7642 [AC_CHECK_TOOL(GCJ, gcj,) |
6983 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | 7643 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
6984 AC_SUBST(GCJFLAGS)])])[]dnl | 7644 AC_SUBST(GCJFLAGS)])])[]dnl |
6985 ]) | 7645 ]) |
6986 | 7646 |
6987 # Old name: | 7647 # Old name: |
6988 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | 7648 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
6989 dnl aclocal-1.4 backwards compatibility: | 7649 dnl aclocal-1.4 backwards compatibility: |
6990 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | 7650 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
6991 | 7651 |
6992 | 7652 |
| 7653 # LT_PROG_GO |
| 7654 # ---------- |
| 7655 AC_DEFUN([LT_PROG_GO], |
| 7656 [AC_CHECK_TOOL(GOC, gccgo,) |
| 7657 ]) |
| 7658 |
| 7659 |
6993 # LT_PROG_RC | 7660 # LT_PROG_RC |
6994 # ---------- | 7661 # ---------- |
6995 AC_DEFUN([LT_PROG_RC], | 7662 AC_DEFUN([LT_PROG_RC], |
6996 [AC_CHECK_TOOL(RC, windres,) | 7663 [AC_CHECK_TOOL(RC, windres,) |
6997 ]) | 7664 ]) |
6998 | 7665 |
6999 # Old name: | 7666 # Old name: |
7000 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | 7667 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) |
7001 dnl aclocal-1.4 backwards compatibility: | 7668 dnl aclocal-1.4 backwards compatibility: |
7002 dnl AC_DEFUN([LT_AC_PROG_RC], []) | 7669 dnl AC_DEFUN([LT_AC_PROG_RC], []) |
(...skipping 19 matching lines...) Expand all Loading... |
7022 # -------------- | 7689 # -------------- |
7023 # If we don't have a new enough Autoconf to choose the best objdump | 7690 # If we don't have a new enough Autoconf to choose the best objdump |
7024 # available, choose the one first in the user's PATH. | 7691 # available, choose the one first in the user's PATH. |
7025 m4_defun([_LT_DECL_OBJDUMP], | 7692 m4_defun([_LT_DECL_OBJDUMP], |
7026 [AC_CHECK_TOOL(OBJDUMP, objdump, false) | 7693 [AC_CHECK_TOOL(OBJDUMP, objdump, false) |
7027 test -z "$OBJDUMP" && OBJDUMP=objdump | 7694 test -z "$OBJDUMP" && OBJDUMP=objdump |
7028 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | 7695 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) |
7029 AC_SUBST([OBJDUMP]) | 7696 AC_SUBST([OBJDUMP]) |
7030 ]) | 7697 ]) |
7031 | 7698 |
| 7699 # _LT_DECL_DLLTOOL |
| 7700 # ---------------- |
| 7701 # Ensure DLLTOOL variable is set. |
| 7702 m4_defun([_LT_DECL_DLLTOOL], |
| 7703 [AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 7704 test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7705 _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) |
| 7706 AC_SUBST([DLLTOOL]) |
| 7707 ]) |
7032 | 7708 |
7033 # _LT_DECL_SED | 7709 # _LT_DECL_SED |
7034 # ------------ | 7710 # ------------ |
7035 # Check for a fully-functional sed program, that truncates | 7711 # Check for a fully-functional sed program, that truncates |
7036 # as few characters as possible. Prefer GNU sed if found. | 7712 # as few characters as possible. Prefer GNU sed if found. |
7037 m4_defun([_LT_DECL_SED], | 7713 m4_defun([_LT_DECL_SED], |
7038 [AC_PROG_SED | 7714 [AC_PROG_SED |
7039 test -z "$SED" && SED=sed | 7715 test -z "$SED" && SED=sed |
7040 Xsed="$SED -e 1s/^X//" | 7716 Xsed="$SED -e 1s/^X//" |
7041 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | 7717 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7113 | 7789 |
7114 # _LT_CHECK_SHELL_FEATURES | 7790 # _LT_CHECK_SHELL_FEATURES |
7115 # ------------------------ | 7791 # ------------------------ |
7116 # Find out whether the shell is Bourne or XSI compatible, | 7792 # Find out whether the shell is Bourne or XSI compatible, |
7117 # or has some other useful features. | 7793 # or has some other useful features. |
7118 m4_defun([_LT_CHECK_SHELL_FEATURES], | 7794 m4_defun([_LT_CHECK_SHELL_FEATURES], |
7119 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) | 7795 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) |
7120 # Try some XSI features | 7796 # Try some XSI features |
7121 xsi_shell=no | 7797 xsi_shell=no |
7122 ( _lt_dummy="a/b/c" | 7798 ( _lt_dummy="a/b/c" |
7123 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | 7799 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy
"}, \ |
7124 = c,a/b,, \ | 7800 = c,a/b,b/c, \ |
7125 && eval 'test $(( 1 + 1 )) -eq 2 \ | 7801 && eval 'test $(( 1 + 1 )) -eq 2 \ |
7126 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | 7802 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
7127 && xsi_shell=yes | 7803 && xsi_shell=yes |
7128 AC_MSG_RESULT([$xsi_shell]) | 7804 AC_MSG_RESULT([$xsi_shell]) |
7129 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) | 7805 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) |
7130 | 7806 |
7131 AC_MSG_CHECKING([whether the shell understands "+="]) | 7807 AC_MSG_CHECKING([whether the shell understands "+="]) |
7132 lt_shell_append=no | 7808 lt_shell_append=no |
7133 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ | 7809 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ |
7134 >/dev/null 2>&1 \ | 7810 >/dev/null 2>&1 \ |
(...skipping 18 matching lines...) Expand all Loading... |
7153 *) # EBCDIC based system | 7829 *) # EBCDIC based system |
7154 lt_SP2NL='tr \100 \n' | 7830 lt_SP2NL='tr \100 \n' |
7155 lt_NL2SP='tr \r\n \100\100' | 7831 lt_NL2SP='tr \r\n \100\100' |
7156 ;; | 7832 ;; |
7157 esac | 7833 esac |
7158 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | 7834 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl |
7159 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | 7835 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl |
7160 ])# _LT_CHECK_SHELL_FEATURES | 7836 ])# _LT_CHECK_SHELL_FEATURES |
7161 | 7837 |
7162 | 7838 |
7163 # _LT_PROG_XSI_SHELLFNS | 7839 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) |
7164 # --------------------- | 7840 # ------------------------------------------------------ |
7165 # Bourne and XSI compatible variants of some useful shell functions. | 7841 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and |
7166 m4_defun([_LT_PROG_XSI_SHELLFNS], | 7842 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. |
7167 [case $xsi_shell in | 7843 m4_defun([_LT_PROG_FUNCTION_REPLACE], |
7168 yes) | 7844 [dnl { |
7169 cat << \_LT_EOF >> "$cfgfile" | 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 ]) |
7170 | 7854 |
7171 # func_dirname file append nondir_replacement | |
7172 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
7173 # otherwise set result to NONDIR_REPLACEMENT. | |
7174 func_dirname () | |
7175 { | |
7176 case ${1} in | |
7177 */*) func_dirname_result="${1%/*}${2}" ;; | |
7178 * ) func_dirname_result="${3}" ;; | |
7179 esac | |
7180 } | |
7181 | 7855 |
7182 # func_basename file | 7856 # _LT_PROG_REPLACE_SHELLFNS |
7183 func_basename () | 7857 # ------------------------- |
7184 { | 7858 # Replace existing portable implementations of several shell functions with |
7185 func_basename_result="${1##*/}" | 7859 # equivalent extended shell implementations where those features are available.. |
7186 } | 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]) |
7187 | 7867 |
7188 # func_dirname_and_basename file append nondir_replacement | 7868 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl |
7189 # perform func_basename and func_dirname in a single function | 7869 func_basename_result="${1##*/}"]) |
7190 # call: | |
7191 # dirname: Compute the dirname of FILE. If nonempty, | |
7192 # add APPEND to the result, otherwise set result | |
7193 # to NONDIR_REPLACEMENT. | |
7194 # value returned in "$func_dirname_result" | |
7195 # basename: Compute filename of FILE. | |
7196 # value retuned in "$func_basename_result" | |
7197 # Implementation must be kept synchronized with func_dirname | |
7198 # and func_basename. For efficiency, we do not delegate to | |
7199 # those functions but instead duplicate the functionality here. | |
7200 func_dirname_and_basename () | |
7201 { | |
7202 case ${1} in | |
7203 */*) func_dirname_result="${1%/*}${2}" ;; | |
7204 * ) func_dirname_result="${3}" ;; | |
7205 esac | |
7206 func_basename_result="${1##*/}" | |
7207 } | |
7208 | 7870 |
7209 # func_stripname prefix suffix name | 7871 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl |
7210 # strip PREFIX and SUFFIX off of NAME. | 7872 case ${1} in |
7211 # PREFIX and SUFFIX must not contain globbing or regex special | 7873 */*) func_dirname_result="${1%/*}${2}" ;; |
7212 # characters, hashes, percent signs, but SUFFIX may contain a leading | 7874 * ) func_dirname_result="${3}" ;; |
7213 # dot (in which case that matches only a dot). | 7875 esac |
7214 func_stripname () | 7876 func_basename_result="${1##*/}"]) |
7215 { | |
7216 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
7217 # positional parameters, so assign one to ordinary parameter first. | |
7218 func_stripname_result=${3} | |
7219 func_stripname_result=${func_stripname_result#"${1}"} | |
7220 func_stripname_result=${func_stripname_result%"${2}"} | |
7221 } | |
7222 | 7877 |
7223 # func_opt_split | 7878 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl |
7224 func_opt_split () | 7879 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
7225 { | 7880 # positional parameters, so assign one to ordinary parameter first. |
7226 func_opt_split_opt=${1%%=*} | 7881 func_stripname_result=${3} |
7227 func_opt_split_arg=${1#*=} | 7882 func_stripname_result=${func_stripname_result#"${1}"} |
7228 } | 7883 func_stripname_result=${func_stripname_result%"${2}"}]) |
7229 | 7884 |
7230 # func_lo2o object | 7885 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl |
7231 func_lo2o () | 7886 func_split_long_opt_name=${1%%=*} |
7232 { | 7887 func_split_long_opt_arg=${1#*=}]) |
7233 case ${1} in | |
7234 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
7235 *) func_lo2o_result=${1} ;; | |
7236 esac | |
7237 } | |
7238 | 7888 |
7239 # func_xform libobj-or-source | 7889 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl |
7240 func_xform () | 7890 func_split_short_opt_arg=${1#??} |
7241 { | 7891 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) |
7242 func_xform_result=${1%.*}.lo | |
7243 } | |
7244 | 7892 |
7245 # func_arith arithmetic-term... | 7893 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl |
7246 func_arith () | 7894 case ${1} in |
7247 { | 7895 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
7248 func_arith_result=$(( $[*] )) | 7896 *) func_lo2o_result=${1} ;; |
7249 } | 7897 esac]) |
7250 | 7898 |
7251 # func_len string | 7899 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) |
7252 # STRING may not start with a hyphen. | |
7253 func_len () | |
7254 { | |
7255 func_len_result=${#1} | |
7256 } | |
7257 | 7900 |
7258 _LT_EOF | 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 |
| 7932 # _LT_PATH_CONVERSION_FUNCTIONS |
| 7933 # ----------------------------- |
| 7934 # Determine which file name conversion functions should be used by |
| 7935 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed |
| 7936 # for certain cross-compile configurations and native mingw. |
| 7937 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], |
| 7938 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 7939 AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 7940 AC_MSG_CHECKING([how to convert $build file names to $host format]) |
| 7941 AC_CACHE_VAL(lt_cv_to_host_file_cmd, |
| 7942 [case $host in |
| 7943 *-*-mingw* ) |
| 7944 case $build in |
| 7945 *-*-mingw* ) # actually msys |
| 7946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 7947 ;; |
| 7948 *-*-cygwin* ) |
| 7949 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 7950 ;; |
| 7951 * ) # otherwise, assume *nix |
| 7952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 7953 ;; |
| 7954 esac |
7259 ;; | 7955 ;; |
7260 *) # Bourne compatible functions. | 7956 *-*-cygwin* ) |
7261 cat << \_LT_EOF >> "$cfgfile" | 7957 case $build in |
| 7958 *-*-mingw* ) # actually msys |
| 7959 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 7960 ;; |
| 7961 *-*-cygwin* ) |
| 7962 lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7963 ;; |
| 7964 * ) # otherwise, assume *nix |
| 7965 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 7966 ;; |
| 7967 esac |
| 7968 ;; |
| 7969 * ) # unhandled hosts (and "normal" native builds) |
| 7970 lt_cv_to_host_file_cmd=func_convert_file_noop |
| 7971 ;; |
| 7972 esac |
| 7973 ]) |
| 7974 to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 7975 AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) |
| 7976 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], |
| 7977 [0], [convert $build file names to $host format])dnl |
7262 | 7978 |
7263 # func_dirname file append nondir_replacement | 7979 AC_MSG_CHECKING([how to convert $build file names to toolchain format]) |
7264 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | 7980 AC_CACHE_VAL(lt_cv_to_tool_file_cmd, |
7265 # otherwise set result to NONDIR_REPLACEMENT. | 7981 [#assume ordinary cross tools, or native build. |
7266 func_dirname () | 7982 lt_cv_to_tool_file_cmd=func_convert_file_noop |
7267 { | 7983 case $host in |
7268 # Extract subdirectory from the argument. | 7984 *-*-mingw* ) |
7269 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | 7985 case $build in |
7270 if test "X$func_dirname_result" = "X${1}"; then | 7986 *-*-mingw* ) # actually msys |
7271 func_dirname_result="${3}" | 7987 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
7272 else | 7988 ;; |
7273 func_dirname_result="$func_dirname_result${2}" | 7989 esac |
7274 fi | 7990 ;; |
7275 } | |
7276 | |
7277 # func_basename file | |
7278 func_basename () | |
7279 { | |
7280 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
7281 } | |
7282 | |
7283 dnl func_dirname_and_basename | |
7284 dnl A portable version of this function is already defined in general.m4sh | |
7285 dnl so there is no need for it here. | |
7286 | |
7287 # func_stripname prefix suffix name | |
7288 # strip PREFIX and SUFFIX off of NAME. | |
7289 # PREFIX and SUFFIX must not contain globbing or regex special | |
7290 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
7291 # dot (in which case that matches only a dot). | |
7292 # func_strip_suffix prefix name | |
7293 func_stripname () | |
7294 { | |
7295 case ${2} in | |
7296 .*) func_stripname_result=`$ECHO "X${3}" \ | |
7297 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
7298 *) func_stripname_result=`$ECHO "X${3}" \ | |
7299 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
7300 esac | |
7301 } | |
7302 | |
7303 # sed scripts: | |
7304 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | |
7305 my_sed_long_arg='1s/^-[[^=]]*=//' | |
7306 | |
7307 # func_opt_split | |
7308 func_opt_split () | |
7309 { | |
7310 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
7311 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
7312 } | |
7313 | |
7314 # func_lo2o object | |
7315 func_lo2o () | |
7316 { | |
7317 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
7318 } | |
7319 | |
7320 # func_xform libobj-or-source | |
7321 func_xform () | |
7322 { | |
7323 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | |
7324 } | |
7325 | |
7326 # func_arith arithmetic-term... | |
7327 func_arith () | |
7328 { | |
7329 func_arith_result=`expr "$[@]"` | |
7330 } | |
7331 | |
7332 # func_len string | |
7333 # STRING may not start with a hyphen. | |
7334 func_len () | |
7335 { | |
7336 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | |
7337 } | |
7338 | |
7339 _LT_EOF | |
7340 esac | 7991 esac |
7341 | |
7342 case $lt_shell_append in | |
7343 yes) | |
7344 cat << \_LT_EOF >> "$cfgfile" | |
7345 | |
7346 # func_append var value | |
7347 # Append VALUE to the end of shell variable VAR. | |
7348 func_append () | |
7349 { | |
7350 eval "$[1]+=\$[2]" | |
7351 } | |
7352 _LT_EOF | |
7353 ;; | |
7354 *) | |
7355 cat << \_LT_EOF >> "$cfgfile" | |
7356 | |
7357 # func_append var value | |
7358 # Append VALUE to the end of shell variable VAR. | |
7359 func_append () | |
7360 { | |
7361 eval "$[1]=\$$[1]\$[2]" | |
7362 } | |
7363 | |
7364 _LT_EOF | |
7365 ;; | |
7366 esac | |
7367 ]) | 7992 ]) |
| 7993 to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 7994 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) |
| 7995 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], |
| 7996 [0], [convert $build files to toolchain format])dnl |
| 7997 ])# _LT_PATH_CONVERSION_FUNCTIONS |
7368 | 7998 |
7369 # Helper functions for option handling. -*- Autoconf -*- | 7999 # Helper functions for option handling. -*- Autoconf -*- |
7370 # | 8000 # |
7371 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | 8001 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, |
| 8002 # Inc. |
7372 # Written by Gary V. Vaughan, 2004 | 8003 # Written by Gary V. Vaughan, 2004 |
7373 # | 8004 # |
7374 # This file is free software; the Free Software Foundation gives | 8005 # This file is free software; the Free Software Foundation gives |
7375 # unlimited permission to copy and/or distribute it, with or without | 8006 # unlimited permission to copy and/or distribute it, with or without |
7376 # modifications, as long as this notice is preserved. | 8007 # modifications, as long as this notice is preserved. |
7377 | 8008 |
7378 # serial 6 ltoptions.m4 | 8009 # serial 7 ltoptions.m4 |
7379 | 8010 |
7380 # This is to help aclocal find these macros, as it can't see m4_define. | 8011 # This is to help aclocal find these macros, as it can't see m4_define. |
7381 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | 8012 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
7382 | 8013 |
7383 | 8014 |
7384 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | 8015 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) |
7385 # ------------------------------------------ | 8016 # ------------------------------------------ |
7386 m4_define([_LT_MANGLE_OPTION], | 8017 m4_define([_LT_MANGLE_OPTION], |
7387 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) | 8018 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) |
7388 | 8019 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7483 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) | 8114 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) |
7484 | 8115 |
7485 | 8116 |
7486 # win32-dll | 8117 # win32-dll |
7487 # --------- | 8118 # --------- |
7488 # Declare package support for building win32 dll's. | 8119 # Declare package support for building win32 dll's. |
7489 LT_OPTION_DEFINE([LT_INIT], [win32-dll], | 8120 LT_OPTION_DEFINE([LT_INIT], [win32-dll], |
7490 [enable_win32_dll=yes | 8121 [enable_win32_dll=yes |
7491 | 8122 |
7492 case $host in | 8123 case $host in |
7493 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | 8124 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
7494 AC_CHECK_TOOL(AS, as, false) | 8125 AC_CHECK_TOOL(AS, as, false) |
7495 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 8126 AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
7496 AC_CHECK_TOOL(OBJDUMP, objdump, false) | 8127 AC_CHECK_TOOL(OBJDUMP, objdump, false) |
7497 ;; | 8128 ;; |
7498 esac | 8129 esac |
7499 | 8130 |
7500 test -z "$AS" && AS=as | 8131 test -z "$AS" && AS=as |
7501 _LT_DECL([], [AS], [0], [Assembler program])dnl | 8132 _LT_DECL([], [AS], [1], [Assembler program])dnl |
7502 | 8133 |
7503 test -z "$DLLTOOL" && DLLTOOL=dlltool | 8134 test -z "$DLLTOOL" && DLLTOOL=dlltool |
7504 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | 8135 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl |
7505 | 8136 |
7506 test -z "$OBJDUMP" && OBJDUMP=objdump | 8137 test -z "$OBJDUMP" && OBJDUMP=objdump |
7507 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | 8138 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl |
7508 ])# win32-dll | 8139 ])# win32-dll |
7509 | 8140 |
7510 AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | 8141 AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
7511 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 8142 [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
7512 _LT_SET_OPTION([LT_INIT], [win32-dll]) | 8143 _LT_SET_OPTION([LT_INIT], [win32-dll]) |
7513 AC_DIAGNOSE([obsolete], | 8144 AC_DIAGNOSE([obsolete], |
7514 [$0: Remove this warning and the call to _LT_SET_OPTION when you | 8145 [$0: Remove this warning and the call to _LT_SET_OPTION when you |
7515 put the `win32-dll' option into LT_INIT's first parameter.]) | 8146 put the `win32-dll' option into LT_INIT's first parameter.]) |
7516 ]) | 8147 ]) |
7517 | 8148 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7683 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | 8314 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) |
7684 | 8315 |
7685 | 8316 |
7686 # _LT_WITH_PIC([MODE]) | 8317 # _LT_WITH_PIC([MODE]) |
7687 # -------------------- | 8318 # -------------------- |
7688 # implement the --with-pic flag, and support the `pic-only' and `no-pic' | 8319 # implement the --with-pic flag, and support the `pic-only' and `no-pic' |
7689 # LT_INIT options. | 8320 # LT_INIT options. |
7690 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | 8321 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
7691 m4_define([_LT_WITH_PIC], | 8322 m4_define([_LT_WITH_PIC], |
7692 [AC_ARG_WITH([pic], | 8323 [AC_ARG_WITH([pic], |
7693 [AS_HELP_STRING([--with-pic], | 8324 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], |
7694 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | 8325 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
7695 [pic_mode="$withval"], | 8326 [lt_p=${PACKAGE-default} |
| 8327 case $withval in |
| 8328 yes|no) pic_mode=$withval ;; |
| 8329 *) |
| 8330 pic_mode=default |
| 8331 # Look at the argument we got. We use all the common list separators. |
| 8332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8333 for lt_pkg in $withval; do |
| 8334 » IFS="$lt_save_ifs" |
| 8335 » if test "X$lt_pkg" = "X$lt_p"; then |
| 8336 » pic_mode=yes |
| 8337 » fi |
| 8338 done |
| 8339 IFS="$lt_save_ifs" |
| 8340 ;; |
| 8341 esac], |
7696 [pic_mode=default]) | 8342 [pic_mode=default]) |
7697 | 8343 |
7698 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | 8344 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
7699 | 8345 |
7700 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl | 8346 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl |
7701 ])# _LT_WITH_PIC | 8347 ])# _LT_WITH_PIC |
7702 | 8348 |
7703 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) | 8349 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) |
7704 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) | 8350 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) |
7705 | 8351 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7855 | 8501 |
7856 # ltversion.m4 -- version numbers -*- Autoconf -*- | 8502 # ltversion.m4 -- version numbers -*- Autoconf -*- |
7857 # | 8503 # |
7858 # Copyright (C) 2004 Free Software Foundation, Inc. | 8504 # Copyright (C) 2004 Free Software Foundation, Inc. |
7859 # Written by Scott James Remnant, 2004 | 8505 # Written by Scott James Remnant, 2004 |
7860 # | 8506 # |
7861 # This file is free software; the Free Software Foundation gives | 8507 # This file is free software; the Free Software Foundation gives |
7862 # unlimited permission to copy and/or distribute it, with or without | 8508 # unlimited permission to copy and/or distribute it, with or without |
7863 # modifications, as long as this notice is preserved. | 8509 # modifications, as long as this notice is preserved. |
7864 | 8510 |
7865 # Generated from ltversion.in. | 8511 # @configure_input@ |
7866 | 8512 |
7867 # serial 3012 ltversion.m4 | 8513 # serial 3337 ltversion.m4 |
7868 # This file is part of GNU Libtool | 8514 # This file is part of GNU Libtool |
7869 | 8515 |
7870 m4_define([LT_PACKAGE_VERSION], [2.2.6]) | 8516 m4_define([LT_PACKAGE_VERSION], [2.4.2]) |
7871 m4_define([LT_PACKAGE_REVISION], [1.3012]) | 8517 m4_define([LT_PACKAGE_REVISION], [1.3337]) |
7872 | 8518 |
7873 AC_DEFUN([LTVERSION_VERSION], | 8519 AC_DEFUN([LTVERSION_VERSION], |
7874 [macro_version='2.2.6' | 8520 [macro_version='2.4.2' |
7875 macro_revision='1.3012' | 8521 macro_revision='1.3337' |
7876 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | 8522 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
7877 _LT_DECL(, macro_revision, 0) | 8523 _LT_DECL(, macro_revision, 0) |
7878 ]) | 8524 ]) |
7879 | 8525 |
7880 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | 8526 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
7881 # | 8527 # |
7882 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | 8528 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. |
7883 # Written by Scott James Remnant, 2004. | 8529 # Written by Scott James Remnant, 2004. |
7884 # | 8530 # |
7885 # This file is free software; the Free Software Foundation gives | 8531 # This file is free software; the Free Software Foundation gives |
7886 # unlimited permission to copy and/or distribute it, with or without | 8532 # unlimited permission to copy and/or distribute it, with or without |
7887 # modifications, as long as this notice is preserved. | 8533 # modifications, as long as this notice is preserved. |
7888 | 8534 |
7889 # serial 4 lt~obsolete.m4 | 8535 # serial 5 lt~obsolete.m4 |
7890 | 8536 |
7891 # These exist entirely to fool aclocal when bootstrapping libtool. | 8537 # These exist entirely to fool aclocal when bootstrapping libtool. |
7892 # | 8538 # |
7893 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | 8539 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) |
7894 # which have later been changed to m4_define as they aren't part of the | 8540 # which have later been changed to m4_define as they aren't part of the |
7895 # exported API, or moved to Autoconf or Automake where they belong. | 8541 # exported API, or moved to Autoconf or Automake where they belong. |
7896 # | 8542 # |
7897 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | 8543 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN |
7898 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | 8544 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us |
7899 # using a macro with the same name in our local m4/libtool.m4 it'll | 8545 # using a macro with the same name in our local m4/libtool.m4 it'll |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7949 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) | 8595 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) |
7950 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) | 8596 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) |
7951 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) | 8597 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) |
7952 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) | 8598 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) |
7953 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMI
C_LINKER])]) | 8599 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMI
C_LINKER])]) |
7954 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) | 8600 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) |
7955 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) | 8601 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) |
7956 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | 8602 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
7957 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | 8603 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
7958 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | 8604 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
7959 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | |
7960 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | 8605 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
7961 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | 8606 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
7962 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]
) | 8607 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]
) |
7963 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) | 8608 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) |
7964 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]
) | 8609 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]
) |
7965 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) | 8610 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) |
7966 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]
) | 8611 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]
) |
7967 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) | 8612 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) |
7968 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) | 8613 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) |
7969 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | 8614 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
7970 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | 8615 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
7971 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | 8616 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |
7972 | 8617 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]
) |
| 8618 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) |
| 8619 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]
) |
| 8620 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) |
| 8621 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) |
| 8622 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) |
| 8623 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) |
| 8624 |
| 8625 # Copyright (C) 2002-2013 Free Software Foundation, Inc. |
| 8626 # |
| 8627 # This file is free software; the Free Software Foundation |
| 8628 # gives unlimited permission to copy and/or distribute it, |
| 8629 # with or without modifications, as long as this notice is preserved. |
| 8630 |
| 8631 # AM_AUTOMAKE_VERSION(VERSION) |
| 8632 # ---------------------------- |
| 8633 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
| 8634 # generated from the m4 files accompanying Automake X.Y. |
| 8635 # (This private macro should not be called outside this file.) |
| 8636 AC_DEFUN([AM_AUTOMAKE_VERSION], |
| 8637 [am__api_version='1.14' |
| 8638 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 8639 dnl require some minimum version. Point them to the right macro. |
| 8640 m4_if([$1], [1.14.1], [], |
| 8641 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 8642 ]) |
| 8643 |
| 8644 # _AM_AUTOCONF_VERSION(VERSION) |
| 8645 # ----------------------------- |
| 8646 # aclocal traces this macro to find the Autoconf version. |
| 8647 # This is a private macro too. Using m4_define simplifies |
| 8648 # the logic in aclocal, which can simply ignore this definition. |
| 8649 m4_define([_AM_AUTOCONF_VERSION], []) |
| 8650 |
| 8651 # AM_SET_CURRENT_AUTOMAKE_VERSION |
| 8652 # ------------------------------- |
| 8653 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| 8654 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
| 8655 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 8656 [AM_AUTOMAKE_VERSION([1.14.1])dnl |
| 8657 m4_ifndef([AC_AUTOCONF_VERSION], |
| 8658 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| 8659 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
| 8660 |
| 8661 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| 8662 |
| 8663 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 8664 # |
| 8665 # This file is free software; the Free Software Foundation |
| 8666 # gives unlimited permission to copy and/or distribute it, |
| 8667 # with or without modifications, as long as this notice is preserved. |
| 8668 |
| 8669 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 8670 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
| 8671 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. |
| 8672 # |
| 8673 # Of course, Automake must honor this variable whenever it calls a |
| 8674 # tool from the auxiliary directory. The problem is that $srcdir (and |
| 8675 # therefore $ac_aux_dir as well) can be either absolute or relative, |
| 8676 # depending on how configure is run. This is pretty annoying, since |
| 8677 # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
| 8678 # source directory, any form will work fine, but in subdirectories a |
| 8679 # relative path needs to be adjusted first. |
| 8680 # |
| 8681 # $ac_aux_dir/missing |
| 8682 # fails when called from a subdirectory if $ac_aux_dir is relative |
| 8683 # $top_srcdir/$ac_aux_dir/missing |
| 8684 # fails if $ac_aux_dir is absolute, |
| 8685 # fails when called from a subdirectory in a VPATH build with |
| 8686 # a relative $ac_aux_dir |
| 8687 # |
| 8688 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 8689 # are both prefixed by $srcdir. In an in-source build this is usually |
| 8690 # harmless because $srcdir is '.', but things will broke when you |
| 8691 # start a VPATH build or use an absolute $srcdir. |
| 8692 # |
| 8693 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 8694 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
| 8695 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
| 8696 # and then we would define $MISSING as |
| 8697 # MISSING="\${SHELL} $am_aux_dir/missing" |
| 8698 # This will work as long as MISSING is not called from configure, because |
| 8699 # unfortunately $(top_srcdir) has no meaning in configure. |
| 8700 # However there are other variables, like CC, which are often used in |
| 8701 # configure, and could therefore not use this "fixed" $ac_aux_dir. |
| 8702 # |
| 8703 # Another solution, used here, is to always expand $ac_aux_dir to an |
| 8704 # absolute PATH. The drawback is that using absolute paths prevent a |
| 8705 # configured tree to be moved without reconfiguration. |
| 8706 |
| 8707 AC_DEFUN([AM_AUX_DIR_EXPAND], |
| 8708 [dnl Rely on autoconf to set up CDPATH properly. |
| 8709 AC_PREREQ([2.50])dnl |
| 8710 # expand $ac_aux_dir to an absolute path |
| 8711 am_aux_dir=`cd $ac_aux_dir && pwd` |
| 8712 ]) |
| 8713 |
| 8714 # AM_CONDITIONAL -*- Autoconf -*- |
| 8715 |
| 8716 # Copyright (C) 1997-2013 Free Software Foundation, Inc. |
| 8717 # |
| 8718 # This file is free software; the Free Software Foundation |
| 8719 # gives unlimited permission to copy and/or distribute it, |
| 8720 # with or without modifications, as long as this notice is preserved. |
| 8721 |
| 8722 # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 8723 # ------------------------------------- |
| 8724 # Define a conditional. |
| 8725 AC_DEFUN([AM_CONDITIONAL], |
| 8726 [AC_PREREQ([2.52])dnl |
| 8727 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 8728 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 8729 AC_SUBST([$1_TRUE])dnl |
| 8730 AC_SUBST([$1_FALSE])dnl |
| 8731 _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| 8732 _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
| 8733 m4_define([_AM_COND_VALUE_$1], [$2])dnl |
| 8734 if $2; then |
| 8735 $1_TRUE= |
| 8736 $1_FALSE='#' |
| 8737 else |
| 8738 $1_TRUE='#' |
| 8739 $1_FALSE= |
| 8740 fi |
| 8741 AC_CONFIG_COMMANDS_PRE( |
| 8742 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
| 8743 AC_MSG_ERROR([[conditional "$1" was never defined. |
| 8744 Usually this means the macro was only invoked conditionally.]]) |
| 8745 fi])]) |
| 8746 |
| 8747 # Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 8748 # |
| 8749 # This file is free software; the Free Software Foundation |
| 8750 # gives unlimited permission to copy and/or distribute it, |
| 8751 # with or without modifications, as long as this notice is preserved. |
| 8752 |
| 8753 |
| 8754 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
| 8755 # written in clear, in which case automake, when reading aclocal.m4, |
| 8756 # will think it sees a *use*, and therefore will trigger all it's |
| 8757 # C support machinery. Also note that it means that autoscan, seeing |
| 8758 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
| 8759 |
| 8760 |
| 8761 # _AM_DEPENDENCIES(NAME) |
| 8762 # ---------------------- |
| 8763 # See how the compiler implements dependency checking. |
| 8764 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". |
| 8765 # We try a few techniques and use that to set a single cache variable. |
| 8766 # |
| 8767 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 8768 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
| 8769 # dependency, and given that the user is not expected to run this macro, |
| 8770 # just rely on AC_PROG_CC. |
| 8771 AC_DEFUN([_AM_DEPENDENCIES], |
| 8772 [AC_REQUIRE([AM_SET_DEPDIR])dnl |
| 8773 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
| 8774 AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 8775 AC_REQUIRE([AM_DEP_TRACK])dnl |
| 8776 |
| 8777 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], |
| 8778 [$1], [CXX], [depcc="$CXX" am_compiler_list=], |
| 8779 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 8780 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], |
| 8781 [$1], [UPC], [depcc="$UPC" am_compiler_list=], |
| 8782 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 8783 [depcc="$$1" am_compiler_list=]) |
| 8784 |
| 8785 AC_CACHE_CHECK([dependency style of $depcc], |
| 8786 [am_cv_$1_dependencies_compiler_type], |
| 8787 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 8788 # We make a subdir and do the tests there. Otherwise we can end up |
| 8789 # making bogus files that we don't know about and never remove. For |
| 8790 # instance it was reported that on HP-UX the gcc test will end up |
| 8791 # making a dummy file named 'D' -- because '-MD' means "put the output |
| 8792 # in D". |
| 8793 rm -rf conftest.dir |
| 8794 mkdir conftest.dir |
| 8795 # Copy depcomp to subdir because otherwise we won't find it if we're |
| 8796 # using a relative directory. |
| 8797 cp "$am_depcomp" conftest.dir |
| 8798 cd conftest.dir |
| 8799 # We will build objects and dependencies in a subdirectory because |
| 8800 # it helps to detect inapplicable dependency modes. For instance |
| 8801 # both Tru64's cc and ICC support -MD to output dependencies as a |
| 8802 # side effect of compilation, but ICC will put the dependencies in |
| 8803 # the current directory while Tru64 will put them in the object |
| 8804 # directory. |
| 8805 mkdir sub |
| 8806 |
| 8807 am_cv_$1_dependencies_compiler_type=none |
| 8808 if test "$am_compiler_list" = ""; then |
| 8809 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
| 8810 fi |
| 8811 am__universal=false |
| 8812 m4_case([$1], [CC], |
| 8813 [case " $depcc " in #( |
| 8814 *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 8815 esac], |
| 8816 [CXX], |
| 8817 [case " $depcc " in #( |
| 8818 *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 8819 esac]) |
| 8820 |
| 8821 for depmode in $am_compiler_list; do |
| 8822 # Setup a source with many dependencies, because some compilers |
| 8823 # like to wrap large dependency lists on column 80 (with \), and |
| 8824 # we should not choose a depcomp mode which is confused by this. |
| 8825 # |
| 8826 # We need to recreate these files for each test, as the compiler may |
| 8827 # overwrite some of them when testing with obscure command lines. |
| 8828 # This happens at least with the AIX C compiler. |
| 8829 : > sub/conftest.c |
| 8830 for i in 1 2 3 4 5 6; do |
| 8831 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 8832 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 8833 # Solaris 10 /bin/sh. |
| 8834 echo '/* dummy */' > sub/conftst$i.h |
| 8835 done |
| 8836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 8837 |
| 8838 # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 8839 # mode. It turns out that the SunPro C++ compiler does not properly |
| 8840 # handle '-M -o', and we need to detect this. Also, some Intel |
| 8841 # versions had trouble with output in subdirs. |
| 8842 am__obj=sub/conftest.${OBJEXT-o} |
| 8843 am__minus_obj="-o $am__obj" |
| 8844 case $depmode in |
| 8845 gcc) |
| 8846 # This depmode causes a compiler race in universal mode. |
| 8847 test "$am__universal" = false || continue |
| 8848 ;; |
| 8849 nosideeffect) |
| 8850 # After this tag, mechanisms are not by side-effect, so they'll |
| 8851 # only be used when explicitly requested. |
| 8852 if test "x$enable_dependency_tracking" = xyes; then |
| 8853 continue |
| 8854 else |
| 8855 break |
| 8856 fi |
| 8857 ;; |
| 8858 msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 8859 # This compiler won't grok '-c -o', but also, the minuso test has |
| 8860 # not run yet. These depmodes are late enough in the game, and |
| 8861 # so weak that their functioning should not be impacted. |
| 8862 am__obj=conftest.${OBJEXT-o} |
| 8863 am__minus_obj= |
| 8864 ;; |
| 8865 none) break ;; |
| 8866 esac |
| 8867 if depmode=$depmode \ |
| 8868 source=sub/conftest.c object=$am__obj \ |
| 8869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 8870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 8871 >/dev/null 2>conftest.err && |
| 8872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 8873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 8874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 8875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 8876 # icc doesn't choke on unknown options, it will just issue warnings |
| 8877 # or remarks (even with -Werror). So we grep stderr for any message |
| 8878 # that says an option was ignored or not supported. |
| 8879 # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 8880 # icc: Command line warning: ignoring option '-M'; no argument required |
| 8881 # The diagnosis changed in icc 8.0: |
| 8882 # icc: Command line remark: option '-MP' not supported |
| 8883 if (grep 'ignoring option' conftest.err || |
| 8884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 8885 am_cv_$1_dependencies_compiler_type=$depmode |
| 8886 break |
| 8887 fi |
| 8888 fi |
| 8889 done |
| 8890 |
| 8891 cd .. |
| 8892 rm -rf conftest.dir |
| 8893 else |
| 8894 am_cv_$1_dependencies_compiler_type=none |
| 8895 fi |
| 8896 ]) |
| 8897 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
| 8898 AM_CONDITIONAL([am__fastdep$1], [ |
| 8899 test "x$enable_dependency_tracking" != xno \ |
| 8900 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
| 8901 ]) |
| 8902 |
| 8903 |
| 8904 # AM_SET_DEPDIR |
| 8905 # ------------- |
| 8906 # Choose a directory name for dependency files. |
| 8907 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. |
| 8908 AC_DEFUN([AM_SET_DEPDIR], |
| 8909 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 8910 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 8911 ]) |
| 8912 |
| 8913 |
| 8914 # AM_DEP_TRACK |
| 8915 # ------------ |
| 8916 AC_DEFUN([AM_DEP_TRACK], |
| 8917 [AC_ARG_ENABLE([dependency-tracking], [dnl |
| 8918 AS_HELP_STRING( |
| 8919 [--enable-dependency-tracking], |
| 8920 [do not reject slow dependency extractors]) |
| 8921 AS_HELP_STRING( |
| 8922 [--disable-dependency-tracking], |
| 8923 [speeds up one-time build])]) |
| 8924 if test "x$enable_dependency_tracking" != xno; then |
| 8925 am_depcomp="$ac_aux_dir/depcomp" |
| 8926 AMDEPBACKSLASH='\' |
| 8927 am__nodep='_no' |
| 8928 fi |
| 8929 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 8930 AC_SUBST([AMDEPBACKSLASH])dnl |
| 8931 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
| 8932 AC_SUBST([am__nodep])dnl |
| 8933 _AM_SUBST_NOTMAKE([am__nodep])dnl |
| 8934 ]) |
| 8935 |
| 8936 # Generate code to set up dependency tracking. -*- Autoconf -*- |
| 8937 |
| 8938 # Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 8939 # |
| 8940 # This file is free software; the Free Software Foundation |
| 8941 # gives unlimited permission to copy and/or distribute it, |
| 8942 # with or without modifications, as long as this notice is preserved. |
| 8943 |
| 8944 |
| 8945 # _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 8946 # ------------------------------ |
| 8947 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 8948 [{ |
| 8949 # Older Autoconf quotes --file arguments for eval, but not when files |
| 8950 # are listed without --file. Let's play safe and only enable the eval |
| 8951 # if we detect the quoting. |
| 8952 case $CONFIG_FILES in |
| 8953 *\'*) eval set x "$CONFIG_FILES" ;; |
| 8954 *) set x $CONFIG_FILES ;; |
| 8955 esac |
| 8956 shift |
| 8957 for mf |
| 8958 do |
| 8959 # Strip MF so we end up with the name of the file. |
| 8960 mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 8961 # Check whether this is an Automake generated Makefile or not. |
| 8962 # We used to match only the files named 'Makefile.in', but |
| 8963 # some people rename them; so instead we look at the file content. |
| 8964 # Grep'ing the first line is not enough: some people post-process |
| 8965 # each Makefile.in and add a new line on top of each file to say so. |
| 8966 # Grep'ing the whole file is not good either: AIX grep has a line |
| 8967 # limit of 2048, but all sed's we know have understand at least 4000. |
| 8968 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1
; then |
| 8969 dirpart=`AS_DIRNAME("$mf")` |
| 8970 else |
| 8971 continue |
| 8972 fi |
| 8973 # Extract the definition of DEPDIR, am__include, and am__quote |
| 8974 # from the Makefile without running 'make'. |
| 8975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 8976 test -z "$DEPDIR" && continue |
| 8977 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 8978 test -z "$am__include" && continue |
| 8979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 8980 # Find all dependency output files, they are included files with |
| 8981 # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 8982 # simplest approach to changing $(DEPDIR) to its actual value in the |
| 8983 # expansion. |
| 8984 for file in `sed -n " |
| 8985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 8986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 8987 # Make sure the directory exists. |
| 8988 test -f "$dirpart/$file" && continue |
| 8989 fdir=`AS_DIRNAME(["$file"])` |
| 8990 AS_MKDIR_P([$dirpart/$fdir]) |
| 8991 # echo "creating $dirpart/$file" |
| 8992 echo '# dummy' > "$dirpart/$file" |
| 8993 done |
| 8994 done |
| 8995 } |
| 8996 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 8997 |
| 8998 |
| 8999 # AM_OUTPUT_DEPENDENCY_COMMANDS |
| 9000 # ----------------------------- |
| 9001 # This macro should only be invoked once -- use via AC_REQUIRE. |
| 9002 # |
| 9003 # This code is only required when automatic dependency tracking |
| 9004 # is enabled. FIXME. This creates each '.P' file that we will |
| 9005 # need in order to bootstrap the dependency handling code. |
| 9006 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 9007 [AC_CONFIG_COMMANDS([depfiles], |
| 9008 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 9009 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| 9010 ]) |
| 9011 |
| 9012 # Do all the work for Automake. -*- Autoconf -*- |
| 9013 |
| 9014 # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 9015 # |
| 9016 # This file is free software; the Free Software Foundation |
| 9017 # gives unlimited permission to copy and/or distribute it, |
| 9018 # with or without modifications, as long as this notice is preserved. |
| 9019 |
| 9020 # This macro actually does too much. Some checks are only needed if |
| 9021 # your package does certain things. But this isn't really a big deal. |
| 9022 |
| 9023 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. |
| 9024 m4_define([AC_PROG_CC], |
| 9025 m4_defn([AC_PROG_CC]) |
| 9026 [_AM_PROG_CC_C_O |
| 9027 ]) |
| 9028 |
| 9029 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| 9030 # AM_INIT_AUTOMAKE([OPTIONS]) |
| 9031 # ----------------------------------------------- |
| 9032 # The call with PACKAGE and VERSION arguments is the old style |
| 9033 # call (pre autoconf-2.50), which is being phased out. PACKAGE |
| 9034 # and VERSION should now be passed to AC_INIT and removed from |
| 9035 # the call to AM_INIT_AUTOMAKE. |
| 9036 # We support both call styles for the transition. After |
| 9037 # the next Automake release, Autoconf can make the AC_INIT |
| 9038 # arguments mandatory, and then we can depend on a new Autoconf |
| 9039 # release and drop the old call support. |
| 9040 AC_DEFUN([AM_INIT_AUTOMAKE], |
| 9041 [AC_PREREQ([2.65])dnl |
| 9042 dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| 9043 dnl the ones we care about. |
| 9044 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 9045 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| 9046 AC_REQUIRE([AC_PROG_INSTALL])dnl |
| 9047 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 9048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 9049 # is not polluted with repeated "-I." |
| 9050 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
| 9051 # test to see if srcdir already configured |
| 9052 if test -f $srcdir/config.status; then |
| 9053 AC_MSG_ERROR([source directory already configured; run "make distclean" ther
e first]) |
| 9054 fi |
| 9055 fi |
| 9056 |
| 9057 # test whether we have cygpath |
| 9058 if test -z "$CYGPATH_W"; then |
| 9059 if (cygpath --version) >/dev/null 2>/dev/null; then |
| 9060 CYGPATH_W='cygpath -w' |
| 9061 else |
| 9062 CYGPATH_W=echo |
| 9063 fi |
| 9064 fi |
| 9065 AC_SUBST([CYGPATH_W]) |
| 9066 |
| 9067 # Define the identity of the package. |
| 9068 dnl Distinguish between old-style and new-style calls. |
| 9069 m4_ifval([$2], |
| 9070 [AC_DIAGNOSE([obsolete], |
| 9071 [$0: two- and three-arguments forms are deprecated.]) |
| 9072 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 9073 AC_SUBST([PACKAGE], [$1])dnl |
| 9074 AC_SUBST([VERSION], [$2])], |
| 9075 [_AM_SET_OPTIONS([$1])dnl |
| 9076 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 9077 m4_if( |
| 9078 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), |
| 9079 [ok:ok],, |
| 9080 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
| 9081 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 9082 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 9083 |
| 9084 _AM_IF_OPTION([no-define],, |
| 9085 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) |
| 9086 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl |
| 9087 |
| 9088 # Some tools Automake needs. |
| 9089 AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 9090 AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 9091 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) |
| 9092 AM_MISSING_PROG([AUTOCONF], [autoconf]) |
| 9093 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) |
| 9094 AM_MISSING_PROG([AUTOHEADER], [autoheader]) |
| 9095 AM_MISSING_PROG([MAKEINFO], [makeinfo]) |
| 9096 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 9097 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
| 9098 AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 9099 # For better backward compatibility. To be removed once Automake 1.9.x |
| 9100 # dies out for good. For more background, see: |
| 9101 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 9102 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 9103 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
| 9104 # We need awk for the "check" target. The system "awk" is bad on |
| 9105 # some platforms. |
| 9106 AC_REQUIRE([AC_PROG_AWK])dnl |
| 9107 AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
| 9108 AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 9109 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
| 9110 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
| 9111 [_AM_PROG_TAR([v7])])]) |
| 9112 _AM_IF_OPTION([no-dependencies],, |
| 9113 [AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 9114 [_AM_DEPENDENCIES([CC])], |
| 9115 [m4_define([AC_PROG_CC], |
| 9116 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl |
| 9117 AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 9118 [_AM_DEPENDENCIES([CXX])], |
| 9119 [m4_define([AC_PROG_CXX], |
| 9120 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])d
nl |
| 9121 AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| 9122 [_AM_DEPENDENCIES([OBJC])], |
| 9123 [m4_define([AC_PROG_OBJC], |
| 9124 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])]
)dnl |
| 9125 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], |
| 9126 [_AM_DEPENDENCIES([OBJCXX])], |
| 9127 [m4_define([AC_PROG_OBJCXX], |
| 9128 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX]
)])])dnl |
| 9129 ]) |
| 9130 AC_REQUIRE([AM_SILENT_RULES])dnl |
| 9131 dnl The testsuite driver may need to know about EXEEXT, so add the |
| 9132 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
| 9133 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. |
| 9134 AC_CONFIG_COMMANDS_PRE(dnl |
| 9135 [m4_provide_if([_AM_COMPILER_EXEEXT], |
| 9136 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
| 9137 |
| 9138 # POSIX will say in a future version that running "rm -f" with no argument |
| 9139 # is OK; and we want to be able to make that assumption in our Makefile |
| 9140 # recipes. So use an aggressive probe to check that the usage we want is |
| 9141 # actually supported "in the wild" to an acceptable degree. |
| 9142 # See automake bug#10828. |
| 9143 # To make any issue more visible, cause the running configure to be aborted |
| 9144 # by default if the 'rm' program in use doesn't match our expectations; the |
| 9145 # user can still override this though. |
| 9146 if rm -f && rm -fr && rm -rf; then : OK; else |
| 9147 cat >&2 <<'END' |
| 9148 Oops! |
| 9149 |
| 9150 Your 'rm' program seems unable to run without file operands specified |
| 9151 on the command line, even when the '-f' option is present. This is contrary |
| 9152 to the behaviour of most rm programs out there, and not conforming with |
| 9153 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 9154 |
| 9155 Please tell bug-automake@gnu.org about your system, including the value |
| 9156 of your $PATH and any error possibly output before this message. This |
| 9157 can help us improve future automake versions. |
| 9158 |
| 9159 END |
| 9160 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 9161 echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 9162 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 9163 echo >&2 |
| 9164 else |
| 9165 cat >&2 <<'END' |
| 9166 Aborting the configuration process, to ensure you take notice of the issue. |
| 9167 |
| 9168 You can download and install GNU coreutils to get an 'rm' implementation |
| 9169 that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 9170 |
| 9171 If you want to complete the configuration process using your problematic |
| 9172 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 9173 to "yes", and re-run configure. |
| 9174 |
| 9175 END |
| 9176 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) |
| 9177 fi |
| 9178 fi]) |
| 9179 |
| 9180 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| 9181 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
| 9182 dnl mangled by Autoconf and run in a shell conditional statement. |
| 9183 m4_define([_AC_COMPILER_EXEEXT], |
| 9184 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
| 9185 |
| 9186 # When config.status generates a header, we must update the stamp-h file. |
| 9187 # This file resides in the same directory as the config header |
| 9188 # that is generated. The stamp files are numbered to have different names. |
| 9189 |
| 9190 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
| 9191 # loop where config.status creates the headers, so we can generate |
| 9192 # our stamp files there. |
| 9193 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| 9194 [# Compute $1's index in $config_headers. |
| 9195 _am_arg=$1 |
| 9196 _am_stamp_count=1 |
| 9197 for _am_header in $config_headers :; do |
| 9198 case $_am_header in |
| 9199 $_am_arg | $_am_arg:* ) |
| 9200 break ;; |
| 9201 * ) |
| 9202 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 9203 esac |
| 9204 done |
| 9205 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co
unt]) |
| 9206 |
| 9207 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9208 # |
| 9209 # This file is free software; the Free Software Foundation |
| 9210 # gives unlimited permission to copy and/or distribute it, |
| 9211 # with or without modifications, as long as this notice is preserved. |
| 9212 |
| 9213 # AM_PROG_INSTALL_SH |
| 9214 # ------------------ |
| 9215 # Define $install_sh. |
| 9216 AC_DEFUN([AM_PROG_INSTALL_SH], |
| 9217 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 9218 if test x"${install_sh}" != xset; then |
| 9219 case $am_aux_dir in |
| 9220 *\ * | *\ *) |
| 9221 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 9222 *) |
| 9223 install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 9224 esac |
| 9225 fi |
| 9226 AC_SUBST([install_sh])]) |
| 9227 |
| 9228 # Copyright (C) 2003-2013 Free Software Foundation, Inc. |
| 9229 # |
| 9230 # This file is free software; the Free Software Foundation |
| 9231 # gives unlimited permission to copy and/or distribute it, |
| 9232 # with or without modifications, as long as this notice is preserved. |
| 9233 |
| 9234 # Check whether the underlying file-system supports filenames |
| 9235 # with a leading dot. For instance MS-DOS doesn't. |
| 9236 AC_DEFUN([AM_SET_LEADING_DOT], |
| 9237 [rm -rf .tst 2>/dev/null |
| 9238 mkdir .tst 2>/dev/null |
| 9239 if test -d .tst; then |
| 9240 am__leading_dot=. |
| 9241 else |
| 9242 am__leading_dot=_ |
| 9243 fi |
| 9244 rmdir .tst 2>/dev/null |
| 9245 AC_SUBST([am__leading_dot])]) |
| 9246 |
| 9247 # Check to see how 'make' treats includes. -*- Autoconf -*- |
| 9248 |
| 9249 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9250 # |
| 9251 # This file is free software; the Free Software Foundation |
| 9252 # gives unlimited permission to copy and/or distribute it, |
| 9253 # with or without modifications, as long as this notice is preserved. |
| 9254 |
| 9255 # AM_MAKE_INCLUDE() |
| 9256 # ----------------- |
| 9257 # Check to see how make treats includes. |
| 9258 AC_DEFUN([AM_MAKE_INCLUDE], |
| 9259 [am_make=${MAKE-make} |
| 9260 cat > confinc << 'END' |
| 9261 am__doit: |
| 9262 @echo this is the am__doit target |
| 9263 .PHONY: am__doit |
| 9264 END |
| 9265 # If we don't find an include directive, just comment out the code. |
| 9266 AC_MSG_CHECKING([for style of include used by $am_make]) |
| 9267 am__include="#" |
| 9268 am__quote= |
| 9269 _am_result=none |
| 9270 # First try GNU make style include. |
| 9271 echo "include confinc" > confmf |
| 9272 # Ignore all kinds of additional output from 'make'. |
| 9273 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 9274 *the\ am__doit\ target*) |
| 9275 am__include=include |
| 9276 am__quote= |
| 9277 _am_result=GNU |
| 9278 ;; |
| 9279 esac |
| 9280 # Now try BSD make style include. |
| 9281 if test "$am__include" = "#"; then |
| 9282 echo '.include "confinc"' > confmf |
| 9283 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 9284 *the\ am__doit\ target*) |
| 9285 am__include=.include |
| 9286 am__quote="\"" |
| 9287 _am_result=BSD |
| 9288 ;; |
| 9289 esac |
| 9290 fi |
| 9291 AC_SUBST([am__include]) |
| 9292 AC_SUBST([am__quote]) |
| 9293 AC_MSG_RESULT([$_am_result]) |
| 9294 rm -f confinc confmf |
| 9295 ]) |
| 9296 |
| 9297 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
| 9298 |
| 9299 # Copyright (C) 1997-2013 Free Software Foundation, Inc. |
| 9300 # |
| 9301 # This file is free software; the Free Software Foundation |
| 9302 # gives unlimited permission to copy and/or distribute it, |
| 9303 # with or without modifications, as long as this notice is preserved. |
| 9304 |
| 9305 # AM_MISSING_PROG(NAME, PROGRAM) |
| 9306 # ------------------------------ |
| 9307 AC_DEFUN([AM_MISSING_PROG], |
| 9308 [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
| 9309 $1=${$1-"${am_missing_run}$2"} |
| 9310 AC_SUBST($1)]) |
| 9311 |
| 9312 # AM_MISSING_HAS_RUN |
| 9313 # ------------------ |
| 9314 # Define MISSING if not defined so far and test if it is modern enough. |
| 9315 # If it is, set am_missing_run to use it, otherwise, to nothing. |
| 9316 AC_DEFUN([AM_MISSING_HAS_RUN], |
| 9317 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 9318 AC_REQUIRE_AUX_FILE([missing])dnl |
| 9319 if test x"${MISSING+set}" != xset; then |
| 9320 case $am_aux_dir in |
| 9321 *\ * | *\ *) |
| 9322 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 9323 *) |
| 9324 MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 9325 esac |
| 9326 fi |
| 9327 # Use eval to expand $SHELL |
| 9328 if eval "$MISSING --is-lightweight"; then |
| 9329 am_missing_run="$MISSING " |
| 9330 else |
| 9331 am_missing_run= |
| 9332 AC_MSG_WARN(['missing' script is too old or missing]) |
| 9333 fi |
| 9334 ]) |
| 9335 |
| 9336 # Helper functions for option handling. -*- Autoconf -*- |
| 9337 |
| 9338 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9339 # |
| 9340 # This file is free software; the Free Software Foundation |
| 9341 # gives unlimited permission to copy and/or distribute it, |
| 9342 # with or without modifications, as long as this notice is preserved. |
| 9343 |
| 9344 # _AM_MANGLE_OPTION(NAME) |
| 9345 # ----------------------- |
| 9346 AC_DEFUN([_AM_MANGLE_OPTION], |
| 9347 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 9348 |
| 9349 # _AM_SET_OPTION(NAME) |
| 9350 # -------------------- |
| 9351 # Set option NAME. Presently that only means defining a flag for this option. |
| 9352 AC_DEFUN([_AM_SET_OPTION], |
| 9353 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) |
| 9354 |
| 9355 # _AM_SET_OPTIONS(OPTIONS) |
| 9356 # ------------------------ |
| 9357 # OPTIONS is a space-separated list of Automake options. |
| 9358 AC_DEFUN([_AM_SET_OPTIONS], |
| 9359 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
| 9360 |
| 9361 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 9362 # ------------------------------------------- |
| 9363 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 9364 AC_DEFUN([_AM_IF_OPTION], |
| 9365 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
| 9366 |
| 9367 # Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 9368 # |
| 9369 # This file is free software; the Free Software Foundation |
| 9370 # gives unlimited permission to copy and/or distribute it, |
| 9371 # with or without modifications, as long as this notice is preserved. |
| 9372 |
| 9373 # _AM_PROG_CC_C_O |
| 9374 # --------------- |
| 9375 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC |
| 9376 # to automatically call this. |
| 9377 AC_DEFUN([_AM_PROG_CC_C_O], |
| 9378 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 9379 AC_REQUIRE_AUX_FILE([compile])dnl |
| 9380 AC_LANG_PUSH([C])dnl |
| 9381 AC_CACHE_CHECK( |
| 9382 [whether $CC understands -c and -o together], |
| 9383 [am_cv_prog_cc_c_o], |
| 9384 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) |
| 9385 # Make sure it works both with $CC and with simple cc. |
| 9386 # Following AC_PROG_CC_C_O, we do the test twice because some |
| 9387 # compilers refuse to overwrite an existing .o file with -o, |
| 9388 # though they will create one. |
| 9389 am_cv_prog_cc_c_o=yes |
| 9390 for am_i in 1 2; do |
| 9391 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ |
| 9392 && test -f conftest2.$ac_objext; then |
| 9393 : OK |
| 9394 else |
| 9395 am_cv_prog_cc_c_o=no |
| 9396 break |
| 9397 fi |
| 9398 done |
| 9399 rm -f core conftest* |
| 9400 unset am_i]) |
| 9401 if test "$am_cv_prog_cc_c_o" != yes; then |
| 9402 # Losing compiler, so override with the script. |
| 9403 # FIXME: It is wrong to rewrite CC. |
| 9404 # But if we don't then we get into trouble of one sort or another. |
| 9405 # A longer-term fix would be to have automake use am__CC in this case, |
| 9406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 9407 CC="$am_aux_dir/compile $CC" |
| 9408 fi |
| 9409 AC_LANG_POP([C])]) |
| 9410 |
| 9411 # For backward compatibility. |
| 9412 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
| 9413 |
| 9414 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9415 # |
| 9416 # This file is free software; the Free Software Foundation |
| 9417 # gives unlimited permission to copy and/or distribute it, |
| 9418 # with or without modifications, as long as this notice is preserved. |
| 9419 |
| 9420 # AM_RUN_LOG(COMMAND) |
| 9421 # ------------------- |
| 9422 # Run COMMAND, save the exit status in ac_status, and log it. |
| 9423 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) |
| 9424 AC_DEFUN([AM_RUN_LOG], |
| 9425 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD |
| 9426 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD |
| 9427 ac_status=$? |
| 9428 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 9429 (exit $ac_status); }]) |
| 9430 |
| 9431 # Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 9432 |
| 9433 # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| 9434 # |
| 9435 # This file is free software; the Free Software Foundation |
| 9436 # gives unlimited permission to copy and/or distribute it, |
| 9437 # with or without modifications, as long as this notice is preserved. |
| 9438 |
| 9439 # AM_SANITY_CHECK |
| 9440 # --------------- |
| 9441 AC_DEFUN([AM_SANITY_CHECK], |
| 9442 [AC_MSG_CHECKING([whether build environment is sane]) |
| 9443 # Reject unsafe characters in $srcdir or the absolute working directory |
| 9444 # name. Accept space and tab only in the latter. |
| 9445 am_lf=' |
| 9446 ' |
| 9447 case `pwd` in |
| 9448 *[[\\\"\#\$\&\'\`$am_lf]]*) |
| 9449 AC_MSG_ERROR([unsafe absolute working directory name]);; |
| 9450 esac |
| 9451 case $srcdir in |
| 9452 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
| 9453 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; |
| 9454 esac |
| 9455 |
| 9456 # Do 'set' in a subshell so we don't clobber the current shell's |
| 9457 # arguments. Must try -L first in case configure is actually a |
| 9458 # symlink; some systems play weird games with the mod time of symlinks |
| 9459 # (eg FreeBSD returns the mod time of the symlink's containing |
| 9460 # directory). |
| 9461 if ( |
| 9462 am_has_slept=no |
| 9463 for am_try in 1 2; do |
| 9464 echo "timestamp, slept: $am_has_slept" > conftest.file |
| 9465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 9466 if test "$[*]" = "X"; then |
| 9467 # -L didn't work. |
| 9468 set X `ls -t "$srcdir/configure" conftest.file` |
| 9469 fi |
| 9470 if test "$[*]" != "X $srcdir/configure conftest.file" \ |
| 9471 && test "$[*]" != "X conftest.file $srcdir/configure"; then |
| 9472 |
| 9473 # If neither matched, then we have a broken ls. This can happen |
| 9474 # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 9475 # broken ls alias from the environment. This has actually |
| 9476 # happened. Such a system could not be considered "sane". |
| 9477 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
| 9478 alias in your environment]) |
| 9479 fi |
| 9480 if test "$[2]" = conftest.file || test $am_try -eq 2; then |
| 9481 break |
| 9482 fi |
| 9483 # Just in case. |
| 9484 sleep 1 |
| 9485 am_has_slept=yes |
| 9486 done |
| 9487 test "$[2]" = conftest.file |
| 9488 ) |
| 9489 then |
| 9490 # Ok. |
| 9491 : |
| 9492 else |
| 9493 AC_MSG_ERROR([newly created file is older than distributed files! |
| 9494 Check your system clock]) |
| 9495 fi |
| 9496 AC_MSG_RESULT([yes]) |
| 9497 # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 9498 # generated files are strictly newer. |
| 9499 am_sleep_pid= |
| 9500 if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 9501 ( sleep 1 ) & |
| 9502 am_sleep_pid=$! |
| 9503 fi |
| 9504 AC_CONFIG_COMMANDS_PRE( |
| 9505 [AC_MSG_CHECKING([that generated files are newer than configure]) |
| 9506 if test -n "$am_sleep_pid"; then |
| 9507 # Hide warnings about reused PIDs. |
| 9508 wait $am_sleep_pid 2>/dev/null |
| 9509 fi |
| 9510 AC_MSG_RESULT([done])]) |
| 9511 rm -f conftest.file |
| 9512 ]) |
| 9513 |
| 9514 # Copyright (C) 2009-2013 Free Software Foundation, Inc. |
| 9515 # |
| 9516 # This file is free software; the Free Software Foundation |
| 9517 # gives unlimited permission to copy and/or distribute it, |
| 9518 # with or without modifications, as long as this notice is preserved. |
| 9519 |
| 9520 # AM_SILENT_RULES([DEFAULT]) |
| 9521 # -------------------------- |
| 9522 # Enable less verbose build rules; with the default set to DEFAULT |
| 9523 # ("yes" being less verbose, "no" or empty being verbose). |
| 9524 AC_DEFUN([AM_SILENT_RULES], |
| 9525 [AC_ARG_ENABLE([silent-rules], [dnl |
| 9526 AS_HELP_STRING( |
| 9527 [--enable-silent-rules], |
| 9528 [less verbose build output (undo: "make V=1")]) |
| 9529 AS_HELP_STRING( |
| 9530 [--disable-silent-rules], |
| 9531 [verbose build output (undo: "make V=0")])dnl |
| 9532 ]) |
| 9533 case $enable_silent_rules in @%:@ ((( |
| 9534 yes) AM_DEFAULT_VERBOSITY=0;; |
| 9535 no) AM_DEFAULT_VERBOSITY=1;; |
| 9536 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; |
| 9537 esac |
| 9538 dnl |
| 9539 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) |
| 9540 dnl do not support nested variable expansions. |
| 9541 dnl See automake bug#9928 and bug#10237. |
| 9542 am_make=${MAKE-make} |
| 9543 AC_CACHE_CHECK([whether $am_make supports nested variables], |
| 9544 [am_cv_make_support_nested_variables], |
| 9545 [if AS_ECHO([['TRUE=$(BAR$(V)) |
| 9546 BAR0=false |
| 9547 BAR1=true |
| 9548 V=1 |
| 9549 am__doit: |
| 9550 @$(TRUE) |
| 9551 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then |
| 9552 am_cv_make_support_nested_variables=yes |
| 9553 else |
| 9554 am_cv_make_support_nested_variables=no |
| 9555 fi]) |
| 9556 if test $am_cv_make_support_nested_variables = yes; then |
| 9557 dnl Using '$V' instead of '$(V)' breaks IRIX make. |
| 9558 AM_V='$(V)' |
| 9559 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 9560 else |
| 9561 AM_V=$AM_DEFAULT_VERBOSITY |
| 9562 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 9563 fi |
| 9564 AC_SUBST([AM_V])dnl |
| 9565 AM_SUBST_NOTMAKE([AM_V])dnl |
| 9566 AC_SUBST([AM_DEFAULT_V])dnl |
| 9567 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl |
| 9568 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl |
| 9569 AM_BACKSLASH='\' |
| 9570 AC_SUBST([AM_BACKSLASH])dnl |
| 9571 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
| 9572 ]) |
| 9573 |
| 9574 # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| 9575 # |
| 9576 # This file is free software; the Free Software Foundation |
| 9577 # gives unlimited permission to copy and/or distribute it, |
| 9578 # with or without modifications, as long as this notice is preserved. |
| 9579 |
| 9580 # AM_PROG_INSTALL_STRIP |
| 9581 # --------------------- |
| 9582 # One issue with vendor 'install' (even GNU) is that you can't |
| 9583 # specify the program used to strip binaries. This is especially |
| 9584 # annoying in cross-compiling environments, where the build's strip |
| 9585 # is unlikely to handle the host's binaries. |
| 9586 # Fortunately install-sh will honor a STRIPPROG variable, so we |
| 9587 # always use install-sh in "make install-strip", and initialize |
| 9588 # STRIPPROG with the value of the STRIP variable (set by the user). |
| 9589 AC_DEFUN([AM_PROG_INSTALL_STRIP], |
| 9590 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
| 9591 # Installed binaries are usually stripped using 'strip' when the user |
| 9592 # run "make install-strip". However 'strip' might not be the right |
| 9593 # tool to use in cross-compilation environments, therefore Automake |
| 9594 # will honor the 'STRIP' environment variable to overrule this program. |
| 9595 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. |
| 9596 if test "$cross_compiling" != no; then |
| 9597 AC_CHECK_TOOL([STRIP], [strip], :) |
| 9598 fi |
| 9599 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 9600 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
| 9601 |
| 9602 # Copyright (C) 2006-2013 Free Software Foundation, Inc. |
| 9603 # |
| 9604 # This file is free software; the Free Software Foundation |
| 9605 # gives unlimited permission to copy and/or distribute it, |
| 9606 # with or without modifications, as long as this notice is preserved. |
| 9607 |
| 9608 # _AM_SUBST_NOTMAKE(VARIABLE) |
| 9609 # --------------------------- |
| 9610 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
| 9611 # This macro is traced by Automake. |
| 9612 AC_DEFUN([_AM_SUBST_NOTMAKE]) |
| 9613 |
| 9614 # AM_SUBST_NOTMAKE(VARIABLE) |
| 9615 # -------------------------- |
| 9616 # Public sister of _AM_SUBST_NOTMAKE. |
| 9617 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
| 9618 |
| 9619 # Check how to create a tarball. -*- Autoconf -*- |
| 9620 |
| 9621 # Copyright (C) 2004-2013 Free Software Foundation, Inc. |
| 9622 # |
| 9623 # This file is free software; the Free Software Foundation |
| 9624 # gives unlimited permission to copy and/or distribute it, |
| 9625 # with or without modifications, as long as this notice is preserved. |
| 9626 |
| 9627 # _AM_PROG_TAR(FORMAT) |
| 9628 # -------------------- |
| 9629 # Check how to create a tarball in format FORMAT. |
| 9630 # FORMAT should be one of 'v7', 'ustar', or 'pax'. |
| 9631 # |
| 9632 # Substitute a variable $(am__tar) that is a command |
| 9633 # writing to stdout a FORMAT-tarball containing the directory |
| 9634 # $tardir. |
| 9635 # tardir=directory && $(am__tar) > result.tar |
| 9636 # |
| 9637 # Substitute a variable $(am__untar) that extract such |
| 9638 # a tarball read from stdin. |
| 9639 # $(am__untar) < result.tar |
| 9640 # |
| 9641 AC_DEFUN([_AM_PROG_TAR], |
| 9642 [# Always define AMTAR for backward compatibility. Yes, it's still used |
| 9643 # in the wild :-( We should find a proper way to deprecate it ... |
| 9644 AC_SUBST([AMTAR], ['$${TAR-tar}']) |
| 9645 |
| 9646 # We'll loop over all known methods to create a tar archive until one works. |
| 9647 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
| 9648 |
| 9649 m4_if([$1], [v7], |
| 9650 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
| 9651 |
| 9652 [m4_case([$1], |
| 9653 [ustar], |
| 9654 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. |
| 9655 # There is notably a 21 bits limit for the UID and the GID. In fact, |
| 9656 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
| 9657 # and bug#13588). |
| 9658 am_max_uid=2097151 # 2^21 - 1 |
| 9659 am_max_gid=$am_max_uid |
| 9660 # The $UID and $GID variables are not portable, so we need to resort |
| 9661 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
| 9662 # below are definitely unexpected, so allow the users to see them |
| 9663 # (that is, avoid stderr redirection). |
| 9664 am_uid=`id -u || echo unknown` |
| 9665 am_gid=`id -g || echo unknown` |
| 9666 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) |
| 9667 if test $am_uid -le $am_max_uid; then |
| 9668 AC_MSG_RESULT([yes]) |
| 9669 else |
| 9670 AC_MSG_RESULT([no]) |
| 9671 _am_tools=none |
| 9672 fi |
| 9673 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) |
| 9674 if test $am_gid -le $am_max_gid; then |
| 9675 AC_MSG_RESULT([yes]) |
| 9676 else |
| 9677 AC_MSG_RESULT([no]) |
| 9678 _am_tools=none |
| 9679 fi], |
| 9680 |
| 9681 [pax], |
| 9682 [], |
| 9683 |
| 9684 [m4_fatal([Unknown tar format])]) |
| 9685 |
| 9686 AC_MSG_CHECKING([how to create a $1 tar archive]) |
| 9687 |
| 9688 # Go ahead even if we have the value already cached. We do so because we |
| 9689 # need to set the values for the 'am__tar' and 'am__untar' variables. |
| 9690 _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
| 9691 |
| 9692 for _am_tool in $_am_tools; do |
| 9693 case $_am_tool in |
| 9694 gnutar) |
| 9695 for _am_tar in tar gnutar gtar; do |
| 9696 AM_RUN_LOG([$_am_tar --version]) && break |
| 9697 done |
| 9698 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$t
ardir"' |
| 9699 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$t
ardir"' |
| 9700 am__untar="$_am_tar -xf -" |
| 9701 ;; |
| 9702 plaintar) |
| 9703 # Must skip GNU tar: if it does not support --format= it doesn't create |
| 9704 # ustar tarball either. |
| 9705 (tar --version) >/dev/null 2>&1 && continue |
| 9706 am__tar='tar chf - "$$tardir"' |
| 9707 am__tar_='tar chf - "$tardir"' |
| 9708 am__untar='tar xf -' |
| 9709 ;; |
| 9710 pax) |
| 9711 am__tar='pax -L -x $1 -w "$$tardir"' |
| 9712 am__tar_='pax -L -x $1 -w "$tardir"' |
| 9713 am__untar='pax -r' |
| 9714 ;; |
| 9715 cpio) |
| 9716 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
| 9717 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
| 9718 am__untar='cpio -i -H $1 -d' |
| 9719 ;; |
| 9720 none) |
| 9721 am__tar=false |
| 9722 am__tar_=false |
| 9723 am__untar=false |
| 9724 ;; |
| 9725 esac |
| 9726 |
| 9727 # If the value was cached, stop now. We just wanted to have am__tar |
| 9728 # and am__untar set. |
| 9729 test -n "${am_cv_prog_tar_$1}" && break |
| 9730 |
| 9731 # tar/untar a dummy directory, and stop if the command works. |
| 9732 rm -rf conftest.dir |
| 9733 mkdir conftest.dir |
| 9734 echo GrepMe > conftest.dir/file |
| 9735 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
| 9736 rm -rf conftest.dir |
| 9737 if test -s conftest.tar; then |
| 9738 AM_RUN_LOG([$am__untar <conftest.tar]) |
| 9739 AM_RUN_LOG([cat conftest.dir/file]) |
| 9740 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 9741 fi |
| 9742 done |
| 9743 rm -rf conftest.dir |
| 9744 |
| 9745 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
| 9746 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
| 9747 |
| 9748 AC_SUBST([am__tar]) |
| 9749 AC_SUBST([am__untar]) |
| 9750 ]) # _AM_PROG_TAR |
| 9751 |
OLD | NEW |