comparison mupdf-source/thirdparty/libjpeg/aclocal.m4 @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
4
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
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
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
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.72],,
18 [m4_warning([this file was generated for autoconf 2.72.
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
23 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24 #
25 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
26 # Foundation, Inc.
27 # Written by Gordon Matzigkeit, 1996
28 #
29 # This file is free software; the Free Software Foundation gives
30 # unlimited permission to copy and/or distribute it, with or without
31 # modifications, as long as this notice is preserved.
32
33 m4_define([_LT_COPYING], [dnl
34 # Copyright (C) 2014 Free Software Foundation, Inc.
35 # This is free software; see the source for copying conditions. There is NO
36 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
37
38 # GNU Libtool is free software; you can redistribute it and/or modify
39 # it under the terms of the GNU General Public License as published by
40 # the Free Software Foundation; either version 2 of of the License, or
41 # (at your option) any later version.
42 #
43 # As a special exception to the GNU General Public License, if you
44 # distribute this file as part of a program or library that is built
45 # using GNU Libtool, you may include this file under the same
46 # distribution terms that you use for the rest of that program.
47 #
48 # GNU Libtool is distributed in the hope that it will be useful, but
49 # WITHOUT ANY WARRANTY; without even the implied warranty of
50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 # GNU General Public License for more details.
52 #
53 # You should have received a copy of the GNU General Public License
54 # along with this program. If not, see <http://www.gnu.org/licenses/>.
55 ])
56
57 # serial 59 LT_INIT
58
59
60 # LT_PREREQ(VERSION)
61 # ------------------
62 # Complain and exit if this libtool version is less that VERSION.
63 m4_defun([LT_PREREQ],
64 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
65 [m4_default([$3],
66 [m4_fatal([Libtool version $1 or higher is required],
67 63)])],
68 [$2])])
69
70
71 # _LT_CHECK_BUILDDIR
72 # ------------------
73 # Complain if the absolute build directory name contains unusual characters
74 m4_defun([_LT_CHECK_BUILDDIR],
75 [case `pwd` in
76 *\ * | *\ *)
77 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
78 esac
79 ])
80
81
82 # LT_INIT([OPTIONS])
83 # ------------------
84 AC_DEFUN([LT_INIT],
85 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
86 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
87 AC_BEFORE([$0], [LT_LANG])dnl
88 AC_BEFORE([$0], [LT_OUTPUT])dnl
89 AC_BEFORE([$0], [LTDL_INIT])dnl
90 m4_require([_LT_CHECK_BUILDDIR])dnl
91
92 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
93 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
94 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW)$])dnl
95 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
96 dnl unless we require an AC_DEFUNed macro:
97 AC_REQUIRE([LTOPTIONS_VERSION])dnl
98 AC_REQUIRE([LTSUGAR_VERSION])dnl
99 AC_REQUIRE([LTVERSION_VERSION])dnl
100 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
101 m4_require([_LT_PROG_LTMAIN])dnl
102
103 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
104
105 dnl Parse OPTIONS
106 _LT_SET_OPTIONS([$0], [$1])
107
108 # This can be used to rebuild libtool when needed
109 LIBTOOL_DEPS=$ltmain
110
111 # Always use our own libtool.
112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
113 AC_SUBST(LIBTOOL)dnl
114
115 _LT_SETUP
116
117 # Only expand once:
118 m4_define([LT_INIT])
119 ])# LT_INIT
120
121 # Old names:
122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
124 dnl aclocal-1.4 backwards compatibility:
125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
127
128
129 # _LT_PREPARE_CC_BASENAME
130 # -----------------------
131 m4_defun([_LT_PREPARE_CC_BASENAME], [
132 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
133 func_cc_basename ()
134 {
135 for cc_temp in @S|@*""; do
136 case $cc_temp in
137 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
138 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
139 \-*) ;;
140 *) break;;
141 esac
142 done
143 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
144 }
145 ])# _LT_PREPARE_CC_BASENAME
146
147
148 # _LT_CC_BASENAME(CC)
149 # -------------------
150 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
151 # but that macro is also expanded into generated libtool script, which
152 # arranges for $SED and $ECHO to be set by different means.
153 m4_defun([_LT_CC_BASENAME],
154 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
155 AC_REQUIRE([_LT_DECL_SED])dnl
156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
157 func_cc_basename $1
158 cc_basename=$func_cc_basename_result
159 ])
160
161
162 # _LT_FILEUTILS_DEFAULTS
163 # ----------------------
164 # It is okay to use these file commands and assume they have been set
165 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
166 m4_defun([_LT_FILEUTILS_DEFAULTS],
167 [: ${CP="cp -f"}
168 : ${MV="mv -f"}
169 : ${RM="rm -f"}
170 ])# _LT_FILEUTILS_DEFAULTS
171
172
173 # _LT_SETUP
174 # ---------
175 m4_defun([_LT_SETUP],
176 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
177 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
178 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
179 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
180
181 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
182 dnl
183 _LT_DECL([], [host_alias], [0], [The host system])dnl
184 _LT_DECL([], [host], [0])dnl
185 _LT_DECL([], [host_os], [0])dnl
186 dnl
187 _LT_DECL([], [build_alias], [0], [The build system])dnl
188 _LT_DECL([], [build], [0])dnl
189 _LT_DECL([], [build_os], [0])dnl
190 dnl
191 AC_REQUIRE([AC_PROG_CC])dnl
192 AC_REQUIRE([LT_PATH_LD])dnl
193 AC_REQUIRE([LT_PATH_NM])dnl
194 dnl
195 AC_REQUIRE([AC_PROG_LN_S])dnl
196 test -z "$LN_S" && LN_S="ln -s"
197 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
198 dnl
199 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
200 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
201 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
202 dnl
203 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
204 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
205 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
206 m4_require([_LT_CMD_RELOAD])dnl
207 m4_require([_LT_DECL_FILECMD])dnl
208 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
209 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
210 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
211 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
212 m4_require([_LT_WITH_SYSROOT])dnl
213 m4_require([_LT_CMD_TRUNCATE])dnl
214
215 _LT_CONFIG_LIBTOOL_INIT([
216 # See if we are running on zsh, and set the options that allow our
217 # commands through without removal of \ escapes INIT.
218 if test -n "\${ZSH_VERSION+set}"; then
219 setopt NO_GLOB_SUBST
220 fi
221 ])
222 if test -n "${ZSH_VERSION+set}"; then
223 setopt NO_GLOB_SUBST
224 fi
225
226 _LT_CHECK_OBJDIR
227
228 m4_require([_LT_TAG_COMPILER])dnl
229
230 case $host_os in
231 aix3*)
232 # AIX sometimes has problems with the GCC collect2 program. For some
233 # reason, if we set the COLLECT_NAMES environment variable, the problems
234 # vanish in a puff of smoke.
235 if test set != "${COLLECT_NAMES+set}"; then
236 COLLECT_NAMES=
237 export COLLECT_NAMES
238 fi
239 ;;
240 esac
241
242 # Global variables:
243 ofile=libtool
244 can_build_shared=yes
245
246 # All known linkers require a '.a' archive for static linking (except MSVC and
247 # ICC, which need '.lib').
248 libext=a
249
250 with_gnu_ld=$lt_cv_prog_gnu_ld
251
252 old_CC=$CC
253 old_CFLAGS=$CFLAGS
254
255 # Set sane defaults for various variables
256 test -z "$CC" && CC=cc
257 test -z "$LTCC" && LTCC=$CC
258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
259 test -z "$LD" && LD=ld
260 test -z "$ac_objext" && ac_objext=o
261
262 _LT_CC_BASENAME([$compiler])
263
264 # Only perform the check for file, if the check method requires it
265 test -z "$MAGIC_CMD" && MAGIC_CMD=file
266 case $deplibs_check_method in
267 file_magic*)
268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
269 _LT_PATH_MAGIC
270 fi
271 ;;
272 esac
273
274 # Use C for the default configuration in the libtool script
275 LT_SUPPORTED_TAG([CC])
276 _LT_LANG_C_CONFIG
277 _LT_LANG_DEFAULT_CONFIG
278 _LT_CONFIG_COMMANDS
279 ])# _LT_SETUP
280
281
282 # _LT_PREPARE_SED_QUOTE_VARS
283 # --------------------------
284 # Define a few sed substitution that help us do robust quoting.
285 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
286 [# Backslashify metacharacters that are still active within
287 # double-quoted strings.
288 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
289
290 # Same as above, but do not quote variable references.
291 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
292
293 # Sed substitution to delay expansion of an escaped shell variable in a
294 # double_quote_subst'ed string.
295 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
296
297 # Sed substitution to delay expansion of an escaped single quote.
298 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
299
300 # Sed substitution to avoid accidental globbing in evaled expressions
301 no_glob_subst='s/\*/\\\*/g'
302 ])
303
304 # _LT_PROG_LTMAIN
305 # ---------------
306 # Note that this code is called both from 'configure', and 'config.status'
307 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
308 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
309 # so we pass a copy along to make sure it has a sensible value anyway.
310 m4_defun([_LT_PROG_LTMAIN],
311 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
312 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
313 ltmain=$ac_aux_dir/ltmain.sh
314 ])# _LT_PROG_LTMAIN
315
316
317
318 # So that we can recreate a full libtool script including additional
319 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
320 # in macros and then make a single call at the end using the 'libtool'
321 # label.
322
323
324 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
325 # ----------------------------------------
326 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
327 m4_define([_LT_CONFIG_LIBTOOL_INIT],
328 [m4_ifval([$1],
329 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
330 [$1
331 ])])])
332
333 # Initialize.
334 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
335
336
337 # _LT_CONFIG_LIBTOOL([COMMANDS])
338 # ------------------------------
339 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
340 m4_define([_LT_CONFIG_LIBTOOL],
341 [m4_ifval([$1],
342 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
343 [$1
344 ])])])
345
346 # Initialize.
347 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
348
349
350 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
351 # -----------------------------------------------------
352 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
353 [_LT_CONFIG_LIBTOOL([$1])
354 _LT_CONFIG_LIBTOOL_INIT([$2])
355 ])
356
357
358 # _LT_FORMAT_COMMENT([COMMENT])
359 # -----------------------------
360 # Add leading comment marks to the start of each line, and a trailing
361 # full-stop to the whole comment if one is not present already.
362 m4_define([_LT_FORMAT_COMMENT],
363 [m4_ifval([$1], [
364 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
365 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
366 )])
367
368
369
370
371
372 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
373 # -------------------------------------------------------------------
374 # CONFIGNAME is the name given to the value in the libtool script.
375 # VARNAME is the (base) name used in the configure script.
376 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
377 # VARNAME. Any other value will be used directly.
378 m4_define([_LT_DECL],
379 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
380 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
381 [m4_ifval([$1], [$1], [$2])])
382 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
383 m4_ifval([$4],
384 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
385 lt_dict_add_subkey([lt_decl_dict], [$2],
386 [tagged?], [m4_ifval([$5], [yes], [no])])])
387 ])
388
389
390 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
391 # --------------------------------------------------------
392 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
393
394
395 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
396 # ------------------------------------------------
397 m4_define([lt_decl_tag_varnames],
398 [_lt_decl_filter([tagged?], [yes], $@)])
399
400
401 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
402 # ---------------------------------------------------------
403 m4_define([_lt_decl_filter],
404 [m4_case([$#],
405 [0], [m4_fatal([$0: too few arguments: $#])],
406 [1], [m4_fatal([$0: too few arguments: $#: $1])],
407 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
408 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
409 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
410 ])
411
412
413 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
414 # --------------------------------------------------
415 m4_define([lt_decl_quote_varnames],
416 [_lt_decl_filter([value], [1], $@)])
417
418
419 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
420 # ---------------------------------------------------
421 m4_define([lt_decl_dquote_varnames],
422 [_lt_decl_filter([value], [2], $@)])
423
424
425 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
426 # ---------------------------------------------------
427 m4_define([lt_decl_varnames_tagged],
428 [m4_assert([$# <= 2])dnl
429 _$0(m4_quote(m4_default([$1], [[, ]])),
430 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
431 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
432 m4_define([_lt_decl_varnames_tagged],
433 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
434
435
436 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
437 # ------------------------------------------------
438 m4_define([lt_decl_all_varnames],
439 [_$0(m4_quote(m4_default([$1], [[, ]])),
440 m4_if([$2], [],
441 m4_quote(lt_decl_varnames),
442 m4_quote(m4_shift($@))))[]dnl
443 ])
444 m4_define([_lt_decl_all_varnames],
445 [lt_join($@, lt_decl_varnames_tagged([$1],
446 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
447 ])
448
449
450 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
451 # ------------------------------------
452 # Quote a variable value, and forward it to 'config.status' so that its
453 # declaration there will have the same value as in 'configure'. VARNAME
454 # must have a single quote delimited value for this to work.
455 m4_define([_LT_CONFIG_STATUS_DECLARE],
456 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
457
458
459 # _LT_CONFIG_STATUS_DECLARATIONS
460 # ------------------------------
461 # We delimit libtool config variables with single quotes, so when
462 # we write them to config.status, we have to be sure to quote all
463 # embedded single quotes properly. In configure, this macro expands
464 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
465 #
466 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
467 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
468 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
469 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
470
471
472 # _LT_LIBTOOL_TAGS
473 # ----------------
474 # Output comment and list of tags supported by the script
475 m4_defun([_LT_LIBTOOL_TAGS],
476 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
477 available_tags='_LT_TAGS'dnl
478 ])
479
480
481 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
482 # -----------------------------------
483 # Extract the dictionary values for VARNAME (optionally with TAG) and
484 # expand to a commented shell variable setting:
485 #
486 # # Some comment about what VAR is for.
487 # visible_name=$lt_internal_name
488 m4_define([_LT_LIBTOOL_DECLARE],
489 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
490 [description])))[]dnl
491 m4_pushdef([_libtool_name],
492 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
493 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
494 [0], [_libtool_name=[$]$1],
495 [1], [_libtool_name=$lt_[]$1],
496 [2], [_libtool_name=$lt_[]$1],
497 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
498 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
499 ])
500
501
502 # _LT_LIBTOOL_CONFIG_VARS
503 # -----------------------
504 # Produce commented declarations of non-tagged libtool config variables
505 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
506 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
507 # section) are produced by _LT_LIBTOOL_TAG_VARS.
508 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
509 [m4_foreach([_lt_var],
510 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
511 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
512
513
514 # _LT_LIBTOOL_TAG_VARS(TAG)
515 # -------------------------
516 m4_define([_LT_LIBTOOL_TAG_VARS],
517 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
518 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
519
520
521 # _LT_TAGVAR(VARNAME, [TAGNAME])
522 # ------------------------------
523 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
524
525
526 # _LT_CONFIG_COMMANDS
527 # -------------------
528 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
529 # variables for single and double quote escaping we saved from calls
530 # to _LT_DECL, we can put quote escaped variables declarations
531 # into 'config.status', and then the shell code to quote escape them in
532 # for loops in 'config.status'. Finally, any additional code accumulated
533 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
534 m4_defun([_LT_CONFIG_COMMANDS],
535 [AC_PROVIDE_IFELSE([LT_OUTPUT],
536 dnl If the libtool generation code has been placed in $CONFIG_LT,
537 dnl instead of duplicating it all over again into config.status,
538 dnl then we will have config.status run $CONFIG_LT later, so it
539 dnl needs to know what name is stored there:
540 [AC_CONFIG_COMMANDS([libtool],
541 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
542 dnl If the libtool generation code is destined for config.status,
543 dnl expand the accumulated commands and init code now:
544 [AC_CONFIG_COMMANDS([libtool],
545 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
546 ])#_LT_CONFIG_COMMANDS
547
548
549 # Initialize.
550 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
551 [
552
553 # The HP-UX ksh and POSIX shell print the target directory to stdout
554 # if CDPATH is set.
555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
556
557 sed_quote_subst='$sed_quote_subst'
558 double_quote_subst='$double_quote_subst'
559 delay_variable_subst='$delay_variable_subst'
560 _LT_CONFIG_STATUS_DECLARATIONS
561 LTCC='$LTCC'
562 LTCFLAGS='$LTCFLAGS'
563 compiler='$compiler_DEFAULT'
564
565 # A function that is used when there is no print builtin or printf.
566 func_fallback_echo ()
567 {
568 eval 'cat <<_LTECHO_EOF
569 \$[]1
570 _LTECHO_EOF'
571 }
572
573 # Quote evaled strings.
574 for var in lt_decl_all_varnames([[ \
575 ]], lt_decl_quote_varnames); do
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
577 *[[\\\\\\\`\\"\\\$]]*)
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
579 ;;
580 *)
581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
582 ;;
583 esac
584 done
585
586 # Double-quote double-evaled strings.
587 for var in lt_decl_all_varnames([[ \
588 ]], lt_decl_dquote_varnames); do
589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
590 *[[\\\\\\\`\\"\\\$]]*)
591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
592 ;;
593 *)
594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
595 ;;
596 esac
597 done
598
599 _LT_OUTPUT_LIBTOOL_INIT
600 ])
601
602 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
603 # ------------------------------------
604 # Generate a child script FILE with all initialization necessary to
605 # reuse the environment learned by the parent script, and make the
606 # file executable. If COMMENT is supplied, it is inserted after the
607 # '#!' sequence but before initialization text begins. After this
608 # macro, additional text can be appended to FILE to form the body of
609 # the child script. The macro ends with non-zero status if the
610 # file could not be fully written (such as if the disk is full).
611 m4_ifdef([AS_INIT_GENERATED],
612 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
613 [m4_defun([_LT_GENERATED_FILE_INIT],
614 [m4_require([AS_PREPARE])]dnl
615 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
616 [lt_write_fail=0
617 cat >$1 <<_ASEOF || lt_write_fail=1
618 #! $SHELL
619 # Generated by $as_me.
620 $2
621 SHELL=\${CONFIG_SHELL-$SHELL}
622 export SHELL
623 _ASEOF
624 cat >>$1 <<\_ASEOF || lt_write_fail=1
625 AS_SHELL_SANITIZE
626 _AS_PREPARE
627 exec AS_MESSAGE_FD>&1
628 _ASEOF
629 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
630 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
631
632 # LT_OUTPUT
633 # ---------
634 # This macro allows early generation of the libtool script (before
635 # AC_OUTPUT is called), incase it is used in configure for compilation
636 # tests.
637 AC_DEFUN([LT_OUTPUT],
638 [: ${CONFIG_LT=./config.lt}
639 AC_MSG_NOTICE([creating $CONFIG_LT])
640 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
641 [# Run this file to recreate a libtool stub with the current configuration.])
642
643 cat >>"$CONFIG_LT" <<\_LTEOF
644 lt_cl_silent=false
645 exec AS_MESSAGE_LOG_FD>>config.log
646 {
647 echo
648 AS_BOX([Running $as_me.])
649 } >&AS_MESSAGE_LOG_FD
650
651 lt_cl_help="\
652 '$as_me' creates a local libtool stub from the current configuration,
653 for use in further configure time tests before the real libtool is
654 generated.
655
656 Usage: $[0] [[OPTIONS]]
657
658 -h, --help print this help, then exit
659 -V, --version print version number, then exit
660 -q, --quiet do not print progress messages
661 -d, --debug don't remove temporary files
662
663 Report bugs to <bug-libtool@gnu.org>."
664
665 lt_cl_version="\
666 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
667 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
668 configured by $[0], generated by m4_PACKAGE_STRING.
669
670 Copyright (C) 2011 Free Software Foundation, Inc.
671 This config.lt script is free software; the Free Software Foundation
672 gives unlimited permision to copy, distribute and modify it."
673
674 while test 0 != $[#]
675 do
676 case $[1] in
677 --version | --v* | -V )
678 echo "$lt_cl_version"; exit 0 ;;
679 --help | --h* | -h )
680 echo "$lt_cl_help"; exit 0 ;;
681 --debug | --d* | -d )
682 debug=: ;;
683 --quiet | --q* | --silent | --s* | -q )
684 lt_cl_silent=: ;;
685
686 -*) AC_MSG_ERROR([unrecognized option: $[1]
687 Try '$[0] --help' for more information.]) ;;
688
689 *) AC_MSG_ERROR([unrecognized argument: $[1]
690 Try '$[0] --help' for more information.]) ;;
691 esac
692 shift
693 done
694
695 if $lt_cl_silent; then
696 exec AS_MESSAGE_FD>/dev/null
697 fi
698 _LTEOF
699
700 cat >>"$CONFIG_LT" <<_LTEOF
701 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
702 _LTEOF
703
704 cat >>"$CONFIG_LT" <<\_LTEOF
705 AC_MSG_NOTICE([creating $ofile])
706 _LT_OUTPUT_LIBTOOL_COMMANDS
707 AS_EXIT(0)
708 _LTEOF
709 chmod +x "$CONFIG_LT"
710
711 # configure is writing to config.log, but config.lt does its own redirection,
712 # appending to config.log, which fails on DOS, as config.log is still kept
713 # open by configure. Here we exec the FD to /dev/null, effectively closing
714 # config.log, so it can be properly (re)opened and appended to by config.lt.
715 lt_cl_success=:
716 test yes = "$silent" &&
717 lt_config_lt_args="$lt_config_lt_args --quiet"
718 exec AS_MESSAGE_LOG_FD>/dev/null
719 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
720 exec AS_MESSAGE_LOG_FD>>config.log
721 $lt_cl_success || AS_EXIT(1)
722 ])# LT_OUTPUT
723
724
725 # _LT_CONFIG(TAG)
726 # ---------------
727 # If TAG is the built-in tag, create an initial libtool script with a
728 # default configuration from the untagged config vars. Otherwise add code
729 # to config.status for appending the configuration named by TAG from the
730 # matching tagged config vars.
731 m4_defun([_LT_CONFIG],
732 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
733 _LT_CONFIG_SAVE_COMMANDS([
734 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
735 m4_if(_LT_TAG, [C], [
736 # See if we are running on zsh, and set the options that allow our
737 # commands through without removal of \ escapes.
738 if test -n "${ZSH_VERSION+set}"; then
739 setopt NO_GLOB_SUBST
740 fi
741
742 cfgfile=${ofile}T
743 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
744 $RM "$cfgfile"
745
746 cat <<_LT_EOF >> "$cfgfile"
747 #! $SHELL
748 # Generated automatically by $as_me ($PACKAGE) $VERSION
749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
751
752 # Provide generalized library-building support services.
753 # Written by Gordon Matzigkeit, 1996
754
755 _LT_COPYING
756 _LT_LIBTOOL_TAGS
757
758 # Configured defaults for sys_lib_dlsearch_path munging.
759 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
760
761 # ### BEGIN LIBTOOL CONFIG
762 _LT_LIBTOOL_CONFIG_VARS
763 _LT_LIBTOOL_TAG_VARS
764 # ### END LIBTOOL CONFIG
765
766 _LT_EOF
767
768 cat <<'_LT_EOF' >> "$cfgfile"
769
770 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
771
772 _LT_PREPARE_MUNGE_PATH_LIST
773 _LT_PREPARE_CC_BASENAME
774
775 # ### END FUNCTIONS SHARED WITH CONFIGURE
776
777 _LT_EOF
778
779 case $host_os in
780 aix3*)
781 cat <<\_LT_EOF >> "$cfgfile"
782 # AIX sometimes has problems with the GCC collect2 program. For some
783 # reason, if we set the COLLECT_NAMES environment variable, the problems
784 # vanish in a puff of smoke.
785 if test set != "${COLLECT_NAMES+set}"; then
786 COLLECT_NAMES=
787 export COLLECT_NAMES
788 fi
789 _LT_EOF
790 ;;
791 esac
792
793 _LT_PROG_LTMAIN
794
795 # We use sed instead of cat because bash on DJGPP gets confused if
796 # if finds mixed CR/LF and LF-only lines. Since sed operates in
797 # text mode, it properly converts lines to CR/LF. This bash problem
798 # is reportedly fixed, but why not run on old versions too?
799 $SED '$q' "$ltmain" >> "$cfgfile" \
800 || (rm -f "$cfgfile"; exit 1)
801
802 mv -f "$cfgfile" "$ofile" ||
803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
804 chmod +x "$ofile"
805 ],
806 [cat <<_LT_EOF >> "$ofile"
807
808 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
809 dnl in a comment (ie after a #).
810 # ### BEGIN LIBTOOL TAG CONFIG: $1
811 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
812 # ### END LIBTOOL TAG CONFIG: $1
813 _LT_EOF
814 ])dnl /m4_if
815 ],
816 [m4_if([$1], [], [
817 PACKAGE='$PACKAGE'
818 VERSION='$VERSION'
819 RM='$RM'
820 ofile='$ofile'], [])
821 ])dnl /_LT_CONFIG_SAVE_COMMANDS
822 ])# _LT_CONFIG
823
824
825 # LT_SUPPORTED_TAG(TAG)
826 # ---------------------
827 # Trace this macro to discover what tags are supported by the libtool
828 # --tag option, using:
829 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
830 AC_DEFUN([LT_SUPPORTED_TAG], [])
831
832
833 # C support is built-in for now
834 m4_define([_LT_LANG_C_enabled], [])
835 m4_define([_LT_TAGS], [])
836
837
838 # LT_LANG(LANG)
839 # -------------
840 # Enable libtool support for the given language if not already enabled.
841 AC_DEFUN([LT_LANG],
842 [AC_BEFORE([$0], [LT_OUTPUT])dnl
843 m4_case([$1],
844 [C], [_LT_LANG(C)],
845 [C++], [_LT_LANG(CXX)],
846 [Go], [_LT_LANG(GO)],
847 [Java], [_LT_LANG(GCJ)],
848 [Fortran 77], [_LT_LANG(F77)],
849 [Fortran], [_LT_LANG(FC)],
850 [Windows Resource], [_LT_LANG(RC)],
851 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
852 [_LT_LANG($1)],
853 [m4_fatal([$0: unsupported language: "$1"])])])dnl
854 ])# LT_LANG
855
856
857 # _LT_LANG(LANGNAME)
858 # ------------------
859 m4_defun([_LT_LANG],
860 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
861 [LT_SUPPORTED_TAG([$1])dnl
862 m4_append([_LT_TAGS], [$1 ])dnl
863 m4_define([_LT_LANG_]$1[_enabled], [])dnl
864 _LT_LANG_$1_CONFIG($1)])dnl
865 ])# _LT_LANG
866
867
868 m4_ifndef([AC_PROG_GO], [
869 # NOTE: This macro has been submitted for inclusion into #
870 # GNU Autoconf as AC_PROG_GO. When it is available in #
871 # a released version of Autoconf we should remove this #
872 # macro and use it instead. #
873 m4_defun([AC_PROG_GO],
874 [AC_LANG_PUSH(Go)dnl
875 AC_ARG_VAR([GOC], [Go compiler command])dnl
876 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
877 _AC_ARG_VAR_LDFLAGS()dnl
878 AC_CHECK_TOOL(GOC, gccgo)
879 if test -z "$GOC"; then
880 if test -n "$ac_tool_prefix"; then
881 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
882 fi
883 fi
884 if test -z "$GOC"; then
885 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
886 fi
887 ])#m4_defun
888 ])#m4_ifndef
889
890
891 # _LT_LANG_DEFAULT_CONFIG
892 # -----------------------
893 m4_defun([_LT_LANG_DEFAULT_CONFIG],
894 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
895 [LT_LANG(CXX)],
896 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
897
898 AC_PROVIDE_IFELSE([AC_PROG_F77],
899 [LT_LANG(F77)],
900 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
901
902 AC_PROVIDE_IFELSE([AC_PROG_FC],
903 [LT_LANG(FC)],
904 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
905
906 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
907 dnl pulling things in needlessly.
908 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
909 [LT_LANG(GCJ)],
910 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
911 [LT_LANG(GCJ)],
912 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
913 [LT_LANG(GCJ)],
914 [m4_ifdef([AC_PROG_GCJ],
915 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
916 m4_ifdef([A][M_PROG_GCJ],
917 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
918 m4_ifdef([LT_PROG_GCJ],
919 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
920
921 AC_PROVIDE_IFELSE([AC_PROG_GO],
922 [LT_LANG(GO)],
923 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
924
925 AC_PROVIDE_IFELSE([LT_PROG_RC],
926 [LT_LANG(RC)],
927 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
928 ])# _LT_LANG_DEFAULT_CONFIG
929
930 # Obsolete macros:
931 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
932 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
933 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
934 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
935 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
936 dnl aclocal-1.4 backwards compatibility:
937 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
938 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
939 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
940 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
941 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
942
943
944 # _LT_TAG_COMPILER
945 # ----------------
946 m4_defun([_LT_TAG_COMPILER],
947 [AC_REQUIRE([AC_PROG_CC])dnl
948
949 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
950 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
951 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
952 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
953
954 # If no C compiler was specified, use CC.
955 LTCC=${LTCC-"$CC"}
956
957 # If no C compiler flags were specified, use CFLAGS.
958 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
959
960 # Allow CC to be a program name with arguments.
961 compiler=$CC
962 ])# _LT_TAG_COMPILER
963
964
965 # _LT_COMPILER_BOILERPLATE
966 # ------------------------
967 # Check for compiler boilerplate output or warnings with
968 # the simple compiler test code.
969 m4_defun([_LT_COMPILER_BOILERPLATE],
970 [m4_require([_LT_DECL_SED])dnl
971 ac_outfile=conftest.$ac_objext
972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
974 _lt_compiler_boilerplate=`cat conftest.err`
975 $RM conftest*
976 ])# _LT_COMPILER_BOILERPLATE
977
978
979 # _LT_LINKER_BOILERPLATE
980 # ----------------------
981 # Check for linker boilerplate output or warnings with
982 # the simple link test code.
983 m4_defun([_LT_LINKER_BOILERPLATE],
984 [m4_require([_LT_DECL_SED])dnl
985 ac_outfile=conftest.$ac_objext
986 echo "$lt_simple_link_test_code" >conftest.$ac_ext
987 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
988 _lt_linker_boilerplate=`cat conftest.err`
989 $RM -r conftest*
990 ])# _LT_LINKER_BOILERPLATE
991
992 # _LT_REQUIRED_DARWIN_CHECKS
993 # -------------------------
994 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
995 case $host_os in
996 rhapsody* | darwin*)
997 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
998 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
999 AC_CHECK_TOOL([LIPO], [lipo], [:])
1000 AC_CHECK_TOOL([OTOOL], [otool], [:])
1001 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1002 _LT_DECL([], [DSYMUTIL], [1],
1003 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1004 _LT_DECL([], [NMEDIT], [1],
1005 [Tool to change global to local symbols on Mac OS X])
1006 _LT_DECL([], [LIPO], [1],
1007 [Tool to manipulate fat objects and archives on Mac OS X])
1008 _LT_DECL([], [OTOOL], [1],
1009 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1010 _LT_DECL([], [OTOOL64], [1],
1011 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1012
1013 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1014 [lt_cv_ld_exported_symbols_list],
1015 [lt_cv_ld_exported_symbols_list=no
1016 save_LDFLAGS=$LDFLAGS
1017 echo "_main" > conftest.sym
1018 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1019 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1020 [lt_cv_ld_exported_symbols_list=yes],
1021 [lt_cv_ld_exported_symbols_list=no])
1022 LDFLAGS=$save_LDFLAGS
1023 ])
1024
1025 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1026 [lt_cv_ld_force_load=no
1027 cat > conftest.c << _LT_EOF
1028 int forced_loaded() { return 2;}
1029 _LT_EOF
1030 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1031 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1032 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1033 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1034 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1035 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1036 cat > conftest.c << _LT_EOF
1037 int main() { return 0;}
1038 _LT_EOF
1039 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1040 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1041 _lt_result=$?
1042 if test -s conftest.err && $GREP force_load conftest.err; then
1043 cat conftest.err >&AS_MESSAGE_LOG_FD
1044 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1045 lt_cv_ld_force_load=yes
1046 else
1047 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 fi
1049 rm -f conftest.err libconftest.a conftest conftest.c
1050 rm -rf conftest.dSYM
1051 ])
1052 case $host_os in
1053 rhapsody* | darwin1.[[012]])
1054 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1055 darwin1.*)
1056 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1057 darwin*)
1058 case $MACOSX_DEPLOYMENT_TARGET,$host in
1059 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1060 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1061 *)
1062 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1063 esac
1064 ;;
1065 esac
1066 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1067 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1068 else
1069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1070 fi
1071 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1072 _lt_dsymutil='~$DSYMUTIL $lib || :'
1073 else
1074 _lt_dsymutil=
1075 fi
1076 ;;
1077 esac
1078 ])
1079
1080
1081 # _LT_DARWIN_LINKER_FEATURES([TAG])
1082 # ---------------------------------
1083 # Checks for linker and compiler features on darwin
1084 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1085 [
1086 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1087 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1088 _LT_TAGVAR(hardcode_direct, $1)=no
1089 _LT_TAGVAR(hardcode_automatic, $1)=yes
1090 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1091 if test yes = "$lt_cv_ld_force_load"; then
1092 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1093 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1094 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1095 else
1096 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1097 fi
1098 _LT_TAGVAR(link_all_deplibs, $1)=yes
1099 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1100 case $cc_basename in
1101 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1102 *) _lt_dar_can_shared=$GCC ;;
1103 esac
1104 if test yes = "$_lt_dar_can_shared"; then
1105 output_verbose_link_cmd=func_echo_all
1106 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dsymutil"
1107 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1108 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_export_syms$_lt_dsymutil"
1109 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1110 else
1111 _LT_TAGVAR(ld_shlibs, $1)=no
1112 fi
1113 ])
1114
1115 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1116 # ----------------------------------
1117 # Links a minimal program and checks the executable
1118 # for the system default hardcoded library path. In most cases,
1119 # this is /usr/lib:/lib, but when the MPI compilers are used
1120 # the location of the communication and MPI libs are included too.
1121 # If we don't find anything, use the default library path according
1122 # to the aix ld manual.
1123 # Store the results from the different compilers for each TAGNAME.
1124 # Allow to override them for all tags through lt_cv_aix_libpath.
1125 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1126 [m4_require([_LT_DECL_SED])dnl
1127 if test set = "${lt_cv_aix_libpath+set}"; then
1128 aix_libpath=$lt_cv_aix_libpath
1129 else
1130 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1131 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1132 lt_aix_libpath_sed='[
1133 /Import File Strings/,/^$/ {
1134 /^0/ {
1135 s/^0 *\([^ ]*\) *$/\1/
1136 p
1137 }
1138 }]'
1139 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1140 # Check for a 64-bit object if we didn't find anything.
1141 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1142 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1143 fi],[])
1144 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1145 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1146 fi
1147 ])
1148 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1149 fi
1150 ])# _LT_SYS_MODULE_PATH_AIX
1151
1152
1153 # _LT_SHELL_INIT(ARG)
1154 # -------------------
1155 m4_define([_LT_SHELL_INIT],
1156 [m4_divert_text([M4SH-INIT], [$1
1157 ])])# _LT_SHELL_INIT
1158
1159
1160
1161 # _LT_PROG_ECHO_BACKSLASH
1162 # -----------------------
1163 # Find how we can fake an echo command that does not interpret backslash.
1164 # In particular, with Autoconf 2.60 or later we add some code to the start
1165 # of the generated configure script that will find a shell with a builtin
1166 # printf (that we can use as an echo command).
1167 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1168 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1171
1172 AC_MSG_CHECKING([how to print strings])
1173 # Test print first, because it will be a builtin if present.
1174 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1175 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1176 ECHO='print -r --'
1177 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1178 ECHO='printf %s\n'
1179 else
1180 # Use this function as a fallback that always works.
1181 func_fallback_echo ()
1182 {
1183 eval 'cat <<_LTECHO_EOF
1184 $[]1
1185 _LTECHO_EOF'
1186 }
1187 ECHO='func_fallback_echo'
1188 fi
1189
1190 # func_echo_all arg...
1191 # Invoke $ECHO with all args, space-separated.
1192 func_echo_all ()
1193 {
1194 $ECHO "$*"
1195 }
1196
1197 case $ECHO in
1198 printf*) AC_MSG_RESULT([printf]) ;;
1199 print*) AC_MSG_RESULT([print -r]) ;;
1200 *) AC_MSG_RESULT([cat]) ;;
1201 esac
1202
1203 m4_ifdef([_AS_DETECT_SUGGESTED],
1204 [_AS_DETECT_SUGGESTED([
1205 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1206 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1207 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1208 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1209 PATH=/empty FPATH=/empty; export PATH FPATH
1210 test "X`printf %s $ECHO`" = "X$ECHO" \
1211 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1212
1213 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1214 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1215 ])# _LT_PROG_ECHO_BACKSLASH
1216
1217
1218 # _LT_WITH_SYSROOT
1219 # ----------------
1220 AC_DEFUN([_LT_WITH_SYSROOT],
1221 [m4_require([_LT_DECL_SED])dnl
1222 AC_MSG_CHECKING([for sysroot])
1223 AC_ARG_WITH([sysroot],
1224 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1225 [Search for dependent libraries within DIR (or the compiler's sysroot
1226 if not specified).])],
1227 [], [with_sysroot=no])
1228
1229 dnl lt_sysroot will always be passed unquoted. We quote it here
1230 dnl in case the user passed a directory name.
1231 lt_sysroot=
1232 case $with_sysroot in #(
1233 yes)
1234 if test yes = "$GCC"; then
1235 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1236 fi
1237 ;; #(
1238 /*)
1239 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1240 ;; #(
1241 no|'')
1242 ;; #(
1243 *)
1244 AC_MSG_RESULT([$with_sysroot])
1245 AC_MSG_ERROR([The sysroot must be an absolute path.])
1246 ;;
1247 esac
1248
1249 AC_MSG_RESULT([${lt_sysroot:-no}])
1250 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1251 [dependent libraries, and where our libraries should be installed.])])
1252
1253 # _LT_ENABLE_LOCK
1254 # ---------------
1255 m4_defun([_LT_ENABLE_LOCK],
1256 [AC_ARG_ENABLE([libtool-lock],
1257 [AS_HELP_STRING([--disable-libtool-lock],
1258 [avoid locking (might break parallel builds)])])
1259 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1260
1261 # Some flags need to be propagated to the compiler or linker for good
1262 # libtool support.
1263 case $host in
1264 ia64-*-hpux*)
1265 # Find out what ABI is being produced by ac_compile, and set mode
1266 # options accordingly.
1267 echo 'int i;' > conftest.$ac_ext
1268 if AC_TRY_EVAL(ac_compile); then
1269 case `$FILECMD conftest.$ac_objext` in
1270 *ELF-32*)
1271 HPUX_IA64_MODE=32
1272 ;;
1273 *ELF-64*)
1274 HPUX_IA64_MODE=64
1275 ;;
1276 esac
1277 fi
1278 rm -rf conftest*
1279 ;;
1280 *-*-irix6*)
1281 # Find out what ABI is being produced by ac_compile, and set linker
1282 # options accordingly.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test yes = "$lt_cv_prog_gnu_ld"; then
1286 case `$FILECMD conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `$FILECMD conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 mips64*-*linux*)
1315 # Find out what ABI is being produced by ac_compile, and set linker
1316 # options accordingly.
1317 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 emul=elf
1320 case `$FILECMD conftest.$ac_objext` in
1321 *32-bit*)
1322 emul="${emul}32"
1323 ;;
1324 *64-bit*)
1325 emul="${emul}64"
1326 ;;
1327 esac
1328 case `$FILECMD conftest.$ac_objext` in
1329 *MSB*)
1330 emul="${emul}btsmip"
1331 ;;
1332 *LSB*)
1333 emul="${emul}ltsmip"
1334 ;;
1335 esac
1336 case `$FILECMD conftest.$ac_objext` in
1337 *N32*)
1338 emul="${emul}n32"
1339 ;;
1340 esac
1341 LD="${LD-ld} -m $emul"
1342 fi
1343 rm -rf conftest*
1344 ;;
1345
1346 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1347 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1348 # Find out what ABI is being produced by ac_compile, and set linker
1349 # options accordingly. Note that the listed cases only cover the
1350 # situations where additional linker options are needed (such as when
1351 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1352 # vice versa); the common cases where no linker options are needed do
1353 # not appear in the list.
1354 echo 'int i;' > conftest.$ac_ext
1355 if AC_TRY_EVAL(ac_compile); then
1356 case `$FILECMD conftest.o` in
1357 *32-bit*)
1358 case $host in
1359 x86_64-*kfreebsd*-gnu)
1360 LD="${LD-ld} -m elf_i386_fbsd"
1361 ;;
1362 x86_64-*linux*)
1363 case `$FILECMD conftest.o` in
1364 *x86-64*)
1365 LD="${LD-ld} -m elf32_x86_64"
1366 ;;
1367 *)
1368 LD="${LD-ld} -m elf_i386"
1369 ;;
1370 esac
1371 ;;
1372 powerpc64le-*linux*)
1373 LD="${LD-ld} -m elf32lppclinux"
1374 ;;
1375 powerpc64-*linux*)
1376 LD="${LD-ld} -m elf32ppclinux"
1377 ;;
1378 s390x-*linux*)
1379 LD="${LD-ld} -m elf_s390"
1380 ;;
1381 sparc64-*linux*)
1382 LD="${LD-ld} -m elf32_sparc"
1383 ;;
1384 esac
1385 ;;
1386 *64-bit*)
1387 case $host in
1388 x86_64-*kfreebsd*-gnu)
1389 LD="${LD-ld} -m elf_x86_64_fbsd"
1390 ;;
1391 x86_64-*linux*)
1392 LD="${LD-ld} -m elf_x86_64"
1393 ;;
1394 powerpcle-*linux*)
1395 LD="${LD-ld} -m elf64lppc"
1396 ;;
1397 powerpc-*linux*)
1398 LD="${LD-ld} -m elf64ppc"
1399 ;;
1400 s390*-*linux*|s390*-*tpf*)
1401 LD="${LD-ld} -m elf64_s390"
1402 ;;
1403 sparc*-*linux*)
1404 LD="${LD-ld} -m elf64_sparc"
1405 ;;
1406 esac
1407 ;;
1408 esac
1409 fi
1410 rm -rf conftest*
1411 ;;
1412
1413 *-*-sco3.2v5*)
1414 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1415 SAVE_CFLAGS=$CFLAGS
1416 CFLAGS="$CFLAGS -belf"
1417 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1418 [AC_LANG_PUSH(C)
1419 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1420 AC_LANG_POP])
1421 if test yes != "$lt_cv_cc_needs_belf"; then
1422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1423 CFLAGS=$SAVE_CFLAGS
1424 fi
1425 ;;
1426 *-*solaris*)
1427 # Find out what ABI is being produced by ac_compile, and set linker
1428 # options accordingly.
1429 echo 'int i;' > conftest.$ac_ext
1430 if AC_TRY_EVAL(ac_compile); then
1431 case `$FILECMD conftest.o` in
1432 *64-bit*)
1433 case $lt_cv_prog_gnu_ld in
1434 yes*)
1435 case $host in
1436 i?86-*-solaris*|x86_64-*-solaris*)
1437 LD="${LD-ld} -m elf_x86_64"
1438 ;;
1439 sparc*-*-solaris*)
1440 LD="${LD-ld} -m elf64_sparc"
1441 ;;
1442 esac
1443 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1444 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1445 LD=${LD-ld}_sol2
1446 fi
1447 ;;
1448 *)
1449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1450 LD="${LD-ld} -64"
1451 fi
1452 ;;
1453 esac
1454 ;;
1455 esac
1456 fi
1457 rm -rf conftest*
1458 ;;
1459 esac
1460
1461 need_locks=$enable_libtool_lock
1462 ])# _LT_ENABLE_LOCK
1463
1464
1465 # _LT_PROG_AR
1466 # -----------
1467 m4_defun([_LT_PROG_AR],
1468 [AC_CHECK_TOOLS(AR, [ar], false)
1469 : ${AR=ar}
1470 _LT_DECL([], [AR], [1], [The archiver])
1471
1472 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1473 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1474 # higher priority because thats what people were doing historically (setting
1475 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1476 # variable obsoleted/removed.
1477
1478 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1479 lt_ar_flags=$AR_FLAGS
1480 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1481
1482 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1483 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1484 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1485 [Flags to create an archive])
1486
1487 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1488 [lt_cv_ar_at_file=no
1489 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1490 [echo conftest.$ac_objext > conftest.lst
1491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1492 AC_TRY_EVAL([lt_ar_try])
1493 if test 0 -eq "$ac_status"; then
1494 # Ensure the archiver fails upon bogus file names.
1495 rm -f conftest.$ac_objext libconftest.a
1496 AC_TRY_EVAL([lt_ar_try])
1497 if test 0 -ne "$ac_status"; then
1498 lt_cv_ar_at_file=@
1499 fi
1500 fi
1501 rm -f conftest.* libconftest.a
1502 ])
1503 ])
1504
1505 if test no = "$lt_cv_ar_at_file"; then
1506 archiver_list_spec=
1507 else
1508 archiver_list_spec=$lt_cv_ar_at_file
1509 fi
1510 _LT_DECL([], [archiver_list_spec], [1],
1511 [How to feed a file listing to the archiver])
1512 ])# _LT_PROG_AR
1513
1514
1515 # _LT_CMD_OLD_ARCHIVE
1516 # -------------------
1517 m4_defun([_LT_CMD_OLD_ARCHIVE],
1518 [_LT_PROG_AR
1519
1520 AC_CHECK_TOOL(STRIP, strip, :)
1521 test -z "$STRIP" && STRIP=:
1522 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1523
1524 AC_CHECK_TOOL(RANLIB, ranlib, :)
1525 test -z "$RANLIB" && RANLIB=:
1526 _LT_DECL([], [RANLIB], [1],
1527 [Commands used to install an old-style archive])
1528
1529 # Determine commands to create old-style static archives.
1530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1531 old_postinstall_cmds='chmod 644 $oldlib'
1532 old_postuninstall_cmds=
1533
1534 if test -n "$RANLIB"; then
1535 case $host_os in
1536 bitrig* | openbsd*)
1537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1538 ;;
1539 *)
1540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1541 ;;
1542 esac
1543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1544 fi
1545
1546 case $host_os in
1547 darwin*)
1548 lock_old_archive_extraction=yes ;;
1549 *)
1550 lock_old_archive_extraction=no ;;
1551 esac
1552 _LT_DECL([], [old_postinstall_cmds], [2])
1553 _LT_DECL([], [old_postuninstall_cmds], [2])
1554 _LT_TAGDECL([], [old_archive_cmds], [2],
1555 [Commands used to build an old-style archive])
1556 _LT_DECL([], [lock_old_archive_extraction], [0],
1557 [Whether to use a lock for old archive extraction])
1558 ])# _LT_CMD_OLD_ARCHIVE
1559
1560
1561 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1562 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1563 # ----------------------------------------------------------------
1564 # Check whether the given compiler option works
1565 AC_DEFUN([_LT_COMPILER_OPTION],
1566 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1567 m4_require([_LT_DECL_SED])dnl
1568 AC_CACHE_CHECK([$1], [$2],
1569 [$2=no
1570 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1572 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1573 # Insert the option either (1) after the last *FLAGS variable, or
1574 # (2) before a word containing "conftest.", or (3) at the end.
1575 # Note that $ac_compile itself does not contain backslashes and begins
1576 # with a dollar sign (not a hyphen), so the echo should work correctly.
1577 # The option is referenced via a variable to avoid confusing sed.
1578 lt_compile=`echo "$ac_compile" | $SED \
1579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1580 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1581 -e 's:$: $lt_compiler_flag:'`
1582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1583 (eval "$lt_compile" 2>conftest.err)
1584 ac_status=$?
1585 cat conftest.err >&AS_MESSAGE_LOG_FD
1586 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1587 if (exit $ac_status) && test -s "$ac_outfile"; then
1588 # The compiler can only warn and ignore the option if not recognized
1589 # So say no if there are warnings other than the usual output.
1590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1593 $2=yes
1594 fi
1595 fi
1596 $RM conftest*
1597 ])
1598
1599 if test yes = "[$]$2"; then
1600 m4_if([$5], , :, [$5])
1601 else
1602 m4_if([$6], , :, [$6])
1603 fi
1604 ])# _LT_COMPILER_OPTION
1605
1606 # Old name:
1607 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1608 dnl aclocal-1.4 backwards compatibility:
1609 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1610
1611
1612 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1613 # [ACTION-SUCCESS], [ACTION-FAILURE])
1614 # ----------------------------------------------------
1615 # Check whether the given linker option works
1616 AC_DEFUN([_LT_LINKER_OPTION],
1617 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1618 m4_require([_LT_DECL_SED])dnl
1619 AC_CACHE_CHECK([$1], [$2],
1620 [$2=no
1621 save_LDFLAGS=$LDFLAGS
1622 LDFLAGS="$LDFLAGS $3"
1623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1625 # The linker can only warn and ignore the option if not recognized
1626 # So say no if there are warnings
1627 if test -s conftest.err; then
1628 # Append any errors to the config.log.
1629 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1630 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1632 if diff conftest.exp conftest.er2 >/dev/null; then
1633 $2=yes
1634 fi
1635 else
1636 $2=yes
1637 fi
1638 fi
1639 $RM -r conftest*
1640 LDFLAGS=$save_LDFLAGS
1641 ])
1642
1643 if test yes = "[$]$2"; then
1644 m4_if([$4], , :, [$4])
1645 else
1646 m4_if([$5], , :, [$5])
1647 fi
1648 ])# _LT_LINKER_OPTION
1649
1650 # Old name:
1651 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1652 dnl aclocal-1.4 backwards compatibility:
1653 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1654
1655
1656 # LT_CMD_MAX_LEN
1657 #---------------
1658 AC_DEFUN([LT_CMD_MAX_LEN],
1659 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1660 # find the maximum length of command line arguments
1661 AC_MSG_CHECKING([the maximum length of command line arguments])
1662 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1663 i=0
1664 teststring=ABCD
1665
1666 case $build_os in
1667 msdosdjgpp*)
1668 # On DJGPP, this test can blow up pretty badly due to problems in libc
1669 # (any single argument exceeding 2000 bytes causes a buffer overrun
1670 # during glob expansion). Even if it were fixed, the result of this
1671 # check would be larger than it should be.
1672 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1673 ;;
1674
1675 gnu*)
1676 # Under GNU Hurd, this test is not required because there is
1677 # no limit to the length of command line arguments.
1678 # Libtool will interpret -1 as no limit whatsoever
1679 lt_cv_sys_max_cmd_len=-1;
1680 ;;
1681
1682 cygwin* | mingw* | cegcc*)
1683 # On Win9x/ME, this test blows up -- it succeeds, but takes
1684 # about 5 minutes as the teststring grows exponentially.
1685 # Worse, since 9x/ME are not pre-emptively multitasking,
1686 # you end up with a "frozen" computer, even though with patience
1687 # the test eventually succeeds (with a max line length of 256k).
1688 # Instead, let's just punt: use the minimum linelength reported by
1689 # all of the supported platforms: 8192 (on NT/2K/XP).
1690 lt_cv_sys_max_cmd_len=8192;
1691 ;;
1692
1693 mint*)
1694 # On MiNT this can take a long time and run out of memory.
1695 lt_cv_sys_max_cmd_len=8192;
1696 ;;
1697
1698 amigaos*)
1699 # On AmigaOS with pdksh, this test takes hours, literally.
1700 # So we just punt and use a minimum line length of 8192.
1701 lt_cv_sys_max_cmd_len=8192;
1702 ;;
1703
1704 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1705 # This has been around since 386BSD, at least. Likely further.
1706 if test -x /sbin/sysctl; then
1707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1708 elif test -x /usr/sbin/sysctl; then
1709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1710 else
1711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1712 fi
1713 # And add a safety zone
1714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1716 ;;
1717
1718 interix*)
1719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1720 lt_cv_sys_max_cmd_len=196608
1721 ;;
1722
1723 os2*)
1724 # The test takes a long time on OS/2.
1725 lt_cv_sys_max_cmd_len=8192
1726 ;;
1727
1728 osf*)
1729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1731 # nice to cause kernel panics so lets avoid the loop below.
1732 # First set a reasonable default.
1733 lt_cv_sys_max_cmd_len=16384
1734 #
1735 if test -x /sbin/sysconfig; then
1736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1738 esac
1739 fi
1740 ;;
1741 sco3.2v5*)
1742 lt_cv_sys_max_cmd_len=102400
1743 ;;
1744 sysv5* | sco5v6* | sysv4.2uw2*)
1745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1746 if test -n "$kargmax"; then
1747 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
1748 else
1749 lt_cv_sys_max_cmd_len=32768
1750 fi
1751 ;;
1752 *)
1753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1754 if test -n "$lt_cv_sys_max_cmd_len" && \
1755 test undefined != "$lt_cv_sys_max_cmd_len"; then
1756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1758 else
1759 # Make teststring a little bigger before we do anything with it.
1760 # a 1K string should be a reasonable start.
1761 for i in 1 2 3 4 5 6 7 8; do
1762 teststring=$teststring$teststring
1763 done
1764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1765 # If test is not a shell built-in, we'll probably end up computing a
1766 # maximum length that is only half of the actual maximum length, but
1767 # we can't tell.
1768 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1770 test 17 != "$i" # 1/2 MB should be enough
1771 do
1772 i=`expr $i + 1`
1773 teststring=$teststring$teststring
1774 done
1775 # Only check the string length outside the loop.
1776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1777 teststring=
1778 # Add a significant safety factor because C++ compilers can tack on
1779 # massive amounts of additional arguments before passing them to the
1780 # linker. It appears as though 1/2 is a usable value.
1781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1782 fi
1783 ;;
1784 esac
1785 ])
1786 if test -n "$lt_cv_sys_max_cmd_len"; then
1787 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1788 else
1789 AC_MSG_RESULT(none)
1790 fi
1791 max_cmd_len=$lt_cv_sys_max_cmd_len
1792 _LT_DECL([], [max_cmd_len], [0],
1793 [What is the maximum length of a command?])
1794 ])# LT_CMD_MAX_LEN
1795
1796 # Old name:
1797 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1798 dnl aclocal-1.4 backwards compatibility:
1799 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1800
1801
1802 # _LT_HEADER_DLFCN
1803 # ----------------
1804 m4_defun([_LT_HEADER_DLFCN],
1805 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1806 ])# _LT_HEADER_DLFCN
1807
1808
1809 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1810 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1811 # ----------------------------------------------------------------
1812 m4_defun([_LT_TRY_DLOPEN_SELF],
1813 [m4_require([_LT_HEADER_DLFCN])dnl
1814 if test yes = "$cross_compiling"; then :
1815 [$4]
1816 else
1817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1818 lt_status=$lt_dlunknown
1819 cat > conftest.$ac_ext <<_LT_EOF
1820 [#line $LINENO "configure"
1821 #include "confdefs.h"
1822
1823 #if HAVE_DLFCN_H
1824 #include <dlfcn.h>
1825 #endif
1826
1827 #include <stdio.h>
1828
1829 #ifdef RTLD_GLOBAL
1830 # define LT_DLGLOBAL RTLD_GLOBAL
1831 #else
1832 # ifdef DL_GLOBAL
1833 # define LT_DLGLOBAL DL_GLOBAL
1834 # else
1835 # define LT_DLGLOBAL 0
1836 # endif
1837 #endif
1838
1839 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1840 find out it does not work in some platform. */
1841 #ifndef LT_DLLAZY_OR_NOW
1842 # ifdef RTLD_LAZY
1843 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1844 # else
1845 # ifdef DL_LAZY
1846 # define LT_DLLAZY_OR_NOW DL_LAZY
1847 # else
1848 # ifdef RTLD_NOW
1849 # define LT_DLLAZY_OR_NOW RTLD_NOW
1850 # else
1851 # ifdef DL_NOW
1852 # define LT_DLLAZY_OR_NOW DL_NOW
1853 # else
1854 # define LT_DLLAZY_OR_NOW 0
1855 # endif
1856 # endif
1857 # endif
1858 # endif
1859 #endif
1860
1861 /* When -fvisibility=hidden is used, assume the code has been annotated
1862 correspondingly for the symbols needed. */
1863 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1864 int fnord () __attribute__((visibility("default")));
1865 #endif
1866
1867 int fnord () { return 42; }
1868 int main ()
1869 {
1870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1871 int status = $lt_dlunknown;
1872
1873 if (self)
1874 {
1875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1876 else
1877 {
1878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1879 else puts (dlerror ());
1880 }
1881 /* dlclose (self); */
1882 }
1883 else
1884 puts (dlerror ());
1885
1886 return status;
1887 }]
1888 _LT_EOF
1889 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1890 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1891 lt_status=$?
1892 case x$lt_status in
1893 x$lt_dlno_uscore) $1 ;;
1894 x$lt_dlneed_uscore) $2 ;;
1895 x$lt_dlunknown|x*) $3 ;;
1896 esac
1897 else :
1898 # compilation failed
1899 $3
1900 fi
1901 fi
1902 rm -fr conftest*
1903 ])# _LT_TRY_DLOPEN_SELF
1904
1905
1906 # LT_SYS_DLOPEN_SELF
1907 # ------------------
1908 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1909 [m4_require([_LT_HEADER_DLFCN])dnl
1910 if test yes != "$enable_dlopen"; then
1911 enable_dlopen=unknown
1912 enable_dlopen_self=unknown
1913 enable_dlopen_self_static=unknown
1914 else
1915 lt_cv_dlopen=no
1916 lt_cv_dlopen_libs=
1917
1918 case $host_os in
1919 beos*)
1920 lt_cv_dlopen=load_add_on
1921 lt_cv_dlopen_libs=
1922 lt_cv_dlopen_self=yes
1923 ;;
1924
1925 mingw* | pw32* | cegcc*)
1926 lt_cv_dlopen=LoadLibrary
1927 lt_cv_dlopen_libs=
1928 ;;
1929
1930 cygwin*)
1931 lt_cv_dlopen=dlopen
1932 lt_cv_dlopen_libs=
1933 ;;
1934
1935 darwin*)
1936 # if libdl is installed we need to link against it
1937 AC_CHECK_LIB([dl], [dlopen],
1938 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1939 lt_cv_dlopen=dyld
1940 lt_cv_dlopen_libs=
1941 lt_cv_dlopen_self=yes
1942 ])
1943 ;;
1944
1945 tpf*)
1946 # Don't try to run any link tests for TPF. We know it's impossible
1947 # because TPF is a cross-compiler, and we know how we open DSOs.
1948 lt_cv_dlopen=dlopen
1949 lt_cv_dlopen_libs=
1950 lt_cv_dlopen_self=no
1951 ;;
1952
1953 *)
1954 AC_CHECK_FUNC([shl_load],
1955 [lt_cv_dlopen=shl_load],
1956 [AC_CHECK_LIB([dld], [shl_load],
1957 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1958 [AC_CHECK_FUNC([dlopen],
1959 [lt_cv_dlopen=dlopen],
1960 [AC_CHECK_LIB([dl], [dlopen],
1961 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1962 [AC_CHECK_LIB([svld], [dlopen],
1963 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1964 [AC_CHECK_LIB([dld], [dld_link],
1965 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
1966 ])
1967 ])
1968 ])
1969 ])
1970 ])
1971 ;;
1972 esac
1973
1974 if test no = "$lt_cv_dlopen"; then
1975 enable_dlopen=no
1976 else
1977 enable_dlopen=yes
1978 fi
1979
1980 case $lt_cv_dlopen in
1981 dlopen)
1982 save_CPPFLAGS=$CPPFLAGS
1983 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1984
1985 save_LDFLAGS=$LDFLAGS
1986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1987
1988 save_LIBS=$LIBS
1989 LIBS="$lt_cv_dlopen_libs $LIBS"
1990
1991 AC_CACHE_CHECK([whether a program can dlopen itself],
1992 lt_cv_dlopen_self, [dnl
1993 _LT_TRY_DLOPEN_SELF(
1994 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1995 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1996 ])
1997
1998 if test yes = "$lt_cv_dlopen_self"; then
1999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2000 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2001 lt_cv_dlopen_self_static, [dnl
2002 _LT_TRY_DLOPEN_SELF(
2003 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2004 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2005 ])
2006 fi
2007
2008 CPPFLAGS=$save_CPPFLAGS
2009 LDFLAGS=$save_LDFLAGS
2010 LIBS=$save_LIBS
2011 ;;
2012 esac
2013
2014 case $lt_cv_dlopen_self in
2015 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2016 *) enable_dlopen_self=unknown ;;
2017 esac
2018
2019 case $lt_cv_dlopen_self_static in
2020 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2021 *) enable_dlopen_self_static=unknown ;;
2022 esac
2023 fi
2024 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2025 [Whether dlopen is supported])
2026 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2027 [Whether dlopen of programs is supported])
2028 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2029 [Whether dlopen of statically linked programs is supported])
2030 ])# LT_SYS_DLOPEN_SELF
2031
2032 # Old name:
2033 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2034 dnl aclocal-1.4 backwards compatibility:
2035 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2036
2037
2038 # _LT_COMPILER_C_O([TAGNAME])
2039 # ---------------------------
2040 # Check to see if options -c and -o are simultaneously supported by compiler.
2041 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2042 m4_defun([_LT_COMPILER_C_O],
2043 [m4_require([_LT_DECL_SED])dnl
2044 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2045 m4_require([_LT_TAG_COMPILER])dnl
2046 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2047 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2048 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2049 $RM -r conftest 2>/dev/null
2050 mkdir conftest
2051 cd conftest
2052 mkdir out
2053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2054
2055 lt_compiler_flag="-o out/conftest2.$ac_objext"
2056 # Insert the option either (1) after the last *FLAGS variable, or
2057 # (2) before a word containing "conftest.", or (3) at the end.
2058 # Note that $ac_compile itself does not contain backslashes and begins
2059 # with a dollar sign (not a hyphen), so the echo should work correctly.
2060 lt_compile=`echo "$ac_compile" | $SED \
2061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2062 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2063 -e 's:$: $lt_compiler_flag:'`
2064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2065 (eval "$lt_compile" 2>out/conftest.err)
2066 ac_status=$?
2067 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2069 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2070 then
2071 # The compiler can only warn and ignore the option if not recognized
2072 # So say no if there are warnings
2073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2076 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2077 fi
2078 fi
2079 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2080 $RM conftest*
2081 # SGI C++ compiler will create directory out/ii_files/ for
2082 # template instantiation
2083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2084 $RM out/* && rmdir out
2085 cd ..
2086 $RM -r conftest
2087 $RM conftest*
2088 ])
2089 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2090 [Does compiler simultaneously support -c and -o options?])
2091 ])# _LT_COMPILER_C_O
2092
2093
2094 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2095 # ----------------------------------
2096 # Check to see if we can do hard links to lock some files if needed
2097 m4_defun([_LT_COMPILER_FILE_LOCKS],
2098 [m4_require([_LT_ENABLE_LOCK])dnl
2099 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2100 _LT_COMPILER_C_O([$1])
2101
2102 hard_links=nottested
2103 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2104 # do not overwrite the value of need_locks provided by the user
2105 AC_MSG_CHECKING([if we can lock with hard links])
2106 hard_links=yes
2107 $RM conftest*
2108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2109 touch conftest.a
2110 ln conftest.a conftest.b 2>&5 || hard_links=no
2111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2112 AC_MSG_RESULT([$hard_links])
2113 if test no = "$hard_links"; then
2114 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2115 need_locks=warn
2116 fi
2117 else
2118 need_locks=no
2119 fi
2120 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2121 ])# _LT_COMPILER_FILE_LOCKS
2122
2123
2124 # _LT_CHECK_OBJDIR
2125 # ----------------
2126 m4_defun([_LT_CHECK_OBJDIR],
2127 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2128 [rm -f .libs 2>/dev/null
2129 mkdir .libs 2>/dev/null
2130 if test -d .libs; then
2131 lt_cv_objdir=.libs
2132 else
2133 # MS-DOS does not allow filenames that begin with a dot.
2134 lt_cv_objdir=_libs
2135 fi
2136 rmdir .libs 2>/dev/null])
2137 objdir=$lt_cv_objdir
2138 _LT_DECL([], [objdir], [0],
2139 [The name of the directory that contains temporary libtool files])dnl
2140 m4_pattern_allow([LT_OBJDIR])dnl
2141 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2142 [Define to the sub-directory where libtool stores uninstalled libraries.])
2143 ])# _LT_CHECK_OBJDIR
2144
2145
2146 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2147 # --------------------------------------
2148 # Check hardcoding attributes.
2149 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2150 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2151 _LT_TAGVAR(hardcode_action, $1)=
2152 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2153 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2154 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2155
2156 # We can hardcode non-existent directories.
2157 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2159 # have to relink, otherwise we might link with an installed library
2160 # when we should be linking with a yet-to-be-installed one
2161 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2162 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2163 # Linking always hardcodes the temporary library directory.
2164 _LT_TAGVAR(hardcode_action, $1)=relink
2165 else
2166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2167 _LT_TAGVAR(hardcode_action, $1)=immediate
2168 fi
2169 else
2170 # We cannot hardcode anything, or else we can only hardcode existing
2171 # directories.
2172 _LT_TAGVAR(hardcode_action, $1)=unsupported
2173 fi
2174 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2175
2176 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2177 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2178 # Fast installation is not supported
2179 enable_fast_install=no
2180 elif test yes = "$shlibpath_overrides_runpath" ||
2181 test no = "$enable_shared"; then
2182 # Fast installation is not necessary
2183 enable_fast_install=needless
2184 fi
2185 _LT_TAGDECL([], [hardcode_action], [0],
2186 [How to hardcode a shared library path into an executable])
2187 ])# _LT_LINKER_HARDCODE_LIBPATH
2188
2189
2190 # _LT_CMD_STRIPLIB
2191 # ----------------
2192 m4_defun([_LT_CMD_STRIPLIB],
2193 [m4_require([_LT_DECL_EGREP])
2194 striplib=
2195 old_striplib=
2196 AC_MSG_CHECKING([whether stripping libraries is possible])
2197 if test -z "$STRIP"; then
2198 AC_MSG_RESULT([no])
2199 else
2200 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2201 old_striplib="$STRIP --strip-debug"
2202 striplib="$STRIP --strip-unneeded"
2203 AC_MSG_RESULT([yes])
2204 else
2205 case $host_os in
2206 darwin*)
2207 # FIXME - insert some real tests, host_os isn't really good enough
2208 striplib="$STRIP -x"
2209 old_striplib="$STRIP -S"
2210 AC_MSG_RESULT([yes])
2211 ;;
2212 freebsd*)
2213 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2214 old_striplib="$STRIP --strip-debug"
2215 striplib="$STRIP --strip-unneeded"
2216 AC_MSG_RESULT([yes])
2217 else
2218 AC_MSG_RESULT([no])
2219 fi
2220 ;;
2221 *)
2222 AC_MSG_RESULT([no])
2223 ;;
2224 esac
2225 fi
2226 fi
2227 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2228 _LT_DECL([], [striplib], [1])
2229 ])# _LT_CMD_STRIPLIB
2230
2231
2232 # _LT_PREPARE_MUNGE_PATH_LIST
2233 # ---------------------------
2234 # Make sure func_munge_path_list() is defined correctly.
2235 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2236 [[# func_munge_path_list VARIABLE PATH
2237 # -----------------------------------
2238 # VARIABLE is name of variable containing _space_ separated list of
2239 # directories to be munged by the contents of PATH, which is string
2240 # having a format:
2241 # "DIR[:DIR]:"
2242 # string "DIR[ DIR]" will be prepended to VARIABLE
2243 # ":DIR[:DIR]"
2244 # string "DIR[ DIR]" will be appended to VARIABLE
2245 # "DIRP[:DIRP]::[DIRA:]DIRA"
2246 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2247 # "DIRA[ DIRA]" will be appended to VARIABLE
2248 # "DIR[:DIR]"
2249 # VARIABLE will be replaced by "DIR[ DIR]"
2250 func_munge_path_list ()
2251 {
2252 case x@S|@2 in
2253 x)
2254 ;;
2255 *:)
2256 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2257 ;;
2258 x:*)
2259 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2260 ;;
2261 *::*)
2262 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2263 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2264 ;;
2265 *)
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2267 ;;
2268 esac
2269 }
2270 ]])# _LT_PREPARE_PATH_LIST
2271
2272
2273 # _LT_SYS_DYNAMIC_LINKER([TAG])
2274 # -----------------------------
2275 # PORTME Fill in your ld.so characteristics
2276 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2277 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2278 m4_require([_LT_DECL_EGREP])dnl
2279 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2280 m4_require([_LT_DECL_OBJDUMP])dnl
2281 m4_require([_LT_DECL_SED])dnl
2282 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2283 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2284 AC_MSG_CHECKING([dynamic linker characteristics])
2285 m4_if([$1],
2286 [], [
2287 if test yes = "$GCC"; then
2288 case $host_os in
2289 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2290 *) lt_awk_arg='/^libraries:/' ;;
2291 esac
2292 case $host_os in
2293 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2294 *) lt_sed_strip_eq='s|=/|/|g' ;;
2295 esac
2296 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2297 case $lt_search_path_spec in
2298 *\;*)
2299 # if the path contains ";" then we assume it to be the separator
2300 # otherwise default to the standard path separator (i.e. ":") - it is
2301 # assumed that no part of a normal pathname contains ";" but that should
2302 # okay in the real world where ";" in dirpaths is itself problematic.
2303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2304 ;;
2305 *)
2306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2307 ;;
2308 esac
2309 # Ok, now we have the path, separated by spaces, we can step through it
2310 # and add multilib dir if necessary...
2311 lt_tmp_lt_search_path_spec=
2312 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2313 # ...but if some path component already ends with the multilib dir we assume
2314 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2315 case "$lt_multi_os_dir; $lt_search_path_spec " in
2316 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2317 lt_multi_os_dir=
2318 ;;
2319 esac
2320 for lt_sys_path in $lt_search_path_spec; do
2321 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2323 elif test -n "$lt_multi_os_dir"; then
2324 test -d "$lt_sys_path" && \
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2326 fi
2327 done
2328 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2329 BEGIN {RS = " "; FS = "/|\n";} {
2330 lt_foo = "";
2331 lt_count = 0;
2332 for (lt_i = NF; lt_i > 0; lt_i--) {
2333 if ($lt_i != "" && $lt_i != ".") {
2334 if ($lt_i == "..") {
2335 lt_count++;
2336 } else {
2337 if (lt_count == 0) {
2338 lt_foo = "/" $lt_i lt_foo;
2339 } else {
2340 lt_count--;
2341 }
2342 }
2343 }
2344 }
2345 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2346 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2347 }'`
2348 # AWK program above erroneously prepends '/' to C:/dos/paths
2349 # for these hosts.
2350 case $host_os in
2351 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2352 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2353 esac
2354 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2355 else
2356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2357 fi])
2358 library_names_spec=
2359 libname_spec='lib$name'
2360 soname_spec=
2361 shrext_cmds=.so
2362 postinstall_cmds=
2363 postuninstall_cmds=
2364 finish_cmds=
2365 finish_eval=
2366 shlibpath_var=
2367 shlibpath_overrides_runpath=unknown
2368 version_type=none
2369 dynamic_linker="$host_os ld.so"
2370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2371 need_lib_prefix=unknown
2372 hardcode_into_libs=no
2373
2374 # when you set need_version to no, make sure it does not cause -set_version
2375 # flags to be left without arguments
2376 need_version=unknown
2377
2378 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2379 [User-defined run-time library search path.])
2380
2381 case $host_os in
2382 aix3*)
2383 version_type=linux # correct to gnu/linux during the next big refactor
2384 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2385 shlibpath_var=LIBPATH
2386
2387 # AIX 3 has no versioning support, so we append a major version to the name.
2388 soname_spec='$libname$release$shared_ext$major'
2389 ;;
2390
2391 aix[[4-9]]*)
2392 version_type=linux # correct to gnu/linux during the next big refactor
2393 need_lib_prefix=no
2394 need_version=no
2395 hardcode_into_libs=yes
2396 if test ia64 = "$host_cpu"; then
2397 # AIX 5 supports IA64
2398 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2399 shlibpath_var=LD_LIBRARY_PATH
2400 else
2401 # With GCC up to 2.95.x, collect2 would create an import file
2402 # for dependence libraries. The import file would start with
2403 # the line '#! .'. This would cause the generated library to
2404 # depend on '.', always an invalid library. This was fixed in
2405 # development snapshots of GCC prior to 3.0.
2406 case $host_os in
2407 aix4 | aix4.[[01]] | aix4.[[01]].*)
2408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2409 echo ' yes '
2410 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2411 :
2412 else
2413 can_build_shared=no
2414 fi
2415 ;;
2416 esac
2417 # Using Import Files as archive members, it is possible to support
2418 # filename-based versioning of shared library archives on AIX. While
2419 # this would work for both with and without runtime linking, it will
2420 # prevent static linking of such archives. So we do filename-based
2421 # shared library versioning with .so extension only, which is used
2422 # when both runtime linking and shared linking is enabled.
2423 # Unfortunately, runtime linking may impact performance, so we do
2424 # not want this to be the default eventually. Also, we use the
2425 # versioned .so libs for executables only if there is the -brtl
2426 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2427 # To allow for filename-based versioning support, we need to create
2428 # libNAME.so.V as an archive file, containing:
2429 # *) an Import File, referring to the versioned filename of the
2430 # archive as well as the shared archive member, telling the
2431 # bitwidth (32 or 64) of that shared object, and providing the
2432 # list of exported symbols of that shared object, eventually
2433 # decorated with the 'weak' keyword
2434 # *) the shared object with the F_LOADONLY flag set, to really avoid
2435 # it being seen by the linker.
2436 # At run time we better use the real file rather than another symlink,
2437 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2438
2439 case $with_aix_soname,$aix_use_runtimelinking in
2440 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2441 # soname into executable. Probably we can add versioning support to
2442 # collect2, so additional links can be useful in future.
2443 aix,yes) # traditional libtool
2444 dynamic_linker='AIX unversionable lib.so'
2445 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2446 # instead of lib<name>.a to let people know that these are not
2447 # typical AIX shared libraries.
2448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2449 ;;
2450 aix,no) # traditional AIX only
2451 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2452 # We preserve .a as extension for shared libraries through AIX4.2
2453 # and later when we are not doing run time linking.
2454 library_names_spec='$libname$release.a $libname.a'
2455 soname_spec='$libname$release$shared_ext$major'
2456 ;;
2457 svr4,*) # full svr4 only
2458 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2459 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2460 # We do not specify a path in Import Files, so LIBPATH fires.
2461 shlibpath_overrides_runpath=yes
2462 ;;
2463 *,yes) # both, prefer svr4
2464 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2465 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2466 # unpreferred sharedlib libNAME.a needs extra handling
2467 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2468 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2469 # We do not specify a path in Import Files, so LIBPATH fires.
2470 shlibpath_overrides_runpath=yes
2471 ;;
2472 *,no) # both, prefer aix
2473 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2474 library_names_spec='$libname$release.a $libname.a'
2475 soname_spec='$libname$release$shared_ext$major'
2476 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2477 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2478 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2479 ;;
2480 esac
2481 shlibpath_var=LIBPATH
2482 fi
2483 ;;
2484
2485 amigaos*)
2486 case $host_cpu in
2487 powerpc)
2488 # Since July 2007 AmigaOS4 officially supports .so libraries.
2489 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2491 ;;
2492 m68k)
2493 library_names_spec='$libname.ixlibrary $libname.a'
2494 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2495 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2496 ;;
2497 esac
2498 ;;
2499
2500 beos*)
2501 library_names_spec='$libname$shared_ext'
2502 dynamic_linker="$host_os ld.so"
2503 shlibpath_var=LIBRARY_PATH
2504 ;;
2505
2506 bsdi[[45]]*)
2507 version_type=linux # correct to gnu/linux during the next big refactor
2508 need_version=no
2509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2510 soname_spec='$libname$release$shared_ext$major'
2511 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2512 shlibpath_var=LD_LIBRARY_PATH
2513 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2514 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2515 # the default ld.so.conf also contains /usr/contrib/lib and
2516 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2517 # libtool to hard-code these into programs
2518 ;;
2519
2520 cygwin* | mingw* | pw32* | cegcc*)
2521 version_type=windows
2522 shrext_cmds=.dll
2523 need_version=no
2524 need_lib_prefix=no
2525
2526 case $GCC,$cc_basename in
2527 yes,*)
2528 # gcc
2529 library_names_spec='$libname.dll.a'
2530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2531 postinstall_cmds='base_file=`basename \$file`~
2532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2533 dldir=$destdir/`dirname \$dlpath`~
2534 test -d \$dldir || mkdir -p \$dldir~
2535 $install_prog $dir/$dlname \$dldir/$dlname~
2536 chmod a+x \$dldir/$dlname~
2537 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2538 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2539 fi'
2540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2541 dlpath=$dir/\$dldll~
2542 $RM \$dlpath'
2543 shlibpath_overrides_runpath=yes
2544
2545 case $host_os in
2546 cygwin*)
2547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2548 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2549 m4_if([$1], [],[
2550 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2551 ;;
2552 mingw* | cegcc*)
2553 # MinGW DLLs use traditional 'lib' prefix
2554 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2555 ;;
2556 pw32*)
2557 # pw32 DLLs use 'pw' prefix rather than 'lib'
2558 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2559 ;;
2560 esac
2561 dynamic_linker='Win32 ld.exe'
2562 ;;
2563
2564 *,cl* | *,icl*)
2565 # Native MSVC or ICC
2566 libname_spec='$name'
2567 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2568 library_names_spec='$libname.dll.lib'
2569
2570 case $build_os in
2571 mingw*)
2572 sys_lib_search_path_spec=
2573 lt_save_ifs=$IFS
2574 IFS=';'
2575 for lt_path in $LIB
2576 do
2577 IFS=$lt_save_ifs
2578 # Let DOS variable expansion print the short 8.3 style file name.
2579 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2580 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2581 done
2582 IFS=$lt_save_ifs
2583 # Convert to MSYS style.
2584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2585 ;;
2586 cygwin*)
2587 # Convert to unix form, then to dos form, then back to unix form
2588 # but this time dos style (no spaces!) so that the unix form looks
2589 # like /cygdrive/c/PROGRA~1:/cygdr...
2590 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2591 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2592 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2593 ;;
2594 *)
2595 sys_lib_search_path_spec=$LIB
2596 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2597 # It is most probably a Windows format PATH.
2598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2599 else
2600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2601 fi
2602 # FIXME: find the short name or the path components, as spaces are
2603 # common. (e.g. "Program Files" -> "PROGRA~1")
2604 ;;
2605 esac
2606
2607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2608 postinstall_cmds='base_file=`basename \$file`~
2609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2610 dldir=$destdir/`dirname \$dlpath`~
2611 test -d \$dldir || mkdir -p \$dldir~
2612 $install_prog $dir/$dlname \$dldir/$dlname'
2613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2614 dlpath=$dir/\$dldll~
2615 $RM \$dlpath'
2616 shlibpath_overrides_runpath=yes
2617 dynamic_linker='Win32 link.exe'
2618 ;;
2619
2620 *)
2621 # Assume MSVC and ICC wrapper
2622 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2623 dynamic_linker='Win32 ld.exe'
2624 ;;
2625 esac
2626 # FIXME: first we should search . and the directory the executable is in
2627 shlibpath_var=PATH
2628 ;;
2629
2630 darwin* | rhapsody*)
2631 dynamic_linker="$host_os dyld"
2632 version_type=darwin
2633 need_lib_prefix=no
2634 need_version=no
2635 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2636 soname_spec='$libname$release$major$shared_ext'
2637 shlibpath_overrides_runpath=yes
2638 shlibpath_var=DYLD_LIBRARY_PATH
2639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2640 m4_if([$1], [],[
2641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2643 ;;
2644
2645 dgux*)
2646 version_type=linux # correct to gnu/linux during the next big refactor
2647 need_lib_prefix=no
2648 need_version=no
2649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2650 soname_spec='$libname$release$shared_ext$major'
2651 shlibpath_var=LD_LIBRARY_PATH
2652 ;;
2653
2654 freebsd* | dragonfly* | midnightbsd*)
2655 # DragonFly does not have aout. When/if they implement a new
2656 # versioning mechanism, adjust this.
2657 if test -x /usr/bin/objformat; then
2658 objformat=`/usr/bin/objformat`
2659 else
2660 case $host_os in
2661 freebsd[[23]].*) objformat=aout ;;
2662 *) objformat=elf ;;
2663 esac
2664 fi
2665 version_type=freebsd-$objformat
2666 case $version_type in
2667 freebsd-elf*)
2668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2669 soname_spec='$libname$release$shared_ext$major'
2670 need_version=no
2671 need_lib_prefix=no
2672 ;;
2673 freebsd-*)
2674 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2675 need_version=yes
2676 ;;
2677 esac
2678 shlibpath_var=LD_LIBRARY_PATH
2679 case $host_os in
2680 freebsd2.*)
2681 shlibpath_overrides_runpath=yes
2682 ;;
2683 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2684 shlibpath_overrides_runpath=yes
2685 hardcode_into_libs=yes
2686 ;;
2687 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2688 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2689 shlibpath_overrides_runpath=no
2690 hardcode_into_libs=yes
2691 ;;
2692 *) # from 4.6 on, and DragonFly
2693 shlibpath_overrides_runpath=yes
2694 hardcode_into_libs=yes
2695 ;;
2696 esac
2697 ;;
2698
2699 haiku*)
2700 version_type=linux # correct to gnu/linux during the next big refactor
2701 need_lib_prefix=no
2702 need_version=no
2703 dynamic_linker="$host_os runtime_loader"
2704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2705 soname_spec='$libname$release$shared_ext$major'
2706 shlibpath_var=LIBRARY_PATH
2707 shlibpath_overrides_runpath=no
2708 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2709 hardcode_into_libs=yes
2710 ;;
2711
2712 hpux9* | hpux10* | hpux11*)
2713 # Give a soname corresponding to the major version so that dld.sl refuses to
2714 # link against other versions.
2715 version_type=sunos
2716 need_lib_prefix=no
2717 need_version=no
2718 case $host_cpu in
2719 ia64*)
2720 shrext_cmds='.so'
2721 hardcode_into_libs=yes
2722 dynamic_linker="$host_os dld.so"
2723 shlibpath_var=LD_LIBRARY_PATH
2724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2726 soname_spec='$libname$release$shared_ext$major'
2727 if test 32 = "$HPUX_IA64_MODE"; then
2728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2729 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2730 else
2731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2733 fi
2734 ;;
2735 hppa*64*)
2736 shrext_cmds='.sl'
2737 hardcode_into_libs=yes
2738 dynamic_linker="$host_os dld.sl"
2739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2742 soname_spec='$libname$release$shared_ext$major'
2743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2745 ;;
2746 *)
2747 shrext_cmds='.sl'
2748 dynamic_linker="$host_os dld.sl"
2749 shlibpath_var=SHLIB_PATH
2750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2752 soname_spec='$libname$release$shared_ext$major'
2753 ;;
2754 esac
2755 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2756 postinstall_cmds='chmod 555 $lib'
2757 # or fails outright, so override atomically:
2758 install_override_mode=555
2759 ;;
2760
2761 interix[[3-9]]*)
2762 version_type=linux # correct to gnu/linux during the next big refactor
2763 need_lib_prefix=no
2764 need_version=no
2765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2766 soname_spec='$libname$release$shared_ext$major'
2767 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2768 shlibpath_var=LD_LIBRARY_PATH
2769 shlibpath_overrides_runpath=no
2770 hardcode_into_libs=yes
2771 ;;
2772
2773 irix5* | irix6* | nonstopux*)
2774 case $host_os in
2775 nonstopux*) version_type=nonstopux ;;
2776 *)
2777 if test yes = "$lt_cv_prog_gnu_ld"; then
2778 version_type=linux # correct to gnu/linux during the next big refactor
2779 else
2780 version_type=irix
2781 fi ;;
2782 esac
2783 need_lib_prefix=no
2784 need_version=no
2785 soname_spec='$libname$release$shared_ext$major'
2786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2787 case $host_os in
2788 irix5* | nonstopux*)
2789 libsuff= shlibsuff=
2790 ;;
2791 *)
2792 case $LD in # libtool.m4 will add one of these switches to LD
2793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2794 libsuff= shlibsuff= libmagic=32-bit;;
2795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2796 libsuff=32 shlibsuff=N32 libmagic=N32;;
2797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2798 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2799 *) libsuff= shlibsuff= libmagic=never-match;;
2800 esac
2801 ;;
2802 esac
2803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2804 shlibpath_overrides_runpath=no
2805 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2806 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2807 hardcode_into_libs=yes
2808 ;;
2809
2810 # No shared lib support for Linux oldld, aout, or coff.
2811 linux*oldld* | linux*aout* | linux*coff*)
2812 dynamic_linker=no
2813 ;;
2814
2815 linux*android*)
2816 version_type=none # Android doesn't support versioned libraries.
2817 need_lib_prefix=no
2818 need_version=no
2819 library_names_spec='$libname$release$shared_ext'
2820 soname_spec='$libname$release$shared_ext'
2821 finish_cmds=
2822 shlibpath_var=LD_LIBRARY_PATH
2823 shlibpath_overrides_runpath=yes
2824
2825 # This implies no fast_install, which is unacceptable.
2826 # Some rework will be needed to allow for fast_install
2827 # before this can be enabled.
2828 hardcode_into_libs=yes
2829
2830 dynamic_linker='Android linker'
2831 # Don't embed -rpath directories since the linker doesn't support them.
2832 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2833 ;;
2834
2835 # This must be glibc/ELF.
2836 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2837 version_type=linux # correct to gnu/linux during the next big refactor
2838 need_lib_prefix=no
2839 need_version=no
2840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2841 soname_spec='$libname$release$shared_ext$major'
2842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2843 shlibpath_var=LD_LIBRARY_PATH
2844 shlibpath_overrides_runpath=no
2845
2846 # Some binutils ld are patched to set DT_RUNPATH
2847 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2848 [lt_cv_shlibpath_overrides_runpath=no
2849 save_LDFLAGS=$LDFLAGS
2850 save_libdir=$libdir
2851 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2852 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2853 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2854 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2855 [lt_cv_shlibpath_overrides_runpath=yes])])
2856 LDFLAGS=$save_LDFLAGS
2857 libdir=$save_libdir
2858 ])
2859 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2860
2861 # This implies no fast_install, which is unacceptable.
2862 # Some rework will be needed to allow for fast_install
2863 # before this can be enabled.
2864 hardcode_into_libs=yes
2865
2866 # Ideally, we could use ldconfig to report *all* directores which are
2867 # searched for libraries, however this is still not possible. Aside from not
2868 # being certain /sbin/ldconfig is available, command
2869 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2870 # even though it is searched at run-time. Try to do the best guess by
2871 # appending ld.so.conf contents (and includes) to the search path.
2872 if test -f /etc/ld.so.conf; then
2873 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' ' '`
2874 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2875 fi
2876
2877 # We used to test for /lib/ld.so.1 and disable shared libraries on
2878 # powerpc, because MkLinux only supported shared libraries with the
2879 # GNU dynamic linker. Since this was broken with cross compilers,
2880 # most powerpc-linux boxes support dynamic linking these days and
2881 # people can always --disable-shared, the test was removed, and we
2882 # assume the GNU/Linux dynamic linker is in use.
2883 dynamic_linker='GNU/Linux ld.so'
2884 ;;
2885
2886 netbsd*)
2887 version_type=sunos
2888 need_lib_prefix=no
2889 need_version=no
2890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2891 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2893 dynamic_linker='NetBSD (a.out) ld.so'
2894 else
2895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2896 soname_spec='$libname$release$shared_ext$major'
2897 dynamic_linker='NetBSD ld.elf_so'
2898 fi
2899 shlibpath_var=LD_LIBRARY_PATH
2900 shlibpath_overrides_runpath=yes
2901 hardcode_into_libs=yes
2902 ;;
2903
2904 newsos6)
2905 version_type=linux # correct to gnu/linux during the next big refactor
2906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2907 shlibpath_var=LD_LIBRARY_PATH
2908 shlibpath_overrides_runpath=yes
2909 ;;
2910
2911 *nto* | *qnx*)
2912 version_type=qnx
2913 need_lib_prefix=no
2914 need_version=no
2915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2916 soname_spec='$libname$release$shared_ext$major'
2917 shlibpath_var=LD_LIBRARY_PATH
2918 shlibpath_overrides_runpath=no
2919 hardcode_into_libs=yes
2920 dynamic_linker='ldqnx.so'
2921 ;;
2922
2923 openbsd* | bitrig*)
2924 version_type=sunos
2925 sys_lib_dlsearch_path_spec=/usr/lib
2926 need_lib_prefix=no
2927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2928 need_version=no
2929 else
2930 need_version=yes
2931 fi
2932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2934 shlibpath_var=LD_LIBRARY_PATH
2935 shlibpath_overrides_runpath=yes
2936 ;;
2937
2938 os2*)
2939 libname_spec='$name'
2940 version_type=windows
2941 shrext_cmds=.dll
2942 need_version=no
2943 need_lib_prefix=no
2944 # OS/2 can only load a DLL with a base name of 8 characters or less.
2945 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2946 v=$($ECHO $release$versuffix | tr -d .-);
2947 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2948 $ECHO $n$v`$shared_ext'
2949 library_names_spec='${libname}_dll.$libext'
2950 dynamic_linker='OS/2 ld.exe'
2951 shlibpath_var=BEGINLIBPATH
2952 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2954 postinstall_cmds='base_file=`basename \$file`~
2955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2956 dldir=$destdir/`dirname \$dlpath`~
2957 test -d \$dldir || mkdir -p \$dldir~
2958 $install_prog $dir/$dlname \$dldir/$dlname~
2959 chmod a+x \$dldir/$dlname~
2960 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2961 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2962 fi'
2963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2964 dlpath=$dir/\$dldll~
2965 $RM \$dlpath'
2966 ;;
2967
2968 osf3* | osf4* | osf5*)
2969 version_type=osf
2970 need_lib_prefix=no
2971 need_version=no
2972 soname_spec='$libname$release$shared_ext$major'
2973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2974 shlibpath_var=LD_LIBRARY_PATH
2975 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2977 ;;
2978
2979 rdos*)
2980 dynamic_linker=no
2981 ;;
2982
2983 solaris*)
2984 version_type=linux # correct to gnu/linux during the next big refactor
2985 need_lib_prefix=no
2986 need_version=no
2987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2988 soname_spec='$libname$release$shared_ext$major'
2989 shlibpath_var=LD_LIBRARY_PATH
2990 shlibpath_overrides_runpath=yes
2991 hardcode_into_libs=yes
2992 # ldd complains unless libraries are executable
2993 postinstall_cmds='chmod +x $lib'
2994 ;;
2995
2996 sunos4*)
2997 version_type=sunos
2998 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3000 shlibpath_var=LD_LIBRARY_PATH
3001 shlibpath_overrides_runpath=yes
3002 if test yes = "$with_gnu_ld"; then
3003 need_lib_prefix=no
3004 fi
3005 need_version=yes
3006 ;;
3007
3008 sysv4 | sysv4.3*)
3009 version_type=linux # correct to gnu/linux during the next big refactor
3010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3011 soname_spec='$libname$release$shared_ext$major'
3012 shlibpath_var=LD_LIBRARY_PATH
3013 case $host_vendor in
3014 sni)
3015 shlibpath_overrides_runpath=no
3016 need_lib_prefix=no
3017 runpath_var=LD_RUN_PATH
3018 ;;
3019 siemens)
3020 need_lib_prefix=no
3021 ;;
3022 motorola)
3023 need_lib_prefix=no
3024 need_version=no
3025 shlibpath_overrides_runpath=no
3026 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3027 ;;
3028 esac
3029 ;;
3030
3031 sysv4*MP*)
3032 if test -d /usr/nec; then
3033 version_type=linux # correct to gnu/linux during the next big refactor
3034 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3035 soname_spec='$libname$shared_ext.$major'
3036 shlibpath_var=LD_LIBRARY_PATH
3037 fi
3038 ;;
3039
3040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3041 version_type=sco
3042 need_lib_prefix=no
3043 need_version=no
3044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3045 soname_spec='$libname$release$shared_ext$major'
3046 shlibpath_var=LD_LIBRARY_PATH
3047 shlibpath_overrides_runpath=yes
3048 hardcode_into_libs=yes
3049 if test yes = "$with_gnu_ld"; then
3050 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3051 else
3052 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3053 case $host_os in
3054 sco3.2v5*)
3055 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3056 ;;
3057 esac
3058 fi
3059 sys_lib_dlsearch_path_spec='/usr/lib'
3060 ;;
3061
3062 tpf*)
3063 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3064 version_type=linux # correct to gnu/linux during the next big refactor
3065 need_lib_prefix=no
3066 need_version=no
3067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3068 shlibpath_var=LD_LIBRARY_PATH
3069 shlibpath_overrides_runpath=no
3070 hardcode_into_libs=yes
3071 ;;
3072
3073 uts4*)
3074 version_type=linux # correct to gnu/linux during the next big refactor
3075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3076 soname_spec='$libname$release$shared_ext$major'
3077 shlibpath_var=LD_LIBRARY_PATH
3078 ;;
3079
3080 *)
3081 dynamic_linker=no
3082 ;;
3083 esac
3084 AC_MSG_RESULT([$dynamic_linker])
3085 test no = "$dynamic_linker" && can_build_shared=no
3086
3087 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3088 if test yes = "$GCC"; then
3089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3090 fi
3091
3092 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3093 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3094 fi
3095
3096 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3097 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3098 fi
3099
3100 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3101 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3102
3103 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3104 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3105
3106 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3107 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3108
3109 _LT_DECL([], [variables_saved_for_relink], [1],
3110 [Variables whose values should be saved in libtool wrapper scripts and
3111 restored at link time])
3112 _LT_DECL([], [need_lib_prefix], [0],
3113 [Do we need the "lib" prefix for modules?])
3114 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3115 _LT_DECL([], [version_type], [0], [Library versioning type])
3116 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3117 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3118 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3119 [Is shlibpath searched before the hard-coded library search path?])
3120 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3121 _LT_DECL([], [library_names_spec], [1],
3122 [[List of archive names. First name is the real one, the rest are links.
3123 The last name is the one that the linker finds with -lNAME]])
3124 _LT_DECL([], [soname_spec], [1],
3125 [[The coded name of the library, if different from the real name]])
3126 _LT_DECL([], [install_override_mode], [1],
3127 [Permission mode override for installation of shared libraries])
3128 _LT_DECL([], [postinstall_cmds], [2],
3129 [Command to use after installation of a shared archive])
3130 _LT_DECL([], [postuninstall_cmds], [2],
3131 [Command to use after uninstallation of a shared archive])
3132 _LT_DECL([], [finish_cmds], [2],
3133 [Commands used to finish a libtool library installation in a directory])
3134 _LT_DECL([], [finish_eval], [1],
3135 [[As "finish_cmds", except a single script fragment to be evaled but
3136 not shown]])
3137 _LT_DECL([], [hardcode_into_libs], [0],
3138 [Whether we should hardcode library paths into libraries])
3139 _LT_DECL([], [sys_lib_search_path_spec], [2],
3140 [Compile-time system search path for libraries])
3141 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3142 [Detected run-time system search path for libraries])
3143 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3144 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3145 ])# _LT_SYS_DYNAMIC_LINKER
3146
3147
3148 # _LT_PATH_TOOL_PREFIX(TOOL)
3149 # --------------------------
3150 # find a file program that can recognize shared library
3151 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3152 [m4_require([_LT_DECL_EGREP])dnl
3153 AC_MSG_CHECKING([for $1])
3154 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3155 [case $MAGIC_CMD in
3156 [[\\/*] | ?:[\\/]*])
3157 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3158 ;;
3159 *)
3160 lt_save_MAGIC_CMD=$MAGIC_CMD
3161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3162 dnl $ac_dummy forces splitting on constant user-supplied paths.
3163 dnl POSIX.2 word splitting is done only on the output of word expansions,
3164 dnl not every word. This closes a longstanding sh security hole.
3165 ac_dummy="m4_if([$2], , $PATH, [$2])"
3166 for ac_dir in $ac_dummy; do
3167 IFS=$lt_save_ifs
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f "$ac_dir/$1"; then
3170 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3171 if test -n "$file_magic_test_file"; then
3172 case $deplibs_check_method in
3173 "file_magic "*)
3174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3175 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3177 $EGREP "$file_magic_regex" > /dev/null; then
3178 :
3179 else
3180 cat <<_LT_EOF 1>&2
3181
3182 *** Warning: the command libtool uses to detect shared libraries,
3183 *** $file_magic_cmd, produces output that libtool cannot recognize.
3184 *** The result is that libtool may fail to recognize shared libraries
3185 *** as such. This will affect the creation of libtool libraries that
3186 *** depend on shared libraries, but programs linked with such libtool
3187 *** libraries will work regardless of this problem. Nevertheless, you
3188 *** may want to report the problem to your system manager and/or to
3189 *** bug-libtool@gnu.org
3190
3191 _LT_EOF
3192 fi ;;
3193 esac
3194 fi
3195 break
3196 fi
3197 done
3198 IFS=$lt_save_ifs
3199 MAGIC_CMD=$lt_save_MAGIC_CMD
3200 ;;
3201 esac])
3202 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3203 if test -n "$MAGIC_CMD"; then
3204 AC_MSG_RESULT($MAGIC_CMD)
3205 else
3206 AC_MSG_RESULT(no)
3207 fi
3208 _LT_DECL([], [MAGIC_CMD], [0],
3209 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3210 ])# _LT_PATH_TOOL_PREFIX
3211
3212 # Old name:
3213 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3214 dnl aclocal-1.4 backwards compatibility:
3215 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3216
3217
3218 # _LT_PATH_MAGIC
3219 # --------------
3220 # find a file program that can recognize a shared library
3221 m4_defun([_LT_PATH_MAGIC],
3222 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3223 if test -z "$lt_cv_path_MAGIC_CMD"; then
3224 if test -n "$ac_tool_prefix"; then
3225 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3226 else
3227 MAGIC_CMD=:
3228 fi
3229 fi
3230 ])# _LT_PATH_MAGIC
3231
3232
3233 # LT_PATH_LD
3234 # ----------
3235 # find the pathname to the GNU or non-GNU linker
3236 AC_DEFUN([LT_PATH_LD],
3237 [AC_REQUIRE([AC_PROG_CC])dnl
3238 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3239 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3240 m4_require([_LT_DECL_SED])dnl
3241 m4_require([_LT_DECL_EGREP])dnl
3242 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3243
3244 AC_ARG_WITH([gnu-ld],
3245 [AS_HELP_STRING([--with-gnu-ld],
3246 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3247 [test no = "$withval" || with_gnu_ld=yes],
3248 [with_gnu_ld=no])dnl
3249
3250 ac_prog=ld
3251 if test yes = "$GCC"; then
3252 # Check if gcc -print-prog-name=ld gives a path.
3253 AC_MSG_CHECKING([for ld used by $CC])
3254 case $host in
3255 *-*-mingw*)
3256 # gcc leaves a trailing carriage return, which upsets mingw
3257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3258 *)
3259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3260 esac
3261 case $ac_prog in
3262 # Accept absolute paths.
3263 [[\\/]]* | ?:[[\\/]]*)
3264 re_direlt='/[[^/]][[^/]]*/\.\./'
3265 # Canonicalize the pathname of ld
3266 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3267 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3268 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3269 done
3270 test -z "$LD" && LD=$ac_prog
3271 ;;
3272 "")
3273 # If it fails, then pretend we aren't using GCC.
3274 ac_prog=ld
3275 ;;
3276 *)
3277 # If it is relative, then search for the first ld in PATH.
3278 with_gnu_ld=unknown
3279 ;;
3280 esac
3281 elif test yes = "$with_gnu_ld"; then
3282 AC_MSG_CHECKING([for GNU ld])
3283 else
3284 AC_MSG_CHECKING([for non-GNU ld])
3285 fi
3286 AC_CACHE_VAL(lt_cv_path_LD,
3287 [if test -z "$LD"; then
3288 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3289 for ac_dir in $PATH; do
3290 IFS=$lt_save_ifs
3291 test -z "$ac_dir" && ac_dir=.
3292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3293 lt_cv_path_LD=$ac_dir/$ac_prog
3294 # Check to see if the program is GNU ld. I'd rather use --version,
3295 # but apparently some variants of GNU ld only accept -v.
3296 # Break only if it was the GNU/non-GNU ld that we prefer.
3297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3298 *GNU* | *'with BFD'*)
3299 test no != "$with_gnu_ld" && break
3300 ;;
3301 *)
3302 test yes != "$with_gnu_ld" && break
3303 ;;
3304 esac
3305 fi
3306 done
3307 IFS=$lt_save_ifs
3308 else
3309 lt_cv_path_LD=$LD # Let the user override the test with a path.
3310 fi])
3311 LD=$lt_cv_path_LD
3312 if test -n "$LD"; then
3313 AC_MSG_RESULT($LD)
3314 else
3315 AC_MSG_RESULT(no)
3316 fi
3317 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3318 _LT_PATH_LD_GNU
3319 AC_SUBST([LD])
3320
3321 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3322 ])# LT_PATH_LD
3323
3324 # Old names:
3325 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3326 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3327 dnl aclocal-1.4 backwards compatibility:
3328 dnl AC_DEFUN([AM_PROG_LD], [])
3329 dnl AC_DEFUN([AC_PROG_LD], [])
3330
3331
3332 # _LT_PATH_LD_GNU
3333 #- --------------
3334 m4_defun([_LT_PATH_LD_GNU],
3335 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3336 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3337 case `$LD -v 2>&1 </dev/null` in
3338 *GNU* | *'with BFD'*)
3339 lt_cv_prog_gnu_ld=yes
3340 ;;
3341 *)
3342 lt_cv_prog_gnu_ld=no
3343 ;;
3344 esac])
3345 with_gnu_ld=$lt_cv_prog_gnu_ld
3346 ])# _LT_PATH_LD_GNU
3347
3348
3349 # _LT_CMD_RELOAD
3350 # --------------
3351 # find reload flag for linker
3352 # -- PORTME Some linkers may need a different reload flag.
3353 m4_defun([_LT_CMD_RELOAD],
3354 [AC_CACHE_CHECK([for $LD option to reload object files],
3355 lt_cv_ld_reload_flag,
3356 [lt_cv_ld_reload_flag='-r'])
3357 reload_flag=$lt_cv_ld_reload_flag
3358 case $reload_flag in
3359 "" | " "*) ;;
3360 *) reload_flag=" $reload_flag" ;;
3361 esac
3362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3363 case $host_os in
3364 cygwin* | mingw* | pw32* | cegcc*)
3365 if test yes != "$GCC"; then
3366 reload_cmds=false
3367 fi
3368 ;;
3369 darwin*)
3370 if test yes = "$GCC"; then
3371 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3372 else
3373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3374 fi
3375 ;;
3376 esac
3377 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3378 _LT_TAGDECL([], [reload_cmds], [2])dnl
3379 ])# _LT_CMD_RELOAD
3380
3381
3382 # _LT_PATH_DD
3383 # -----------
3384 # find a working dd
3385 m4_defun([_LT_PATH_DD],
3386 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3387 [printf 0123456789abcdef0123456789abcdef >conftest.i
3388 cat conftest.i conftest.i >conftest2.i
3389 : ${lt_DD:=$DD}
3390 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3391 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3392 cmp -s conftest.i conftest.out \
3393 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3394 fi])
3395 rm -f conftest.i conftest2.i conftest.out])
3396 ])# _LT_PATH_DD
3397
3398
3399 # _LT_CMD_TRUNCATE
3400 # ----------------
3401 # find command to truncate a binary pipe
3402 m4_defun([_LT_CMD_TRUNCATE],
3403 [m4_require([_LT_PATH_DD])
3404 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3405 [printf 0123456789abcdef0123456789abcdef >conftest.i
3406 cat conftest.i conftest.i >conftest2.i
3407 lt_cv_truncate_bin=
3408 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3409 cmp -s conftest.i conftest.out \
3410 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3411 fi
3412 rm -f conftest.i conftest2.i conftest.out
3413 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3414 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3415 [Command to truncate a binary pipe])
3416 ])# _LT_CMD_TRUNCATE
3417
3418
3419 # _LT_CHECK_MAGIC_METHOD
3420 # ----------------------
3421 # how to check for library dependencies
3422 # -- PORTME fill in with the dynamic library characteristics
3423 m4_defun([_LT_CHECK_MAGIC_METHOD],
3424 [m4_require([_LT_DECL_EGREP])
3425 m4_require([_LT_DECL_OBJDUMP])
3426 AC_CACHE_CHECK([how to recognize dependent libraries],
3427 lt_cv_deplibs_check_method,
3428 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3429 lt_cv_file_magic_test_file=
3430 lt_cv_deplibs_check_method='unknown'
3431 # Need to set the preceding variable on all platforms that support
3432 # interlibrary dependencies.
3433 # 'none' -- dependencies not supported.
3434 # 'unknown' -- same as none, but documents that we really don't know.
3435 # 'pass_all' -- all dependencies passed with no checks.
3436 # 'test_compile' -- check by making test program.
3437 # 'file_magic [[regex]]' -- check by looking for files in library path
3438 # that responds to the $file_magic_cmd with a given extended regex.
3439 # If you have 'file' or equivalent on your system and you're not sure
3440 # whether 'pass_all' will *always* work, you probably want this one.
3441
3442 case $host_os in
3443 aix[[4-9]]*)
3444 lt_cv_deplibs_check_method=pass_all
3445 ;;
3446
3447 beos*)
3448 lt_cv_deplibs_check_method=pass_all
3449 ;;
3450
3451 bsdi[[45]]*)
3452 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3453 lt_cv_file_magic_cmd='$FILECMD -L'
3454 lt_cv_file_magic_test_file=/shlib/libc.so
3455 ;;
3456
3457 cygwin*)
3458 # func_win32_libid is a shell function defined in ltmain.sh
3459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3460 lt_cv_file_magic_cmd='func_win32_libid'
3461 ;;
3462
3463 mingw* | pw32*)
3464 # Base MSYS/MinGW do not provide the 'file' command needed by
3465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3466 # unless we find 'file', for example because we are cross-compiling.
3467 if ( file / ) >/dev/null 2>&1; then
3468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3469 lt_cv_file_magic_cmd='func_win32_libid'
3470 else
3471 # Keep this pattern in sync with the one in func_win32_libid.
3472 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3473 lt_cv_file_magic_cmd='$OBJDUMP -f'
3474 fi
3475 ;;
3476
3477 cegcc*)
3478 # use the weaker test based on 'objdump'. See mingw*.
3479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3480 lt_cv_file_magic_cmd='$OBJDUMP -f'
3481 ;;
3482
3483 darwin* | rhapsody*)
3484 lt_cv_deplibs_check_method=pass_all
3485 ;;
3486
3487 freebsd* | dragonfly* | midnightbsd*)
3488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3489 case $host_cpu in
3490 i*86 )
3491 # Not sure whether the presence of OpenBSD here was a mistake.
3492 # Let's accept both of them until this is cleared up.
3493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3494 lt_cv_file_magic_cmd=$FILECMD
3495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3496 ;;
3497 esac
3498 else
3499 lt_cv_deplibs_check_method=pass_all
3500 fi
3501 ;;
3502
3503 haiku*)
3504 lt_cv_deplibs_check_method=pass_all
3505 ;;
3506
3507 hpux10.20* | hpux11*)
3508 lt_cv_file_magic_cmd=$FILECMD
3509 case $host_cpu in
3510 ia64*)
3511 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3513 ;;
3514 hppa*64*)
3515 [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]']
3516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3517 ;;
3518 *)
3519 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3521 ;;
3522 esac
3523 ;;
3524
3525 interix[[3-9]]*)
3526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3527 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3528 ;;
3529
3530 irix5* | irix6* | nonstopux*)
3531 case $LD in
3532 *-32|*"-32 ") libmagic=32-bit;;
3533 *-n32|*"-n32 ") libmagic=N32;;
3534 *-64|*"-64 ") libmagic=64-bit;;
3535 *) libmagic=never-match;;
3536 esac
3537 lt_cv_deplibs_check_method=pass_all
3538 ;;
3539
3540 # This must be glibc/ELF.
3541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3542 lt_cv_deplibs_check_method=pass_all
3543 ;;
3544
3545 netbsd*)
3546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3547 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3548 else
3549 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3550 fi
3551 ;;
3552
3553 newos6*)
3554 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3555 lt_cv_file_magic_cmd=$FILECMD
3556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3557 ;;
3558
3559 *nto* | *qnx*)
3560 lt_cv_deplibs_check_method=pass_all
3561 ;;
3562
3563 openbsd* | bitrig*)
3564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3565 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3566 else
3567 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3568 fi
3569 ;;
3570
3571 osf3* | osf4* | osf5*)
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575 rdos*)
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579 solaris*)
3580 lt_cv_deplibs_check_method=pass_all
3581 ;;
3582
3583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3584 lt_cv_deplibs_check_method=pass_all
3585 ;;
3586
3587 sysv4 | sysv4.3*)
3588 case $host_vendor in
3589 motorola)
3590 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3592 ;;
3593 ncr)
3594 lt_cv_deplibs_check_method=pass_all
3595 ;;
3596 sequent)
3597 lt_cv_file_magic_cmd='/bin/file'
3598 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3599 ;;
3600 sni)
3601 lt_cv_file_magic_cmd='/bin/file'
3602 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3603 lt_cv_file_magic_test_file=/lib/libc.so
3604 ;;
3605 siemens)
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608 pc)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611 esac
3612 ;;
3613
3614 tpf*)
3615 lt_cv_deplibs_check_method=pass_all
3616 ;;
3617 os2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620 esac
3621 ])
3622
3623 file_magic_glob=
3624 want_nocaseglob=no
3625 if test "$build" = "$host"; then
3626 case $host_os in
3627 mingw* | pw32*)
3628 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3629 want_nocaseglob=yes
3630 else
3631 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3632 fi
3633 ;;
3634 esac
3635 fi
3636
3637 file_magic_cmd=$lt_cv_file_magic_cmd
3638 deplibs_check_method=$lt_cv_deplibs_check_method
3639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3640
3641 _LT_DECL([], [deplibs_check_method], [1],
3642 [Method to check whether dependent libraries are shared objects])
3643 _LT_DECL([], [file_magic_cmd], [1],
3644 [Command to use when deplibs_check_method = "file_magic"])
3645 _LT_DECL([], [file_magic_glob], [1],
3646 [How to find potential files when deplibs_check_method = "file_magic"])
3647 _LT_DECL([], [want_nocaseglob], [1],
3648 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3649 ])# _LT_CHECK_MAGIC_METHOD
3650
3651
3652 # LT_PATH_NM
3653 # ----------
3654 # find the pathname to a BSD- or MS-compatible name lister
3655 AC_DEFUN([LT_PATH_NM],
3656 [AC_REQUIRE([AC_PROG_CC])dnl
3657 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3658 [if test -n "$NM"; then
3659 # Let the user override the test.
3660 lt_cv_path_NM=$NM
3661 else
3662 lt_nm_to_check=${ac_tool_prefix}nm
3663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3664 lt_nm_to_check="$lt_nm_to_check nm"
3665 fi
3666 for lt_tmp_nm in $lt_nm_to_check; do
3667 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3669 IFS=$lt_save_ifs
3670 test -z "$ac_dir" && ac_dir=.
3671 tmp_nm=$ac_dir/$lt_tmp_nm
3672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3673 # Check to see if the nm accepts a BSD-compat flag.
3674 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3675 # nm: unknown option "B" ignored
3676 # Tru64's nm complains that /dev/null is an invalid object file
3677 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3678 case $build_os in
3679 mingw*) lt_bad_file=conftest.nm/nofile ;;
3680 *) lt_bad_file=/dev/null ;;
3681 esac
3682 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3683 *$lt_bad_file* | *'Invalid file or object type'*)
3684 lt_cv_path_NM="$tmp_nm -B"
3685 break 2
3686 ;;
3687 *)
3688 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3689 */dev/null*)
3690 lt_cv_path_NM="$tmp_nm -p"
3691 break 2
3692 ;;
3693 *)
3694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3695 continue # so that we can try to find one that supports BSD flags
3696 ;;
3697 esac
3698 ;;
3699 esac
3700 fi
3701 done
3702 IFS=$lt_save_ifs
3703 done
3704 : ${lt_cv_path_NM=no}
3705 fi])
3706 if test no != "$lt_cv_path_NM"; then
3707 NM=$lt_cv_path_NM
3708 else
3709 # Didn't find any BSD compatible name lister, look for dumpbin.
3710 if test -n "$DUMPBIN"; then :
3711 # Let the user override the test.
3712 else
3713 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3714 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3715 *COFF*)
3716 DUMPBIN="$DUMPBIN -symbols -headers"
3717 ;;
3718 *)
3719 DUMPBIN=:
3720 ;;
3721 esac
3722 fi
3723 AC_SUBST([DUMPBIN])
3724 if test : != "$DUMPBIN"; then
3725 NM=$DUMPBIN
3726 fi
3727 fi
3728 test -z "$NM" && NM=nm
3729 AC_SUBST([NM])
3730 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3731
3732 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3733 [lt_cv_nm_interface="BSD nm"
3734 echo "int some_variable = 0;" > conftest.$ac_ext
3735 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3736 (eval "$ac_compile" 2>conftest.err)
3737 cat conftest.err >&AS_MESSAGE_LOG_FD
3738 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3740 cat conftest.err >&AS_MESSAGE_LOG_FD
3741 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3742 cat conftest.out >&AS_MESSAGE_LOG_FD
3743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3744 lt_cv_nm_interface="MS dumpbin"
3745 fi
3746 rm -f conftest*])
3747 ])# LT_PATH_NM
3748
3749 # Old names:
3750 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3751 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3752 dnl aclocal-1.4 backwards compatibility:
3753 dnl AC_DEFUN([AM_PROG_NM], [])
3754 dnl AC_DEFUN([AC_PROG_NM], [])
3755
3756 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3757 # --------------------------------
3758 # how to determine the name of the shared library
3759 # associated with a specific link library.
3760 # -- PORTME fill in with the dynamic library characteristics
3761 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3762 [m4_require([_LT_DECL_EGREP])
3763 m4_require([_LT_DECL_OBJDUMP])
3764 m4_require([_LT_DECL_DLLTOOL])
3765 AC_CACHE_CHECK([how to associate runtime and link libraries],
3766 lt_cv_sharedlib_from_linklib_cmd,
3767 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3768
3769 case $host_os in
3770 cygwin* | mingw* | pw32* | cegcc*)
3771 # two different shell functions defined in ltmain.sh;
3772 # decide which one to use based on capabilities of $DLLTOOL
3773 case `$DLLTOOL --help 2>&1` in
3774 *--identify-strict*)
3775 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3776 ;;
3777 *)
3778 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3779 ;;
3780 esac
3781 ;;
3782 *)
3783 # fallback: assume linklib IS sharedlib
3784 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3785 ;;
3786 esac
3787 ])
3788 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3789 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3790
3791 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3792 [Command to associate shared and link libraries])
3793 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3794
3795
3796 # _LT_PATH_MANIFEST_TOOL
3797 # ----------------------
3798 # locate the manifest tool
3799 m4_defun([_LT_PATH_MANIFEST_TOOL],
3800 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3802 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3803 [lt_cv_path_mainfest_tool=no
3804 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3805 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3806 cat conftest.err >&AS_MESSAGE_LOG_FD
3807 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3808 lt_cv_path_mainfest_tool=yes
3809 fi
3810 rm -f conftest*])
3811 if test yes != "$lt_cv_path_mainfest_tool"; then
3812 MANIFEST_TOOL=:
3813 fi
3814 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3815 ])# _LT_PATH_MANIFEST_TOOL
3816
3817
3818 # _LT_DLL_DEF_P([FILE])
3819 # ---------------------
3820 # True iff FILE is a Windows DLL '.def' file.
3821 # Keep in sync with func_dll_def_p in the libtool script
3822 AC_DEFUN([_LT_DLL_DEF_P],
3823 [dnl
3824 test DEF = "`$SED -n dnl
3825 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3826 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3827 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3828 -e q dnl Only consider the first "real" line
3829 $1`" dnl
3830 ])# _LT_DLL_DEF_P
3831
3832
3833 # LT_LIB_M
3834 # --------
3835 # check for math library
3836 AC_DEFUN([LT_LIB_M],
3837 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3838 LIBM=
3839 case $host in
3840 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3841 # These system don't have libm, or don't need it
3842 ;;
3843 *-ncr-sysv4.3*)
3844 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3845 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3846 ;;
3847 *)
3848 AC_CHECK_LIB(m, cos, LIBM=-lm)
3849 ;;
3850 esac
3851 AC_SUBST([LIBM])
3852 ])# LT_LIB_M
3853
3854 # Old name:
3855 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3856 dnl aclocal-1.4 backwards compatibility:
3857 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3858
3859
3860 # _LT_COMPILER_NO_RTTI([TAGNAME])
3861 # -------------------------------
3862 m4_defun([_LT_COMPILER_NO_RTTI],
3863 [m4_require([_LT_TAG_COMPILER])dnl
3864
3865 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3866
3867 if test yes = "$GCC"; then
3868 case $cc_basename in
3869 nvcc*)
3870 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3871 *)
3872 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3873 esac
3874
3875 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3876 lt_cv_prog_compiler_rtti_exceptions,
3877 [-fno-rtti -fno-exceptions], [],
3878 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3879 fi
3880 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3881 [Compiler flag to turn off builtin functions])
3882 ])# _LT_COMPILER_NO_RTTI
3883
3884
3885 # _LT_CMD_GLOBAL_SYMBOLS
3886 # ----------------------
3887 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3888 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3889 AC_REQUIRE([AC_PROG_CC])dnl
3890 AC_REQUIRE([AC_PROG_AWK])dnl
3891 AC_REQUIRE([LT_PATH_NM])dnl
3892 AC_REQUIRE([LT_PATH_LD])dnl
3893 m4_require([_LT_DECL_SED])dnl
3894 m4_require([_LT_DECL_EGREP])dnl
3895 m4_require([_LT_TAG_COMPILER])dnl
3896
3897 # Check for command to grab the raw symbol name followed by C symbol from nm.
3898 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3899 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3900 [
3901 # These are sane defaults that work on at least a few old systems.
3902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3903
3904 # Character class describing NM global symbol codes.
3905 symcode='[[BCDEGRST]]'
3906
3907 # Regexp to match symbols that can be accessed directly from C.
3908 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3909
3910 # Define system-specific variables.
3911 case $host_os in
3912 aix*)
3913 symcode='[[BCDT]]'
3914 ;;
3915 cygwin* | mingw* | pw32* | cegcc*)
3916 symcode='[[ABCDGISTW]]'
3917 ;;
3918 hpux*)
3919 if test ia64 = "$host_cpu"; then
3920 symcode='[[ABCDEGRST]]'
3921 fi
3922 ;;
3923 irix* | nonstopux*)
3924 symcode='[[BCDEGRST]]'
3925 ;;
3926 osf*)
3927 symcode='[[BCDEGQRST]]'
3928 ;;
3929 solaris*)
3930 symcode='[[BDRT]]'
3931 ;;
3932 sco3.2v5*)
3933 symcode='[[DT]]'
3934 ;;
3935 sysv4.2uw2*)
3936 symcode='[[DT]]'
3937 ;;
3938 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3939 symcode='[[ABDT]]'
3940 ;;
3941 sysv4)
3942 symcode='[[DFNSTU]]'
3943 ;;
3944 esac
3945
3946 # If we're using GNU nm, then use its standard symbol codes.
3947 case `$NM -V 2>&1` in
3948 *GNU* | *'with BFD'*)
3949 symcode='[[ABCDGIRSTW]]' ;;
3950 esac
3951
3952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3953 # Gets list of data symbols to import.
3954 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3955 # Adjust the below global symbol transforms to fixup imported variables.
3956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3958 lt_c_name_lib_hook="\
3959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3961 else
3962 # Disable hooks by default.
3963 lt_cv_sys_global_symbol_to_import=
3964 lt_cdecl_hook=
3965 lt_c_name_hook=
3966 lt_c_name_lib_hook=
3967 fi
3968
3969 # Transform an extracted symbol line into a proper C declaration.
3970 # Some systems (esp. on ia64) link data and code symbols differently,
3971 # so use this general approach.
3972 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
3973 $lt_cdecl_hook\
3974 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3975 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3976
3977 # Transform an extracted symbol line into symbol name and symbol address
3978 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
3979 $lt_c_name_hook\
3980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3982
3983 # Transform an extracted symbol line into symbol name with lib prefix and
3984 # symbol address.
3985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
3986 $lt_c_name_lib_hook\
3987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3988 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
3989 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
3990
3991 # Handle CRLF in mingw tool chain
3992 opt_cr=
3993 case $build_os in
3994 mingw*)
3995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3996 ;;
3997 esac
3998
3999 # Try without a prefix underscore, then with it.
4000 for ac_symprfx in "" "_"; do
4001
4002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4003 symxfrm="\\1 $ac_symprfx\\2 \\2"
4004
4005 # Write the raw and C identifiers.
4006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4007 # Fake it for dumpbin and say T for any non-static function,
4008 # D for any global variable and I for any imported variable.
4009 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
4010 # which start with @ or ?.
4011 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4012 " {last_section=section; section=\$ 3};"\
4013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4015 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4016 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4017 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4018 " \$ 0!~/External *\|/{next};"\
4019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4020 " {if(hide[section]) next};"\
4021 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4022 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4023 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4024 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4025 " ' prfx=^$ac_symprfx]"
4026 else
4027 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4028 fi
4029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
4030
4031 # Check to see that the pipe works correctly.
4032 pipe_works=no
4033
4034 rm -f conftest*
4035 cat > conftest.$ac_ext <<_LT_EOF
4036 #ifdef __cplusplus
4037 extern "C" {
4038 #endif
4039 char nm_test_var;
4040 void nm_test_func(void);
4041 void nm_test_func(void){}
4042 #ifdef __cplusplus
4043 }
4044 #endif
4045 int main(){nm_test_var='a';nm_test_func();return(0);}
4046 _LT_EOF
4047
4048 if AC_TRY_EVAL(ac_compile); then
4049 # Now try to grab the symbols.
4050 nlist=conftest.nm
4051 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4052 # Try sorting and uniquifying the output.
4053 if sort "$nlist" | uniq > "$nlist"T; then
4054 mv -f "$nlist"T "$nlist"
4055 else
4056 rm -f "$nlist"T
4057 fi
4058
4059 # Make sure that we snagged all the symbols we need.
4060 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4061 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4062 cat <<_LT_EOF > conftest.$ac_ext
4063 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4064 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4065 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4066 relocations are performed -- see ld's documentation on pseudo-relocs. */
4067 # define LT@&t@_DLSYM_CONST
4068 #elif defined __osf__
4069 /* This system does not cope well with relocations in const data. */
4070 # define LT@&t@_DLSYM_CONST
4071 #else
4072 # define LT@&t@_DLSYM_CONST const
4073 #endif
4074
4075 #ifdef __cplusplus
4076 extern "C" {
4077 #endif
4078
4079 _LT_EOF
4080 # Now generate the symbol file.
4081 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4082
4083 cat <<_LT_EOF >> conftest.$ac_ext
4084
4085 /* The mapping between symbol names and symbols. */
4086 LT@&t@_DLSYM_CONST struct {
4087 const char *name;
4088 void *address;
4089 }
4090 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4091 {
4092 { "@PROGRAM@", (void *) 0 },
4093 _LT_EOF
4094 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4095 cat <<\_LT_EOF >> conftest.$ac_ext
4096 {0, (void *) 0}
4097 };
4098
4099 /* This works around a problem in FreeBSD linker */
4100 #ifdef FREEBSD_WORKAROUND
4101 static const void *lt_preloaded_setup() {
4102 return lt__PROGRAM__LTX_preloaded_symbols;
4103 }
4104 #endif
4105
4106 #ifdef __cplusplus
4107 }
4108 #endif
4109 _LT_EOF
4110 # Now try linking the two files.
4111 mv conftest.$ac_objext conftstm.$ac_objext
4112 lt_globsym_save_LIBS=$LIBS
4113 lt_globsym_save_CFLAGS=$CFLAGS
4114 LIBS=conftstm.$ac_objext
4115 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4116 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4117 pipe_works=yes
4118 fi
4119 LIBS=$lt_globsym_save_LIBS
4120 CFLAGS=$lt_globsym_save_CFLAGS
4121 else
4122 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4123 fi
4124 else
4125 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4126 fi
4127 else
4128 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4129 fi
4130 else
4131 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4132 cat conftest.$ac_ext >&5
4133 fi
4134 rm -rf conftest* conftst*
4135
4136 # Do not use the global_symbol_pipe unless it works.
4137 if test yes = "$pipe_works"; then
4138 break
4139 else
4140 lt_cv_sys_global_symbol_pipe=
4141 fi
4142 done
4143 ])
4144 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4145 lt_cv_sys_global_symbol_to_cdecl=
4146 fi
4147 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4148 AC_MSG_RESULT(failed)
4149 else
4150 AC_MSG_RESULT(ok)
4151 fi
4152
4153 # Response file support.
4154 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4155 nm_file_list_spec='@'
4156 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4157 nm_file_list_spec='@'
4158 fi
4159
4160 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4161 [Take the output of nm and produce a listing of raw symbols and C names])
4162 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4163 [Transform the output of nm in a proper C declaration])
4164 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4165 [Transform the output of nm into a list of symbols to manually relocate])
4166 _LT_DECL([global_symbol_to_c_name_address],
4167 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4168 [Transform the output of nm in a C name address pair])
4169 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4170 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4171 [Transform the output of nm in a C name address pair when lib prefix is needed])
4172 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4173 [The name lister interface])
4174 _LT_DECL([], [nm_file_list_spec], [1],
4175 [Specify filename containing input files for $NM])
4176 ]) # _LT_CMD_GLOBAL_SYMBOLS
4177
4178
4179 # _LT_COMPILER_PIC([TAGNAME])
4180 # ---------------------------
4181 m4_defun([_LT_COMPILER_PIC],
4182 [m4_require([_LT_TAG_COMPILER])dnl
4183 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4184 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4185 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4186
4187 m4_if([$1], [CXX], [
4188 # C++ specific cases for pic, static, wl, etc.
4189 if test yes = "$GXX"; then
4190 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4191 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4192
4193 case $host_os in
4194 aix*)
4195 # All AIX code is PIC.
4196 if test ia64 = "$host_cpu"; then
4197 # AIX 5 now supports IA64 processor
4198 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4199 fi
4200 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4201 ;;
4202
4203 amigaos*)
4204 case $host_cpu in
4205 powerpc)
4206 # see comment about AmigaOS4 .so support
4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4208 ;;
4209 m68k)
4210 # FIXME: we need at least 68020 code to build shared libraries, but
4211 # adding the '-m68020' flag to GCC prevents building anything better,
4212 # like '-m68040'.
4213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4214 ;;
4215 esac
4216 ;;
4217
4218 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4219 # PIC is the default for these OSes.
4220 ;;
4221 mingw* | cygwin* | os2* | pw32* | cegcc*)
4222 # This hack is so that the source file can tell whether it is being
4223 # built for inclusion in a dll (and should export symbols for example).
4224 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4225 # (--disable-auto-import) libraries
4226 m4_if([$1], [GCJ], [],
4227 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4228 case $host_os in
4229 os2*)
4230 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4231 ;;
4232 esac
4233 ;;
4234 darwin* | rhapsody*)
4235 # PIC is the default on this platform
4236 # Common symbols not allowed in MH_DYLIB files
4237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4238 ;;
4239 *djgpp*)
4240 # DJGPP does not support shared libraries at all
4241 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4242 ;;
4243 haiku*)
4244 # PIC is the default for Haiku.
4245 # The "-static" flag exists, but is broken.
4246 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4247 ;;
4248 interix[[3-9]]*)
4249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4250 # Instead, we relocate shared libraries at runtime.
4251 ;;
4252 sysv4*MP*)
4253 if test -d /usr/nec; then
4254 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4255 fi
4256 ;;
4257 hpux*)
4258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4260 # sets the default TLS model and affects inlining.
4261 case $host_cpu in
4262 hppa*64*)
4263 ;;
4264 *)
4265 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4266 ;;
4267 esac
4268 ;;
4269 *qnx* | *nto*)
4270 # QNX uses GNU C++, but need to define -shared option too, otherwise
4271 # it will coredump.
4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4273 ;;
4274 *)
4275 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4276 ;;
4277 esac
4278 else
4279 case $host_os in
4280 aix[[4-9]]*)
4281 # All AIX code is PIC.
4282 if test ia64 = "$host_cpu"; then
4283 # AIX 5 now supports IA64 processor
4284 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4285 else
4286 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4287 fi
4288 ;;
4289 chorus*)
4290 case $cc_basename in
4291 cxch68*)
4292 # Green Hills C++ Compiler
4293 # _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"
4294 ;;
4295 esac
4296 ;;
4297 mingw* | cygwin* | os2* | pw32* | cegcc*)
4298 # This hack is so that the source file can tell whether it is being
4299 # built for inclusion in a dll (and should export symbols for example).
4300 m4_if([$1], [GCJ], [],
4301 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4302 ;;
4303 dgux*)
4304 case $cc_basename in
4305 ec++*)
4306 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4307 ;;
4308 ghcx*)
4309 # Green Hills C++ Compiler
4310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4311 ;;
4312 *)
4313 ;;
4314 esac
4315 ;;
4316 freebsd* | dragonfly* | midnightbsd*)
4317 # FreeBSD uses GNU C++
4318 ;;
4319 hpux9* | hpux10* | hpux11*)
4320 case $cc_basename in
4321 CC*)
4322 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4323 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4324 if test ia64 != "$host_cpu"; then
4325 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4326 fi
4327 ;;
4328 aCC*)
4329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4330 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4331 case $host_cpu in
4332 hppa*64*|ia64*)
4333 # +Z the default
4334 ;;
4335 *)
4336 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4337 ;;
4338 esac
4339 ;;
4340 *)
4341 ;;
4342 esac
4343 ;;
4344 interix*)
4345 # This is c89, which is MS Visual C++ (no shared libs)
4346 # Anyone wants to do a port?
4347 ;;
4348 irix5* | irix6* | nonstopux*)
4349 case $cc_basename in
4350 CC*)
4351 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4352 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4353 # CC pic flag -KPIC is the default.
4354 ;;
4355 *)
4356 ;;
4357 esac
4358 ;;
4359 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4360 case $cc_basename in
4361 KCC*)
4362 # KAI C++ Compiler
4363 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4364 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4365 ;;
4366 ecpc* )
4367 # old Intel C++ for x86_64, which still supported -KPIC.
4368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4369 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4370 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4371 ;;
4372 icpc* )
4373 # Intel C++, used to be incompatible with GCC.
4374 # ICC 10 doesn't accept -KPIC any more.
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4378 ;;
4379 pgCC* | pgcpp*)
4380 # Portland Group C++ compiler
4381 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4382 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4383 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4384 ;;
4385 cxx*)
4386 # Compaq C++
4387 # Make sure the PIC flag is empty. It appears that all Alpha
4388 # Linux and Compaq Tru64 Unix objects are PIC.
4389 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4390 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4391 ;;
4392 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4393 # IBM XL 8.0, 9.0 on PPC and BlueGene
4394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4397 ;;
4398 *)
4399 case `$CC -V 2>&1 | $SED 5q` in
4400 *Sun\ C*)
4401 # Sun C++ 5.9
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4405 ;;
4406 esac
4407 ;;
4408 esac
4409 ;;
4410 lynxos*)
4411 ;;
4412 m88k*)
4413 ;;
4414 mvs*)
4415 case $cc_basename in
4416 cxx*)
4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4418 ;;
4419 *)
4420 ;;
4421 esac
4422 ;;
4423 netbsd*)
4424 ;;
4425 *qnx* | *nto*)
4426 # QNX uses GNU C++, but need to define -shared option too, otherwise
4427 # it will coredump.
4428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4429 ;;
4430 osf3* | osf4* | osf5*)
4431 case $cc_basename in
4432 KCC*)
4433 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4434 ;;
4435 RCC*)
4436 # Rational C++ 2.4.1
4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4438 ;;
4439 cxx*)
4440 # Digital/Compaq C++
4441 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4442 # Make sure the PIC flag is empty. It appears that all Alpha
4443 # Linux and Compaq Tru64 Unix objects are PIC.
4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4446 ;;
4447 *)
4448 ;;
4449 esac
4450 ;;
4451 psos*)
4452 ;;
4453 solaris*)
4454 case $cc_basename in
4455 CC* | sunCC*)
4456 # Sun C++ 4.2, 5.x and Centerline C++
4457 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4458 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4459 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4460 ;;
4461 gcx*)
4462 # Green Hills C++ Compiler
4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4464 ;;
4465 *)
4466 ;;
4467 esac
4468 ;;
4469 sunos4*)
4470 case $cc_basename in
4471 CC*)
4472 # Sun C++ 4.x
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4474 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4475 ;;
4476 lcc*)
4477 # Lucid
4478 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4479 ;;
4480 *)
4481 ;;
4482 esac
4483 ;;
4484 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4485 case $cc_basename in
4486 CC*)
4487 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4489 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4490 ;;
4491 esac
4492 ;;
4493 tandem*)
4494 case $cc_basename in
4495 NCC*)
4496 # NonStop-UX NCC 3.20
4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4498 ;;
4499 *)
4500 ;;
4501 esac
4502 ;;
4503 vxworks*)
4504 ;;
4505 *)
4506 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4507 ;;
4508 esac
4509 fi
4510 ],
4511 [
4512 if test yes = "$GCC"; then
4513 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4514 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4515
4516 case $host_os in
4517 aix*)
4518 # All AIX code is PIC.
4519 if test ia64 = "$host_cpu"; then
4520 # AIX 5 now supports IA64 processor
4521 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4522 fi
4523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4524 ;;
4525
4526 amigaos*)
4527 case $host_cpu in
4528 powerpc)
4529 # see comment about AmigaOS4 .so support
4530 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4531 ;;
4532 m68k)
4533 # FIXME: we need at least 68020 code to build shared libraries, but
4534 # adding the '-m68020' flag to GCC prevents building anything better,
4535 # like '-m68040'.
4536 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4537 ;;
4538 esac
4539 ;;
4540
4541 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4542 # PIC is the default for these OSes.
4543 ;;
4544
4545 mingw* | cygwin* | pw32* | os2* | cegcc*)
4546 # This hack is so that the source file can tell whether it is being
4547 # built for inclusion in a dll (and should export symbols for example).
4548 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4549 # (--disable-auto-import) libraries
4550 m4_if([$1], [GCJ], [],
4551 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4552 case $host_os in
4553 os2*)
4554 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4555 ;;
4556 esac
4557 ;;
4558
4559 darwin* | rhapsody*)
4560 # PIC is the default on this platform
4561 # Common symbols not allowed in MH_DYLIB files
4562 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4563 ;;
4564
4565 haiku*)
4566 # PIC is the default for Haiku.
4567 # The "-static" flag exists, but is broken.
4568 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4569 ;;
4570
4571 hpux*)
4572 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4573 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4574 # sets the default TLS model and affects inlining.
4575 case $host_cpu in
4576 hppa*64*)
4577 # +Z the default
4578 ;;
4579 *)
4580 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4581 ;;
4582 esac
4583 ;;
4584
4585 interix[[3-9]]*)
4586 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4587 # Instead, we relocate shared libraries at runtime.
4588 ;;
4589
4590 msdosdjgpp*)
4591 # Just because we use GCC doesn't mean we suddenly get shared libraries
4592 # on systems that don't support them.
4593 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4594 enable_shared=no
4595 ;;
4596
4597 *nto* | *qnx*)
4598 # QNX uses GNU C++, but need to define -shared option too, otherwise
4599 # it will coredump.
4600 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4601 ;;
4602
4603 sysv4*MP*)
4604 if test -d /usr/nec; then
4605 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4606 fi
4607 ;;
4608
4609 *)
4610 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4611 ;;
4612 esac
4613
4614 case $cc_basename in
4615 nvcc*) # Cuda Compiler Driver 2.2
4616 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4617 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4618 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4619 fi
4620 ;;
4621 esac
4622 else
4623 # PORTME Check for flag to pass linker flags through the system compiler.
4624 case $host_os in
4625 aix*)
4626 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4627 if test ia64 = "$host_cpu"; then
4628 # AIX 5 now supports IA64 processor
4629 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4630 else
4631 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4632 fi
4633 ;;
4634
4635 darwin* | rhapsody*)
4636 # PIC is the default on this platform
4637 # Common symbols not allowed in MH_DYLIB files
4638 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4639 case $cc_basename in
4640 nagfor*)
4641 # NAG Fortran compiler
4642 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4643 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4645 ;;
4646 esac
4647 ;;
4648
4649 mingw* | cygwin* | pw32* | os2* | cegcc*)
4650 # This hack is so that the source file can tell whether it is being
4651 # built for inclusion in a dll (and should export symbols for example).
4652 m4_if([$1], [GCJ], [],
4653 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4654 case $host_os in
4655 os2*)
4656 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4657 ;;
4658 esac
4659 ;;
4660
4661 hpux9* | hpux10* | hpux11*)
4662 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4664 # not for PA HP-UX.
4665 case $host_cpu in
4666 hppa*64*|ia64*)
4667 # +Z the default
4668 ;;
4669 *)
4670 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4671 ;;
4672 esac
4673 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4674 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4675 ;;
4676
4677 irix5* | irix6* | nonstopux*)
4678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4679 # PIC (with -KPIC) is the default.
4680 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4681 ;;
4682
4683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4684 case $cc_basename in
4685 # old Intel for x86_64, which still supported -KPIC.
4686 ecc*)
4687 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4688 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4689 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4690 ;;
4691 # icc used to be incompatible with GCC.
4692 # ICC 10 doesn't accept -KPIC any more.
4693 icc* | ifort*)
4694 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4696 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4697 ;;
4698 # Lahey Fortran 8.1.
4699 lf95*)
4700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4701 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4702 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4703 ;;
4704 nagfor*)
4705 # NAG Fortran compiler
4706 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4707 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4708 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4709 ;;
4710 tcc*)
4711 # Fabrice Bellard et al's Tiny C Compiler
4712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4713 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4714 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4715 ;;
4716 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4717 # Portland Group compilers (*not* the Pentium gcc compiler,
4718 # which looks to be a dead project)
4719 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4720 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4721 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4722 ;;
4723 ccc*)
4724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725 # All Alpha code is PIC.
4726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4727 ;;
4728 xl* | bgxl* | bgf* | mpixl*)
4729 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4730 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4731 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4733 ;;
4734 *)
4735 case `$CC -V 2>&1 | $SED 5q` in
4736 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4737 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4740 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4741 ;;
4742 *Sun\ F* | *Sun*Fortran*)
4743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4745 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4746 ;;
4747 *Sun\ C*)
4748 # Sun C 5.9
4749 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4751 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4752 ;;
4753 *Intel*\ [[CF]]*Compiler*)
4754 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4755 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4756 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4757 ;;
4758 *Portland\ Group*)
4759 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4760 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4761 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4762 ;;
4763 esac
4764 ;;
4765 esac
4766 ;;
4767
4768 newsos6)
4769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4771 ;;
4772
4773 *nto* | *qnx*)
4774 # QNX uses GNU C++, but need to define -shared option too, otherwise
4775 # it will coredump.
4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4777 ;;
4778
4779 osf3* | osf4* | osf5*)
4780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4781 # All OSF/1 code is PIC.
4782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4783 ;;
4784
4785 rdos*)
4786 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4787 ;;
4788
4789 solaris*)
4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4792 case $cc_basename in
4793 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4794 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4795 *)
4796 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4797 esac
4798 ;;
4799
4800 sunos4*)
4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4802 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4803 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4804 ;;
4805
4806 sysv4 | sysv4.2uw2* | sysv4.3*)
4807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4808 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4809 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4810 ;;
4811
4812 sysv4*MP*)
4813 if test -d /usr/nec; then
4814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4816 fi
4817 ;;
4818
4819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4820 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4823 ;;
4824
4825 unicos*)
4826 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4827 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4828 ;;
4829
4830 uts4*)
4831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4833 ;;
4834
4835 *)
4836 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4837 ;;
4838 esac
4839 fi
4840 ])
4841 case $host_os in
4842 # For platforms that do not support PIC, -DPIC is meaningless:
4843 *djgpp*)
4844 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4845 ;;
4846 *)
4847 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4848 ;;
4849 esac
4850
4851 AC_CACHE_CHECK([for $compiler option to produce PIC],
4852 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4853 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4855
4856 #
4857 # Check to make sure the PIC flag actually works.
4858 #
4859 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4860 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4861 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4862 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4863 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4864 "" | " "*) ;;
4865 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4866 esac],
4867 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4868 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4869 fi
4870 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4871 [Additional compiler flags for building library objects])
4872
4873 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4874 [How to pass a linker flag through the compiler])
4875 #
4876 # Check to make sure the static flag actually works.
4877 #
4878 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4879 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4880 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4881 $lt_tmp_static_flag,
4882 [],
4883 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4884 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4885 [Compiler flag to prevent dynamic linking])
4886 ])# _LT_COMPILER_PIC
4887
4888
4889 # _LT_LINKER_SHLIBS([TAGNAME])
4890 # ----------------------------
4891 # See if the linker supports building shared libraries.
4892 m4_defun([_LT_LINKER_SHLIBS],
4893 [AC_REQUIRE([LT_PATH_LD])dnl
4894 AC_REQUIRE([LT_PATH_NM])dnl
4895 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4896 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4897 m4_require([_LT_DECL_EGREP])dnl
4898 m4_require([_LT_DECL_SED])dnl
4899 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4900 m4_require([_LT_TAG_COMPILER])dnl
4901 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4902 m4_if([$1], [CXX], [
4903 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4904 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4905 case $host_os in
4906 aix[[4-9]]*)
4907 # If we're using GNU nm, then we don't want the "-C" option.
4908 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4909 # Without the "-l" option, or with the "-B" option, AIX nm treats
4910 # weak defined symbols like other global defined symbols, whereas
4911 # GNU nm marks them as "W".
4912 # While the 'weak' keyword is ignored in the Export File, we need
4913 # it in the Import File for the 'aix-soname' feature, so we have
4914 # to replace the "-B" option with "-P" for AIX nm.
4915 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4916 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
4917 else
4918 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4919 fi
4920 ;;
4921 pw32*)
4922 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4923 ;;
4924 cygwin* | mingw* | cegcc*)
4925 case $cc_basename in
4926 cl* | icl*)
4927 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4928 ;;
4929 *)
4930 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4931 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4932 ;;
4933 esac
4934 ;;
4935 *)
4936 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4937 ;;
4938 esac
4939 ], [
4940 runpath_var=
4941 _LT_TAGVAR(allow_undefined_flag, $1)=
4942 _LT_TAGVAR(always_export_symbols, $1)=no
4943 _LT_TAGVAR(archive_cmds, $1)=
4944 _LT_TAGVAR(archive_expsym_cmds, $1)=
4945 _LT_TAGVAR(compiler_needs_object, $1)=no
4946 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4947 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4948 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4949 _LT_TAGVAR(hardcode_automatic, $1)=no
4950 _LT_TAGVAR(hardcode_direct, $1)=no
4951 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4953 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4954 _LT_TAGVAR(hardcode_minus_L, $1)=no
4955 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4956 _LT_TAGVAR(inherit_rpath, $1)=no
4957 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4958 _LT_TAGVAR(module_cmds, $1)=
4959 _LT_TAGVAR(module_expsym_cmds, $1)=
4960 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4961 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4962 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4963 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4964 # include_expsyms should be a list of space-separated symbols to be *always*
4965 # included in the symbol list
4966 _LT_TAGVAR(include_expsyms, $1)=
4967 # exclude_expsyms can be an extended regexp of symbols to exclude
4968 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4969 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4970 # as well as any symbol that contains 'd'.
4971 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4973 # platforms (ab)use it in PIC code, but their linkers get confused if
4974 # the symbol is explicitly referenced. Since portable code cannot
4975 # rely on this symbol name, it's probably fine to never include it in
4976 # preloaded symbol tables.
4977 # Exclude shared library initialization/finalization symbols.
4978 dnl Note also adjust exclude_expsyms for C++ above.
4979 extract_expsyms_cmds=
4980
4981 case $host_os in
4982 cygwin* | mingw* | pw32* | cegcc*)
4983 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
4984 # When not using gcc, we currently assume that we are using
4985 # Microsoft Visual C++ or Intel C++ Compiler.
4986 if test yes != "$GCC"; then
4987 with_gnu_ld=no
4988 fi
4989 ;;
4990 interix*)
4991 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
4992 with_gnu_ld=yes
4993 ;;
4994 openbsd* | bitrig*)
4995 with_gnu_ld=no
4996 ;;
4997 esac
4998
4999 _LT_TAGVAR(ld_shlibs, $1)=yes
5000
5001 # On some targets, GNU ld is compatible enough with the native linker
5002 # that we're better off using the native interface for both.
5003 lt_use_gnu_ld_interface=no
5004 if test yes = "$with_gnu_ld"; then
5005 case $host_os in
5006 aix*)
5007 # The AIX port of GNU ld has always aspired to compatibility
5008 # with the native linker. However, as the warning in the GNU ld
5009 # block says, versions before 2.19.5* couldn't really create working
5010 # shared libraries, regardless of the interface used.
5011 case `$LD -v 2>&1` in
5012 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5013 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5014 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5015 *)
5016 lt_use_gnu_ld_interface=yes
5017 ;;
5018 esac
5019 ;;
5020 *)
5021 lt_use_gnu_ld_interface=yes
5022 ;;
5023 esac
5024 fi
5025
5026 if test yes = "$lt_use_gnu_ld_interface"; then
5027 # If archive_cmds runs LD, not CC, wlarc should be empty
5028 wlarc='$wl'
5029
5030 # Set some defaults for GNU ld with shared library support. These
5031 # are reset later if shared libraries are not supported. Putting them
5032 # here allows them to be overridden if necessary.
5033 runpath_var=LD_RUN_PATH
5034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5035 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5036 # ancient GNU ld didn't support --whole-archive et. al.
5037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5038 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5039 else
5040 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5041 fi
5042 supports_anon_versioning=no
5043 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5044 *GNU\ gold*) supports_anon_versioning=yes ;;
5045 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5046 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5047 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5048 *\ 2.11.*) ;; # other 2.11 versions
5049 *) supports_anon_versioning=yes ;;
5050 esac
5051
5052 # See if GNU ld supports shared libraries.
5053 case $host_os in
5054 aix[[3-9]]*)
5055 # On AIX/PPC, the GNU linker is very broken
5056 if test ia64 != "$host_cpu"; then
5057 _LT_TAGVAR(ld_shlibs, $1)=no
5058 cat <<_LT_EOF 1>&2
5059
5060 *** Warning: the GNU linker, at least up to release 2.19, is reported
5061 *** to be unable to reliably create shared libraries on AIX.
5062 *** Therefore, libtool is disabling shared libraries support. If you
5063 *** really care for shared libraries, you may want to install binutils
5064 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5065 *** You will then need to restart the configuration process.
5066
5067 _LT_EOF
5068 fi
5069 ;;
5070
5071 amigaos*)
5072 case $host_cpu in
5073 powerpc)
5074 # see comment about AmigaOS4 .so support
5075 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5076 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5077 ;;
5078 m68k)
5079 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5081 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5082 ;;
5083 esac
5084 ;;
5085
5086 beos*)
5087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5088 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5090 # support --undefined. This deserves some investigation. FIXME
5091 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5092 else
5093 _LT_TAGVAR(ld_shlibs, $1)=no
5094 fi
5095 ;;
5096
5097 cygwin* | mingw* | pw32* | cegcc*)
5098 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5099 # as there is no search path for DLLs.
5100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5101 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5102 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5103 _LT_TAGVAR(always_export_symbols, $1)=no
5104 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5105 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5106 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5107
5108 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5109 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5110 # If the export-symbols file already is a .def file, use it as
5111 # is; otherwise, prepend EXPORTS...
5112 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5113 cp $export_symbols $output_objdir/$soname.def;
5114 else
5115 echo EXPORTS > $output_objdir/$soname.def;
5116 cat $export_symbols >> $output_objdir/$soname.def;
5117 fi~
5118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5119 else
5120 _LT_TAGVAR(ld_shlibs, $1)=no
5121 fi
5122 ;;
5123
5124 haiku*)
5125 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5126 _LT_TAGVAR(link_all_deplibs, $1)=yes
5127 ;;
5128
5129 os2*)
5130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5131 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5132 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5133 shrext_cmds=.dll
5134 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5135 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5136 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5137 $ECHO EXPORTS >> $output_objdir/$libname.def~
5138 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5139 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5140 emximp -o $lib $output_objdir/$libname.def'
5141 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5142 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5143 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5144 $ECHO EXPORTS >> $output_objdir/$libname.def~
5145 prefix_cmds="$SED"~
5146 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5147 prefix_cmds="$prefix_cmds -e 1d";
5148 fi~
5149 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5150 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5152 emximp -o $lib $output_objdir/$libname.def'
5153 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5154 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5155 _LT_TAGVAR(file_list_spec, $1)='@'
5156 ;;
5157
5158 interix[[3-9]]*)
5159 _LT_TAGVAR(hardcode_direct, $1)=no
5160 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5162 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5164 # Instead, shared libraries are loaded at an image base (0x10000000 by
5165 # default) and relocated if they conflict, which is a slow very memory
5166 # consuming and fragmenting process. To avoid this, we pick a random,
5167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5169 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5170 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5171 ;;
5172
5173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5174 tmp_diet=no
5175 if test linux-dietlibc = "$host_os"; then
5176 case $cc_basename in
5177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5178 esac
5179 fi
5180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5181 && test no = "$tmp_diet"
5182 then
5183 tmp_addflag=' $pic_flag'
5184 tmp_sharedflag='-shared'
5185 case $cc_basename,$host_cpu in
5186 pgcc*) # Portland Group C compiler
5187 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5188 tmp_addflag=' $pic_flag'
5189 ;;
5190 pgf77* | pgf90* | pgf95* | pgfortran*)
5191 # Portland Group f77 and f90 compilers
5192 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5193 tmp_addflag=' $pic_flag -Mnomain' ;;
5194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5195 tmp_addflag=' -i_dynamic' ;;
5196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5197 tmp_addflag=' -i_dynamic -nofor_main' ;;
5198 ifc* | ifort*) # Intel Fortran compiler
5199 tmp_addflag=' -nofor_main' ;;
5200 lf95*) # Lahey Fortran 8.1
5201 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5202 tmp_sharedflag='--shared' ;;
5203 nagfor*) # NAGFOR 5.3
5204 tmp_sharedflag='-Wl,-shared' ;;
5205 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5206 tmp_sharedflag='-qmkshrobj'
5207 tmp_addflag= ;;
5208 nvcc*) # Cuda Compiler Driver 2.2
5209 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5210 _LT_TAGVAR(compiler_needs_object, $1)=yes
5211 ;;
5212 esac
5213 case `$CC -V 2>&1 | $SED 5q` in
5214 *Sun\ C*) # Sun C 5.9
5215 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5216 _LT_TAGVAR(compiler_needs_object, $1)=yes
5217 tmp_sharedflag='-G' ;;
5218 *Sun\ F*) # Sun Fortran 8.3
5219 tmp_sharedflag='-G' ;;
5220 esac
5221 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5222
5223 if test yes = "$supports_anon_versioning"; then
5224 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5225 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5226 echo "local: *; };" >> $output_objdir/$libname.ver~
5227 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5228 fi
5229
5230 case $cc_basename in
5231 tcc*)
5232 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5233 ;;
5234 xlf* | bgf* | bgxlf* | mpixlf*)
5235 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5236 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5237 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5238 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5239 if test yes = "$supports_anon_versioning"; then
5240 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5241 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5242 echo "local: *; };" >> $output_objdir/$libname.ver~
5243 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5244 fi
5245 ;;
5246 esac
5247 else
5248 _LT_TAGVAR(ld_shlibs, $1)=no
5249 fi
5250 ;;
5251
5252 netbsd*)
5253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5254 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5255 wlarc=
5256 else
5257 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5258 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5259 fi
5260 ;;
5261
5262 solaris*)
5263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5264 _LT_TAGVAR(ld_shlibs, $1)=no
5265 cat <<_LT_EOF 1>&2
5266
5267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5268 *** create shared libraries on Solaris systems. Therefore, libtool
5269 *** is disabling shared libraries support. We urge you to upgrade GNU
5270 *** binutils to release 2.9.1 or newer. Another option is to modify
5271 *** your PATH or compiler configuration so that the native linker is
5272 *** used, and then restart.
5273
5274 _LT_EOF
5275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5277 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5278 else
5279 _LT_TAGVAR(ld_shlibs, $1)=no
5280 fi
5281 ;;
5282
5283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5284 case `$LD -v 2>&1` in
5285 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5286 _LT_TAGVAR(ld_shlibs, $1)=no
5287 cat <<_LT_EOF 1>&2
5288
5289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5290 *** reliably create shared libraries on SCO systems. Therefore, libtool
5291 *** is disabling shared libraries support. We urge you to upgrade GNU
5292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5293 *** your PATH or compiler configuration so that the native linker is
5294 *** used, and then restart.
5295
5296 _LT_EOF
5297 ;;
5298 *)
5299 # For security reasons, it is highly recommended that you always
5300 # use absolute paths for naming shared libraries, and exclude the
5301 # DT_RUNPATH tag from executables and libraries. But doing so
5302 # requires that you compile everything twice, which is a pain.
5303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5304 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5305 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5306 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5307 else
5308 _LT_TAGVAR(ld_shlibs, $1)=no
5309 fi
5310 ;;
5311 esac
5312 ;;
5313
5314 sunos4*)
5315 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5316 wlarc=
5317 _LT_TAGVAR(hardcode_direct, $1)=yes
5318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5319 ;;
5320
5321 *)
5322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5323 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5324 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5325 else
5326 _LT_TAGVAR(ld_shlibs, $1)=no
5327 fi
5328 ;;
5329 esac
5330
5331 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5332 runpath_var=
5333 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5334 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5335 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5336 fi
5337 else
5338 # PORTME fill in a description of your system's linker (not GNU ld)
5339 case $host_os in
5340 aix3*)
5341 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5342 _LT_TAGVAR(always_export_symbols, $1)=yes
5343 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5344 # Note: this linker hardcodes the directories in LIBPATH if there
5345 # are no directories specified by -L.
5346 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5347 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5348 # Neither direct hardcoding nor static linking is supported with a
5349 # broken collect2.
5350 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5351 fi
5352 ;;
5353
5354 aix[[4-9]]*)
5355 if test ia64 = "$host_cpu"; then
5356 # On IA64, the linker does run time linking by default, so we don't
5357 # have to do anything special.
5358 aix_use_runtimelinking=no
5359 exp_sym_flag='-Bexport'
5360 no_entry_flag=
5361 else
5362 # If we're using GNU nm, then we don't want the "-C" option.
5363 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5364 # Without the "-l" option, or with the "-B" option, AIX nm treats
5365 # weak defined symbols like other global defined symbols, whereas
5366 # GNU nm marks them as "W".
5367 # While the 'weak' keyword is ignored in the Export File, we need
5368 # it in the Import File for the 'aix-soname' feature, so we have
5369 # to replace the "-B" option with "-P" for AIX nm.
5370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5371 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5372 else
5373 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5374 fi
5375 aix_use_runtimelinking=no
5376
5377 # Test if we are trying to use run time linking or normal
5378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5379 # have runtime linking enabled, and use it for executables.
5380 # For shared libraries, we enable/disable runtime linking
5381 # depending on the kind of the shared library created -
5382 # when "with_aix_soname,aix_use_runtimelinking" is:
5383 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5384 # "aix,yes" lib.so shared, rtl:yes, for executables
5385 # lib.a static archive
5386 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5387 # lib.a(lib.so.V) shared, rtl:no, for executables
5388 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5389 # lib.a(lib.so.V) shared, rtl:no
5390 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5391 # lib.a static archive
5392 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5393 for ld_flag in $LDFLAGS; do
5394 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5395 aix_use_runtimelinking=yes
5396 break
5397 fi
5398 done
5399 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5400 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5401 # so we don't have lib.a shared libs to link our executables.
5402 # We have to force runtime linking in this case.
5403 aix_use_runtimelinking=yes
5404 LDFLAGS="$LDFLAGS -Wl,-brtl"
5405 fi
5406 ;;
5407 esac
5408
5409 exp_sym_flag='-bexport'
5410 no_entry_flag='-bnoentry'
5411 fi
5412
5413 # When large executables or shared objects are built, AIX ld can
5414 # have problems creating the table of contents. If linking a library
5415 # or program results in "error TOC overflow" add -mminimal-toc to
5416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5418
5419 _LT_TAGVAR(archive_cmds, $1)=''
5420 _LT_TAGVAR(hardcode_direct, $1)=yes
5421 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5422 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5423 _LT_TAGVAR(link_all_deplibs, $1)=yes
5424 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5425 case $with_aix_soname,$aix_use_runtimelinking in
5426 aix,*) ;; # traditional, no import file
5427 svr4,* | *,yes) # use import file
5428 # The Import File defines what to hardcode.
5429 _LT_TAGVAR(hardcode_direct, $1)=no
5430 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5431 ;;
5432 esac
5433
5434 if test yes = "$GCC"; then
5435 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5436 # We only want to do this on AIX 4.2 and lower, the check
5437 # below for broken collect2 doesn't work under 4.3+
5438 collect2name=`$CC -print-prog-name=collect2`
5439 if test -f "$collect2name" &&
5440 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5441 then
5442 # We have reworked collect2
5443 :
5444 else
5445 # We have old collect2
5446 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5447 # It fails to find uninstalled libraries when the uninstalled
5448 # path is not listed in the libpath. Setting hardcode_minus_L
5449 # to unsupported forces relinking
5450 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5452 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5453 fi
5454 ;;
5455 esac
5456 shared_flag='-shared'
5457 if test yes = "$aix_use_runtimelinking"; then
5458 shared_flag="$shared_flag "'$wl-G'
5459 fi
5460 # Need to ensure runtime linking is disabled for the traditional
5461 # shared library, or the linker may eventually find shared libraries
5462 # /with/ Import File - we do not want to mix them.
5463 shared_flag_aix='-shared'
5464 shared_flag_svr4='-shared $wl-G'
5465 else
5466 # not using gcc
5467 if test ia64 = "$host_cpu"; then
5468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5469 # chokes on -Wl,-G. The following line is correct:
5470 shared_flag='-G'
5471 else
5472 if test yes = "$aix_use_runtimelinking"; then
5473 shared_flag='$wl-G'
5474 else
5475 shared_flag='$wl-bM:SRE'
5476 fi
5477 shared_flag_aix='$wl-bM:SRE'
5478 shared_flag_svr4='$wl-G'
5479 fi
5480 fi
5481
5482 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5483 # It seems that -bexpall does not export symbols beginning with
5484 # underscore (_), so it is better to generate a list of symbols to export.
5485 _LT_TAGVAR(always_export_symbols, $1)=yes
5486 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5487 # Warning - without using the other runtime loading flags (-brtl),
5488 # -berok will link without error, but may produce a broken library.
5489 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5490 # Determine the default libpath from the value encoded in an
5491 # empty executable.
5492 _LT_SYS_MODULE_PATH_AIX([$1])
5493 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5494 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5495 else
5496 if test ia64 = "$host_cpu"; then
5497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5498 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5499 _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"
5500 else
5501 # Determine the default libpath from the value encoded in an
5502 # empty executable.
5503 _LT_SYS_MODULE_PATH_AIX([$1])
5504 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5505 # Warning - without using the other run time loading flags,
5506 # -berok will link without error, but may produce a broken library.
5507 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5508 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5509 if test yes = "$with_gnu_ld"; then
5510 # We only use this code for GNU lds that support --whole-archive.
5511 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5512 else
5513 # Exported symbols can be pulled into shared objects from archives
5514 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5515 fi
5516 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5517 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5518 # -brtl affects multiple linker settings, -berok does not and is overridden later
5519 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5520 if test svr4 != "$with_aix_soname"; then
5521 # This is similar to how AIX traditionally builds its shared libraries.
5522 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5523 fi
5524 if test aix != "$with_aix_soname"; then
5525 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5526 else
5527 # used by -dlpreopen to get the symbols
5528 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5529 fi
5530 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5531 fi
5532 fi
5533 ;;
5534
5535 amigaos*)
5536 case $host_cpu in
5537 powerpc)
5538 # see comment about AmigaOS4 .so support
5539 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5540 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5541 ;;
5542 m68k)
5543 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5545 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5546 ;;
5547 esac
5548 ;;
5549
5550 bsdi[[45]]*)
5551 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5552 ;;
5553
5554 cygwin* | mingw* | pw32* | cegcc*)
5555 # When not using gcc, we currently assume that we are using
5556 # Microsoft Visual C++ or Intel C++ Compiler.
5557 # hardcode_libdir_flag_spec is actually meaningless, as there is
5558 # no search path for DLLs.
5559 case $cc_basename in
5560 cl* | icl*)
5561 # Native MSVC or ICC
5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5563 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5564 _LT_TAGVAR(always_export_symbols, $1)=yes
5565 _LT_TAGVAR(file_list_spec, $1)='@'
5566 # Tell ltmain to make .lib files, not .a files.
5567 libext=lib
5568 # Tell ltmain to make .dll files, not .so files.
5569 shrext_cmds=.dll
5570 # FIXME: Setting linknames here is a bad hack.
5571 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5572 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5573 cp "$export_symbols" "$output_objdir/$soname.def";
5574 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5575 else
5576 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5577 fi~
5578 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5579 linknames='
5580 # The linker will not automatically build a static lib if we build a DLL.
5581 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5582 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5583 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5584 _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'
5585 # Don't use ranlib
5586 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5587 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5588 lt_tool_outputfile="@TOOL_OUTPUT@"~
5589 case $lt_outputfile in
5590 *.exe|*.EXE) ;;
5591 *)
5592 lt_outputfile=$lt_outputfile.exe
5593 lt_tool_outputfile=$lt_tool_outputfile.exe
5594 ;;
5595 esac~
5596 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5597 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5598 $RM "$lt_outputfile.manifest";
5599 fi'
5600 ;;
5601 *)
5602 # Assume MSVC and ICC wrapper
5603 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5604 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5605 # Tell ltmain to make .lib files, not .a files.
5606 libext=lib
5607 # Tell ltmain to make .dll files, not .so files.
5608 shrext_cmds=.dll
5609 # FIXME: Setting linknames here is a bad hack.
5610 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5611 # The linker will automatically build a .lib file if we build a DLL.
5612 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5613 # FIXME: Should let the user specify the lib program.
5614 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5615 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5616 ;;
5617 esac
5618 ;;
5619
5620 darwin* | rhapsody*)
5621 _LT_DARWIN_LINKER_FEATURES($1)
5622 ;;
5623
5624 dgux*)
5625 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5627 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5628 ;;
5629
5630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5631 # support. Future versions do this automatically, but an explicit c++rt0.o
5632 # does not break anything, and helps significantly (at the cost of a little
5633 # extra space).
5634 freebsd2.2*)
5635 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5636 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5637 _LT_TAGVAR(hardcode_direct, $1)=yes
5638 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5639 ;;
5640
5641 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5642 freebsd2.*)
5643 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5644 _LT_TAGVAR(hardcode_direct, $1)=yes
5645 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5646 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5647 ;;
5648
5649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5650 freebsd* | dragonfly* | midnightbsd*)
5651 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5652 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5653 _LT_TAGVAR(hardcode_direct, $1)=yes
5654 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5655 ;;
5656
5657 hpux9*)
5658 if test yes = "$GCC"; then
5659 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5660 else
5661 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5662 fi
5663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5664 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5665 _LT_TAGVAR(hardcode_direct, $1)=yes
5666
5667 # hardcode_minus_L: Not really in the search PATH,
5668 # but as the default location of the library.
5669 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5670 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5671 ;;
5672
5673 hpux10*)
5674 if test yes,no = "$GCC,$with_gnu_ld"; then
5675 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5676 else
5677 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5678 fi
5679 if test no = "$with_gnu_ld"; then
5680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5681 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5682 _LT_TAGVAR(hardcode_direct, $1)=yes
5683 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5684 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5685 # hardcode_minus_L: Not really in the search PATH,
5686 # but as the default location of the library.
5687 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5688 fi
5689 ;;
5690
5691 hpux11*)
5692 if test yes,no = "$GCC,$with_gnu_ld"; then
5693 case $host_cpu in
5694 hppa*64*)
5695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5696 ;;
5697 ia64*)
5698 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5699 ;;
5700 *)
5701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5702 ;;
5703 esac
5704 else
5705 case $host_cpu in
5706 hppa*64*)
5707 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5708 ;;
5709 ia64*)
5710 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5711 ;;
5712 *)
5713 m4_if($1, [], [
5714 # Older versions of the 11.00 compiler do not understand -b yet
5715 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5716 _LT_LINKER_OPTION([if $CC understands -b],
5717 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5718 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5719 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5720 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5721 ;;
5722 esac
5723 fi
5724 if test no = "$with_gnu_ld"; then
5725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5726 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5727
5728 case $host_cpu in
5729 hppa*64*|ia64*)
5730 _LT_TAGVAR(hardcode_direct, $1)=no
5731 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5732 ;;
5733 *)
5734 _LT_TAGVAR(hardcode_direct, $1)=yes
5735 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5736 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5737
5738 # hardcode_minus_L: Not really in the search PATH,
5739 # but as the default location of the library.
5740 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5741 ;;
5742 esac
5743 fi
5744 ;;
5745
5746 irix5* | irix6* | nonstopux*)
5747 if test yes = "$GCC"; then
5748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5749 # Try to use the -exported_symbol ld option, if it does not
5750 # work, assume that -exports_file does not work either and
5751 # implicitly export all symbols.
5752 # This should be the same for all languages, so no per-tag cache variable.
5753 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5754 [lt_cv_irix_exported_symbol],
5755 [save_LDFLAGS=$LDFLAGS
5756 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5757 AC_LINK_IFELSE(
5758 [AC_LANG_SOURCE(
5759 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5760 [C++], [[int foo (void) { return 0; }]],
5761 [Fortran 77], [[
5762 subroutine foo
5763 end]],
5764 [Fortran], [[
5765 subroutine foo
5766 end]])])],
5767 [lt_cv_irix_exported_symbol=yes],
5768 [lt_cv_irix_exported_symbol=no])
5769 LDFLAGS=$save_LDFLAGS])
5770 if test yes = "$lt_cv_irix_exported_symbol"; then
5771 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5772 fi
5773 else
5774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5775 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5776 fi
5777 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5779 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5780 _LT_TAGVAR(inherit_rpath, $1)=yes
5781 _LT_TAGVAR(link_all_deplibs, $1)=yes
5782 ;;
5783
5784 linux*)
5785 case $cc_basename in
5786 tcc*)
5787 # Fabrice Bellard et al's Tiny C Compiler
5788 _LT_TAGVAR(ld_shlibs, $1)=yes
5789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5790 ;;
5791 esac
5792 ;;
5793
5794 netbsd*)
5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5796 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5797 else
5798 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5799 fi
5800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5801 _LT_TAGVAR(hardcode_direct, $1)=yes
5802 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5803 ;;
5804
5805 newsos6)
5806 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5807 _LT_TAGVAR(hardcode_direct, $1)=yes
5808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5809 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5810 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5811 ;;
5812
5813 *nto* | *qnx*)
5814 ;;
5815
5816 openbsd* | bitrig*)
5817 if test -f /usr/libexec/ld.so; then
5818 _LT_TAGVAR(hardcode_direct, $1)=yes
5819 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5820 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5822 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5825 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5826 else
5827 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5828 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5829 fi
5830 else
5831 _LT_TAGVAR(ld_shlibs, $1)=no
5832 fi
5833 ;;
5834
5835 os2*)
5836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5837 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5838 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5839 shrext_cmds=.dll
5840 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5841 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5842 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5843 $ECHO EXPORTS >> $output_objdir/$libname.def~
5844 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5845 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5846 emximp -o $lib $output_objdir/$libname.def'
5847 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5848 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5849 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5850 $ECHO EXPORTS >> $output_objdir/$libname.def~
5851 prefix_cmds="$SED"~
5852 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5853 prefix_cmds="$prefix_cmds -e 1d";
5854 fi~
5855 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5856 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5858 emximp -o $lib $output_objdir/$libname.def'
5859 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5860 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5861 _LT_TAGVAR(file_list_spec, $1)='@'
5862 ;;
5863
5864 osf3*)
5865 if test yes = "$GCC"; then
5866 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5867 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5868 else
5869 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5870 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5871 fi
5872 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5874 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5875 ;;
5876
5877 osf4* | osf5*) # as osf3* with the addition of -msym flag
5878 if test yes = "$GCC"; then
5879 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5880 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5881 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5882 else
5883 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5884 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5885 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5886 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
5887
5888 # Both c and cxx compiler support -rpath directly
5889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5890 fi
5891 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5892 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5893 ;;
5894
5895 solaris*)
5896 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5897 if test yes = "$GCC"; then
5898 wlarc='$wl'
5899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5900 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5901 $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'
5902 else
5903 case `$CC -V 2>&1` in
5904 *"Compilers 5.0"*)
5905 wlarc=''
5906 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5907 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5908 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5909 ;;
5910 *)
5911 wlarc='$wl'
5912 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5913 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5914 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5915 ;;
5916 esac
5917 fi
5918 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5919 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5920 case $host_os in
5921 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5922 *)
5923 # The compiler driver will combine and reorder linker options,
5924 # but understands '-z linker_flag'. GCC discards it without '$wl',
5925 # but is careful enough not to reorder.
5926 # Supported since Solaris 2.6 (maybe 2.5.1?)
5927 if test yes = "$GCC"; then
5928 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5929 else
5930 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5931 fi
5932 ;;
5933 esac
5934 _LT_TAGVAR(link_all_deplibs, $1)=yes
5935 ;;
5936
5937 sunos4*)
5938 if test sequent = "$host_vendor"; then
5939 # Use $CC to link under sequent, because it throws in some extra .o
5940 # files that make .init and .fini sections work.
5941 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5942 else
5943 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5944 fi
5945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5946 _LT_TAGVAR(hardcode_direct, $1)=yes
5947 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5948 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5949 ;;
5950
5951 sysv4)
5952 case $host_vendor in
5953 sni)
5954 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5956 ;;
5957 siemens)
5958 ## LD is ld it makes a PLAMLIB
5959 ## CC just makes a GrossModule.
5960 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5961 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5962 _LT_TAGVAR(hardcode_direct, $1)=no
5963 ;;
5964 motorola)
5965 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5966 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5967 ;;
5968 esac
5969 runpath_var='LD_RUN_PATH'
5970 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5971 ;;
5972
5973 sysv4.3*)
5974 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5975 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5976 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5977 ;;
5978
5979 sysv4*MP*)
5980 if test -d /usr/nec; then
5981 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5982 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5983 runpath_var=LD_RUN_PATH
5984 hardcode_runpath_var=yes
5985 _LT_TAGVAR(ld_shlibs, $1)=yes
5986 fi
5987 ;;
5988
5989 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5990 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
5991 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5992 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5993 runpath_var='LD_RUN_PATH'
5994
5995 if test yes = "$GCC"; then
5996 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5997 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5998 else
5999 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6000 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6001 fi
6002 ;;
6003
6004 sysv5* | sco3.2v5* | sco5v6*)
6005 # Note: We CANNOT use -z defs as we might desire, because we do not
6006 # link with -lc, and that would cause any symbols used from libc to
6007 # always be unresolved, which means just about no library would
6008 # ever link correctly. If we're not using GNU ld we use -z text
6009 # though, which does catch some bad symbols but isn't as heavy-handed
6010 # as -z defs.
6011 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6012 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6013 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6016 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6017 _LT_TAGVAR(link_all_deplibs, $1)=yes
6018 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6019 runpath_var='LD_RUN_PATH'
6020
6021 if test yes = "$GCC"; then
6022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6023 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 else
6025 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6026 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6027 fi
6028 ;;
6029
6030 uts4*)
6031 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6033 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6034 ;;
6035
6036 *)
6037 _LT_TAGVAR(ld_shlibs, $1)=no
6038 ;;
6039 esac
6040
6041 if test sni = "$host_vendor"; then
6042 case $host in
6043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6044 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6045 ;;
6046 esac
6047 fi
6048 fi
6049 ])
6050 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6051 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6052
6053 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6054
6055 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6056 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6057 _LT_DECL([], [extract_expsyms_cmds], [2],
6058 [The commands to extract the exported symbol list from a shared archive])
6059
6060 #
6061 # Do we need to explicitly link libc?
6062 #
6063 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6064 x|xyes)
6065 # Assume -lc should be added
6066 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6067
6068 if test yes,yes = "$GCC,$enable_shared"; then
6069 case $_LT_TAGVAR(archive_cmds, $1) in
6070 *'~'*)
6071 # FIXME: we may have to deal with multi-command sequences.
6072 ;;
6073 '$CC '*)
6074 # Test whether the compiler implicitly links with -lc since on some
6075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6076 # to ld, don't add -lc before -lgcc.
6077 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6078 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6079 [$RM conftest*
6080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6081
6082 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6083 soname=conftest
6084 lib=conftest
6085 libobjs=conftest.$ac_objext
6086 deplibs=
6087 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6088 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6089 compiler_flags=-v
6090 linker_flags=-v
6091 verstring=
6092 output_objdir=.
6093 libname=conftest
6094 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6095 _LT_TAGVAR(allow_undefined_flag, $1)=
6096 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6097 then
6098 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6099 else
6100 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6101 fi
6102 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6103 else
6104 cat conftest.err 1>&5
6105 fi
6106 $RM conftest*
6107 ])
6108 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6109 ;;
6110 esac
6111 fi
6112 ;;
6113 esac
6114
6115 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6116 [Whether or not to add -lc for building shared libraries])
6117 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6118 [enable_shared_with_static_runtimes], [0],
6119 [Whether or not to disallow shared libs when runtime libs are static])
6120 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6121 [Compiler flag to allow reflexive dlopens])
6122 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6123 [Compiler flag to generate shared objects directly from archives])
6124 _LT_TAGDECL([], [compiler_needs_object], [1],
6125 [Whether the compiler copes with passing no objects directly])
6126 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6127 [Create an old-style archive from a shared archive])
6128 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6129 [Create a temporary old-style archive to link instead of a shared archive])
6130 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6131 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6132 _LT_TAGDECL([], [module_cmds], [2],
6133 [Commands used to build a loadable module if different from building
6134 a shared archive.])
6135 _LT_TAGDECL([], [module_expsym_cmds], [2])
6136 _LT_TAGDECL([], [with_gnu_ld], [1],
6137 [Whether we are building with GNU ld or not])
6138 _LT_TAGDECL([], [allow_undefined_flag], [1],
6139 [Flag that allows shared libraries with undefined symbols to be built])
6140 _LT_TAGDECL([], [no_undefined_flag], [1],
6141 [Flag that enforces no undefined symbols])
6142 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6143 [Flag to hardcode $libdir into a binary during linking.
6144 This must work even if $libdir does not exist])
6145 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6146 [Whether we need a single "-rpath" flag with a separated argument])
6147 _LT_TAGDECL([], [hardcode_direct], [0],
6148 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6149 DIR into the resulting binary])
6150 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6151 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6152 DIR into the resulting binary and the resulting library dependency is
6153 "absolute", i.e impossible to change by setting $shlibpath_var if the
6154 library is relocated])
6155 _LT_TAGDECL([], [hardcode_minus_L], [0],
6156 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6157 into the resulting binary])
6158 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6159 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6160 into the resulting binary])
6161 _LT_TAGDECL([], [hardcode_automatic], [0],
6162 [Set to "yes" if building a shared library automatically hardcodes DIR
6163 into the library and all subsequent libraries and executables linked
6164 against it])
6165 _LT_TAGDECL([], [inherit_rpath], [0],
6166 [Set to yes if linker adds runtime paths of dependent libraries
6167 to runtime path list])
6168 _LT_TAGDECL([], [link_all_deplibs], [0],
6169 [Whether libtool must link a program against all its dependency libraries])
6170 _LT_TAGDECL([], [always_export_symbols], [0],
6171 [Set to "yes" if exported symbols are required])
6172 _LT_TAGDECL([], [export_symbols_cmds], [2],
6173 [The commands to list exported symbols])
6174 _LT_TAGDECL([], [exclude_expsyms], [1],
6175 [Symbols that should not be listed in the preloaded symbols])
6176 _LT_TAGDECL([], [include_expsyms], [1],
6177 [Symbols that must always be exported])
6178 _LT_TAGDECL([], [prelink_cmds], [2],
6179 [Commands necessary for linking programs (against libraries) with templates])
6180 _LT_TAGDECL([], [postlink_cmds], [2],
6181 [Commands necessary for finishing linking programs])
6182 _LT_TAGDECL([], [file_list_spec], [1],
6183 [Specify filename containing input files])
6184 dnl FIXME: Not yet implemented
6185 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6186 dnl [Compiler flag to generate thread safe objects])
6187 ])# _LT_LINKER_SHLIBS
6188
6189
6190 # _LT_LANG_C_CONFIG([TAG])
6191 # ------------------------
6192 # Ensure that the configuration variables for a C compiler are suitably
6193 # defined. These variables are subsequently used by _LT_CONFIG to write
6194 # the compiler configuration to 'libtool'.
6195 m4_defun([_LT_LANG_C_CONFIG],
6196 [m4_require([_LT_DECL_EGREP])dnl
6197 lt_save_CC=$CC
6198 AC_LANG_PUSH(C)
6199
6200 # Source file extension for C test sources.
6201 ac_ext=c
6202
6203 # Object file extension for compiled C test sources.
6204 objext=o
6205 _LT_TAGVAR(objext, $1)=$objext
6206
6207 # Code to be used in simple compile tests
6208 lt_simple_compile_test_code="int some_variable = 0;"
6209
6210 # Code to be used in simple link tests
6211 lt_simple_link_test_code='int main(){return(0);}'
6212
6213 _LT_TAG_COMPILER
6214 # Save the default compiler, since it gets overwritten when the other
6215 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6216 compiler_DEFAULT=$CC
6217
6218 # save warnings/boilerplate of simple test code
6219 _LT_COMPILER_BOILERPLATE
6220 _LT_LINKER_BOILERPLATE
6221
6222 if test -n "$compiler"; then
6223 _LT_COMPILER_NO_RTTI($1)
6224 _LT_COMPILER_PIC($1)
6225 _LT_COMPILER_C_O($1)
6226 _LT_COMPILER_FILE_LOCKS($1)
6227 _LT_LINKER_SHLIBS($1)
6228 _LT_SYS_DYNAMIC_LINKER($1)
6229 _LT_LINKER_HARDCODE_LIBPATH($1)
6230 LT_SYS_DLOPEN_SELF
6231 _LT_CMD_STRIPLIB
6232
6233 # Report what library types will actually be built
6234 AC_MSG_CHECKING([if libtool supports shared libraries])
6235 AC_MSG_RESULT([$can_build_shared])
6236
6237 AC_MSG_CHECKING([whether to build shared libraries])
6238 test no = "$can_build_shared" && enable_shared=no
6239
6240 # On AIX, shared libraries and static libraries use the same namespace, and
6241 # are all built from PIC.
6242 case $host_os in
6243 aix3*)
6244 test yes = "$enable_shared" && enable_static=no
6245 if test -n "$RANLIB"; then
6246 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6247 postinstall_cmds='$RANLIB $lib'
6248 fi
6249 ;;
6250
6251 aix[[4-9]]*)
6252 if test ia64 != "$host_cpu"; then
6253 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6254 yes,aix,yes) ;; # shared object as lib.so file only
6255 yes,svr4,*) ;; # shared object as lib.so archive member only
6256 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6257 esac
6258 fi
6259 ;;
6260 esac
6261 AC_MSG_RESULT([$enable_shared])
6262
6263 AC_MSG_CHECKING([whether to build static libraries])
6264 # Make sure either enable_shared or enable_static is yes.
6265 test yes = "$enable_shared" || enable_static=yes
6266 AC_MSG_RESULT([$enable_static])
6267
6268 _LT_CONFIG($1)
6269 fi
6270 AC_LANG_POP
6271 CC=$lt_save_CC
6272 ])# _LT_LANG_C_CONFIG
6273
6274
6275 # _LT_LANG_CXX_CONFIG([TAG])
6276 # --------------------------
6277 # Ensure that the configuration variables for a C++ compiler are suitably
6278 # defined. These variables are subsequently used by _LT_CONFIG to write
6279 # the compiler configuration to 'libtool'.
6280 m4_defun([_LT_LANG_CXX_CONFIG],
6281 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6282 m4_require([_LT_DECL_EGREP])dnl
6283 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6284 if test -n "$CXX" && ( test no != "$CXX" &&
6285 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6286 (test g++ != "$CXX"))); then
6287 AC_PROG_CXXCPP
6288 else
6289 _lt_caught_CXX_error=yes
6290 fi
6291
6292 AC_LANG_PUSH(C++)
6293 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6294 _LT_TAGVAR(allow_undefined_flag, $1)=
6295 _LT_TAGVAR(always_export_symbols, $1)=no
6296 _LT_TAGVAR(archive_expsym_cmds, $1)=
6297 _LT_TAGVAR(compiler_needs_object, $1)=no
6298 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6299 _LT_TAGVAR(hardcode_direct, $1)=no
6300 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6302 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6303 _LT_TAGVAR(hardcode_minus_L, $1)=no
6304 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6305 _LT_TAGVAR(hardcode_automatic, $1)=no
6306 _LT_TAGVAR(inherit_rpath, $1)=no
6307 _LT_TAGVAR(module_cmds, $1)=
6308 _LT_TAGVAR(module_expsym_cmds, $1)=
6309 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6310 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6311 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6312 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6313 _LT_TAGVAR(no_undefined_flag, $1)=
6314 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6315 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6316
6317 # Source file extension for C++ test sources.
6318 ac_ext=cpp
6319
6320 # Object file extension for compiled C++ test sources.
6321 objext=o
6322 _LT_TAGVAR(objext, $1)=$objext
6323
6324 # No sense in running all these tests if we already determined that
6325 # the CXX compiler isn't working. Some variables (like enable_shared)
6326 # are currently assumed to apply to all compilers on this platform,
6327 # and will be corrupted by setting them based on a non-working compiler.
6328 if test yes != "$_lt_caught_CXX_error"; then
6329 # Code to be used in simple compile tests
6330 lt_simple_compile_test_code="int some_variable = 0;"
6331
6332 # Code to be used in simple link tests
6333 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6334
6335 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6336 _LT_TAG_COMPILER
6337
6338 # save warnings/boilerplate of simple test code
6339 _LT_COMPILER_BOILERPLATE
6340 _LT_LINKER_BOILERPLATE
6341
6342 # Allow CC to be a program name with arguments.
6343 lt_save_CC=$CC
6344 lt_save_CFLAGS=$CFLAGS
6345 lt_save_LD=$LD
6346 lt_save_GCC=$GCC
6347 GCC=$GXX
6348 lt_save_with_gnu_ld=$with_gnu_ld
6349 lt_save_path_LD=$lt_cv_path_LD
6350 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6351 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6352 else
6353 $as_unset lt_cv_prog_gnu_ld
6354 fi
6355 if test -n "${lt_cv_path_LDCXX+set}"; then
6356 lt_cv_path_LD=$lt_cv_path_LDCXX
6357 else
6358 $as_unset lt_cv_path_LD
6359 fi
6360 test -z "${LDCXX+set}" || LD=$LDCXX
6361 CC=${CXX-"c++"}
6362 CFLAGS=$CXXFLAGS
6363 compiler=$CC
6364 _LT_TAGVAR(compiler, $1)=$CC
6365 _LT_CC_BASENAME([$compiler])
6366
6367 if test -n "$compiler"; then
6368 # We don't want -fno-exception when compiling C++ code, so set the
6369 # no_builtin_flag separately
6370 if test yes = "$GXX"; then
6371 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6372 else
6373 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6374 fi
6375
6376 if test yes = "$GXX"; then
6377 # Set up default GNU C++ configuration
6378
6379 LT_PATH_LD
6380
6381 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6382 # archiving commands below assume that GNU ld is being used.
6383 if test yes = "$with_gnu_ld"; then
6384 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6385 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6386
6387 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6388 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6389
6390 # If archive_cmds runs LD, not CC, wlarc should be empty
6391 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6392 # investigate it a little bit more. (MM)
6393 wlarc='$wl'
6394
6395 # ancient GNU ld didn't support --whole-archive et. al.
6396 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6397 $GREP 'no-whole-archive' > /dev/null; then
6398 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6399 else
6400 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6401 fi
6402 else
6403 with_gnu_ld=no
6404 wlarc=
6405
6406 # A generic and very simple default shared library creation
6407 # command for GNU C++ for the case where it uses the native
6408 # linker, instead of GNU ld. If possible, this setting should
6409 # overridden to take advantage of the native linker features on
6410 # the platform it is being used on.
6411 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6412 fi
6413
6414 # Commands to make compiler produce verbose output that lists
6415 # what "hidden" libraries, object files and flags are used when
6416 # linking a shared library.
6417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6418
6419 else
6420 GXX=no
6421 with_gnu_ld=no
6422 wlarc=
6423 fi
6424
6425 # PORTME: fill in a description of your system's C++ link characteristics
6426 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6427 _LT_TAGVAR(ld_shlibs, $1)=yes
6428 case $host_os in
6429 aix3*)
6430 # FIXME: insert proper C++ library support
6431 _LT_TAGVAR(ld_shlibs, $1)=no
6432 ;;
6433 aix[[4-9]]*)
6434 if test ia64 = "$host_cpu"; then
6435 # On IA64, the linker does run time linking by default, so we don't
6436 # have to do anything special.
6437 aix_use_runtimelinking=no
6438 exp_sym_flag='-Bexport'
6439 no_entry_flag=
6440 else
6441 aix_use_runtimelinking=no
6442
6443 # Test if we are trying to use run time linking or normal
6444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6445 # have runtime linking enabled, and use it for executables.
6446 # For shared libraries, we enable/disable runtime linking
6447 # depending on the kind of the shared library created -
6448 # when "with_aix_soname,aix_use_runtimelinking" is:
6449 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6450 # "aix,yes" lib.so shared, rtl:yes, for executables
6451 # lib.a static archive
6452 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6453 # lib.a(lib.so.V) shared, rtl:no, for executables
6454 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6455 # lib.a(lib.so.V) shared, rtl:no
6456 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6457 # lib.a static archive
6458 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6459 for ld_flag in $LDFLAGS; do
6460 case $ld_flag in
6461 *-brtl*)
6462 aix_use_runtimelinking=yes
6463 break
6464 ;;
6465 esac
6466 done
6467 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6468 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6469 # so we don't have lib.a shared libs to link our executables.
6470 # We have to force runtime linking in this case.
6471 aix_use_runtimelinking=yes
6472 LDFLAGS="$LDFLAGS -Wl,-brtl"
6473 fi
6474 ;;
6475 esac
6476
6477 exp_sym_flag='-bexport'
6478 no_entry_flag='-bnoentry'
6479 fi
6480
6481 # When large executables or shared objects are built, AIX ld can
6482 # have problems creating the table of contents. If linking a library
6483 # or program results in "error TOC overflow" add -mminimal-toc to
6484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6486
6487 _LT_TAGVAR(archive_cmds, $1)=''
6488 _LT_TAGVAR(hardcode_direct, $1)=yes
6489 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6490 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6491 _LT_TAGVAR(link_all_deplibs, $1)=yes
6492 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6493 case $with_aix_soname,$aix_use_runtimelinking in
6494 aix,*) ;; # no import file
6495 svr4,* | *,yes) # use import file
6496 # The Import File defines what to hardcode.
6497 _LT_TAGVAR(hardcode_direct, $1)=no
6498 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6499 ;;
6500 esac
6501
6502 if test yes = "$GXX"; then
6503 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6504 # We only want to do this on AIX 4.2 and lower, the check
6505 # below for broken collect2 doesn't work under 4.3+
6506 collect2name=`$CC -print-prog-name=collect2`
6507 if test -f "$collect2name" &&
6508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6509 then
6510 # We have reworked collect2
6511 :
6512 else
6513 # We have old collect2
6514 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6515 # It fails to find uninstalled libraries when the uninstalled
6516 # path is not listed in the libpath. Setting hardcode_minus_L
6517 # to unsupported forces relinking
6518 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6520 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6521 fi
6522 esac
6523 shared_flag='-shared'
6524 if test yes = "$aix_use_runtimelinking"; then
6525 shared_flag=$shared_flag' $wl-G'
6526 fi
6527 # Need to ensure runtime linking is disabled for the traditional
6528 # shared library, or the linker may eventually find shared libraries
6529 # /with/ Import File - we do not want to mix them.
6530 shared_flag_aix='-shared'
6531 shared_flag_svr4='-shared $wl-G'
6532 else
6533 # not using gcc
6534 if test ia64 = "$host_cpu"; then
6535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6536 # chokes on -Wl,-G. The following line is correct:
6537 shared_flag='-G'
6538 else
6539 if test yes = "$aix_use_runtimelinking"; then
6540 shared_flag='$wl-G'
6541 else
6542 shared_flag='$wl-bM:SRE'
6543 fi
6544 shared_flag_aix='$wl-bM:SRE'
6545 shared_flag_svr4='$wl-G'
6546 fi
6547 fi
6548
6549 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6550 # It seems that -bexpall does not export symbols beginning with
6551 # underscore (_), so it is better to generate a list of symbols to
6552 # export.
6553 _LT_TAGVAR(always_export_symbols, $1)=yes
6554 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6555 # Warning - without using the other runtime loading flags (-brtl),
6556 # -berok will link without error, but may produce a broken library.
6557 # The "-G" linker flag allows undefined symbols.
6558 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6559 # Determine the default libpath from the value encoded in an empty
6560 # executable.
6561 _LT_SYS_MODULE_PATH_AIX([$1])
6562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6563
6564 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6565 else
6566 if test ia64 = "$host_cpu"; then
6567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6568 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6569 _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"
6570 else
6571 # Determine the default libpath from the value encoded in an
6572 # empty executable.
6573 _LT_SYS_MODULE_PATH_AIX([$1])
6574 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6575 # Warning - without using the other run time loading flags,
6576 # -berok will link without error, but may produce a broken library.
6577 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6578 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6579 if test yes = "$with_gnu_ld"; then
6580 # We only use this code for GNU lds that support --whole-archive.
6581 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6582 else
6583 # Exported symbols can be pulled into shared objects from archives
6584 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6585 fi
6586 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6587 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6588 # -brtl affects multiple linker settings, -berok does not and is overridden later
6589 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6590 if test svr4 != "$with_aix_soname"; then
6591 # This is similar to how AIX traditionally builds its shared
6592 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6593 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6594 fi
6595 if test aix != "$with_aix_soname"; then
6596 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6597 else
6598 # used by -dlpreopen to get the symbols
6599 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6600 fi
6601 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6602 fi
6603 fi
6604 ;;
6605
6606 beos*)
6607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6608 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6610 # support --undefined. This deserves some investigation. FIXME
6611 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6612 else
6613 _LT_TAGVAR(ld_shlibs, $1)=no
6614 fi
6615 ;;
6616
6617 chorus*)
6618 case $cc_basename in
6619 *)
6620 # FIXME: insert proper C++ library support
6621 _LT_TAGVAR(ld_shlibs, $1)=no
6622 ;;
6623 esac
6624 ;;
6625
6626 cygwin* | mingw* | pw32* | cegcc*)
6627 case $GXX,$cc_basename in
6628 ,cl* | no,cl* | ,icl* | no,icl*)
6629 # Native MSVC or ICC
6630 # hardcode_libdir_flag_spec is actually meaningless, as there is
6631 # no search path for DLLs.
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6633 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6634 _LT_TAGVAR(always_export_symbols, $1)=yes
6635 _LT_TAGVAR(file_list_spec, $1)='@'
6636 # Tell ltmain to make .lib files, not .a files.
6637 libext=lib
6638 # Tell ltmain to make .dll files, not .so files.
6639 shrext_cmds=.dll
6640 # FIXME: Setting linknames here is a bad hack.
6641 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6642 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6643 cp "$export_symbols" "$output_objdir/$soname.def";
6644 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6645 else
6646 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6647 fi~
6648 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6649 linknames='
6650 # The linker will not automatically build a static lib if we build a DLL.
6651 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6652 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6653 # Don't use ranlib
6654 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6655 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6656 lt_tool_outputfile="@TOOL_OUTPUT@"~
6657 case $lt_outputfile in
6658 *.exe|*.EXE) ;;
6659 *)
6660 lt_outputfile=$lt_outputfile.exe
6661 lt_tool_outputfile=$lt_tool_outputfile.exe
6662 ;;
6663 esac~
6664 func_to_tool_file "$lt_outputfile"~
6665 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6667 $RM "$lt_outputfile.manifest";
6668 fi'
6669 ;;
6670 *)
6671 # g++
6672 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6673 # as there is no search path for DLLs.
6674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6675 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6676 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6677 _LT_TAGVAR(always_export_symbols, $1)=no
6678 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6679
6680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6682 # If the export-symbols file already is a .def file, use it as
6683 # is; otherwise, prepend EXPORTS...
6684 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6685 cp $export_symbols $output_objdir/$soname.def;
6686 else
6687 echo EXPORTS > $output_objdir/$soname.def;
6688 cat $export_symbols >> $output_objdir/$soname.def;
6689 fi~
6690 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6691 else
6692 _LT_TAGVAR(ld_shlibs, $1)=no
6693 fi
6694 ;;
6695 esac
6696 ;;
6697 darwin* | rhapsody*)
6698 _LT_DARWIN_LINKER_FEATURES($1)
6699 ;;
6700
6701 os2*)
6702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6703 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6704 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6705 shrext_cmds=.dll
6706 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6707 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6708 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6709 $ECHO EXPORTS >> $output_objdir/$libname.def~
6710 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6711 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6712 emximp -o $lib $output_objdir/$libname.def'
6713 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6714 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6715 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6716 $ECHO EXPORTS >> $output_objdir/$libname.def~
6717 prefix_cmds="$SED"~
6718 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6719 prefix_cmds="$prefix_cmds -e 1d";
6720 fi~
6721 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6722 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6723 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6724 emximp -o $lib $output_objdir/$libname.def'
6725 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6726 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6727 _LT_TAGVAR(file_list_spec, $1)='@'
6728 ;;
6729
6730 dgux*)
6731 case $cc_basename in
6732 ec++*)
6733 # FIXME: insert proper C++ library support
6734 _LT_TAGVAR(ld_shlibs, $1)=no
6735 ;;
6736 ghcx*)
6737 # Green Hills C++ Compiler
6738 # FIXME: insert proper C++ library support
6739 _LT_TAGVAR(ld_shlibs, $1)=no
6740 ;;
6741 *)
6742 # FIXME: insert proper C++ library support
6743 _LT_TAGVAR(ld_shlibs, $1)=no
6744 ;;
6745 esac
6746 ;;
6747
6748 freebsd2.*)
6749 # C++ shared libraries reported to be fairly broken before
6750 # switch to ELF
6751 _LT_TAGVAR(ld_shlibs, $1)=no
6752 ;;
6753
6754 freebsd-elf*)
6755 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6756 ;;
6757
6758 freebsd* | dragonfly* | midnightbsd*)
6759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6760 # conventions
6761 _LT_TAGVAR(ld_shlibs, $1)=yes
6762 ;;
6763
6764 haiku*)
6765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6766 _LT_TAGVAR(link_all_deplibs, $1)=yes
6767 ;;
6768
6769 hpux9*)
6770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6771 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6772 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6773 _LT_TAGVAR(hardcode_direct, $1)=yes
6774 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6775 # but as the default
6776 # location of the library.
6777
6778 case $cc_basename in
6779 CC*)
6780 # FIXME: insert proper C++ library support
6781 _LT_TAGVAR(ld_shlibs, $1)=no
6782 ;;
6783 aCC*)
6784 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6785 # Commands to make compiler produce verbose output that lists
6786 # what "hidden" libraries, object files and flags are used when
6787 # linking a shared library.
6788 #
6789 # There doesn't appear to be a way to prevent this compiler from
6790 # explicitly linking system object files so we need to strip them
6791 # from the output so that they don't get included in the library
6792 # dependencies.
6793 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6794 ;;
6795 *)
6796 if test yes = "$GXX"; then
6797 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6798 else
6799 # FIXME: insert proper C++ library support
6800 _LT_TAGVAR(ld_shlibs, $1)=no
6801 fi
6802 ;;
6803 esac
6804 ;;
6805
6806 hpux10*|hpux11*)
6807 if test no = "$with_gnu_ld"; then
6808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6809 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6810
6811 case $host_cpu in
6812 hppa*64*|ia64*)
6813 ;;
6814 *)
6815 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6816 ;;
6817 esac
6818 fi
6819 case $host_cpu in
6820 hppa*64*|ia64*)
6821 _LT_TAGVAR(hardcode_direct, $1)=no
6822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6823 ;;
6824 *)
6825 _LT_TAGVAR(hardcode_direct, $1)=yes
6826 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6827 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6828 # but as the default
6829 # location of the library.
6830 ;;
6831 esac
6832
6833 case $cc_basename in
6834 CC*)
6835 # FIXME: insert proper C++ library support
6836 _LT_TAGVAR(ld_shlibs, $1)=no
6837 ;;
6838 aCC*)
6839 case $host_cpu in
6840 hppa*64*)
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6842 ;;
6843 ia64*)
6844 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6845 ;;
6846 *)
6847 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6848 ;;
6849 esac
6850 # Commands to make compiler produce verbose output that lists
6851 # what "hidden" libraries, object files and flags are used when
6852 # linking a shared library.
6853 #
6854 # There doesn't appear to be a way to prevent this compiler from
6855 # explicitly linking system object files so we need to strip them
6856 # from the output so that they don't get included in the library
6857 # dependencies.
6858 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6859 ;;
6860 *)
6861 if test yes = "$GXX"; then
6862 if test no = "$with_gnu_ld"; then
6863 case $host_cpu in
6864 hppa*64*)
6865 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6866 ;;
6867 ia64*)
6868 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6869 ;;
6870 *)
6871 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6872 ;;
6873 esac
6874 fi
6875 else
6876 # FIXME: insert proper C++ library support
6877 _LT_TAGVAR(ld_shlibs, $1)=no
6878 fi
6879 ;;
6880 esac
6881 ;;
6882
6883 interix[[3-9]]*)
6884 _LT_TAGVAR(hardcode_direct, $1)=no
6885 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6887 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6889 # Instead, shared libraries are loaded at an image base (0x10000000 by
6890 # default) and relocated if they conflict, which is a slow very memory
6891 # consuming and fragmenting process. To avoid this, we pick a random,
6892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6894 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6895 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6896 ;;
6897 irix5* | irix6*)
6898 case $cc_basename in
6899 CC*)
6900 # SGI C++
6901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6902
6903 # Archives containing C++ object files must be created using
6904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6905 # necessary to make sure instantiated templates are included
6906 # in the archive.
6907 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6908 ;;
6909 *)
6910 if test yes = "$GXX"; then
6911 if test no = "$with_gnu_ld"; then
6912 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6913 else
6914 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
6915 fi
6916 fi
6917 _LT_TAGVAR(link_all_deplibs, $1)=yes
6918 ;;
6919 esac
6920 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6921 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6922 _LT_TAGVAR(inherit_rpath, $1)=yes
6923 ;;
6924
6925 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6926 case $cc_basename in
6927 KCC*)
6928 # Kuck and Associates, Inc. (KAI) C++ Compiler
6929
6930 # KCC will only create a shared library if the output file
6931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6932 # to its proper name (with version) after linking.
6933 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6934 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
6935 # Commands to make compiler produce verbose output that lists
6936 # what "hidden" libraries, object files and flags are used when
6937 # linking a shared library.
6938 #
6939 # There doesn't appear to be a way to prevent this compiler from
6940 # explicitly linking system object files so we need to strip them
6941 # from the output so that they don't get included in the library
6942 # dependencies.
6943 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6944
6945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6946 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6947
6948 # Archives containing C++ object files must be created using
6949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6950 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6951 ;;
6952 icpc* | ecpc* )
6953 # Intel C++
6954 with_gnu_ld=yes
6955 # version 8.0 and above of icpc choke on multiply defined symbols
6956 # if we add $predep_objects and $postdep_objects, however 7.1 and
6957 # earlier do not add the objects themselves.
6958 case `$CC -V 2>&1` in
6959 *"Version 7."*)
6960 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6961 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6962 ;;
6963 *) # Version 8.0 or newer
6964 tmp_idyn=
6965 case $host_cpu in
6966 ia64*) tmp_idyn=' -i_dynamic';;
6967 esac
6968 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6969 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6970 ;;
6971 esac
6972 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6973 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6974 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6975 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6976 ;;
6977 pgCC* | pgcpp*)
6978 # Portland Group C++ compiler
6979 case `$CC -V` in
6980 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6981 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6982 rm -rf $tpldir~
6983 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6984 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6985 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6986 rm -rf $tpldir~
6987 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6988 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6989 $RANLIB $oldlib'
6990 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6991 rm -rf $tpldir~
6992 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6993 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6994 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6995 rm -rf $tpldir~
6996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6997 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6998 ;;
6999 *) # Version 6 and above use weak symbols
7000 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7001 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7002 ;;
7003 esac
7004
7005 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7006 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7007 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7008 ;;
7009 cxx*)
7010 # Compaq C++
7011 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7012 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
7013
7014 runpath_var=LD_RUN_PATH
7015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7016 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7017
7018 # Commands to make compiler produce verbose output that lists
7019 # what "hidden" libraries, object files and flags are used when
7020 # linking a shared library.
7021 #
7022 # There doesn't appear to be a way to prevent this compiler from
7023 # explicitly linking system object files so we need to strip them
7024 # from the output so that they don't get included in the library
7025 # dependencies.
7026 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7027 ;;
7028 xl* | mpixl* | bgxl*)
7029 # IBM XL 8.0 on PPC, with GNU ld
7030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7031 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7032 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7033 if test yes = "$supports_anon_versioning"; then
7034 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7035 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7036 echo "local: *; };" >> $output_objdir/$libname.ver~
7037 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7038 fi
7039 ;;
7040 *)
7041 case `$CC -V 2>&1 | $SED 5q` in
7042 *Sun\ C*)
7043 # Sun C++ 5.9
7044 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7045 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7046 _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'
7047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7048 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7049 _LT_TAGVAR(compiler_needs_object, $1)=yes
7050
7051 # Not sure whether something based on
7052 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7053 # would be better.
7054 output_verbose_link_cmd='func_echo_all'
7055
7056 # Archives containing C++ object files must be created using
7057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7058 # necessary to make sure instantiated templates are included
7059 # in the archive.
7060 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7061 ;;
7062 esac
7063 ;;
7064 esac
7065 ;;
7066
7067 lynxos*)
7068 # FIXME: insert proper C++ library support
7069 _LT_TAGVAR(ld_shlibs, $1)=no
7070 ;;
7071
7072 m88k*)
7073 # FIXME: insert proper C++ library support
7074 _LT_TAGVAR(ld_shlibs, $1)=no
7075 ;;
7076
7077 mvs*)
7078 case $cc_basename in
7079 cxx*)
7080 # FIXME: insert proper C++ library support
7081 _LT_TAGVAR(ld_shlibs, $1)=no
7082 ;;
7083 *)
7084 # FIXME: insert proper C++ library support
7085 _LT_TAGVAR(ld_shlibs, $1)=no
7086 ;;
7087 esac
7088 ;;
7089
7090 netbsd*)
7091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7092 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7093 wlarc=
7094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7095 _LT_TAGVAR(hardcode_direct, $1)=yes
7096 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7097 fi
7098 # Workaround some broken pre-1.5 toolchains
7099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7100 ;;
7101
7102 *nto* | *qnx*)
7103 _LT_TAGVAR(ld_shlibs, $1)=yes
7104 ;;
7105
7106 openbsd* | bitrig*)
7107 if test -f /usr/libexec/ld.so; then
7108 _LT_TAGVAR(hardcode_direct, $1)=yes
7109 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7110 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7111 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7114 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
7115 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7116 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7117 fi
7118 output_verbose_link_cmd=func_echo_all
7119 else
7120 _LT_TAGVAR(ld_shlibs, $1)=no
7121 fi
7122 ;;
7123
7124 osf3* | osf4* | osf5*)
7125 case $cc_basename in
7126 KCC*)
7127 # Kuck and Associates, Inc. (KAI) C++ Compiler
7128
7129 # KCC will only create a shared library if the output file
7130 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7131 # to its proper name (with version) after linking.
7132 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7133
7134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7135 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7136
7137 # Archives containing C++ object files must be created using
7138 # the KAI C++ compiler.
7139 case $host in
7140 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7141 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7142 esac
7143 ;;
7144 RCC*)
7145 # Rational C++ 2.4.1
7146 # FIXME: insert proper C++ library support
7147 _LT_TAGVAR(ld_shlibs, $1)=no
7148 ;;
7149 cxx*)
7150 case $host in
7151 osf3*)
7152 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7153 _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'
7154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7155 ;;
7156 *)
7157 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7158 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7159 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7160 echo "-hidden">> $lib.exp~
7161 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
7162 $RM $lib.exp'
7163 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7164 ;;
7165 esac
7166
7167 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7168
7169 # Commands to make compiler produce verbose output that lists
7170 # what "hidden" libraries, object files and flags are used when
7171 # linking a shared library.
7172 #
7173 # There doesn't appear to be a way to prevent this compiler from
7174 # explicitly linking system object files so we need to strip them
7175 # from the output so that they don't get included in the library
7176 # dependencies.
7177 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7178 ;;
7179 *)
7180 if test yes,no = "$GXX,$with_gnu_ld"; then
7181 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7182 case $host in
7183 osf3*)
7184 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7185 ;;
7186 *)
7187 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7188 ;;
7189 esac
7190
7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7192 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7193
7194 # Commands to make compiler produce verbose output that lists
7195 # what "hidden" libraries, object files and flags are used when
7196 # linking a shared library.
7197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7198
7199 else
7200 # FIXME: insert proper C++ library support
7201 _LT_TAGVAR(ld_shlibs, $1)=no
7202 fi
7203 ;;
7204 esac
7205 ;;
7206
7207 psos*)
7208 # FIXME: insert proper C++ library support
7209 _LT_TAGVAR(ld_shlibs, $1)=no
7210 ;;
7211
7212 sunos4*)
7213 case $cc_basename in
7214 CC*)
7215 # Sun C++ 4.x
7216 # FIXME: insert proper C++ library support
7217 _LT_TAGVAR(ld_shlibs, $1)=no
7218 ;;
7219 lcc*)
7220 # Lucid
7221 # FIXME: insert proper C++ library support
7222 _LT_TAGVAR(ld_shlibs, $1)=no
7223 ;;
7224 *)
7225 # FIXME: insert proper C++ library support
7226 _LT_TAGVAR(ld_shlibs, $1)=no
7227 ;;
7228 esac
7229 ;;
7230
7231 solaris*)
7232 case $cc_basename in
7233 CC* | sunCC*)
7234 # Sun C++ 4.2, 5.x and Centerline C++
7235 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7236 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7237 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7238 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7239 $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'
7240
7241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7242 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7243 case $host_os in
7244 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7245 *)
7246 # The compiler driver will combine and reorder linker options,
7247 # but understands '-z linker_flag'.
7248 # Supported since Solaris 2.6 (maybe 2.5.1?)
7249 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7250 ;;
7251 esac
7252 _LT_TAGVAR(link_all_deplibs, $1)=yes
7253
7254 output_verbose_link_cmd='func_echo_all'
7255
7256 # Archives containing C++ object files must be created using
7257 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7258 # necessary to make sure instantiated templates are included
7259 # in the archive.
7260 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7261 ;;
7262 gcx*)
7263 # Green Hills C++ Compiler
7264 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7265
7266 # The C++ compiler must be used to create the archive.
7267 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7268 ;;
7269 *)
7270 # GNU C++ compiler with Solaris linker
7271 if test yes,no = "$GXX,$with_gnu_ld"; then
7272 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7273 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7275 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7276 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7277
7278 # Commands to make compiler produce verbose output that lists
7279 # what "hidden" libraries, object files and flags are used when
7280 # linking a shared library.
7281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7282 else
7283 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7284 # platform.
7285 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7286 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7287 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7288
7289 # Commands to make compiler produce verbose output that lists
7290 # what "hidden" libraries, object files and flags are used when
7291 # linking a shared library.
7292 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7293 fi
7294
7295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7296 case $host_os in
7297 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7298 *)
7299 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7300 ;;
7301 esac
7302 fi
7303 ;;
7304 esac
7305 ;;
7306
7307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7308 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7309 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7310 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7311 runpath_var='LD_RUN_PATH'
7312
7313 case $cc_basename in
7314 CC*)
7315 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7316 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7317 ;;
7318 *)
7319 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7320 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7321 ;;
7322 esac
7323 ;;
7324
7325 sysv5* | sco3.2v5* | sco5v6*)
7326 # Note: We CANNOT use -z defs as we might desire, because we do not
7327 # link with -lc, and that would cause any symbols used from libc to
7328 # always be unresolved, which means just about no library would
7329 # ever link correctly. If we're not using GNU ld we use -z text
7330 # though, which does catch some bad symbols but isn't as heavy-handed
7331 # as -z defs.
7332 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7333 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7334 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7335 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7337 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7338 _LT_TAGVAR(link_all_deplibs, $1)=yes
7339 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7340 runpath_var='LD_RUN_PATH'
7341
7342 case $cc_basename in
7343 CC*)
7344 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7346 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7347 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7348 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7349 '"$_LT_TAGVAR(reload_cmds, $1)"
7350 ;;
7351 *)
7352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7353 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7354 ;;
7355 esac
7356 ;;
7357
7358 tandem*)
7359 case $cc_basename in
7360 NCC*)
7361 # NonStop-UX NCC 3.20
7362 # FIXME: insert proper C++ library support
7363 _LT_TAGVAR(ld_shlibs, $1)=no
7364 ;;
7365 *)
7366 # FIXME: insert proper C++ library support
7367 _LT_TAGVAR(ld_shlibs, $1)=no
7368 ;;
7369 esac
7370 ;;
7371
7372 vxworks*)
7373 # FIXME: insert proper C++ library support
7374 _LT_TAGVAR(ld_shlibs, $1)=no
7375 ;;
7376
7377 *)
7378 # FIXME: insert proper C++ library support
7379 _LT_TAGVAR(ld_shlibs, $1)=no
7380 ;;
7381 esac
7382
7383 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7384 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7385
7386 _LT_TAGVAR(GCC, $1)=$GXX
7387 _LT_TAGVAR(LD, $1)=$LD
7388
7389 ## CAVEAT EMPTOR:
7390 ## There is no encapsulation within the following macros, do not change
7391 ## the running order or otherwise move them around unless you know exactly
7392 ## what you are doing...
7393 _LT_SYS_HIDDEN_LIBDEPS($1)
7394 _LT_COMPILER_PIC($1)
7395 _LT_COMPILER_C_O($1)
7396 _LT_COMPILER_FILE_LOCKS($1)
7397 _LT_LINKER_SHLIBS($1)
7398 _LT_SYS_DYNAMIC_LINKER($1)
7399 _LT_LINKER_HARDCODE_LIBPATH($1)
7400
7401 _LT_CONFIG($1)
7402 fi # test -n "$compiler"
7403
7404 CC=$lt_save_CC
7405 CFLAGS=$lt_save_CFLAGS
7406 LDCXX=$LD
7407 LD=$lt_save_LD
7408 GCC=$lt_save_GCC
7409 with_gnu_ld=$lt_save_with_gnu_ld
7410 lt_cv_path_LDCXX=$lt_cv_path_LD
7411 lt_cv_path_LD=$lt_save_path_LD
7412 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7413 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7414 fi # test yes != "$_lt_caught_CXX_error"
7415
7416 AC_LANG_POP
7417 ])# _LT_LANG_CXX_CONFIG
7418
7419
7420 # _LT_FUNC_STRIPNAME_CNF
7421 # ----------------------
7422 # func_stripname_cnf prefix suffix name
7423 # strip PREFIX and SUFFIX off of NAME.
7424 # PREFIX and SUFFIX must not contain globbing or regex special
7425 # characters, hashes, percent signs, but SUFFIX may contain a leading
7426 # dot (in which case that matches only a dot).
7427 #
7428 # This function is identical to the (non-XSI) version of func_stripname,
7429 # except this one can be used by m4 code that may be executed by configure,
7430 # rather than the libtool script.
7431 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7432 AC_REQUIRE([_LT_DECL_SED])
7433 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7434 func_stripname_cnf ()
7435 {
7436 case @S|@2 in
7437 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7438 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7439 esac
7440 } # func_stripname_cnf
7441 ])# _LT_FUNC_STRIPNAME_CNF
7442
7443
7444 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7445 # ---------------------------------
7446 # Figure out "hidden" library dependencies from verbose
7447 # compiler output when linking a shared library.
7448 # Parse the compiler output and extract the necessary
7449 # objects, libraries and library flags.
7450 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7451 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7452 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7453 # Dependencies to place before and after the object being linked:
7454 _LT_TAGVAR(predep_objects, $1)=
7455 _LT_TAGVAR(postdep_objects, $1)=
7456 _LT_TAGVAR(predeps, $1)=
7457 _LT_TAGVAR(postdeps, $1)=
7458 _LT_TAGVAR(compiler_lib_search_path, $1)=
7459
7460 dnl we can't use the lt_simple_compile_test_code here,
7461 dnl because it contains code intended for an executable,
7462 dnl not a library. It's possible we should let each
7463 dnl tag define a new lt_????_link_test_code variable,
7464 dnl but it's only used here...
7465 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7466 int a;
7467 void foo (void) { a = 0; }
7468 _LT_EOF
7469 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7470 class Foo
7471 {
7472 public:
7473 Foo (void) { a = 0; }
7474 private:
7475 int a;
7476 };
7477 _LT_EOF
7478 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7479 subroutine foo
7480 implicit none
7481 integer*4 a
7482 a=0
7483 return
7484 end
7485 _LT_EOF
7486 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7487 subroutine foo
7488 implicit none
7489 integer a
7490 a=0
7491 return
7492 end
7493 _LT_EOF
7494 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7495 public class foo {
7496 private int a;
7497 public void bar (void) {
7498 a = 0;
7499 }
7500 };
7501 _LT_EOF
7502 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7503 package foo
7504 func foo() {
7505 }
7506 _LT_EOF
7507 ])
7508
7509 _lt_libdeps_save_CFLAGS=$CFLAGS
7510 case "$CC $CFLAGS " in #(
7511 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7512 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7513 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7514 esac
7515
7516 dnl Parse the compiler output and extract the necessary
7517 dnl objects, libraries and library flags.
7518 if AC_TRY_EVAL(ac_compile); then
7519 # Parse the compiler output and extract the necessary
7520 # objects, libraries and library flags.
7521
7522 # Sentinel used to keep track of whether or not we are before
7523 # the conftest object file.
7524 pre_test_object_deps_done=no
7525
7526 for p in `eval "$output_verbose_link_cmd"`; do
7527 case $prev$p in
7528
7529 -L* | -R* | -l*)
7530 # Some compilers place space between "-{L,R}" and the path.
7531 # Remove the space.
7532 if test x-L = "$p" ||
7533 test x-R = "$p"; then
7534 prev=$p
7535 continue
7536 fi
7537
7538 # Expand the sysroot to ease extracting the directories later.
7539 if test -z "$prev"; then
7540 case $p in
7541 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7542 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7543 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7544 esac
7545 fi
7546 case $p in
7547 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7548 esac
7549 if test no = "$pre_test_object_deps_done"; then
7550 case $prev in
7551 -L | -R)
7552 # Internal compiler library paths should come after those
7553 # provided the user. The postdeps already come after the
7554 # user supplied libs so there is no need to process them.
7555 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7556 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7557 else
7558 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7559 fi
7560 ;;
7561 # The "-l" case would never come before the object being
7562 # linked, so don't bother handling this case.
7563 esac
7564 else
7565 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7566 _LT_TAGVAR(postdeps, $1)=$prev$p
7567 else
7568 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7569 fi
7570 fi
7571 prev=
7572 ;;
7573
7574 *.lto.$objext) ;; # Ignore GCC LTO objects
7575 *.$objext)
7576 # This assumes that the test object file only shows up
7577 # once in the compiler output.
7578 if test "$p" = "conftest.$objext"; then
7579 pre_test_object_deps_done=yes
7580 continue
7581 fi
7582
7583 if test no = "$pre_test_object_deps_done"; then
7584 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7585 _LT_TAGVAR(predep_objects, $1)=$p
7586 else
7587 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7588 fi
7589 else
7590 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7591 _LT_TAGVAR(postdep_objects, $1)=$p
7592 else
7593 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7594 fi
7595 fi
7596 ;;
7597
7598 *) ;; # Ignore the rest.
7599
7600 esac
7601 done
7602
7603 # Clean up.
7604 rm -f a.out a.exe
7605 else
7606 echo "libtool.m4: error: problem compiling $1 test program"
7607 fi
7608
7609 $RM -f confest.$objext
7610 CFLAGS=$_lt_libdeps_save_CFLAGS
7611
7612 # PORTME: override above test on systems where it is broken
7613 m4_if([$1], [CXX],
7614 [case $host_os in
7615 interix[[3-9]]*)
7616 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7617 # hack all around it, let's just trust "g++" to DTRT.
7618 _LT_TAGVAR(predep_objects,$1)=
7619 _LT_TAGVAR(postdep_objects,$1)=
7620 _LT_TAGVAR(postdeps,$1)=
7621 ;;
7622 esac
7623 ])
7624
7625 case " $_LT_TAGVAR(postdeps, $1) " in
7626 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7627 esac
7628 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7629 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7630 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7631 fi
7632 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7633 [The directories searched by this compiler when creating a shared library])
7634 _LT_TAGDECL([], [predep_objects], [1],
7635 [Dependencies to place before and after the objects being linked to
7636 create a shared library])
7637 _LT_TAGDECL([], [postdep_objects], [1])
7638 _LT_TAGDECL([], [predeps], [1])
7639 _LT_TAGDECL([], [postdeps], [1])
7640 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7641 [The library search path used internally by the compiler when linking
7642 a shared library])
7643 ])# _LT_SYS_HIDDEN_LIBDEPS
7644
7645
7646 # _LT_LANG_F77_CONFIG([TAG])
7647 # --------------------------
7648 # Ensure that the configuration variables for a Fortran 77 compiler are
7649 # suitably defined. These variables are subsequently used by _LT_CONFIG
7650 # to write the compiler configuration to 'libtool'.
7651 m4_defun([_LT_LANG_F77_CONFIG],
7652 [AC_LANG_PUSH(Fortran 77)
7653 if test -z "$F77" || test no = "$F77"; then
7654 _lt_disable_F77=yes
7655 fi
7656
7657 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7658 _LT_TAGVAR(allow_undefined_flag, $1)=
7659 _LT_TAGVAR(always_export_symbols, $1)=no
7660 _LT_TAGVAR(archive_expsym_cmds, $1)=
7661 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7662 _LT_TAGVAR(hardcode_direct, $1)=no
7663 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7665 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7666 _LT_TAGVAR(hardcode_minus_L, $1)=no
7667 _LT_TAGVAR(hardcode_automatic, $1)=no
7668 _LT_TAGVAR(inherit_rpath, $1)=no
7669 _LT_TAGVAR(module_cmds, $1)=
7670 _LT_TAGVAR(module_expsym_cmds, $1)=
7671 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7672 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7673 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7674 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7675 _LT_TAGVAR(no_undefined_flag, $1)=
7676 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7677 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7678
7679 # Source file extension for f77 test sources.
7680 ac_ext=f
7681
7682 # Object file extension for compiled f77 test sources.
7683 objext=o
7684 _LT_TAGVAR(objext, $1)=$objext
7685
7686 # No sense in running all these tests if we already determined that
7687 # the F77 compiler isn't working. Some variables (like enable_shared)
7688 # are currently assumed to apply to all compilers on this platform,
7689 # and will be corrupted by setting them based on a non-working compiler.
7690 if test yes != "$_lt_disable_F77"; then
7691 # Code to be used in simple compile tests
7692 lt_simple_compile_test_code="\
7693 subroutine t
7694 return
7695 end
7696 "
7697
7698 # Code to be used in simple link tests
7699 lt_simple_link_test_code="\
7700 program t
7701 end
7702 "
7703
7704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7705 _LT_TAG_COMPILER
7706
7707 # save warnings/boilerplate of simple test code
7708 _LT_COMPILER_BOILERPLATE
7709 _LT_LINKER_BOILERPLATE
7710
7711 # Allow CC to be a program name with arguments.
7712 lt_save_CC=$CC
7713 lt_save_GCC=$GCC
7714 lt_save_CFLAGS=$CFLAGS
7715 CC=${F77-"f77"}
7716 CFLAGS=$FFLAGS
7717 compiler=$CC
7718 _LT_TAGVAR(compiler, $1)=$CC
7719 _LT_CC_BASENAME([$compiler])
7720 GCC=$G77
7721 if test -n "$compiler"; then
7722 AC_MSG_CHECKING([if libtool supports shared libraries])
7723 AC_MSG_RESULT([$can_build_shared])
7724
7725 AC_MSG_CHECKING([whether to build shared libraries])
7726 test no = "$can_build_shared" && enable_shared=no
7727
7728 # On AIX, shared libraries and static libraries use the same namespace, and
7729 # are all built from PIC.
7730 case $host_os in
7731 aix3*)
7732 test yes = "$enable_shared" && enable_static=no
7733 if test -n "$RANLIB"; then
7734 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7735 postinstall_cmds='$RANLIB $lib'
7736 fi
7737 ;;
7738 aix[[4-9]]*)
7739 if test ia64 != "$host_cpu"; then
7740 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7741 yes,aix,yes) ;; # shared object as lib.so file only
7742 yes,svr4,*) ;; # shared object as lib.so archive member only
7743 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7744 esac
7745 fi
7746 ;;
7747 esac
7748 AC_MSG_RESULT([$enable_shared])
7749
7750 AC_MSG_CHECKING([whether to build static libraries])
7751 # Make sure either enable_shared or enable_static is yes.
7752 test yes = "$enable_shared" || enable_static=yes
7753 AC_MSG_RESULT([$enable_static])
7754
7755 _LT_TAGVAR(GCC, $1)=$G77
7756 _LT_TAGVAR(LD, $1)=$LD
7757
7758 ## CAVEAT EMPTOR:
7759 ## There is no encapsulation within the following macros, do not change
7760 ## the running order or otherwise move them around unless you know exactly
7761 ## what you are doing...
7762 _LT_COMPILER_PIC($1)
7763 _LT_COMPILER_C_O($1)
7764 _LT_COMPILER_FILE_LOCKS($1)
7765 _LT_LINKER_SHLIBS($1)
7766 _LT_SYS_DYNAMIC_LINKER($1)
7767 _LT_LINKER_HARDCODE_LIBPATH($1)
7768
7769 _LT_CONFIG($1)
7770 fi # test -n "$compiler"
7771
7772 GCC=$lt_save_GCC
7773 CC=$lt_save_CC
7774 CFLAGS=$lt_save_CFLAGS
7775 fi # test yes != "$_lt_disable_F77"
7776
7777 AC_LANG_POP
7778 ])# _LT_LANG_F77_CONFIG
7779
7780
7781 # _LT_LANG_FC_CONFIG([TAG])
7782 # -------------------------
7783 # Ensure that the configuration variables for a Fortran compiler are
7784 # suitably defined. These variables are subsequently used by _LT_CONFIG
7785 # to write the compiler configuration to 'libtool'.
7786 m4_defun([_LT_LANG_FC_CONFIG],
7787 [AC_LANG_PUSH(Fortran)
7788
7789 if test -z "$FC" || test no = "$FC"; then
7790 _lt_disable_FC=yes
7791 fi
7792
7793 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7794 _LT_TAGVAR(allow_undefined_flag, $1)=
7795 _LT_TAGVAR(always_export_symbols, $1)=no
7796 _LT_TAGVAR(archive_expsym_cmds, $1)=
7797 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7798 _LT_TAGVAR(hardcode_direct, $1)=no
7799 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7801 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7802 _LT_TAGVAR(hardcode_minus_L, $1)=no
7803 _LT_TAGVAR(hardcode_automatic, $1)=no
7804 _LT_TAGVAR(inherit_rpath, $1)=no
7805 _LT_TAGVAR(module_cmds, $1)=
7806 _LT_TAGVAR(module_expsym_cmds, $1)=
7807 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7808 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7809 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7810 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7811 _LT_TAGVAR(no_undefined_flag, $1)=
7812 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7813 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7814
7815 # Source file extension for fc test sources.
7816 ac_ext=${ac_fc_srcext-f}
7817
7818 # Object file extension for compiled fc test sources.
7819 objext=o
7820 _LT_TAGVAR(objext, $1)=$objext
7821
7822 # No sense in running all these tests if we already determined that
7823 # the FC compiler isn't working. Some variables (like enable_shared)
7824 # are currently assumed to apply to all compilers on this platform,
7825 # and will be corrupted by setting them based on a non-working compiler.
7826 if test yes != "$_lt_disable_FC"; then
7827 # Code to be used in simple compile tests
7828 lt_simple_compile_test_code="\
7829 subroutine t
7830 return
7831 end
7832 "
7833
7834 # Code to be used in simple link tests
7835 lt_simple_link_test_code="\
7836 program t
7837 end
7838 "
7839
7840 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7841 _LT_TAG_COMPILER
7842
7843 # save warnings/boilerplate of simple test code
7844 _LT_COMPILER_BOILERPLATE
7845 _LT_LINKER_BOILERPLATE
7846
7847 # Allow CC to be a program name with arguments.
7848 lt_save_CC=$CC
7849 lt_save_GCC=$GCC
7850 lt_save_CFLAGS=$CFLAGS
7851 CC=${FC-"f95"}
7852 CFLAGS=$FCFLAGS
7853 compiler=$CC
7854 GCC=$ac_cv_fc_compiler_gnu
7855
7856 _LT_TAGVAR(compiler, $1)=$CC
7857 _LT_CC_BASENAME([$compiler])
7858
7859 if test -n "$compiler"; then
7860 AC_MSG_CHECKING([if libtool supports shared libraries])
7861 AC_MSG_RESULT([$can_build_shared])
7862
7863 AC_MSG_CHECKING([whether to build shared libraries])
7864 test no = "$can_build_shared" && enable_shared=no
7865
7866 # On AIX, shared libraries and static libraries use the same namespace, and
7867 # are all built from PIC.
7868 case $host_os in
7869 aix3*)
7870 test yes = "$enable_shared" && enable_static=no
7871 if test -n "$RANLIB"; then
7872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7873 postinstall_cmds='$RANLIB $lib'
7874 fi
7875 ;;
7876 aix[[4-9]]*)
7877 if test ia64 != "$host_cpu"; then
7878 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7879 yes,aix,yes) ;; # shared object as lib.so file only
7880 yes,svr4,*) ;; # shared object as lib.so archive member only
7881 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7882 esac
7883 fi
7884 ;;
7885 esac
7886 AC_MSG_RESULT([$enable_shared])
7887
7888 AC_MSG_CHECKING([whether to build static libraries])
7889 # Make sure either enable_shared or enable_static is yes.
7890 test yes = "$enable_shared" || enable_static=yes
7891 AC_MSG_RESULT([$enable_static])
7892
7893 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7894 _LT_TAGVAR(LD, $1)=$LD
7895
7896 ## CAVEAT EMPTOR:
7897 ## There is no encapsulation within the following macros, do not change
7898 ## the running order or otherwise move them around unless you know exactly
7899 ## what you are doing...
7900 _LT_SYS_HIDDEN_LIBDEPS($1)
7901 _LT_COMPILER_PIC($1)
7902 _LT_COMPILER_C_O($1)
7903 _LT_COMPILER_FILE_LOCKS($1)
7904 _LT_LINKER_SHLIBS($1)
7905 _LT_SYS_DYNAMIC_LINKER($1)
7906 _LT_LINKER_HARDCODE_LIBPATH($1)
7907
7908 _LT_CONFIG($1)
7909 fi # test -n "$compiler"
7910
7911 GCC=$lt_save_GCC
7912 CC=$lt_save_CC
7913 CFLAGS=$lt_save_CFLAGS
7914 fi # test yes != "$_lt_disable_FC"
7915
7916 AC_LANG_POP
7917 ])# _LT_LANG_FC_CONFIG
7918
7919
7920 # _LT_LANG_GCJ_CONFIG([TAG])
7921 # --------------------------
7922 # Ensure that the configuration variables for the GNU Java Compiler compiler
7923 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7924 # to write the compiler configuration to 'libtool'.
7925 m4_defun([_LT_LANG_GCJ_CONFIG],
7926 [AC_REQUIRE([LT_PROG_GCJ])dnl
7927 AC_LANG_SAVE
7928
7929 # Source file extension for Java test sources.
7930 ac_ext=java
7931
7932 # Object file extension for compiled Java test sources.
7933 objext=o
7934 _LT_TAGVAR(objext, $1)=$objext
7935
7936 # Code to be used in simple compile tests
7937 lt_simple_compile_test_code="class foo {}"
7938
7939 # Code to be used in simple link tests
7940 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7941
7942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7943 _LT_TAG_COMPILER
7944
7945 # save warnings/boilerplate of simple test code
7946 _LT_COMPILER_BOILERPLATE
7947 _LT_LINKER_BOILERPLATE
7948
7949 # Allow CC to be a program name with arguments.
7950 lt_save_CC=$CC
7951 lt_save_CFLAGS=$CFLAGS
7952 lt_save_GCC=$GCC
7953 GCC=yes
7954 CC=${GCJ-"gcj"}
7955 CFLAGS=$GCJFLAGS
7956 compiler=$CC
7957 _LT_TAGVAR(compiler, $1)=$CC
7958 _LT_TAGVAR(LD, $1)=$LD
7959 _LT_CC_BASENAME([$compiler])
7960
7961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7962 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7963
7964 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7965 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7966 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7967
7968 if test -n "$compiler"; then
7969 _LT_COMPILER_NO_RTTI($1)
7970 _LT_COMPILER_PIC($1)
7971 _LT_COMPILER_C_O($1)
7972 _LT_COMPILER_FILE_LOCKS($1)
7973 _LT_LINKER_SHLIBS($1)
7974 _LT_LINKER_HARDCODE_LIBPATH($1)
7975
7976 _LT_CONFIG($1)
7977 fi
7978
7979 AC_LANG_RESTORE
7980
7981 GCC=$lt_save_GCC
7982 CC=$lt_save_CC
7983 CFLAGS=$lt_save_CFLAGS
7984 ])# _LT_LANG_GCJ_CONFIG
7985
7986
7987 # _LT_LANG_GO_CONFIG([TAG])
7988 # --------------------------
7989 # Ensure that the configuration variables for the GNU Go compiler
7990 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7991 # to write the compiler configuration to 'libtool'.
7992 m4_defun([_LT_LANG_GO_CONFIG],
7993 [AC_REQUIRE([LT_PROG_GO])dnl
7994 AC_LANG_SAVE
7995
7996 # Source file extension for Go test sources.
7997 ac_ext=go
7998
7999 # Object file extension for compiled Go test sources.
8000 objext=o
8001 _LT_TAGVAR(objext, $1)=$objext
8002
8003 # Code to be used in simple compile tests
8004 lt_simple_compile_test_code="package main; func main() { }"
8005
8006 # Code to be used in simple link tests
8007 lt_simple_link_test_code='package main; func main() { }'
8008
8009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8010 _LT_TAG_COMPILER
8011
8012 # save warnings/boilerplate of simple test code
8013 _LT_COMPILER_BOILERPLATE
8014 _LT_LINKER_BOILERPLATE
8015
8016 # Allow CC to be a program name with arguments.
8017 lt_save_CC=$CC
8018 lt_save_CFLAGS=$CFLAGS
8019 lt_save_GCC=$GCC
8020 GCC=yes
8021 CC=${GOC-"gccgo"}
8022 CFLAGS=$GOFLAGS
8023 compiler=$CC
8024 _LT_TAGVAR(compiler, $1)=$CC
8025 _LT_TAGVAR(LD, $1)=$LD
8026 _LT_CC_BASENAME([$compiler])
8027
8028 # Go did not exist at the time GCC didn't implicitly link libc in.
8029 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8030
8031 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8032 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8033 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8034
8035 if test -n "$compiler"; then
8036 _LT_COMPILER_NO_RTTI($1)
8037 _LT_COMPILER_PIC($1)
8038 _LT_COMPILER_C_O($1)
8039 _LT_COMPILER_FILE_LOCKS($1)
8040 _LT_LINKER_SHLIBS($1)
8041 _LT_LINKER_HARDCODE_LIBPATH($1)
8042
8043 _LT_CONFIG($1)
8044 fi
8045
8046 AC_LANG_RESTORE
8047
8048 GCC=$lt_save_GCC
8049 CC=$lt_save_CC
8050 CFLAGS=$lt_save_CFLAGS
8051 ])# _LT_LANG_GO_CONFIG
8052
8053
8054 # _LT_LANG_RC_CONFIG([TAG])
8055 # -------------------------
8056 # Ensure that the configuration variables for the Windows resource compiler
8057 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8058 # to write the compiler configuration to 'libtool'.
8059 m4_defun([_LT_LANG_RC_CONFIG],
8060 [AC_REQUIRE([LT_PROG_RC])dnl
8061 AC_LANG_SAVE
8062
8063 # Source file extension for RC test sources.
8064 ac_ext=rc
8065
8066 # Object file extension for compiled RC test sources.
8067 objext=o
8068 _LT_TAGVAR(objext, $1)=$objext
8069
8070 # Code to be used in simple compile tests
8071 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8072
8073 # Code to be used in simple link tests
8074 lt_simple_link_test_code=$lt_simple_compile_test_code
8075
8076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8077 _LT_TAG_COMPILER
8078
8079 # save warnings/boilerplate of simple test code
8080 _LT_COMPILER_BOILERPLATE
8081 _LT_LINKER_BOILERPLATE
8082
8083 # Allow CC to be a program name with arguments.
8084 lt_save_CC=$CC
8085 lt_save_CFLAGS=$CFLAGS
8086 lt_save_GCC=$GCC
8087 GCC=
8088 CC=${RC-"windres"}
8089 CFLAGS=
8090 compiler=$CC
8091 _LT_TAGVAR(compiler, $1)=$CC
8092 _LT_CC_BASENAME([$compiler])
8093 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8094
8095 if test -n "$compiler"; then
8096 :
8097 _LT_CONFIG($1)
8098 fi
8099
8100 GCC=$lt_save_GCC
8101 AC_LANG_RESTORE
8102 CC=$lt_save_CC
8103 CFLAGS=$lt_save_CFLAGS
8104 ])# _LT_LANG_RC_CONFIG
8105
8106
8107 # LT_PROG_GCJ
8108 # -----------
8109 AC_DEFUN([LT_PROG_GCJ],
8110 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8111 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8112 [AC_CHECK_TOOL(GCJ, gcj,)
8113 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8114 AC_SUBST(GCJFLAGS)])])[]dnl
8115 ])
8116
8117 # Old name:
8118 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8119 dnl aclocal-1.4 backwards compatibility:
8120 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8121
8122
8123 # LT_PROG_GO
8124 # ----------
8125 AC_DEFUN([LT_PROG_GO],
8126 [AC_CHECK_TOOL(GOC, gccgo,)
8127 ])
8128
8129
8130 # LT_PROG_RC
8131 # ----------
8132 AC_DEFUN([LT_PROG_RC],
8133 [AC_CHECK_TOOL(RC, windres,)
8134 ])
8135
8136 # Old name:
8137 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8138 dnl aclocal-1.4 backwards compatibility:
8139 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8140
8141
8142 # _LT_DECL_EGREP
8143 # --------------
8144 # If we don't have a new enough Autoconf to choose the best grep
8145 # available, choose the one first in the user's PATH.
8146 m4_defun([_LT_DECL_EGREP],
8147 [AC_REQUIRE([AC_PROG_EGREP])dnl
8148 AC_REQUIRE([AC_PROG_FGREP])dnl
8149 test -z "$GREP" && GREP=grep
8150 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8151 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8152 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8153 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8154 AC_SUBST([GREP])
8155 ])
8156
8157
8158 # _LT_DECL_OBJDUMP
8159 # --------------
8160 # If we don't have a new enough Autoconf to choose the best objdump
8161 # available, choose the one first in the user's PATH.
8162 m4_defun([_LT_DECL_OBJDUMP],
8163 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8164 test -z "$OBJDUMP" && OBJDUMP=objdump
8165 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8166 AC_SUBST([OBJDUMP])
8167 ])
8168
8169 # _LT_DECL_DLLTOOL
8170 # ----------------
8171 # Ensure DLLTOOL variable is set.
8172 m4_defun([_LT_DECL_DLLTOOL],
8173 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8174 test -z "$DLLTOOL" && DLLTOOL=dlltool
8175 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8176 AC_SUBST([DLLTOOL])
8177 ])
8178
8179 # _LT_DECL_FILECMD
8180 # ----------------
8181 # Check for a file(cmd) program that can be used to detect file type and magic
8182 m4_defun([_LT_DECL_FILECMD],
8183 [AC_CHECK_TOOL([FILECMD], [file], [:])
8184 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8185 ])# _LD_DECL_FILECMD
8186
8187 # _LT_DECL_SED
8188 # ------------
8189 # Check for a fully-functional sed program, that truncates
8190 # as few characters as possible. Prefer GNU sed if found.
8191 m4_defun([_LT_DECL_SED],
8192 [AC_PROG_SED
8193 test -z "$SED" && SED=sed
8194 Xsed="$SED -e 1s/^X//"
8195 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8196 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8197 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8198 ])# _LT_DECL_SED
8199
8200 m4_ifndef([AC_PROG_SED], [
8201 # NOTE: This macro has been submitted for inclusion into #
8202 # GNU Autoconf as AC_PROG_SED. When it is available in #
8203 # a released version of Autoconf we should remove this #
8204 # macro and use it instead. #
8205
8206 m4_defun([AC_PROG_SED],
8207 [AC_MSG_CHECKING([for a sed that does not truncate output])
8208 AC_CACHE_VAL(lt_cv_path_SED,
8209 [# Loop through the user's path and test for sed and gsed.
8210 # Then use that list of sed's as ones to test for truncation.
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
8216 for lt_ac_prog in sed gsed; do
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8219 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8220 fi
8221 done
8222 done
8223 done
8224 IFS=$as_save_IFS
8225 lt_ac_max=0
8226 lt_ac_count=0
8227 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8228 # along with /bin/sed that truncates output.
8229 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8230 test ! -f "$lt_ac_sed" && continue
8231 cat /dev/null > conftest.in
8232 lt_ac_count=0
8233 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8234 # Check for GNU sed and select it if it is found.
8235 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8236 lt_cv_path_SED=$lt_ac_sed
8237 break
8238 fi
8239 while true; do
8240 cat conftest.in conftest.in >conftest.tmp
8241 mv conftest.tmp conftest.in
8242 cp conftest.in conftest.nl
8243 echo >>conftest.nl
8244 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8245 cmp -s conftest.out conftest.nl || break
8246 # 10000 chars as input seems more than enough
8247 test 10 -lt "$lt_ac_count" && break
8248 lt_ac_count=`expr $lt_ac_count + 1`
8249 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8250 lt_ac_max=$lt_ac_count
8251 lt_cv_path_SED=$lt_ac_sed
8252 fi
8253 done
8254 done
8255 ])
8256 SED=$lt_cv_path_SED
8257 AC_SUBST([SED])
8258 AC_MSG_RESULT([$SED])
8259 ])#AC_PROG_SED
8260 ])#m4_ifndef
8261
8262 # Old name:
8263 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8264 dnl aclocal-1.4 backwards compatibility:
8265 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8266
8267
8268 # _LT_CHECK_SHELL_FEATURES
8269 # ------------------------
8270 # Find out whether the shell is Bourne or XSI compatible,
8271 # or has some other useful features.
8272 m4_defun([_LT_CHECK_SHELL_FEATURES],
8273 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8274 lt_unset=unset
8275 else
8276 lt_unset=false
8277 fi
8278 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8279
8280 # test EBCDIC or ASCII
8281 case `echo X|tr X '\101'` in
8282 A) # ASCII based system
8283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8284 lt_SP2NL='tr \040 \012'
8285 lt_NL2SP='tr \015\012 \040\040'
8286 ;;
8287 *) # EBCDIC based system
8288 lt_SP2NL='tr \100 \n'
8289 lt_NL2SP='tr \r\n \100\100'
8290 ;;
8291 esac
8292 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8293 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8294 ])# _LT_CHECK_SHELL_FEATURES
8295
8296
8297 # _LT_PATH_CONVERSION_FUNCTIONS
8298 # -----------------------------
8299 # Determine what file name conversion functions should be used by
8300 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8301 # for certain cross-compile configurations and native mingw.
8302 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8303 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8304 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8305 AC_MSG_CHECKING([how to convert $build file names to $host format])
8306 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8307 [case $host in
8308 *-*-mingw* )
8309 case $build in
8310 *-*-mingw* ) # actually msys
8311 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8312 ;;
8313 *-*-cygwin* )
8314 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8315 ;;
8316 * ) # otherwise, assume *nix
8317 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8318 ;;
8319 esac
8320 ;;
8321 *-*-cygwin* )
8322 case $build in
8323 *-*-mingw* ) # actually msys
8324 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8325 ;;
8326 *-*-cygwin* )
8327 lt_cv_to_host_file_cmd=func_convert_file_noop
8328 ;;
8329 * ) # otherwise, assume *nix
8330 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8331 ;;
8332 esac
8333 ;;
8334 * ) # unhandled hosts (and "normal" native builds)
8335 lt_cv_to_host_file_cmd=func_convert_file_noop
8336 ;;
8337 esac
8338 ])
8339 to_host_file_cmd=$lt_cv_to_host_file_cmd
8340 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8341 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8342 [0], [convert $build file names to $host format])dnl
8343
8344 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8345 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8346 [#assume ordinary cross tools, or native build.
8347 lt_cv_to_tool_file_cmd=func_convert_file_noop
8348 case $host in
8349 *-*-mingw* )
8350 case $build in
8351 *-*-mingw* ) # actually msys
8352 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8353 ;;
8354 esac
8355 ;;
8356 esac
8357 ])
8358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8359 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8360 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8361 [0], [convert $build files to toolchain format])dnl
8362 ])# _LT_PATH_CONVERSION_FUNCTIONS
8363
8364 # Helper functions for option handling. -*- Autoconf -*-
8365 #
8366 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
8367 # Software Foundation, Inc.
8368 # Written by Gary V. Vaughan, 2004
8369 #
8370 # This file is free software; the Free Software Foundation gives
8371 # unlimited permission to copy and/or distribute it, with or without
8372 # modifications, as long as this notice is preserved.
8373
8374 # serial 8 ltoptions.m4
8375
8376 # This is to help aclocal find these macros, as it can't see m4_define.
8377 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8378
8379
8380 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8381 # ------------------------------------------
8382 m4_define([_LT_MANGLE_OPTION],
8383 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8384
8385
8386 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8387 # ---------------------------------------
8388 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8389 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8390 # saved as a flag.
8391 m4_define([_LT_SET_OPTION],
8392 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8393 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8394 _LT_MANGLE_DEFUN([$1], [$2]),
8395 [m4_warning([Unknown $1 option '$2'])])[]dnl
8396 ])
8397
8398
8399 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8400 # ------------------------------------------------------------
8401 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8402 m4_define([_LT_IF_OPTION],
8403 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8404
8405
8406 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8407 # -------------------------------------------------------
8408 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8409 # are set.
8410 m4_define([_LT_UNLESS_OPTIONS],
8411 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8412 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8413 [m4_define([$0_found])])])[]dnl
8414 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8415 ])[]dnl
8416 ])
8417
8418
8419 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8420 # ----------------------------------------
8421 # OPTION-LIST is a space-separated list of Libtool options associated
8422 # with MACRO-NAME. If any OPTION has a matching handler declared with
8423 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8424 # the unknown option and exit.
8425 m4_defun([_LT_SET_OPTIONS],
8426 [# Set options
8427 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8428 [_LT_SET_OPTION([$1], _LT_Option)])
8429
8430 m4_if([$1],[LT_INIT],[
8431 dnl
8432 dnl Simply set some default values (i.e off) if boolean options were not
8433 dnl specified:
8434 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8435 ])
8436 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8437 ])
8438 dnl
8439 dnl If no reference was made to various pairs of opposing options, then
8440 dnl we run the default mode handler for the pair. For example, if neither
8441 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8442 dnl archives by default:
8443 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8444 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8445 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8446 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8447 [_LT_ENABLE_FAST_INSTALL])
8448 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8449 [_LT_WITH_AIX_SONAME([aix])])
8450 ])
8451 ])# _LT_SET_OPTIONS
8452
8453
8454
8455 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8456 # -----------------------------------------
8457 m4_define([_LT_MANGLE_DEFUN],
8458 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8459
8460
8461 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8462 # -----------------------------------------------
8463 m4_define([LT_OPTION_DEFINE],
8464 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8465 ])# LT_OPTION_DEFINE
8466
8467
8468 # dlopen
8469 # ------
8470 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8471 ])
8472
8473 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8474 [_LT_SET_OPTION([LT_INIT], [dlopen])
8475 AC_DIAGNOSE([obsolete],
8476 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8477 put the 'dlopen' option into LT_INIT's first parameter.])
8478 ])
8479
8480 dnl aclocal-1.4 backwards compatibility:
8481 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8482
8483
8484 # win32-dll
8485 # ---------
8486 # Declare package support for building win32 dll's.
8487 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8488 [enable_win32_dll=yes
8489
8490 case $host in
8491 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8492 AC_CHECK_TOOL(AS, as, false)
8493 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8494 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8495 ;;
8496 esac
8497
8498 test -z "$AS" && AS=as
8499 _LT_DECL([], [AS], [1], [Assembler program])dnl
8500
8501 test -z "$DLLTOOL" && DLLTOOL=dlltool
8502 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8503
8504 test -z "$OBJDUMP" && OBJDUMP=objdump
8505 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8506 ])# win32-dll
8507
8508 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8509 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8510 _LT_SET_OPTION([LT_INIT], [win32-dll])
8511 AC_DIAGNOSE([obsolete],
8512 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8513 put the 'win32-dll' option into LT_INIT's first parameter.])
8514 ])
8515
8516 dnl aclocal-1.4 backwards compatibility:
8517 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8518
8519
8520 # _LT_ENABLE_SHARED([DEFAULT])
8521 # ----------------------------
8522 # implement the --enable-shared flag, and supports the 'shared' and
8523 # 'disable-shared' LT_INIT options.
8524 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8525 m4_define([_LT_ENABLE_SHARED],
8526 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8527 AC_ARG_ENABLE([shared],
8528 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8529 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8530 [p=${PACKAGE-default}
8531 case $enableval in
8532 yes) enable_shared=yes ;;
8533 no) enable_shared=no ;;
8534 *)
8535 enable_shared=no
8536 # Look at the argument we got. We use all the common list separators.
8537 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8538 for pkg in $enableval; do
8539 IFS=$lt_save_ifs
8540 if test "X$pkg" = "X$p"; then
8541 enable_shared=yes
8542 fi
8543 done
8544 IFS=$lt_save_ifs
8545 ;;
8546 esac],
8547 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8548
8549 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8550 [Whether or not to build shared libraries])
8551 ])# _LT_ENABLE_SHARED
8552
8553 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8554 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8555
8556 # Old names:
8557 AC_DEFUN([AC_ENABLE_SHARED],
8558 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8559 ])
8560
8561 AC_DEFUN([AC_DISABLE_SHARED],
8562 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8563 ])
8564
8565 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8566 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8567
8568 dnl aclocal-1.4 backwards compatibility:
8569 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8570 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8571
8572
8573
8574 # _LT_ENABLE_STATIC([DEFAULT])
8575 # ----------------------------
8576 # implement the --enable-static flag, and support the 'static' and
8577 # 'disable-static' LT_INIT options.
8578 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8579 m4_define([_LT_ENABLE_STATIC],
8580 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8581 AC_ARG_ENABLE([static],
8582 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8583 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8584 [p=${PACKAGE-default}
8585 case $enableval in
8586 yes) enable_static=yes ;;
8587 no) enable_static=no ;;
8588 *)
8589 enable_static=no
8590 # Look at the argument we got. We use all the common list separators.
8591 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8592 for pkg in $enableval; do
8593 IFS=$lt_save_ifs
8594 if test "X$pkg" = "X$p"; then
8595 enable_static=yes
8596 fi
8597 done
8598 IFS=$lt_save_ifs
8599 ;;
8600 esac],
8601 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8602
8603 _LT_DECL([build_old_libs], [enable_static], [0],
8604 [Whether or not to build static libraries])
8605 ])# _LT_ENABLE_STATIC
8606
8607 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8608 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8609
8610 # Old names:
8611 AC_DEFUN([AC_ENABLE_STATIC],
8612 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8613 ])
8614
8615 AC_DEFUN([AC_DISABLE_STATIC],
8616 [_LT_SET_OPTION([LT_INIT], [disable-static])
8617 ])
8618
8619 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8620 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8621
8622 dnl aclocal-1.4 backwards compatibility:
8623 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8624 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8625
8626
8627
8628 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8629 # ----------------------------------
8630 # implement the --enable-fast-install flag, and support the 'fast-install'
8631 # and 'disable-fast-install' LT_INIT options.
8632 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
8633 m4_define([_LT_ENABLE_FAST_INSTALL],
8634 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8635 AC_ARG_ENABLE([fast-install],
8636 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8637 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8638 [p=${PACKAGE-default}
8639 case $enableval in
8640 yes) enable_fast_install=yes ;;
8641 no) enable_fast_install=no ;;
8642 *)
8643 enable_fast_install=no
8644 # Look at the argument we got. We use all the common list separators.
8645 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8646 for pkg in $enableval; do
8647 IFS=$lt_save_ifs
8648 if test "X$pkg" = "X$p"; then
8649 enable_fast_install=yes
8650 fi
8651 done
8652 IFS=$lt_save_ifs
8653 ;;
8654 esac],
8655 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8656
8657 _LT_DECL([fast_install], [enable_fast_install], [0],
8658 [Whether or not to optimize for fast installation])dnl
8659 ])# _LT_ENABLE_FAST_INSTALL
8660
8661 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8662 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8663
8664 # Old names:
8665 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8666 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8667 AC_DIAGNOSE([obsolete],
8668 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8669 the 'fast-install' option into LT_INIT's first parameter.])
8670 ])
8671
8672 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8673 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8674 AC_DIAGNOSE([obsolete],
8675 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8676 the 'disable-fast-install' option into LT_INIT's first parameter.])
8677 ])
8678
8679 dnl aclocal-1.4 backwards compatibility:
8680 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8681 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8682
8683
8684 # _LT_WITH_AIX_SONAME([DEFAULT])
8685 # ----------------------------------
8686 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
8687 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
8688 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
8689 m4_define([_LT_WITH_AIX_SONAME],
8690 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
8691 shared_archive_member_spec=
8692 case $host,$enable_shared in
8693 power*-*-aix[[5-9]]*,yes)
8694 AC_MSG_CHECKING([which variant of shared library versioning to provide])
8695 AC_ARG_WITH([aix-soname],
8696 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
8697 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
8698 [case $withval in
8699 aix|svr4|both)
8700 ;;
8701 *)
8702 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
8703 ;;
8704 esac
8705 lt_cv_with_aix_soname=$with_aix_soname],
8706 [AC_CACHE_VAL([lt_cv_with_aix_soname],
8707 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
8708 with_aix_soname=$lt_cv_with_aix_soname])
8709 AC_MSG_RESULT([$with_aix_soname])
8710 if test aix != "$with_aix_soname"; then
8711 # For the AIX way of multilib, we name the shared archive member
8712 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8713 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8714 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8715 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8716 if test 64 = "${OBJECT_MODE-32}"; then
8717 shared_archive_member_spec=shr_64
8718 else
8719 shared_archive_member_spec=shr
8720 fi
8721 fi
8722 ;;
8723 *)
8724 with_aix_soname=aix
8725 ;;
8726 esac
8727
8728 _LT_DECL([], [shared_archive_member_spec], [0],
8729 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
8730 ])# _LT_WITH_AIX_SONAME
8731
8732 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
8733 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
8734 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8735
8736
8737 # _LT_WITH_PIC([MODE])
8738 # --------------------
8739 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8740 # LT_INIT options.
8741 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
8742 m4_define([_LT_WITH_PIC],
8743 [AC_ARG_WITH([pic],
8744 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8745 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8746 [lt_p=${PACKAGE-default}
8747 case $withval in
8748 yes|no) pic_mode=$withval ;;
8749 *)
8750 pic_mode=default
8751 # Look at the argument we got. We use all the common list separators.
8752 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8753 for lt_pkg in $withval; do
8754 IFS=$lt_save_ifs
8755 if test "X$lt_pkg" = "X$lt_p"; then
8756 pic_mode=yes
8757 fi
8758 done
8759 IFS=$lt_save_ifs
8760 ;;
8761 esac],
8762 [pic_mode=m4_default([$1], [default])])
8763
8764 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8765 ])# _LT_WITH_PIC
8766
8767 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8768 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8769
8770 # Old name:
8771 AU_DEFUN([AC_LIBTOOL_PICMODE],
8772 [_LT_SET_OPTION([LT_INIT], [pic-only])
8773 AC_DIAGNOSE([obsolete],
8774 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8775 put the 'pic-only' option into LT_INIT's first parameter.])
8776 ])
8777
8778 dnl aclocal-1.4 backwards compatibility:
8779 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8780
8781
8782 m4_define([_LTDL_MODE], [])
8783 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8784 [m4_define([_LTDL_MODE], [nonrecursive])])
8785 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8786 [m4_define([_LTDL_MODE], [recursive])])
8787 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8788 [m4_define([_LTDL_MODE], [subproject])])
8789
8790 m4_define([_LTDL_TYPE], [])
8791 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8792 [m4_define([_LTDL_TYPE], [installable])])
8793 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8794 [m4_define([_LTDL_TYPE], [convenience])])
8795
8796 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8797 #
8798 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
8799 # Foundation, Inc.
8800 # Written by Gary V. Vaughan, 2004
8801 #
8802 # This file is free software; the Free Software Foundation gives
8803 # unlimited permission to copy and/or distribute it, with or without
8804 # modifications, as long as this notice is preserved.
8805
8806 # serial 6 ltsugar.m4
8807
8808 # This is to help aclocal find these macros, as it can't see m4_define.
8809 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8810
8811
8812 # lt_join(SEP, ARG1, [ARG2...])
8813 # -----------------------------
8814 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8815 # associated separator.
8816 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8817 # versions in m4sugar had bugs.
8818 m4_define([lt_join],
8819 [m4_if([$#], [1], [],
8820 [$#], [2], [[$2]],
8821 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8822 m4_define([_lt_join],
8823 [m4_if([$#$2], [2], [],
8824 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8825
8826
8827 # lt_car(LIST)
8828 # lt_cdr(LIST)
8829 # ------------
8830 # Manipulate m4 lists.
8831 # These macros are necessary as long as will still need to support
8832 # Autoconf-2.59, which quotes differently.
8833 m4_define([lt_car], [[$1]])
8834 m4_define([lt_cdr],
8835 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8836 [$#], 1, [],
8837 [m4_dquote(m4_shift($@))])])
8838 m4_define([lt_unquote], $1)
8839
8840
8841 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8842 # ------------------------------------------
8843 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
8844 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8845 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8846 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8847 # than defined and empty).
8848 #
8849 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8850 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8851 m4_define([lt_append],
8852 [m4_define([$1],
8853 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8854
8855
8856
8857 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8858 # ----------------------------------------------------------
8859 # Produce a SEP delimited list of all paired combinations of elements of
8860 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8861 # has the form PREFIXmINFIXSUFFIXn.
8862 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8863 m4_define([lt_combine],
8864 [m4_if(m4_eval([$# > 3]), [1],
8865 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8866 [[m4_foreach([_Lt_prefix], [$2],
8867 [m4_foreach([_Lt_suffix],
8868 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8869 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8870
8871
8872 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8873 # -----------------------------------------------------------------------
8874 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8875 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8876 m4_define([lt_if_append_uniq],
8877 [m4_ifdef([$1],
8878 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8879 [lt_append([$1], [$2], [$3])$4],
8880 [$5])],
8881 [lt_append([$1], [$2], [$3])$4])])
8882
8883
8884 # lt_dict_add(DICT, KEY, VALUE)
8885 # -----------------------------
8886 m4_define([lt_dict_add],
8887 [m4_define([$1($2)], [$3])])
8888
8889
8890 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8891 # --------------------------------------------
8892 m4_define([lt_dict_add_subkey],
8893 [m4_define([$1($2:$3)], [$4])])
8894
8895
8896 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8897 # ----------------------------------
8898 m4_define([lt_dict_fetch],
8899 [m4_ifval([$3],
8900 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8901 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8902
8903
8904 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8905 # -----------------------------------------------------------------
8906 m4_define([lt_if_dict_fetch],
8907 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8908 [$5],
8909 [$6])])
8910
8911
8912 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8913 # --------------------------------------------------------------
8914 m4_define([lt_dict_filter],
8915 [m4_if([$5], [], [],
8916 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8917 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8918 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8919 ])
8920
8921 # ltversion.m4 -- version numbers -*- Autoconf -*-
8922 #
8923 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
8924 # Inc.
8925 # Written by Scott James Remnant, 2004
8926 #
8927 # This file is free software; the Free Software Foundation gives
8928 # unlimited permission to copy and/or distribute it, with or without
8929 # modifications, as long as this notice is preserved.
8930
8931 # @configure_input@
8932
8933 # serial 4245 ltversion.m4
8934 # This file is part of GNU Libtool
8935
8936 m4_define([LT_PACKAGE_VERSION], [2.4.7])
8937 m4_define([LT_PACKAGE_REVISION], [2.4.7])
8938
8939 AC_DEFUN([LTVERSION_VERSION],
8940 [macro_version='2.4.7'
8941 macro_revision='2.4.7'
8942 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8943 _LT_DECL(, macro_revision, 0)
8944 ])
8945
8946 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8947 #
8948 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
8949 # Software Foundation, Inc.
8950 # Written by Scott James Remnant, 2004.
8951 #
8952 # This file is free software; the Free Software Foundation gives
8953 # unlimited permission to copy and/or distribute it, with or without
8954 # modifications, as long as this notice is preserved.
8955
8956 # serial 5 lt~obsolete.m4
8957
8958 # These exist entirely to fool aclocal when bootstrapping libtool.
8959 #
8960 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
8961 # which have later been changed to m4_define as they aren't part of the
8962 # exported API, or moved to Autoconf or Automake where they belong.
8963 #
8964 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8965 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8966 # using a macro with the same name in our local m4/libtool.m4 it'll
8967 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8968 # and doesn't know about Autoconf macros at all.)
8969 #
8970 # So we provide this file, which has a silly filename so it's always
8971 # included after everything else. This provides aclocal with the
8972 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8973 # because those macros already exist, or will be overwritten later.
8974 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8975 #
8976 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8977 # Yes, that means every name once taken will need to remain here until
8978 # we give up compatibility with versions before 1.7, at which point
8979 # we need to keep only those names which we still refer to.
8980
8981 # This is to help aclocal find these macros, as it can't see m4_define.
8982 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8983
8984 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8985 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8986 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8987 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8988 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8989 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8990 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8991 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8992 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8993 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8994 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8995 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8996 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8997 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8998 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8999 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9000 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9001 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9002 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9003 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9004 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9005 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9006 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9007 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9008 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9009 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9010 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9011 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9012 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9013 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9014 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9015 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9016 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9017 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9018 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9019 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9020 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9021 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9022 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9023 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9024 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9025 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9026 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9027 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9028 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9029 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9030 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9031 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9032 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9033 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9034 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9035 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9036 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9037 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9038 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9039 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9040 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9041 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9042 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9043 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9044 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9045
9046 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
9047 #
9048 # This file is free software; the Free Software Foundation
9049 # gives unlimited permission to copy and/or distribute it,
9050 # with or without modifications, as long as this notice is preserved.
9051
9052 # AM_AUTOMAKE_VERSION(VERSION)
9053 # ----------------------------
9054 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9055 # generated from the m4 files accompanying Automake X.Y.
9056 # (This private macro should not be called outside this file.)
9057 AC_DEFUN([AM_AUTOMAKE_VERSION],
9058 [am__api_version='1.16'
9059 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9060 dnl require some minimum version. Point them to the right macro.
9061 m4_if([$1], [1.16.5], [],
9062 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9063 ])
9064
9065 # _AM_AUTOCONF_VERSION(VERSION)
9066 # -----------------------------
9067 # aclocal traces this macro to find the Autoconf version.
9068 # This is a private macro too. Using m4_define simplifies
9069 # the logic in aclocal, which can simply ignore this definition.
9070 m4_define([_AM_AUTOCONF_VERSION], [])
9071
9072 # AM_SET_CURRENT_AUTOMAKE_VERSION
9073 # -------------------------------
9074 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9075 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9076 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9077 [AM_AUTOMAKE_VERSION([1.16.5])dnl
9078 m4_ifndef([AC_AUTOCONF_VERSION],
9079 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9080 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9081
9082 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
9083 #
9084 # This file is free software; the Free Software Foundation
9085 # gives unlimited permission to copy and/or distribute it,
9086 # with or without modifications, as long as this notice is preserved.
9087
9088 # AM_PROG_AR([ACT-IF-FAIL])
9089 # -------------------------
9090 # Try to determine the archiver interface, and trigger the ar-lib wrapper
9091 # if it is needed. If the detection of archiver interface fails, run
9092 # ACT-IF-FAIL (default is to abort configure with a proper error message).
9093 AC_DEFUN([AM_PROG_AR],
9094 [AC_BEFORE([$0], [LT_INIT])dnl
9095 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
9096 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9097 AC_REQUIRE_AUX_FILE([ar-lib])dnl
9098 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
9099 : ${AR=ar}
9100
9101 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
9102 [AC_LANG_PUSH([C])
9103 am_cv_ar_interface=ar
9104 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
9105 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
9106 AC_TRY_EVAL([am_ar_try])
9107 if test "$ac_status" -eq 0; then
9108 am_cv_ar_interface=ar
9109 else
9110 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
9111 AC_TRY_EVAL([am_ar_try])
9112 if test "$ac_status" -eq 0; then
9113 am_cv_ar_interface=lib
9114 else
9115 am_cv_ar_interface=unknown
9116 fi
9117 fi
9118 rm -f conftest.lib libconftest.a
9119 ])
9120 AC_LANG_POP([C])])
9121
9122 case $am_cv_ar_interface in
9123 ar)
9124 ;;
9125 lib)
9126 # Microsoft lib, so override with the ar-lib wrapper script.
9127 # FIXME: It is wrong to rewrite AR.
9128 # But if we don't then we get into trouble of one sort or another.
9129 # A longer-term fix would be to have automake use am__AR in this case,
9130 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9131 # similar.
9132 AR="$am_aux_dir/ar-lib $AR"
9133 ;;
9134 unknown)
9135 m4_default([$1],
9136 [AC_MSG_ERROR([could not determine $AR interface])])
9137 ;;
9138 esac
9139 AC_SUBST([AR])dnl
9140 ])
9141
9142 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9143
9144 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9145 #
9146 # This file is free software; the Free Software Foundation
9147 # gives unlimited permission to copy and/or distribute it,
9148 # with or without modifications, as long as this notice is preserved.
9149
9150 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9151 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
9152 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9153 #
9154 # Of course, Automake must honor this variable whenever it calls a
9155 # tool from the auxiliary directory. The problem is that $srcdir (and
9156 # therefore $ac_aux_dir as well) can be either absolute or relative,
9157 # depending on how configure is run. This is pretty annoying, since
9158 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9159 # source directory, any form will work fine, but in subdirectories a
9160 # relative path needs to be adjusted first.
9161 #
9162 # $ac_aux_dir/missing
9163 # fails when called from a subdirectory if $ac_aux_dir is relative
9164 # $top_srcdir/$ac_aux_dir/missing
9165 # fails if $ac_aux_dir is absolute,
9166 # fails when called from a subdirectory in a VPATH build with
9167 # a relative $ac_aux_dir
9168 #
9169 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9170 # are both prefixed by $srcdir. In an in-source build this is usually
9171 # harmless because $srcdir is '.', but things will broke when you
9172 # start a VPATH build or use an absolute $srcdir.
9173 #
9174 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9175 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9176 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9177 # and then we would define $MISSING as
9178 # MISSING="\${SHELL} $am_aux_dir/missing"
9179 # This will work as long as MISSING is not called from configure, because
9180 # unfortunately $(top_srcdir) has no meaning in configure.
9181 # However there are other variables, like CC, which are often used in
9182 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9183 #
9184 # Another solution, used here, is to always expand $ac_aux_dir to an
9185 # absolute PATH. The drawback is that using absolute paths prevent a
9186 # configured tree to be moved without reconfiguration.
9187
9188 AC_DEFUN([AM_AUX_DIR_EXPAND],
9189 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9190 # Expand $ac_aux_dir to an absolute path.
9191 am_aux_dir=`cd "$ac_aux_dir" && pwd`
9192 ])
9193
9194 # AM_CONDITIONAL -*- Autoconf -*-
9195
9196 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
9197 #
9198 # This file is free software; the Free Software Foundation
9199 # gives unlimited permission to copy and/or distribute it,
9200 # with or without modifications, as long as this notice is preserved.
9201
9202 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9203 # -------------------------------------
9204 # Define a conditional.
9205 AC_DEFUN([AM_CONDITIONAL],
9206 [AC_PREREQ([2.52])dnl
9207 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9208 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9209 AC_SUBST([$1_TRUE])dnl
9210 AC_SUBST([$1_FALSE])dnl
9211 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9212 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9213 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9214 if $2; then
9215 $1_TRUE=
9216 $1_FALSE='#'
9217 else
9218 $1_TRUE='#'
9219 $1_FALSE=
9220 fi
9221 AC_CONFIG_COMMANDS_PRE(
9222 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9223 AC_MSG_ERROR([[conditional "$1" was never defined.
9224 Usually this means the macro was only invoked conditionally.]])
9225 fi])])
9226
9227 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
9228 #
9229 # This file is free software; the Free Software Foundation
9230 # gives unlimited permission to copy and/or distribute it,
9231 # with or without modifications, as long as this notice is preserved.
9232
9233
9234 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9235 # written in clear, in which case automake, when reading aclocal.m4,
9236 # will think it sees a *use*, and therefore will trigger all it's
9237 # C support machinery. Also note that it means that autoscan, seeing
9238 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9239
9240
9241 # _AM_DEPENDENCIES(NAME)
9242 # ----------------------
9243 # See how the compiler implements dependency checking.
9244 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9245 # We try a few techniques and use that to set a single cache variable.
9246 #
9247 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9248 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9249 # dependency, and given that the user is not expected to run this macro,
9250 # just rely on AC_PROG_CC.
9251 AC_DEFUN([_AM_DEPENDENCIES],
9252 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9253 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9254 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9255 AC_REQUIRE([AM_DEP_TRACK])dnl
9256
9257 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
9258 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
9259 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9260 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9261 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
9262 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9263 [depcc="$$1" am_compiler_list=])
9264
9265 AC_CACHE_CHECK([dependency style of $depcc],
9266 [am_cv_$1_dependencies_compiler_type],
9267 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9268 # We make a subdir and do the tests there. Otherwise we can end up
9269 # making bogus files that we don't know about and never remove. For
9270 # instance it was reported that on HP-UX the gcc test will end up
9271 # making a dummy file named 'D' -- because '-MD' means "put the output
9272 # in D".
9273 rm -rf conftest.dir
9274 mkdir conftest.dir
9275 # Copy depcomp to subdir because otherwise we won't find it if we're
9276 # using a relative directory.
9277 cp "$am_depcomp" conftest.dir
9278 cd conftest.dir
9279 # We will build objects and dependencies in a subdirectory because
9280 # it helps to detect inapplicable dependency modes. For instance
9281 # both Tru64's cc and ICC support -MD to output dependencies as a
9282 # side effect of compilation, but ICC will put the dependencies in
9283 # the current directory while Tru64 will put them in the object
9284 # directory.
9285 mkdir sub
9286
9287 am_cv_$1_dependencies_compiler_type=none
9288 if test "$am_compiler_list" = ""; then
9289 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9290 fi
9291 am__universal=false
9292 m4_case([$1], [CC],
9293 [case " $depcc " in #(
9294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9295 esac],
9296 [CXX],
9297 [case " $depcc " in #(
9298 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9299 esac])
9300
9301 for depmode in $am_compiler_list; do
9302 # Setup a source with many dependencies, because some compilers
9303 # like to wrap large dependency lists on column 80 (with \), and
9304 # we should not choose a depcomp mode which is confused by this.
9305 #
9306 # We need to recreate these files for each test, as the compiler may
9307 # overwrite some of them when testing with obscure command lines.
9308 # This happens at least with the AIX C compiler.
9309 : > sub/conftest.c
9310 for i in 1 2 3 4 5 6; do
9311 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9312 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9313 # Solaris 10 /bin/sh.
9314 echo '/* dummy */' > sub/conftst$i.h
9315 done
9316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9317
9318 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9319 # mode. It turns out that the SunPro C++ compiler does not properly
9320 # handle '-M -o', and we need to detect this. Also, some Intel
9321 # versions had trouble with output in subdirs.
9322 am__obj=sub/conftest.${OBJEXT-o}
9323 am__minus_obj="-o $am__obj"
9324 case $depmode in
9325 gcc)
9326 # This depmode causes a compiler race in universal mode.
9327 test "$am__universal" = false || continue
9328 ;;
9329 nosideeffect)
9330 # After this tag, mechanisms are not by side-effect, so they'll
9331 # only be used when explicitly requested.
9332 if test "x$enable_dependency_tracking" = xyes; then
9333 continue
9334 else
9335 break
9336 fi
9337 ;;
9338 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9339 # This compiler won't grok '-c -o', but also, the minuso test has
9340 # not run yet. These depmodes are late enough in the game, and
9341 # so weak that their functioning should not be impacted.
9342 am__obj=conftest.${OBJEXT-o}
9343 am__minus_obj=
9344 ;;
9345 none) break ;;
9346 esac
9347 if depmode=$depmode \
9348 source=sub/conftest.c object=$am__obj \
9349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9351 >/dev/null 2>conftest.err &&
9352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9356 # icc doesn't choke on unknown options, it will just issue warnings
9357 # or remarks (even with -Werror). So we grep stderr for any message
9358 # that says an option was ignored or not supported.
9359 # When given -MP, icc 7.0 and 7.1 complain thusly:
9360 # icc: Command line warning: ignoring option '-M'; no argument required
9361 # The diagnosis changed in icc 8.0:
9362 # icc: Command line remark: option '-MP' not supported
9363 if (grep 'ignoring option' conftest.err ||
9364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9365 am_cv_$1_dependencies_compiler_type=$depmode
9366 break
9367 fi
9368 fi
9369 done
9370
9371 cd ..
9372 rm -rf conftest.dir
9373 else
9374 am_cv_$1_dependencies_compiler_type=none
9375 fi
9376 ])
9377 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9378 AM_CONDITIONAL([am__fastdep$1], [
9379 test "x$enable_dependency_tracking" != xno \
9380 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9381 ])
9382
9383
9384 # AM_SET_DEPDIR
9385 # -------------
9386 # Choose a directory name for dependency files.
9387 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9388 AC_DEFUN([AM_SET_DEPDIR],
9389 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9390 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9391 ])
9392
9393
9394 # AM_DEP_TRACK
9395 # ------------
9396 AC_DEFUN([AM_DEP_TRACK],
9397 [AC_ARG_ENABLE([dependency-tracking], [dnl
9398 AS_HELP_STRING(
9399 [--enable-dependency-tracking],
9400 [do not reject slow dependency extractors])
9401 AS_HELP_STRING(
9402 [--disable-dependency-tracking],
9403 [speeds up one-time build])])
9404 if test "x$enable_dependency_tracking" != xno; then
9405 am_depcomp="$ac_aux_dir/depcomp"
9406 AMDEPBACKSLASH='\'
9407 am__nodep='_no'
9408 fi
9409 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9410 AC_SUBST([AMDEPBACKSLASH])dnl
9411 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9412 AC_SUBST([am__nodep])dnl
9413 _AM_SUBST_NOTMAKE([am__nodep])dnl
9414 ])
9415
9416 # Generate code to set up dependency tracking. -*- Autoconf -*-
9417
9418 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
9419 #
9420 # This file is free software; the Free Software Foundation
9421 # gives unlimited permission to copy and/or distribute it,
9422 # with or without modifications, as long as this notice is preserved.
9423
9424 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9425 # ------------------------------
9426 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9427 [{
9428 # Older Autoconf quotes --file arguments for eval, but not when files
9429 # are listed without --file. Let's play safe and only enable the eval
9430 # if we detect the quoting.
9431 # TODO: see whether this extra hack can be removed once we start
9432 # requiring Autoconf 2.70 or later.
9433 AS_CASE([$CONFIG_FILES],
9434 [*\'*], [eval set x "$CONFIG_FILES"],
9435 [*], [set x $CONFIG_FILES])
9436 shift
9437 # Used to flag and report bootstrapping failures.
9438 am_rc=0
9439 for am_mf
9440 do
9441 # Strip MF so we end up with the name of the file.
9442 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
9443 # Check whether this is an Automake generated Makefile which includes
9444 # dependency-tracking related rules and includes.
9445 # Grep'ing the whole file directly is not great: AIX grep has a line
9446 # limit of 2048, but all sed's we know have understand at least 4000.
9447 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9448 || continue
9449 am_dirpart=`AS_DIRNAME(["$am_mf"])`
9450 am_filepart=`AS_BASENAME(["$am_mf"])`
9451 AM_RUN_LOG([cd "$am_dirpart" \
9452 && sed -e '/# am--include-marker/d' "$am_filepart" \
9453 | $MAKE -f - am--depfiles]) || am_rc=$?
9454 done
9455 if test $am_rc -ne 0; then
9456 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
9457 for automatic dependency tracking. If GNU make was not used, consider
9458 re-running the configure script with MAKE="gmake" (or whatever is
9459 necessary). You can also try re-running configure with the
9460 '--disable-dependency-tracking' option to at least be able to build
9461 the package (albeit without support for automatic dependency tracking).])
9462 fi
9463 AS_UNSET([am_dirpart])
9464 AS_UNSET([am_filepart])
9465 AS_UNSET([am_mf])
9466 AS_UNSET([am_rc])
9467 rm -f conftest-deps.mk
9468 }
9469 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9470
9471
9472 # AM_OUTPUT_DEPENDENCY_COMMANDS
9473 # -----------------------------
9474 # This macro should only be invoked once -- use via AC_REQUIRE.
9475 #
9476 # This code is only required when automatic dependency tracking is enabled.
9477 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
9478 # order to bootstrap the dependency handling code.
9479 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9480 [AC_CONFIG_COMMANDS([depfiles],
9481 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9482 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
9483
9484 # Do all the work for Automake. -*- Autoconf -*-
9485
9486 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
9487 #
9488 # This file is free software; the Free Software Foundation
9489 # gives unlimited permission to copy and/or distribute it,
9490 # with or without modifications, as long as this notice is preserved.
9491
9492 # This macro actually does too much. Some checks are only needed if
9493 # your package does certain things. But this isn't really a big deal.
9494
9495 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9496 m4_define([AC_PROG_CC],
9497 m4_defn([AC_PROG_CC])
9498 [_AM_PROG_CC_C_O
9499 ])
9500
9501 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9502 # AM_INIT_AUTOMAKE([OPTIONS])
9503 # -----------------------------------------------
9504 # The call with PACKAGE and VERSION arguments is the old style
9505 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9506 # and VERSION should now be passed to AC_INIT and removed from
9507 # the call to AM_INIT_AUTOMAKE.
9508 # We support both call styles for the transition. After
9509 # the next Automake release, Autoconf can make the AC_INIT
9510 # arguments mandatory, and then we can depend on a new Autoconf
9511 # release and drop the old call support.
9512 AC_DEFUN([AM_INIT_AUTOMAKE],
9513 [AC_PREREQ([2.65])dnl
9514 m4_ifdef([_$0_ALREADY_INIT],
9515 [m4_fatal([$0 expanded multiple times
9516 ]m4_defn([_$0_ALREADY_INIT]))],
9517 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
9518 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9519 dnl the ones we care about.
9520 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9521 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9522 AC_REQUIRE([AC_PROG_INSTALL])dnl
9523 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9524 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9525 # is not polluted with repeated "-I."
9526 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9527 # test to see if srcdir already configured
9528 if test -f $srcdir/config.status; then
9529 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9530 fi
9531 fi
9532
9533 # test whether we have cygpath
9534 if test -z "$CYGPATH_W"; then
9535 if (cygpath --version) >/dev/null 2>/dev/null; then
9536 CYGPATH_W='cygpath -w'
9537 else
9538 CYGPATH_W=echo
9539 fi
9540 fi
9541 AC_SUBST([CYGPATH_W])
9542
9543 # Define the identity of the package.
9544 dnl Distinguish between old-style and new-style calls.
9545 m4_ifval([$2],
9546 [AC_DIAGNOSE([obsolete],
9547 [$0: two- and three-arguments forms are deprecated.])
9548 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9549 AC_SUBST([PACKAGE], [$1])dnl
9550 AC_SUBST([VERSION], [$2])],
9551 [_AM_SET_OPTIONS([$1])dnl
9552 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9553 m4_if(
9554 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
9555 [ok:ok],,
9556 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9557 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9558 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9559
9560 _AM_IF_OPTION([no-define],,
9561 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9562 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9563
9564 # Some tools Automake needs.
9565 AC_REQUIRE([AM_SANITY_CHECK])dnl
9566 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9567 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9568 AM_MISSING_PROG([AUTOCONF], [autoconf])
9569 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9570 AM_MISSING_PROG([AUTOHEADER], [autoheader])
9571 AM_MISSING_PROG([MAKEINFO], [makeinfo])
9572 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9573 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9574 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9575 # For better backward compatibility. To be removed once Automake 1.9.x
9576 # dies out for good. For more background, see:
9577 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9578 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9579 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9580 # We need awk for the "check" target (and possibly the TAP driver). The
9581 # system "awk" is bad on some platforms.
9582 AC_REQUIRE([AC_PROG_AWK])dnl
9583 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9584 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9585 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9586 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9587 [_AM_PROG_TAR([v7])])])
9588 _AM_IF_OPTION([no-dependencies],,
9589 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9590 [_AM_DEPENDENCIES([CC])],
9591 [m4_define([AC_PROG_CC],
9592 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9593 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9594 [_AM_DEPENDENCIES([CXX])],
9595 [m4_define([AC_PROG_CXX],
9596 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9597 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9598 [_AM_DEPENDENCIES([OBJC])],
9599 [m4_define([AC_PROG_OBJC],
9600 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9601 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9602 [_AM_DEPENDENCIES([OBJCXX])],
9603 [m4_define([AC_PROG_OBJCXX],
9604 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9605 ])
9606 # Variables for tags utilities; see am/tags.am
9607 if test -z "$CTAGS"; then
9608 CTAGS=ctags
9609 fi
9610 AC_SUBST([CTAGS])
9611 if test -z "$ETAGS"; then
9612 ETAGS=etags
9613 fi
9614 AC_SUBST([ETAGS])
9615 if test -z "$CSCOPE"; then
9616 CSCOPE=cscope
9617 fi
9618 AC_SUBST([CSCOPE])
9619
9620 AC_REQUIRE([AM_SILENT_RULES])dnl
9621 dnl The testsuite driver may need to know about EXEEXT, so add the
9622 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9623 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9624 AC_CONFIG_COMMANDS_PRE(dnl
9625 [m4_provide_if([_AM_COMPILER_EXEEXT],
9626 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9627
9628 # POSIX will say in a future version that running "rm -f" with no argument
9629 # is OK; and we want to be able to make that assumption in our Makefile
9630 # recipes. So use an aggressive probe to check that the usage we want is
9631 # actually supported "in the wild" to an acceptable degree.
9632 # See automake bug#10828.
9633 # To make any issue more visible, cause the running configure to be aborted
9634 # by default if the 'rm' program in use doesn't match our expectations; the
9635 # user can still override this though.
9636 if rm -f && rm -fr && rm -rf; then : OK; else
9637 cat >&2 <<'END'
9638 Oops!
9639
9640 Your 'rm' program seems unable to run without file operands specified
9641 on the command line, even when the '-f' option is present. This is contrary
9642 to the behaviour of most rm programs out there, and not conforming with
9643 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9644
9645 Please tell bug-automake@gnu.org about your system, including the value
9646 of your $PATH and any error possibly output before this message. This
9647 can help us improve future automake versions.
9648
9649 END
9650 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9651 echo 'Configuration will proceed anyway, since you have set the' >&2
9652 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9653 echo >&2
9654 else
9655 cat >&2 <<'END'
9656 Aborting the configuration process, to ensure you take notice of the issue.
9657
9658 You can download and install GNU coreutils to get an 'rm' implementation
9659 that behaves properly: <https://www.gnu.org/software/coreutils/>.
9660
9661 If you want to complete the configuration process using your problematic
9662 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9663 to "yes", and re-run configure.
9664
9665 END
9666 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9667 fi
9668 fi
9669 dnl The trailing newline in this macro's definition is deliberate, for
9670 dnl backward compatibility and to allow trailing 'dnl'-style comments
9671 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
9672 ])
9673
9674 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9675 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9676 dnl mangled by Autoconf and run in a shell conditional statement.
9677 m4_define([_AC_COMPILER_EXEEXT],
9678 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9679
9680 # When config.status generates a header, we must update the stamp-h file.
9681 # This file resides in the same directory as the config header
9682 # that is generated. The stamp files are numbered to have different names.
9683
9684 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9685 # loop where config.status creates the headers, so we can generate
9686 # our stamp files there.
9687 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9688 [# Compute $1's index in $config_headers.
9689 _am_arg=$1
9690 _am_stamp_count=1
9691 for _am_header in $config_headers :; do
9692 case $_am_header in
9693 $_am_arg | $_am_arg:* )
9694 break ;;
9695 * )
9696 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9697 esac
9698 done
9699 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9700
9701 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9702 #
9703 # This file is free software; the Free Software Foundation
9704 # gives unlimited permission to copy and/or distribute it,
9705 # with or without modifications, as long as this notice is preserved.
9706
9707 # AM_PROG_INSTALL_SH
9708 # ------------------
9709 # Define $install_sh.
9710 AC_DEFUN([AM_PROG_INSTALL_SH],
9711 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9712 if test x"${install_sh+set}" != xset; then
9713 case $am_aux_dir in
9714 *\ * | *\ *)
9715 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9716 *)
9717 install_sh="\${SHELL} $am_aux_dir/install-sh"
9718 esac
9719 fi
9720 AC_SUBST([install_sh])])
9721
9722 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
9723 #
9724 # This file is free software; the Free Software Foundation
9725 # gives unlimited permission to copy and/or distribute it,
9726 # with or without modifications, as long as this notice is preserved.
9727
9728 # Check whether the underlying file-system supports filenames
9729 # with a leading dot. For instance MS-DOS doesn't.
9730 AC_DEFUN([AM_SET_LEADING_DOT],
9731 [rm -rf .tst 2>/dev/null
9732 mkdir .tst 2>/dev/null
9733 if test -d .tst; then
9734 am__leading_dot=.
9735 else
9736 am__leading_dot=_
9737 fi
9738 rmdir .tst 2>/dev/null
9739 AC_SUBST([am__leading_dot])])
9740
9741 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9742 # From Jim Meyering
9743
9744 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
9745 #
9746 # This file is free software; the Free Software Foundation
9747 # gives unlimited permission to copy and/or distribute it,
9748 # with or without modifications, as long as this notice is preserved.
9749
9750 # AM_MAINTAINER_MODE([DEFAULT-MODE])
9751 # ----------------------------------
9752 # Control maintainer-specific portions of Makefiles.
9753 # Default is to disable them, unless 'enable' is passed literally.
9754 # For symmetry, 'disable' may be passed as well. Anyway, the user
9755 # can override the default with the --enable/--disable switch.
9756 AC_DEFUN([AM_MAINTAINER_MODE],
9757 [m4_case(m4_default([$1], [disable]),
9758 [enable], [m4_define([am_maintainer_other], [disable])],
9759 [disable], [m4_define([am_maintainer_other], [enable])],
9760 [m4_define([am_maintainer_other], [enable])
9761 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9762 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9763 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9764 AC_ARG_ENABLE([maintainer-mode],
9765 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9766 am_maintainer_other[ make rules and dependencies not useful
9767 (and sometimes confusing) to the casual installer])],
9768 [USE_MAINTAINER_MODE=$enableval],
9769 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9770 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9771 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9772 MAINT=$MAINTAINER_MODE_TRUE
9773 AC_SUBST([MAINT])dnl
9774 ]
9775 )
9776
9777 # Check to see how 'make' treats includes. -*- Autoconf -*-
9778
9779 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9780 #
9781 # This file is free software; the Free Software Foundation
9782 # gives unlimited permission to copy and/or distribute it,
9783 # with or without modifications, as long as this notice is preserved.
9784
9785 # AM_MAKE_INCLUDE()
9786 # -----------------
9787 # Check whether make has an 'include' directive that can support all
9788 # the idioms we need for our automatic dependency tracking code.
9789 AC_DEFUN([AM_MAKE_INCLUDE],
9790 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
9791 cat > confinc.mk << 'END'
9792 am__doit:
9793 @echo this is the am__doit target >confinc.out
9794 .PHONY: am__doit
9795 END
9796 am__include="#"
9797 am__quote=
9798 # BSD make does it like this.
9799 echo '.include "confinc.mk" # ignored' > confmf.BSD
9800 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
9801 echo 'include confinc.mk # ignored' > confmf.GNU
9802 _am_result=no
9803 for s in GNU BSD; do
9804 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
9805 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
9806 ['0:this is the am__doit target'],
9807 [AS_CASE([$s],
9808 [BSD], [am__include='.include' am__quote='"'],
9809 [am__include='include' am__quote=''])])
9810 if test "$am__include" != "#"; then
9811 _am_result="yes ($s style)"
9812 break
9813 fi
9814 done
9815 rm -f confinc.* confmf.*
9816 AC_MSG_RESULT([${_am_result}])
9817 AC_SUBST([am__include])])
9818 AC_SUBST([am__quote])])
9819
9820 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9821
9822 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
9823 #
9824 # This file is free software; the Free Software Foundation
9825 # gives unlimited permission to copy and/or distribute it,
9826 # with or without modifications, as long as this notice is preserved.
9827
9828 # AM_MISSING_PROG(NAME, PROGRAM)
9829 # ------------------------------
9830 AC_DEFUN([AM_MISSING_PROG],
9831 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9832 $1=${$1-"${am_missing_run}$2"}
9833 AC_SUBST($1)])
9834
9835 # AM_MISSING_HAS_RUN
9836 # ------------------
9837 # Define MISSING if not defined so far and test if it is modern enough.
9838 # If it is, set am_missing_run to use it, otherwise, to nothing.
9839 AC_DEFUN([AM_MISSING_HAS_RUN],
9840 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9841 AC_REQUIRE_AUX_FILE([missing])dnl
9842 if test x"${MISSING+set}" != xset; then
9843 MISSING="\${SHELL} '$am_aux_dir/missing'"
9844 fi
9845 # Use eval to expand $SHELL
9846 if eval "$MISSING --is-lightweight"; then
9847 am_missing_run="$MISSING "
9848 else
9849 am_missing_run=
9850 AC_MSG_WARN(['missing' script is too old or missing])
9851 fi
9852 ])
9853
9854 # Helper functions for option handling. -*- Autoconf -*-
9855
9856 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9857 #
9858 # This file is free software; the Free Software Foundation
9859 # gives unlimited permission to copy and/or distribute it,
9860 # with or without modifications, as long as this notice is preserved.
9861
9862 # _AM_MANGLE_OPTION(NAME)
9863 # -----------------------
9864 AC_DEFUN([_AM_MANGLE_OPTION],
9865 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9866
9867 # _AM_SET_OPTION(NAME)
9868 # --------------------
9869 # Set option NAME. Presently that only means defining a flag for this option.
9870 AC_DEFUN([_AM_SET_OPTION],
9871 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9872
9873 # _AM_SET_OPTIONS(OPTIONS)
9874 # ------------------------
9875 # OPTIONS is a space-separated list of Automake options.
9876 AC_DEFUN([_AM_SET_OPTIONS],
9877 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9878
9879 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9880 # -------------------------------------------
9881 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9882 AC_DEFUN([_AM_IF_OPTION],
9883 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9884
9885 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
9886 #
9887 # This file is free software; the Free Software Foundation
9888 # gives unlimited permission to copy and/or distribute it,
9889 # with or without modifications, as long as this notice is preserved.
9890
9891 # _AM_PROG_CC_C_O
9892 # ---------------
9893 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9894 # to automatically call this.
9895 AC_DEFUN([_AM_PROG_CC_C_O],
9896 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9897 AC_REQUIRE_AUX_FILE([compile])dnl
9898 AC_LANG_PUSH([C])dnl
9899 AC_CACHE_CHECK(
9900 [whether $CC understands -c and -o together],
9901 [am_cv_prog_cc_c_o],
9902 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9903 # Make sure it works both with $CC and with simple cc.
9904 # Following AC_PROG_CC_C_O, we do the test twice because some
9905 # compilers refuse to overwrite an existing .o file with -o,
9906 # though they will create one.
9907 am_cv_prog_cc_c_o=yes
9908 for am_i in 1 2; do
9909 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9910 && test -f conftest2.$ac_objext; then
9911 : OK
9912 else
9913 am_cv_prog_cc_c_o=no
9914 break
9915 fi
9916 done
9917 rm -f core conftest*
9918 unset am_i])
9919 if test "$am_cv_prog_cc_c_o" != yes; then
9920 # Losing compiler, so override with the script.
9921 # FIXME: It is wrong to rewrite CC.
9922 # But if we don't then we get into trouble of one sort or another.
9923 # A longer-term fix would be to have automake use am__CC in this case,
9924 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9925 CC="$am_aux_dir/compile $CC"
9926 fi
9927 AC_LANG_POP([C])])
9928
9929 # For backward compatibility.
9930 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9931
9932 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
9933 #
9934 # This file is free software; the Free Software Foundation
9935 # gives unlimited permission to copy and/or distribute it,
9936 # with or without modifications, as long as this notice is preserved.
9937
9938 # AM_RUN_LOG(COMMAND)
9939 # -------------------
9940 # Run COMMAND, save the exit status in ac_status, and log it.
9941 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9942 AC_DEFUN([AM_RUN_LOG],
9943 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9944 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9947 (exit $ac_status); }])
9948
9949 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9950
9951 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
9952 #
9953 # This file is free software; the Free Software Foundation
9954 # gives unlimited permission to copy and/or distribute it,
9955 # with or without modifications, as long as this notice is preserved.
9956
9957 # AM_SANITY_CHECK
9958 # ---------------
9959 AC_DEFUN([AM_SANITY_CHECK],
9960 [AC_MSG_CHECKING([whether build environment is sane])
9961 # Reject unsafe characters in $srcdir or the absolute working directory
9962 # name. Accept space and tab only in the latter.
9963 am_lf='
9964 '
9965 case `pwd` in
9966 *[[\\\"\#\$\&\'\`$am_lf]]*)
9967 AC_MSG_ERROR([unsafe absolute working directory name]);;
9968 esac
9969 case $srcdir in
9970 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9971 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9972 esac
9973
9974 # Do 'set' in a subshell so we don't clobber the current shell's
9975 # arguments. Must try -L first in case configure is actually a
9976 # symlink; some systems play weird games with the mod time of symlinks
9977 # (eg FreeBSD returns the mod time of the symlink's containing
9978 # directory).
9979 if (
9980 am_has_slept=no
9981 for am_try in 1 2; do
9982 echo "timestamp, slept: $am_has_slept" > conftest.file
9983 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9984 if test "$[*]" = "X"; then
9985 # -L didn't work.
9986 set X `ls -t "$srcdir/configure" conftest.file`
9987 fi
9988 if test "$[*]" != "X $srcdir/configure conftest.file" \
9989 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9990
9991 # If neither matched, then we have a broken ls. This can happen
9992 # if, for instance, CONFIG_SHELL is bash and it inherits a
9993 # broken ls alias from the environment. This has actually
9994 # happened. Such a system could not be considered "sane".
9995 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9996 alias in your environment])
9997 fi
9998 if test "$[2]" = conftest.file || test $am_try -eq 2; then
9999 break
10000 fi
10001 # Just in case.
10002 sleep 1
10003 am_has_slept=yes
10004 done
10005 test "$[2]" = conftest.file
10006 )
10007 then
10008 # Ok.
10009 :
10010 else
10011 AC_MSG_ERROR([newly created file is older than distributed files!
10012 Check your system clock])
10013 fi
10014 AC_MSG_RESULT([yes])
10015 # If we didn't sleep, we still need to ensure time stamps of config.status and
10016 # generated files are strictly newer.
10017 am_sleep_pid=
10018 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10019 ( sleep 1 ) &
10020 am_sleep_pid=$!
10021 fi
10022 AC_CONFIG_COMMANDS_PRE(
10023 [AC_MSG_CHECKING([that generated files are newer than configure])
10024 if test -n "$am_sleep_pid"; then
10025 # Hide warnings about reused PIDs.
10026 wait $am_sleep_pid 2>/dev/null
10027 fi
10028 AC_MSG_RESULT([done])])
10029 rm -f conftest.file
10030 ])
10031
10032 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
10033 #
10034 # This file is free software; the Free Software Foundation
10035 # gives unlimited permission to copy and/or distribute it,
10036 # with or without modifications, as long as this notice is preserved.
10037
10038 # AM_SILENT_RULES([DEFAULT])
10039 # --------------------------
10040 # Enable less verbose build rules; with the default set to DEFAULT
10041 # ("yes" being less verbose, "no" or empty being verbose).
10042 AC_DEFUN([AM_SILENT_RULES],
10043 [AC_ARG_ENABLE([silent-rules], [dnl
10044 AS_HELP_STRING(
10045 [--enable-silent-rules],
10046 [less verbose build output (undo: "make V=1")])
10047 AS_HELP_STRING(
10048 [--disable-silent-rules],
10049 [verbose build output (undo: "make V=0")])dnl
10050 ])
10051 case $enable_silent_rules in @%:@ (((
10052 yes) AM_DEFAULT_VERBOSITY=0;;
10053 no) AM_DEFAULT_VERBOSITY=1;;
10054 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10055 esac
10056 dnl
10057 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10058 dnl do not support nested variable expansions.
10059 dnl See automake bug#9928 and bug#10237.
10060 am_make=${MAKE-make}
10061 AC_CACHE_CHECK([whether $am_make supports nested variables],
10062 [am_cv_make_support_nested_variables],
10063 [if AS_ECHO([['TRUE=$(BAR$(V))
10064 BAR0=false
10065 BAR1=true
10066 V=1
10067 am__doit:
10068 @$(TRUE)
10069 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10070 am_cv_make_support_nested_variables=yes
10071 else
10072 am_cv_make_support_nested_variables=no
10073 fi])
10074 if test $am_cv_make_support_nested_variables = yes; then
10075 dnl Using '$V' instead of '$(V)' breaks IRIX make.
10076 AM_V='$(V)'
10077 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10078 else
10079 AM_V=$AM_DEFAULT_VERBOSITY
10080 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10081 fi
10082 AC_SUBST([AM_V])dnl
10083 AM_SUBST_NOTMAKE([AM_V])dnl
10084 AC_SUBST([AM_DEFAULT_V])dnl
10085 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10086 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10087 AM_BACKSLASH='\'
10088 AC_SUBST([AM_BACKSLASH])dnl
10089 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10090 ])
10091
10092 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
10093 #
10094 # This file is free software; the Free Software Foundation
10095 # gives unlimited permission to copy and/or distribute it,
10096 # with or without modifications, as long as this notice is preserved.
10097
10098 # AM_PROG_INSTALL_STRIP
10099 # ---------------------
10100 # One issue with vendor 'install' (even GNU) is that you can't
10101 # specify the program used to strip binaries. This is especially
10102 # annoying in cross-compiling environments, where the build's strip
10103 # is unlikely to handle the host's binaries.
10104 # Fortunately install-sh will honor a STRIPPROG variable, so we
10105 # always use install-sh in "make install-strip", and initialize
10106 # STRIPPROG with the value of the STRIP variable (set by the user).
10107 AC_DEFUN([AM_PROG_INSTALL_STRIP],
10108 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10109 # Installed binaries are usually stripped using 'strip' when the user
10110 # run "make install-strip". However 'strip' might not be the right
10111 # tool to use in cross-compilation environments, therefore Automake
10112 # will honor the 'STRIP' environment variable to overrule this program.
10113 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10114 if test "$cross_compiling" != no; then
10115 AC_CHECK_TOOL([STRIP], [strip], :)
10116 fi
10117 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10118 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10119
10120 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
10121 #
10122 # This file is free software; the Free Software Foundation
10123 # gives unlimited permission to copy and/or distribute it,
10124 # with or without modifications, as long as this notice is preserved.
10125
10126 # _AM_SUBST_NOTMAKE(VARIABLE)
10127 # ---------------------------
10128 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10129 # This macro is traced by Automake.
10130 AC_DEFUN([_AM_SUBST_NOTMAKE])
10131
10132 # AM_SUBST_NOTMAKE(VARIABLE)
10133 # --------------------------
10134 # Public sister of _AM_SUBST_NOTMAKE.
10135 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10136
10137 # Check how to create a tarball. -*- Autoconf -*-
10138
10139 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
10140 #
10141 # This file is free software; the Free Software Foundation
10142 # gives unlimited permission to copy and/or distribute it,
10143 # with or without modifications, as long as this notice is preserved.
10144
10145 # _AM_PROG_TAR(FORMAT)
10146 # --------------------
10147 # Check how to create a tarball in format FORMAT.
10148 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
10149 #
10150 # Substitute a variable $(am__tar) that is a command
10151 # writing to stdout a FORMAT-tarball containing the directory
10152 # $tardir.
10153 # tardir=directory && $(am__tar) > result.tar
10154 #
10155 # Substitute a variable $(am__untar) that extract such
10156 # a tarball read from stdin.
10157 # $(am__untar) < result.tar
10158 #
10159 AC_DEFUN([_AM_PROG_TAR],
10160 [# Always define AMTAR for backward compatibility. Yes, it's still used
10161 # in the wild :-( We should find a proper way to deprecate it ...
10162 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10163
10164 # We'll loop over all known methods to create a tar archive until one works.
10165 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10166
10167 m4_if([$1], [v7],
10168 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10169
10170 [m4_case([$1],
10171 [ustar],
10172 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10173 # There is notably a 21 bits limit for the UID and the GID. In fact,
10174 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10175 # and bug#13588).
10176 am_max_uid=2097151 # 2^21 - 1
10177 am_max_gid=$am_max_uid
10178 # The $UID and $GID variables are not portable, so we need to resort
10179 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10180 # below are definitely unexpected, so allow the users to see them
10181 # (that is, avoid stderr redirection).
10182 am_uid=`id -u || echo unknown`
10183 am_gid=`id -g || echo unknown`
10184 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10185 if test $am_uid -le $am_max_uid; then
10186 AC_MSG_RESULT([yes])
10187 else
10188 AC_MSG_RESULT([no])
10189 _am_tools=none
10190 fi
10191 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10192 if test $am_gid -le $am_max_gid; then
10193 AC_MSG_RESULT([yes])
10194 else
10195 AC_MSG_RESULT([no])
10196 _am_tools=none
10197 fi],
10198
10199 [pax],
10200 [],
10201
10202 [m4_fatal([Unknown tar format])])
10203
10204 AC_MSG_CHECKING([how to create a $1 tar archive])
10205
10206 # Go ahead even if we have the value already cached. We do so because we
10207 # need to set the values for the 'am__tar' and 'am__untar' variables.
10208 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10209
10210 for _am_tool in $_am_tools; do
10211 case $_am_tool in
10212 gnutar)
10213 for _am_tar in tar gnutar gtar; do
10214 AM_RUN_LOG([$_am_tar --version]) && break
10215 done
10216 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10217 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10218 am__untar="$_am_tar -xf -"
10219 ;;
10220 plaintar)
10221 # Must skip GNU tar: if it does not support --format= it doesn't create
10222 # ustar tarball either.
10223 (tar --version) >/dev/null 2>&1 && continue
10224 am__tar='tar chf - "$$tardir"'
10225 am__tar_='tar chf - "$tardir"'
10226 am__untar='tar xf -'
10227 ;;
10228 pax)
10229 am__tar='pax -L -x $1 -w "$$tardir"'
10230 am__tar_='pax -L -x $1 -w "$tardir"'
10231 am__untar='pax -r'
10232 ;;
10233 cpio)
10234 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10235 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10236 am__untar='cpio -i -H $1 -d'
10237 ;;
10238 none)
10239 am__tar=false
10240 am__tar_=false
10241 am__untar=false
10242 ;;
10243 esac
10244
10245 # If the value was cached, stop now. We just wanted to have am__tar
10246 # and am__untar set.
10247 test -n "${am_cv_prog_tar_$1}" && break
10248
10249 # tar/untar a dummy directory, and stop if the command works.
10250 rm -rf conftest.dir
10251 mkdir conftest.dir
10252 echo GrepMe > conftest.dir/file
10253 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10254 rm -rf conftest.dir
10255 if test -s conftest.tar; then
10256 AM_RUN_LOG([$am__untar <conftest.tar])
10257 AM_RUN_LOG([cat conftest.dir/file])
10258 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10259 fi
10260 done
10261 rm -rf conftest.dir
10262
10263 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10264 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10265
10266 AC_SUBST([am__tar])
10267 AC_SUBST([am__untar])
10268 ]) # _AM_PROG_TAR
10269