1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
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.
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
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18 [m4_warning([this file was generated for autoconf 2.69.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23 dnl Sets the COURIER_UNICODE_CXXFLAGS variable to any additional compiler
24 dnl flags needed to build the courier-unicode package and packages that
25 dnl use the courier-unicode package.
27 AC_DEFUN([AX_COURIER_UNICODE_CXXFLAGS],[
29 save_FLAGS="$CXXFLAGS"
43 COURIER_UNICODE_CXXFLAGS="-std=c++11"
44 CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
56 COURIER_UNICODE_CXXFLAGS="-std=c++0x"
57 CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
68 AC_MSG_ERROR([*** A compiler with C++11 Unicode support was not found])
72 CXXFLAGS="$save_FLAGS"
76 AC_DEFUN([AX_COURIER_UNICODE_VERSION],[
78 AC_MSG_CHECKING(courier-unicode library and version)
81 #include <courier-unicode.h>
82 #ifndef COURIER_UNICODE_VERSION
83 #define COURIER_UNICODE_VERSION 0
86 #if COURIER_UNICODE_VERSION < 210
87 #error "courier-unicode 2.1 library is required"
92 ERROR: The Courier Unicode Library 2.1 header files appear not to be installed.
93 You may need to upgrade the library or install a separate development
94 subpackage in addition to the main package.])
100 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
102 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
103 # Written by Gordon Matzigkeit, 1996
105 # This file is free software; the Free Software Foundation gives
106 # unlimited permission to copy and/or distribute it, with or without
107 # modifications, as long as this notice is preserved.
109 m4_define([_LT_COPYING], [dnl
110 # Copyright (C) 2014 Free Software Foundation, Inc.
111 # This is free software; see the source for copying conditions. There is NO
112 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
114 # GNU Libtool is free software; you can redistribute it and/or modify
115 # it under the terms of the GNU General Public License as published by
116 # the Free Software Foundation; either version 2 of of the License, or
117 # (at your option) any later version.
119 # As a special exception to the GNU General Public License, if you
120 # distribute this file as part of a program or library that is built
121 # using GNU Libtool, you may include this file under the same
122 # distribution terms that you use for the rest of that program.
124 # GNU Libtool is distributed in the hope that it will be useful, but
125 # WITHOUT ANY WARRANTY; without even the implied warranty of
126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
127 # GNU General Public License for more details.
129 # You should have received a copy of the GNU General Public License
130 # along with this program. If not, see <http://www.gnu.org/licenses/>.
138 # Complain and exit if this libtool version is less that VERSION.
139 m4_defun([LT_PREREQ],
140 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
142 [m4_fatal([Libtool version $1 or higher is required],
149 # Complain if the absolute build directory name contains unusual characters
150 m4_defun([_LT_CHECK_BUILDDIR],
153 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
161 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
162 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
163 AC_BEFORE([$0], [LT_LANG])dnl
164 AC_BEFORE([$0], [LT_OUTPUT])dnl
165 AC_BEFORE([$0], [LTDL_INIT])dnl
166 m4_require([_LT_CHECK_BUILDDIR])dnl
168 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
169 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
170 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
171 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
172 dnl unless we require an AC_DEFUNed macro:
173 AC_REQUIRE([LTOPTIONS_VERSION])dnl
174 AC_REQUIRE([LTSUGAR_VERSION])dnl
175 AC_REQUIRE([LTVERSION_VERSION])dnl
176 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
177 m4_require([_LT_PROG_LTMAIN])dnl
179 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
182 _LT_SET_OPTIONS([$0], [$1])
184 # This can be used to rebuild libtool when needed
187 # Always use our own libtool.
188 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
198 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
199 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
200 dnl aclocal-1.4 backwards compatibility:
201 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
202 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
205 # _LT_PREPARE_CC_BASENAME
206 # -----------------------
207 m4_defun([_LT_PREPARE_CC_BASENAME], [
208 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
211 for cc_temp in @S|@*""; do
213 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
214 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
221 ])# _LT_PREPARE_CC_BASENAME
224 # _LT_CC_BASENAME(CC)
225 # -------------------
226 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
227 # but that macro is also expanded into generated libtool script, which
228 # arranges for $SED and $ECHO to be set by different means.
229 m4_defun([_LT_CC_BASENAME],
230 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
231 AC_REQUIRE([_LT_DECL_SED])dnl
232 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
234 cc_basename=$func_cc_basename_result
238 # _LT_FILEUTILS_DEFAULTS
239 # ----------------------
240 # It is okay to use these file commands and assume they have been set
241 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
242 m4_defun([_LT_FILEUTILS_DEFAULTS],
246 ])# _LT_FILEUTILS_DEFAULTS
251 m4_defun([_LT_SETUP],
252 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
253 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
254 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
255 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
257 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
259 _LT_DECL([], [host_alias], [0], [The host system])dnl
260 _LT_DECL([], [host], [0])dnl
261 _LT_DECL([], [host_os], [0])dnl
263 _LT_DECL([], [build_alias], [0], [The build system])dnl
264 _LT_DECL([], [build], [0])dnl
265 _LT_DECL([], [build_os], [0])dnl
267 AC_REQUIRE([AC_PROG_CC])dnl
268 AC_REQUIRE([LT_PATH_LD])dnl
269 AC_REQUIRE([LT_PATH_NM])dnl
271 AC_REQUIRE([AC_PROG_LN_S])dnl
272 test -z "$LN_S" && LN_S="ln -s"
273 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
275 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
276 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
277 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
279 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
280 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
281 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
282 m4_require([_LT_CMD_RELOAD])dnl
283 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
284 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
285 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
286 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
287 m4_require([_LT_WITH_SYSROOT])dnl
288 m4_require([_LT_CMD_TRUNCATE])dnl
290 _LT_CONFIG_LIBTOOL_INIT([
291 # See if we are running on zsh, and set the options that allow our
292 # commands through without removal of \ escapes INIT.
293 if test -n "\${ZSH_VERSION+set}"; then
297 if test -n "${ZSH_VERSION+set}"; then
303 m4_require([_LT_TAG_COMPILER])dnl
307 # AIX sometimes has problems with the GCC collect2 program. For some
308 # reason, if we set the COLLECT_NAMES environment variable, the problems
309 # vanish in a puff of smoke.
310 if test set != "${COLLECT_NAMES+set}"; then
321 # All known linkers require a '.a' archive for static linking (except MSVC,
322 # which needs '.lib').
325 with_gnu_ld=$lt_cv_prog_gnu_ld
330 # Set sane defaults for various variables
331 test -z "$CC" && CC=cc
332 test -z "$LTCC" && LTCC=$CC
333 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
334 test -z "$LD" && LD=ld
335 test -z "$ac_objext" && ac_objext=o
337 _LT_CC_BASENAME([$compiler])
339 # Only perform the check for file, if the check method requires it
340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
341 case $deplibs_check_method in
343 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
349 # Use C for the default configuration in the libtool script
350 LT_SUPPORTED_TAG([CC])
352 _LT_LANG_DEFAULT_CONFIG
357 # _LT_PREPARE_SED_QUOTE_VARS
358 # --------------------------
359 # Define a few sed substitution that help us do robust quoting.
360 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
361 [# Backslashify metacharacters that are still active within
362 # double-quoted strings.
363 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
365 # Same as above, but do not quote variable references.
366 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
368 # Sed substitution to delay expansion of an escaped shell variable in a
369 # double_quote_subst'ed string.
370 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
372 # Sed substitution to delay expansion of an escaped single quote.
373 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
375 # Sed substitution to avoid accidental globbing in evaled expressions
376 no_glob_subst='s/\*/\\\*/g'
381 # Note that this code is called both from 'configure', and 'config.status'
382 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
383 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
384 # so we pass a copy along to make sure it has a sensible value anyway.
385 m4_defun([_LT_PROG_LTMAIN],
386 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
387 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
388 ltmain=$ac_aux_dir/ltmain.sh
393 # So that we can recreate a full libtool script including additional
394 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
395 # in macros and then make a single call at the end using the 'libtool'
399 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
400 # ----------------------------------------
401 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
402 m4_define([_LT_CONFIG_LIBTOOL_INIT],
404 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
409 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
412 # _LT_CONFIG_LIBTOOL([COMMANDS])
413 # ------------------------------
414 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
415 m4_define([_LT_CONFIG_LIBTOOL],
417 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
422 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
425 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
426 # -----------------------------------------------------
427 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
428 [_LT_CONFIG_LIBTOOL([$1])
429 _LT_CONFIG_LIBTOOL_INIT([$2])
433 # _LT_FORMAT_COMMENT([COMMENT])
434 # -----------------------------
435 # Add leading comment marks to the start of each line, and a trailing
436 # full-stop to the whole comment if one is not present already.
437 m4_define([_LT_FORMAT_COMMENT],
439 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
440 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
447 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
448 # -------------------------------------------------------------------
449 # CONFIGNAME is the name given to the value in the libtool script.
450 # VARNAME is the (base) name used in the configure script.
451 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
452 # VARNAME. Any other value will be used directly.
453 m4_define([_LT_DECL],
454 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
455 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
456 [m4_ifval([$1], [$1], [$2])])
457 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
459 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
460 lt_dict_add_subkey([lt_decl_dict], [$2],
461 [tagged?], [m4_ifval([$5], [yes], [no])])])
465 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
466 # --------------------------------------------------------
467 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
470 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
471 # ------------------------------------------------
472 m4_define([lt_decl_tag_varnames],
473 [_lt_decl_filter([tagged?], [yes], $@)])
476 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
477 # ---------------------------------------------------------
478 m4_define([_lt_decl_filter],
480 [0], [m4_fatal([$0: too few arguments: $#])],
481 [1], [m4_fatal([$0: too few arguments: $#: $1])],
482 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
483 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
484 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
488 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
489 # --------------------------------------------------
490 m4_define([lt_decl_quote_varnames],
491 [_lt_decl_filter([value], [1], $@)])
494 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
495 # ---------------------------------------------------
496 m4_define([lt_decl_dquote_varnames],
497 [_lt_decl_filter([value], [2], $@)])
500 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
501 # ---------------------------------------------------
502 m4_define([lt_decl_varnames_tagged],
503 [m4_assert([$# <= 2])dnl
504 _$0(m4_quote(m4_default([$1], [[, ]])),
505 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
506 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
507 m4_define([_lt_decl_varnames_tagged],
508 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
511 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
512 # ------------------------------------------------
513 m4_define([lt_decl_all_varnames],
514 [_$0(m4_quote(m4_default([$1], [[, ]])),
516 m4_quote(lt_decl_varnames),
517 m4_quote(m4_shift($@))))[]dnl
519 m4_define([_lt_decl_all_varnames],
520 [lt_join($@, lt_decl_varnames_tagged([$1],
521 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
525 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
526 # ------------------------------------
527 # Quote a variable value, and forward it to 'config.status' so that its
528 # declaration there will have the same value as in 'configure'. VARNAME
529 # must have a single quote delimited value for this to work.
530 m4_define([_LT_CONFIG_STATUS_DECLARE],
531 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
534 # _LT_CONFIG_STATUS_DECLARATIONS
535 # ------------------------------
536 # We delimit libtool config variables with single quotes, so when
537 # we write them to config.status, we have to be sure to quote all
538 # embedded single quotes properly. In configure, this macro expands
539 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
541 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
542 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
543 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
544 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
549 # Output comment and list of tags supported by the script
550 m4_defun([_LT_LIBTOOL_TAGS],
551 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
552 available_tags='_LT_TAGS'dnl
556 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
557 # -----------------------------------
558 # Extract the dictionary values for VARNAME (optionally with TAG) and
559 # expand to a commented shell variable setting:
561 # # Some comment about what VAR is for.
562 # visible_name=$lt_internal_name
563 m4_define([_LT_LIBTOOL_DECLARE],
564 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
565 [description])))[]dnl
566 m4_pushdef([_libtool_name],
567 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
568 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
569 [0], [_libtool_name=[$]$1],
570 [1], [_libtool_name=$lt_[]$1],
571 [2], [_libtool_name=$lt_[]$1],
572 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
573 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
577 # _LT_LIBTOOL_CONFIG_VARS
578 # -----------------------
579 # Produce commented declarations of non-tagged libtool config variables
580 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
581 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
582 # section) are produced by _LT_LIBTOOL_TAG_VARS.
583 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
584 [m4_foreach([_lt_var],
585 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
586 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
589 # _LT_LIBTOOL_TAG_VARS(TAG)
590 # -------------------------
591 m4_define([_LT_LIBTOOL_TAG_VARS],
592 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
593 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
596 # _LT_TAGVAR(VARNAME, [TAGNAME])
597 # ------------------------------
598 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
601 # _LT_CONFIG_COMMANDS
602 # -------------------
603 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
604 # variables for single and double quote escaping we saved from calls
605 # to _LT_DECL, we can put quote escaped variables declarations
606 # into 'config.status', and then the shell code to quote escape them in
607 # for loops in 'config.status'. Finally, any additional code accumulated
608 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
609 m4_defun([_LT_CONFIG_COMMANDS],
610 [AC_PROVIDE_IFELSE([LT_OUTPUT],
611 dnl If the libtool generation code has been placed in $CONFIG_LT,
612 dnl instead of duplicating it all over again into config.status,
613 dnl then we will have config.status run $CONFIG_LT later, so it
614 dnl needs to know what name is stored there:
615 [AC_CONFIG_COMMANDS([libtool],
616 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
617 dnl If the libtool generation code is destined for config.status,
618 dnl expand the accumulated commands and init code now:
619 [AC_CONFIG_COMMANDS([libtool],
620 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
621 ])#_LT_CONFIG_COMMANDS
625 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
628 # The HP-UX ksh and POSIX shell print the target directory to stdout
630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
632 sed_quote_subst='$sed_quote_subst'
633 double_quote_subst='$double_quote_subst'
634 delay_variable_subst='$delay_variable_subst'
635 _LT_CONFIG_STATUS_DECLARATIONS
638 compiler='$compiler_DEFAULT'
640 # A function that is used when there is no print builtin or printf.
641 func_fallback_echo ()
643 eval 'cat <<_LTECHO_EOF
648 # Quote evaled strings.
649 for var in lt_decl_all_varnames([[ \
650 ]], lt_decl_quote_varnames); do
651 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
652 *[[\\\\\\\`\\"\\\$]]*)
653 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
656 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
661 # Double-quote double-evaled strings.
662 for var in lt_decl_all_varnames([[ \
663 ]], lt_decl_dquote_varnames); do
664 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
665 *[[\\\\\\\`\\"\\\$]]*)
666 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
669 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
674 _LT_OUTPUT_LIBTOOL_INIT
677 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
678 # ------------------------------------
679 # Generate a child script FILE with all initialization necessary to
680 # reuse the environment learned by the parent script, and make the
681 # file executable. If COMMENT is supplied, it is inserted after the
682 # '#!' sequence but before initialization text begins. After this
683 # macro, additional text can be appended to FILE to form the body of
684 # the child script. The macro ends with non-zero status if the
685 # file could not be fully written (such as if the disk is full).
686 m4_ifdef([AS_INIT_GENERATED],
687 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
688 [m4_defun([_LT_GENERATED_FILE_INIT],
689 [m4_require([AS_PREPARE])]dnl
690 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
692 cat >$1 <<_ASEOF || lt_write_fail=1
694 # Generated by $as_me.
696 SHELL=\${CONFIG_SHELL-$SHELL}
699 cat >>$1 <<\_ASEOF || lt_write_fail=1
702 exec AS_MESSAGE_FD>&1
704 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
705 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
709 # This macro allows early generation of the libtool script (before
710 # AC_OUTPUT is called), incase it is used in configure for compilation
712 AC_DEFUN([LT_OUTPUT],
713 [: ${CONFIG_LT=./config.lt}
714 AC_MSG_NOTICE([creating $CONFIG_LT])
715 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
716 [# Run this file to recreate a libtool stub with the current configuration.])
718 cat >>"$CONFIG_LT" <<\_LTEOF
720 exec AS_MESSAGE_LOG_FD>>config.log
723 AS_BOX([Running $as_me.])
724 } >&AS_MESSAGE_LOG_FD
727 '$as_me' creates a local libtool stub from the current configuration,
728 for use in further configure time tests before the real libtool is
731 Usage: $[0] [[OPTIONS]]
733 -h, --help print this help, then exit
734 -V, --version print version number, then exit
735 -q, --quiet do not print progress messages
736 -d, --debug don't remove temporary files
738 Report bugs to <bug-libtool@gnu.org>."
741 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
742 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
743 configured by $[0], generated by m4_PACKAGE_STRING.
745 Copyright (C) 2011 Free Software Foundation, Inc.
746 This config.lt script is free software; the Free Software Foundation
747 gives unlimited permision to copy, distribute and modify it."
752 --version | --v* | -V )
753 echo "$lt_cl_version"; exit 0 ;;
755 echo "$lt_cl_help"; exit 0 ;;
756 --debug | --d* | -d )
758 --quiet | --q* | --silent | --s* | -q )
761 -*) AC_MSG_ERROR([unrecognized option: $[1]
762 Try '$[0] --help' for more information.]) ;;
764 *) AC_MSG_ERROR([unrecognized argument: $[1]
765 Try '$[0] --help' for more information.]) ;;
770 if $lt_cl_silent; then
771 exec AS_MESSAGE_FD>/dev/null
775 cat >>"$CONFIG_LT" <<_LTEOF
776 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
779 cat >>"$CONFIG_LT" <<\_LTEOF
780 AC_MSG_NOTICE([creating $ofile])
781 _LT_OUTPUT_LIBTOOL_COMMANDS
784 chmod +x "$CONFIG_LT"
786 # configure is writing to config.log, but config.lt does its own redirection,
787 # appending to config.log, which fails on DOS, as config.log is still kept
788 # open by configure. Here we exec the FD to /dev/null, effectively closing
789 # config.log, so it can be properly (re)opened and appended to by config.lt.
791 test yes = "$silent" &&
792 lt_config_lt_args="$lt_config_lt_args --quiet"
793 exec AS_MESSAGE_LOG_FD>/dev/null
794 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
795 exec AS_MESSAGE_LOG_FD>>config.log
796 $lt_cl_success || AS_EXIT(1)
802 # If TAG is the built-in tag, create an initial libtool script with a
803 # default configuration from the untagged config vars. Otherwise add code
804 # to config.status for appending the configuration named by TAG from the
805 # matching tagged config vars.
806 m4_defun([_LT_CONFIG],
807 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
808 _LT_CONFIG_SAVE_COMMANDS([
809 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
810 m4_if(_LT_TAG, [C], [
811 # See if we are running on zsh, and set the options that allow our
812 # commands through without removal of \ escapes.
813 if test -n "${ZSH_VERSION+set}"; then
818 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
821 cat <<_LT_EOF >> "$cfgfile"
823 # Generated automatically by $as_me ($PACKAGE) $VERSION
824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
825 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
827 # Provide generalized library-building support services.
828 # Written by Gordon Matzigkeit, 1996
833 # Configured defaults for sys_lib_dlsearch_path munging.
834 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
836 # ### BEGIN LIBTOOL CONFIG
837 _LT_LIBTOOL_CONFIG_VARS
839 # ### END LIBTOOL CONFIG
843 cat <<'_LT_EOF' >> "$cfgfile"
845 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
847 _LT_PREPARE_MUNGE_PATH_LIST
848 _LT_PREPARE_CC_BASENAME
850 # ### END FUNCTIONS SHARED WITH CONFIGURE
856 cat <<\_LT_EOF >> "$cfgfile"
857 # AIX sometimes has problems with the GCC collect2 program. For some
858 # reason, if we set the COLLECT_NAMES environment variable, the problems
859 # vanish in a puff of smoke.
860 if test set != "${COLLECT_NAMES+set}"; then
870 # We use sed instead of cat because bash on DJGPP gets confused if
871 # if finds mixed CR/LF and LF-only lines. Since sed operates in
872 # text mode, it properly converts lines to CR/LF. This bash problem
873 # is reportedly fixed, but why not run on old versions too?
874 sed '$q' "$ltmain" >> "$cfgfile" \
875 || (rm -f "$cfgfile"; exit 1)
877 mv -f "$cfgfile" "$ofile" ||
878 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
881 [cat <<_LT_EOF >> "$ofile"
883 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
884 dnl in a comment (ie after a #).
885 # ### BEGIN LIBTOOL TAG CONFIG: $1
886 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
887 # ### END LIBTOOL TAG CONFIG: $1
896 ])dnl /_LT_CONFIG_SAVE_COMMANDS
900 # LT_SUPPORTED_TAG(TAG)
901 # ---------------------
902 # Trace this macro to discover what tags are supported by the libtool
903 # --tag option, using:
904 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
905 AC_DEFUN([LT_SUPPORTED_TAG], [])
908 # C support is built-in for now
909 m4_define([_LT_LANG_C_enabled], [])
910 m4_define([_LT_TAGS], [])
915 # Enable libtool support for the given language if not already enabled.
917 [AC_BEFORE([$0], [LT_OUTPUT])dnl
920 [C++], [_LT_LANG(CXX)],
921 [Go], [_LT_LANG(GO)],
922 [Java], [_LT_LANG(GCJ)],
923 [Fortran 77], [_LT_LANG(F77)],
924 [Fortran], [_LT_LANG(FC)],
925 [Windows Resource], [_LT_LANG(RC)],
926 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
928 [m4_fatal([$0: unsupported language: "$1"])])])dnl
935 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
936 [LT_SUPPORTED_TAG([$1])dnl
937 m4_append([_LT_TAGS], [$1 ])dnl
938 m4_define([_LT_LANG_]$1[_enabled], [])dnl
939 _LT_LANG_$1_CONFIG($1)])dnl
943 m4_ifndef([AC_PROG_GO], [
944 # NOTE: This macro has been submitted for inclusion into #
945 # GNU Autoconf as AC_PROG_GO. When it is available in #
946 # a released version of Autoconf we should remove this #
947 # macro and use it instead. #
948 m4_defun([AC_PROG_GO],
950 AC_ARG_VAR([GOC], [Go compiler command])dnl
951 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
952 _AC_ARG_VAR_LDFLAGS()dnl
953 AC_CHECK_TOOL(GOC, gccgo)
954 if test -z "$GOC"; then
955 if test -n "$ac_tool_prefix"; then
956 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
959 if test -z "$GOC"; then
960 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
966 # _LT_LANG_DEFAULT_CONFIG
967 # -----------------------
968 m4_defun([_LT_LANG_DEFAULT_CONFIG],
969 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
971 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
973 AC_PROVIDE_IFELSE([AC_PROG_F77],
975 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
977 AC_PROVIDE_IFELSE([AC_PROG_FC],
979 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
981 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
982 dnl pulling things in needlessly.
983 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
985 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
987 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
989 [m4_ifdef([AC_PROG_GCJ],
990 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
991 m4_ifdef([A][M_PROG_GCJ],
992 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
993 m4_ifdef([LT_PROG_GCJ],
994 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
996 AC_PROVIDE_IFELSE([AC_PROG_GO],
998 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1000 AC_PROVIDE_IFELSE([LT_PROG_RC],
1002 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1003 ])# _LT_LANG_DEFAULT_CONFIG
1006 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1007 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1008 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1009 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1010 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1011 dnl aclocal-1.4 backwards compatibility:
1012 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1013 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1014 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1015 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1016 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1021 m4_defun([_LT_TAG_COMPILER],
1022 [AC_REQUIRE([AC_PROG_CC])dnl
1024 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1025 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1026 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1027 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1029 # If no C compiler was specified, use CC.
1032 # If no C compiler flags were specified, use CFLAGS.
1033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1035 # Allow CC to be a program name with arguments.
1037 ])# _LT_TAG_COMPILER
1040 # _LT_COMPILER_BOILERPLATE
1041 # ------------------------
1042 # Check for compiler boilerplate output or warnings with
1043 # the simple compiler test code.
1044 m4_defun([_LT_COMPILER_BOILERPLATE],
1045 [m4_require([_LT_DECL_SED])dnl
1046 ac_outfile=conftest.$ac_objext
1047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1049 _lt_compiler_boilerplate=`cat conftest.err`
1051 ])# _LT_COMPILER_BOILERPLATE
1054 # _LT_LINKER_BOILERPLATE
1055 # ----------------------
1056 # Check for linker boilerplate output or warnings with
1057 # the simple link test code.
1058 m4_defun([_LT_LINKER_BOILERPLATE],
1059 [m4_require([_LT_DECL_SED])dnl
1060 ac_outfile=conftest.$ac_objext
1061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1063 _lt_linker_boilerplate=`cat conftest.err`
1065 ])# _LT_LINKER_BOILERPLATE
1067 # _LT_REQUIRED_DARWIN_CHECKS
1068 # -------------------------
1069 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1071 rhapsody* | darwin*)
1072 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1073 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1074 AC_CHECK_TOOL([LIPO], [lipo], [:])
1075 AC_CHECK_TOOL([OTOOL], [otool], [:])
1076 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1077 _LT_DECL([], [DSYMUTIL], [1],
1078 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1079 _LT_DECL([], [NMEDIT], [1],
1080 [Tool to change global to local symbols on Mac OS X])
1081 _LT_DECL([], [LIPO], [1],
1082 [Tool to manipulate fat objects and archives on Mac OS X])
1083 _LT_DECL([], [OTOOL], [1],
1084 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1085 _LT_DECL([], [OTOOL64], [1],
1086 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1088 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1089 [lt_cv_apple_cc_single_mod=no
1090 if test -z "$LT_MULTI_MODULE"; then
1091 # By default we will add the -single_module flag. You can override
1092 # by either setting the environment variable LT_MULTI_MODULE
1093 # non-empty at configure time, or by adding -multi_module to the
1095 rm -rf libconftest.dylib*
1096 echo "int foo(void){return 1;}" > conftest.c
1097 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1098 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1099 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1100 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1102 # If there is a non-empty error log, and "single_module"
1103 # appears in it, assume the flag caused a linker warning
1104 if test -s conftest.err && $GREP single_module conftest.err; then
1105 cat conftest.err >&AS_MESSAGE_LOG_FD
1106 # Otherwise, if the output was created with a 0 exit code from
1107 # the compiler, it worked.
1108 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1109 lt_cv_apple_cc_single_mod=yes
1111 cat conftest.err >&AS_MESSAGE_LOG_FD
1113 rm -rf libconftest.dylib*
1117 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1118 [lt_cv_ld_exported_symbols_list],
1119 [lt_cv_ld_exported_symbols_list=no
1120 save_LDFLAGS=$LDFLAGS
1121 echo "_main" > conftest.sym
1122 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1123 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1124 [lt_cv_ld_exported_symbols_list=yes],
1125 [lt_cv_ld_exported_symbols_list=no])
1126 LDFLAGS=$save_LDFLAGS
1129 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1130 [lt_cv_ld_force_load=no
1131 cat > conftest.c << _LT_EOF
1132 int forced_loaded() { return 2;}
1134 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1135 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1136 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1137 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1138 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1139 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1140 cat > conftest.c << _LT_EOF
1141 int main() { return 0;}
1143 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1144 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1146 if test -s conftest.err && $GREP force_load conftest.err; then
1147 cat conftest.err >&AS_MESSAGE_LOG_FD
1148 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1149 lt_cv_ld_force_load=yes
1151 cat conftest.err >&AS_MESSAGE_LOG_FD
1153 rm -f conftest.err libconftest.a conftest conftest.c
1154 rm -rf conftest.dSYM
1157 rhapsody* | darwin1.[[012]])
1158 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1160 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1161 darwin*) # darwin 5.x on
1162 # if running on 10.5 or later, the deployment target defaults
1163 # to the OS version, if on x86, and 10.4, the deployment
1164 # target defaults to 10.4. Don't you love it?
1165 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1166 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1167 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1169 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1171 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1175 if test yes = "$lt_cv_apple_cc_single_mod"; then
1176 _lt_dar_single_mod='$single_module'
1178 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1179 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1181 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1183 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1184 _lt_dsymutil='~$DSYMUTIL $lib || :'
1193 # _LT_DARWIN_LINKER_FEATURES([TAG])
1194 # ---------------------------------
1195 # Checks for linker and compiler features on darwin
1196 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1198 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1199 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1200 _LT_TAGVAR(hardcode_direct, $1)=no
1201 _LT_TAGVAR(hardcode_automatic, $1)=yes
1202 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1203 if test yes = "$lt_cv_ld_force_load"; then
1204 _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\"`'
1205 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1206 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1208 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1210 _LT_TAGVAR(link_all_deplibs, $1)=yes
1211 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1212 case $cc_basename in
1213 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1214 *) _lt_dar_can_shared=$GCC ;;
1216 if test yes = "$_lt_dar_can_shared"; then
1217 output_verbose_link_cmd=func_echo_all
1218 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1219 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1220 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1221 _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"
1223 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1224 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1225 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1229 _LT_TAGVAR(ld_shlibs, $1)=no
1233 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1234 # ----------------------------------
1235 # Links a minimal program and checks the executable
1236 # for the system default hardcoded library path. In most cases,
1237 # this is /usr/lib:/lib, but when the MPI compilers are used
1238 # the location of the communication and MPI libs are included too.
1239 # If we don't find anything, use the default library path according
1240 # to the aix ld manual.
1241 # Store the results from the different compilers for each TAGNAME.
1242 # Allow to override them for all tags through lt_cv_aix_libpath.
1243 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1244 [m4_require([_LT_DECL_SED])dnl
1245 if test set = "${lt_cv_aix_libpath+set}"; then
1246 aix_libpath=$lt_cv_aix_libpath
1248 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1249 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1250 lt_aix_libpath_sed='[
1251 /Import File Strings/,/^$/ {
1253 s/^0 *\([^ ]*\) *$/\1/
1257 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1258 # Check for a 64-bit object if we didn't find anything.
1259 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1260 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1262 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1263 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1266 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1268 ])# _LT_SYS_MODULE_PATH_AIX
1271 # _LT_SHELL_INIT(ARG)
1272 # -------------------
1273 m4_define([_LT_SHELL_INIT],
1274 [m4_divert_text([M4SH-INIT], [$1
1275 ])])# _LT_SHELL_INIT
1279 # _LT_PROG_ECHO_BACKSLASH
1280 # -----------------------
1281 # Find how we can fake an echo command that does not interpret backslash.
1282 # In particular, with Autoconf 2.60 or later we add some code to the start
1283 # of the generated configure script that will find a shell with a builtin
1284 # printf (that we can use as an echo command).
1285 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1286 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1287 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1288 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1290 AC_MSG_CHECKING([how to print strings])
1291 # Test print first, because it will be a builtin if present.
1292 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1293 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1295 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1298 # Use this function as a fallback that always works.
1299 func_fallback_echo ()
1301 eval 'cat <<_LTECHO_EOF
1305 ECHO='func_fallback_echo'
1308 # func_echo_all arg...
1309 # Invoke $ECHO with all args, space-separated.
1316 printf*) AC_MSG_RESULT([printf]) ;;
1317 print*) AC_MSG_RESULT([print -r]) ;;
1318 *) AC_MSG_RESULT([cat]) ;;
1321 m4_ifdef([_AS_DETECT_SUGGESTED],
1322 [_AS_DETECT_SUGGESTED([
1323 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1324 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1325 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1327 PATH=/empty FPATH=/empty; export PATH FPATH
1328 test "X`printf %s $ECHO`" = "X$ECHO" \
1329 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1331 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1332 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1333 ])# _LT_PROG_ECHO_BACKSLASH
1338 AC_DEFUN([_LT_WITH_SYSROOT],
1339 [AC_MSG_CHECKING([for sysroot])
1340 AC_ARG_WITH([sysroot],
1341 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1342 [Search for dependent libraries within DIR (or the compiler's sysroot
1343 if not specified).])],
1344 [], [with_sysroot=no])
1346 dnl lt_sysroot will always be passed unquoted. We quote it here
1347 dnl in case the user passed a directory name.
1349 case $with_sysroot in #(
1351 if test yes = "$GCC"; then
1352 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1356 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1361 AC_MSG_RESULT([$with_sysroot])
1362 AC_MSG_ERROR([The sysroot must be an absolute path.])
1366 AC_MSG_RESULT([${lt_sysroot:-no}])
1367 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1368 [dependent libraries, and where our libraries should be installed.])])
1372 m4_defun([_LT_ENABLE_LOCK],
1373 [AC_ARG_ENABLE([libtool-lock],
1374 [AS_HELP_STRING([--disable-libtool-lock],
1375 [avoid locking (might break parallel builds)])])
1376 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1378 # Some flags need to be propagated to the compiler or linker for good
1382 # Find out what ABI is being produced by ac_compile, and set mode
1383 # options accordingly.
1384 echo 'int i;' > conftest.$ac_ext
1385 if AC_TRY_EVAL(ac_compile); then
1386 case `/usr/bin/file conftest.$ac_objext` in
1398 # Find out what ABI is being produced by ac_compile, and set linker
1399 # options accordingly.
1400 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1401 if AC_TRY_EVAL(ac_compile); then
1402 if test yes = "$lt_cv_prog_gnu_ld"; then
1403 case `/usr/bin/file conftest.$ac_objext` in
1405 LD="${LD-ld} -melf32bsmip"
1408 LD="${LD-ld} -melf32bmipn32"
1411 LD="${LD-ld} -melf64bmip"
1415 case `/usr/bin/file conftest.$ac_objext` in
1432 # Find out what ABI is being produced by ac_compile, and set linker
1433 # options accordingly.
1434 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1435 if AC_TRY_EVAL(ac_compile); then
1437 case `/usr/bin/file conftest.$ac_objext` in
1445 case `/usr/bin/file conftest.$ac_objext` in
1447 emul="${emul}btsmip"
1450 emul="${emul}ltsmip"
1453 case `/usr/bin/file conftest.$ac_objext` in
1458 LD="${LD-ld} -m $emul"
1463 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1464 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1465 # Find out what ABI is being produced by ac_compile, and set linker
1466 # options accordingly. Note that the listed cases only cover the
1467 # situations where additional linker options are needed (such as when
1468 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1469 # vice versa); the common cases where no linker options are needed do
1470 # not appear in the list.
1471 echo 'int i;' > conftest.$ac_ext
1472 if AC_TRY_EVAL(ac_compile); then
1473 case `/usr/bin/file conftest.o` in
1476 x86_64-*kfreebsd*-gnu)
1477 LD="${LD-ld} -m elf_i386_fbsd"
1480 case `/usr/bin/file conftest.o` in
1482 LD="${LD-ld} -m elf32_x86_64"
1485 LD="${LD-ld} -m elf_i386"
1489 powerpc64le-*linux*)
1490 LD="${LD-ld} -m elf32lppclinux"
1493 LD="${LD-ld} -m elf32ppclinux"
1496 LD="${LD-ld} -m elf_s390"
1499 LD="${LD-ld} -m elf32_sparc"
1505 x86_64-*kfreebsd*-gnu)
1506 LD="${LD-ld} -m elf_x86_64_fbsd"
1509 LD="${LD-ld} -m elf_x86_64"
1512 LD="${LD-ld} -m elf64lppc"
1515 LD="${LD-ld} -m elf64ppc"
1517 s390*-*linux*|s390*-*tpf*)
1518 LD="${LD-ld} -m elf64_s390"
1521 LD="${LD-ld} -m elf64_sparc"
1531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1533 CFLAGS="$CFLAGS -belf"
1534 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1536 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1538 if test yes != "$lt_cv_cc_needs_belf"; then
1539 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1544 # Find out what ABI is being produced by ac_compile, and set linker
1545 # options accordingly.
1546 echo 'int i;' > conftest.$ac_ext
1547 if AC_TRY_EVAL(ac_compile); then
1548 case `/usr/bin/file conftest.o` in
1550 case $lt_cv_prog_gnu_ld in
1553 i?86-*-solaris*|x86_64-*-solaris*)
1554 LD="${LD-ld} -m elf_x86_64"
1557 LD="${LD-ld} -m elf64_sparc"
1560 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1561 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1566 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1578 need_locks=$enable_libtool_lock
1584 m4_defun([_LT_PROG_AR],
1585 [AC_CHECK_TOOLS(AR, [ar], false)
1588 _LT_DECL([], [AR], [1], [The archiver])
1589 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1591 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1592 [lt_cv_ar_at_file=no
1593 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1594 [echo conftest.$ac_objext > conftest.lst
1595 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1596 AC_TRY_EVAL([lt_ar_try])
1597 if test 0 -eq "$ac_status"; then
1598 # Ensure the archiver fails upon bogus file names.
1599 rm -f conftest.$ac_objext libconftest.a
1600 AC_TRY_EVAL([lt_ar_try])
1601 if test 0 -ne "$ac_status"; then
1605 rm -f conftest.* libconftest.a
1609 if test no = "$lt_cv_ar_at_file"; then
1612 archiver_list_spec=$lt_cv_ar_at_file
1614 _LT_DECL([], [archiver_list_spec], [1],
1615 [How to feed a file listing to the archiver])
1619 # _LT_CMD_OLD_ARCHIVE
1620 # -------------------
1621 m4_defun([_LT_CMD_OLD_ARCHIVE],
1624 AC_CHECK_TOOL(STRIP, strip, :)
1625 test -z "$STRIP" && STRIP=:
1626 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1628 AC_CHECK_TOOL(RANLIB, ranlib, :)
1629 test -z "$RANLIB" && RANLIB=:
1630 _LT_DECL([], [RANLIB], [1],
1631 [Commands used to install an old-style archive])
1633 # Determine commands to create old-style static archives.
1634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1635 old_postinstall_cmds='chmod 644 $oldlib'
1636 old_postuninstall_cmds=
1638 if test -n "$RANLIB"; then
1641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1652 lock_old_archive_extraction=yes ;;
1654 lock_old_archive_extraction=no ;;
1656 _LT_DECL([], [old_postinstall_cmds], [2])
1657 _LT_DECL([], [old_postuninstall_cmds], [2])
1658 _LT_TAGDECL([], [old_archive_cmds], [2],
1659 [Commands used to build an old-style archive])
1660 _LT_DECL([], [lock_old_archive_extraction], [0],
1661 [Whether to use a lock for old archive extraction])
1662 ])# _LT_CMD_OLD_ARCHIVE
1665 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1666 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1667 # ----------------------------------------------------------------
1668 # Check whether the given compiler option works
1669 AC_DEFUN([_LT_COMPILER_OPTION],
1670 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1671 m4_require([_LT_DECL_SED])dnl
1672 AC_CACHE_CHECK([$1], [$2],
1674 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1676 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1677 # Insert the option either (1) after the last *FLAGS variable, or
1678 # (2) before a word containing "conftest.", or (3) at the end.
1679 # Note that $ac_compile itself does not contain backslashes and begins
1680 # with a dollar sign (not a hyphen), so the echo should work correctly.
1681 # The option is referenced via a variable to avoid confusing sed.
1682 lt_compile=`echo "$ac_compile" | $SED \
1683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1684 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1685 -e 's:$: $lt_compiler_flag:'`
1686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1687 (eval "$lt_compile" 2>conftest.err)
1689 cat conftest.err >&AS_MESSAGE_LOG_FD
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1691 if (exit $ac_status) && test -s "$ac_outfile"; then
1692 # The compiler can only warn and ignore the option if not recognized
1693 # So say no if there are warnings other than the usual output.
1694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1703 if test yes = "[$]$2"; then
1704 m4_if([$5], , :, [$5])
1706 m4_if([$6], , :, [$6])
1708 ])# _LT_COMPILER_OPTION
1711 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1712 dnl aclocal-1.4 backwards compatibility:
1713 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1716 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1717 # [ACTION-SUCCESS], [ACTION-FAILURE])
1718 # ----------------------------------------------------
1719 # Check whether the given linker option works
1720 AC_DEFUN([_LT_LINKER_OPTION],
1721 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1722 m4_require([_LT_DECL_SED])dnl
1723 AC_CACHE_CHECK([$1], [$2],
1725 save_LDFLAGS=$LDFLAGS
1726 LDFLAGS="$LDFLAGS $3"
1727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1729 # The linker can only warn and ignore the option if not recognized
1730 # So say no if there are warnings
1731 if test -s conftest.err; then
1732 # Append any errors to the config.log.
1733 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1736 if diff conftest.exp conftest.er2 >/dev/null; then
1744 LDFLAGS=$save_LDFLAGS
1747 if test yes = "[$]$2"; then
1748 m4_if([$4], , :, [$4])
1750 m4_if([$5], , :, [$5])
1752 ])# _LT_LINKER_OPTION
1755 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1756 dnl aclocal-1.4 backwards compatibility:
1757 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1762 AC_DEFUN([LT_CMD_MAX_LEN],
1763 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1764 # find the maximum length of command line arguments
1765 AC_MSG_CHECKING([the maximum length of command line arguments])
1766 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1772 # On DJGPP, this test can blow up pretty badly due to problems in libc
1773 # (any single argument exceeding 2000 bytes causes a buffer overrun
1774 # during glob expansion). Even if it were fixed, the result of this
1775 # check would be larger than it should be.
1776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1780 # Under GNU Hurd, this test is not required because there is
1781 # no limit to the length of command line arguments.
1782 # Libtool will interpret -1 as no limit whatsoever
1783 lt_cv_sys_max_cmd_len=-1;
1786 cygwin* | mingw* | cegcc*)
1787 # On Win9x/ME, this test blows up -- it succeeds, but takes
1788 # about 5 minutes as the teststring grows exponentially.
1789 # Worse, since 9x/ME are not pre-emptively multitasking,
1790 # you end up with a "frozen" computer, even though with patience
1791 # the test eventually succeeds (with a max line length of 256k).
1792 # Instead, let's just punt: use the minimum linelength reported by
1793 # all of the supported platforms: 8192 (on NT/2K/XP).
1794 lt_cv_sys_max_cmd_len=8192;
1798 # On MiNT this can take a long time and run out of memory.
1799 lt_cv_sys_max_cmd_len=8192;
1803 # On AmigaOS with pdksh, this test takes hours, literally.
1804 # So we just punt and use a minimum line length of 8192.
1805 lt_cv_sys_max_cmd_len=8192;
1808 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1809 # This has been around since 386BSD, at least. Likely further.
1810 if test -x /sbin/sysctl; then
1811 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1812 elif test -x /usr/sbin/sysctl; then
1813 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1815 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1817 # And add a safety zone
1818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1823 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1824 lt_cv_sys_max_cmd_len=196608
1828 # The test takes a long time on OS/2.
1829 lt_cv_sys_max_cmd_len=8192
1833 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1834 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1835 # nice to cause kernel panics so lets avoid the loop below.
1836 # First set a reasonable default.
1837 lt_cv_sys_max_cmd_len=16384
1839 if test -x /sbin/sysconfig; then
1840 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1841 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1846 lt_cv_sys_max_cmd_len=102400
1848 sysv5* | sco5v6* | sysv4.2uw2*)
1849 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1850 if test -n "$kargmax"; then
1851 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1853 lt_cv_sys_max_cmd_len=32768
1857 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1858 if test -n "$lt_cv_sys_max_cmd_len" && \
1859 test undefined != "$lt_cv_sys_max_cmd_len"; then
1860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1863 # Make teststring a little bigger before we do anything with it.
1864 # a 1K string should be a reasonable start.
1865 for i in 1 2 3 4 5 6 7 8; do
1866 teststring=$teststring$teststring
1868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1869 # If test is not a shell built-in, we'll probably end up computing a
1870 # maximum length that is only half of the actual maximum length, but
1872 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1873 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1874 test 17 != "$i" # 1/2 MB should be enough
1877 teststring=$teststring$teststring
1879 # Only check the string length outside the loop.
1880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1882 # Add a significant safety factor because C++ compilers can tack on
1883 # massive amounts of additional arguments before passing them to the
1884 # linker. It appears as though 1/2 is a usable value.
1885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1890 if test -n "$lt_cv_sys_max_cmd_len"; then
1891 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1895 max_cmd_len=$lt_cv_sys_max_cmd_len
1896 _LT_DECL([], [max_cmd_len], [0],
1897 [What is the maximum length of a command?])
1901 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1902 dnl aclocal-1.4 backwards compatibility:
1903 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1908 m4_defun([_LT_HEADER_DLFCN],
1909 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1910 ])# _LT_HEADER_DLFCN
1913 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1914 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1915 # ----------------------------------------------------------------
1916 m4_defun([_LT_TRY_DLOPEN_SELF],
1917 [m4_require([_LT_HEADER_DLFCN])dnl
1918 if test yes = "$cross_compiling"; then :
1921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1922 lt_status=$lt_dlunknown
1923 cat > conftest.$ac_ext <<_LT_EOF
1924 [#line $LINENO "configure"
1925 #include "confdefs.h"
1934 # define LT_DLGLOBAL RTLD_GLOBAL
1937 # define LT_DLGLOBAL DL_GLOBAL
1939 # define LT_DLGLOBAL 0
1943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1944 find out it does not work in some platform. */
1945 #ifndef LT_DLLAZY_OR_NOW
1947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1950 # define LT_DLLAZY_OR_NOW DL_LAZY
1953 # define LT_DLLAZY_OR_NOW RTLD_NOW
1956 # define LT_DLLAZY_OR_NOW DL_NOW
1958 # define LT_DLLAZY_OR_NOW 0
1965 /* When -fvisibility=hidden is used, assume the code has been annotated
1966 correspondingly for the symbols needed. */
1967 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1968 int fnord () __attribute__((visibility("default")));
1971 int fnord () { return 42; }
1974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1975 int status = $lt_dlunknown;
1979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1982 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1983 else puts (dlerror ());
1985 /* dlclose (self); */
1993 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1994 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1997 x$lt_dlno_uscore) $1 ;;
1998 x$lt_dlneed_uscore) $2 ;;
1999 x$lt_dlunknown|x*) $3 ;;
2002 # compilation failed
2007 ])# _LT_TRY_DLOPEN_SELF
2010 # LT_SYS_DLOPEN_SELF
2011 # ------------------
2012 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2013 [m4_require([_LT_HEADER_DLFCN])dnl
2014 if test yes != "$enable_dlopen"; then
2015 enable_dlopen=unknown
2016 enable_dlopen_self=unknown
2017 enable_dlopen_self_static=unknown
2024 lt_cv_dlopen=load_add_on
2026 lt_cv_dlopen_self=yes
2029 mingw* | pw32* | cegcc*)
2030 lt_cv_dlopen=LoadLibrary
2040 # if libdl is installed we need to link against it
2041 AC_CHECK_LIB([dl], [dlopen],
2042 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
2045 lt_cv_dlopen_self=yes
2050 # Don't try to run any link tests for TPF. We know it's impossible
2051 # because TPF is a cross-compiler, and we know how we open DSOs.
2054 lt_cv_dlopen_self=no
2058 AC_CHECK_FUNC([shl_load],
2059 [lt_cv_dlopen=shl_load],
2060 [AC_CHECK_LIB([dld], [shl_load],
2061 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
2062 [AC_CHECK_FUNC([dlopen],
2063 [lt_cv_dlopen=dlopen],
2064 [AC_CHECK_LIB([dl], [dlopen],
2065 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
2066 [AC_CHECK_LIB([svld], [dlopen],
2067 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
2068 [AC_CHECK_LIB([dld], [dld_link],
2069 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2078 if test no = "$lt_cv_dlopen"; then
2084 case $lt_cv_dlopen in
2086 save_CPPFLAGS=$CPPFLAGS
2087 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2089 save_LDFLAGS=$LDFLAGS
2090 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2093 LIBS="$lt_cv_dlopen_libs $LIBS"
2095 AC_CACHE_CHECK([whether a program can dlopen itself],
2096 lt_cv_dlopen_self, [dnl
2097 _LT_TRY_DLOPEN_SELF(
2098 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2099 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2102 if test yes = "$lt_cv_dlopen_self"; then
2103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2104 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2105 lt_cv_dlopen_self_static, [dnl
2106 _LT_TRY_DLOPEN_SELF(
2107 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2108 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2112 CPPFLAGS=$save_CPPFLAGS
2113 LDFLAGS=$save_LDFLAGS
2118 case $lt_cv_dlopen_self in
2119 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2120 *) enable_dlopen_self=unknown ;;
2123 case $lt_cv_dlopen_self_static in
2124 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2125 *) enable_dlopen_self_static=unknown ;;
2128 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2129 [Whether dlopen is supported])
2130 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2131 [Whether dlopen of programs is supported])
2132 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2133 [Whether dlopen of statically linked programs is supported])
2134 ])# LT_SYS_DLOPEN_SELF
2137 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2138 dnl aclocal-1.4 backwards compatibility:
2139 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2142 # _LT_COMPILER_C_O([TAGNAME])
2143 # ---------------------------
2144 # Check to see if options -c and -o are simultaneously supported by compiler.
2145 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2146 m4_defun([_LT_COMPILER_C_O],
2147 [m4_require([_LT_DECL_SED])dnl
2148 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2149 m4_require([_LT_TAG_COMPILER])dnl
2150 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2151 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2152 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2153 $RM -r conftest 2>/dev/null
2157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2159 lt_compiler_flag="-o out/conftest2.$ac_objext"
2160 # Insert the option either (1) after the last *FLAGS variable, or
2161 # (2) before a word containing "conftest.", or (3) at the end.
2162 # Note that $ac_compile itself does not contain backslashes and begins
2163 # with a dollar sign (not a hyphen), so the echo should work correctly.
2164 lt_compile=`echo "$ac_compile" | $SED \
2165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2166 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2167 -e 's:$: $lt_compiler_flag:'`
2168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2169 (eval "$lt_compile" 2>out/conftest.err)
2171 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2175 # The compiler can only warn and ignore the option if not recognized
2176 # So say no if there are warnings
2177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2180 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2183 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2185 # SGI C++ compiler will create directory out/ii_files/ for
2186 # template instantiation
2187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2188 $RM out/* && rmdir out
2193 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2194 [Does compiler simultaneously support -c and -o options?])
2195 ])# _LT_COMPILER_C_O
2198 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2199 # ----------------------------------
2200 # Check to see if we can do hard links to lock some files if needed
2201 m4_defun([_LT_COMPILER_FILE_LOCKS],
2202 [m4_require([_LT_ENABLE_LOCK])dnl
2203 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2204 _LT_COMPILER_C_O([$1])
2206 hard_links=nottested
2207 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2208 # do not overwrite the value of need_locks provided by the user
2209 AC_MSG_CHECKING([if we can lock with hard links])
2212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2214 ln conftest.a conftest.b 2>&5 || hard_links=no
2215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2216 AC_MSG_RESULT([$hard_links])
2217 if test no = "$hard_links"; then
2218 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2224 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2225 ])# _LT_COMPILER_FILE_LOCKS
2230 m4_defun([_LT_CHECK_OBJDIR],
2231 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2232 [rm -f .libs 2>/dev/null
2233 mkdir .libs 2>/dev/null
2234 if test -d .libs; then
2237 # MS-DOS does not allow filenames that begin with a dot.
2240 rmdir .libs 2>/dev/null])
2241 objdir=$lt_cv_objdir
2242 _LT_DECL([], [objdir], [0],
2243 [The name of the directory that contains temporary libtool files])dnl
2244 m4_pattern_allow([LT_OBJDIR])dnl
2245 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2246 [Define to the sub-directory where libtool stores uninstalled libraries.])
2247 ])# _LT_CHECK_OBJDIR
2250 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2251 # --------------------------------------
2252 # Check hardcoding attributes.
2253 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2254 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2255 _LT_TAGVAR(hardcode_action, $1)=
2256 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2257 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2258 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2260 # We can hardcode non-existent directories.
2261 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2262 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2263 # have to relink, otherwise we might link with an installed library
2264 # when we should be linking with a yet-to-be-installed one
2265 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2266 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2267 # Linking always hardcodes the temporary library directory.
2268 _LT_TAGVAR(hardcode_action, $1)=relink
2270 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2271 _LT_TAGVAR(hardcode_action, $1)=immediate
2274 # We cannot hardcode anything, or else we can only hardcode existing
2276 _LT_TAGVAR(hardcode_action, $1)=unsupported
2278 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2280 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2281 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2282 # Fast installation is not supported
2283 enable_fast_install=no
2284 elif test yes = "$shlibpath_overrides_runpath" ||
2285 test no = "$enable_shared"; then
2286 # Fast installation is not necessary
2287 enable_fast_install=needless
2289 _LT_TAGDECL([], [hardcode_action], [0],
2290 [How to hardcode a shared library path into an executable])
2291 ])# _LT_LINKER_HARDCODE_LIBPATH
2296 m4_defun([_LT_CMD_STRIPLIB],
2297 [m4_require([_LT_DECL_EGREP])
2300 AC_MSG_CHECKING([whether stripping libraries is possible])
2301 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2302 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2303 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2304 AC_MSG_RESULT([yes])
2306 # FIXME - insert some real tests, host_os isn't really good enough
2309 if test -n "$STRIP"; then
2310 striplib="$STRIP -x"
2311 old_striplib="$STRIP -S"
2312 AC_MSG_RESULT([yes])
2322 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2323 _LT_DECL([], [striplib], [1])
2324 ])# _LT_CMD_STRIPLIB
2327 # _LT_PREPARE_MUNGE_PATH_LIST
2328 # ---------------------------
2329 # Make sure func_munge_path_list() is defined correctly.
2330 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2331 [[# func_munge_path_list VARIABLE PATH
2332 # -----------------------------------
2333 # VARIABLE is name of variable containing _space_ separated list of
2334 # directories to be munged by the contents of PATH, which is string
2337 # string "DIR[ DIR]" will be prepended to VARIABLE
2339 # string "DIR[ DIR]" will be appended to VARIABLE
2340 # "DIRP[:DIRP]::[DIRA:]DIRA"
2341 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2342 # "DIRA[ DIRA]" will be appended to VARIABLE
2344 # VARIABLE will be replaced by "DIR[ DIR]"
2345 func_munge_path_list ()
2351 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2354 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2357 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2358 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2361 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2365 ]])# _LT_PREPARE_PATH_LIST
2368 # _LT_SYS_DYNAMIC_LINKER([TAG])
2369 # -----------------------------
2370 # PORTME Fill in your ld.so characteristics
2371 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2372 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2373 m4_require([_LT_DECL_EGREP])dnl
2374 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2375 m4_require([_LT_DECL_OBJDUMP])dnl
2376 m4_require([_LT_DECL_SED])dnl
2377 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2378 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2379 AC_MSG_CHECKING([dynamic linker characteristics])
2382 if test yes = "$GCC"; then
2384 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2385 *) lt_awk_arg='/^libraries:/' ;;
2388 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2389 *) lt_sed_strip_eq='s|=/|/|g' ;;
2391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2392 case $lt_search_path_spec in
2394 # if the path contains ";" then we assume it to be the separator
2395 # otherwise default to the standard path separator (i.e. ":") - it is
2396 # assumed that no part of a normal pathname contains ";" but that should
2397 # okay in the real world where ";" in dirpaths is itself problematic.
2398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2404 # Ok, now we have the path, separated by spaces, we can step through it
2405 # and add multilib dir if necessary...
2406 lt_tmp_lt_search_path_spec=
2407 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2408 # ...but if some path component already ends with the multilib dir we assume
2409 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2410 case "$lt_multi_os_dir; $lt_search_path_spec " in
2411 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2415 for lt_sys_path in $lt_search_path_spec; do
2416 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2418 elif test -n "$lt_multi_os_dir"; then
2419 test -d "$lt_sys_path" && \
2420 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2423 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2424 BEGIN {RS = " "; FS = "/|\n";} {
2427 for (lt_i = NF; lt_i > 0; lt_i--) {
2428 if ($lt_i != "" && $lt_i != ".") {
2429 if ($lt_i == "..") {
2432 if (lt_count == 0) {
2433 lt_foo = "/" $lt_i lt_foo;
2440 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2441 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2443 # AWK program above erroneously prepends '/' to C:/dos/paths
2446 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2447 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2449 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2454 libname_spec='lib$name'
2462 shlibpath_overrides_runpath=unknown
2464 dynamic_linker="$host_os ld.so"
2465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2466 need_lib_prefix=unknown
2467 hardcode_into_libs=no
2469 # when you set need_version to no, make sure it does not cause -set_version
2470 # flags to be left without arguments
2471 need_version=unknown
2473 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2474 [User-defined run-time library search path.])
2478 version_type=linux # correct to gnu/linux during the next big refactor
2479 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2480 shlibpath_var=LIBPATH
2482 # AIX 3 has no versioning support, so we append a major version to the name.
2483 soname_spec='$libname$release$shared_ext$major'
2487 version_type=linux # correct to gnu/linux during the next big refactor
2490 hardcode_into_libs=yes
2491 if test ia64 = "$host_cpu"; then
2492 # AIX 5 supports IA64
2493 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2494 shlibpath_var=LD_LIBRARY_PATH
2496 # With GCC up to 2.95.x, collect2 would create an import file
2497 # for dependence libraries. The import file would start with
2498 # the line '#! .'. This would cause the generated library to
2499 # depend on '.', always an invalid library. This was fixed in
2500 # development snapshots of GCC prior to 3.0.
2502 aix4 | aix4.[[01]] | aix4.[[01]].*)
2503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2505 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2512 # Using Import Files as archive members, it is possible to support
2513 # filename-based versioning of shared library archives on AIX. While
2514 # this would work for both with and without runtime linking, it will
2515 # prevent static linking of such archives. So we do filename-based
2516 # shared library versioning with .so extension only, which is used
2517 # when both runtime linking and shared linking is enabled.
2518 # Unfortunately, runtime linking may impact performance, so we do
2519 # not want this to be the default eventually. Also, we use the
2520 # versioned .so libs for executables only if there is the -brtl
2521 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2522 # To allow for filename-based versioning support, we need to create
2523 # libNAME.so.V as an archive file, containing:
2524 # *) an Import File, referring to the versioned filename of the
2525 # archive as well as the shared archive member, telling the
2526 # bitwidth (32 or 64) of that shared object, and providing the
2527 # list of exported symbols of that shared object, eventually
2528 # decorated with the 'weak' keyword
2529 # *) the shared object with the F_LOADONLY flag set, to really avoid
2530 # it being seen by the linker.
2531 # At run time we better use the real file rather than another symlink,
2532 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2534 case $with_aix_soname,$aix_use_runtimelinking in
2535 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2536 # soname into executable. Probably we can add versioning support to
2537 # collect2, so additional links can be useful in future.
2538 aix,yes) # traditional libtool
2539 dynamic_linker='AIX unversionable lib.so'
2540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2541 # instead of lib<name>.a to let people know that these are not
2542 # typical AIX shared libraries.
2543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2545 aix,no) # traditional AIX only
2546 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2547 # We preserve .a as extension for shared libraries through AIX4.2
2548 # and later when we are not doing run time linking.
2549 library_names_spec='$libname$release.a $libname.a'
2550 soname_spec='$libname$release$shared_ext$major'
2552 svr4,*) # full svr4 only
2553 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2554 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2555 # We do not specify a path in Import Files, so LIBPATH fires.
2556 shlibpath_overrides_runpath=yes
2558 *,yes) # both, prefer svr4
2559 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2560 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2561 # unpreferred sharedlib libNAME.a needs extra handling
2562 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"'
2563 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"'
2564 # We do not specify a path in Import Files, so LIBPATH fires.
2565 shlibpath_overrides_runpath=yes
2567 *,no) # both, prefer aix
2568 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2569 library_names_spec='$libname$release.a $libname.a'
2570 soname_spec='$libname$release$shared_ext$major'
2571 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2572 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)'
2573 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"'
2576 shlibpath_var=LIBPATH
2583 # Since July 2007 AmigaOS4 officially supports .so libraries.
2584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2588 library_names_spec='$libname.ixlibrary $libname.a'
2589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2590 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'
2596 library_names_spec='$libname$shared_ext'
2597 dynamic_linker="$host_os ld.so"
2598 shlibpath_var=LIBRARY_PATH
2602 version_type=linux # correct to gnu/linux during the next big refactor
2604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2605 soname_spec='$libname$release$shared_ext$major'
2606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2607 shlibpath_var=LD_LIBRARY_PATH
2608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2610 # the default ld.so.conf also contains /usr/contrib/lib and
2611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2612 # libtool to hard-code these into programs
2615 cygwin* | mingw* | pw32* | cegcc*)
2616 version_type=windows
2621 case $GCC,$cc_basename in
2624 library_names_spec='$libname.dll.a'
2625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2626 postinstall_cmds='base_file=`basename \$file`~
2627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2628 dldir=$destdir/`dirname \$dlpath`~
2629 test -d \$dldir || mkdir -p \$dldir~
2630 $install_prog $dir/$dlname \$dldir/$dlname~
2631 chmod a+x \$dldir/$dlname~
2632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2636 dlpath=$dir/\$dldll~
2638 shlibpath_overrides_runpath=yes
2642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2643 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2648 # MinGW DLLs use traditional 'lib' prefix
2649 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2652 # pw32 DLLs use 'pw' prefix rather than 'lib'
2653 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2656 dynamic_linker='Win32 ld.exe'
2661 libname_spec='$name'
2662 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2663 library_names_spec='$libname.dll.lib'
2667 sys_lib_search_path_spec=
2673 # Let DOS variable expansion print the short 8.3 style file name.
2674 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2675 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2678 # Convert to MSYS style.
2679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2682 # Convert to unix form, then to dos form, then back to unix form
2683 # but this time dos style (no spaces!) so that the unix form looks
2684 # like /cygdrive/c/PROGRA~1:/cygdr...
2685 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2686 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2687 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2690 sys_lib_search_path_spec=$LIB
2691 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2692 # It is most probably a Windows format PATH.
2693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2697 # FIXME: find the short name or the path components, as spaces are
2698 # common. (e.g. "Program Files" -> "PROGRA~1")
2702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2703 postinstall_cmds='base_file=`basename \$file`~
2704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2705 dldir=$destdir/`dirname \$dlpath`~
2706 test -d \$dldir || mkdir -p \$dldir~
2707 $install_prog $dir/$dlname \$dldir/$dlname'
2708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2709 dlpath=$dir/\$dldll~
2711 shlibpath_overrides_runpath=yes
2712 dynamic_linker='Win32 link.exe'
2716 # Assume MSVC wrapper
2717 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2718 dynamic_linker='Win32 ld.exe'
2721 # FIXME: first we should search . and the directory the executable is in
2725 darwin* | rhapsody*)
2726 dynamic_linker="$host_os dyld"
2730 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2731 soname_spec='$libname$release$major$shared_ext'
2732 shlibpath_overrides_runpath=yes
2733 shlibpath_var=DYLD_LIBRARY_PATH
2734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2736 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2741 version_type=linux # correct to gnu/linux during the next big refactor
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2745 soname_spec='$libname$release$shared_ext$major'
2746 shlibpath_var=LD_LIBRARY_PATH
2749 freebsd* | dragonfly*)
2750 # DragonFly does not have aout. When/if they implement a new
2751 # versioning mechanism, adjust this.
2752 if test -x /usr/bin/objformat; then
2753 objformat=`/usr/bin/objformat`
2756 freebsd[[23]].*) objformat=aout ;;
2760 version_type=freebsd-$objformat
2761 case $version_type in
2763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2764 soname_spec='$libname$release$shared_ext$major'
2769 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2773 shlibpath_var=LD_LIBRARY_PATH
2776 shlibpath_overrides_runpath=yes
2778 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2779 shlibpath_overrides_runpath=yes
2780 hardcode_into_libs=yes
2782 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2783 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2784 shlibpath_overrides_runpath=no
2785 hardcode_into_libs=yes
2787 *) # from 4.6 on, and DragonFly
2788 shlibpath_overrides_runpath=yes
2789 hardcode_into_libs=yes
2795 version_type=linux # correct to gnu/linux during the next big refactor
2798 dynamic_linker="$host_os runtime_loader"
2799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2800 soname_spec='$libname$release$shared_ext$major'
2801 shlibpath_var=LIBRARY_PATH
2802 shlibpath_overrides_runpath=no
2803 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2804 hardcode_into_libs=yes
2807 hpux9* | hpux10* | hpux11*)
2808 # Give a soname corresponding to the major version so that dld.sl refuses to
2809 # link against other versions.
2816 hardcode_into_libs=yes
2817 dynamic_linker="$host_os dld.so"
2818 shlibpath_var=LD_LIBRARY_PATH
2819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2821 soname_spec='$libname$release$shared_ext$major'
2822 if test 32 = "$HPUX_IA64_MODE"; then
2823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2824 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2827 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2832 hardcode_into_libs=yes
2833 dynamic_linker="$host_os dld.sl"
2834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2837 soname_spec='$libname$release$shared_ext$major'
2838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2843 dynamic_linker="$host_os dld.sl"
2844 shlibpath_var=SHLIB_PATH
2845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2847 soname_spec='$libname$release$shared_ext$major'
2850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2851 postinstall_cmds='chmod 555 $lib'
2852 # or fails outright, so override atomically:
2853 install_override_mode=555
2857 version_type=linux # correct to gnu/linux during the next big refactor
2860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2861 soname_spec='$libname$release$shared_ext$major'
2862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2863 shlibpath_var=LD_LIBRARY_PATH
2864 shlibpath_overrides_runpath=no
2865 hardcode_into_libs=yes
2868 irix5* | irix6* | nonstopux*)
2870 nonstopux*) version_type=nonstopux ;;
2872 if test yes = "$lt_cv_prog_gnu_ld"; then
2873 version_type=linux # correct to gnu/linux during the next big refactor
2880 soname_spec='$libname$release$shared_ext$major'
2881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2883 irix5* | nonstopux*)
2887 case $LD in # libtool.m4 will add one of these switches to LD
2888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2889 libsuff= shlibsuff= libmagic=32-bit;;
2890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2891 libsuff=32 shlibsuff=N32 libmagic=N32;;
2892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2893 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2894 *) libsuff= shlibsuff= libmagic=never-match;;
2898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2899 shlibpath_overrides_runpath=no
2900 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2901 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2902 hardcode_into_libs=yes
2905 # No shared lib support for Linux oldld, aout, or coff.
2906 linux*oldld* | linux*aout* | linux*coff*)
2911 version_type=none # Android doesn't support versioned libraries.
2914 library_names_spec='$libname$release$shared_ext'
2915 soname_spec='$libname$release$shared_ext'
2917 shlibpath_var=LD_LIBRARY_PATH
2918 shlibpath_overrides_runpath=yes
2920 # This implies no fast_install, which is unacceptable.
2921 # Some rework will be needed to allow for fast_install
2922 # before this can be enabled.
2923 hardcode_into_libs=yes
2925 dynamic_linker='Android linker'
2926 # Don't embed -rpath directories since the linker doesn't support them.
2927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2930 # This must be glibc/ELF.
2931 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2932 version_type=linux # correct to gnu/linux during the next big refactor
2935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2936 soname_spec='$libname$release$shared_ext$major'
2937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2938 shlibpath_var=LD_LIBRARY_PATH
2939 shlibpath_overrides_runpath=no
2941 # Some binutils ld are patched to set DT_RUNPATH
2942 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2943 [lt_cv_shlibpath_overrides_runpath=no
2944 save_LDFLAGS=$LDFLAGS
2946 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2947 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2948 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2949 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2950 [lt_cv_shlibpath_overrides_runpath=yes])])
2951 LDFLAGS=$save_LDFLAGS
2954 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2956 # This implies no fast_install, which is unacceptable.
2957 # Some rework will be needed to allow for fast_install
2958 # before this can be enabled.
2959 hardcode_into_libs=yes
2961 # Add ABI-specific directories to the system library path.
2962 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2964 # Ideally, we could use ldconfig to report *all* directores which are
2965 # searched for libraries, however this is still not possible. Aside from not
2966 # being certain /sbin/ldconfig is available, command
2967 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2968 # even though it is searched at run-time. Try to do the best guess by
2969 # appending ld.so.conf contents (and includes) to the search path.
2970 if test -f /etc/ld.so.conf; then
2971 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' ' '`
2972 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2975 # We used to test for /lib/ld.so.1 and disable shared libraries on
2976 # powerpc, because MkLinux only supported shared libraries with the
2977 # GNU dynamic linker. Since this was broken with cross compilers,
2978 # most powerpc-linux boxes support dynamic linking these days and
2979 # people can always --disable-shared, the test was removed, and we
2980 # assume the GNU/Linux dynamic linker is in use.
2981 dynamic_linker='GNU/Linux ld.so'
2988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2991 dynamic_linker='NetBSD (a.out) ld.so'
2993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2994 soname_spec='$libname$release$shared_ext$major'
2995 dynamic_linker='NetBSD ld.elf_so'
2997 shlibpath_var=LD_LIBRARY_PATH
2998 shlibpath_overrides_runpath=yes
2999 hardcode_into_libs=yes
3003 version_type=linux # correct to gnu/linux during the next big refactor
3004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3005 shlibpath_var=LD_LIBRARY_PATH
3006 shlibpath_overrides_runpath=yes
3013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3014 soname_spec='$libname$release$shared_ext$major'
3015 shlibpath_var=LD_LIBRARY_PATH
3016 shlibpath_overrides_runpath=no
3017 hardcode_into_libs=yes
3018 dynamic_linker='ldqnx.so'
3023 sys_lib_dlsearch_path_spec=/usr/lib
3025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3030 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3032 shlibpath_var=LD_LIBRARY_PATH
3033 shlibpath_overrides_runpath=yes
3037 libname_spec='$name'
3038 version_type=windows
3042 # OS/2 can only load a DLL with a base name of 8 characters or less.
3043 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
3044 v=$($ECHO $release$versuffix | tr -d .-);
3045 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
3046 $ECHO $n$v`$shared_ext'
3047 library_names_spec='${libname}_dll.$libext'
3048 dynamic_linker='OS/2 ld.exe'
3049 shlibpath_var=BEGINLIBPATH
3050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3052 postinstall_cmds='base_file=`basename \$file`~
3053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
3054 dldir=$destdir/`dirname \$dlpath`~
3055 test -d \$dldir || mkdir -p \$dldir~
3056 $install_prog $dir/$dlname \$dldir/$dlname~
3057 chmod a+x \$dldir/$dlname~
3058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3062 dlpath=$dir/\$dldll~
3066 osf3* | osf4* | osf5*)
3070 soname_spec='$libname$release$shared_ext$major'
3071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3072 shlibpath_var=LD_LIBRARY_PATH
3073 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3082 version_type=linux # correct to gnu/linux during the next big refactor
3085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3086 soname_spec='$libname$release$shared_ext$major'
3087 shlibpath_var=LD_LIBRARY_PATH
3088 shlibpath_overrides_runpath=yes
3089 hardcode_into_libs=yes
3090 # ldd complains unless libraries are executable
3091 postinstall_cmds='chmod +x $lib'
3096 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3098 shlibpath_var=LD_LIBRARY_PATH
3099 shlibpath_overrides_runpath=yes
3100 if test yes = "$with_gnu_ld"; then
3107 version_type=linux # correct to gnu/linux during the next big refactor
3108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3109 soname_spec='$libname$release$shared_ext$major'
3110 shlibpath_var=LD_LIBRARY_PATH
3111 case $host_vendor in
3113 shlibpath_overrides_runpath=no
3115 runpath_var=LD_RUN_PATH
3123 shlibpath_overrides_runpath=no
3124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3130 if test -d /usr/nec; then
3131 version_type=linux # correct to gnu/linux during the next big refactor
3132 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3133 soname_spec='$libname$shared_ext.$major'
3134 shlibpath_var=LD_LIBRARY_PATH
3138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3143 soname_spec='$libname$release$shared_ext$major'
3144 shlibpath_var=LD_LIBRARY_PATH
3145 shlibpath_overrides_runpath=yes
3146 hardcode_into_libs=yes
3147 if test yes = "$with_gnu_ld"; then
3148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3157 sys_lib_dlsearch_path_spec='/usr/lib'
3161 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3162 version_type=linux # correct to gnu/linux during the next big refactor
3165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3166 shlibpath_var=LD_LIBRARY_PATH
3167 shlibpath_overrides_runpath=no
3168 hardcode_into_libs=yes
3172 version_type=linux # correct to gnu/linux during the next big refactor
3173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3174 soname_spec='$libname$release$shared_ext$major'
3175 shlibpath_var=LD_LIBRARY_PATH
3182 AC_MSG_RESULT([$dynamic_linker])
3183 test no = "$dynamic_linker" && can_build_shared=no
3185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3186 if test yes = "$GCC"; then
3187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3190 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3191 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3194 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3195 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3198 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3199 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3201 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3202 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3204 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3205 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3207 _LT_DECL([], [variables_saved_for_relink], [1],
3208 [Variables whose values should be saved in libtool wrapper scripts and
3209 restored at link time])
3210 _LT_DECL([], [need_lib_prefix], [0],
3211 [Do we need the "lib" prefix for modules?])
3212 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3213 _LT_DECL([], [version_type], [0], [Library versioning type])
3214 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3215 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3216 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3217 [Is shlibpath searched before the hard-coded library search path?])
3218 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3219 _LT_DECL([], [library_names_spec], [1],
3220 [[List of archive names. First name is the real one, the rest are links.
3221 The last name is the one that the linker finds with -lNAME]])
3222 _LT_DECL([], [soname_spec], [1],
3223 [[The coded name of the library, if different from the real name]])
3224 _LT_DECL([], [install_override_mode], [1],
3225 [Permission mode override for installation of shared libraries])
3226 _LT_DECL([], [postinstall_cmds], [2],
3227 [Command to use after installation of a shared archive])
3228 _LT_DECL([], [postuninstall_cmds], [2],
3229 [Command to use after uninstallation of a shared archive])
3230 _LT_DECL([], [finish_cmds], [2],
3231 [Commands used to finish a libtool library installation in a directory])
3232 _LT_DECL([], [finish_eval], [1],
3233 [[As "finish_cmds", except a single script fragment to be evaled but
3235 _LT_DECL([], [hardcode_into_libs], [0],
3236 [Whether we should hardcode library paths into libraries])
3237 _LT_DECL([], [sys_lib_search_path_spec], [2],
3238 [Compile-time system search path for libraries])
3239 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3240 [Detected run-time system search path for libraries])
3241 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3242 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3243 ])# _LT_SYS_DYNAMIC_LINKER
3246 # _LT_PATH_TOOL_PREFIX(TOOL)
3247 # --------------------------
3248 # find a file program that can recognize shared library
3249 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3250 [m4_require([_LT_DECL_EGREP])dnl
3251 AC_MSG_CHECKING([for $1])
3252 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3254 [[\\/*] | ?:[\\/]*])
3255 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3258 lt_save_MAGIC_CMD=$MAGIC_CMD
3259 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3260 dnl $ac_dummy forces splitting on constant user-supplied paths.
3261 dnl POSIX.2 word splitting is done only on the output of word expansions,
3262 dnl not every word. This closes a longstanding sh security hole.
3263 ac_dummy="m4_if([$2], , $PATH, [$2])"
3264 for ac_dir in $ac_dummy; do
3266 test -z "$ac_dir" && ac_dir=.
3267 if test -f "$ac_dir/$1"; then
3268 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3269 if test -n "$file_magic_test_file"; then
3270 case $deplibs_check_method in
3272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3273 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3275 $EGREP "$file_magic_regex" > /dev/null; then
3280 *** Warning: the command libtool uses to detect shared libraries,
3281 *** $file_magic_cmd, produces output that libtool cannot recognize.
3282 *** The result is that libtool may fail to recognize shared libraries
3283 *** as such. This will affect the creation of libtool libraries that
3284 *** depend on shared libraries, but programs linked with such libtool
3285 *** libraries will work regardless of this problem. Nevertheless, you
3286 *** may want to report the problem to your system manager and/or to
3287 *** bug-libtool@gnu.org
3297 MAGIC_CMD=$lt_save_MAGIC_CMD
3300 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3301 if test -n "$MAGIC_CMD"; then
3302 AC_MSG_RESULT($MAGIC_CMD)
3306 _LT_DECL([], [MAGIC_CMD], [0],
3307 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3308 ])# _LT_PATH_TOOL_PREFIX
3311 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3312 dnl aclocal-1.4 backwards compatibility:
3313 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3318 # find a file program that can recognize a shared library
3319 m4_defun([_LT_PATH_MAGIC],
3320 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3321 if test -z "$lt_cv_path_MAGIC_CMD"; then
3322 if test -n "$ac_tool_prefix"; then
3323 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3333 # find the pathname to the GNU or non-GNU linker
3334 AC_DEFUN([LT_PATH_LD],
3335 [AC_REQUIRE([AC_PROG_CC])dnl
3336 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3337 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3338 m4_require([_LT_DECL_SED])dnl
3339 m4_require([_LT_DECL_EGREP])dnl
3340 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3342 AC_ARG_WITH([gnu-ld],
3343 [AS_HELP_STRING([--with-gnu-ld],
3344 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3345 [test no = "$withval" || with_gnu_ld=yes],
3346 [with_gnu_ld=no])dnl
3349 if test yes = "$GCC"; then
3350 # Check if gcc -print-prog-name=ld gives a path.
3351 AC_MSG_CHECKING([for ld used by $CC])
3354 # gcc leaves a trailing carriage return, which upsets mingw
3355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3360 # Accept absolute paths.
3361 [[\\/]]* | ?:[[\\/]]*)
3362 re_direlt='/[[^/]][[^/]]*/\.\./'
3363 # Canonicalize the pathname of ld
3364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3368 test -z "$LD" && LD=$ac_prog
3371 # If it fails, then pretend we aren't using GCC.
3375 # If it is relative, then search for the first ld in PATH.
3379 elif test yes = "$with_gnu_ld"; then
3380 AC_MSG_CHECKING([for GNU ld])
3382 AC_MSG_CHECKING([for non-GNU ld])
3384 AC_CACHE_VAL(lt_cv_path_LD,
3385 [if test -z "$LD"; then
3386 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3387 for ac_dir in $PATH; do
3389 test -z "$ac_dir" && ac_dir=.
3390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3391 lt_cv_path_LD=$ac_dir/$ac_prog
3392 # Check to see if the program is GNU ld. I'd rather use --version,
3393 # but apparently some variants of GNU ld only accept -v.
3394 # Break only if it was the GNU/non-GNU ld that we prefer.
3395 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3396 *GNU* | *'with BFD'*)
3397 test no != "$with_gnu_ld" && break
3400 test yes != "$with_gnu_ld" && break
3407 lt_cv_path_LD=$LD # Let the user override the test with a path.
3410 if test -n "$LD"; then
3415 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3419 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3423 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3424 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3425 dnl aclocal-1.4 backwards compatibility:
3426 dnl AC_DEFUN([AM_PROG_LD], [])
3427 dnl AC_DEFUN([AC_PROG_LD], [])
3432 m4_defun([_LT_PATH_LD_GNU],
3433 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3434 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3435 case `$LD -v 2>&1 </dev/null` in
3436 *GNU* | *'with BFD'*)
3437 lt_cv_prog_gnu_ld=yes
3440 lt_cv_prog_gnu_ld=no
3443 with_gnu_ld=$lt_cv_prog_gnu_ld
3449 # find reload flag for linker
3450 # -- PORTME Some linkers may need a different reload flag.
3451 m4_defun([_LT_CMD_RELOAD],
3452 [AC_CACHE_CHECK([for $LD option to reload object files],
3453 lt_cv_ld_reload_flag,
3454 [lt_cv_ld_reload_flag='-r'])
3455 reload_flag=$lt_cv_ld_reload_flag
3456 case $reload_flag in
3458 *) reload_flag=" $reload_flag" ;;
3460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3462 cygwin* | mingw* | pw32* | cegcc*)
3463 if test yes != "$GCC"; then
3468 if test yes = "$GCC"; then
3469 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3475 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3476 _LT_TAGDECL([], [reload_cmds], [2])dnl
3483 m4_defun([_LT_PATH_DD],
3484 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3485 [printf 0123456789abcdef0123456789abcdef >conftest.i
3486 cat conftest.i conftest.i >conftest2.i
3488 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3489 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3490 cmp -s conftest.i conftest.out \
3491 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3493 rm -f conftest.i conftest2.i conftest.out])
3499 # find command to truncate a binary pipe
3500 m4_defun([_LT_CMD_TRUNCATE],
3501 [m4_require([_LT_PATH_DD])
3502 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3503 [printf 0123456789abcdef0123456789abcdef >conftest.i
3504 cat conftest.i conftest.i >conftest2.i
3506 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3507 cmp -s conftest.i conftest.out \
3508 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3510 rm -f conftest.i conftest2.i conftest.out
3511 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3512 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3513 [Command to truncate a binary pipe])
3514 ])# _LT_CMD_TRUNCATE
3517 # _LT_CHECK_MAGIC_METHOD
3518 # ----------------------
3519 # how to check for library dependencies
3520 # -- PORTME fill in with the dynamic library characteristics
3521 m4_defun([_LT_CHECK_MAGIC_METHOD],
3522 [m4_require([_LT_DECL_EGREP])
3523 m4_require([_LT_DECL_OBJDUMP])
3524 AC_CACHE_CHECK([how to recognize dependent libraries],
3525 lt_cv_deplibs_check_method,
3526 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3527 lt_cv_file_magic_test_file=
3528 lt_cv_deplibs_check_method='unknown'
3529 # Need to set the preceding variable on all platforms that support
3530 # interlibrary dependencies.
3531 # 'none' -- dependencies not supported.
3532 # 'unknown' -- same as none, but documents that we really don't know.
3533 # 'pass_all' -- all dependencies passed with no checks.
3534 # 'test_compile' -- check by making test program.
3535 # 'file_magic [[regex]]' -- check by looking for files in library path
3536 # that responds to the $file_magic_cmd with a given extended regex.
3537 # If you have 'file' or equivalent on your system and you're not sure
3538 # whether 'pass_all' will *always* work, you probably want this one.
3542 lt_cv_deplibs_check_method=pass_all
3546 lt_cv_deplibs_check_method=pass_all
3550 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3551 lt_cv_file_magic_cmd='/usr/bin/file -L'
3552 lt_cv_file_magic_test_file=/shlib/libc.so
3556 # func_win32_libid is a shell function defined in ltmain.sh
3557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3558 lt_cv_file_magic_cmd='func_win32_libid'
3562 # Base MSYS/MinGW do not provide the 'file' command needed by
3563 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3564 # unless we find 'file', for example because we are cross-compiling.
3565 if ( file / ) >/dev/null 2>&1; then
3566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3567 lt_cv_file_magic_cmd='func_win32_libid'
3569 # Keep this pattern in sync with the one in func_win32_libid.
3570 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3571 lt_cv_file_magic_cmd='$OBJDUMP -f'
3576 # use the weaker test based on 'objdump'. See mingw*.
3577 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3578 lt_cv_file_magic_cmd='$OBJDUMP -f'
3581 darwin* | rhapsody*)
3582 lt_cv_deplibs_check_method=pass_all
3585 freebsd* | dragonfly*)
3586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3589 # Not sure whether the presence of OpenBSD here was a mistake.
3590 # Let's accept both of them until this is cleared up.
3591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3597 lt_cv_deplibs_check_method=pass_all
3602 lt_cv_deplibs_check_method=pass_all
3605 hpux10.20* | hpux11*)
3606 lt_cv_file_magic_cmd=/usr/bin/file
3609 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3613 [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]']
3614 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3617 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3618 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3624 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3625 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3628 irix5* | irix6* | nonstopux*)
3630 *-32|*"-32 ") libmagic=32-bit;;
3631 *-n32|*"-n32 ") libmagic=N32;;
3632 *-64|*"-64 ") libmagic=64-bit;;
3633 *) libmagic=never-match;;
3635 lt_cv_deplibs_check_method=pass_all
3638 # This must be glibc/ELF.
3639 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3640 lt_cv_deplibs_check_method=pass_all
3644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3645 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3647 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3652 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3653 lt_cv_file_magic_cmd=/usr/bin/file
3654 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3658 lt_cv_deplibs_check_method=pass_all
3662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3663 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3665 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3669 osf3* | osf4* | osf5*)
3670 lt_cv_deplibs_check_method=pass_all
3674 lt_cv_deplibs_check_method=pass_all
3678 lt_cv_deplibs_check_method=pass_all
3681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3682 lt_cv_deplibs_check_method=pass_all
3686 case $host_vendor in
3688 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]]'
3689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3692 lt_cv_deplibs_check_method=pass_all
3695 lt_cv_file_magic_cmd='/bin/file'
3696 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3699 lt_cv_file_magic_cmd='/bin/file'
3700 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3701 lt_cv_file_magic_test_file=/lib/libc.so
3704 lt_cv_deplibs_check_method=pass_all
3707 lt_cv_deplibs_check_method=pass_all
3713 lt_cv_deplibs_check_method=pass_all
3716 lt_cv_deplibs_check_method=pass_all
3723 if test "$build" = "$host"; then
3726 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3729 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3735 file_magic_cmd=$lt_cv_file_magic_cmd
3736 deplibs_check_method=$lt_cv_deplibs_check_method
3737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3739 _LT_DECL([], [deplibs_check_method], [1],
3740 [Method to check whether dependent libraries are shared objects])
3741 _LT_DECL([], [file_magic_cmd], [1],
3742 [Command to use when deplibs_check_method = "file_magic"])
3743 _LT_DECL([], [file_magic_glob], [1],
3744 [How to find potential files when deplibs_check_method = "file_magic"])
3745 _LT_DECL([], [want_nocaseglob], [1],
3746 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3747 ])# _LT_CHECK_MAGIC_METHOD
3752 # find the pathname to a BSD- or MS-compatible name lister
3753 AC_DEFUN([LT_PATH_NM],
3754 [AC_REQUIRE([AC_PROG_CC])dnl
3755 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3756 [if test -n "$NM"; then
3757 # Let the user override the test.
3760 lt_nm_to_check=${ac_tool_prefix}nm
3761 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3762 lt_nm_to_check="$lt_nm_to_check nm"
3764 for lt_tmp_nm in $lt_nm_to_check; do
3765 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3766 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768 test -z "$ac_dir" && ac_dir=.
3769 tmp_nm=$ac_dir/$lt_tmp_nm
3770 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3771 # Check to see if the nm accepts a BSD-compat flag.
3772 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3773 # nm: unknown option "B" ignored
3774 # Tru64's nm complains that /dev/null is an invalid object file
3775 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3777 mingw*) lt_bad_file=conftest.nm/nofile ;;
3778 *) lt_bad_file=/dev/null ;;
3780 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3781 *$lt_bad_file* | *'Invalid file or object type'*)
3782 lt_cv_path_NM="$tmp_nm -B"
3786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3788 lt_cv_path_NM="$tmp_nm -p"
3792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3793 continue # so that we can try to find one that supports BSD flags
3802 : ${lt_cv_path_NM=no}
3804 if test no != "$lt_cv_path_NM"; then
3807 # Didn't find any BSD compatible name lister, look for dumpbin.
3808 if test -n "$DUMPBIN"; then :
3809 # Let the user override the test.
3811 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3812 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3814 DUMPBIN="$DUMPBIN -symbols -headers"
3822 if test : != "$DUMPBIN"; then
3826 test -z "$NM" && NM=nm
3828 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3830 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3831 [lt_cv_nm_interface="BSD nm"
3832 echo "int some_variable = 0;" > conftest.$ac_ext
3833 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3834 (eval "$ac_compile" 2>conftest.err)
3835 cat conftest.err >&AS_MESSAGE_LOG_FD
3836 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3837 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3838 cat conftest.err >&AS_MESSAGE_LOG_FD
3839 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3840 cat conftest.out >&AS_MESSAGE_LOG_FD
3841 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3842 lt_cv_nm_interface="MS dumpbin"
3848 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3849 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3850 dnl aclocal-1.4 backwards compatibility:
3851 dnl AC_DEFUN([AM_PROG_NM], [])
3852 dnl AC_DEFUN([AC_PROG_NM], [])
3854 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3855 # --------------------------------
3856 # how to determine the name of the shared library
3857 # associated with a specific link library.
3858 # -- PORTME fill in with the dynamic library characteristics
3859 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3860 [m4_require([_LT_DECL_EGREP])
3861 m4_require([_LT_DECL_OBJDUMP])
3862 m4_require([_LT_DECL_DLLTOOL])
3863 AC_CACHE_CHECK([how to associate runtime and link libraries],
3864 lt_cv_sharedlib_from_linklib_cmd,
3865 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3868 cygwin* | mingw* | pw32* | cegcc*)
3869 # two different shell functions defined in ltmain.sh;
3870 # decide which one to use based on capabilities of $DLLTOOL
3871 case `$DLLTOOL --help 2>&1` in
3872 *--identify-strict*)
3873 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3876 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3881 # fallback: assume linklib IS sharedlib
3882 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3886 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3887 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3889 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3890 [Command to associate shared and link libraries])
3891 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3894 # _LT_PATH_MANIFEST_TOOL
3895 # ----------------------
3896 # locate the manifest tool
3897 m4_defun([_LT_PATH_MANIFEST_TOOL],
3898 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3899 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3900 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3901 [lt_cv_path_mainfest_tool=no
3902 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3903 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3904 cat conftest.err >&AS_MESSAGE_LOG_FD
3905 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3906 lt_cv_path_mainfest_tool=yes
3909 if test yes != "$lt_cv_path_mainfest_tool"; then
3912 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3913 ])# _LT_PATH_MANIFEST_TOOL
3916 # _LT_DLL_DEF_P([FILE])
3917 # ---------------------
3918 # True iff FILE is a Windows DLL '.def' file.
3919 # Keep in sync with func_dll_def_p in the libtool script
3920 AC_DEFUN([_LT_DLL_DEF_P],
3922 test DEF = "`$SED -n dnl
3923 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3924 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3925 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3926 -e q dnl Only consider the first "real" line
3933 # check for math library
3934 AC_DEFUN([LT_LIB_M],
3935 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3938 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3939 # These system don't have libm, or don't need it
3942 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3943 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3946 AC_CHECK_LIB(m, cos, LIBM=-lm)
3953 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3954 dnl aclocal-1.4 backwards compatibility:
3955 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3958 # _LT_COMPILER_NO_RTTI([TAGNAME])
3959 # -------------------------------
3960 m4_defun([_LT_COMPILER_NO_RTTI],
3961 [m4_require([_LT_TAG_COMPILER])dnl
3963 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3965 if test yes = "$GCC"; then
3966 case $cc_basename in
3968 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3970 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3973 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3974 lt_cv_prog_compiler_rtti_exceptions,
3975 [-fno-rtti -fno-exceptions], [],
3976 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3978 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3979 [Compiler flag to turn off builtin functions])
3980 ])# _LT_COMPILER_NO_RTTI
3983 # _LT_CMD_GLOBAL_SYMBOLS
3984 # ----------------------
3985 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3986 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3987 AC_REQUIRE([AC_PROG_CC])dnl
3988 AC_REQUIRE([AC_PROG_AWK])dnl
3989 AC_REQUIRE([LT_PATH_NM])dnl
3990 AC_REQUIRE([LT_PATH_LD])dnl
3991 m4_require([_LT_DECL_SED])dnl
3992 m4_require([_LT_DECL_EGREP])dnl
3993 m4_require([_LT_TAG_COMPILER])dnl
3995 # Check for command to grab the raw symbol name followed by C symbol from nm.
3996 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3997 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3999 # These are sane defaults that work on at least a few old systems.
4000 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4002 # Character class describing NM global symbol codes.
4003 symcode='[[BCDEGRST]]'
4005 # Regexp to match symbols that can be accessed directly from C.
4006 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4008 # Define system-specific variables.
4013 cygwin* | mingw* | pw32* | cegcc*)
4014 symcode='[[ABCDGISTW]]'
4017 if test ia64 = "$host_cpu"; then
4018 symcode='[[ABCDEGRST]]'
4022 symcode='[[BCDEGRST]]'
4025 symcode='[[BCDEGQRST]]'
4036 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4040 symcode='[[DFNSTU]]'
4044 # If we're using GNU nm, then use its standard symbol codes.
4045 case `$NM -V 2>&1` in
4046 *GNU* | *'with BFD'*)
4047 symcode='[[ABCDGIRSTW]]' ;;
4050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4051 # Gets list of data symbols to import.
4052 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
4053 # Adjust the below global symbol transforms to fixup imported variables.
4054 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
4055 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
4056 lt_c_name_lib_hook="\
4057 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
4058 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
4060 # Disable hooks by default.
4061 lt_cv_sys_global_symbol_to_import=
4067 # Transform an extracted symbol line into a proper C declaration.
4068 # Some systems (esp. on ia64) link data and code symbols differently,
4069 # so use this general approach.
4070 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4072 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4073 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4075 # Transform an extracted symbol line into symbol name and symbol address
4076 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4078 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4079 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4081 # Transform an extracted symbol line into symbol name with lib prefix and
4083 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4084 $lt_c_name_lib_hook\
4085 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4086 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4087 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4089 # Handle CRLF in mingw tool chain
4093 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4097 # Try without a prefix underscore, then with it.
4098 for ac_symprfx in "" "_"; do
4100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4101 symxfrm="\\1 $ac_symprfx\\2 \\2"
4103 # Write the raw and C identifiers.
4104 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4105 # Fake it for dumpbin and say T for any non-static function,
4106 # D for any global variable and I for any imported variable.
4107 # Also find C++ and __fastcall symbols from MSVC++,
4108 # which start with @ or ?.
4109 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4110 " {last_section=section; section=\$ 3};"\
4111 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4112 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4113 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4114 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4115 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4116 " \$ 0!~/External *\|/{next};"\
4117 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4118 " {if(hide[section]) next};"\
4119 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4120 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4121 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4122 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4123 " ' prfx=^$ac_symprfx]"
4125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4127 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4129 # Check to see that the pipe works correctly.
4133 cat > conftest.$ac_ext <<_LT_EOF
4138 void nm_test_func(void);
4139 void nm_test_func(void){}
4143 int main(){nm_test_var='a';nm_test_func();return(0);}
4146 if AC_TRY_EVAL(ac_compile); then
4147 # Now try to grab the symbols.
4149 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4150 # Try sorting and uniquifying the output.
4151 if sort "$nlist" | uniq > "$nlist"T; then
4152 mv -f "$nlist"T "$nlist"
4157 # Make sure that we snagged all the symbols we need.
4158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4160 cat <<_LT_EOF > conftest.$ac_ext
4161 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4162 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4163 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4164 relocations are performed -- see ld's documentation on pseudo-relocs. */
4165 # define LT@&t@_DLSYM_CONST
4166 #elif defined __osf__
4167 /* This system does not cope well with relocations in const data. */
4168 # define LT@&t@_DLSYM_CONST
4170 # define LT@&t@_DLSYM_CONST const
4178 # Now generate the symbol file.
4179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4181 cat <<_LT_EOF >> conftest.$ac_ext
4183 /* The mapping between symbol names and symbols. */
4184 LT@&t@_DLSYM_CONST struct {
4188 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4190 { "@PROGRAM@", (void *) 0 },
4192 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4193 cat <<\_LT_EOF >> conftest.$ac_ext
4197 /* This works around a problem in FreeBSD linker */
4198 #ifdef FREEBSD_WORKAROUND
4199 static const void *lt_preloaded_setup() {
4200 return lt__PROGRAM__LTX_preloaded_symbols;
4208 # Now try linking the two files.
4209 mv conftest.$ac_objext conftstm.$ac_objext
4210 lt_globsym_save_LIBS=$LIBS
4211 lt_globsym_save_CFLAGS=$CFLAGS
4212 LIBS=conftstm.$ac_objext
4213 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4214 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4217 LIBS=$lt_globsym_save_LIBS
4218 CFLAGS=$lt_globsym_save_CFLAGS
4220 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4223 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4226 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4229 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4230 cat conftest.$ac_ext >&5
4232 rm -rf conftest* conftst*
4234 # Do not use the global_symbol_pipe unless it works.
4235 if test yes = "$pipe_works"; then
4238 lt_cv_sys_global_symbol_pipe=
4242 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4243 lt_cv_sys_global_symbol_to_cdecl=
4245 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4246 AC_MSG_RESULT(failed)
4251 # Response file support.
4252 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4253 nm_file_list_spec='@'
4254 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4255 nm_file_list_spec='@'
4258 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4259 [Take the output of nm and produce a listing of raw symbols and C names])
4260 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4261 [Transform the output of nm in a proper C declaration])
4262 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4263 [Transform the output of nm into a list of symbols to manually relocate])
4264 _LT_DECL([global_symbol_to_c_name_address],
4265 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4266 [Transform the output of nm in a C name address pair])
4267 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4268 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4269 [Transform the output of nm in a C name address pair when lib prefix is needed])
4270 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4271 [The name lister interface])
4272 _LT_DECL([], [nm_file_list_spec], [1],
4273 [Specify filename containing input files for $NM])
4274 ]) # _LT_CMD_GLOBAL_SYMBOLS
4277 # _LT_COMPILER_PIC([TAGNAME])
4278 # ---------------------------
4279 m4_defun([_LT_COMPILER_PIC],
4280 [m4_require([_LT_TAG_COMPILER])dnl
4281 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4282 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4283 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4285 m4_if([$1], [CXX], [
4286 # C++ specific cases for pic, static, wl, etc.
4287 if test yes = "$GXX"; then
4288 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4289 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4293 # All AIX code is PIC.
4294 if test ia64 = "$host_cpu"; then
4295 # AIX 5 now supports IA64 processor
4296 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4304 # see comment about AmigaOS4 .so support
4305 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4308 # FIXME: we need at least 68020 code to build shared libraries, but
4309 # adding the '-m68020' flag to GCC prevents building anything better,
4311 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4316 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4317 # PIC is the default for these OSes.
4319 mingw* | cygwin* | os2* | pw32* | cegcc*)
4320 # This hack is so that the source file can tell whether it is being
4321 # built for inclusion in a dll (and should export symbols for example).
4322 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4323 # (--disable-auto-import) libraries
4324 m4_if([$1], [GCJ], [],
4325 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4328 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4332 darwin* | rhapsody*)
4333 # PIC is the default on this platform
4334 # Common symbols not allowed in MH_DYLIB files
4335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4338 # DJGPP does not support shared libraries at all
4339 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4342 # PIC is the default for Haiku.
4343 # The "-static" flag exists, but is broken.
4344 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4348 # Instead, we relocate shared libraries at runtime.
4351 if test -d /usr/nec; then
4352 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4358 # sets the default TLS model and affects inlining.
4363 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4368 # QNX uses GNU C++, but need to define -shared option too, otherwise
4370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4373 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4379 # All AIX code is PIC.
4380 if test ia64 = "$host_cpu"; then
4381 # AIX 5 now supports IA64 processor
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4388 case $cc_basename in
4390 # Green Hills C++ Compiler
4391 # _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"
4395 mingw* | cygwin* | os2* | pw32* | cegcc*)
4396 # This hack is so that the source file can tell whether it is being
4397 # built for inclusion in a dll (and should export symbols for example).
4398 m4_if([$1], [GCJ], [],
4399 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4402 case $cc_basename in
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4407 # Green Hills C++ Compiler
4408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4414 freebsd* | dragonfly*)
4415 # FreeBSD uses GNU C++
4417 hpux9* | hpux10* | hpux11*)
4418 case $cc_basename in
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4422 if test ia64 != "$host_cpu"; then
4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4427 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4428 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4434 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4443 # This is c89, which is MS Visual C++ (no shared libs)
4444 # Anyone wants to do a port?
4446 irix5* | irix6* | nonstopux*)
4447 case $cc_basename in
4449 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4451 # CC pic flag -KPIC is the default.
4457 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4458 case $cc_basename in
4461 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4462 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4465 # old Intel C++ for x86_64, which still supported -KPIC.
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4471 # Intel C++, used to be incompatible with GCC.
4472 # ICC 10 doesn't accept -KPIC any more.
4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4474 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4475 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4478 # Portland Group C++ compiler
4479 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4485 # Make sure the PIC flag is empty. It appears that all Alpha
4486 # Linux and Compaq Tru64 Unix objects are PIC.
4487 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4488 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4490 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4491 # IBM XL 8.0, 9.0 on PPC and BlueGene
4492 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4493 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4494 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4497 case `$CC -V 2>&1 | sed 5q` in
4500 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4501 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4502 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4513 case $cc_basename in
4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4524 # QNX uses GNU C++, but need to define -shared option too, otherwise
4526 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4528 osf3* | osf4* | osf5*)
4529 case $cc_basename in
4531 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4534 # Rational C++ 2.4.1
4535 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4538 # Digital/Compaq C++
4539 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4540 # Make sure the PIC flag is empty. It appears that all Alpha
4541 # Linux and Compaq Tru64 Unix objects are PIC.
4542 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4543 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4552 case $cc_basename in
4554 # Sun C++ 4.2, 5.x and Centerline C++
4555 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4556 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4557 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4560 # Green Hills C++ Compiler
4561 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4568 case $cc_basename in
4571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4572 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4576 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4583 case $cc_basename in
4585 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4586 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4587 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4592 case $cc_basename in
4594 # NonStop-UX NCC 3.20
4595 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4604 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4610 if test yes = "$GCC"; then
4611 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4612 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4616 # All AIX code is PIC.
4617 if test ia64 = "$host_cpu"; then
4618 # AIX 5 now supports IA64 processor
4619 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4621 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4627 # see comment about AmigaOS4 .so support
4628 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4631 # FIXME: we need at least 68020 code to build shared libraries, but
4632 # adding the '-m68020' flag to GCC prevents building anything better,
4634 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4640 # PIC is the default for these OSes.
4643 mingw* | cygwin* | pw32* | os2* | cegcc*)
4644 # This hack is so that the source file can tell whether it is being
4645 # built for inclusion in a dll (and should export symbols for example).
4646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4647 # (--disable-auto-import) libraries
4648 m4_if([$1], [GCJ], [],
4649 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4652 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4657 darwin* | rhapsody*)
4658 # PIC is the default on this platform
4659 # Common symbols not allowed in MH_DYLIB files
4660 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4664 # PIC is the default for Haiku.
4665 # The "-static" flag exists, but is broken.
4666 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4672 # sets the default TLS model and affects inlining.
4678 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4685 # Instead, we relocate shared libraries at runtime.
4689 # Just because we use GCC doesn't mean we suddenly get shared libraries
4690 # on systems that don't support them.
4691 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4696 # QNX uses GNU C++, but need to define -shared option too, otherwise
4698 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4702 if test -d /usr/nec; then
4703 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4712 case $cc_basename in
4713 nvcc*) # Cuda Compiler Driver 2.2
4714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4715 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4716 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4721 # PORTME Check for flag to pass linker flags through the system compiler.
4724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725 if test ia64 = "$host_cpu"; then
4726 # AIX 5 now supports IA64 processor
4727 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4733 darwin* | rhapsody*)
4734 # PIC is the default on this platform
4735 # Common symbols not allowed in MH_DYLIB files
4736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4737 case $cc_basename in
4739 # NAG Fortran compiler
4740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4747 mingw* | cygwin* | pw32* | os2* | cegcc*)
4748 # This hack is so that the source file can tell whether it is being
4749 # built for inclusion in a dll (and should export symbols for example).
4750 m4_if([$1], [GCJ], [],
4751 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4754 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4759 hpux9* | hpux10* | hpux11*)
4760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4768 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4771 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4772 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4775 irix5* | irix6* | nonstopux*)
4776 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4777 # PIC (with -KPIC) is the default.
4778 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4781 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4782 case $cc_basename in
4783 # old Intel for x86_64, which still supported -KPIC.
4785 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4786 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4787 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4789 # icc used to be incompatible with GCC.
4790 # ICC 10 doesn't accept -KPIC any more.
4792 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4793 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4794 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4796 # Lahey Fortran 8.1.
4798 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4799 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4800 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4803 # NAG Fortran compiler
4804 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4809 # Fabrice Bellard et al's Tiny C Compiler
4810 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4811 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4812 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4814 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4815 # Portland Group compilers (*not* the Pentium gcc compiler,
4816 # which looks to be a dead project)
4817 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4818 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4819 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4822 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4823 # All Alpha code is PIC.
4824 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4826 xl* | bgxl* | bgf* | mpixl*)
4827 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4828 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4833 case `$CC -V 2>&1 | sed 5q` in
4834 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4835 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4837 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4838 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4840 *Sun\ F* | *Sun*Fortran*)
4841 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4842 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4843 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4847 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4848 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4851 *Intel*\ [[CF]]*Compiler*)
4852 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4853 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4854 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4857 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4858 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4859 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4867 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4868 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4872 # QNX uses GNU C++, but need to define -shared option too, otherwise
4874 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4877 osf3* | osf4* | osf5*)
4878 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879 # All OSF/1 code is PIC.
4880 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4884 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4888 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4889 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4890 case $cc_basename in
4891 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4892 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4894 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4899 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4900 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4901 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4904 sysv4 | sysv4.2uw2* | sysv4.3*)
4905 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4906 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4907 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911 if test -d /usr/nec; then
4912 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4913 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4918 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4920 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4924 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4925 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4930 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4934 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4940 # For platforms that do not support PIC, -DPIC is meaningless:
4942 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4945 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4949 AC_CACHE_CHECK([for $compiler option to produce PIC],
4950 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4951 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4952 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4955 # Check to make sure the PIC flag actually works.
4957 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4958 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4959 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4960 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4961 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4963 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4965 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4966 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4968 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4969 [Additional compiler flags for building library objects])
4971 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4972 [How to pass a linker flag through the compiler])
4974 # Check to make sure the static flag actually works.
4976 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4977 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4978 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4979 $lt_tmp_static_flag,
4981 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4982 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4983 [Compiler flag to prevent dynamic linking])
4984 ])# _LT_COMPILER_PIC
4987 # _LT_LINKER_SHLIBS([TAGNAME])
4988 # ----------------------------
4989 # See if the linker supports building shared libraries.
4990 m4_defun([_LT_LINKER_SHLIBS],
4991 [AC_REQUIRE([LT_PATH_LD])dnl
4992 AC_REQUIRE([LT_PATH_NM])dnl
4993 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4994 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4995 m4_require([_LT_DECL_EGREP])dnl
4996 m4_require([_LT_DECL_SED])dnl
4997 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4998 m4_require([_LT_TAG_COMPILER])dnl
4999 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5000 m4_if([$1], [CXX], [
5001 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5002 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5005 # If we're using GNU nm, then we don't want the "-C" option.
5006 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5007 # Without the "-l" option, or with the "-B" option, AIX nm treats
5008 # weak defined symbols like other global defined symbols, whereas
5009 # GNU nm marks them as "W".
5010 # While the 'weak' keyword is ignored in the Export File, we need
5011 # it in the Import File for the 'aix-soname' feature, so we have
5012 # to replace the "-B" option with "-P" for AIX nm.
5013 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5014 _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'
5016 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5020 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
5022 cygwin* | mingw* | cegcc*)
5023 case $cc_basename in
5025 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5028 _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'
5029 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5034 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5039 _LT_TAGVAR(allow_undefined_flag, $1)=
5040 _LT_TAGVAR(always_export_symbols, $1)=no
5041 _LT_TAGVAR(archive_cmds, $1)=
5042 _LT_TAGVAR(archive_expsym_cmds, $1)=
5043 _LT_TAGVAR(compiler_needs_object, $1)=no
5044 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5045 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5046 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5047 _LT_TAGVAR(hardcode_automatic, $1)=no
5048 _LT_TAGVAR(hardcode_direct, $1)=no
5049 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5050 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5051 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5052 _LT_TAGVAR(hardcode_minus_L, $1)=no
5053 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5054 _LT_TAGVAR(inherit_rpath, $1)=no
5055 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5056 _LT_TAGVAR(module_cmds, $1)=
5057 _LT_TAGVAR(module_expsym_cmds, $1)=
5058 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5059 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5060 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5061 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5062 # include_expsyms should be a list of space-separated symbols to be *always*
5063 # included in the symbol list
5064 _LT_TAGVAR(include_expsyms, $1)=
5065 # exclude_expsyms can be an extended regexp of symbols to exclude
5066 # it will be wrapped by ' (' and ')$', so one must not match beginning or
5067 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5068 # as well as any symbol that contains 'd'.
5069 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5071 # platforms (ab)use it in PIC code, but their linkers get confused if
5072 # the symbol is explicitly referenced. Since portable code cannot
5073 # rely on this symbol name, it's probably fine to never include it in
5074 # preloaded symbol tables.
5075 # Exclude shared library initialization/finalization symbols.
5076 dnl Note also adjust exclude_expsyms for C++ above.
5077 extract_expsyms_cmds=
5080 cygwin* | mingw* | pw32* | cegcc*)
5081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5082 # When not using gcc, we currently assume that we are using
5083 # Microsoft Visual C++.
5084 if test yes != "$GCC"; then
5089 # we just hope/assume this is gcc and not c89 (= MSVC++)
5097 _LT_TAGVAR(ld_shlibs, $1)=yes
5099 # On some targets, GNU ld is compatible enough with the native linker
5100 # that we're better off using the native interface for both.
5101 lt_use_gnu_ld_interface=no
5102 if test yes = "$with_gnu_ld"; then
5105 # The AIX port of GNU ld has always aspired to compatibility
5106 # with the native linker. However, as the warning in the GNU ld
5107 # block says, versions before 2.19.5* couldn't really create working
5108 # shared libraries, regardless of the interface used.
5109 case `$LD -v 2>&1` in
5110 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5111 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5112 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5114 lt_use_gnu_ld_interface=yes
5119 lt_use_gnu_ld_interface=yes
5124 if test yes = "$lt_use_gnu_ld_interface"; then
5125 # If archive_cmds runs LD, not CC, wlarc should be empty
5128 # Set some defaults for GNU ld with shared library support. These
5129 # are reset later if shared libraries are not supported. Putting them
5130 # here allows them to be overridden if necessary.
5131 runpath_var=LD_RUN_PATH
5132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5133 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5134 # ancient GNU ld didn't support --whole-archive et. al.
5135 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5136 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5138 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5140 supports_anon_versioning=no
5141 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5142 *GNU\ gold*) supports_anon_versioning=yes ;;
5143 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5146 *\ 2.11.*) ;; # other 2.11 versions
5147 *) supports_anon_versioning=yes ;;
5150 # See if GNU ld supports shared libraries.
5153 # On AIX/PPC, the GNU linker is very broken
5154 if test ia64 != "$host_cpu"; then
5155 _LT_TAGVAR(ld_shlibs, $1)=no
5158 *** Warning: the GNU linker, at least up to release 2.19, is reported
5159 *** to be unable to reliably create shared libraries on AIX.
5160 *** Therefore, libtool is disabling shared libraries support. If you
5161 *** really care for shared libraries, you may want to install binutils
5162 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5163 *** You will then need to restart the configuration process.
5172 # see comment about AmigaOS4 .so support
5173 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5174 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5177 _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)'
5178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5179 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5186 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5188 # support --undefined. This deserves some investigation. FIXME
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5191 _LT_TAGVAR(ld_shlibs, $1)=no
5195 cygwin* | mingw* | pw32* | cegcc*)
5196 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5197 # as there is no search path for DLLs.
5198 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5199 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5200 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5201 _LT_TAGVAR(always_export_symbols, $1)=no
5202 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5203 _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'
5204 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5207 _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'
5208 # If the export-symbols file already is a .def file, use it as
5209 # is; otherwise, prepend EXPORTS...
5210 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5211 cp $export_symbols $output_objdir/$soname.def;
5213 echo EXPORTS > $output_objdir/$soname.def;
5214 cat $export_symbols >> $output_objdir/$soname.def;
5216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5218 _LT_TAGVAR(ld_shlibs, $1)=no
5223 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5224 _LT_TAGVAR(link_all_deplibs, $1)=yes
5228 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5229 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5230 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5232 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5233 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5234 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5235 $ECHO EXPORTS >> $output_objdir/$libname.def~
5236 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5237 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5238 emximp -o $lib $output_objdir/$libname.def'
5239 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5240 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5241 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5242 $ECHO EXPORTS >> $output_objdir/$libname.def~
5244 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5245 prefix_cmds="$prefix_cmds -e 1d";
5247 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5248 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5249 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5250 emximp -o $lib $output_objdir/$libname.def'
5251 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5252 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5256 _LT_TAGVAR(hardcode_direct, $1)=no
5257 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5259 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5261 # Instead, shared libraries are loaded at an image base (0x10000000 by
5262 # default) and relocated if they conflict, which is a slow very memory
5263 # consuming and fragmenting process. To avoid this, we pick a random,
5264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5266 _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'
5267 _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'
5270 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5272 if test linux-dietlibc = "$host_os"; then
5273 case $cc_basename in
5274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5278 && test no = "$tmp_diet"
5280 tmp_addflag=' $pic_flag'
5281 tmp_sharedflag='-shared'
5282 case $cc_basename,$host_cpu in
5283 pgcc*) # Portland Group C compiler
5284 _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'
5285 tmp_addflag=' $pic_flag'
5287 pgf77* | pgf90* | pgf95* | pgfortran*)
5288 # Portland Group f77 and f90 compilers
5289 _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'
5290 tmp_addflag=' $pic_flag -Mnomain' ;;
5291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5292 tmp_addflag=' -i_dynamic' ;;
5293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5294 tmp_addflag=' -i_dynamic -nofor_main' ;;
5295 ifc* | ifort*) # Intel Fortran compiler
5296 tmp_addflag=' -nofor_main' ;;
5297 lf95*) # Lahey Fortran 8.1
5298 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5299 tmp_sharedflag='--shared' ;;
5300 nagfor*) # NAGFOR 5.3
5301 tmp_sharedflag='-Wl,-shared' ;;
5302 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5303 tmp_sharedflag='-qmkshrobj'
5305 nvcc*) # Cuda Compiler Driver 2.2
5306 _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'
5307 _LT_TAGVAR(compiler_needs_object, $1)=yes
5310 case `$CC -V 2>&1 | sed 5q` in
5311 *Sun\ C*) # Sun C 5.9
5312 _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'
5313 _LT_TAGVAR(compiler_needs_object, $1)=yes
5314 tmp_sharedflag='-G' ;;
5315 *Sun\ F*) # Sun Fortran 8.3
5316 tmp_sharedflag='-G' ;;
5318 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5320 if test yes = "$supports_anon_versioning"; then
5321 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5323 echo "local: *; };" >> $output_objdir/$libname.ver~
5324 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5327 case $cc_basename in
5329 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5331 xlf* | bgf* | bgxlf* | mpixlf*)
5332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5333 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5335 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5336 if test yes = "$supports_anon_versioning"; then
5337 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5339 echo "local: *; };" >> $output_objdir/$libname.ver~
5340 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5345 _LT_TAGVAR(ld_shlibs, $1)=no
5350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5351 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5354 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5355 _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'
5360 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5361 _LT_TAGVAR(ld_shlibs, $1)=no
5364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5365 *** create shared libraries on Solaris systems. Therefore, libtool
5366 *** is disabling shared libraries support. We urge you to upgrade GNU
5367 *** binutils to release 2.9.1 or newer. Another option is to modify
5368 *** your PATH or compiler configuration so that the native linker is
5369 *** used, and then restart.
5372 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5373 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5374 _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'
5376 _LT_TAGVAR(ld_shlibs, $1)=no
5380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5381 case `$LD -v 2>&1` in
5382 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5383 _LT_TAGVAR(ld_shlibs, $1)=no
5386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5387 *** reliably create shared libraries on SCO systems. Therefore, libtool
5388 *** is disabling shared libraries support. We urge you to upgrade GNU
5389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5390 *** your PATH or compiler configuration so that the native linker is
5391 *** used, and then restart.
5396 # For security reasons, it is highly recommended that you always
5397 # use absolute paths for naming shared libraries, and exclude the
5398 # DT_RUNPATH tag from executables and libraries. But doing so
5399 # requires that you compile everything twice, which is a pain.
5400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5401 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5403 _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'
5405 _LT_TAGVAR(ld_shlibs, $1)=no
5412 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5414 _LT_TAGVAR(hardcode_direct, $1)=yes
5415 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5420 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5421 _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'
5423 _LT_TAGVAR(ld_shlibs, $1)=no
5428 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5430 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5431 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5432 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5435 # PORTME fill in a description of your system's linker (not GNU ld)
5438 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5439 _LT_TAGVAR(always_export_symbols, $1)=yes
5440 _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'
5441 # Note: this linker hardcodes the directories in LIBPATH if there
5442 # are no directories specified by -L.
5443 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5444 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5445 # Neither direct hardcoding nor static linking is supported with a
5447 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5452 if test ia64 = "$host_cpu"; then
5453 # On IA64, the linker does run time linking by default, so we don't
5454 # have to do anything special.
5455 aix_use_runtimelinking=no
5456 exp_sym_flag='-Bexport'
5459 # If we're using GNU nm, then we don't want the "-C" option.
5460 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5461 # Without the "-l" option, or with the "-B" option, AIX nm treats
5462 # weak defined symbols like other global defined symbols, whereas
5463 # GNU nm marks them as "W".
5464 # While the 'weak' keyword is ignored in the Export File, we need
5465 # it in the Import File for the 'aix-soname' feature, so we have
5466 # to replace the "-B" option with "-P" for AIX nm.
5467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5468 _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'
5470 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5472 aix_use_runtimelinking=no
5474 # Test if we are trying to use run time linking or normal
5475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5476 # have runtime linking enabled, and use it for executables.
5477 # For shared libraries, we enable/disable runtime linking
5478 # depending on the kind of the shared library created -
5479 # when "with_aix_soname,aix_use_runtimelinking" is:
5480 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5481 # "aix,yes" lib.so shared, rtl:yes, for executables
5482 # lib.a static archive
5483 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5484 # lib.a(lib.so.V) shared, rtl:no, for executables
5485 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5486 # lib.a(lib.so.V) shared, rtl:no
5487 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5488 # lib.a static archive
5489 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5490 for ld_flag in $LDFLAGS; do
5491 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5492 aix_use_runtimelinking=yes
5496 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5497 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5498 # so we don't have lib.a shared libs to link our executables.
5499 # We have to force runtime linking in this case.
5500 aix_use_runtimelinking=yes
5501 LDFLAGS="$LDFLAGS -Wl,-brtl"
5506 exp_sym_flag='-bexport'
5507 no_entry_flag='-bnoentry'
5510 # When large executables or shared objects are built, AIX ld can
5511 # have problems creating the table of contents. If linking a library
5512 # or program results in "error TOC overflow" add -mminimal-toc to
5513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5516 _LT_TAGVAR(archive_cmds, $1)=''
5517 _LT_TAGVAR(hardcode_direct, $1)=yes
5518 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5519 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5520 _LT_TAGVAR(link_all_deplibs, $1)=yes
5521 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5522 case $with_aix_soname,$aix_use_runtimelinking in
5523 aix,*) ;; # traditional, no import file
5524 svr4,* | *,yes) # use import file
5525 # The Import File defines what to hardcode.
5526 _LT_TAGVAR(hardcode_direct, $1)=no
5527 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5531 if test yes = "$GCC"; then
5532 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5533 # We only want to do this on AIX 4.2 and lower, the check
5534 # below for broken collect2 doesn't work under 4.3+
5535 collect2name=`$CC -print-prog-name=collect2`
5536 if test -f "$collect2name" &&
5537 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5539 # We have reworked collect2
5542 # We have old collect2
5543 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5544 # It fails to find uninstalled libraries when the uninstalled
5545 # path is not listed in the libpath. Setting hardcode_minus_L
5546 # to unsupported forces relinking
5547 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5549 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5553 shared_flag='-shared'
5554 if test yes = "$aix_use_runtimelinking"; then
5555 shared_flag="$shared_flag "'$wl-G'
5557 # Need to ensure runtime linking is disabled for the traditional
5558 # shared library, or the linker may eventually find shared libraries
5559 # /with/ Import File - we do not want to mix them.
5560 shared_flag_aix='-shared'
5561 shared_flag_svr4='-shared $wl-G'
5564 if test ia64 = "$host_cpu"; then
5565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5566 # chokes on -Wl,-G. The following line is correct:
5569 if test yes = "$aix_use_runtimelinking"; then
5572 shared_flag='$wl-bM:SRE'
5574 shared_flag_aix='$wl-bM:SRE'
5575 shared_flag_svr4='$wl-G'
5579 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5580 # It seems that -bexpall does not export symbols beginning with
5581 # underscore (_), so it is better to generate a list of symbols to export.
5582 _LT_TAGVAR(always_export_symbols, $1)=yes
5583 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5584 # Warning - without using the other runtime loading flags (-brtl),
5585 # -berok will link without error, but may produce a broken library.
5586 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5587 # Determine the default libpath from the value encoded in an
5589 _LT_SYS_MODULE_PATH_AIX([$1])
5590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5591 _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
5593 if test ia64 = "$host_cpu"; then
5594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5595 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5596 _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"
5598 # Determine the default libpath from the value encoded in an
5600 _LT_SYS_MODULE_PATH_AIX([$1])
5601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5602 # Warning - without using the other run time loading flags,
5603 # -berok will link without error, but may produce a broken library.
5604 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5605 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5606 if test yes = "$with_gnu_ld"; then
5607 # We only use this code for GNU lds that support --whole-archive.
5608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5610 # Exported symbols can be pulled into shared objects from archives
5611 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5613 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5614 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5615 # -brtl affects multiple linker settings, -berok does not and is overridden later
5616 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5617 if test svr4 != "$with_aix_soname"; then
5618 # This is similar to how AIX traditionally builds its shared libraries.
5619 _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'
5621 if test aix != "$with_aix_soname"; then
5622 _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'
5624 # used by -dlpreopen to get the symbols
5625 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5627 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5635 # see comment about AmigaOS4 .so support
5636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5637 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5640 _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)'
5641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5642 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5648 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5651 cygwin* | mingw* | pw32* | cegcc*)
5652 # When not using gcc, we currently assume that we are using
5653 # Microsoft Visual C++.
5654 # hardcode_libdir_flag_spec is actually meaningless, as there is
5655 # no search path for DLLs.
5656 case $cc_basename in
5659 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5660 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5661 _LT_TAGVAR(always_export_symbols, $1)=yes
5662 _LT_TAGVAR(file_list_spec, $1)='@'
5663 # Tell ltmain to make .lib files, not .a files.
5665 # Tell ltmain to make .dll files, not .so files.
5667 # FIXME: Setting linknames here is a bad hack.
5668 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5669 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5670 cp "$export_symbols" "$output_objdir/$soname.def";
5671 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5673 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5675 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5677 # The linker will not automatically build a static lib if we build a DLL.
5678 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5679 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5680 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5681 _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'
5683 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5684 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5685 lt_tool_outputfile="@TOOL_OUTPUT@"~
5686 case $lt_outputfile in
5689 lt_outputfile=$lt_outputfile.exe
5690 lt_tool_outputfile=$lt_tool_outputfile.exe
5693 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5694 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5695 $RM "$lt_outputfile.manifest";
5699 # Assume MSVC wrapper
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5701 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5702 # Tell ltmain to make .lib files, not .a files.
5704 # Tell ltmain to make .dll files, not .so files.
5706 # FIXME: Setting linknames here is a bad hack.
5707 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5708 # The linker will automatically build a .lib file if we build a DLL.
5709 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5710 # FIXME: Should let the user specify the lib program.
5711 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5712 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5717 darwin* | rhapsody*)
5718 _LT_DARWIN_LINKER_FEATURES($1)
5722 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5724 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5728 # support. Future versions do this automatically, but an explicit c++rt0.o
5729 # does not break anything, and helps significantly (at the cost of a little
5732 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5733 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5734 _LT_TAGVAR(hardcode_direct, $1)=yes
5735 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5740 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5741 _LT_TAGVAR(hardcode_direct, $1)=yes
5742 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5743 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5747 freebsd* | dragonfly*)
5748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5749 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5750 _LT_TAGVAR(hardcode_direct, $1)=yes
5751 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5755 if test yes = "$GCC"; then
5756 _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'
5758 _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'
5760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5761 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5762 _LT_TAGVAR(hardcode_direct, $1)=yes
5764 # hardcode_minus_L: Not really in the search PATH,
5765 # but as the default location of the library.
5766 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5767 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5771 if test yes,no = "$GCC,$with_gnu_ld"; then
5772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5774 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5776 if test no = "$with_gnu_ld"; then
5777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5778 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5779 _LT_TAGVAR(hardcode_direct, $1)=yes
5780 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5782 # hardcode_minus_L: Not really in the search PATH,
5783 # but as the default location of the library.
5784 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5789 if test yes,no = "$GCC,$with_gnu_ld"; then
5792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5798 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5804 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5807 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5811 # Older versions of the 11.00 compiler do not understand -b yet
5812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5813 _LT_LINKER_OPTION([if $CC understands -b],
5814 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5815 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5816 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5817 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5821 if test no = "$with_gnu_ld"; then
5822 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5823 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5827 _LT_TAGVAR(hardcode_direct, $1)=no
5828 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5831 _LT_TAGVAR(hardcode_direct, $1)=yes
5832 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5833 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5835 # hardcode_minus_L: Not really in the search PATH,
5836 # but as the default location of the library.
5837 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5843 irix5* | irix6* | nonstopux*)
5844 if test yes = "$GCC"; then
5845 _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'
5846 # Try to use the -exported_symbol ld option, if it does not
5847 # work, assume that -exports_file does not work either and
5848 # implicitly export all symbols.
5849 # This should be the same for all languages, so no per-tag cache variable.
5850 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5851 [lt_cv_irix_exported_symbol],
5852 [save_LDFLAGS=$LDFLAGS
5853 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5856 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5857 [C++], [[int foo (void) { return 0; }]],
5864 [lt_cv_irix_exported_symbol=yes],
5865 [lt_cv_irix_exported_symbol=no])
5866 LDFLAGS=$save_LDFLAGS])
5867 if test yes = "$lt_cv_irix_exported_symbol"; then
5868 _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'
5871 _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'
5872 _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'
5874 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5876 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5877 _LT_TAGVAR(inherit_rpath, $1)=yes
5878 _LT_TAGVAR(link_all_deplibs, $1)=yes
5882 case $cc_basename in
5884 # Fabrice Bellard et al's Tiny C Compiler
5885 _LT_TAGVAR(ld_shlibs, $1)=yes
5886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5893 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5895 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5898 _LT_TAGVAR(hardcode_direct, $1)=yes
5899 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5903 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5904 _LT_TAGVAR(hardcode_direct, $1)=yes
5905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5906 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5907 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5914 if test -f /usr/libexec/ld.so; then
5915 _LT_TAGVAR(hardcode_direct, $1)=yes
5916 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5917 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5920 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5922 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5928 _LT_TAGVAR(ld_shlibs, $1)=no
5933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5934 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5935 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5937 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5938 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5939 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5940 $ECHO EXPORTS >> $output_objdir/$libname.def~
5941 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5942 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5943 emximp -o $lib $output_objdir/$libname.def'
5944 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5945 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5946 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5947 $ECHO EXPORTS >> $output_objdir/$libname.def~
5949 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5950 prefix_cmds="$prefix_cmds -e 1d";
5952 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5953 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5954 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5955 emximp -o $lib $output_objdir/$libname.def'
5956 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5957 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5961 if test yes = "$GCC"; then
5962 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5963 _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'
5965 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5966 _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'
5968 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5970 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5973 osf4* | osf5*) # as osf3* with the addition of -msym flag
5974 if test yes = "$GCC"; then
5975 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5976 _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'
5977 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5979 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5980 _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'
5981 _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~
5982 $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'
5984 # Both c and cxx compiler support -rpath directly
5985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5987 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5988 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5992 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5993 if test yes = "$GCC"; then
5995 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5996 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5997 $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'
5999 case `$CC -V 2>&1` in
6002 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
6003 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6004 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6008 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6009 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6010 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6015 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6017 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6019 # The compiler driver will combine and reorder linker options,
6020 # but understands '-z linker_flag'. GCC discards it without '$wl',
6021 # but is careful enough not to reorder.
6022 # Supported since Solaris 2.6 (maybe 2.5.1?)
6023 if test yes = "$GCC"; then
6024 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
6026 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6030 _LT_TAGVAR(link_all_deplibs, $1)=yes
6034 if test sequent = "$host_vendor"; then
6035 # Use $CC to link under sequent, because it throws in some extra .o
6036 # files that make .init and .fini sections work.
6037 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6039 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6042 _LT_TAGVAR(hardcode_direct, $1)=yes
6043 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6044 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6048 case $host_vendor in
6050 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6054 ## LD is ld it makes a PLAMLIB
6055 ## CC just makes a GrossModule.
6056 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6057 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6058 _LT_TAGVAR(hardcode_direct, $1)=no
6061 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6062 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6065 runpath_var='LD_RUN_PATH'
6066 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6070 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6071 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6072 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6076 if test -d /usr/nec; then
6077 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6078 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6079 runpath_var=LD_RUN_PATH
6080 hardcode_runpath_var=yes
6081 _LT_TAGVAR(ld_shlibs, $1)=yes
6085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6086 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6087 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6089 runpath_var='LD_RUN_PATH'
6091 if test yes = "$GCC"; then
6092 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6093 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6095 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6096 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6100 sysv5* | sco3.2v5* | sco5v6*)
6101 # Note: We CANNOT use -z defs as we might desire, because we do not
6102 # link with -lc, and that would cause any symbols used from libc to
6103 # always be unresolved, which means just about no library would
6104 # ever link correctly. If we're not using GNU ld we use -z text
6105 # though, which does catch some bad symbols but isn't as heavy-handed
6107 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6108 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6109 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6111 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6112 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6113 _LT_TAGVAR(link_all_deplibs, $1)=yes
6114 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6115 runpath_var='LD_RUN_PATH'
6117 if test yes = "$GCC"; then
6118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6119 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6121 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6122 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6127 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6128 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6129 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6133 _LT_TAGVAR(ld_shlibs, $1)=no
6137 if test sni = "$host_vendor"; then
6139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6140 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6146 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6147 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6149 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6151 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6152 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6153 _LT_DECL([], [extract_expsyms_cmds], [2],
6154 [The commands to extract the exported symbol list from a shared archive])
6157 # Do we need to explicitly link libc?
6159 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6161 # Assume -lc should be added
6162 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6164 if test yes,yes = "$GCC,$enable_shared"; then
6165 case $_LT_TAGVAR(archive_cmds, $1) in
6167 # FIXME: we may have to deal with multi-command sequences.
6170 # Test whether the compiler implicitly links with -lc since on some
6171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6172 # to ld, don't add -lc before -lgcc.
6173 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6174 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6178 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6181 libobjs=conftest.$ac_objext
6183 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6184 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6190 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6191 _LT_TAGVAR(allow_undefined_flag, $1)=
6192 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6194 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6196 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6198 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6200 cat conftest.err 1>&5
6204 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6211 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6212 [Whether or not to add -lc for building shared libraries])
6213 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6214 [enable_shared_with_static_runtimes], [0],
6215 [Whether or not to disallow shared libs when runtime libs are static])
6216 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6217 [Compiler flag to allow reflexive dlopens])
6218 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6219 [Compiler flag to generate shared objects directly from archives])
6220 _LT_TAGDECL([], [compiler_needs_object], [1],
6221 [Whether the compiler copes with passing no objects directly])
6222 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6223 [Create an old-style archive from a shared archive])
6224 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6225 [Create a temporary old-style archive to link instead of a shared archive])
6226 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6227 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6228 _LT_TAGDECL([], [module_cmds], [2],
6229 [Commands used to build a loadable module if different from building
6231 _LT_TAGDECL([], [module_expsym_cmds], [2])
6232 _LT_TAGDECL([], [with_gnu_ld], [1],
6233 [Whether we are building with GNU ld or not])
6234 _LT_TAGDECL([], [allow_undefined_flag], [1],
6235 [Flag that allows shared libraries with undefined symbols to be built])
6236 _LT_TAGDECL([], [no_undefined_flag], [1],
6237 [Flag that enforces no undefined symbols])
6238 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6239 [Flag to hardcode $libdir into a binary during linking.
6240 This must work even if $libdir does not exist])
6241 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6242 [Whether we need a single "-rpath" flag with a separated argument])
6243 _LT_TAGDECL([], [hardcode_direct], [0],
6244 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6245 DIR into the resulting binary])
6246 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6247 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6248 DIR into the resulting binary and the resulting library dependency is
6249 "absolute", i.e impossible to change by setting $shlibpath_var if the
6250 library is relocated])
6251 _LT_TAGDECL([], [hardcode_minus_L], [0],
6252 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6253 into the resulting binary])
6254 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6255 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6256 into the resulting binary])
6257 _LT_TAGDECL([], [hardcode_automatic], [0],
6258 [Set to "yes" if building a shared library automatically hardcodes DIR
6259 into the library and all subsequent libraries and executables linked
6261 _LT_TAGDECL([], [inherit_rpath], [0],
6262 [Set to yes if linker adds runtime paths of dependent libraries
6263 to runtime path list])
6264 _LT_TAGDECL([], [link_all_deplibs], [0],
6265 [Whether libtool must link a program against all its dependency libraries])
6266 _LT_TAGDECL([], [always_export_symbols], [0],
6267 [Set to "yes" if exported symbols are required])
6268 _LT_TAGDECL([], [export_symbols_cmds], [2],
6269 [The commands to list exported symbols])
6270 _LT_TAGDECL([], [exclude_expsyms], [1],
6271 [Symbols that should not be listed in the preloaded symbols])
6272 _LT_TAGDECL([], [include_expsyms], [1],
6273 [Symbols that must always be exported])
6274 _LT_TAGDECL([], [prelink_cmds], [2],
6275 [Commands necessary for linking programs (against libraries) with templates])
6276 _LT_TAGDECL([], [postlink_cmds], [2],
6277 [Commands necessary for finishing linking programs])
6278 _LT_TAGDECL([], [file_list_spec], [1],
6279 [Specify filename containing input files])
6280 dnl FIXME: Not yet implemented
6281 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6282 dnl [Compiler flag to generate thread safe objects])
6283 ])# _LT_LINKER_SHLIBS
6286 # _LT_LANG_C_CONFIG([TAG])
6287 # ------------------------
6288 # Ensure that the configuration variables for a C compiler are suitably
6289 # defined. These variables are subsequently used by _LT_CONFIG to write
6290 # the compiler configuration to 'libtool'.
6291 m4_defun([_LT_LANG_C_CONFIG],
6292 [m4_require([_LT_DECL_EGREP])dnl
6296 # Source file extension for C test sources.
6299 # Object file extension for compiled C test sources.
6301 _LT_TAGVAR(objext, $1)=$objext
6303 # Code to be used in simple compile tests
6304 lt_simple_compile_test_code="int some_variable = 0;"
6306 # Code to be used in simple link tests
6307 lt_simple_link_test_code='int main(){return(0);}'
6310 # Save the default compiler, since it gets overwritten when the other
6311 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6312 compiler_DEFAULT=$CC
6314 # save warnings/boilerplate of simple test code
6315 _LT_COMPILER_BOILERPLATE
6316 _LT_LINKER_BOILERPLATE
6318 if test -n "$compiler"; then
6319 _LT_COMPILER_NO_RTTI($1)
6320 _LT_COMPILER_PIC($1)
6321 _LT_COMPILER_C_O($1)
6322 _LT_COMPILER_FILE_LOCKS($1)
6323 _LT_LINKER_SHLIBS($1)
6324 _LT_SYS_DYNAMIC_LINKER($1)
6325 _LT_LINKER_HARDCODE_LIBPATH($1)
6329 # Report what library types will actually be built
6330 AC_MSG_CHECKING([if libtool supports shared libraries])
6331 AC_MSG_RESULT([$can_build_shared])
6333 AC_MSG_CHECKING([whether to build shared libraries])
6334 test no = "$can_build_shared" && enable_shared=no
6336 # On AIX, shared libraries and static libraries use the same namespace, and
6337 # are all built from PIC.
6340 test yes = "$enable_shared" && enable_static=no
6341 if test -n "$RANLIB"; then
6342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6343 postinstall_cmds='$RANLIB $lib'
6348 if test ia64 != "$host_cpu"; then
6349 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6350 yes,aix,yes) ;; # shared object as lib.so file only
6351 yes,svr4,*) ;; # shared object as lib.so archive member only
6352 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6357 AC_MSG_RESULT([$enable_shared])
6359 AC_MSG_CHECKING([whether to build static libraries])
6360 # Make sure either enable_shared or enable_static is yes.
6361 test yes = "$enable_shared" || enable_static=yes
6362 AC_MSG_RESULT([$enable_static])
6368 ])# _LT_LANG_C_CONFIG
6371 # _LT_LANG_CXX_CONFIG([TAG])
6372 # --------------------------
6373 # Ensure that the configuration variables for a C++ compiler are suitably
6374 # defined. These variables are subsequently used by _LT_CONFIG to write
6375 # the compiler configuration to 'libtool'.
6376 m4_defun([_LT_LANG_CXX_CONFIG],
6377 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6378 m4_require([_LT_DECL_EGREP])dnl
6379 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6380 if test -n "$CXX" && ( test no != "$CXX" &&
6381 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6382 (test g++ != "$CXX"))); then
6385 _lt_caught_CXX_error=yes
6389 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6390 _LT_TAGVAR(allow_undefined_flag, $1)=
6391 _LT_TAGVAR(always_export_symbols, $1)=no
6392 _LT_TAGVAR(archive_expsym_cmds, $1)=
6393 _LT_TAGVAR(compiler_needs_object, $1)=no
6394 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6395 _LT_TAGVAR(hardcode_direct, $1)=no
6396 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6397 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6398 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6399 _LT_TAGVAR(hardcode_minus_L, $1)=no
6400 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6401 _LT_TAGVAR(hardcode_automatic, $1)=no
6402 _LT_TAGVAR(inherit_rpath, $1)=no
6403 _LT_TAGVAR(module_cmds, $1)=
6404 _LT_TAGVAR(module_expsym_cmds, $1)=
6405 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6406 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6407 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6408 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6409 _LT_TAGVAR(no_undefined_flag, $1)=
6410 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6411 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6413 # Source file extension for C++ test sources.
6416 # Object file extension for compiled C++ test sources.
6418 _LT_TAGVAR(objext, $1)=$objext
6420 # No sense in running all these tests if we already determined that
6421 # the CXX compiler isn't working. Some variables (like enable_shared)
6422 # are currently assumed to apply to all compilers on this platform,
6423 # and will be corrupted by setting them based on a non-working compiler.
6424 if test yes != "$_lt_caught_CXX_error"; then
6425 # Code to be used in simple compile tests
6426 lt_simple_compile_test_code="int some_variable = 0;"
6428 # Code to be used in simple link tests
6429 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6431 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6434 # save warnings/boilerplate of simple test code
6435 _LT_COMPILER_BOILERPLATE
6436 _LT_LINKER_BOILERPLATE
6438 # Allow CC to be a program name with arguments.
6440 lt_save_CFLAGS=$CFLAGS
6444 lt_save_with_gnu_ld=$with_gnu_ld
6445 lt_save_path_LD=$lt_cv_path_LD
6446 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6447 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6449 $as_unset lt_cv_prog_gnu_ld
6451 if test -n "${lt_cv_path_LDCXX+set}"; then
6452 lt_cv_path_LD=$lt_cv_path_LDCXX
6454 $as_unset lt_cv_path_LD
6456 test -z "${LDCXX+set}" || LD=$LDCXX
6460 _LT_TAGVAR(compiler, $1)=$CC
6461 _LT_CC_BASENAME([$compiler])
6463 if test -n "$compiler"; then
6464 # We don't want -fno-exception when compiling C++ code, so set the
6465 # no_builtin_flag separately
6466 if test yes = "$GXX"; then
6467 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6469 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6472 if test yes = "$GXX"; then
6473 # Set up default GNU C++ configuration
6477 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6478 # archiving commands below assume that GNU ld is being used.
6479 if test yes = "$with_gnu_ld"; then
6480 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6481 _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'
6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6486 # If archive_cmds runs LD, not CC, wlarc should be empty
6487 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6488 # investigate it a little bit more. (MM)
6491 # ancient GNU ld didn't support --whole-archive et. al.
6492 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6493 $GREP 'no-whole-archive' > /dev/null; then
6494 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6496 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6502 # A generic and very simple default shared library creation
6503 # command for GNU C++ for the case where it uses the native
6504 # linker, instead of GNU ld. If possible, this setting should
6505 # overridden to take advantage of the native linker features on
6506 # the platform it is being used on.
6507 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6510 # Commands to make compiler produce verbose output that lists
6511 # what "hidden" libraries, object files and flags are used when
6512 # linking a shared library.
6513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6521 # PORTME: fill in a description of your system's C++ link characteristics
6522 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6523 _LT_TAGVAR(ld_shlibs, $1)=yes
6526 # FIXME: insert proper C++ library support
6527 _LT_TAGVAR(ld_shlibs, $1)=no
6530 if test ia64 = "$host_cpu"; then
6531 # On IA64, the linker does run time linking by default, so we don't
6532 # have to do anything special.
6533 aix_use_runtimelinking=no
6534 exp_sym_flag='-Bexport'
6537 aix_use_runtimelinking=no
6539 # Test if we are trying to use run time linking or normal
6540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6541 # have runtime linking enabled, and use it for executables.
6542 # For shared libraries, we enable/disable runtime linking
6543 # depending on the kind of the shared library created -
6544 # when "with_aix_soname,aix_use_runtimelinking" is:
6545 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6546 # "aix,yes" lib.so shared, rtl:yes, for executables
6547 # lib.a static archive
6548 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6549 # lib.a(lib.so.V) shared, rtl:no, for executables
6550 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6551 # lib.a(lib.so.V) shared, rtl:no
6552 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6553 # lib.a static archive
6554 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6555 for ld_flag in $LDFLAGS; do
6558 aix_use_runtimelinking=yes
6563 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6564 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6565 # so we don't have lib.a shared libs to link our executables.
6566 # We have to force runtime linking in this case.
6567 aix_use_runtimelinking=yes
6568 LDFLAGS="$LDFLAGS -Wl,-brtl"
6573 exp_sym_flag='-bexport'
6574 no_entry_flag='-bnoentry'
6577 # When large executables or shared objects are built, AIX ld can
6578 # have problems creating the table of contents. If linking a library
6579 # or program results in "error TOC overflow" add -mminimal-toc to
6580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6583 _LT_TAGVAR(archive_cmds, $1)=''
6584 _LT_TAGVAR(hardcode_direct, $1)=yes
6585 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6586 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6587 _LT_TAGVAR(link_all_deplibs, $1)=yes
6588 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6589 case $with_aix_soname,$aix_use_runtimelinking in
6590 aix,*) ;; # no import file
6591 svr4,* | *,yes) # use import file
6592 # The Import File defines what to hardcode.
6593 _LT_TAGVAR(hardcode_direct, $1)=no
6594 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6598 if test yes = "$GXX"; then
6599 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6600 # We only want to do this on AIX 4.2 and lower, the check
6601 # below for broken collect2 doesn't work under 4.3+
6602 collect2name=`$CC -print-prog-name=collect2`
6603 if test -f "$collect2name" &&
6604 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6606 # We have reworked collect2
6609 # We have old collect2
6610 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6611 # It fails to find uninstalled libraries when the uninstalled
6612 # path is not listed in the libpath. Setting hardcode_minus_L
6613 # to unsupported forces relinking
6614 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6616 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6619 shared_flag='-shared'
6620 if test yes = "$aix_use_runtimelinking"; then
6621 shared_flag=$shared_flag' $wl-G'
6623 # Need to ensure runtime linking is disabled for the traditional
6624 # shared library, or the linker may eventually find shared libraries
6625 # /with/ Import File - we do not want to mix them.
6626 shared_flag_aix='-shared'
6627 shared_flag_svr4='-shared $wl-G'
6630 if test ia64 = "$host_cpu"; then
6631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6632 # chokes on -Wl,-G. The following line is correct:
6635 if test yes = "$aix_use_runtimelinking"; then
6638 shared_flag='$wl-bM:SRE'
6640 shared_flag_aix='$wl-bM:SRE'
6641 shared_flag_svr4='$wl-G'
6645 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6646 # It seems that -bexpall does not export symbols beginning with
6647 # underscore (_), so it is better to generate a list of symbols to
6649 _LT_TAGVAR(always_export_symbols, $1)=yes
6650 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6651 # Warning - without using the other runtime loading flags (-brtl),
6652 # -berok will link without error, but may produce a broken library.
6653 # The "-G" linker flag allows undefined symbols.
6654 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6655 # Determine the default libpath from the value encoded in an empty
6657 _LT_SYS_MODULE_PATH_AIX([$1])
6658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6660 _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
6662 if test ia64 = "$host_cpu"; then
6663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6664 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6665 _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"
6667 # Determine the default libpath from the value encoded in an
6669 _LT_SYS_MODULE_PATH_AIX([$1])
6670 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6671 # Warning - without using the other run time loading flags,
6672 # -berok will link without error, but may produce a broken library.
6673 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6674 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6675 if test yes = "$with_gnu_ld"; then
6676 # We only use this code for GNU lds that support --whole-archive.
6677 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6679 # Exported symbols can be pulled into shared objects from archives
6680 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6682 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6683 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6684 # -brtl affects multiple linker settings, -berok does not and is overridden later
6685 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6686 if test svr4 != "$with_aix_soname"; then
6687 # This is similar to how AIX traditionally builds its shared
6688 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6689 _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'
6691 if test aix != "$with_aix_soname"; then
6692 _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'
6694 # used by -dlpreopen to get the symbols
6695 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6697 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6704 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6706 # support --undefined. This deserves some investigation. FIXME
6707 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6709 _LT_TAGVAR(ld_shlibs, $1)=no
6714 case $cc_basename in
6716 # FIXME: insert proper C++ library support
6717 _LT_TAGVAR(ld_shlibs, $1)=no
6722 cygwin* | mingw* | pw32* | cegcc*)
6723 case $GXX,$cc_basename in
6726 # hardcode_libdir_flag_spec is actually meaningless, as there is
6727 # no search path for DLLs.
6728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6729 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6730 _LT_TAGVAR(always_export_symbols, $1)=yes
6731 _LT_TAGVAR(file_list_spec, $1)='@'
6732 # Tell ltmain to make .lib files, not .a files.
6734 # Tell ltmain to make .dll files, not .so files.
6736 # FIXME: Setting linknames here is a bad hack.
6737 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6738 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6739 cp "$export_symbols" "$output_objdir/$soname.def";
6740 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6742 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6744 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6746 # The linker will not automatically build a static lib if we build a DLL.
6747 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6748 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6750 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6751 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6752 lt_tool_outputfile="@TOOL_OUTPUT@"~
6753 case $lt_outputfile in
6756 lt_outputfile=$lt_outputfile.exe
6757 lt_tool_outputfile=$lt_tool_outputfile.exe
6760 func_to_tool_file "$lt_outputfile"~
6761 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6762 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6763 $RM "$lt_outputfile.manifest";
6768 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6769 # as there is no search path for DLLs.
6770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6771 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6772 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6773 _LT_TAGVAR(always_export_symbols, $1)=no
6774 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6776 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6777 _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'
6778 # If the export-symbols file already is a .def file, use it as
6779 # is; otherwise, prepend EXPORTS...
6780 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6781 cp $export_symbols $output_objdir/$soname.def;
6783 echo EXPORTS > $output_objdir/$soname.def;
6784 cat $export_symbols >> $output_objdir/$soname.def;
6786 $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'
6788 _LT_TAGVAR(ld_shlibs, $1)=no
6793 darwin* | rhapsody*)
6794 _LT_DARWIN_LINKER_FEATURES($1)
6798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6799 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6800 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6802 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6803 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6804 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6805 $ECHO EXPORTS >> $output_objdir/$libname.def~
6806 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6807 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6808 emximp -o $lib $output_objdir/$libname.def'
6809 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6812 $ECHO EXPORTS >> $output_objdir/$libname.def~
6814 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6815 prefix_cmds="$prefix_cmds -e 1d";
6817 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6818 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6819 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6820 emximp -o $lib $output_objdir/$libname.def'
6821 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6822 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6826 case $cc_basename in
6828 # FIXME: insert proper C++ library support
6829 _LT_TAGVAR(ld_shlibs, $1)=no
6832 # Green Hills C++ Compiler
6833 # FIXME: insert proper C++ library support
6834 _LT_TAGVAR(ld_shlibs, $1)=no
6837 # FIXME: insert proper C++ library support
6838 _LT_TAGVAR(ld_shlibs, $1)=no
6844 # C++ shared libraries reported to be fairly broken before
6846 _LT_TAGVAR(ld_shlibs, $1)=no
6850 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6853 freebsd* | dragonfly*)
6854 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6856 _LT_TAGVAR(ld_shlibs, $1)=yes
6860 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6861 _LT_TAGVAR(link_all_deplibs, $1)=yes
6865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6866 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6867 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6868 _LT_TAGVAR(hardcode_direct, $1)=yes
6869 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6870 # but as the default
6871 # location of the library.
6873 case $cc_basename in
6875 # FIXME: insert proper C++ library support
6876 _LT_TAGVAR(ld_shlibs, $1)=no
6879 _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'
6880 # Commands to make compiler produce verbose output that lists
6881 # what "hidden" libraries, object files and flags are used when
6882 # linking a shared library.
6884 # There doesn't appear to be a way to prevent this compiler from
6885 # explicitly linking system object files so we need to strip them
6886 # from the output so that they don't get included in the library
6888 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"'
6891 if test yes = "$GXX"; then
6892 _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'
6894 # FIXME: insert proper C++ library support
6895 _LT_TAGVAR(ld_shlibs, $1)=no
6902 if test no = "$with_gnu_ld"; then
6903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6904 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6916 _LT_TAGVAR(hardcode_direct, $1)=no
6917 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6920 _LT_TAGVAR(hardcode_direct, $1)=yes
6921 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6922 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6923 # but as the default
6924 # location of the library.
6928 case $cc_basename in
6930 # FIXME: insert proper C++ library support
6931 _LT_TAGVAR(ld_shlibs, $1)=no
6936 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6939 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6942 _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'
6945 # Commands to make compiler produce verbose output that lists
6946 # what "hidden" libraries, object files and flags are used when
6947 # linking a shared library.
6949 # There doesn't appear to be a way to prevent this compiler from
6950 # explicitly linking system object files so we need to strip them
6951 # from the output so that they don't get included in the library
6953 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"'
6956 if test yes = "$GXX"; then
6957 if test no = "$with_gnu_ld"; then
6960 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6963 _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'
6966 _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'
6971 # FIXME: insert proper C++ library support
6972 _LT_TAGVAR(ld_shlibs, $1)=no
6979 _LT_TAGVAR(hardcode_direct, $1)=no
6980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6981 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6982 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6984 # Instead, shared libraries are loaded at an image base (0x10000000 by
6985 # default) and relocated if they conflict, which is a slow very memory
6986 # consuming and fragmenting process. To avoid this, we pick a random,
6987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6988 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6989 _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'
6990 _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'
6993 case $cc_basename in
6996 _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'
6998 # Archives containing C++ object files must be created using
6999 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7000 # necessary to make sure instantiated templates are included
7002 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7005 if test yes = "$GXX"; then
7006 if test no = "$with_gnu_ld"; then
7007 _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'
7009 _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'
7012 _LT_TAGVAR(link_all_deplibs, $1)=yes
7015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7016 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7017 _LT_TAGVAR(inherit_rpath, $1)=yes
7020 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7021 case $cc_basename in
7023 # Kuck and Associates, Inc. (KAI) C++ Compiler
7025 # KCC will only create a shared library if the output file
7026 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7027 # to its proper name (with version) after linking.
7028 _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'
7029 _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'
7030 # Commands to make compiler produce verbose output that lists
7031 # what "hidden" libraries, object files and flags are used when
7032 # linking a shared library.
7034 # There doesn't appear to be a way to prevent this compiler from
7035 # explicitly linking system object files so we need to strip them
7036 # from the output so that they don't get included in the library
7038 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"'
7040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7043 # Archives containing C++ object files must be created using
7044 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7045 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7050 # version 8.0 and above of icpc choke on multiply defined symbols
7051 # if we add $predep_objects and $postdep_objects, however 7.1 and
7052 # earlier do not add the objects themselves.
7053 case `$CC -V 2>&1` in
7055 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7056 _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'
7058 *) # Version 8.0 or newer
7061 ia64*) tmp_idyn=' -i_dynamic';;
7063 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7064 _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'
7067 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7070 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7073 # Portland Group C++ compiler
7075 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7076 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7078 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7079 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7080 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7082 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7083 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7085 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7087 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7088 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7089 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7091 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7092 $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'
7094 *) # Version 6 and above use weak symbols
7095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7096 _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'
7100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7101 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7102 _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'
7106 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7107 _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'
7109 runpath_var=LD_RUN_PATH
7110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7111 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7113 # Commands to make compiler produce verbose output that lists
7114 # what "hidden" libraries, object files and flags are used when
7115 # linking a shared library.
7117 # There doesn't appear to be a way to prevent this compiler from
7118 # explicitly linking system object files so we need to strip them
7119 # from the output so that they don't get included in the library
7121 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'
7123 xl* | mpixl* | bgxl*)
7124 # IBM XL 8.0 on PPC, with GNU ld
7125 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7126 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7127 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7128 if test yes = "$supports_anon_versioning"; then
7129 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7131 echo "local: *; };" >> $output_objdir/$libname.ver~
7132 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7136 case `$CC -V 2>&1 | sed 5q` in
7139 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7140 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7141 _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'
7142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7143 _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'
7144 _LT_TAGVAR(compiler_needs_object, $1)=yes
7146 # Not sure whether something based on
7147 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7149 output_verbose_link_cmd='func_echo_all'
7151 # Archives containing C++ object files must be created using
7152 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7153 # necessary to make sure instantiated templates are included
7155 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7163 # FIXME: insert proper C++ library support
7164 _LT_TAGVAR(ld_shlibs, $1)=no
7168 # FIXME: insert proper C++ library support
7169 _LT_TAGVAR(ld_shlibs, $1)=no
7173 case $cc_basename in
7175 # FIXME: insert proper C++ library support
7176 _LT_TAGVAR(ld_shlibs, $1)=no
7179 # FIXME: insert proper C++ library support
7180 _LT_TAGVAR(ld_shlibs, $1)=no
7186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7187 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7190 _LT_TAGVAR(hardcode_direct, $1)=yes
7191 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7193 # Workaround some broken pre-1.5 toolchains
7194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7198 _LT_TAGVAR(ld_shlibs, $1)=yes
7202 if test -f /usr/libexec/ld.so; then
7203 _LT_TAGVAR(hardcode_direct, $1)=yes
7204 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7205 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7209 _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'
7210 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7211 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7213 output_verbose_link_cmd=func_echo_all
7215 _LT_TAGVAR(ld_shlibs, $1)=no
7219 osf3* | osf4* | osf5*)
7220 case $cc_basename in
7222 # Kuck and Associates, Inc. (KAI) C++ Compiler
7224 # KCC will only create a shared library if the output file
7225 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7226 # to its proper name (with version) after linking.
7227 _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'
7229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7230 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7232 # Archives containing C++ object files must be created using
7233 # the KAI C++ compiler.
7235 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7236 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7240 # Rational C++ 2.4.1
7241 # FIXME: insert proper C++ library support
7242 _LT_TAGVAR(ld_shlibs, $1)=no
7247 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7248 _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'
7249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7252 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7253 _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'
7254 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7255 echo "-hidden">> $lib.exp~
7256 $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~
7258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7262 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7264 # Commands to make compiler produce verbose output that lists
7265 # what "hidden" libraries, object files and flags are used when
7266 # linking a shared library.
7268 # There doesn't appear to be a way to prevent this compiler from
7269 # explicitly linking system object files so we need to strip them
7270 # from the output so that they don't get included in the library
7272 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"'
7275 if test yes,no = "$GXX,$with_gnu_ld"; then
7276 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7279 _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'
7282 _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'
7286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7287 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7295 # FIXME: insert proper C++ library support
7296 _LT_TAGVAR(ld_shlibs, $1)=no
7303 # FIXME: insert proper C++ library support
7304 _LT_TAGVAR(ld_shlibs, $1)=no
7308 case $cc_basename in
7311 # FIXME: insert proper C++ library support
7312 _LT_TAGVAR(ld_shlibs, $1)=no
7316 # FIXME: insert proper C++ library support
7317 _LT_TAGVAR(ld_shlibs, $1)=no
7320 # FIXME: insert proper C++ library support
7321 _LT_TAGVAR(ld_shlibs, $1)=no
7327 case $cc_basename in
7329 # Sun C++ 4.2, 5.x and Centerline C++
7330 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7331 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7332 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7333 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7334 $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'
7336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7337 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7339 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7341 # The compiler driver will combine and reorder linker options,
7342 # but understands '-z linker_flag'.
7343 # Supported since Solaris 2.6 (maybe 2.5.1?)
7344 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7347 _LT_TAGVAR(link_all_deplibs, $1)=yes
7349 output_verbose_link_cmd='func_echo_all'
7351 # Archives containing C++ object files must be created using
7352 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7353 # necessary to make sure instantiated templates are included
7355 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7358 # Green Hills C++ Compiler
7359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7361 # The C++ compiler must be used to create the archive.
7362 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7365 # GNU C++ compiler with Solaris linker
7366 if test yes,no = "$GXX,$with_gnu_ld"; then
7367 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7368 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7369 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7370 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7371 $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'
7373 # Commands to make compiler produce verbose output that lists
7374 # what "hidden" libraries, object files and flags are used when
7375 # linking a shared library.
7376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7378 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7380 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7381 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7382 $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'
7384 # Commands to make compiler produce verbose output that lists
7385 # what "hidden" libraries, object files and flags are used when
7386 # linking a shared library.
7387 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7392 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7394 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7402 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7403 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7404 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7405 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7406 runpath_var='LD_RUN_PATH'
7408 case $cc_basename in
7410 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7411 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7414 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7415 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7420 sysv5* | sco3.2v5* | sco5v6*)
7421 # Note: We CANNOT use -z defs as we might desire, because we do not
7422 # link with -lc, and that would cause any symbols used from libc to
7423 # always be unresolved, which means just about no library would
7424 # ever link correctly. If we're not using GNU ld we use -z text
7425 # though, which does catch some bad symbols but isn't as heavy-handed
7427 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7428 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7429 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7430 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7432 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7433 _LT_TAGVAR(link_all_deplibs, $1)=yes
7434 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7435 runpath_var='LD_RUN_PATH'
7437 case $cc_basename in
7439 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7440 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7441 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7442 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7443 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7444 '"$_LT_TAGVAR(reload_cmds, $1)"
7447 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7448 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7454 case $cc_basename in
7456 # NonStop-UX NCC 3.20
7457 # FIXME: insert proper C++ library support
7458 _LT_TAGVAR(ld_shlibs, $1)=no
7461 # FIXME: insert proper C++ library support
7462 _LT_TAGVAR(ld_shlibs, $1)=no
7468 # FIXME: insert proper C++ library support
7469 _LT_TAGVAR(ld_shlibs, $1)=no
7473 # FIXME: insert proper C++ library support
7474 _LT_TAGVAR(ld_shlibs, $1)=no
7478 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7479 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7481 _LT_TAGVAR(GCC, $1)=$GXX
7482 _LT_TAGVAR(LD, $1)=$LD
7485 ## There is no encapsulation within the following macros, do not change
7486 ## the running order or otherwise move them around unless you know exactly
7487 ## what you are doing...
7488 _LT_SYS_HIDDEN_LIBDEPS($1)
7489 _LT_COMPILER_PIC($1)
7490 _LT_COMPILER_C_O($1)
7491 _LT_COMPILER_FILE_LOCKS($1)
7492 _LT_LINKER_SHLIBS($1)
7493 _LT_SYS_DYNAMIC_LINKER($1)
7494 _LT_LINKER_HARDCODE_LIBPATH($1)
7497 fi # test -n "$compiler"
7500 CFLAGS=$lt_save_CFLAGS
7504 with_gnu_ld=$lt_save_with_gnu_ld
7505 lt_cv_path_LDCXX=$lt_cv_path_LD
7506 lt_cv_path_LD=$lt_save_path_LD
7507 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7508 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7509 fi # test yes != "$_lt_caught_CXX_error"
7512 ])# _LT_LANG_CXX_CONFIG
7515 # _LT_FUNC_STRIPNAME_CNF
7516 # ----------------------
7517 # func_stripname_cnf prefix suffix name
7518 # strip PREFIX and SUFFIX off of NAME.
7519 # PREFIX and SUFFIX must not contain globbing or regex special
7520 # characters, hashes, percent signs, but SUFFIX may contain a leading
7521 # dot (in which case that matches only a dot).
7523 # This function is identical to the (non-XSI) version of func_stripname,
7524 # except this one can be used by m4 code that may be executed by configure,
7525 # rather than the libtool script.
7526 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7527 AC_REQUIRE([_LT_DECL_SED])
7528 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7529 func_stripname_cnf ()
7532 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7533 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7535 } # func_stripname_cnf
7536 ])# _LT_FUNC_STRIPNAME_CNF
7539 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7540 # ---------------------------------
7541 # Figure out "hidden" library dependencies from verbose
7542 # compiler output when linking a shared library.
7543 # Parse the compiler output and extract the necessary
7544 # objects, libraries and library flags.
7545 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7546 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7547 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7548 # Dependencies to place before and after the object being linked:
7549 _LT_TAGVAR(predep_objects, $1)=
7550 _LT_TAGVAR(postdep_objects, $1)=
7551 _LT_TAGVAR(predeps, $1)=
7552 _LT_TAGVAR(postdeps, $1)=
7553 _LT_TAGVAR(compiler_lib_search_path, $1)=
7555 dnl we can't use the lt_simple_compile_test_code here,
7556 dnl because it contains code intended for an executable,
7557 dnl not a library. It's possible we should let each
7558 dnl tag define a new lt_????_link_test_code variable,
7559 dnl but it's only used here...
7560 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7562 void foo (void) { a = 0; }
7564 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7568 Foo (void) { a = 0; }
7573 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7581 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7589 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7592 public void bar (void) {
7597 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7604 _lt_libdeps_save_CFLAGS=$CFLAGS
7605 case "$CC $CFLAGS " in #(
7606 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7607 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7608 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7611 dnl Parse the compiler output and extract the necessary
7612 dnl objects, libraries and library flags.
7613 if AC_TRY_EVAL(ac_compile); then
7614 # Parse the compiler output and extract the necessary
7615 # objects, libraries and library flags.
7617 # Sentinel used to keep track of whether or not we are before
7618 # the conftest object file.
7619 pre_test_object_deps_done=no
7621 for p in `eval "$output_verbose_link_cmd"`; do
7625 # Some compilers place space between "-{L,R}" and the path.
7627 if test x-L = "$p" ||
7628 test x-R = "$p"; then
7633 # Expand the sysroot to ease extracting the directories later.
7634 if test -z "$prev"; then
7636 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7637 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7638 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7642 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7644 if test no = "$pre_test_object_deps_done"; then
7647 # Internal compiler library paths should come after those
7648 # provided the user. The postdeps already come after the
7649 # user supplied libs so there is no need to process them.
7650 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7651 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7653 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7656 # The "-l" case would never come before the object being
7657 # linked, so don't bother handling this case.
7660 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7661 _LT_TAGVAR(postdeps, $1)=$prev$p
7663 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7669 *.lto.$objext) ;; # Ignore GCC LTO objects
7671 # This assumes that the test object file only shows up
7672 # once in the compiler output.
7673 if test "$p" = "conftest.$objext"; then
7674 pre_test_object_deps_done=yes
7678 if test no = "$pre_test_object_deps_done"; then
7679 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7680 _LT_TAGVAR(predep_objects, $1)=$p
7682 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7685 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7686 _LT_TAGVAR(postdep_objects, $1)=$p
7688 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7693 *) ;; # Ignore the rest.
7701 echo "libtool.m4: error: problem compiling $1 test program"
7704 $RM -f confest.$objext
7705 CFLAGS=$_lt_libdeps_save_CFLAGS
7707 # PORTME: override above test on systems where it is broken
7711 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7712 # hack all around it, let's just trust "g++" to DTRT.
7713 _LT_TAGVAR(predep_objects,$1)=
7714 _LT_TAGVAR(postdep_objects,$1)=
7715 _LT_TAGVAR(postdeps,$1)=
7720 case " $_LT_TAGVAR(postdeps, $1) " in
7721 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7723 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7724 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7725 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7727 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7728 [The directories searched by this compiler when creating a shared library])
7729 _LT_TAGDECL([], [predep_objects], [1],
7730 [Dependencies to place before and after the objects being linked to
7731 create a shared library])
7732 _LT_TAGDECL([], [postdep_objects], [1])
7733 _LT_TAGDECL([], [predeps], [1])
7734 _LT_TAGDECL([], [postdeps], [1])
7735 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7736 [The library search path used internally by the compiler when linking
7738 ])# _LT_SYS_HIDDEN_LIBDEPS
7741 # _LT_LANG_F77_CONFIG([TAG])
7742 # --------------------------
7743 # Ensure that the configuration variables for a Fortran 77 compiler are
7744 # suitably defined. These variables are subsequently used by _LT_CONFIG
7745 # to write the compiler configuration to 'libtool'.
7746 m4_defun([_LT_LANG_F77_CONFIG],
7747 [AC_LANG_PUSH(Fortran 77)
7748 if test -z "$F77" || test no = "$F77"; then
7752 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7753 _LT_TAGVAR(allow_undefined_flag, $1)=
7754 _LT_TAGVAR(always_export_symbols, $1)=no
7755 _LT_TAGVAR(archive_expsym_cmds, $1)=
7756 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7757 _LT_TAGVAR(hardcode_direct, $1)=no
7758 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7760 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7761 _LT_TAGVAR(hardcode_minus_L, $1)=no
7762 _LT_TAGVAR(hardcode_automatic, $1)=no
7763 _LT_TAGVAR(inherit_rpath, $1)=no
7764 _LT_TAGVAR(module_cmds, $1)=
7765 _LT_TAGVAR(module_expsym_cmds, $1)=
7766 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7767 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7768 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7769 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7770 _LT_TAGVAR(no_undefined_flag, $1)=
7771 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7772 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7774 # Source file extension for f77 test sources.
7777 # Object file extension for compiled f77 test sources.
7779 _LT_TAGVAR(objext, $1)=$objext
7781 # No sense in running all these tests if we already determined that
7782 # the F77 compiler isn't working. Some variables (like enable_shared)
7783 # are currently assumed to apply to all compilers on this platform,
7784 # and will be corrupted by setting them based on a non-working compiler.
7785 if test yes != "$_lt_disable_F77"; then
7786 # Code to be used in simple compile tests
7787 lt_simple_compile_test_code="\
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code="\
7799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7802 # save warnings/boilerplate of simple test code
7803 _LT_COMPILER_BOILERPLATE
7804 _LT_LINKER_BOILERPLATE
7806 # Allow CC to be a program name with arguments.
7809 lt_save_CFLAGS=$CFLAGS
7813 _LT_TAGVAR(compiler, $1)=$CC
7814 _LT_CC_BASENAME([$compiler])
7816 if test -n "$compiler"; then
7817 AC_MSG_CHECKING([if libtool supports shared libraries])
7818 AC_MSG_RESULT([$can_build_shared])
7820 AC_MSG_CHECKING([whether to build shared libraries])
7821 test no = "$can_build_shared" && enable_shared=no
7823 # On AIX, shared libraries and static libraries use the same namespace, and
7824 # are all built from PIC.
7827 test yes = "$enable_shared" && enable_static=no
7828 if test -n "$RANLIB"; then
7829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7830 postinstall_cmds='$RANLIB $lib'
7834 if test ia64 != "$host_cpu"; then
7835 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7836 yes,aix,yes) ;; # shared object as lib.so file only
7837 yes,svr4,*) ;; # shared object as lib.so archive member only
7838 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7843 AC_MSG_RESULT([$enable_shared])
7845 AC_MSG_CHECKING([whether to build static libraries])
7846 # Make sure either enable_shared or enable_static is yes.
7847 test yes = "$enable_shared" || enable_static=yes
7848 AC_MSG_RESULT([$enable_static])
7850 _LT_TAGVAR(GCC, $1)=$G77
7851 _LT_TAGVAR(LD, $1)=$LD
7854 ## There is no encapsulation within the following macros, do not change
7855 ## the running order or otherwise move them around unless you know exactly
7856 ## what you are doing...
7857 _LT_COMPILER_PIC($1)
7858 _LT_COMPILER_C_O($1)
7859 _LT_COMPILER_FILE_LOCKS($1)
7860 _LT_LINKER_SHLIBS($1)
7861 _LT_SYS_DYNAMIC_LINKER($1)
7862 _LT_LINKER_HARDCODE_LIBPATH($1)
7865 fi # test -n "$compiler"
7869 CFLAGS=$lt_save_CFLAGS
7870 fi # test yes != "$_lt_disable_F77"
7873 ])# _LT_LANG_F77_CONFIG
7876 # _LT_LANG_FC_CONFIG([TAG])
7877 # -------------------------
7878 # Ensure that the configuration variables for a Fortran compiler are
7879 # suitably defined. These variables are subsequently used by _LT_CONFIG
7880 # to write the compiler configuration to 'libtool'.
7881 m4_defun([_LT_LANG_FC_CONFIG],
7882 [AC_LANG_PUSH(Fortran)
7884 if test -z "$FC" || test no = "$FC"; then
7888 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7889 _LT_TAGVAR(allow_undefined_flag, $1)=
7890 _LT_TAGVAR(always_export_symbols, $1)=no
7891 _LT_TAGVAR(archive_expsym_cmds, $1)=
7892 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7893 _LT_TAGVAR(hardcode_direct, $1)=no
7894 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7896 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7897 _LT_TAGVAR(hardcode_minus_L, $1)=no
7898 _LT_TAGVAR(hardcode_automatic, $1)=no
7899 _LT_TAGVAR(inherit_rpath, $1)=no
7900 _LT_TAGVAR(module_cmds, $1)=
7901 _LT_TAGVAR(module_expsym_cmds, $1)=
7902 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7903 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7904 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7905 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7906 _LT_TAGVAR(no_undefined_flag, $1)=
7907 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7908 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7910 # Source file extension for fc test sources.
7911 ac_ext=${ac_fc_srcext-f}
7913 # Object file extension for compiled fc test sources.
7915 _LT_TAGVAR(objext, $1)=$objext
7917 # No sense in running all these tests if we already determined that
7918 # the FC compiler isn't working. Some variables (like enable_shared)
7919 # are currently assumed to apply to all compilers on this platform,
7920 # and will be corrupted by setting them based on a non-working compiler.
7921 if test yes != "$_lt_disable_FC"; then
7922 # Code to be used in simple compile tests
7923 lt_simple_compile_test_code="\
7929 # Code to be used in simple link tests
7930 lt_simple_link_test_code="\
7935 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7938 # save warnings/boilerplate of simple test code
7939 _LT_COMPILER_BOILERPLATE
7940 _LT_LINKER_BOILERPLATE
7942 # Allow CC to be a program name with arguments.
7945 lt_save_CFLAGS=$CFLAGS
7949 GCC=$ac_cv_fc_compiler_gnu
7951 _LT_TAGVAR(compiler, $1)=$CC
7952 _LT_CC_BASENAME([$compiler])
7954 if test -n "$compiler"; then
7955 AC_MSG_CHECKING([if libtool supports shared libraries])
7956 AC_MSG_RESULT([$can_build_shared])
7958 AC_MSG_CHECKING([whether to build shared libraries])
7959 test no = "$can_build_shared" && enable_shared=no
7961 # On AIX, shared libraries and static libraries use the same namespace, and
7962 # are all built from PIC.
7965 test yes = "$enable_shared" && enable_static=no
7966 if test -n "$RANLIB"; then
7967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7968 postinstall_cmds='$RANLIB $lib'
7972 if test ia64 != "$host_cpu"; then
7973 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7974 yes,aix,yes) ;; # shared object as lib.so file only
7975 yes,svr4,*) ;; # shared object as lib.so archive member only
7976 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7981 AC_MSG_RESULT([$enable_shared])
7983 AC_MSG_CHECKING([whether to build static libraries])
7984 # Make sure either enable_shared or enable_static is yes.
7985 test yes = "$enable_shared" || enable_static=yes
7986 AC_MSG_RESULT([$enable_static])
7988 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7989 _LT_TAGVAR(LD, $1)=$LD
7992 ## There is no encapsulation within the following macros, do not change
7993 ## the running order or otherwise move them around unless you know exactly
7994 ## what you are doing...
7995 _LT_SYS_HIDDEN_LIBDEPS($1)
7996 _LT_COMPILER_PIC($1)
7997 _LT_COMPILER_C_O($1)
7998 _LT_COMPILER_FILE_LOCKS($1)
7999 _LT_LINKER_SHLIBS($1)
8000 _LT_SYS_DYNAMIC_LINKER($1)
8001 _LT_LINKER_HARDCODE_LIBPATH($1)
8004 fi # test -n "$compiler"
8008 CFLAGS=$lt_save_CFLAGS
8009 fi # test yes != "$_lt_disable_FC"
8012 ])# _LT_LANG_FC_CONFIG
8015 # _LT_LANG_GCJ_CONFIG([TAG])
8016 # --------------------------
8017 # Ensure that the configuration variables for the GNU Java Compiler compiler
8018 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8019 # to write the compiler configuration to 'libtool'.
8020 m4_defun([_LT_LANG_GCJ_CONFIG],
8021 [AC_REQUIRE([LT_PROG_GCJ])dnl
8024 # Source file extension for Java test sources.
8027 # Object file extension for compiled Java test sources.
8029 _LT_TAGVAR(objext, $1)=$objext
8031 # Code to be used in simple compile tests
8032 lt_simple_compile_test_code="class foo {}"
8034 # Code to be used in simple link tests
8035 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8040 # save warnings/boilerplate of simple test code
8041 _LT_COMPILER_BOILERPLATE
8042 _LT_LINKER_BOILERPLATE
8044 # Allow CC to be a program name with arguments.
8046 lt_save_CFLAGS=$CFLAGS
8052 _LT_TAGVAR(compiler, $1)=$CC
8053 _LT_TAGVAR(LD, $1)=$LD
8054 _LT_CC_BASENAME([$compiler])
8056 # GCJ did not exist at the time GCC didn't implicitly link libc in.
8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8059 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8060 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8061 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8063 if test -n "$compiler"; then
8064 _LT_COMPILER_NO_RTTI($1)
8065 _LT_COMPILER_PIC($1)
8066 _LT_COMPILER_C_O($1)
8067 _LT_COMPILER_FILE_LOCKS($1)
8068 _LT_LINKER_SHLIBS($1)
8069 _LT_LINKER_HARDCODE_LIBPATH($1)
8078 CFLAGS=$lt_save_CFLAGS
8079 ])# _LT_LANG_GCJ_CONFIG
8082 # _LT_LANG_GO_CONFIG([TAG])
8083 # --------------------------
8084 # Ensure that the configuration variables for the GNU Go compiler
8085 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8086 # to write the compiler configuration to 'libtool'.
8087 m4_defun([_LT_LANG_GO_CONFIG],
8088 [AC_REQUIRE([LT_PROG_GO])dnl
8091 # Source file extension for Go test sources.
8094 # Object file extension for compiled Go test sources.
8096 _LT_TAGVAR(objext, $1)=$objext
8098 # Code to be used in simple compile tests
8099 lt_simple_compile_test_code="package main; func main() { }"
8101 # Code to be used in simple link tests
8102 lt_simple_link_test_code='package main; func main() { }'
8104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8107 # save warnings/boilerplate of simple test code
8108 _LT_COMPILER_BOILERPLATE
8109 _LT_LINKER_BOILERPLATE
8111 # Allow CC to be a program name with arguments.
8113 lt_save_CFLAGS=$CFLAGS
8119 _LT_TAGVAR(compiler, $1)=$CC
8120 _LT_TAGVAR(LD, $1)=$LD
8121 _LT_CC_BASENAME([$compiler])
8123 # Go did not exist at the time GCC didn't implicitly link libc in.
8124 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8126 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8127 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8128 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8130 if test -n "$compiler"; then
8131 _LT_COMPILER_NO_RTTI($1)
8132 _LT_COMPILER_PIC($1)
8133 _LT_COMPILER_C_O($1)
8134 _LT_COMPILER_FILE_LOCKS($1)
8135 _LT_LINKER_SHLIBS($1)
8136 _LT_LINKER_HARDCODE_LIBPATH($1)
8145 CFLAGS=$lt_save_CFLAGS
8146 ])# _LT_LANG_GO_CONFIG
8149 # _LT_LANG_RC_CONFIG([TAG])
8150 # -------------------------
8151 # Ensure that the configuration variables for the Windows resource compiler
8152 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8153 # to write the compiler configuration to 'libtool'.
8154 m4_defun([_LT_LANG_RC_CONFIG],
8155 [AC_REQUIRE([LT_PROG_RC])dnl
8158 # Source file extension for RC test sources.
8161 # Object file extension for compiled RC test sources.
8163 _LT_TAGVAR(objext, $1)=$objext
8165 # Code to be used in simple compile tests
8166 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8168 # Code to be used in simple link tests
8169 lt_simple_link_test_code=$lt_simple_compile_test_code
8171 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8174 # save warnings/boilerplate of simple test code
8175 _LT_COMPILER_BOILERPLATE
8176 _LT_LINKER_BOILERPLATE
8178 # Allow CC to be a program name with arguments.
8180 lt_save_CFLAGS=$CFLAGS
8186 _LT_TAGVAR(compiler, $1)=$CC
8187 _LT_CC_BASENAME([$compiler])
8188 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8190 if test -n "$compiler"; then
8198 CFLAGS=$lt_save_CFLAGS
8199 ])# _LT_LANG_RC_CONFIG
8204 AC_DEFUN([LT_PROG_GCJ],
8205 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8206 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8207 [AC_CHECK_TOOL(GCJ, gcj,)
8208 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8209 AC_SUBST(GCJFLAGS)])])[]dnl
8213 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8214 dnl aclocal-1.4 backwards compatibility:
8215 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8220 AC_DEFUN([LT_PROG_GO],
8221 [AC_CHECK_TOOL(GOC, gccgo,)
8227 AC_DEFUN([LT_PROG_RC],
8228 [AC_CHECK_TOOL(RC, windres,)
8232 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8233 dnl aclocal-1.4 backwards compatibility:
8234 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8239 # If we don't have a new enough Autoconf to choose the best grep
8240 # available, choose the one first in the user's PATH.
8241 m4_defun([_LT_DECL_EGREP],
8242 [AC_REQUIRE([AC_PROG_EGREP])dnl
8243 AC_REQUIRE([AC_PROG_FGREP])dnl
8244 test -z "$GREP" && GREP=grep
8245 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8246 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8247 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8248 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8255 # If we don't have a new enough Autoconf to choose the best objdump
8256 # available, choose the one first in the user's PATH.
8257 m4_defun([_LT_DECL_OBJDUMP],
8258 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8259 test -z "$OBJDUMP" && OBJDUMP=objdump
8260 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8266 # Ensure DLLTOOL variable is set.
8267 m4_defun([_LT_DECL_DLLTOOL],
8268 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8269 test -z "$DLLTOOL" && DLLTOOL=dlltool
8270 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8276 # Check for a fully-functional sed program, that truncates
8277 # as few characters as possible. Prefer GNU sed if found.
8278 m4_defun([_LT_DECL_SED],
8280 test -z "$SED" && SED=sed
8281 Xsed="$SED -e 1s/^X//"
8282 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8283 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8284 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8287 m4_ifndef([AC_PROG_SED], [
8288 # NOTE: This macro has been submitted for inclusion into #
8289 # GNU Autoconf as AC_PROG_SED. When it is available in #
8290 # a released version of Autoconf we should remove this #
8291 # macro and use it instead. #
8293 m4_defun([AC_PROG_SED],
8294 [AC_MSG_CHECKING([for a sed that does not truncate output])
8295 AC_CACHE_VAL(lt_cv_path_SED,
8296 [# Loop through the user's path and test for sed and gsed.
8297 # Then use that list of sed's as ones to test for truncation.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir=.
8303 for lt_ac_prog in sed gsed; do
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8306 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8314 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8315 # along with /bin/sed that truncates output.
8316 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8317 test ! -f "$lt_ac_sed" && continue
8318 cat /dev/null > conftest.in
8320 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8321 # Check for GNU sed and select it if it is found.
8322 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8323 lt_cv_path_SED=$lt_ac_sed
8327 cat conftest.in conftest.in >conftest.tmp
8328 mv conftest.tmp conftest.in
8329 cp conftest.in conftest.nl
8331 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8332 cmp -s conftest.out conftest.nl || break
8333 # 10000 chars as input seems more than enough
8334 test 10 -lt "$lt_ac_count" && break
8335 lt_ac_count=`expr $lt_ac_count + 1`
8336 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8337 lt_ac_max=$lt_ac_count
8338 lt_cv_path_SED=$lt_ac_sed
8345 AC_MSG_RESULT([$SED])
8350 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8351 dnl aclocal-1.4 backwards compatibility:
8352 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8355 # _LT_CHECK_SHELL_FEATURES
8356 # ------------------------
8357 # Find out whether the shell is Bourne or XSI compatible,
8358 # or has some other useful features.
8359 m4_defun([_LT_CHECK_SHELL_FEATURES],
8360 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8365 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8367 # test EBCDIC or ASCII
8368 case `echo X|tr X '\101'` in
8369 A) # ASCII based system
8370 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8371 lt_SP2NL='tr \040 \012'
8372 lt_NL2SP='tr \015\012 \040\040'
8374 *) # EBCDIC based system
8375 lt_SP2NL='tr \100 \n'
8376 lt_NL2SP='tr \r\n \100\100'
8379 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8380 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8381 ])# _LT_CHECK_SHELL_FEATURES
8384 # _LT_PATH_CONVERSION_FUNCTIONS
8385 # -----------------------------
8386 # Determine what file name conversion functions should be used by
8387 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8388 # for certain cross-compile configurations and native mingw.
8389 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8390 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8391 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8392 AC_MSG_CHECKING([how to convert $build file names to $host format])
8393 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8397 *-*-mingw* ) # actually msys
8398 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8401 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8403 * ) # otherwise, assume *nix
8404 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8410 *-*-mingw* ) # actually msys
8411 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8414 lt_cv_to_host_file_cmd=func_convert_file_noop
8416 * ) # otherwise, assume *nix
8417 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8421 * ) # unhandled hosts (and "normal" native builds)
8422 lt_cv_to_host_file_cmd=func_convert_file_noop
8426 to_host_file_cmd=$lt_cv_to_host_file_cmd
8427 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8428 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8429 [0], [convert $build file names to $host format])dnl
8431 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8432 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8433 [#assume ordinary cross tools, or native build.
8434 lt_cv_to_tool_file_cmd=func_convert_file_noop
8438 *-*-mingw* ) # actually msys
8439 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8445 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8446 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8447 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8448 [0], [convert $build files to toolchain format])dnl
8449 ])# _LT_PATH_CONVERSION_FUNCTIONS
8451 # Portability macros for glibc argz. -*- Autoconf -*-
8453 # Copyright (C) 2004-2007, 2011-2015 Free Software Foundation, Inc.
8454 # Written by Gary V. Vaughan <gary@gnu.org>
8456 # This file is free software; the Free Software Foundation gives
8457 # unlimited permission to copy and/or distribute it, with or without
8458 # modifications, as long as this notice is preserved.
8460 # serial 1 ltargz.m4
8462 AC_DEFUN([LT_FUNC_ARGZ], [
8463 AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
8465 AC_CHECK_TYPES([error_t],
8467 [AC_DEFINE([error_t], [int],
8468 [Define to a type to use for 'error_t' if it is not otherwise available.])
8469 AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
8470 does not typedef error_t.])],
8471 [#if defined(HAVE_ARGZ_H)
8476 AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
8477 argz_next argz_stringify], [], [LT_ARGZ_H=lt__argz.h; AC_LIBOBJ([lt__argz])])
8479 dnl if have system argz functions, allow forced use of
8480 dnl libltdl-supplied implementation (and default to do so
8481 dnl on "known bad" systems). Could use a runtime check, but
8482 dnl (a) detecting malloc issues is notoriously unreliable
8483 dnl (b) only known system that declares argz functions,
8484 dnl provides them, yet they are broken, is cygwin
8485 dnl releases prior to 16-Mar-2007 (1.5.24 and earlier)
8486 dnl So, it's more straightforward simply to special case
8487 dnl this for known bad systems.
8488 AS_IF([test -z "$LT_ARGZ_H"],
8490 [if argz actually works],
8491 [lt_cv_sys_argz_works],
8492 [[case $host_os in #(
8494 lt_cv_sys_argz_works=no
8495 if test no != "$cross_compiling"; then
8496 lt_cv_sys_argz_works="guessing no"
8498 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
8501 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
8506 if test 1 -lt "$lt_os_major" \
8507 || { test 1 -eq "$lt_os_major" \
8508 && { test 5 -lt "$lt_os_minor" \
8509 || { test 5 -eq "$lt_os_minor" \
8510 && test 24 -lt "$lt_os_micro"; }; }; }; then
8511 lt_cv_sys_argz_works=yes
8515 *) lt_cv_sys_argz_works=yes ;;
8517 AS_IF([test yes = "$lt_cv_sys_argz_works"],
8518 [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
8519 [This value is set to 1 to indicate that the system argz facility works])],
8520 [LT_ARGZ_H=lt__argz.h
8521 AC_LIBOBJ([lt__argz])])])
8523 AC_SUBST([LT_ARGZ_H])
8526 # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
8528 # Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
8529 # Written by Thomas Tanner, 1999
8531 # This file is free software; the Free Software Foundation gives
8532 # unlimited permission to copy and/or distribute it, with or without
8533 # modifications, as long as this notice is preserved.
8535 # serial 20 LTDL_INIT
8537 # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
8538 # ------------------------------------------
8539 # DIRECTORY contains the libltdl sources. It is okay to call this
8540 # function multiple times, as long as the same DIRECTORY is always given.
8541 AC_DEFUN([LT_CONFIG_LTDL_DIR],
8542 [AC_BEFORE([$0], [LTDL_INIT])
8544 ])# LT_CONFIG_LTDL_DIR
8546 # We break this out into a separate macro, so that we can call it safely
8547 # internally without being caught accidentally by the sed scan in libtoolize.
8548 m4_defun([_LT_CONFIG_LTDL_DIR],
8549 [dnl remove trailing slashes
8550 m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
8552 [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
8553 m4_if(_ARG_DIR, [.],
8555 [m4_define([_LTDL_DIR], _ARG_DIR)
8556 _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
8557 [m4_if(_ARG_DIR, _LTDL_DIR,
8559 [m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
8560 m4_popdef([_ARG_DIR])
8561 ])# _LT_CONFIG_LTDL_DIR
8564 m4_define([_LTDL_DIR], [])
8569 # If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
8570 # to '$(top_builddir)/'.
8571 m4_define([_LT_BUILD_PREFIX],
8572 [m4_ifdef([AC_AUTOCONF_VERSION],
8573 [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
8574 [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
8575 [$(top_build_prefix)],
8576 [$(top_builddir)/])],
8577 [$(top_build_prefix)])],
8578 [$(top_builddir)/])[]dnl
8584 # sets LIBLTDL to the link flags for the libltdl convenience library and
8585 # LTDLINCL to the include flags for the libltdl header and adds
8586 # --enable-ltdl-convenience to the configure arguments. Note that
8587 # AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
8588 # '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
8589 # and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
8590 # quotes!). If your package is not flat and you're not using automake,
8591 # define top_build_prefix, top_builddir, and top_srcdir appropriately
8592 # in your Makefiles.
8593 AC_DEFUN([LTDL_CONVENIENCE],
8594 [AC_BEFORE([$0], [LTDL_INIT])dnl
8595 dnl Although the argument is deprecated and no longer documented,
8596 dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
8597 dnl here make sure it is the same as any other declaration of libltdl's
8598 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
8599 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8600 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8602 ])# LTDL_CONVENIENCE
8604 # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
8605 # now we have LT_CONFIG_LTDL_DIR:
8606 AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
8607 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8610 dnl aclocal-1.4 backwards compatibility:
8611 dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
8616 # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
8617 m4_defun([_LTDL_CONVENIENCE],
8618 [case $enable_ltdl_convenience in
8619 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8620 "") enable_ltdl_convenience=yes
8621 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8623 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
8625 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8628 AC_SUBST([LTDLDEPS])
8629 AC_SUBST([LTDLINCL])
8631 # For backwards non-gettext consistent compatibility...
8634 ])# _LTDL_CONVENIENCE
8639 # sets LIBLTDL to the link flags for the libltdl installable library
8640 # and LTDLINCL to the include flags for the libltdl header and adds
8641 # --enable-ltdl-install to the configure arguments. Note that
8642 # AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
8643 # is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
8644 # available, otherwise with '$(top_builddir)/', and LTDLINCL will be
8645 # prefixed with '$(top_srcdir)/' (note the single quotes!). If your
8646 # package is not flat and you're not using automake, define top_build_prefix,
8647 # top_builddir, and top_srcdir appropriately in your Makefiles.
8648 # In the future, this macro may have to be called after LT_INIT.
8649 AC_DEFUN([LTDL_INSTALLABLE],
8650 [AC_BEFORE([$0], [LTDL_INIT])dnl
8651 dnl Although the argument is deprecated and no longer documented,
8652 dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
8653 dnl here make sure it is the same as any other declaration of libltdl's
8654 dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
8655 dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8656 m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8658 ])# LTDL_INSTALLABLE
8660 # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
8661 # now we have LT_CONFIG_LTDL_DIR:
8662 AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
8663 [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8666 dnl aclocal-1.4 backwards compatibility:
8667 dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
8672 # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
8673 m4_defun([_LTDL_INSTALLABLE],
8674 [if test -f "$prefix/lib/libltdl.la"; then
8675 lt_save_LDFLAGS=$LDFLAGS
8676 LDFLAGS="-L$prefix/lib $LDFLAGS"
8677 AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
8678 LDFLAGS=$lt_save_LDFLAGS
8679 if test yes = "${lt_lib_ltdl-no}"; then
8680 if test yes != "$enable_ltdl_install"; then
8681 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
8682 AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
8683 enable_ltdl_install=no
8685 elif test no = "$enable_ltdl_install"; then
8686 AC_MSG_WARN([libltdl not installed, but installation disabled])
8690 # If configure.ac declared an installable ltdl, and the user didn't override
8691 # with --disable-ltdl-install, we will install the shipped libltdl.
8692 case $enable_ltdl_install in
8693 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
8698 *) enable_ltdl_install=yes
8699 ac_configure_args="$ac_configure_args --enable-ltdl-install"
8700 LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
8702 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8707 AC_SUBST([LTDLDEPS])
8708 AC_SUBST([LTDLINCL])
8710 # For backwards non-gettext consistent compatibility...
8713 ])# LTDL_INSTALLABLE
8716 # _LTDL_MODE_DISPATCH
8717 # -------------------
8718 m4_define([_LTDL_MODE_DISPATCH],
8719 [dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
8720 m4_if(_LTDL_DIR, [],
8722 dnl if _LTDL_MODE was not set already, the default value is 'subproject':
8723 [m4_case(m4_default(_LTDL_MODE, [subproject]),
8724 [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
8725 _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
8726 [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
8728 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
8729 dnl Be careful not to expand twice:
8731 ])# _LTDL_MODE_DISPATCH
8734 # _LT_LIBOBJ(MODULE_NAME)
8735 # -----------------------
8736 # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
8738 AC_DEFUN([_LT_LIBOBJ], [
8739 m4_pattern_allow([^_LT_LIBOBJS$])
8740 _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
8744 # LTDL_INIT([OPTIONS])
8745 # --------------------
8746 # Clients of libltdl can use this macro to allow the installer to
8747 # choose between a shipped copy of the ltdl sources or a preinstalled
8748 # version of the library. If the shipped ltdl sources are not in a
8749 # subdirectory named libltdl, the directory name must be given by
8750 # LT_CONFIG_LTDL_DIR.
8751 AC_DEFUN([LTDL_INIT],
8753 _LT_SET_OPTIONS([$0], [$1])
8755 dnl We need to keep our own list of libobjs separate from our parent project,
8756 dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
8757 dnl we look for our own LIBOBJs.
8758 m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
8759 m4_pushdef([AC_LIBSOURCES])
8761 dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
8762 m4_if(_LTDL_MODE, [],
8763 [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
8764 m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
8765 [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
8767 AC_ARG_WITH([included_ltdl],
8768 [AS_HELP_STRING([--with-included-ltdl],
8769 [use the GNU ltdl sources included here])])
8771 if test yes != "$with_included_ltdl"; then
8772 # We are not being forced to use the included libltdl sources, so
8773 # decide whether there is a useful installed version we can use.
8774 AC_CHECK_HEADER([ltdl.h],
8775 [AC_CHECK_DECL([lt_dlinterface_register],
8776 [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
8777 [with_included_ltdl=no],
8778 [with_included_ltdl=yes])],
8779 [with_included_ltdl=yes],
8780 [AC_INCLUDES_DEFAULT
8781 #include <ltdl.h>])],
8782 [with_included_ltdl=yes],
8783 [AC_INCLUDES_DEFAULT]
8787 dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
8788 dnl was called yet, then for old times' sake, we assume libltdl is in an
8789 dnl eponymous directory:
8790 AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
8792 AC_ARG_WITH([ltdl_include],
8793 [AS_HELP_STRING([--with-ltdl-include=DIR],
8794 [use the ltdl headers installed in DIR])])
8796 if test -n "$with_ltdl_include"; then
8797 if test -f "$with_ltdl_include/ltdl.h"; then :
8799 AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
8802 with_ltdl_include=no
8805 AC_ARG_WITH([ltdl_lib],
8806 [AS_HELP_STRING([--with-ltdl-lib=DIR],
8807 [use the libltdl.la installed in DIR])])
8809 if test -n "$with_ltdl_lib"; then
8810 if test -f "$with_ltdl_lib/libltdl.la"; then :
8812 AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
8818 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
8820 m4_case(m4_default(_LTDL_TYPE, [convenience]),
8821 [convenience], [_LTDL_CONVENIENCE],
8822 [installable], [_LTDL_INSTALLABLE],
8823 [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
8826 # If the included ltdl is not to be used, then use the
8827 # preinstalled libltdl we found.
8828 AC_DEFINE([HAVE_LTDL], [1],
8829 [Define this if a modern libltdl is already installed])
8835 AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
8837 *) with_included_ltdl=no
8838 LIBLTDL="-L$with_ltdl_lib -lltdl"
8840 LTDLINCL=-I$with_ltdl_include
8845 # Report our decision...
8846 AC_MSG_CHECKING([where to find libltdl headers])
8847 AC_MSG_RESULT([$LTDLINCL])
8848 AC_MSG_CHECKING([where to find libltdl library])
8849 AC_MSG_RESULT([$LIBLTDL])
8853 dnl restore autoconf definition.
8854 m4_popdef([AC_LIBOBJ])
8855 m4_popdef([AC_LIBSOURCES])
8857 AC_CONFIG_COMMANDS_PRE([
8860 if test -n "$_LT_LIBOBJS"; then
8861 # Remove the extension.
8862 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
8863 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
8864 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
8865 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
8868 AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
8869 AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
8873 m4_define([LTDL_INIT])
8877 AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
8878 AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
8879 AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
8880 dnl aclocal-1.4 backwards compatibility:
8881 dnl AC_DEFUN([AC_LIB_LTDL], [])
8882 dnl AC_DEFUN([AC_WITH_LTDL], [])
8883 dnl AC_DEFUN([LT_WITH_LTDL], [])
8888 # Perform all the checks necessary for compilation of the ltdl objects
8889 # -- including compiler checks and header checks. This is a public
8890 # interface mainly for the benefit of libltdl's own configure.ac, most
8891 # other users should call LTDL_INIT instead.
8892 AC_DEFUN([_LTDL_SETUP],
8893 [AC_REQUIRE([AC_PROG_CC])dnl
8894 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
8895 AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
8896 AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
8897 AC_REQUIRE([LT_LIB_DLLOAD])dnl
8898 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8899 AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
8900 AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
8901 AC_REQUIRE([LT_FUNC_ARGZ])dnl
8903 m4_require([_LT_CHECK_OBJDIR])dnl
8904 m4_require([_LT_HEADER_DLFCN])dnl
8905 m4_require([_LT_CHECK_DLPREOPEN])dnl
8906 m4_require([_LT_DECL_SED])dnl
8908 dnl Don't require this, or it will be expanded earlier than the code
8909 dnl that sets the variables it relies on:
8912 dnl _LTDL_MODE specific code must be called at least once:
8915 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
8916 # the user used. This is so that ltdl.h can pick up the parent projects
8917 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
8918 # definitions required by ltdl.c.
8919 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
8920 AC_CONFIG_COMMANDS_PRE([dnl
8921 m4_pattern_allow([^LT_CONFIG_H$])dnl
8922 m4_ifset([AH_HEADER],
8923 [LT_CONFIG_H=AH_HEADER],
8924 [m4_ifset([AC_LIST_HEADERS],
8925 [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`],
8927 AC_SUBST([LT_CONFIG_H])
8929 AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
8930 [], [], [AC_INCLUDES_DEFAULT])
8932 AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
8933 AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
8935 m4_pattern_allow([LT_LIBEXT])dnl
8936 AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
8939 eval "lt_libprefix=\"$libname_spec\""
8940 m4_pattern_allow([LT_LIBPREFIX])dnl
8941 AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
8944 eval "LTDLOPEN=\"$libname_spec\""
8945 AC_SUBST([LTDLOPEN])
8949 # _LT_ENABLE_INSTALL
8950 # ------------------
8951 m4_define([_LT_ENABLE_INSTALL],
8952 [AC_ARG_ENABLE([ltdl-install],
8953 [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
8955 case ,$enable_ltdl_install,$enable_ltdl_convenience in
8957 *) enable_ltdl_convenience=yes ;;
8960 m4_ifdef([AM_CONDITIONAL],
8961 [AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
8962 AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
8963 ])# _LT_ENABLE_INSTALL
8966 # LT_SYS_DLOPEN_DEPLIBS
8967 # ---------------------
8968 AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
8969 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8970 AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
8971 [lt_cv_sys_dlopen_deplibs],
8972 [# PORTME does your system automatically load deplibs for dlopen?
8973 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8974 # For now, we just catch OSes we know something about -- in the
8975 # future, we'll try test this programmatically.
8976 lt_cv_sys_dlopen_deplibs=unknown
8978 aix3*|aix4.1.*|aix4.2.*)
8979 # Unknown whether this is true for these versions of AIX, but
8980 # we want this 'case' here to explicitly catch those versions.
8981 lt_cv_sys_dlopen_deplibs=unknown
8984 lt_cv_sys_dlopen_deplibs=yes
8989 lt_cv_sys_dlopen_deplibs=no
8994 lt_cv_sys_dlopen_deplibs=yes
8997 # Assuming the user has installed a libdl from somewhere, this is true
8998 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8999 lt_cv_sys_dlopen_deplibs=yes
9001 freebsd* | dragonfly*)
9002 lt_cv_sys_dlopen_deplibs=yes
9004 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
9005 # GNU and its variants, using gnu ld.so (Glibc)
9006 lt_cv_sys_dlopen_deplibs=yes
9009 lt_cv_sys_dlopen_deplibs=yes
9012 lt_cv_sys_dlopen_deplibs=yes
9014 irix[[12345]]*|irix6.[[01]]*)
9015 # Catch all versions of IRIX before 6.2, and indicate that we don't
9016 # know how it worked for any of those versions.
9017 lt_cv_sys_dlopen_deplibs=unknown
9020 # The case above catches anything before 6.2, and it's known that
9021 # at 6.2 and later dlopen does load deplibs.
9022 lt_cv_sys_dlopen_deplibs=yes
9025 lt_cv_sys_dlopen_deplibs=yes
9028 lt_cv_sys_dlopen_deplibs=yes
9031 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
9032 # it did *not* use an RPATH in a shared library to find objects the
9033 # library depends on, so we explicitly say 'no'.
9034 lt_cv_sys_dlopen_deplibs=no
9036 osf5.0|osf5.0a|osf5.1)
9037 # dlopen *does* load deplibs and with the right loader patch applied
9038 # it even uses RPATH in a shared library to search for shared objects
9039 # that the library depends on, but there's no easy way to know if that
9040 # patch is installed. Since this is the case, all we can really
9041 # say is unknown -- it depends on the patch being installed. If
9042 # it is, this changes to 'yes'. Without it, it would be 'no'.
9043 lt_cv_sys_dlopen_deplibs=unknown
9046 # the two cases above should catch all versions of osf <= 5.1. Read
9047 # the comments above for what we know about them.
9048 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
9049 # is used to find them so we can finally say 'yes'.
9050 lt_cv_sys_dlopen_deplibs=yes
9053 lt_cv_sys_dlopen_deplibs=yes
9056 lt_cv_sys_dlopen_deplibs=yes
9058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9059 libltdl_cv_sys_dlopen_deplibs=yes
9063 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
9064 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
9065 [Define if the OS needs help to load dependent libraries for dlopen().])
9067 ])# LT_SYS_DLOPEN_DEPLIBS
9070 AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
9071 dnl aclocal-1.4 backwards compatibility:
9072 dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
9077 AC_DEFUN([LT_SYS_MODULE_EXT],
9078 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
9079 AC_CACHE_CHECK([what extension is used for runtime loadable modules],
9080 [libltdl_cv_shlibext],
9083 eval libltdl_cv_shlibext=$shrext_cmds
9085 eval libltdl_cv_shrext=$shrext_cmds
9087 if test -n "$libltdl_cv_shlibext"; then
9088 m4_pattern_allow([LT_MODULE_EXT])dnl
9089 AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
9090 [Define to the extension used for runtime loadable modules, say, ".so".])
9092 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
9093 m4_pattern_allow([LT_SHARED_EXT])dnl
9094 AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
9095 [Define to the shared library suffix, say, ".dylib".])
9097 if test -n "$shared_archive_member_spec"; then
9098 m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
9099 AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
9100 [Define to the shared archive member specification, say "(shr.o)".])
9102 ])# LT_SYS_MODULE_EXT
9105 AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
9106 dnl aclocal-1.4 backwards compatibility:
9107 dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
9110 # LT_SYS_MODULE_PATH
9111 # ------------------
9112 AC_DEFUN([LT_SYS_MODULE_PATH],
9113 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
9114 AC_CACHE_CHECK([what variable specifies run-time module search path],
9115 [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
9116 if test -n "$lt_cv_module_path_var"; then
9117 m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
9118 AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
9119 [Define to the name of the environment variable that determines the run-time module search path.])
9121 ])# LT_SYS_MODULE_PATH
9124 AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
9125 dnl aclocal-1.4 backwards compatibility:
9126 dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
9129 # LT_SYS_DLSEARCH_PATH
9130 # --------------------
9131 AC_DEFUN([LT_SYS_DLSEARCH_PATH],
9132 [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
9133 AC_CACHE_CHECK([for the default library search path],
9134 [lt_cv_sys_dlsearch_path],
9135 [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
9136 if test -n "$lt_cv_sys_dlsearch_path"; then
9138 for dir in $lt_cv_sys_dlsearch_path; do
9139 if test -z "$sys_dlsearch_path"; then
9140 sys_dlsearch_path=$dir
9142 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
9145 m4_pattern_allow([LT_DLSEARCH_PATH])dnl
9146 AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
9147 [Define to the system default library search path.])
9149 ])# LT_SYS_DLSEARCH_PATH
9152 AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
9153 dnl aclocal-1.4 backwards compatibility:
9154 dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
9157 # _LT_CHECK_DLPREOPEN
9158 # -------------------
9159 m4_defun([_LT_CHECK_DLPREOPEN],
9160 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
9161 AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
9162 [libltdl_cv_preloaded_symbols],
9163 [if test -n "$lt_cv_sys_global_symbol_pipe"; then
9164 libltdl_cv_preloaded_symbols=yes
9166 libltdl_cv_preloaded_symbols=no
9169 if test yes = "$libltdl_cv_preloaded_symbols"; then
9170 AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
9171 [Define if libtool can extract symbol lists from object files.])
9173 ])# _LT_CHECK_DLPREOPEN
9178 AC_DEFUN([LT_LIB_DLLOAD],
9179 [m4_pattern_allow([^LT_DLLOADERS$])
9181 AC_SUBST([LT_DLLOADERS])
9184 lt_dlload_save_LIBS=$LIBS
9187 AC_SEARCH_LIBS([dlopen], [dl],
9188 [AC_DEFINE([HAVE_LIBDL], [1],
9189 [Define if you have the libdl library or equivalent.])
9190 if test "$ac_cv_search_dlopen" != "none required"; then
9193 libltdl_cv_lib_dl_dlopen=yes
9194 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
9195 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
9198 ]], [[dlopen(0, 0);]])],
9199 [AC_DEFINE([HAVE_LIBDL], [1],
9200 [Define if you have the libdl library or equivalent.])
9201 libltdl_cv_func_dlopen=yes
9202 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
9203 [AC_CHECK_LIB([svld], [dlopen],
9204 [AC_DEFINE([HAVE_LIBDL], [1],
9205 [Define if you have the libdl library or equivalent.])
9206 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
9207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
9208 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
9211 LIBS="$LIBS $LIBADD_DLOPEN"
9212 AC_CHECK_FUNCS([dlerror])
9215 AC_SUBST([LIBADD_DLOPEN])
9218 AC_CHECK_FUNC([shl_load],
9219 [AC_DEFINE([HAVE_SHL_LOAD], [1],
9220 [Define if you have the shl_load function.])
9221 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
9222 [AC_CHECK_LIB([dld], [shl_load],
9223 [AC_DEFINE([HAVE_SHL_LOAD], [1],
9224 [Define if you have the shl_load function.])
9225 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
9226 LIBADD_SHL_LOAD=-ldld])])
9227 AC_SUBST([LIBADD_SHL_LOAD])
9231 # We only want this for pre-Mac OS X 10.4.
9232 AC_CHECK_FUNC([_dyld_func_lookup],
9233 [AC_DEFINE([HAVE_DYLD], [1],
9234 [Define if you have the _dyld_func_lookup function.])
9235 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
9238 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
9240 cygwin* | mingw* | pw32*)
9241 AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
9242 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
9246 AC_CHECK_LIB([dld], [dld_link],
9247 [AC_DEFINE([HAVE_DLD], [1],
9248 [Define if you have the GNU dld library.])
9249 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
9250 AC_SUBST([LIBADD_DLD_LINK])
9252 m4_pattern_allow([^LT_DLPREOPEN$])
9254 if test -n "$LT_DLLOADERS"
9256 for lt_loader in $LT_DLLOADERS; do
9257 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
9259 AC_DEFINE([HAVE_LIBDLLOADER], [1],
9260 [Define if libdlloader will be built on this platform])
9262 AC_SUBST([LT_DLPREOPEN])
9264 dnl This isn't used anymore, but set it for backwards compatibility
9265 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
9266 AC_SUBST([LIBADD_DL])
9268 LIBS=$lt_dlload_save_LIBS
9273 AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
9274 dnl aclocal-1.4 backwards compatibility:
9275 dnl AC_DEFUN([AC_LTDL_DLLIB], [])
9278 # LT_SYS_SYMBOL_USCORE
9279 # --------------------
9280 # does the compiler prefix global symbols with an underscore?
9281 AC_DEFUN([LT_SYS_SYMBOL_USCORE],
9282 [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
9283 AC_CACHE_CHECK([for _ prefix in compiled symbols],
9284 [lt_cv_sys_symbol_underscore],
9285 [lt_cv_sys_symbol_underscore=no
9286 cat > conftest.$ac_ext <<_LT_EOF
9287 void nm_test_func(){}
9288 int main(){nm_test_func;return 0;}
9290 if AC_TRY_EVAL(ac_compile); then
9291 # Now try to grab the symbols.
9292 ac_nlist=conftest.nm
9293 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
9294 # See whether the symbols have a leading underscore.
9295 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9296 lt_cv_sys_symbol_underscore=yes
9298 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9301 echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
9305 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9308 echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
9309 cat conftest.c >&AS_MESSAGE_LOG_FD
9313 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
9314 AC_SUBST([sys_symbol_underscore])
9315 ])# LT_SYS_SYMBOL_USCORE
9318 AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
9319 dnl aclocal-1.4 backwards compatibility:
9320 dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
9323 # LT_FUNC_DLSYM_USCORE
9324 # --------------------
9325 AC_DEFUN([LT_FUNC_DLSYM_USCORE],
9326 [AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl
9327 AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore
9328 AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext
9329 if test yes = "$lt_cv_sys_symbol_underscore"; then
9330 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
9331 AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
9332 [libltdl_cv_need_uscore],
9333 [libltdl_cv_need_uscore=unknown
9334 dlsym_uscore_save_LIBS=$LIBS
9335 LIBS="$LIBS $LIBADD_DLOPEN"
9336 libname=conftmod # stay within 8.3 filename limits!
9337 cat >$libname.$ac_ext <<_LT_EOF
9338 [#line $LINENO "configure"
9339 #include "confdefs.h"
9340 /* When -fvisibility=hidden is used, assume the code has been annotated
9341 correspondingly for the symbols needed. */
9342 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
9343 int fnord () __attribute__((visibility("default")));
9345 int fnord () { return 42; }]
9348 # ltfn_module_cmds module_cmds
9349 # Execute tilde-delimited MODULE_CMDS with environment primed for
9350 # $module_cmds or $archive_cmds type content.
9352 {( # subshell avoids polluting parent global environment
9353 module_cmds_save_ifs=$IFS; IFS='~'
9354 for cmd in @S|@1; do
9355 IFS=$module_cmds_save_ifs
9356 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
9357 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
9358 major=; versuffix=; verstring=; deplibs=
9359 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
9362 IFS=$module_cmds_save_ifs
9365 # Compile a loadable module using libtool macro expansion results.
9366 $CC $pic_flag -c $libname.$ac_ext
9367 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
9369 # Try to fetch fnord with dlsym().
9370 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
9371 cat >conftest.$ac_ext <<_LT_EOF
9372 [#line $LINENO "configure"
9373 #include "confdefs.h"
9380 # define RTLD_GLOBAL DL_GLOBAL
9382 # define RTLD_GLOBAL 0
9387 # define RTLD_NOW DL_NOW
9393 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
9394 int status = $libltdl_dlunknown;
9396 if (dlsym (handle, "fnord"))
9397 status = $libltdl_dlnouscore;
9399 if (dlsym (handle, "_fnord"))
9400 status = $libltdl_dluscore;
9410 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
9411 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
9413 case x$libltdl_status in
9414 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
9415 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
9416 x*) libltdl_cv_need_uscore=unknown ;;
9419 rm -rf conftest* $libname*
9420 LIBS=$dlsym_uscore_save_LIBS
9425 if test yes = "$libltdl_cv_need_uscore"; then
9426 AC_DEFINE([NEED_USCORE], [1],
9427 [Define if dlsym() requires a leading underscore in symbol names.])
9429 ])# LT_FUNC_DLSYM_USCORE
9432 AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
9433 dnl aclocal-1.4 backwards compatibility:
9434 dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
9436 # Helper functions for option handling. -*- Autoconf -*-
9438 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
9440 # Written by Gary V. Vaughan, 2004
9442 # This file is free software; the Free Software Foundation gives
9443 # unlimited permission to copy and/or distribute it, with or without
9444 # modifications, as long as this notice is preserved.
9446 # serial 8 ltoptions.m4
9448 # This is to help aclocal find these macros, as it can't see m4_define.
9449 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9452 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
9453 # ------------------------------------------
9454 m4_define([_LT_MANGLE_OPTION],
9455 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
9458 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
9459 # ---------------------------------------
9460 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
9461 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
9463 m4_define([_LT_SET_OPTION],
9464 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
9465 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
9466 _LT_MANGLE_DEFUN([$1], [$2]),
9467 [m4_warning([Unknown $1 option '$2'])])[]dnl
9471 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
9472 # ------------------------------------------------------------
9473 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9474 m4_define([_LT_IF_OPTION],
9475 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
9478 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
9479 # -------------------------------------------------------
9480 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
9482 m4_define([_LT_UNLESS_OPTIONS],
9483 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9484 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
9485 [m4_define([$0_found])])])[]dnl
9486 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
9491 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
9492 # ----------------------------------------
9493 # OPTION-LIST is a space-separated list of Libtool options associated
9494 # with MACRO-NAME. If any OPTION has a matching handler declared with
9495 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
9496 # the unknown option and exit.
9497 m4_defun([_LT_SET_OPTIONS],
9499 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
9500 [_LT_SET_OPTION([$1], _LT_Option)])
9502 m4_if([$1],[LT_INIT],[
9504 dnl Simply set some default values (i.e off) if boolean options were not
9506 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
9508 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
9511 dnl If no reference was made to various pairs of opposing options, then
9512 dnl we run the default mode handler for the pair. For example, if neither
9513 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
9514 dnl archives by default:
9515 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
9516 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
9517 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
9518 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
9519 [_LT_ENABLE_FAST_INSTALL])
9520 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
9521 [_LT_WITH_AIX_SONAME([aix])])
9527 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
9528 # -----------------------------------------
9529 m4_define([_LT_MANGLE_DEFUN],
9530 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
9533 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
9534 # -----------------------------------------------
9535 m4_define([LT_OPTION_DEFINE],
9536 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
9537 ])# LT_OPTION_DEFINE
9542 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9545 AU_DEFUN([AC_LIBTOOL_DLOPEN],
9546 [_LT_SET_OPTION([LT_INIT], [dlopen])
9547 AC_DIAGNOSE([obsolete],
9548 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9549 put the 'dlopen' option into LT_INIT's first parameter.])
9552 dnl aclocal-1.4 backwards compatibility:
9553 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9558 # Declare package support for building win32 dll's.
9559 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9560 [enable_win32_dll=yes
9563 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9564 AC_CHECK_TOOL(AS, as, false)
9565 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9566 AC_CHECK_TOOL(OBJDUMP, objdump, false)
9570 test -z "$AS" && AS=as
9571 _LT_DECL([], [AS], [1], [Assembler program])dnl
9573 test -z "$DLLTOOL" && DLLTOOL=dlltool
9574 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9576 test -z "$OBJDUMP" && OBJDUMP=objdump
9577 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9580 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9581 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
9582 _LT_SET_OPTION([LT_INIT], [win32-dll])
9583 AC_DIAGNOSE([obsolete],
9584 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9585 put the 'win32-dll' option into LT_INIT's first parameter.])
9588 dnl aclocal-1.4 backwards compatibility:
9589 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9592 # _LT_ENABLE_SHARED([DEFAULT])
9593 # ----------------------------
9594 # implement the --enable-shared flag, and supports the 'shared' and
9595 # 'disable-shared' LT_INIT options.
9596 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
9597 m4_define([_LT_ENABLE_SHARED],
9598 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9599 AC_ARG_ENABLE([shared],
9600 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9601 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9602 [p=${PACKAGE-default}
9604 yes) enable_shared=yes ;;
9605 no) enable_shared=no ;;
9608 # Look at the argument we got. We use all the common list separators.
9609 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9610 for pkg in $enableval; do
9612 if test "X$pkg" = "X$p"; then
9619 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9621 _LT_DECL([build_libtool_libs], [enable_shared], [0],
9622 [Whether or not to build shared libraries])
9623 ])# _LT_ENABLE_SHARED
9625 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9626 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9629 AC_DEFUN([AC_ENABLE_SHARED],
9630 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9633 AC_DEFUN([AC_DISABLE_SHARED],
9634 [_LT_SET_OPTION([LT_INIT], [disable-shared])
9637 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9638 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9640 dnl aclocal-1.4 backwards compatibility:
9641 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9642 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9646 # _LT_ENABLE_STATIC([DEFAULT])
9647 # ----------------------------
9648 # implement the --enable-static flag, and support the 'static' and
9649 # 'disable-static' LT_INIT options.
9650 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
9651 m4_define([_LT_ENABLE_STATIC],
9652 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9653 AC_ARG_ENABLE([static],
9654 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9655 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9656 [p=${PACKAGE-default}
9658 yes) enable_static=yes ;;
9659 no) enable_static=no ;;
9662 # Look at the argument we got. We use all the common list separators.
9663 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9664 for pkg in $enableval; do
9666 if test "X$pkg" = "X$p"; then
9673 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9675 _LT_DECL([build_old_libs], [enable_static], [0],
9676 [Whether or not to build static libraries])
9677 ])# _LT_ENABLE_STATIC
9679 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9680 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9683 AC_DEFUN([AC_ENABLE_STATIC],
9684 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9687 AC_DEFUN([AC_DISABLE_STATIC],
9688 [_LT_SET_OPTION([LT_INIT], [disable-static])
9691 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9692 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9694 dnl aclocal-1.4 backwards compatibility:
9695 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9696 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9700 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
9701 # ----------------------------------
9702 # implement the --enable-fast-install flag, and support the 'fast-install'
9703 # and 'disable-fast-install' LT_INIT options.
9704 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
9705 m4_define([_LT_ENABLE_FAST_INSTALL],
9706 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9707 AC_ARG_ENABLE([fast-install],
9708 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9709 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9710 [p=${PACKAGE-default}
9712 yes) enable_fast_install=yes ;;
9713 no) enable_fast_install=no ;;
9715 enable_fast_install=no
9716 # Look at the argument we got. We use all the common list separators.
9717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9718 for pkg in $enableval; do
9720 if test "X$pkg" = "X$p"; then
9721 enable_fast_install=yes
9727 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9729 _LT_DECL([fast_install], [enable_fast_install], [0],
9730 [Whether or not to optimize for fast installation])dnl
9731 ])# _LT_ENABLE_FAST_INSTALL
9733 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9734 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9737 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9738 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9739 AC_DIAGNOSE([obsolete],
9740 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9741 the 'fast-install' option into LT_INIT's first parameter.])
9744 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9745 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9746 AC_DIAGNOSE([obsolete],
9747 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9748 the 'disable-fast-install' option into LT_INIT's first parameter.])
9751 dnl aclocal-1.4 backwards compatibility:
9752 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9753 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9756 # _LT_WITH_AIX_SONAME([DEFAULT])
9757 # ----------------------------------
9758 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
9759 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
9760 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
9761 m4_define([_LT_WITH_AIX_SONAME],
9762 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
9763 shared_archive_member_spec=
9764 case $host,$enable_shared in
9765 power*-*-aix[[5-9]]*,yes)
9766 AC_MSG_CHECKING([which variant of shared library versioning to provide])
9767 AC_ARG_WITH([aix-soname],
9768 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
9769 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
9774 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
9777 lt_cv_with_aix_soname=$with_aix_soname],
9778 [AC_CACHE_VAL([lt_cv_with_aix_soname],
9779 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
9780 with_aix_soname=$lt_cv_with_aix_soname])
9781 AC_MSG_RESULT([$with_aix_soname])
9782 if test aix != "$with_aix_soname"; then
9783 # For the AIX way of multilib, we name the shared archive member
9784 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9785 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9786 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9787 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9788 if test 64 = "${OBJECT_MODE-32}"; then
9789 shared_archive_member_spec=shr_64
9791 shared_archive_member_spec=shr
9800 _LT_DECL([], [shared_archive_member_spec], [0],
9801 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
9802 ])# _LT_WITH_AIX_SONAME
9804 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
9805 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
9806 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
9809 # _LT_WITH_PIC([MODE])
9810 # --------------------
9811 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
9813 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
9814 m4_define([_LT_WITH_PIC],
9816 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9817 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9818 [lt_p=${PACKAGE-default}
9820 yes|no) pic_mode=$withval ;;
9823 # Look at the argument we got. We use all the common list separators.
9824 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9825 for lt_pkg in $withval; do
9827 if test "X$lt_pkg" = "X$lt_p"; then
9834 [pic_mode=m4_default([$1], [default])])
9836 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9839 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9840 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9843 AU_DEFUN([AC_LIBTOOL_PICMODE],
9844 [_LT_SET_OPTION([LT_INIT], [pic-only])
9845 AC_DIAGNOSE([obsolete],
9846 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9847 put the 'pic-only' option into LT_INIT's first parameter.])
9850 dnl aclocal-1.4 backwards compatibility:
9851 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9854 m4_define([_LTDL_MODE], [])
9855 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9856 [m4_define([_LTDL_MODE], [nonrecursive])])
9857 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9858 [m4_define([_LTDL_MODE], [recursive])])
9859 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9860 [m4_define([_LTDL_MODE], [subproject])])
9862 m4_define([_LTDL_TYPE], [])
9863 LT_OPTION_DEFINE([LTDL_INIT], [installable],
9864 [m4_define([_LTDL_TYPE], [installable])])
9865 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9866 [m4_define([_LTDL_TYPE], [convenience])])
9868 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9870 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
9872 # Written by Gary V. Vaughan, 2004
9874 # This file is free software; the Free Software Foundation gives
9875 # unlimited permission to copy and/or distribute it, with or without
9876 # modifications, as long as this notice is preserved.
9878 # serial 6 ltsugar.m4
9880 # This is to help aclocal find these macros, as it can't see m4_define.
9881 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9884 # lt_join(SEP, ARG1, [ARG2...])
9885 # -----------------------------
9886 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9887 # associated separator.
9888 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9889 # versions in m4sugar had bugs.
9890 m4_define([lt_join],
9891 [m4_if([$#], [1], [],
9893 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9894 m4_define([_lt_join],
9895 [m4_if([$#$2], [2], [],
9896 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9902 # Manipulate m4 lists.
9903 # These macros are necessary as long as will still need to support
9904 # Autoconf-2.59, which quotes differently.
9905 m4_define([lt_car], [[$1]])
9907 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9909 [m4_dquote(m4_shift($@))])])
9910 m4_define([lt_unquote], $1)
9913 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
9914 # ------------------------------------------
9915 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
9916 # Note that neither SEPARATOR nor STRING are expanded; they are appended
9917 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9918 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
9919 # than defined and empty).
9921 # This macro is needed until we can rely on Autoconf 2.62, since earlier
9922 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9923 m4_define([lt_append],
9925 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9929 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9930 # ----------------------------------------------------------
9931 # Produce a SEP delimited list of all paired combinations of elements of
9932 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9933 # has the form PREFIXmINFIXSUFFIXn.
9934 # Needed until we can rely on m4_combine added in Autoconf 2.62.
9935 m4_define([lt_combine],
9936 [m4_if(m4_eval([$# > 3]), [1],
9937 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9938 [[m4_foreach([_Lt_prefix], [$2],
9939 [m4_foreach([_Lt_suffix],
9940 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9941 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9944 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9945 # -----------------------------------------------------------------------
9946 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9947 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9948 m4_define([lt_if_append_uniq],
9950 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9951 [lt_append([$1], [$2], [$3])$4],
9953 [lt_append([$1], [$2], [$3])$4])])
9956 # lt_dict_add(DICT, KEY, VALUE)
9957 # -----------------------------
9958 m4_define([lt_dict_add],
9959 [m4_define([$1($2)], [$3])])
9962 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9963 # --------------------------------------------
9964 m4_define([lt_dict_add_subkey],
9965 [m4_define([$1($2:$3)], [$4])])
9968 # lt_dict_fetch(DICT, KEY, [SUBKEY])
9969 # ----------------------------------
9970 m4_define([lt_dict_fetch],
9972 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9973 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9976 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9977 # -----------------------------------------------------------------
9978 m4_define([lt_if_dict_fetch],
9979 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9984 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9985 # --------------------------------------------------------------
9986 m4_define([lt_dict_filter],
9987 [m4_if([$5], [], [],
9988 [lt_join(m4_quote(m4_default([$4], [[, ]])),
9989 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9990 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9993 # ltversion.m4 -- version numbers -*- Autoconf -*-
9995 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
9996 # Written by Scott James Remnant, 2004
9998 # This file is free software; the Free Software Foundation gives
9999 # unlimited permission to copy and/or distribute it, with or without
10000 # modifications, as long as this notice is preserved.
10002 # @configure_input@
10004 # serial 4179 ltversion.m4
10005 # This file is part of GNU Libtool
10007 m4_define([LT_PACKAGE_VERSION], [2.4.6])
10008 m4_define([LT_PACKAGE_REVISION], [2.4.6])
10010 AC_DEFUN([LTVERSION_VERSION],
10011 [macro_version='2.4.6'
10012 macro_revision='2.4.6'
10013 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10014 _LT_DECL(, macro_revision, 0)
10017 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10019 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
10021 # Written by Scott James Remnant, 2004.
10023 # This file is free software; the Free Software Foundation gives
10024 # unlimited permission to copy and/or distribute it, with or without
10025 # modifications, as long as this notice is preserved.
10027 # serial 5 lt~obsolete.m4
10029 # These exist entirely to fool aclocal when bootstrapping libtool.
10031 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
10032 # which have later been changed to m4_define as they aren't part of the
10033 # exported API, or moved to Autoconf or Automake where they belong.
10035 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10036 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10037 # using a macro with the same name in our local m4/libtool.m4 it'll
10038 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10039 # and doesn't know about Autoconf macros at all.)
10041 # So we provide this file, which has a silly filename so it's always
10042 # included after everything else. This provides aclocal with the
10043 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10044 # because those macros already exist, or will be overwritten later.
10045 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10047 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10048 # Yes, that means every name once taken will need to remain here until
10049 # we give up compatibility with versions before 1.7, at which point
10050 # we need to keep only those names which we still refer to.
10052 # This is to help aclocal find these macros, as it can't see m4_define.
10053 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10055 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10056 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10057 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10058 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10059 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10060 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10061 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10062 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10063 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10064 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10065 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10066 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10067 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10068 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10069 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10070 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10071 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10072 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10073 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10074 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10075 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10076 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10077 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10078 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10079 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10080 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10081 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10082 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10083 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10084 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10085 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10086 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10087 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10088 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10089 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10090 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10091 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10092 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10093 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10094 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10095 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10096 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10097 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10098 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10099 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10100 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10101 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10102 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10103 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10104 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10105 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10106 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10107 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10108 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
10109 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
10110 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
10111 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
10112 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
10113 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
10114 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
10115 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
10117 # Configure sysconftool
10118 # Copyright 2000-2005 Double Precision, Inc. See COPYING for
10119 # distribution information.
10121 # AC_PROG_SYSCONFTOOL
10123 AC_DEFUN([AC_PROG_SYSCONFTOOL],
10126 AC_PATH_PROGS(SYSCONFTOOL_PERL, perl5 perl, perl)
10128 if test "$SYSCONFTOOL_PERL" = "perl"
10130 AC_ERROR(perl not found - please install perl)
10133 AC_MSG_CHECKING(for sysconftool...)
10135 for sysconf_dir in $ac_aux_dir . .. ../..
10137 if test -f $srcdir/$sysconf_dir/sysconftool
10139 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
10144 if test "$SYSCONFTOOL" = ""
10146 AC_ERROR(sysconftool missing - not in the package)
10149 AC_MSG_RESULT( $SYSCONFTOOL)
10150 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
10151 AC_SUBST(SYSCONFTOOL)
10155 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
10157 # This file is free software; the Free Software Foundation
10158 # gives unlimited permission to copy and/or distribute it,
10159 # with or without modifications, as long as this notice is preserved.
10161 # AM_AUTOMAKE_VERSION(VERSION)
10162 # ----------------------------
10163 # Automake X.Y traces this macro to ensure aclocal.m4 has been
10164 # generated from the m4 files accompanying Automake X.Y.
10165 # (This private macro should not be called outside this file.)
10166 AC_DEFUN([AM_AUTOMAKE_VERSION],
10167 [am__api_version='1.15'
10168 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
10169 dnl require some minimum version. Point them to the right macro.
10170 m4_if([$1], [1.15.1], [],
10171 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
10174 # _AM_AUTOCONF_VERSION(VERSION)
10175 # -----------------------------
10176 # aclocal traces this macro to find the Autoconf version.
10177 # This is a private macro too. Using m4_define simplifies
10178 # the logic in aclocal, which can simply ignore this definition.
10179 m4_define([_AM_AUTOCONF_VERSION], [])
10181 # AM_SET_CURRENT_AUTOMAKE_VERSION
10182 # -------------------------------
10183 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
10184 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
10185 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
10186 [AM_AUTOMAKE_VERSION([1.15.1])dnl
10187 m4_ifndef([AC_AUTOCONF_VERSION],
10188 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
10189 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10191 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
10193 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10195 # This file is free software; the Free Software Foundation
10196 # gives unlimited permission to copy and/or distribute it,
10197 # with or without modifications, as long as this notice is preserved.
10199 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
10200 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
10201 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
10203 # Of course, Automake must honor this variable whenever it calls a
10204 # tool from the auxiliary directory. The problem is that $srcdir (and
10205 # therefore $ac_aux_dir as well) can be either absolute or relative,
10206 # depending on how configure is run. This is pretty annoying, since
10207 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
10208 # source directory, any form will work fine, but in subdirectories a
10209 # relative path needs to be adjusted first.
10211 # $ac_aux_dir/missing
10212 # fails when called from a subdirectory if $ac_aux_dir is relative
10213 # $top_srcdir/$ac_aux_dir/missing
10214 # fails if $ac_aux_dir is absolute,
10215 # fails when called from a subdirectory in a VPATH build with
10216 # a relative $ac_aux_dir
10218 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
10219 # are both prefixed by $srcdir. In an in-source build this is usually
10220 # harmless because $srcdir is '.', but things will broke when you
10221 # start a VPATH build or use an absolute $srcdir.
10223 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
10224 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
10225 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
10226 # and then we would define $MISSING as
10227 # MISSING="\${SHELL} $am_aux_dir/missing"
10228 # This will work as long as MISSING is not called from configure, because
10229 # unfortunately $(top_srcdir) has no meaning in configure.
10230 # However there are other variables, like CC, which are often used in
10231 # configure, and could therefore not use this "fixed" $ac_aux_dir.
10233 # Another solution, used here, is to always expand $ac_aux_dir to an
10234 # absolute PATH. The drawback is that using absolute paths prevent a
10235 # configured tree to be moved without reconfiguration.
10237 AC_DEFUN([AM_AUX_DIR_EXPAND],
10238 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
10239 # Expand $ac_aux_dir to an absolute path.
10240 am_aux_dir=`cd "$ac_aux_dir" && pwd`
10243 # AM_CONDITIONAL -*- Autoconf -*-
10245 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
10247 # This file is free software; the Free Software Foundation
10248 # gives unlimited permission to copy and/or distribute it,
10249 # with or without modifications, as long as this notice is preserved.
10251 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
10252 # -------------------------------------
10253 # Define a conditional.
10254 AC_DEFUN([AM_CONDITIONAL],
10255 [AC_PREREQ([2.52])dnl
10256 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
10257 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
10258 AC_SUBST([$1_TRUE])dnl
10259 AC_SUBST([$1_FALSE])dnl
10260 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
10261 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
10262 m4_define([_AM_COND_VALUE_$1], [$2])dnl
10270 AC_CONFIG_COMMANDS_PRE(
10271 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
10272 AC_MSG_ERROR([[conditional "$1" was never defined.
10273 Usually this means the macro was only invoked conditionally.]])
10276 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
10278 # This file is free software; the Free Software Foundation
10279 # gives unlimited permission to copy and/or distribute it,
10280 # with or without modifications, as long as this notice is preserved.
10283 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
10284 # written in clear, in which case automake, when reading aclocal.m4,
10285 # will think it sees a *use*, and therefore will trigger all it's
10286 # C support machinery. Also note that it means that autoscan, seeing
10287 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
10290 # _AM_DEPENDENCIES(NAME)
10291 # ----------------------
10292 # See how the compiler implements dependency checking.
10293 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
10294 # We try a few techniques and use that to set a single cache variable.
10296 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
10297 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
10298 # dependency, and given that the user is not expected to run this macro,
10299 # just rely on AC_PROG_CC.
10300 AC_DEFUN([_AM_DEPENDENCIES],
10301 [AC_REQUIRE([AM_SET_DEPDIR])dnl
10302 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
10303 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
10304 AC_REQUIRE([AM_DEP_TRACK])dnl
10306 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
10307 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
10308 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
10309 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
10310 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
10311 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
10312 [depcc="$$1" am_compiler_list=])
10314 AC_CACHE_CHECK([dependency style of $depcc],
10315 [am_cv_$1_dependencies_compiler_type],
10316 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10317 # We make a subdir and do the tests there. Otherwise we can end up
10318 # making bogus files that we don't know about and never remove. For
10319 # instance it was reported that on HP-UX the gcc test will end up
10320 # making a dummy file named 'D' -- because '-MD' means "put the output
10322 rm -rf conftest.dir
10324 # Copy depcomp to subdir because otherwise we won't find it if we're
10325 # using a relative directory.
10326 cp "$am_depcomp" conftest.dir
10328 # We will build objects and dependencies in a subdirectory because
10329 # it helps to detect inapplicable dependency modes. For instance
10330 # both Tru64's cc and ICC support -MD to output dependencies as a
10331 # side effect of compilation, but ICC will put the dependencies in
10332 # the current directory while Tru64 will put them in the object
10336 am_cv_$1_dependencies_compiler_type=none
10337 if test "$am_compiler_list" = ""; then
10338 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
10340 am__universal=false
10341 m4_case([$1], [CC],
10342 [case " $depcc " in #(
10343 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10346 [case " $depcc " in #(
10347 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10350 for depmode in $am_compiler_list; do
10351 # Setup a source with many dependencies, because some compilers
10352 # like to wrap large dependency lists on column 80 (with \), and
10353 # we should not choose a depcomp mode which is confused by this.
10355 # We need to recreate these files for each test, as the compiler may
10356 # overwrite some of them when testing with obscure command lines.
10357 # This happens at least with the AIX C compiler.
10359 for i in 1 2 3 4 5 6; do
10360 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10361 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10362 # Solaris 10 /bin/sh.
10363 echo '/* dummy */' > sub/conftst$i.h
10365 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10367 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10368 # mode. It turns out that the SunPro C++ compiler does not properly
10369 # handle '-M -o', and we need to detect this. Also, some Intel
10370 # versions had trouble with output in subdirs.
10371 am__obj=sub/conftest.${OBJEXT-o}
10372 am__minus_obj="-o $am__obj"
10375 # This depmode causes a compiler race in universal mode.
10376 test "$am__universal" = false || continue
10379 # After this tag, mechanisms are not by side-effect, so they'll
10380 # only be used when explicitly requested.
10381 if test "x$enable_dependency_tracking" = xyes; then
10387 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10388 # This compiler won't grok '-c -o', but also, the minuso test has
10389 # not run yet. These depmodes are late enough in the game, and
10390 # so weak that their functioning should not be impacted.
10391 am__obj=conftest.${OBJEXT-o}
10396 if depmode=$depmode \
10397 source=sub/conftest.c object=$am__obj \
10398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10399 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10400 >/dev/null 2>conftest.err &&
10401 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10403 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10405 # icc doesn't choke on unknown options, it will just issue warnings
10406 # or remarks (even with -Werror). So we grep stderr for any message
10407 # that says an option was ignored or not supported.
10408 # When given -MP, icc 7.0 and 7.1 complain thusly:
10409 # icc: Command line warning: ignoring option '-M'; no argument required
10410 # The diagnosis changed in icc 8.0:
10411 # icc: Command line remark: option '-MP' not supported
10412 if (grep 'ignoring option' conftest.err ||
10413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10414 am_cv_$1_dependencies_compiler_type=$depmode
10421 rm -rf conftest.dir
10423 am_cv_$1_dependencies_compiler_type=none
10426 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
10427 AM_CONDITIONAL([am__fastdep$1], [
10428 test "x$enable_dependency_tracking" != xno \
10429 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
10435 # Choose a directory name for dependency files.
10436 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
10437 AC_DEFUN([AM_SET_DEPDIR],
10438 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10439 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
10445 AC_DEFUN([AM_DEP_TRACK],
10446 [AC_ARG_ENABLE([dependency-tracking], [dnl
10448 [--enable-dependency-tracking],
10449 [do not reject slow dependency extractors])
10451 [--disable-dependency-tracking],
10452 [speeds up one-time build])])
10453 if test "x$enable_dependency_tracking" != xno; then
10454 am_depcomp="$ac_aux_dir/depcomp"
10458 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
10459 AC_SUBST([AMDEPBACKSLASH])dnl
10460 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10461 AC_SUBST([am__nodep])dnl
10462 _AM_SUBST_NOTMAKE([am__nodep])dnl
10465 # Generate code to set up dependency tracking. -*- Autoconf -*-
10467 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
10469 # This file is free software; the Free Software Foundation
10470 # gives unlimited permission to copy and/or distribute it,
10471 # with or without modifications, as long as this notice is preserved.
10474 # _AM_OUTPUT_DEPENDENCY_COMMANDS
10475 # ------------------------------
10476 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10478 # Older Autoconf quotes --file arguments for eval, but not when files
10479 # are listed without --file. Let's play safe and only enable the eval
10480 # if we detect the quoting.
10481 case $CONFIG_FILES in
10482 *\'*) eval set x "$CONFIG_FILES" ;;
10483 *) set x $CONFIG_FILES ;;
10488 # Strip MF so we end up with the name of the file.
10489 mf=`echo "$mf" | sed -e 's/:.*$//'`
10490 # Check whether this is an Automake generated Makefile or not.
10491 # We used to match only the files named 'Makefile.in', but
10492 # some people rename them; so instead we look at the file content.
10493 # Grep'ing the first line is not enough: some people post-process
10494 # each Makefile.in and add a new line on top of each file to say so.
10495 # Grep'ing the whole file is not good either: AIX grep has a line
10496 # limit of 2048, but all sed's we know have understand at least 4000.
10497 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10498 dirpart=`AS_DIRNAME("$mf")`
10502 # Extract the definition of DEPDIR, am__include, and am__quote
10503 # from the Makefile without running 'make'.
10504 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10505 test -z "$DEPDIR" && continue
10506 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10507 test -z "$am__include" && continue
10508 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10509 # Find all dependency output files, they are included files with
10510 # $(DEPDIR) in their names. We invoke sed twice because it is the
10511 # simplest approach to changing $(DEPDIR) to its actual value in the
10513 for file in `sed -n "
10514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10516 # Make sure the directory exists.
10517 test -f "$dirpart/$file" && continue
10518 fdir=`AS_DIRNAME(["$file"])`
10519 AS_MKDIR_P([$dirpart/$fdir])
10520 # echo "creating $dirpart/$file"
10521 echo '# dummy' > "$dirpart/$file"
10525 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10528 # AM_OUTPUT_DEPENDENCY_COMMANDS
10529 # -----------------------------
10530 # This macro should only be invoked once -- use via AC_REQUIRE.
10532 # This code is only required when automatic dependency tracking
10533 # is enabled. FIXME. This creates each '.P' file that we will
10534 # need in order to bootstrap the dependency handling code.
10535 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10536 [AC_CONFIG_COMMANDS([depfiles],
10537 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10538 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10541 # Do all the work for Automake. -*- Autoconf -*-
10543 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
10545 # This file is free software; the Free Software Foundation
10546 # gives unlimited permission to copy and/or distribute it,
10547 # with or without modifications, as long as this notice is preserved.
10549 # This macro actually does too much. Some checks are only needed if
10550 # your package does certain things. But this isn't really a big deal.
10552 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
10553 m4_define([AC_PROG_CC],
10554 m4_defn([AC_PROG_CC])
10558 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10559 # AM_INIT_AUTOMAKE([OPTIONS])
10560 # -----------------------------------------------
10561 # The call with PACKAGE and VERSION arguments is the old style
10562 # call (pre autoconf-2.50), which is being phased out. PACKAGE
10563 # and VERSION should now be passed to AC_INIT and removed from
10564 # the call to AM_INIT_AUTOMAKE.
10565 # We support both call styles for the transition. After
10566 # the next Automake release, Autoconf can make the AC_INIT
10567 # arguments mandatory, and then we can depend on a new Autoconf
10568 # release and drop the old call support.
10569 AC_DEFUN([AM_INIT_AUTOMAKE],
10570 [AC_PREREQ([2.65])dnl
10571 dnl Autoconf wants to disallow AM_ names. We explicitly allow
10572 dnl the ones we care about.
10573 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10574 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10575 AC_REQUIRE([AC_PROG_INSTALL])dnl
10576 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10577 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10578 # is not polluted with repeated "-I."
10579 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10580 # test to see if srcdir already configured
10581 if test -f $srcdir/config.status; then
10582 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10586 # test whether we have cygpath
10587 if test -z "$CYGPATH_W"; then
10588 if (cygpath --version) >/dev/null 2>/dev/null; then
10589 CYGPATH_W='cygpath -w'
10594 AC_SUBST([CYGPATH_W])
10596 # Define the identity of the package.
10597 dnl Distinguish between old-style and new-style calls.
10599 [AC_DIAGNOSE([obsolete],
10600 [$0: two- and three-arguments forms are deprecated.])
10601 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10602 AC_SUBST([PACKAGE], [$1])dnl
10603 AC_SUBST([VERSION], [$2])],
10604 [_AM_SET_OPTIONS([$1])dnl
10605 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10607 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10609 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10610 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10611 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10613 _AM_IF_OPTION([no-define],,
10614 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10615 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10617 # Some tools Automake needs.
10618 AC_REQUIRE([AM_SANITY_CHECK])dnl
10619 AC_REQUIRE([AC_ARG_PROGRAM])dnl
10620 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10621 AM_MISSING_PROG([AUTOCONF], [autoconf])
10622 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10623 AM_MISSING_PROG([AUTOHEADER], [autoheader])
10624 AM_MISSING_PROG([MAKEINFO], [makeinfo])
10625 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10626 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10627 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10628 # For better backward compatibility. To be removed once Automake 1.9.x
10629 # dies out for good. For more background, see:
10630 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10631 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10632 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10633 # We need awk for the "check" target (and possibly the TAP driver). The
10634 # system "awk" is bad on some platforms.
10635 AC_REQUIRE([AC_PROG_AWK])dnl
10636 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10637 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10638 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10639 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10640 [_AM_PROG_TAR([v7])])])
10641 _AM_IF_OPTION([no-dependencies],,
10642 [AC_PROVIDE_IFELSE([AC_PROG_CC],
10643 [_AM_DEPENDENCIES([CC])],
10644 [m4_define([AC_PROG_CC],
10645 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10646 AC_PROVIDE_IFELSE([AC_PROG_CXX],
10647 [_AM_DEPENDENCIES([CXX])],
10648 [m4_define([AC_PROG_CXX],
10649 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10650 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10651 [_AM_DEPENDENCIES([OBJC])],
10652 [m4_define([AC_PROG_OBJC],
10653 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10654 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10655 [_AM_DEPENDENCIES([OBJCXX])],
10656 [m4_define([AC_PROG_OBJCXX],
10657 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10659 AC_REQUIRE([AM_SILENT_RULES])dnl
10660 dnl The testsuite driver may need to know about EXEEXT, so add the
10661 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
10662 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10663 AC_CONFIG_COMMANDS_PRE(dnl
10664 [m4_provide_if([_AM_COMPILER_EXEEXT],
10665 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10667 # POSIX will say in a future version that running "rm -f" with no argument
10668 # is OK; and we want to be able to make that assumption in our Makefile
10669 # recipes. So use an aggressive probe to check that the usage we want is
10670 # actually supported "in the wild" to an acceptable degree.
10671 # See automake bug#10828.
10672 # To make any issue more visible, cause the running configure to be aborted
10673 # by default if the 'rm' program in use doesn't match our expectations; the
10674 # user can still override this though.
10675 if rm -f && rm -fr && rm -rf; then : OK; else
10679 Your 'rm' program seems unable to run without file operands specified
10680 on the command line, even when the '-f' option is present. This is contrary
10681 to the behaviour of most rm programs out there, and not conforming with
10682 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10684 Please tell bug-automake@gnu.org about your system, including the value
10685 of your $PATH and any error possibly output before this message. This
10686 can help us improve future automake versions.
10689 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10690 echo 'Configuration will proceed anyway, since you have set the' >&2
10691 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10695 Aborting the configuration process, to ensure you take notice of the issue.
10697 You can download and install GNU coreutils to get an 'rm' implementation
10698 that behaves properly: <http://www.gnu.org/software/coreutils/>.
10700 If you want to complete the configuration process using your problematic
10701 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10702 to "yes", and re-run configure.
10705 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10708 dnl The trailing newline in this macro's definition is deliberate, for
10709 dnl backward compatibility and to allow trailing 'dnl'-style comments
10710 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
10713 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10714 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10715 dnl mangled by Autoconf and run in a shell conditional statement.
10716 m4_define([_AC_COMPILER_EXEEXT],
10717 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10719 # When config.status generates a header, we must update the stamp-h file.
10720 # This file resides in the same directory as the config header
10721 # that is generated. The stamp files are numbered to have different names.
10723 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10724 # loop where config.status creates the headers, so we can generate
10725 # our stamp files there.
10726 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10727 [# Compute $1's index in $config_headers.
10730 for _am_header in $config_headers :; do
10731 case $_am_header in
10732 $_am_arg | $_am_arg:* )
10735 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10738 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10740 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10742 # This file is free software; the Free Software Foundation
10743 # gives unlimited permission to copy and/or distribute it,
10744 # with or without modifications, as long as this notice is preserved.
10746 # AM_PROG_INSTALL_SH
10747 # ------------------
10748 # Define $install_sh.
10749 AC_DEFUN([AM_PROG_INSTALL_SH],
10750 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10751 if test x"${install_sh+set}" != xset; then
10752 case $am_aux_dir in
10754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10756 install_sh="\${SHELL} $am_aux_dir/install-sh"
10759 AC_SUBST([install_sh])])
10761 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
10763 # This file is free software; the Free Software Foundation
10764 # gives unlimited permission to copy and/or distribute it,
10765 # with or without modifications, as long as this notice is preserved.
10767 # Check whether the underlying file-system supports filenames
10768 # with a leading dot. For instance MS-DOS doesn't.
10769 AC_DEFUN([AM_SET_LEADING_DOT],
10770 [rm -rf .tst 2>/dev/null
10771 mkdir .tst 2>/dev/null
10772 if test -d .tst; then
10777 rmdir .tst 2>/dev/null
10778 AC_SUBST([am__leading_dot])])
10780 # Check to see how 'make' treats includes. -*- Autoconf -*-
10782 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10784 # This file is free software; the Free Software Foundation
10785 # gives unlimited permission to copy and/or distribute it,
10786 # with or without modifications, as long as this notice is preserved.
10788 # AM_MAKE_INCLUDE()
10789 # -----------------
10790 # Check to see how make treats includes.
10791 AC_DEFUN([AM_MAKE_INCLUDE],
10792 [am_make=${MAKE-make}
10793 cat > confinc << 'END'
10795 @echo this is the am__doit target
10798 # If we don't find an include directive, just comment out the code.
10799 AC_MSG_CHECKING([for style of include used by $am_make])
10803 # First try GNU make style include.
10804 echo "include confinc" > confmf
10805 # Ignore all kinds of additional output from 'make'.
10806 case `$am_make -s -f confmf 2> /dev/null` in #(
10807 *the\ am__doit\ target*)
10808 am__include=include
10813 # Now try BSD make style include.
10814 if test "$am__include" = "#"; then
10815 echo '.include "confinc"' > confmf
10816 case `$am_make -s -f confmf 2> /dev/null` in #(
10817 *the\ am__doit\ target*)
10818 am__include=.include
10824 AC_SUBST([am__include])
10825 AC_SUBST([am__quote])
10826 AC_MSG_RESULT([$_am_result])
10827 rm -f confinc confmf
10830 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10832 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
10834 # This file is free software; the Free Software Foundation
10835 # gives unlimited permission to copy and/or distribute it,
10836 # with or without modifications, as long as this notice is preserved.
10838 # AM_MISSING_PROG(NAME, PROGRAM)
10839 # ------------------------------
10840 AC_DEFUN([AM_MISSING_PROG],
10841 [AC_REQUIRE([AM_MISSING_HAS_RUN])
10842 $1=${$1-"${am_missing_run}$2"}
10845 # AM_MISSING_HAS_RUN
10846 # ------------------
10847 # Define MISSING if not defined so far and test if it is modern enough.
10848 # If it is, set am_missing_run to use it, otherwise, to nothing.
10849 AC_DEFUN([AM_MISSING_HAS_RUN],
10850 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10851 AC_REQUIRE_AUX_FILE([missing])dnl
10852 if test x"${MISSING+set}" != xset; then
10853 case $am_aux_dir in
10855 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10857 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10860 # Use eval to expand $SHELL
10861 if eval "$MISSING --is-lightweight"; then
10862 am_missing_run="$MISSING "
10865 AC_MSG_WARN(['missing' script is too old or missing])
10869 # Helper functions for option handling. -*- Autoconf -*-
10871 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10873 # This file is free software; the Free Software Foundation
10874 # gives unlimited permission to copy and/or distribute it,
10875 # with or without modifications, as long as this notice is preserved.
10877 # _AM_MANGLE_OPTION(NAME)
10878 # -----------------------
10879 AC_DEFUN([_AM_MANGLE_OPTION],
10880 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10882 # _AM_SET_OPTION(NAME)
10883 # --------------------
10884 # Set option NAME. Presently that only means defining a flag for this option.
10885 AC_DEFUN([_AM_SET_OPTION],
10886 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10888 # _AM_SET_OPTIONS(OPTIONS)
10889 # ------------------------
10890 # OPTIONS is a space-separated list of Automake options.
10891 AC_DEFUN([_AM_SET_OPTIONS],
10892 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10894 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10895 # -------------------------------------------
10896 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10897 AC_DEFUN([_AM_IF_OPTION],
10898 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10900 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
10902 # This file is free software; the Free Software Foundation
10903 # gives unlimited permission to copy and/or distribute it,
10904 # with or without modifications, as long as this notice is preserved.
10908 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
10909 # to automatically call this.
10910 AC_DEFUN([_AM_PROG_CC_C_O],
10911 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10912 AC_REQUIRE_AUX_FILE([compile])dnl
10913 AC_LANG_PUSH([C])dnl
10915 [whether $CC understands -c and -o together],
10916 [am_cv_prog_cc_c_o],
10917 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10918 # Make sure it works both with $CC and with simple cc.
10919 # Following AC_PROG_CC_C_O, we do the test twice because some
10920 # compilers refuse to overwrite an existing .o file with -o,
10921 # though they will create one.
10922 am_cv_prog_cc_c_o=yes
10923 for am_i in 1 2; do
10924 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10925 && test -f conftest2.$ac_objext; then
10928 am_cv_prog_cc_c_o=no
10932 rm -f core conftest*
10934 if test "$am_cv_prog_cc_c_o" != yes; then
10935 # Losing compiler, so override with the script.
10936 # FIXME: It is wrong to rewrite CC.
10937 # But if we don't then we get into trouble of one sort or another.
10938 # A longer-term fix would be to have automake use am__CC in this case,
10939 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10940 CC="$am_aux_dir/compile $CC"
10944 # For backward compatibility.
10945 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10947 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
10949 # This file is free software; the Free Software Foundation
10950 # gives unlimited permission to copy and/or distribute it,
10951 # with or without modifications, as long as this notice is preserved.
10953 # AM_RUN_LOG(COMMAND)
10954 # -------------------
10955 # Run COMMAND, save the exit status in ac_status, and log it.
10956 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10957 AC_DEFUN([AM_RUN_LOG],
10958 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10959 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10962 (exit $ac_status); }])
10964 # Check to make sure that the build environment is sane. -*- Autoconf -*-
10966 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
10968 # This file is free software; the Free Software Foundation
10969 # gives unlimited permission to copy and/or distribute it,
10970 # with or without modifications, as long as this notice is preserved.
10974 AC_DEFUN([AM_SANITY_CHECK],
10975 [AC_MSG_CHECKING([whether build environment is sane])
10976 # Reject unsafe characters in $srcdir or the absolute working directory
10977 # name. Accept space and tab only in the latter.
10981 *[[\\\"\#\$\&\'\`$am_lf]]*)
10982 AC_MSG_ERROR([unsafe absolute working directory name]);;
10985 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10986 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10989 # Do 'set' in a subshell so we don't clobber the current shell's
10990 # arguments. Must try -L first in case configure is actually a
10991 # symlink; some systems play weird games with the mod time of symlinks
10992 # (eg FreeBSD returns the mod time of the symlink's containing
10996 for am_try in 1 2; do
10997 echo "timestamp, slept: $am_has_slept" > conftest.file
10998 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10999 if test "$[*]" = "X"; then
11001 set X `ls -t "$srcdir/configure" conftest.file`
11003 if test "$[*]" != "X $srcdir/configure conftest.file" \
11004 && test "$[*]" != "X conftest.file $srcdir/configure"; then
11006 # If neither matched, then we have a broken ls. This can happen
11007 # if, for instance, CONFIG_SHELL is bash and it inherits a
11008 # broken ls alias from the environment. This has actually
11009 # happened. Such a system could not be considered "sane".
11010 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
11011 alias in your environment])
11013 if test "$[2]" = conftest.file || test $am_try -eq 2; then
11020 test "$[2]" = conftest.file
11026 AC_MSG_ERROR([newly created file is older than distributed files!
11027 Check your system clock])
11029 AC_MSG_RESULT([yes])
11030 # If we didn't sleep, we still need to ensure time stamps of config.status and
11031 # generated files are strictly newer.
11033 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11037 AC_CONFIG_COMMANDS_PRE(
11038 [AC_MSG_CHECKING([that generated files are newer than configure])
11039 if test -n "$am_sleep_pid"; then
11040 # Hide warnings about reused PIDs.
11041 wait $am_sleep_pid 2>/dev/null
11043 AC_MSG_RESULT([done])])
11044 rm -f conftest.file
11047 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
11049 # This file is free software; the Free Software Foundation
11050 # gives unlimited permission to copy and/or distribute it,
11051 # with or without modifications, as long as this notice is preserved.
11053 # AM_SILENT_RULES([DEFAULT])
11054 # --------------------------
11055 # Enable less verbose build rules; with the default set to DEFAULT
11056 # ("yes" being less verbose, "no" or empty being verbose).
11057 AC_DEFUN([AM_SILENT_RULES],
11058 [AC_ARG_ENABLE([silent-rules], [dnl
11060 [--enable-silent-rules],
11061 [less verbose build output (undo: "make V=1")])
11063 [--disable-silent-rules],
11064 [verbose build output (undo: "make V=0")])dnl
11066 case $enable_silent_rules in @%:@ (((
11067 yes) AM_DEFAULT_VERBOSITY=0;;
11068 no) AM_DEFAULT_VERBOSITY=1;;
11069 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
11072 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
11073 dnl do not support nested variable expansions.
11074 dnl See automake bug#9928 and bug#10237.
11075 am_make=${MAKE-make}
11076 AC_CACHE_CHECK([whether $am_make supports nested variables],
11077 [am_cv_make_support_nested_variables],
11078 [if AS_ECHO([['TRUE=$(BAR$(V))
11084 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
11085 am_cv_make_support_nested_variables=yes
11087 am_cv_make_support_nested_variables=no
11089 if test $am_cv_make_support_nested_variables = yes; then
11090 dnl Using '$V' instead of '$(V)' breaks IRIX make.
11092 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11094 AM_V=$AM_DEFAULT_VERBOSITY
11095 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11097 AC_SUBST([AM_V])dnl
11098 AM_SUBST_NOTMAKE([AM_V])dnl
11099 AC_SUBST([AM_DEFAULT_V])dnl
11100 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
11101 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
11103 AC_SUBST([AM_BACKSLASH])dnl
11104 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11107 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
11109 # This file is free software; the Free Software Foundation
11110 # gives unlimited permission to copy and/or distribute it,
11111 # with or without modifications, as long as this notice is preserved.
11113 # AM_PROG_INSTALL_STRIP
11114 # ---------------------
11115 # One issue with vendor 'install' (even GNU) is that you can't
11116 # specify the program used to strip binaries. This is especially
11117 # annoying in cross-compiling environments, where the build's strip
11118 # is unlikely to handle the host's binaries.
11119 # Fortunately install-sh will honor a STRIPPROG variable, so we
11120 # always use install-sh in "make install-strip", and initialize
11121 # STRIPPROG with the value of the STRIP variable (set by the user).
11122 AC_DEFUN([AM_PROG_INSTALL_STRIP],
11123 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
11124 # Installed binaries are usually stripped using 'strip' when the user
11125 # run "make install-strip". However 'strip' might not be the right
11126 # tool to use in cross-compilation environments, therefore Automake
11127 # will honor the 'STRIP' environment variable to overrule this program.
11128 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
11129 if test "$cross_compiling" != no; then
11130 AC_CHECK_TOOL([STRIP], [strip], :)
11132 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11133 AC_SUBST([INSTALL_STRIP_PROGRAM])])
11135 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
11137 # This file is free software; the Free Software Foundation
11138 # gives unlimited permission to copy and/or distribute it,
11139 # with or without modifications, as long as this notice is preserved.
11141 # _AM_SUBST_NOTMAKE(VARIABLE)
11142 # ---------------------------
11143 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
11144 # This macro is traced by Automake.
11145 AC_DEFUN([_AM_SUBST_NOTMAKE])
11147 # AM_SUBST_NOTMAKE(VARIABLE)
11148 # --------------------------
11149 # Public sister of _AM_SUBST_NOTMAKE.
11150 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
11152 # Check how to create a tarball. -*- Autoconf -*-
11154 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
11156 # This file is free software; the Free Software Foundation
11157 # gives unlimited permission to copy and/or distribute it,
11158 # with or without modifications, as long as this notice is preserved.
11160 # _AM_PROG_TAR(FORMAT)
11161 # --------------------
11162 # Check how to create a tarball in format FORMAT.
11163 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
11165 # Substitute a variable $(am__tar) that is a command
11166 # writing to stdout a FORMAT-tarball containing the directory
11168 # tardir=directory && $(am__tar) > result.tar
11170 # Substitute a variable $(am__untar) that extract such
11171 # a tarball read from stdin.
11172 # $(am__untar) < result.tar
11174 AC_DEFUN([_AM_PROG_TAR],
11175 [# Always define AMTAR for backward compatibility. Yes, it's still used
11176 # in the wild :-( We should find a proper way to deprecate it ...
11177 AC_SUBST([AMTAR], ['$${TAR-tar}'])
11179 # We'll loop over all known methods to create a tar archive until one works.
11180 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
11183 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
11187 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
11188 # There is notably a 21 bits limit for the UID and the GID. In fact,
11189 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
11191 am_max_uid=2097151 # 2^21 - 1
11192 am_max_gid=$am_max_uid
11193 # The $UID and $GID variables are not portable, so we need to resort
11194 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
11195 # below are definitely unexpected, so allow the users to see them
11196 # (that is, avoid stderr redirection).
11197 am_uid=`id -u || echo unknown`
11198 am_gid=`id -g || echo unknown`
11199 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
11200 if test $am_uid -le $am_max_uid; then
11201 AC_MSG_RESULT([yes])
11203 AC_MSG_RESULT([no])
11206 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
11207 if test $am_gid -le $am_max_gid; then
11208 AC_MSG_RESULT([yes])
11210 AC_MSG_RESULT([no])
11217 [m4_fatal([Unknown tar format])])
11219 AC_MSG_CHECKING([how to create a $1 tar archive])
11221 # Go ahead even if we have the value already cached. We do so because we
11222 # need to set the values for the 'am__tar' and 'am__untar' variables.
11223 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
11225 for _am_tool in $_am_tools; do
11228 for _am_tar in tar gnutar gtar; do
11229 AM_RUN_LOG([$_am_tar --version]) && break
11231 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
11232 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
11233 am__untar="$_am_tar -xf -"
11236 # Must skip GNU tar: if it does not support --format= it doesn't create
11237 # ustar tarball either.
11238 (tar --version) >/dev/null 2>&1 && continue
11239 am__tar='tar chf - "$$tardir"'
11240 am__tar_='tar chf - "$tardir"'
11241 am__untar='tar xf -'
11244 am__tar='pax -L -x $1 -w "$$tardir"'
11245 am__tar_='pax -L -x $1 -w "$tardir"'
11249 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
11250 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
11251 am__untar='cpio -i -H $1 -d'
11260 # If the value was cached, stop now. We just wanted to have am__tar
11261 # and am__untar set.
11262 test -n "${am_cv_prog_tar_$1}" && break
11264 # tar/untar a dummy directory, and stop if the command works.
11265 rm -rf conftest.dir
11267 echo GrepMe > conftest.dir/file
11268 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
11269 rm -rf conftest.dir
11270 if test -s conftest.tar; then
11271 AM_RUN_LOG([$am__untar <conftest.tar])
11272 AM_RUN_LOG([cat conftest.dir/file])
11273 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
11276 rm -rf conftest.dir
11278 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
11279 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
11281 AC_SUBST([am__tar])
11282 AC_SUBST([am__untar])