lzo: update to 2.09
[tomato.git] / release / src / router / lzo / aclocal.m4
blob9db4ce90b8f38a3d1523f629b15e30e33588fffc
1 # generated automatically by aclocal 1.15 -*- Autoconf -*-
3 # Copyright (C) 1996-2014 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
12 # PARTICULAR PURPOSE.
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 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
25 #   Copyright (C) 1996-2001, 2003-2013 Free Software Foundation, Inc.
26 #   Written by Gordon Matzigkeit, 1996
28 # This file is free software; the Free Software Foundation gives
29 # unlimited permission to copy and/or distribute it, with or without
30 # modifications, as long as this notice is preserved.
32 m4_define([_LT_COPYING], [dnl
33 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
35 #                 Foundation, Inc.
36 #   Written by Gordon Matzigkeit, 1996
38 #   This file is part of GNU Libtool.
40 # GNU Libtool is free software; you can redistribute it and/or
41 # modify it under the terms of the GNU General Public License as
42 # published by the Free Software Foundation; either version 2 of
43 # the License, or (at your option) any later version.
45 # As a special exception to the GNU General Public License,
46 # if you distribute this file as part of a program or library that
47 # is built using GNU Libtool, you may include this file under the
48 # same distribution terms that you use for the rest of that program.
50 # GNU Libtool is distributed in the hope that it will be useful,
51 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53 # GNU General Public License for more details.
55 # You should have received a copy of the GNU General Public License
56 # along with GNU Libtool; see the file COPYING.  If not, a copy
57 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
58 # obtained by writing to the Free Software Foundation, Inc.,
59 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
62 # serial 58 LT_INIT
65 # LT_PREREQ(VERSION)
66 # ------------------
67 # Complain and exit if this libtool version is less that VERSION.
68 m4_defun([LT_PREREQ],
69 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
70        [m4_default([$3],
71                    [m4_fatal([Libtool version $1 or higher is required],
72                              63)])],
73        [$2])])
76 # _LT_CHECK_BUILDDIR
77 # ------------------
78 # Complain if the absolute build directory name contains unusual characters
79 m4_defun([_LT_CHECK_BUILDDIR],
80 [case `pwd` in
81   *\ * | *\     *)
82     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
83 esac
87 # LT_INIT([OPTIONS])
88 # ------------------
89 AC_DEFUN([LT_INIT],
90 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
91 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
92 AC_BEFORE([$0], [LT_LANG])dnl
93 AC_BEFORE([$0], [LT_OUTPUT])dnl
94 AC_BEFORE([$0], [LTDL_INIT])dnl
95 m4_require([_LT_CHECK_BUILDDIR])dnl
97 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
98 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
99 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
100 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
101 dnl unless we require an AC_DEFUNed macro:
102 AC_REQUIRE([LTOPTIONS_VERSION])dnl
103 AC_REQUIRE([LTSUGAR_VERSION])dnl
104 AC_REQUIRE([LTVERSION_VERSION])dnl
105 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
106 m4_require([_LT_PROG_LTMAIN])dnl
108 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
110 dnl Parse OPTIONS
111 _LT_SET_OPTIONS([$0], [$1])
113 # This can be used to rebuild libtool when needed
114 LIBTOOL_DEPS=$ltmain
116 # Always use our own libtool.
117 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
118 AC_SUBST(LIBTOOL)dnl
120 _LT_SETUP
122 # Only expand once:
123 m4_define([LT_INIT])
124 ])# LT_INIT
126 # Old names:
127 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
128 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
129 dnl aclocal-1.4 backwards compatibility:
130 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
131 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
134 # _LT_CC_BASENAME(CC)
135 # -------------------
136 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
137 m4_defun([_LT_CC_BASENAME],
138 [for cc_temp in $1""; do
139   case $cc_temp in
140     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
141     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
142     \-*) ;;
143     *) break;;
144   esac
145 done
146 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
150 # _LT_FILEUTILS_DEFAULTS
151 # ----------------------
152 # It is okay to use these file commands and assume they have been set
153 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
154 m4_defun([_LT_FILEUTILS_DEFAULTS],
155 [: ${CP="cp -f"}
156 : ${MV="mv -f"}
157 : ${RM="rm -f"}
158 ])# _LT_FILEUTILS_DEFAULTS
161 # _LT_SETUP
162 # ---------
163 m4_defun([_LT_SETUP],
164 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
165 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
166 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
167 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 _LT_DECL([], [host_alias], [0], [The host system])dnl
172 _LT_DECL([], [host], [0])dnl
173 _LT_DECL([], [host_os], [0])dnl
175 _LT_DECL([], [build_alias], [0], [The build system])dnl
176 _LT_DECL([], [build], [0])dnl
177 _LT_DECL([], [build_os], [0])dnl
179 AC_REQUIRE([AC_PROG_CC])dnl
180 AC_REQUIRE([LT_PATH_LD])dnl
181 AC_REQUIRE([LT_PATH_NM])dnl
183 AC_REQUIRE([AC_PROG_LN_S])dnl
184 test -z "$LN_S" && LN_S="ln -s"
185 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
187 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
188 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
189 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
191 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
192 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
193 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
194 m4_require([_LT_CMD_RELOAD])dnl
195 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
196 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
197 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
198 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
199 m4_require([_LT_WITH_SYSROOT])dnl
201 _LT_CONFIG_LIBTOOL_INIT([
202 # See if we are running on zsh, and set the options that allow our
203 # commands through without removal of \ escapes INIT.
204 if test -n "\${ZSH_VERSION+set}"; then
205    setopt NO_GLOB_SUBST
208 if test -n "${ZSH_VERSION+set}"; then
209    setopt NO_GLOB_SUBST
212 _LT_CHECK_OBJDIR
214 m4_require([_LT_TAG_COMPILER])dnl
216 case $host_os in
217 aix3*)
218   # AIX sometimes has problems with the GCC collect2 program.  For some
219   # reason, if we set the COLLECT_NAMES environment variable, the problems
220   # vanish in a puff of smoke.
221   if test set != "${COLLECT_NAMES+set}"; then
222     COLLECT_NAMES=
223     export COLLECT_NAMES
224   fi
225   ;;
226 esac
228 # Global variables:
229 ofile=libtool
230 can_build_shared=yes
232 # All known linkers require a '.a' archive for static linking (except MSVC,
233 # which needs '.lib').
234 libext=a
236 with_gnu_ld=$lt_cv_prog_gnu_ld
238 old_CC=$CC
239 old_CFLAGS=$CFLAGS
241 # Set sane defaults for various variables
242 test -z "$CC" && CC=cc
243 test -z "$LTCC" && LTCC=$CC
244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
245 test -z "$LD" && LD=ld
246 test -z "$ac_objext" && ac_objext=o
248 _LT_CC_BASENAME([$compiler])
250 # Only perform the check for file, if the check method requires it
251 test -z "$MAGIC_CMD" && MAGIC_CMD=file
252 case $deplibs_check_method in
253 file_magic*)
254   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
255     _LT_PATH_MAGIC
256   fi
257   ;;
258 esac
260 # Use C for the default configuration in the libtool script
261 LT_SUPPORTED_TAG([CC])
262 _LT_LANG_C_CONFIG
263 _LT_LANG_DEFAULT_CONFIG
264 _LT_CONFIG_COMMANDS
265 ])# _LT_SETUP
268 # _LT_PREPARE_SED_QUOTE_VARS
269 # --------------------------
270 # Define a few sed substitution that help us do robust quoting.
271 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
272 [# Backslashify metacharacters that are still active within
273 # double-quoted strings.
274 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276 # Same as above, but do not quote variable references.
277 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279 # Sed substitution to delay expansion of an escaped shell variable in a
280 # double_quote_subst'ed string.
281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283 # Sed substitution to delay expansion of an escaped single quote.
284 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286 # Sed substitution to avoid accidental globbing in evaled expressions
287 no_glob_subst='s/\*/\\\*/g'
290 # _LT_PROG_LTMAIN
291 # ---------------
292 # Note that this code is called both from 'configure', and 'config.status'
293 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
294 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
295 # so we pass a copy along to make sure it has a sensible value anyway.
296 m4_defun([_LT_PROG_LTMAIN],
297 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
298 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
299 ltmain=$ac_aux_dir/ltmain.sh
300 ])# _LT_PROG_LTMAIN
304 # So that we can recreate a full libtool script including additional
305 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
306 # in macros and then make a single call at the end using the 'libtool'
307 # label.
310 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
311 # ----------------------------------------
312 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
313 m4_define([_LT_CONFIG_LIBTOOL_INIT],
314 [m4_ifval([$1],
315           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
316                      [$1
317 ])])])
319 # Initialize.
320 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
323 # _LT_CONFIG_LIBTOOL([COMMANDS])
324 # ------------------------------
325 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
326 m4_define([_LT_CONFIG_LIBTOOL],
327 [m4_ifval([$1],
328           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
329                      [$1
330 ])])])
332 # Initialize.
333 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
336 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
337 # -----------------------------------------------------
338 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
339 [_LT_CONFIG_LIBTOOL([$1])
340 _LT_CONFIG_LIBTOOL_INIT([$2])
344 # _LT_FORMAT_COMMENT([COMMENT])
345 # -----------------------------
346 # Add leading comment marks to the start of each line, and a trailing
347 # full-stop to the whole comment if one is not present already.
348 m4_define([_LT_FORMAT_COMMENT],
349 [m4_ifval([$1], [
350 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
351               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
358 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
359 # -------------------------------------------------------------------
360 # CONFIGNAME is the name given to the value in the libtool script.
361 # VARNAME is the (base) name used in the configure script.
362 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
363 # VARNAME.  Any other value will be used directly.
364 m4_define([_LT_DECL],
365 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
366     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
367         [m4_ifval([$1], [$1], [$2])])
368     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
369     m4_ifval([$4],
370         [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
371     lt_dict_add_subkey([lt_decl_dict], [$2],
372         [tagged?], [m4_ifval([$5], [yes], [no])])])
376 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
377 # --------------------------------------------------------
378 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
381 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
382 # ------------------------------------------------
383 m4_define([lt_decl_tag_varnames],
384 [_lt_decl_filter([tagged?], [yes], $@)])
387 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
388 # ---------------------------------------------------------
389 m4_define([_lt_decl_filter],
390 [m4_case([$#],
391   [0], [m4_fatal([$0: too few arguments: $#])],
392   [1], [m4_fatal([$0: too few arguments: $#: $1])],
393   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
394   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
395   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
399 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
400 # --------------------------------------------------
401 m4_define([lt_decl_quote_varnames],
402 [_lt_decl_filter([value], [1], $@)])
405 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
406 # ---------------------------------------------------
407 m4_define([lt_decl_dquote_varnames],
408 [_lt_decl_filter([value], [2], $@)])
411 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
412 # ---------------------------------------------------
413 m4_define([lt_decl_varnames_tagged],
414 [m4_assert([$# <= 2])dnl
415 _$0(m4_quote(m4_default([$1], [[, ]])),
416     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
417     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
418 m4_define([_lt_decl_varnames_tagged],
419 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
422 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
423 # ------------------------------------------------
424 m4_define([lt_decl_all_varnames],
425 [_$0(m4_quote(m4_default([$1], [[, ]])),
426      m4_if([$2], [],
427            m4_quote(lt_decl_varnames),
428         m4_quote(m4_shift($@))))[]dnl
430 m4_define([_lt_decl_all_varnames],
431 [lt_join($@, lt_decl_varnames_tagged([$1],
432                         lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
436 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
437 # ------------------------------------
438 # Quote a variable value, and forward it to 'config.status' so that its
439 # declaration there will have the same value as in 'configure'.  VARNAME
440 # must have a single quote delimited value for this to work.
441 m4_define([_LT_CONFIG_STATUS_DECLARE],
442 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
445 # _LT_CONFIG_STATUS_DECLARATIONS
446 # ------------------------------
447 # We delimit libtool config variables with single quotes, so when
448 # we write them to config.status, we have to be sure to quote all
449 # embedded single quotes properly.  In configure, this macro expands
450 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
452 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
453 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
454 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
455     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
458 # _LT_LIBTOOL_TAGS
459 # ----------------
460 # Output comment and list of tags supported by the script
461 m4_defun([_LT_LIBTOOL_TAGS],
462 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
463 available_tags='_LT_TAGS'dnl
467 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
468 # -----------------------------------
469 # Extract the dictionary values for VARNAME (optionally with TAG) and
470 # expand to a commented shell variable setting:
472 #    # Some comment about what VAR is for.
473 #    visible_name=$lt_internal_name
474 m4_define([_LT_LIBTOOL_DECLARE],
475 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
476                                            [description])))[]dnl
477 m4_pushdef([_libtool_name],
478     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
479 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
480     [0], [_libtool_name=[$]$1],
481     [1], [_libtool_name=$lt_[]$1],
482     [2], [_libtool_name=$lt_[]$1],
483     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
484 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
488 # _LT_LIBTOOL_CONFIG_VARS
489 # -----------------------
490 # Produce commented declarations of non-tagged libtool config variables
491 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
492 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
493 # section) are produced by _LT_LIBTOOL_TAG_VARS.
494 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
495 [m4_foreach([_lt_var],
496     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
497     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
500 # _LT_LIBTOOL_TAG_VARS(TAG)
501 # -------------------------
502 m4_define([_LT_LIBTOOL_TAG_VARS],
503 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
504     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
507 # _LT_TAGVAR(VARNAME, [TAGNAME])
508 # ------------------------------
509 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
512 # _LT_CONFIG_COMMANDS
513 # -------------------
514 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
515 # variables for single and double quote escaping we saved from calls
516 # to _LT_DECL, we can put quote escaped variables declarations
517 # into 'config.status', and then the shell code to quote escape them in
518 # for loops in 'config.status'.  Finally, any additional code accumulated
519 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
520 m4_defun([_LT_CONFIG_COMMANDS],
521 [AC_PROVIDE_IFELSE([LT_OUTPUT],
522         dnl If the libtool generation code has been placed in $CONFIG_LT,
523         dnl instead of duplicating it all over again into config.status,
524         dnl then we will have config.status run $CONFIG_LT later, so it
525         dnl needs to know what name is stored there:
526         [AC_CONFIG_COMMANDS([libtool],
527             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
528     dnl If the libtool generation code is destined for config.status,
529     dnl expand the accumulated commands and init code now:
530     [AC_CONFIG_COMMANDS([libtool],
531         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
532 ])#_LT_CONFIG_COMMANDS
535 # Initialize.
536 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
539 # The HP-UX ksh and POSIX shell print the target directory to stdout
540 # if CDPATH is set.
541 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
543 sed_quote_subst='$sed_quote_subst'
544 double_quote_subst='$double_quote_subst'
545 delay_variable_subst='$delay_variable_subst'
546 _LT_CONFIG_STATUS_DECLARATIONS
547 LTCC='$LTCC'
548 LTCFLAGS='$LTCFLAGS'
549 compiler='$compiler_DEFAULT'
551 # A function that is used when there is no print builtin or printf.
552 func_fallback_echo ()
554   eval 'cat <<_LTECHO_EOF
555 \$[]1
556 _LTECHO_EOF'
559 # Quote evaled strings.
560 for var in lt_decl_all_varnames([[ \
561 ]], lt_decl_quote_varnames); do
562     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
563     *[[\\\\\\\`\\"\\\$]]*)
564       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
565       ;;
566     *)
567       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
568       ;;
569     esac
570 done
572 # Double-quote double-evaled strings.
573 for var in lt_decl_all_varnames([[ \
574 ]], lt_decl_dquote_varnames); do
575     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
576     *[[\\\\\\\`\\"\\\$]]*)
577       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
578       ;;
579     *)
580       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
581       ;;
582     esac
583 done
585 _LT_OUTPUT_LIBTOOL_INIT
588 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
589 # ------------------------------------
590 # Generate a child script FILE with all initialization necessary to
591 # reuse the environment learned by the parent script, and make the
592 # file executable.  If COMMENT is supplied, it is inserted after the
593 # '#!' sequence but before initialization text begins.  After this
594 # macro, additional text can be appended to FILE to form the body of
595 # the child script.  The macro ends with non-zero status if the
596 # file could not be fully written (such as if the disk is full).
597 m4_ifdef([AS_INIT_GENERATED],
598 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
599 [m4_defun([_LT_GENERATED_FILE_INIT],
600 [m4_require([AS_PREPARE])]dnl
601 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
602 [lt_write_fail=0
603 cat >$1 <<_ASEOF || lt_write_fail=1
604 #! $SHELL
605 # Generated by $as_me.
607 SHELL=\${CONFIG_SHELL-$SHELL}
608 export SHELL
609 _ASEOF
610 cat >>$1 <<\_ASEOF || lt_write_fail=1
611 AS_SHELL_SANITIZE
612 _AS_PREPARE
613 exec AS_MESSAGE_FD>&1
614 _ASEOF
615 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
616 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
618 # LT_OUTPUT
619 # ---------
620 # This macro allows early generation of the libtool script (before
621 # AC_OUTPUT is called), incase it is used in configure for compilation
622 # tests.
623 AC_DEFUN([LT_OUTPUT],
624 [: ${CONFIG_LT=./config.lt}
625 AC_MSG_NOTICE([creating $CONFIG_LT])
626 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
627 [# Run this file to recreate a libtool stub with the current configuration.])
629 cat >>"$CONFIG_LT" <<\_LTEOF
630 lt_cl_silent=false
631 exec AS_MESSAGE_LOG_FD>>config.log
633   echo
634   AS_BOX([Running $as_me.])
635 } >&AS_MESSAGE_LOG_FD
637 lt_cl_help="\
638 '$as_me' creates a local libtool stub from the current configuration,
639 for use in further configure time tests before the real libtool is
640 generated.
642 Usage: $[0] [[OPTIONS]]
644   -h, --help      print this help, then exit
645   -V, --version   print version number, then exit
646   -q, --quiet     do not print progress messages
647   -d, --debug     don't remove temporary files
649 Report bugs to <bug-libtool@gnu.org>."
651 lt_cl_version="\
652 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
653 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
654 configured by $[0], generated by m4_PACKAGE_STRING.
656 Copyright (C) 2011 Free Software Foundation, Inc.
657 This config.lt script is free software; the Free Software Foundation
658 gives unlimited permision to copy, distribute and modify it."
660 while test 0 != $[#]
662   case $[1] in
663     --version | --v* | -V )
664       echo "$lt_cl_version"; exit 0 ;;
665     --help | --h* | -h )
666       echo "$lt_cl_help"; exit 0 ;;
667     --debug | --d* | -d )
668       debug=: ;;
669     --quiet | --q* | --silent | --s* | -q )
670       lt_cl_silent=: ;;
672     -*) AC_MSG_ERROR([unrecognized option: $[1]
673 Try '$[0] --help' for more information.]) ;;
675     *) AC_MSG_ERROR([unrecognized argument: $[1]
676 Try '$[0] --help' for more information.]) ;;
677   esac
678   shift
679 done
681 if $lt_cl_silent; then
682   exec AS_MESSAGE_FD>/dev/null
684 _LTEOF
686 cat >>"$CONFIG_LT" <<_LTEOF
687 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
688 _LTEOF
690 cat >>"$CONFIG_LT" <<\_LTEOF
691 AC_MSG_NOTICE([creating $ofile])
692 _LT_OUTPUT_LIBTOOL_COMMANDS
693 AS_EXIT(0)
694 _LTEOF
695 chmod +x "$CONFIG_LT"
697 # configure is writing to config.log, but config.lt does its own redirection,
698 # appending to config.log, which fails on DOS, as config.log is still kept
699 # open by configure.  Here we exec the FD to /dev/null, effectively closing
700 # config.log, so it can be properly (re)opened and appended to by config.lt.
701 lt_cl_success=:
702 test yes = "$silent" &&
703   lt_config_lt_args="$lt_config_lt_args --quiet"
704 exec AS_MESSAGE_LOG_FD>/dev/null
705 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
706 exec AS_MESSAGE_LOG_FD>>config.log
707 $lt_cl_success || AS_EXIT(1)
708 ])# LT_OUTPUT
711 # _LT_CONFIG(TAG)
712 # ---------------
713 # If TAG is the built-in tag, create an initial libtool script with a
714 # default configuration from the untagged config vars.  Otherwise add code
715 # to config.status for appending the configuration named by TAG from the
716 # matching tagged config vars.
717 m4_defun([_LT_CONFIG],
718 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
719 _LT_CONFIG_SAVE_COMMANDS([
720   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
721   m4_if(_LT_TAG, [C], [
722     # See if we are running on zsh, and set the options that allow our
723     # commands through without removal of \ escapes.
724     if test -n "${ZSH_VERSION+set}"; then
725       setopt NO_GLOB_SUBST
726     fi
728     cfgfile=${ofile}T
729     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
730     $RM "$cfgfile"
732     cat <<_LT_EOF >> "$cfgfile"
733 #! $SHELL
735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
736 # Generated automatically by $as_me ($PACKAGE) $VERSION
737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
740 _LT_COPYING
741 _LT_LIBTOOL_TAGS
743 # ### BEGIN LIBTOOL CONFIG
744 _LT_LIBTOOL_CONFIG_VARS
745 _LT_LIBTOOL_TAG_VARS
746 # ### END LIBTOOL CONFIG
748 _LT_EOF
750   case $host_os in
751   aix3*)
752     cat <<\_LT_EOF >> "$cfgfile"
753 # AIX sometimes has problems with the GCC collect2 program.  For some
754 # reason, if we set the COLLECT_NAMES environment variable, the problems
755 # vanish in a puff of smoke.
756 if test set != "${COLLECT_NAMES+set}"; then
757   COLLECT_NAMES=
758   export COLLECT_NAMES
760 _LT_EOF
761     ;;
762   esac
764   _LT_PROG_LTMAIN
766   # We use sed instead of cat because bash on DJGPP gets confused if
767   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
768   # text mode, it properly converts lines to CR/LF.  This bash problem
769   # is reportedly fixed, but why not run on old versions too?
770   sed '$q' "$ltmain" >> "$cfgfile" \
771      || (rm -f "$cfgfile"; exit 1)
773    mv -f "$cfgfile" "$ofile" ||
774     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
775   chmod +x "$ofile"
777 [cat <<_LT_EOF >> "$ofile"
779 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
780 dnl in a comment (ie after a #).
781 # ### BEGIN LIBTOOL TAG CONFIG: $1
782 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
783 # ### END LIBTOOL TAG CONFIG: $1
784 _LT_EOF
785 ])dnl /m4_if
787 [m4_if([$1], [], [
788     PACKAGE='$PACKAGE'
789     VERSION='$VERSION'
790     RM='$RM'
791     ofile='$ofile'], [])
792 ])dnl /_LT_CONFIG_SAVE_COMMANDS
793 ])# _LT_CONFIG
796 # LT_SUPPORTED_TAG(TAG)
797 # ---------------------
798 # Trace this macro to discover what tags are supported by the libtool
799 # --tag option, using:
800 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
801 AC_DEFUN([LT_SUPPORTED_TAG], [])
804 # C support is built-in for now
805 m4_define([_LT_LANG_C_enabled], [])
806 m4_define([_LT_TAGS], [])
809 # LT_LANG(LANG)
810 # -------------
811 # Enable libtool support for the given language if not already enabled.
812 AC_DEFUN([LT_LANG],
813 [AC_BEFORE([$0], [LT_OUTPUT])dnl
814 m4_case([$1],
815   [C],                  [_LT_LANG(C)],
816   [C++],                [_LT_LANG(CXX)],
817   [Go],                 [_LT_LANG(GO)],
818   [Java],               [_LT_LANG(GCJ)],
819   [Fortran 77],         [_LT_LANG(F77)],
820   [Fortran],            [_LT_LANG(FC)],
821   [Windows Resource],   [_LT_LANG(RC)],
822   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
823     [_LT_LANG($1)],
824     [m4_fatal([$0: unsupported language: "$1"])])])dnl
825 ])# LT_LANG
828 # _LT_LANG(LANGNAME)
829 # ------------------
830 m4_defun([_LT_LANG],
831 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
832   [LT_SUPPORTED_TAG([$1])dnl
833   m4_append([_LT_TAGS], [$1 ])dnl
834   m4_define([_LT_LANG_]$1[_enabled], [])dnl
835   _LT_LANG_$1_CONFIG($1)])dnl
836 ])# _LT_LANG
839 m4_ifndef([AC_PROG_GO], [
840 # NOTE: This macro has been submitted for inclusion into   #
841 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
842 #  a released version of Autoconf we should remove this    #
843 #  macro and use it instead.                               #
844 m4_defun([AC_PROG_GO],
845 [AC_LANG_PUSH(Go)dnl
846 AC_ARG_VAR([GOC],     [Go compiler command])dnl
847 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
848 _AC_ARG_VAR_LDFLAGS()dnl
849 AC_CHECK_TOOL(GOC, gccgo)
850 if test -z "$GOC"; then
851   if test -n "$ac_tool_prefix"; then
852     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
853   fi
855 if test -z "$GOC"; then
856   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
858 ])#m4_defun
859 ])#m4_ifndef
862 # _LT_LANG_DEFAULT_CONFIG
863 # -----------------------
864 m4_defun([_LT_LANG_DEFAULT_CONFIG],
865 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
866   [LT_LANG(CXX)],
867   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
869 AC_PROVIDE_IFELSE([AC_PROG_F77],
870   [LT_LANG(F77)],
871   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
873 AC_PROVIDE_IFELSE([AC_PROG_FC],
874   [LT_LANG(FC)],
875   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
877 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
878 dnl pulling things in needlessly.
879 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
880   [LT_LANG(GCJ)],
881   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
882     [LT_LANG(GCJ)],
883     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
884       [LT_LANG(GCJ)],
885       [m4_ifdef([AC_PROG_GCJ],
886         [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
887        m4_ifdef([A][M_PROG_GCJ],
888         [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
889        m4_ifdef([LT_PROG_GCJ],
890         [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
892 AC_PROVIDE_IFELSE([AC_PROG_GO],
893   [LT_LANG(GO)],
894   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
896 AC_PROVIDE_IFELSE([LT_PROG_RC],
897   [LT_LANG(RC)],
898   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
899 ])# _LT_LANG_DEFAULT_CONFIG
901 # Obsolete macros:
902 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
903 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
904 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
905 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
906 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
907 dnl aclocal-1.4 backwards compatibility:
908 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
909 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
910 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
911 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
912 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
915 # _LT_TAG_COMPILER
916 # ----------------
917 m4_defun([_LT_TAG_COMPILER],
918 [AC_REQUIRE([AC_PROG_CC])dnl
920 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
921 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
922 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
923 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
925 # If no C compiler was specified, use CC.
926 LTCC=${LTCC-"$CC"}
928 # If no C compiler flags were specified, use CFLAGS.
929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
931 # Allow CC to be a program name with arguments.
932 compiler=$CC
933 ])# _LT_TAG_COMPILER
936 # _LT_COMPILER_BOILERPLATE
937 # ------------------------
938 # Check for compiler boilerplate output or warnings with
939 # the simple compiler test code.
940 m4_defun([_LT_COMPILER_BOILERPLATE],
941 [m4_require([_LT_DECL_SED])dnl
942 ac_outfile=conftest.$ac_objext
943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
945 _lt_compiler_boilerplate=`cat conftest.err`
946 $RM conftest*
947 ])# _LT_COMPILER_BOILERPLATE
950 # _LT_LINKER_BOILERPLATE
951 # ----------------------
952 # Check for linker boilerplate output or warnings with
953 # the simple link test code.
954 m4_defun([_LT_LINKER_BOILERPLATE],
955 [m4_require([_LT_DECL_SED])dnl
956 ac_outfile=conftest.$ac_objext
957 echo "$lt_simple_link_test_code" >conftest.$ac_ext
958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
959 _lt_linker_boilerplate=`cat conftest.err`
960 $RM -r conftest*
961 ])# _LT_LINKER_BOILERPLATE
963 # _LT_REQUIRED_DARWIN_CHECKS
964 # -------------------------
965 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
966   case $host_os in
967     rhapsody* | darwin*)
968     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
969     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
970     AC_CHECK_TOOL([LIPO], [lipo], [:])
971     AC_CHECK_TOOL([OTOOL], [otool], [:])
972     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
973     _LT_DECL([], [DSYMUTIL], [1],
974       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
975     _LT_DECL([], [NMEDIT], [1],
976       [Tool to change global to local symbols on Mac OS X])
977     _LT_DECL([], [LIPO], [1],
978       [Tool to manipulate fat objects and archives on Mac OS X])
979     _LT_DECL([], [OTOOL], [1],
980       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
981     _LT_DECL([], [OTOOL64], [1],
982       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
984     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
985       [lt_cv_apple_cc_single_mod=no
986       if test -z "$LT_MULTI_MODULE"; then
987         # By default we will add the -single_module flag. You can override
988         # by either setting the environment variable LT_MULTI_MODULE
989         # non-empty at configure time, or by adding -multi_module to the
990         # link flags.
991         rm -rf libconftest.dylib*
992         echo "int foo(void){return 1;}" > conftest.c
993         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
994 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
995         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
996           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
997         _lt_result=$?
998         # If there is a non-empty error log, and "single_module"
999         # appears in it, assume the flag caused a linker warning
1000         if test -s conftest.err && $GREP single_module conftest.err; then
1001           cat conftest.err >&AS_MESSAGE_LOG_FD
1002         # Otherwise, if the output was created with a 0 exit code from
1003         # the compiler, it worked.
1004         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1005           lt_cv_apple_cc_single_mod=yes
1006         else
1007           cat conftest.err >&AS_MESSAGE_LOG_FD
1008         fi
1009         rm -rf libconftest.dylib*
1010         rm -f conftest.*
1011       fi])
1013     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1014       [lt_cv_ld_exported_symbols_list],
1015       [lt_cv_ld_exported_symbols_list=no
1016       save_LDFLAGS=$LDFLAGS
1017       echo "_main" > conftest.sym
1018       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1019       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1020         [lt_cv_ld_exported_symbols_list=yes],
1021         [lt_cv_ld_exported_symbols_list=no])
1022         LDFLAGS=$save_LDFLAGS
1023     ])
1025     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1026       [lt_cv_ld_force_load=no
1027       cat > conftest.c << _LT_EOF
1028 int forced_loaded() { return 2;}
1029 _LT_EOF
1030       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1031       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1032       echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1033       $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1034       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1035       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1036       cat > conftest.c << _LT_EOF
1037 int main() { return 0;}
1038 _LT_EOF
1039       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1040       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1041       _lt_result=$?
1042       if test -s conftest.err && $GREP force_load conftest.err; then
1043         cat conftest.err >&AS_MESSAGE_LOG_FD
1044       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1045         lt_cv_ld_force_load=yes
1046       else
1047         cat conftest.err >&AS_MESSAGE_LOG_FD
1048       fi
1049         rm -f conftest.err libconftest.a conftest conftest.c
1050         rm -rf conftest.dSYM
1051     ])
1052     case $host_os in
1053     rhapsody* | darwin1.[[012]])
1054       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1055     darwin1.*)
1056       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1057     darwin*) # darwin 5.x on
1058       # if running on 10.5 or later, the deployment target defaults
1059       # to the OS version, if on x86, and 10.4, the deployment
1060       # target defaults to 10.4. Don't you love it?
1061       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1062         10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1063           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1064         10.[[012]]*)
1065           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1066         10.*)
1067           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1068       esac
1069     ;;
1070   esac
1071     if test yes = "$lt_cv_apple_cc_single_mod"; then
1072       _lt_dar_single_mod='$single_module'
1073     fi
1074     if test yes = "$lt_cv_ld_exported_symbols_list"; then
1075       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1076     else
1077       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1078     fi
1079     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1080       _lt_dsymutil='~$DSYMUTIL $lib || :'
1081     else
1082       _lt_dsymutil=
1083     fi
1084     ;;
1085   esac
1089 # _LT_DARWIN_LINKER_FEATURES([TAG])
1090 # ---------------------------------
1091 # Checks for linker and compiler features on darwin
1092 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1094   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1095   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1096   _LT_TAGVAR(hardcode_direct, $1)=no
1097   _LT_TAGVAR(hardcode_automatic, $1)=yes
1098   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1099   if test yes = "$lt_cv_ld_force_load"; then
1100     _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\"`'
1101     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1102                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1103   else
1104     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1105   fi
1106   _LT_TAGVAR(link_all_deplibs, $1)=yes
1107   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1108   case $cc_basename in
1109      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1110      *) _lt_dar_can_shared=$GCC ;;
1111   esac
1112   if test yes = "$_lt_dar_can_shared"; then
1113     output_verbose_link_cmd=func_echo_all
1114     _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"
1115     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1116     _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"
1117     _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"
1118     m4_if([$1], [CXX],
1119 [   if test yes != "$lt_cv_apple_cc_single_mod"; then
1120       _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"
1121       _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"
1122     fi
1123 ],[])
1124   else
1125   _LT_TAGVAR(ld_shlibs, $1)=no
1126   fi
1129 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1130 # ----------------------------------
1131 # Links a minimal program and checks the executable
1132 # for the system default hardcoded library path. In most cases,
1133 # this is /usr/lib:/lib, but when the MPI compilers are used
1134 # the location of the communication and MPI libs are included too.
1135 # If we don't find anything, use the default library path according
1136 # to the aix ld manual.
1137 # Store the results from the different compilers for each TAGNAME.
1138 # Allow to override them for all tags through lt_cv_aix_libpath.
1139 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1140 [m4_require([_LT_DECL_SED])dnl
1141 if test set = "${lt_cv_aix_libpath+set}"; then
1142   aix_libpath=$lt_cv_aix_libpath
1143 else
1144   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1145   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1146   lt_aix_libpath_sed='[
1147       /Import File Strings/,/^$/ {
1148           /^0/ {
1149               s/^0  *\([^ ]*\) *$/\1/
1150               p
1151           }
1152       }]'
1153   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1154   # Check for a 64-bit object if we didn't find anything.
1155   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1156     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1157   fi],[])
1158   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1159     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1160   fi
1161   ])
1162   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1164 ])# _LT_SYS_MODULE_PATH_AIX
1167 # _LT_SHELL_INIT(ARG)
1168 # -------------------
1169 m4_define([_LT_SHELL_INIT],
1170 [m4_divert_text([M4SH-INIT], [$1
1171 ])])# _LT_SHELL_INIT
1175 # _LT_PROG_ECHO_BACKSLASH
1176 # -----------------------
1177 # Find how we can fake an echo command that does not interpret backslash.
1178 # In particular, with Autoconf 2.60 or later we add some code to the start
1179 # of the generated configure script that will find a shell with a builtin
1180 # printf (that we can use as an echo command).
1181 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1182 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1186 AC_MSG_CHECKING([how to print strings])
1187 # Test print first, because it will be a builtin if present.
1188 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1189    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1190   ECHO='print -r --'
1191 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1192   ECHO='printf %s\n'
1193 else
1194   # Use this function as a fallback that always works.
1195   func_fallback_echo ()
1196   {
1197     eval 'cat <<_LTECHO_EOF
1198 $[]1
1199 _LTECHO_EOF'
1200   }
1201   ECHO='func_fallback_echo'
1204 # func_echo_all arg...
1205 # Invoke $ECHO with all args, space-separated.
1206 func_echo_all ()
1208     $ECHO "$*"
1211 case $ECHO in
1212   printf*) AC_MSG_RESULT([printf]) ;;
1213   print*) AC_MSG_RESULT([print -r]) ;;
1214   *) AC_MSG_RESULT([cat]) ;;
1215 esac
1217 m4_ifdef([_AS_DETECT_SUGGESTED],
1218 [_AS_DETECT_SUGGESTED([
1219   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1220     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1221     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1222     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1223     PATH=/empty FPATH=/empty; export PATH FPATH
1224     test "X`printf %s $ECHO`" = "X$ECHO" \
1225       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1227 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1228 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1229 ])# _LT_PROG_ECHO_BACKSLASH
1232 # _LT_WITH_SYSROOT
1233 # ----------------
1234 AC_DEFUN([_LT_WITH_SYSROOT],
1235 [AC_MSG_CHECKING([for sysroot])
1236 AC_ARG_WITH([sysroot],
1237 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1238   [Search for dependent libraries within DIR (or the compiler's sysroot
1239    if not specified).])],
1240 [], [with_sysroot=no])
1242 dnl lt_sysroot will always be passed unquoted.  We quote it here
1243 dnl in case the user passed a directory name.
1244 lt_sysroot=
1245 case $with_sysroot in #(
1246  yes)
1247    if test yes = "$GCC"; then
1248      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1249    fi
1250    ;; #(
1251  /*)
1252    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1253    ;; #(
1254  no|'')
1255    ;; #(
1256  *)
1257    AC_MSG_RESULT([$with_sysroot])
1258    AC_MSG_ERROR([The sysroot must be an absolute path.])
1259    ;;
1260 esac
1262  AC_MSG_RESULT([${lt_sysroot:-no}])
1263 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1264 [dependent libraries, and where our libraries should be installed.])])
1266 # _LT_ENABLE_LOCK
1267 # ---------------
1268 m4_defun([_LT_ENABLE_LOCK],
1269 [AC_ARG_ENABLE([libtool-lock],
1270   [AS_HELP_STRING([--disable-libtool-lock],
1271     [avoid locking (might break parallel builds)])])
1272 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1274 # Some flags need to be propagated to the compiler or linker for good
1275 # libtool support.
1276 case $host in
1277 ia64-*-hpux*)
1278   # Find out what ABI is being produced by ac_compile, and set mode
1279   # options accordingly.
1280   echo 'int i;' > conftest.$ac_ext
1281   if AC_TRY_EVAL(ac_compile); then
1282     case `/usr/bin/file conftest.$ac_objext` in
1283       *ELF-32*)
1284         HPUX_IA64_MODE=32
1285         ;;
1286       *ELF-64*)
1287         HPUX_IA64_MODE=64
1288         ;;
1289     esac
1290   fi
1291   rm -rf conftest*
1292   ;;
1293 *-*-irix6*)
1294   # Find out what ABI is being produced by ac_compile, and set linker
1295   # options accordingly.
1296   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1297   if AC_TRY_EVAL(ac_compile); then
1298     if test yes = "$lt_cv_prog_gnu_ld"; then
1299       case `/usr/bin/file conftest.$ac_objext` in
1300         *32-bit*)
1301           LD="${LD-ld} -melf32bsmip"
1302           ;;
1303         *N32*)
1304           LD="${LD-ld} -melf32bmipn32"
1305           ;;
1306         *64-bit*)
1307           LD="${LD-ld} -melf64bmip"
1308         ;;
1309       esac
1310     else
1311       case `/usr/bin/file conftest.$ac_objext` in
1312         *32-bit*)
1313           LD="${LD-ld} -32"
1314           ;;
1315         *N32*)
1316           LD="${LD-ld} -n32"
1317           ;;
1318         *64-bit*)
1319           LD="${LD-ld} -64"
1320           ;;
1321       esac
1322     fi
1323   fi
1324   rm -rf conftest*
1325   ;;
1327 mips64*-*linux*)
1328   # Find out what ABI is being produced by ac_compile, and set linker
1329   # options accordingly.
1330   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1331   if AC_TRY_EVAL(ac_compile); then
1332     emul=elf
1333     case `/usr/bin/file conftest.$ac_objext` in
1334       *32-bit*)
1335         emul="${emul}32"
1336         ;;
1337       *64-bit*)
1338         emul="${emul}64"
1339         ;;
1340     esac
1341     case `/usr/bin/file conftest.$ac_objext` in
1342       *MSB*)
1343         emul="${emul}btsmip"
1344         ;;
1345       *LSB*)
1346         emul="${emul}ltsmip"
1347         ;;
1348     esac
1349     case `/usr/bin/file conftest.$ac_objext` in
1350       *N32*)
1351         emul="${emul}n32"
1352         ;;
1353     esac
1354     LD="${LD-ld} -m $emul"
1355   fi
1356   rm -rf conftest*
1357   ;;
1359 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1360 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1361   # Find out what ABI is being produced by ac_compile, and set linker
1362   # options accordingly.  Note that the listed cases only cover the
1363   # situations where additional linker options are needed (such as when
1364   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1365   # vice versa); the common cases where no linker options are needed do
1366   # not appear in the list.
1367   echo 'int i;' > conftest.$ac_ext
1368   if AC_TRY_EVAL(ac_compile); then
1369     case `/usr/bin/file conftest.o` in
1370       *32-bit*)
1371         case $host in
1372           x86_64-*kfreebsd*-gnu)
1373             LD="${LD-ld} -m elf_i386_fbsd"
1374             ;;
1375           x86_64-*linux*)
1376             case `/usr/bin/file conftest.o` in
1377               *x86-64*)
1378                 LD="${LD-ld} -m elf32_x86_64"
1379                 ;;
1380               *)
1381                 LD="${LD-ld} -m elf_i386"
1382                 ;;
1383             esac
1384             ;;
1385           powerpc64le-*linux*)
1386             LD="${LD-ld} -m elf32lppclinux"
1387             ;;
1388           powerpc64-*linux*)
1389             LD="${LD-ld} -m elf32ppclinux"
1390             ;;
1391           s390x-*linux*)
1392             LD="${LD-ld} -m elf_s390"
1393             ;;
1394           sparc64-*linux*)
1395             LD="${LD-ld} -m elf32_sparc"
1396             ;;
1397         esac
1398         ;;
1399       *64-bit*)
1400         case $host in
1401           x86_64-*kfreebsd*-gnu)
1402             LD="${LD-ld} -m elf_x86_64_fbsd"
1403             ;;
1404           x86_64-*linux*)
1405             LD="${LD-ld} -m elf_x86_64"
1406             ;;
1407           powerpcle-*linux*)
1408             LD="${LD-ld} -m elf64lppc"
1409             ;;
1410           powerpc-*linux*)
1411             LD="${LD-ld} -m elf64ppc"
1412             ;;
1413           s390*-*linux*|s390*-*tpf*)
1414             LD="${LD-ld} -m elf64_s390"
1415             ;;
1416           sparc*-*linux*)
1417             LD="${LD-ld} -m elf64_sparc"
1418             ;;
1419         esac
1420         ;;
1421     esac
1422   fi
1423   rm -rf conftest*
1424   ;;
1426 *-*-sco3.2v5*)
1427   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1428   SAVE_CFLAGS=$CFLAGS
1429   CFLAGS="$CFLAGS -belf"
1430   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1431     [AC_LANG_PUSH(C)
1432      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1433      AC_LANG_POP])
1434   if test yes != "$lt_cv_cc_needs_belf"; then
1435     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1436     CFLAGS=$SAVE_CFLAGS
1437   fi
1438   ;;
1439 *-*solaris*)
1440   # Find out what ABI is being produced by ac_compile, and set linker
1441   # options accordingly.
1442   echo 'int i;' > conftest.$ac_ext
1443   if AC_TRY_EVAL(ac_compile); then
1444     case `/usr/bin/file conftest.o` in
1445     *64-bit*)
1446       case $lt_cv_prog_gnu_ld in
1447       yes*)
1448         case $host in
1449         i?86-*-solaris*|x86_64-*-solaris*)
1450           LD="${LD-ld} -m elf_x86_64"
1451           ;;
1452         sparc*-*-solaris*)
1453           LD="${LD-ld} -m elf64_sparc"
1454           ;;
1455         esac
1456         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
1457         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1458           LD=${LD-ld}_sol2
1459         fi
1460         ;;
1461       *)
1462         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1463           LD="${LD-ld} -64"
1464         fi
1465         ;;
1466       esac
1467       ;;
1468     esac
1469   fi
1470   rm -rf conftest*
1471   ;;
1472 esac
1474 need_locks=$enable_libtool_lock
1475 ])# _LT_ENABLE_LOCK
1478 # _LT_PROG_AR
1479 # -----------
1480 m4_defun([_LT_PROG_AR],
1481 [AC_CHECK_TOOLS(AR, [ar], false)
1482 : ${AR=ar}
1483 : ${AR_FLAGS=cru}
1484 _LT_DECL([], [AR], [1], [The archiver])
1485 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1487 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1488   [lt_cv_ar_at_file=no
1489    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1490      [echo conftest.$ac_objext > conftest.lst
1491       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1492       AC_TRY_EVAL([lt_ar_try])
1493       if test 0 -eq "$ac_status"; then
1494         # Ensure the archiver fails upon bogus file names.
1495         rm -f conftest.$ac_objext libconftest.a
1496         AC_TRY_EVAL([lt_ar_try])
1497         if test 0 -ne "$ac_status"; then
1498           lt_cv_ar_at_file=@
1499         fi
1500       fi
1501       rm -f conftest.* libconftest.a
1502      ])
1503   ])
1505 if test no = "$lt_cv_ar_at_file"; then
1506   archiver_list_spec=
1507 else
1508   archiver_list_spec=$lt_cv_ar_at_file
1510 _LT_DECL([], [archiver_list_spec], [1],
1511   [How to feed a file listing to the archiver])
1512 ])# _LT_PROG_AR
1515 # _LT_CMD_OLD_ARCHIVE
1516 # -------------------
1517 m4_defun([_LT_CMD_OLD_ARCHIVE],
1518 [_LT_PROG_AR
1520 AC_CHECK_TOOL(STRIP, strip, :)
1521 test -z "$STRIP" && STRIP=:
1522 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1524 AC_CHECK_TOOL(RANLIB, ranlib, :)
1525 test -z "$RANLIB" && RANLIB=:
1526 _LT_DECL([], [RANLIB], [1],
1527     [Commands used to install an old-style archive])
1529 # Determine commands to create old-style static archives.
1530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1531 old_postinstall_cmds='chmod 644 $oldlib'
1532 old_postuninstall_cmds=
1534 if test -n "$RANLIB"; then
1535   case $host_os in
1536   bitrig* | openbsd*)
1537     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1538     ;;
1539   *)
1540     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1541     ;;
1542   esac
1543   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1546 case $host_os in
1547   darwin*)
1548     lock_old_archive_extraction=yes ;;
1549   *)
1550     lock_old_archive_extraction=no ;;
1551 esac
1552 _LT_DECL([], [old_postinstall_cmds], [2])
1553 _LT_DECL([], [old_postuninstall_cmds], [2])
1554 _LT_TAGDECL([], [old_archive_cmds], [2],
1555     [Commands used to build an old-style archive])
1556 _LT_DECL([], [lock_old_archive_extraction], [0],
1557     [Whether to use a lock for old archive extraction])
1558 ])# _LT_CMD_OLD_ARCHIVE
1561 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1562 #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1563 # ----------------------------------------------------------------
1564 # Check whether the given compiler option works
1565 AC_DEFUN([_LT_COMPILER_OPTION],
1566 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1567 m4_require([_LT_DECL_SED])dnl
1568 AC_CACHE_CHECK([$1], [$2],
1569   [$2=no
1570    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1571    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1572    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
1573    # Insert the option either (1) after the last *FLAGS variable, or
1574    # (2) before a word containing "conftest.", or (3) at the end.
1575    # Note that $ac_compile itself does not contain backslashes and begins
1576    # with a dollar sign (not a hyphen), so the echo should work correctly.
1577    # The option is referenced via a variable to avoid confusing sed.
1578    lt_compile=`echo "$ac_compile" | $SED \
1579    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1580    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1581    -e 's:$: $lt_compiler_flag:'`
1582    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1583    (eval "$lt_compile" 2>conftest.err)
1584    ac_status=$?
1585    cat conftest.err >&AS_MESSAGE_LOG_FD
1586    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1587    if (exit $ac_status) && test -s "$ac_outfile"; then
1588      # The compiler can only warn and ignore the option if not recognized
1589      # So say no if there are warnings other than the usual output.
1590      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1591      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1592      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1593        $2=yes
1594      fi
1595    fi
1596    $RM conftest*
1599 if test yes = "[$]$2"; then
1600     m4_if([$5], , :, [$5])
1601 else
1602     m4_if([$6], , :, [$6])
1604 ])# _LT_COMPILER_OPTION
1606 # Old name:
1607 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1608 dnl aclocal-1.4 backwards compatibility:
1609 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1612 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1613 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
1614 # ----------------------------------------------------
1615 # Check whether the given linker option works
1616 AC_DEFUN([_LT_LINKER_OPTION],
1617 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1618 m4_require([_LT_DECL_SED])dnl
1619 AC_CACHE_CHECK([$1], [$2],
1620   [$2=no
1621    save_LDFLAGS=$LDFLAGS
1622    LDFLAGS="$LDFLAGS $3"
1623    echo "$lt_simple_link_test_code" > conftest.$ac_ext
1624    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1625      # The linker can only warn and ignore the option if not recognized
1626      # So say no if there are warnings
1627      if test -s conftest.err; then
1628        # Append any errors to the config.log.
1629        cat conftest.err 1>&AS_MESSAGE_LOG_FD
1630        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1631        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1632        if diff conftest.exp conftest.er2 >/dev/null; then
1633          $2=yes
1634        fi
1635      else
1636        $2=yes
1637      fi
1638    fi
1639    $RM -r conftest*
1640    LDFLAGS=$save_LDFLAGS
1643 if test yes = "[$]$2"; then
1644     m4_if([$4], , :, [$4])
1645 else
1646     m4_if([$5], , :, [$5])
1648 ])# _LT_LINKER_OPTION
1650 # Old name:
1651 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1652 dnl aclocal-1.4 backwards compatibility:
1653 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1656 # LT_CMD_MAX_LEN
1657 #---------------
1658 AC_DEFUN([LT_CMD_MAX_LEN],
1659 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1660 # find the maximum length of command line arguments
1661 AC_MSG_CHECKING([the maximum length of command line arguments])
1662 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1663   i=0
1664   teststring=ABCD
1666   case $build_os in
1667   msdosdjgpp*)
1668     # On DJGPP, this test can blow up pretty badly due to problems in libc
1669     # (any single argument exceeding 2000 bytes causes a buffer overrun
1670     # during glob expansion).  Even if it were fixed, the result of this
1671     # check would be larger than it should be.
1672     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1673     ;;
1675   gnu*)
1676     # Under GNU Hurd, this test is not required because there is
1677     # no limit to the length of command line arguments.
1678     # Libtool will interpret -1 as no limit whatsoever
1679     lt_cv_sys_max_cmd_len=-1;
1680     ;;
1682   cygwin* | mingw* | cegcc*)
1683     # On Win9x/ME, this test blows up -- it succeeds, but takes
1684     # about 5 minutes as the teststring grows exponentially.
1685     # Worse, since 9x/ME are not pre-emptively multitasking,
1686     # you end up with a "frozen" computer, even though with patience
1687     # the test eventually succeeds (with a max line length of 256k).
1688     # Instead, let's just punt: use the minimum linelength reported by
1689     # all of the supported platforms: 8192 (on NT/2K/XP).
1690     lt_cv_sys_max_cmd_len=8192;
1691     ;;
1693   mint*)
1694     # On MiNT this can take a long time and run out of memory.
1695     lt_cv_sys_max_cmd_len=8192;
1696     ;;
1698   amigaos*)
1699     # On AmigaOS with pdksh, this test takes hours, literally.
1700     # So we just punt and use a minimum line length of 8192.
1701     lt_cv_sys_max_cmd_len=8192;
1702     ;;
1704   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1705     # This has been around since 386BSD, at least.  Likely further.
1706     if test -x /sbin/sysctl; then
1707       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1708     elif test -x /usr/sbin/sysctl; then
1709       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1710     else
1711       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1712     fi
1713     # And add a safety zone
1714     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1715     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1716     ;;
1718   interix*)
1719     # We know the value 262144 and hardcode it with a safety zone (like BSD)
1720     lt_cv_sys_max_cmd_len=196608
1721     ;;
1723   os2*)
1724     # The test takes a long time on OS/2.
1725     lt_cv_sys_max_cmd_len=8192
1726     ;;
1728   osf*)
1729     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1730     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1731     # nice to cause kernel panics so lets avoid the loop below.
1732     # First set a reasonable default.
1733     lt_cv_sys_max_cmd_len=16384
1734     #
1735     if test -x /sbin/sysconfig; then
1736       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1737         *1*) lt_cv_sys_max_cmd_len=-1 ;;
1738       esac
1739     fi
1740     ;;
1741   sco3.2v5*)
1742     lt_cv_sys_max_cmd_len=102400
1743     ;;
1744   sysv5* | sco5v6* | sysv4.2uw2*)
1745     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1746     if test -n "$kargmax"; then
1747       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1748     else
1749       lt_cv_sys_max_cmd_len=32768
1750     fi
1751     ;;
1752   *)
1753     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1754     if test -n "$lt_cv_sys_max_cmd_len" && \
1755        test undefined != "$lt_cv_sys_max_cmd_len"; then
1756       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1757       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1758     else
1759       # Make teststring a little bigger before we do anything with it.
1760       # a 1K string should be a reasonable start.
1761       for i in 1 2 3 4 5 6 7 8; do
1762         teststring=$teststring$teststring
1763       done
1764       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1765       # If test is not a shell built-in, we'll probably end up computing a
1766       # maximum length that is only half of the actual maximum length, but
1767       # we can't tell.
1768       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1769                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1770               test 17 != "$i" # 1/2 MB should be enough
1771       do
1772         i=`expr $i + 1`
1773         teststring=$teststring$teststring
1774       done
1775       # Only check the string length outside the loop.
1776       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1777       teststring=
1778       # Add a significant safety factor because C++ compilers can tack on
1779       # massive amounts of additional arguments before passing them to the
1780       # linker.  It appears as though 1/2 is a usable value.
1781       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1782     fi
1783     ;;
1784   esac
1786 if test -n "$lt_cv_sys_max_cmd_len"; then
1787   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1788 else
1789   AC_MSG_RESULT(none)
1791 max_cmd_len=$lt_cv_sys_max_cmd_len
1792 _LT_DECL([], [max_cmd_len], [0],
1793     [What is the maximum length of a command?])
1794 ])# LT_CMD_MAX_LEN
1796 # Old name:
1797 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1798 dnl aclocal-1.4 backwards compatibility:
1799 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1802 # _LT_HEADER_DLFCN
1803 # ----------------
1804 m4_defun([_LT_HEADER_DLFCN],
1805 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1806 ])# _LT_HEADER_DLFCN
1809 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1810 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1811 # ----------------------------------------------------------------
1812 m4_defun([_LT_TRY_DLOPEN_SELF],
1813 [m4_require([_LT_HEADER_DLFCN])dnl
1814 if test yes = "$cross_compiling"; then :
1815   [$4]
1816 else
1817   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1818   lt_status=$lt_dlunknown
1819   cat > conftest.$ac_ext <<_LT_EOF
1820 [#line $LINENO "configure"
1821 #include "confdefs.h"
1823 #if HAVE_DLFCN_H
1824 #include <dlfcn.h>
1825 #endif
1827 #include <stdio.h>
1829 #ifdef RTLD_GLOBAL
1830 #  define LT_DLGLOBAL           RTLD_GLOBAL
1831 #else
1832 #  ifdef DL_GLOBAL
1833 #    define LT_DLGLOBAL         DL_GLOBAL
1834 #  else
1835 #    define LT_DLGLOBAL         0
1836 #  endif
1837 #endif
1839 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1840    find out it does not work in some platform. */
1841 #ifndef LT_DLLAZY_OR_NOW
1842 #  ifdef RTLD_LAZY
1843 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
1844 #  else
1845 #    ifdef DL_LAZY
1846 #      define LT_DLLAZY_OR_NOW          DL_LAZY
1847 #    else
1848 #      ifdef RTLD_NOW
1849 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
1850 #      else
1851 #        ifdef DL_NOW
1852 #          define LT_DLLAZY_OR_NOW      DL_NOW
1853 #        else
1854 #          define LT_DLLAZY_OR_NOW      0
1855 #        endif
1856 #      endif
1857 #    endif
1858 #  endif
1859 #endif
1861 /* When -fvisbility=hidden is used, assume the code has been annotated
1862    correspondingly for the symbols needed.  */
1863 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1864 int fnord () __attribute__((visibility("default")));
1865 #endif
1867 int fnord () { return 42; }
1868 int main ()
1870   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1871   int status = $lt_dlunknown;
1873   if (self)
1874     {
1875       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1876       else
1877         {
1878           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1879           else puts (dlerror ());
1880         }
1881       /* dlclose (self); */
1882     }
1883   else
1884     puts (dlerror ());
1886   return status;
1888 _LT_EOF
1889   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1890     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1891     lt_status=$?
1892     case x$lt_status in
1893       x$lt_dlno_uscore) $1 ;;
1894       x$lt_dlneed_uscore) $2 ;;
1895       x$lt_dlunknown|x*) $3 ;;
1896     esac
1897   else :
1898     # compilation failed
1899     $3
1900   fi
1902 rm -fr conftest*
1903 ])# _LT_TRY_DLOPEN_SELF
1906 # LT_SYS_DLOPEN_SELF
1907 # ------------------
1908 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1909 [m4_require([_LT_HEADER_DLFCN])dnl
1910 if test yes != "$enable_dlopen"; then
1911   enable_dlopen=unknown
1912   enable_dlopen_self=unknown
1913   enable_dlopen_self_static=unknown
1914 else
1915   lt_cv_dlopen=no
1916   lt_cv_dlopen_libs=
1918   case $host_os in
1919   beos*)
1920     lt_cv_dlopen=load_add_on
1921     lt_cv_dlopen_libs=
1922     lt_cv_dlopen_self=yes
1923     ;;
1925   mingw* | pw32* | cegcc*)
1926     lt_cv_dlopen=LoadLibrary
1927     lt_cv_dlopen_libs=
1928     ;;
1930   cygwin*)
1931     lt_cv_dlopen=dlopen
1932     lt_cv_dlopen_libs=
1933     ;;
1935   darwin*)
1936     # if libdl is installed we need to link against it
1937     AC_CHECK_LIB([dl], [dlopen],
1938                 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1939     lt_cv_dlopen=dyld
1940     lt_cv_dlopen_libs=
1941     lt_cv_dlopen_self=yes
1942     ])
1943     ;;
1945   tpf*)
1946     # Don't try to run any link tests for TPF.  We know it's impossible
1947     # because TPF is a cross-compiler, and we know how we open DSOs.
1948     lt_cv_dlopen=dlopen
1949     lt_cv_dlopen_libs=
1950     lt_cv_dlopen_self=no
1951     ;;
1953   *)
1954     AC_CHECK_FUNC([shl_load],
1955           [lt_cv_dlopen=shl_load],
1956       [AC_CHECK_LIB([dld], [shl_load],
1957             [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1958         [AC_CHECK_FUNC([dlopen],
1959               [lt_cv_dlopen=dlopen],
1960           [AC_CHECK_LIB([dl], [dlopen],
1961                 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1962             [AC_CHECK_LIB([svld], [dlopen],
1963                   [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1964               [AC_CHECK_LIB([dld], [dld_link],
1965                     [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
1966               ])
1967             ])
1968           ])
1969         ])
1970       ])
1971     ;;
1972   esac
1974   if test no = "$lt_cv_dlopen"; then
1975     enable_dlopen=no
1976   else
1977     enable_dlopen=yes
1978   fi
1980   case $lt_cv_dlopen in
1981   dlopen)
1982     save_CPPFLAGS=$CPPFLAGS
1983     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1985     save_LDFLAGS=$LDFLAGS
1986     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1988     save_LIBS=$LIBS
1989     LIBS="$lt_cv_dlopen_libs $LIBS"
1991     AC_CACHE_CHECK([whether a program can dlopen itself],
1992           lt_cv_dlopen_self, [dnl
1993           _LT_TRY_DLOPEN_SELF(
1994             lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1995             lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1996     ])
1998     if test yes = "$lt_cv_dlopen_self"; then
1999       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2000       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2001           lt_cv_dlopen_self_static, [dnl
2002           _LT_TRY_DLOPEN_SELF(
2003             lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2004             lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2005       ])
2006     fi
2008     CPPFLAGS=$save_CPPFLAGS
2009     LDFLAGS=$save_LDFLAGS
2010     LIBS=$save_LIBS
2011     ;;
2012   esac
2014   case $lt_cv_dlopen_self in
2015   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2016   *) enable_dlopen_self=unknown ;;
2017   esac
2019   case $lt_cv_dlopen_self_static in
2020   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2021   *) enable_dlopen_self_static=unknown ;;
2022   esac
2024 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2025          [Whether dlopen is supported])
2026 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2027          [Whether dlopen of programs is supported])
2028 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2029          [Whether dlopen of statically linked programs is supported])
2030 ])# LT_SYS_DLOPEN_SELF
2032 # Old name:
2033 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2034 dnl aclocal-1.4 backwards compatibility:
2035 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2038 # _LT_COMPILER_C_O([TAGNAME])
2039 # ---------------------------
2040 # Check to see if options -c and -o are simultaneously supported by compiler.
2041 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2042 m4_defun([_LT_COMPILER_C_O],
2043 [m4_require([_LT_DECL_SED])dnl
2044 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2045 m4_require([_LT_TAG_COMPILER])dnl
2046 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2047   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2048   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2049    $RM -r conftest 2>/dev/null
2050    mkdir conftest
2051    cd conftest
2052    mkdir out
2053    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2055    lt_compiler_flag="-o out/conftest2.$ac_objext"
2056    # Insert the option either (1) after the last *FLAGS variable, or
2057    # (2) before a word containing "conftest.", or (3) at the end.
2058    # Note that $ac_compile itself does not contain backslashes and begins
2059    # with a dollar sign (not a hyphen), so the echo should work correctly.
2060    lt_compile=`echo "$ac_compile" | $SED \
2061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2062    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2063    -e 's:$: $lt_compiler_flag:'`
2064    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2065    (eval "$lt_compile" 2>out/conftest.err)
2066    ac_status=$?
2067    cat out/conftest.err >&AS_MESSAGE_LOG_FD
2068    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2069    if (exit $ac_status) && test -s out/conftest2.$ac_objext
2070    then
2071      # The compiler can only warn and ignore the option if not recognized
2072      # So say no if there are warnings
2073      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2074      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2075      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2076        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2077      fi
2078    fi
2079    chmod u+w . 2>&AS_MESSAGE_LOG_FD
2080    $RM conftest*
2081    # SGI C++ compiler will create directory out/ii_files/ for
2082    # template instantiation
2083    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2084    $RM out/* && rmdir out
2085    cd ..
2086    $RM -r conftest
2087    $RM conftest*
2089 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2090         [Does compiler simultaneously support -c and -o options?])
2091 ])# _LT_COMPILER_C_O
2094 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2095 # ----------------------------------
2096 # Check to see if we can do hard links to lock some files if needed
2097 m4_defun([_LT_COMPILER_FILE_LOCKS],
2098 [m4_require([_LT_ENABLE_LOCK])dnl
2099 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2100 _LT_COMPILER_C_O([$1])
2102 hard_links=nottested
2103 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2104   # do not overwrite the value of need_locks provided by the user
2105   AC_MSG_CHECKING([if we can lock with hard links])
2106   hard_links=yes
2107   $RM conftest*
2108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
2109   touch conftest.a
2110   ln conftest.a conftest.b 2>&5 || hard_links=no
2111   ln conftest.a conftest.b 2>/dev/null && hard_links=no
2112   AC_MSG_RESULT([$hard_links])
2113   if test no = "$hard_links"; then
2114     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2115     need_locks=warn
2116   fi
2117 else
2118   need_locks=no
2120 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2121 ])# _LT_COMPILER_FILE_LOCKS
2124 # _LT_CHECK_OBJDIR
2125 # ----------------
2126 m4_defun([_LT_CHECK_OBJDIR],
2127 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2128 [rm -f .libs 2>/dev/null
2129 mkdir .libs 2>/dev/null
2130 if test -d .libs; then
2131   lt_cv_objdir=.libs
2132 else
2133   # MS-DOS does not allow filenames that begin with a dot.
2134   lt_cv_objdir=_libs
2136 rmdir .libs 2>/dev/null])
2137 objdir=$lt_cv_objdir
2138 _LT_DECL([], [objdir], [0],
2139          [The name of the directory that contains temporary libtool files])dnl
2140 m4_pattern_allow([LT_OBJDIR])dnl
2141 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2142   [Define to the sub-directory where libtool stores uninstalled libraries.])
2143 ])# _LT_CHECK_OBJDIR
2146 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2147 # --------------------------------------
2148 # Check hardcoding attributes.
2149 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2150 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2151 _LT_TAGVAR(hardcode_action, $1)=
2152 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2153    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2154    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2156   # We can hardcode non-existent directories.
2157   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2158      # If the only mechanism to avoid hardcoding is shlibpath_var, we
2159      # have to relink, otherwise we might link with an installed library
2160      # when we should be linking with a yet-to-be-installed one
2161      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2162      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2163     # Linking always hardcodes the temporary library directory.
2164     _LT_TAGVAR(hardcode_action, $1)=relink
2165   else
2166     # We can link without hardcoding, and we can hardcode nonexisting dirs.
2167     _LT_TAGVAR(hardcode_action, $1)=immediate
2168   fi
2169 else
2170   # We cannot hardcode anything, or else we can only hardcode existing
2171   # directories.
2172   _LT_TAGVAR(hardcode_action, $1)=unsupported
2174 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2176 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2177    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2178   # Fast installation is not supported
2179   enable_fast_install=no
2180 elif test yes = "$shlibpath_overrides_runpath" ||
2181      test no = "$enable_shared"; then
2182   # Fast installation is not necessary
2183   enable_fast_install=needless
2185 _LT_TAGDECL([], [hardcode_action], [0],
2186     [How to hardcode a shared library path into an executable])
2187 ])# _LT_LINKER_HARDCODE_LIBPATH
2190 # _LT_CMD_STRIPLIB
2191 # ----------------
2192 m4_defun([_LT_CMD_STRIPLIB],
2193 [m4_require([_LT_DECL_EGREP])
2194 striplib=
2195 old_striplib=
2196 AC_MSG_CHECKING([whether stripping libraries is possible])
2197 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2198   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2199   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2200   AC_MSG_RESULT([yes])
2201 else
2202 # FIXME - insert some real tests, host_os isn't really good enough
2203   case $host_os in
2204   darwin*)
2205     if test -n "$STRIP"; then
2206       striplib="$STRIP -x"
2207       old_striplib="$STRIP -S"
2208       AC_MSG_RESULT([yes])
2209     else
2210       AC_MSG_RESULT([no])
2211     fi
2212     ;;
2213   *)
2214     AC_MSG_RESULT([no])
2215     ;;
2216   esac
2218 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2219 _LT_DECL([], [striplib], [1])
2220 ])# _LT_CMD_STRIPLIB
2223 # _LT_SYS_DYNAMIC_LINKER([TAG])
2224 # -----------------------------
2225 # PORTME Fill in your ld.so characteristics
2226 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2227 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2228 m4_require([_LT_DECL_EGREP])dnl
2229 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2230 m4_require([_LT_DECL_OBJDUMP])dnl
2231 m4_require([_LT_DECL_SED])dnl
2232 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2233 AC_MSG_CHECKING([dynamic linker characteristics])
2234 m4_if([$1],
2235         [], [
2236 if test yes = "$GCC"; then
2237   case $host_os in
2238     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2239     *) lt_awk_arg='/^libraries:/' ;;
2240   esac
2241   case $host_os in
2242     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2243     *) lt_sed_strip_eq='s|=/|/|g' ;;
2244   esac
2245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2246   case $lt_search_path_spec in
2247   *\;*)
2248     # if the path contains ";" then we assume it to be the separator
2249     # otherwise default to the standard path separator (i.e. ":") - it is
2250     # assumed that no part of a normal pathname contains ";" but that should
2251     # okay in the real world where ";" in dirpaths is itself problematic.
2252     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2253     ;;
2254   *)
2255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2256     ;;
2257   esac
2258   # Ok, now we have the path, separated by spaces, we can step through it
2259   # and add multilib dir if necessary...
2260   lt_tmp_lt_search_path_spec=
2261   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2262   # ...but if some path component already ends with the multilib dir we assume
2263   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2264   case "$lt_multi_os_dir; $lt_search_path_spec " in
2265   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2266     lt_multi_os_dir=
2267     ;;
2268   esac
2269   for lt_sys_path in $lt_search_path_spec; do
2270     if test -d "$lt_sys_path$lt_multi_os_dir"; then
2271       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2272     elif test -n "$lt_multi_os_dir"; then
2273       test -d "$lt_sys_path" && \
2274         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2275     fi
2276   done
2277   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2278 BEGIN {RS = " "; FS = "/|\n";} {
2279   lt_foo = "";
2280   lt_count = 0;
2281   for (lt_i = NF; lt_i > 0; lt_i--) {
2282     if ($lt_i != "" && $lt_i != ".") {
2283       if ($lt_i == "..") {
2284         lt_count++;
2285       } else {
2286         if (lt_count == 0) {
2287           lt_foo = "/" $lt_i lt_foo;
2288         } else {
2289           lt_count--;
2290         }
2291       }
2292     }
2293   }
2294   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2295   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2297   # AWK program above erroneously prepends '/' to C:/dos/paths
2298   # for these hosts.
2299   case $host_os in
2300     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2301       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2302   esac
2303   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2304 else
2305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2306 fi])
2307 library_names_spec=
2308 libname_spec='lib$name'
2309 soname_spec=
2310 shrext_cmds=.so
2311 postinstall_cmds=
2312 postuninstall_cmds=
2313 finish_cmds=
2314 finish_eval=
2315 shlibpath_var=
2316 shlibpath_overrides_runpath=unknown
2317 version_type=none
2318 dynamic_linker="$host_os ld.so"
2319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2320 need_lib_prefix=unknown
2321 hardcode_into_libs=no
2323 # when you set need_version to no, make sure it does not cause -set_version
2324 # flags to be left without arguments
2325 need_version=unknown
2327 case $host_os in
2328 aix3*)
2329   version_type=linux # correct to gnu/linux during the next big refactor
2330   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2331   shlibpath_var=LIBPATH
2333   # AIX 3 has no versioning support, so we append a major version to the name.
2334   soname_spec='$libname$release$shared_ext$major'
2335   ;;
2337 aix[[4-9]]*)
2338   version_type=linux # correct to gnu/linux during the next big refactor
2339   need_lib_prefix=no
2340   need_version=no
2341   hardcode_into_libs=yes
2342   if test ia64 = "$host_cpu"; then
2343     # AIX 5 supports IA64
2344     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2345     shlibpath_var=LD_LIBRARY_PATH
2346   else
2347     # With GCC up to 2.95.x, collect2 would create an import file
2348     # for dependence libraries.  The import file would start with
2349     # the line '#! .'.  This would cause the generated library to
2350     # depend on '.', always an invalid library.  This was fixed in
2351     # development snapshots of GCC prior to 3.0.
2352     case $host_os in
2353       aix4 | aix4.[[01]] | aix4.[[01]].*)
2354       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2355            echo ' yes '
2356            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2357         :
2358       else
2359         can_build_shared=no
2360       fi
2361       ;;
2362     esac
2363     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2364     # soname into executable. Probably we can add versioning support to
2365     # collect2, so additional links can be useful in future.
2366     if test yes = "$aix_use_runtimelinking"; then
2367       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2368       # instead of lib<name>.a to let people know that these are not
2369       # typical AIX shared libraries.
2370       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2371     else
2372       # We preserve .a as extension for shared libraries through AIX4.2
2373       # and later when we are not doing run time linking.
2374       library_names_spec='$libname$release.a $libname.a'
2375       soname_spec='$libname$release$shared_ext$major'
2376     fi
2377     shlibpath_var=LIBPATH
2378   fi
2379   ;;
2381 amigaos*)
2382   case $host_cpu in
2383   powerpc)
2384     # Since July 2007 AmigaOS4 officially supports .so libraries.
2385     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2386     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2387     ;;
2388   m68k)
2389     library_names_spec='$libname.ixlibrary $libname.a'
2390     # Create ${libname}_ixlibrary.a entries in /sys/libs.
2391     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'
2392     ;;
2393   esac
2394   ;;
2396 beos*)
2397   library_names_spec='$libname$shared_ext'
2398   dynamic_linker="$host_os ld.so"
2399   shlibpath_var=LIBRARY_PATH
2400   ;;
2402 bsdi[[45]]*)
2403   version_type=linux # correct to gnu/linux during the next big refactor
2404   need_version=no
2405   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2406   soname_spec='$libname$release$shared_ext$major'
2407   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2408   shlibpath_var=LD_LIBRARY_PATH
2409   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2410   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2411   # the default ld.so.conf also contains /usr/contrib/lib and
2412   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2413   # libtool to hard-code these into programs
2414   ;;
2416 cygwin* | mingw* | pw32* | cegcc*)
2417   version_type=windows
2418   shrext_cmds=.dll
2419   need_version=no
2420   need_lib_prefix=no
2422   case $GCC,$cc_basename in
2423   yes,*)
2424     # gcc
2425     library_names_spec='$libname.dll.a'
2426     # DLL is installed to $(libdir)/../bin by postinstall_cmds
2427     postinstall_cmds='base_file=`basename \$file`~
2428       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2429       dldir=$destdir/`dirname \$dlpath`~
2430       test -d \$dldir || mkdir -p \$dldir~
2431       $install_prog $dir/$dlname \$dldir/$dlname~
2432       chmod a+x \$dldir/$dlname~
2433       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2434         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2435       fi'
2436     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2437       dlpath=$dir/\$dldll~
2438        $RM \$dlpath'
2439     shlibpath_overrides_runpath=yes
2441     case $host_os in
2442     cygwin*)
2443       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2444       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2445 m4_if([$1], [],[
2446       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2447       ;;
2448     mingw* | cegcc*)
2449       # MinGW DLLs use traditional 'lib' prefix
2450       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2451       ;;
2452     pw32*)
2453       # pw32 DLLs use 'pw' prefix rather than 'lib'
2454       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2455       ;;
2456     esac
2457     dynamic_linker='Win32 ld.exe'
2458     ;;
2460   *,cl*)
2461     # Native MSVC
2462     libname_spec='$name'
2463     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2464     library_names_spec='$libname.dll.lib'
2466     case $build_os in
2467     mingw*)
2468       sys_lib_search_path_spec=
2469       lt_save_ifs=$IFS
2470       IFS=';'
2471       for lt_path in $LIB
2472       do
2473         IFS=$lt_save_ifs
2474         # Let DOS variable expansion print the short 8.3 style file name.
2475         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2476         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2477       done
2478       IFS=$lt_save_ifs
2479       # Convert to MSYS style.
2480       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2481       ;;
2482     cygwin*)
2483       # Convert to unix form, then to dos form, then back to unix form
2484       # but this time dos style (no spaces!) so that the unix form looks
2485       # like /cygdrive/c/PROGRA~1:/cygdr...
2486       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2487       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2488       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2489       ;;
2490     *)
2491       sys_lib_search_path_spec=$LIB
2492       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2493         # It is most probably a Windows format PATH.
2494         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2495       else
2496         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2497       fi
2498       # FIXME: find the short name or the path components, as spaces are
2499       # common. (e.g. "Program Files" -> "PROGRA~1")
2500       ;;
2501     esac
2503     # DLL is installed to $(libdir)/../bin by postinstall_cmds
2504     postinstall_cmds='base_file=`basename \$file`~
2505       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2506       dldir=$destdir/`dirname \$dlpath`~
2507       test -d \$dldir || mkdir -p \$dldir~
2508       $install_prog $dir/$dlname \$dldir/$dlname'
2509     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2510       dlpath=$dir/\$dldll~
2511        $RM \$dlpath'
2512     shlibpath_overrides_runpath=yes
2513     dynamic_linker='Win32 link.exe'
2514     ;;
2516   *)
2517     # Assume MSVC wrapper
2518     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2519     dynamic_linker='Win32 ld.exe'
2520     ;;
2521   esac
2522   # FIXME: first we should search . and the directory the executable is in
2523   shlibpath_var=PATH
2524   ;;
2526 darwin* | rhapsody*)
2527   dynamic_linker="$host_os dyld"
2528   version_type=darwin
2529   need_lib_prefix=no
2530   need_version=no
2531   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2532   soname_spec='$libname$release$major$shared_ext'
2533   shlibpath_overrides_runpath=yes
2534   shlibpath_var=DYLD_LIBRARY_PATH
2535   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2536 m4_if([$1], [],[
2537   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2538   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2539   ;;
2541 dgux*)
2542   version_type=linux # correct to gnu/linux during the next big refactor
2543   need_lib_prefix=no
2544   need_version=no
2545   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2546   soname_spec='$libname$release$shared_ext$major'
2547   shlibpath_var=LD_LIBRARY_PATH
2548   ;;
2550 freebsd* | dragonfly*)
2551   # DragonFly does not have aout.  When/if they implement a new
2552   # versioning mechanism, adjust this.
2553   if test -x /usr/bin/objformat; then
2554     objformat=`/usr/bin/objformat`
2555   else
2556     case $host_os in
2557     freebsd[[23]].*) objformat=aout ;;
2558     *) objformat=elf ;;
2559     esac
2560   fi
2561   version_type=freebsd-$objformat
2562   case $version_type in
2563     freebsd-elf*)
2564       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
2565       need_version=no
2566       need_lib_prefix=no
2567       ;;
2568     freebsd-*)
2569       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2570       need_version=yes
2571       ;;
2572   esac
2573   shlibpath_var=LD_LIBRARY_PATH
2574   case $host_os in
2575   freebsd2.*)
2576     shlibpath_overrides_runpath=yes
2577     ;;
2578   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2579     shlibpath_overrides_runpath=yes
2580     hardcode_into_libs=yes
2581     ;;
2582   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2583   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2584     shlibpath_overrides_runpath=no
2585     hardcode_into_libs=yes
2586     ;;
2587   *) # from 4.6 on, and DragonFly
2588     shlibpath_overrides_runpath=yes
2589     hardcode_into_libs=yes
2590     ;;
2591   esac
2592   ;;
2594 haiku*)
2595   version_type=linux # correct to gnu/linux during the next big refactor
2596   need_lib_prefix=no
2597   need_version=no
2598   dynamic_linker="$host_os runtime_loader"
2599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2600   soname_spec='$libname$release$shared_ext$major'
2601   shlibpath_var=LIBRARY_PATH
2602   shlibpath_overrides_runpath=no
2603   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2604   hardcode_into_libs=yes
2605   ;;
2607 hpux9* | hpux10* | hpux11*)
2608   # Give a soname corresponding to the major version so that dld.sl refuses to
2609   # link against other versions.
2610   version_type=sunos
2611   need_lib_prefix=no
2612   need_version=no
2613   case $host_cpu in
2614   ia64*)
2615     shrext_cmds='.so'
2616     hardcode_into_libs=yes
2617     dynamic_linker="$host_os dld.so"
2618     shlibpath_var=LD_LIBRARY_PATH
2619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2620     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2621     soname_spec='$libname$release$shared_ext$major'
2622     if test 32 = "$HPUX_IA64_MODE"; then
2623       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2624     else
2625       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2626     fi
2627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2628     ;;
2629   hppa*64*)
2630     shrext_cmds='.sl'
2631     hardcode_into_libs=yes
2632     dynamic_linker="$host_os dld.sl"
2633     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2635     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2636     soname_spec='$libname$release$shared_ext$major'
2637     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2638     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2639     ;;
2640   *)
2641     shrext_cmds='.sl'
2642     dynamic_linker="$host_os dld.sl"
2643     shlibpath_var=SHLIB_PATH
2644     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2645     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2646     soname_spec='$libname$release$shared_ext$major'
2647     ;;
2648   esac
2649   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2650   postinstall_cmds='chmod 555 $lib'
2651   # or fails outright, so override atomically:
2652   install_override_mode=555
2653   ;;
2655 interix[[3-9]]*)
2656   version_type=linux # correct to gnu/linux during the next big refactor
2657   need_lib_prefix=no
2658   need_version=no
2659   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2660   soname_spec='$libname$release$shared_ext$major'
2661   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2662   shlibpath_var=LD_LIBRARY_PATH
2663   shlibpath_overrides_runpath=no
2664   hardcode_into_libs=yes
2665   ;;
2667 irix5* | irix6* | nonstopux*)
2668   case $host_os in
2669     nonstopux*) version_type=nonstopux ;;
2670     *)
2671         if test yes = "$lt_cv_prog_gnu_ld"; then
2672                 version_type=linux # correct to gnu/linux during the next big refactor
2673         else
2674                 version_type=irix
2675         fi ;;
2676   esac
2677   need_lib_prefix=no
2678   need_version=no
2679   soname_spec='$libname$release$shared_ext$major'
2680   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2681   case $host_os in
2682   irix5* | nonstopux*)
2683     libsuff= shlibsuff=
2684     ;;
2685   *)
2686     case $LD in # libtool.m4 will add one of these switches to LD
2687     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2688       libsuff= shlibsuff= libmagic=32-bit;;
2689     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2690       libsuff=32 shlibsuff=N32 libmagic=N32;;
2691     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2692       libsuff=64 shlibsuff=64 libmagic=64-bit;;
2693     *) libsuff= shlibsuff= libmagic=never-match;;
2694     esac
2695     ;;
2696   esac
2697   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2698   shlibpath_overrides_runpath=no
2699   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2700   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2701   hardcode_into_libs=yes
2702   ;;
2704 # No shared lib support for Linux oldld, aout, or coff.
2705 linux*oldld* | linux*aout* | linux*coff*)
2706   dynamic_linker=no
2707   ;;
2709 linux*android*)
2710   version_type=none # Android doesn't support versioned libraries.
2711   need_lib_prefix=no
2712   need_version=no
2713   library_names_spec='$libname$release$shared_ext'
2714   soname_spec='$libname$release$shared_ext'
2715   finish_cmds=
2716   shlibpath_var=LD_LIBRARY_PATH
2717   shlibpath_overrides_runpath=yes
2719   # This implies no fast_install, which is unacceptable.
2720   # Some rework will be needed to allow for fast_install
2721   # before this can be enabled.
2722   hardcode_into_libs=yes
2724   dynamic_linker='Android linker'
2725   # Don't embed -rpath directories since the linker doesn't support them.
2726   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2727   ;;
2729 # This must be glibc/ELF.
2730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2731   version_type=linux # correct to gnu/linux during the next big refactor
2732   need_lib_prefix=no
2733   need_version=no
2734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2735   soname_spec='$libname$release$shared_ext$major'
2736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2737   shlibpath_var=LD_LIBRARY_PATH
2738   shlibpath_overrides_runpath=no
2740   # Some binutils ld are patched to set DT_RUNPATH
2741   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2742     [lt_cv_shlibpath_overrides_runpath=no
2743     save_LDFLAGS=$LDFLAGS
2744     save_libdir=$libdir
2745     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2746          LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2747     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2748       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2749          [lt_cv_shlibpath_overrides_runpath=yes])])
2750     LDFLAGS=$save_LDFLAGS
2751     libdir=$save_libdir
2752     ])
2753   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2755   # This implies no fast_install, which is unacceptable.
2756   # Some rework will be needed to allow for fast_install
2757   # before this can be enabled.
2758   hardcode_into_libs=yes
2760   # Add ABI-specific directories to the system library path.
2761   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2763   # Append ld.so.conf contents to the search path
2764   if test -f /etc/ld.so.conf; then
2765     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' ' '`
2766     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2768   fi
2770   # We used to test for /lib/ld.so.1 and disable shared libraries on
2771   # powerpc, because MkLinux only supported shared libraries with the
2772   # GNU dynamic linker.  Since this was broken with cross compilers,
2773   # most powerpc-linux boxes support dynamic linking these days and
2774   # people can always --disable-shared, the test was removed, and we
2775   # assume the GNU/Linux dynamic linker is in use.
2776   dynamic_linker='GNU/Linux ld.so'
2777   ;;
2779 netbsd*)
2780   version_type=sunos
2781   need_lib_prefix=no
2782   need_version=no
2783   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2784     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2785     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2786     dynamic_linker='NetBSD (a.out) ld.so'
2787   else
2788     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2789     soname_spec='$libname$release$shared_ext$major'
2790     dynamic_linker='NetBSD ld.elf_so'
2791   fi
2792   shlibpath_var=LD_LIBRARY_PATH
2793   shlibpath_overrides_runpath=yes
2794   hardcode_into_libs=yes
2795   ;;
2797 newsos6)
2798   version_type=linux # correct to gnu/linux during the next big refactor
2799   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2800   shlibpath_var=LD_LIBRARY_PATH
2801   shlibpath_overrides_runpath=yes
2802   ;;
2804 *nto* | *qnx*)
2805   version_type=qnx
2806   need_lib_prefix=no
2807   need_version=no
2808   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2809   soname_spec='$libname$release$shared_ext$major'
2810   shlibpath_var=LD_LIBRARY_PATH
2811   shlibpath_overrides_runpath=no
2812   hardcode_into_libs=yes
2813   dynamic_linker='ldqnx.so'
2814   ;;
2816 openbsd* | bitrig*)
2817   version_type=sunos
2818   sys_lib_dlsearch_path_spec=/usr/lib
2819   need_lib_prefix=no
2820   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2821     need_version=no
2822   else
2823     need_version=yes
2824   fi
2825   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2827   shlibpath_var=LD_LIBRARY_PATH
2828   shlibpath_overrides_runpath=yes
2829   ;;
2831 os2*)
2832   libname_spec='$name'
2833   shrext_cmds=.dll
2834   need_lib_prefix=no
2835   library_names_spec='$libname$shared_ext $libname.a'
2836   dynamic_linker='OS/2 ld.exe'
2837   shlibpath_var=LIBPATH
2838   ;;
2840 osf3* | osf4* | osf5*)
2841   version_type=osf
2842   need_lib_prefix=no
2843   need_version=no
2844   soname_spec='$libname$release$shared_ext$major'
2845   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2846   shlibpath_var=LD_LIBRARY_PATH
2847   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2848   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2849   ;;
2851 rdos*)
2852   dynamic_linker=no
2853   ;;
2855 solaris*)
2856   version_type=linux # correct to gnu/linux during the next big refactor
2857   need_lib_prefix=no
2858   need_version=no
2859   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2860   soname_spec='$libname$release$shared_ext$major'
2861   shlibpath_var=LD_LIBRARY_PATH
2862   shlibpath_overrides_runpath=yes
2863   hardcode_into_libs=yes
2864   # ldd complains unless libraries are executable
2865   postinstall_cmds='chmod +x $lib'
2866   ;;
2868 sunos4*)
2869   version_type=sunos
2870   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2871   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2872   shlibpath_var=LD_LIBRARY_PATH
2873   shlibpath_overrides_runpath=yes
2874   if test yes = "$with_gnu_ld"; then
2875     need_lib_prefix=no
2876   fi
2877   need_version=yes
2878   ;;
2880 sysv4 | sysv4.3*)
2881   version_type=linux # correct to gnu/linux during the next big refactor
2882   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2883   soname_spec='$libname$release$shared_ext$major'
2884   shlibpath_var=LD_LIBRARY_PATH
2885   case $host_vendor in
2886     sni)
2887       shlibpath_overrides_runpath=no
2888       need_lib_prefix=no
2889       runpath_var=LD_RUN_PATH
2890       ;;
2891     siemens)
2892       need_lib_prefix=no
2893       ;;
2894     motorola)
2895       need_lib_prefix=no
2896       need_version=no
2897       shlibpath_overrides_runpath=no
2898       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2899       ;;
2900   esac
2901   ;;
2903 sysv4*MP*)
2904   if test -d /usr/nec; then
2905     version_type=linux # correct to gnu/linux during the next big refactor
2906     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
2907     soname_spec='$libname$shared_ext.$major'
2908     shlibpath_var=LD_LIBRARY_PATH
2909   fi
2910   ;;
2912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2913   version_type=freebsd-elf
2914   need_lib_prefix=no
2915   need_version=no
2916   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
2917   soname_spec='$libname$release$shared_ext$major'
2918   shlibpath_var=LD_LIBRARY_PATH
2919   shlibpath_overrides_runpath=yes
2920   hardcode_into_libs=yes
2921   if test yes = "$with_gnu_ld"; then
2922     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2923   else
2924     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2925     case $host_os in
2926       sco3.2v5*)
2927         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2928         ;;
2929     esac
2930   fi
2931   sys_lib_dlsearch_path_spec='/usr/lib'
2932   ;;
2934 tpf*)
2935   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2936   version_type=linux # correct to gnu/linux during the next big refactor
2937   need_lib_prefix=no
2938   need_version=no
2939   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2940   shlibpath_var=LD_LIBRARY_PATH
2941   shlibpath_overrides_runpath=no
2942   hardcode_into_libs=yes
2943   ;;
2945 uts4*)
2946   version_type=linux # correct to gnu/linux during the next big refactor
2947   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2948   soname_spec='$libname$release$shared_ext$major'
2949   shlibpath_var=LD_LIBRARY_PATH
2950   ;;
2953   dynamic_linker=no
2954   ;;
2955 esac
2956 AC_MSG_RESULT([$dynamic_linker])
2957 test no = "$dynamic_linker" && can_build_shared=no
2959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2960 if test yes = "$GCC"; then
2961   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2964 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
2965   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
2967 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
2968   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
2971 _LT_DECL([], [variables_saved_for_relink], [1],
2972     [Variables whose values should be saved in libtool wrapper scripts and
2973     restored at link time])
2974 _LT_DECL([], [need_lib_prefix], [0],
2975     [Do we need the "lib" prefix for modules?])
2976 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2977 _LT_DECL([], [version_type], [0], [Library versioning type])
2978 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
2979 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2980 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2981     [Is shlibpath searched before the hard-coded library search path?])
2982 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2983 _LT_DECL([], [library_names_spec], [1],
2984     [[List of archive names.  First name is the real one, the rest are links.
2985     The last name is the one that the linker finds with -lNAME]])
2986 _LT_DECL([], [soname_spec], [1],
2987     [[The coded name of the library, if different from the real name]])
2988 _LT_DECL([], [install_override_mode], [1],
2989     [Permission mode override for installation of shared libraries])
2990 _LT_DECL([], [postinstall_cmds], [2],
2991     [Command to use after installation of a shared archive])
2992 _LT_DECL([], [postuninstall_cmds], [2],
2993     [Command to use after uninstallation of a shared archive])
2994 _LT_DECL([], [finish_cmds], [2],
2995     [Commands used to finish a libtool library installation in a directory])
2996 _LT_DECL([], [finish_eval], [1],
2997     [[As "finish_cmds", except a single script fragment to be evaled but
2998     not shown]])
2999 _LT_DECL([], [hardcode_into_libs], [0],
3000     [Whether we should hardcode library paths into libraries])
3001 _LT_DECL([], [sys_lib_search_path_spec], [2],
3002     [Compile-time system search path for libraries])
3003 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3004     [Run-time system search path for libraries])
3005 ])# _LT_SYS_DYNAMIC_LINKER
3008 # _LT_PATH_TOOL_PREFIX(TOOL)
3009 # --------------------------
3010 # find a file program that can recognize shared library
3011 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3012 [m4_require([_LT_DECL_EGREP])dnl
3013 AC_MSG_CHECKING([for $1])
3014 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3015 [case $MAGIC_CMD in
3016 [[\\/*] |  ?:[\\/]*])
3017   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3018   ;;
3020   lt_save_MAGIC_CMD=$MAGIC_CMD
3021   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3022 dnl $ac_dummy forces splitting on constant user-supplied paths.
3023 dnl POSIX.2 word splitting is done only on the output of word expansions,
3024 dnl not every word.  This closes a longstanding sh security hole.
3025   ac_dummy="m4_if([$2], , $PATH, [$2])"
3026   for ac_dir in $ac_dummy; do
3027     IFS=$lt_save_ifs
3028     test -z "$ac_dir" && ac_dir=.
3029     if test -f "$ac_dir/$1"; then
3030       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3031       if test -n "$file_magic_test_file"; then
3032         case $deplibs_check_method in
3033         "file_magic "*)
3034           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3035           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3036           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3037             $EGREP "$file_magic_regex" > /dev/null; then
3038             :
3039           else
3040             cat <<_LT_EOF 1>&2
3042 *** Warning: the command libtool uses to detect shared libraries,
3043 *** $file_magic_cmd, produces output that libtool cannot recognize.
3044 *** The result is that libtool may fail to recognize shared libraries
3045 *** as such.  This will affect the creation of libtool libraries that
3046 *** depend on shared libraries, but programs linked with such libtool
3047 *** libraries will work regardless of this problem.  Nevertheless, you
3048 *** may want to report the problem to your system manager and/or to
3049 *** bug-libtool@gnu.org
3051 _LT_EOF
3052           fi ;;
3053         esac
3054       fi
3055       break
3056     fi
3057   done
3058   IFS=$lt_save_ifs
3059   MAGIC_CMD=$lt_save_MAGIC_CMD
3060   ;;
3061 esac])
3062 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3063 if test -n "$MAGIC_CMD"; then
3064   AC_MSG_RESULT($MAGIC_CMD)
3065 else
3066   AC_MSG_RESULT(no)
3068 _LT_DECL([], [MAGIC_CMD], [0],
3069          [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3070 ])# _LT_PATH_TOOL_PREFIX
3072 # Old name:
3073 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3074 dnl aclocal-1.4 backwards compatibility:
3075 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3078 # _LT_PATH_MAGIC
3079 # --------------
3080 # find a file program that can recognize a shared library
3081 m4_defun([_LT_PATH_MAGIC],
3082 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3083 if test -z "$lt_cv_path_MAGIC_CMD"; then
3084   if test -n "$ac_tool_prefix"; then
3085     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3086   else
3087     MAGIC_CMD=:
3088   fi
3090 ])# _LT_PATH_MAGIC
3093 # LT_PATH_LD
3094 # ----------
3095 # find the pathname to the GNU or non-GNU linker
3096 AC_DEFUN([LT_PATH_LD],
3097 [AC_REQUIRE([AC_PROG_CC])dnl
3098 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3099 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3100 m4_require([_LT_DECL_SED])dnl
3101 m4_require([_LT_DECL_EGREP])dnl
3102 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3104 AC_ARG_WITH([gnu-ld],
3105     [AS_HELP_STRING([--with-gnu-ld],
3106         [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3107     [test no = "$withval" || with_gnu_ld=yes],
3108     [with_gnu_ld=no])dnl
3110 ac_prog=ld
3111 if test yes = "$GCC"; then
3112   # Check if gcc -print-prog-name=ld gives a path.
3113   AC_MSG_CHECKING([for ld used by $CC])
3114   case $host in
3115   *-*-mingw*)
3116     # gcc leaves a trailing carriage return, which upsets mingw
3117     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3118   *)
3119     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3120   esac
3121   case $ac_prog in
3122     # Accept absolute paths.
3123     [[\\/]]* | ?:[[\\/]]*)
3124       re_direlt='/[[^/]][[^/]]*/\.\./'
3125       # Canonicalize the pathname of ld
3126       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3127       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3128         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3129       done
3130       test -z "$LD" && LD=$ac_prog
3131       ;;
3132   "")
3133     # If it fails, then pretend we aren't using GCC.
3134     ac_prog=ld
3135     ;;
3136   *)
3137     # If it is relative, then search for the first ld in PATH.
3138     with_gnu_ld=unknown
3139     ;;
3140   esac
3141 elif test yes = "$with_gnu_ld"; then
3142   AC_MSG_CHECKING([for GNU ld])
3143 else
3144   AC_MSG_CHECKING([for non-GNU ld])
3146 AC_CACHE_VAL(lt_cv_path_LD,
3147 [if test -z "$LD"; then
3148   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3149   for ac_dir in $PATH; do
3150     IFS=$lt_save_ifs
3151     test -z "$ac_dir" && ac_dir=.
3152     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3153       lt_cv_path_LD=$ac_dir/$ac_prog
3154       # Check to see if the program is GNU ld.  I'd rather use --version,
3155       # but apparently some variants of GNU ld only accept -v.
3156       # Break only if it was the GNU/non-GNU ld that we prefer.
3157       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3158       *GNU* | *'with BFD'*)
3159         test no != "$with_gnu_ld" && break
3160         ;;
3161       *)
3162         test yes != "$with_gnu_ld" && break
3163         ;;
3164       esac
3165     fi
3166   done
3167   IFS=$lt_save_ifs
3168 else
3169   lt_cv_path_LD=$LD # Let the user override the test with a path.
3170 fi])
3171 LD=$lt_cv_path_LD
3172 if test -n "$LD"; then
3173   AC_MSG_RESULT($LD)
3174 else
3175   AC_MSG_RESULT(no)
3177 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3178 _LT_PATH_LD_GNU
3179 AC_SUBST([LD])
3181 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3182 ])# LT_PATH_LD
3184 # Old names:
3185 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3186 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3187 dnl aclocal-1.4 backwards compatibility:
3188 dnl AC_DEFUN([AM_PROG_LD], [])
3189 dnl AC_DEFUN([AC_PROG_LD], [])
3192 # _LT_PATH_LD_GNU
3193 #- --------------
3194 m4_defun([_LT_PATH_LD_GNU],
3195 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3196 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3197 case `$LD -v 2>&1 </dev/null` in
3198 *GNU* | *'with BFD'*)
3199   lt_cv_prog_gnu_ld=yes
3200   ;;
3202   lt_cv_prog_gnu_ld=no
3203   ;;
3204 esac])
3205 with_gnu_ld=$lt_cv_prog_gnu_ld
3206 ])# _LT_PATH_LD_GNU
3209 # _LT_CMD_RELOAD
3210 # --------------
3211 # find reload flag for linker
3212 #   -- PORTME Some linkers may need a different reload flag.
3213 m4_defun([_LT_CMD_RELOAD],
3214 [AC_CACHE_CHECK([for $LD option to reload object files],
3215   lt_cv_ld_reload_flag,
3216   [lt_cv_ld_reload_flag='-r'])
3217 reload_flag=$lt_cv_ld_reload_flag
3218 case $reload_flag in
3219 "" | " "*) ;;
3220 *) reload_flag=" $reload_flag" ;;
3221 esac
3222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3223 case $host_os in
3224   cygwin* | mingw* | pw32* | cegcc*)
3225     if test yes != "$GCC"; then
3226       reload_cmds=false
3227     fi
3228     ;;
3229   darwin*)
3230     if test yes = "$GCC"; then
3231       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3232     else
3233       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3234     fi
3235     ;;
3236 esac
3237 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3238 _LT_TAGDECL([], [reload_cmds], [2])dnl
3239 ])# _LT_CMD_RELOAD
3242 # _LT_CHECK_MAGIC_METHOD
3243 # ----------------------
3244 # how to check for library dependencies
3245 #  -- PORTME fill in with the dynamic library characteristics
3246 m4_defun([_LT_CHECK_MAGIC_METHOD],
3247 [m4_require([_LT_DECL_EGREP])
3248 m4_require([_LT_DECL_OBJDUMP])
3249 AC_CACHE_CHECK([how to recognize dependent libraries],
3250 lt_cv_deplibs_check_method,
3251 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3252 lt_cv_file_magic_test_file=
3253 lt_cv_deplibs_check_method='unknown'
3254 # Need to set the preceding variable on all platforms that support
3255 # interlibrary dependencies.
3256 # 'none' -- dependencies not supported.
3257 # 'unknown' -- same as none, but documents that we really don't know.
3258 # 'pass_all' -- all dependencies passed with no checks.
3259 # 'test_compile' -- check by making test program.
3260 # 'file_magic [[regex]]' -- check by looking for files in library path
3261 # that responds to the $file_magic_cmd with a given extended regex.
3262 # If you have 'file' or equivalent on your system and you're not sure
3263 # whether 'pass_all' will *always* work, you probably want this one.
3265 case $host_os in
3266 aix[[4-9]]*)
3267   lt_cv_deplibs_check_method=pass_all
3268   ;;
3270 beos*)
3271   lt_cv_deplibs_check_method=pass_all
3272   ;;
3274 bsdi[[45]]*)
3275   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3276   lt_cv_file_magic_cmd='/usr/bin/file -L'
3277   lt_cv_file_magic_test_file=/shlib/libc.so
3278   ;;
3280 cygwin*)
3281   # func_win32_libid is a shell function defined in ltmain.sh
3282   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3283   lt_cv_file_magic_cmd='func_win32_libid'
3284   ;;
3286 mingw* | pw32*)
3287   # Base MSYS/MinGW do not provide the 'file' command needed by
3288   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3289   # unless we find 'file', for example because we are cross-compiling.
3290   if ( file / ) >/dev/null 2>&1; then
3291     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3292     lt_cv_file_magic_cmd='func_win32_libid'
3293   else
3294     # Keep this pattern in sync with the one in func_win32_libid.
3295     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3296     lt_cv_file_magic_cmd='$OBJDUMP -f'
3297   fi
3298   ;;
3300 cegcc*)
3301   # use the weaker test based on 'objdump'. See mingw*.
3302   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3303   lt_cv_file_magic_cmd='$OBJDUMP -f'
3304   ;;
3306 darwin* | rhapsody*)
3307   lt_cv_deplibs_check_method=pass_all
3308   ;;
3310 freebsd* | dragonfly*)
3311   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3312     case $host_cpu in
3313     i*86 )
3314       # Not sure whether the presence of OpenBSD here was a mistake.
3315       # Let's accept both of them until this is cleared up.
3316       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3317       lt_cv_file_magic_cmd=/usr/bin/file
3318       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3319       ;;
3320     esac
3321   else
3322     lt_cv_deplibs_check_method=pass_all
3323   fi
3324   ;;
3326 haiku*)
3327   lt_cv_deplibs_check_method=pass_all
3328   ;;
3330 hpux10.20* | hpux11*)
3331   lt_cv_file_magic_cmd=/usr/bin/file
3332   case $host_cpu in
3333   ia64*)
3334     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3335     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3336     ;;
3337   hppa*64*)
3338     [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]']
3339     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3340     ;;
3341   *)
3342     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3343     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3344     ;;
3345   esac
3346   ;;
3348 interix[[3-9]]*)
3349   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3350   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3351   ;;
3353 irix5* | irix6* | nonstopux*)
3354   case $LD in
3355   *-32|*"-32 ") libmagic=32-bit;;
3356   *-n32|*"-n32 ") libmagic=N32;;
3357   *-64|*"-64 ") libmagic=64-bit;;
3358   *) libmagic=never-match;;
3359   esac
3360   lt_cv_deplibs_check_method=pass_all
3361   ;;
3363 # This must be glibc/ELF.
3364 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3365   lt_cv_deplibs_check_method=pass_all
3366   ;;
3368 netbsd*)
3369   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3370     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3371   else
3372     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3373   fi
3374   ;;
3376 newos6*)
3377   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3378   lt_cv_file_magic_cmd=/usr/bin/file
3379   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3380   ;;
3382 *nto* | *qnx*)
3383   lt_cv_deplibs_check_method=pass_all
3384   ;;
3386 openbsd* | bitrig*)
3387   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3388     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3389   else
3390     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3391   fi
3392   ;;
3394 osf3* | osf4* | osf5*)
3395   lt_cv_deplibs_check_method=pass_all
3396   ;;
3398 rdos*)
3399   lt_cv_deplibs_check_method=pass_all
3400   ;;
3402 solaris*)
3403   lt_cv_deplibs_check_method=pass_all
3404   ;;
3406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3407   lt_cv_deplibs_check_method=pass_all
3408   ;;
3410 sysv4 | sysv4.3*)
3411   case $host_vendor in
3412   motorola)
3413     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]]'
3414     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3415     ;;
3416   ncr)
3417     lt_cv_deplibs_check_method=pass_all
3418     ;;
3419   sequent)
3420     lt_cv_file_magic_cmd='/bin/file'
3421     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3422     ;;
3423   sni)
3424     lt_cv_file_magic_cmd='/bin/file'
3425     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3426     lt_cv_file_magic_test_file=/lib/libc.so
3427     ;;
3428   siemens)
3429     lt_cv_deplibs_check_method=pass_all
3430     ;;
3431   pc)
3432     lt_cv_deplibs_check_method=pass_all
3433     ;;
3434   esac
3435   ;;
3437 tpf*)
3438   lt_cv_deplibs_check_method=pass_all
3439   ;;
3440 esac
3443 file_magic_glob=
3444 want_nocaseglob=no
3445 if test "$build" = "$host"; then
3446   case $host_os in
3447   mingw* | pw32*)
3448     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3449       want_nocaseglob=yes
3450     else
3451       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3452     fi
3453     ;;
3454   esac
3457 file_magic_cmd=$lt_cv_file_magic_cmd
3458 deplibs_check_method=$lt_cv_deplibs_check_method
3459 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3461 _LT_DECL([], [deplibs_check_method], [1],
3462     [Method to check whether dependent libraries are shared objects])
3463 _LT_DECL([], [file_magic_cmd], [1],
3464     [Command to use when deplibs_check_method = "file_magic"])
3465 _LT_DECL([], [file_magic_glob], [1],
3466     [How to find potential files when deplibs_check_method = "file_magic"])
3467 _LT_DECL([], [want_nocaseglob], [1],
3468     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3469 ])# _LT_CHECK_MAGIC_METHOD
3472 # LT_PATH_NM
3473 # ----------
3474 # find the pathname to a BSD- or MS-compatible name lister
3475 AC_DEFUN([LT_PATH_NM],
3476 [AC_REQUIRE([AC_PROG_CC])dnl
3477 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3478 [if test -n "$NM"; then
3479   # Let the user override the test.
3480   lt_cv_path_NM=$NM
3481 else
3482   lt_nm_to_check=${ac_tool_prefix}nm
3483   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3484     lt_nm_to_check="$lt_nm_to_check nm"
3485   fi
3486   for lt_tmp_nm in $lt_nm_to_check; do
3487     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3488     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3489       IFS=$lt_save_ifs
3490       test -z "$ac_dir" && ac_dir=.
3491       tmp_nm=$ac_dir/$lt_tmp_nm
3492       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3493         # Check to see if the nm accepts a BSD-compat flag.
3494         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3495         #   nm: unknown option "B" ignored
3496         # Tru64's nm complains that /dev/null is an invalid object file
3497         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3498         */dev/null* | *'Invalid file or object type'*)
3499           lt_cv_path_NM="$tmp_nm -B"
3500           break 2
3501           ;;
3502         *)
3503           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3504           */dev/null*)
3505             lt_cv_path_NM="$tmp_nm -p"
3506             break 2
3507             ;;
3508           *)
3509             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3510             continue # so that we can try to find one that supports BSD flags
3511             ;;
3512           esac
3513           ;;
3514         esac
3515       fi
3516     done
3517     IFS=$lt_save_ifs
3518   done
3519   : ${lt_cv_path_NM=no}
3520 fi])
3521 if test no != "$lt_cv_path_NM"; then
3522   NM=$lt_cv_path_NM
3523 else
3524   # Didn't find any BSD compatible name lister, look for dumpbin.
3525   if test -n "$DUMPBIN"; then :
3526     # Let the user override the test.
3527   else
3528     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3529     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3530     *COFF*)
3531       DUMPBIN="$DUMPBIN -symbols -headers"
3532       ;;
3533     *)
3534       DUMPBIN=:
3535       ;;
3536     esac
3537   fi
3538   AC_SUBST([DUMPBIN])
3539   if test : != "$DUMPBIN"; then
3540     NM=$DUMPBIN
3541   fi
3543 test -z "$NM" && NM=nm
3544 AC_SUBST([NM])
3545 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3547 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3548   [lt_cv_nm_interface="BSD nm"
3549   echo "int some_variable = 0;" > conftest.$ac_ext
3550   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3551   (eval "$ac_compile" 2>conftest.err)
3552   cat conftest.err >&AS_MESSAGE_LOG_FD
3553   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3554   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3555   cat conftest.err >&AS_MESSAGE_LOG_FD
3556   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3557   cat conftest.out >&AS_MESSAGE_LOG_FD
3558   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3559     lt_cv_nm_interface="MS dumpbin"
3560   fi
3561   rm -f conftest*])
3562 ])# LT_PATH_NM
3564 # Old names:
3565 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3566 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3567 dnl aclocal-1.4 backwards compatibility:
3568 dnl AC_DEFUN([AM_PROG_NM], [])
3569 dnl AC_DEFUN([AC_PROG_NM], [])
3571 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3572 # --------------------------------
3573 # how to determine the name of the shared library
3574 # associated with a specific link library.
3575 #  -- PORTME fill in with the dynamic library characteristics
3576 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3577 [m4_require([_LT_DECL_EGREP])
3578 m4_require([_LT_DECL_OBJDUMP])
3579 m4_require([_LT_DECL_DLLTOOL])
3580 AC_CACHE_CHECK([how to associate runtime and link libraries],
3581 lt_cv_sharedlib_from_linklib_cmd,
3582 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3584 case $host_os in
3585 cygwin* | mingw* | pw32* | cegcc*)
3586   # two different shell functions defined in ltmain.sh;
3587   # decide which one to use based on capabilities of $DLLTOOL
3588   case `$DLLTOOL --help 2>&1` in
3589   *--identify-strict*)
3590     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3591     ;;
3592   *)
3593     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3594     ;;
3595   esac
3596   ;;
3598   # fallback: assume linklib IS sharedlib
3599   lt_cv_sharedlib_from_linklib_cmd=$ECHO
3600   ;;
3601 esac
3603 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3604 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3606 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3607     [Command to associate shared and link libraries])
3608 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3611 # _LT_PATH_MANIFEST_TOOL
3612 # ----------------------
3613 # locate the manifest tool
3614 m4_defun([_LT_PATH_MANIFEST_TOOL],
3615 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3616 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3617 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3618   [lt_cv_path_mainfest_tool=no
3619   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3620   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3621   cat conftest.err >&AS_MESSAGE_LOG_FD
3622   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3623     lt_cv_path_mainfest_tool=yes
3624   fi
3625   rm -f conftest*])
3626 if test yes != "$lt_cv_path_mainfest_tool"; then
3627   MANIFEST_TOOL=:
3629 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3630 ])# _LT_PATH_MANIFEST_TOOL
3633 # _LT_DLL_DEF_P([FILE])
3634 # ---------------------
3635 # True iff FILE is a Windows DLL '.def' file.
3636 # Keep in sync with func_dll_def_p in the libtool script
3637 AC_DEFUN([_LT_DLL_DEF_P],
3638 [dnl
3639   test DEF = "`$SED -n dnl
3640     -e '\''s/^[[         ]]*//'\'' dnl Strip leading whitespace
3641     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
3642     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[   ]].*\)*$/DEF/p'\'' dnl
3643     -e q dnl                          Only consider the first "real" line
3644     $1`" dnl
3645 ])# _LT_DLL_DEF_P
3648 # LT_LIB_M
3649 # --------
3650 # check for math library
3651 AC_DEFUN([LT_LIB_M],
3652 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3653 LIBM=
3654 case $host in
3655 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3656   # These system don't have libm, or don't need it
3657   ;;
3658 *-ncr-sysv4.3*)
3659   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3660   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3661   ;;
3663   AC_CHECK_LIB(m, cos, LIBM=-lm)
3664   ;;
3665 esac
3666 AC_SUBST([LIBM])
3667 ])# LT_LIB_M
3669 # Old name:
3670 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3671 dnl aclocal-1.4 backwards compatibility:
3672 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3675 # _LT_COMPILER_NO_RTTI([TAGNAME])
3676 # -------------------------------
3677 m4_defun([_LT_COMPILER_NO_RTTI],
3678 [m4_require([_LT_TAG_COMPILER])dnl
3680 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3682 if test yes = "$GCC"; then
3683   case $cc_basename in
3684   nvcc*)
3685     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3686   *)
3687     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3688   esac
3690   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3691     lt_cv_prog_compiler_rtti_exceptions,
3692     [-fno-rtti -fno-exceptions], [],
3693     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3695 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3696         [Compiler flag to turn off builtin functions])
3697 ])# _LT_COMPILER_NO_RTTI
3700 # _LT_CMD_GLOBAL_SYMBOLS
3701 # ----------------------
3702 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3703 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3704 AC_REQUIRE([AC_PROG_CC])dnl
3705 AC_REQUIRE([AC_PROG_AWK])dnl
3706 AC_REQUIRE([LT_PATH_NM])dnl
3707 AC_REQUIRE([LT_PATH_LD])dnl
3708 m4_require([_LT_DECL_SED])dnl
3709 m4_require([_LT_DECL_EGREP])dnl
3710 m4_require([_LT_TAG_COMPILER])dnl
3712 # Check for command to grab the raw symbol name followed by C symbol from nm.
3713 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3714 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3716 # These are sane defaults that work on at least a few old systems.
3717 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3719 # Character class describing NM global symbol codes.
3720 symcode='[[BCDEGRST]]'
3722 # Regexp to match symbols that can be accessed directly from C.
3723 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3725 # Define system-specific variables.
3726 case $host_os in
3727 aix*)
3728   symcode='[[BCDT]]'
3729   ;;
3730 cygwin* | mingw* | pw32* | cegcc*)
3731   symcode='[[ABCDGISTW]]'
3732   ;;
3733 hpux*)
3734   if test ia64 = "$host_cpu"; then
3735     symcode='[[ABCDEGRST]]'
3736   fi
3737   ;;
3738 irix* | nonstopux*)
3739   symcode='[[BCDEGRST]]'
3740   ;;
3741 osf*)
3742   symcode='[[BCDEGQRST]]'
3743   ;;
3744 solaris*)
3745   symcode='[[BDRT]]'
3746   ;;
3747 sco3.2v5*)
3748   symcode='[[DT]]'
3749   ;;
3750 sysv4.2uw2*)
3751   symcode='[[DT]]'
3752   ;;
3753 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3754   symcode='[[ABDT]]'
3755   ;;
3756 sysv4)
3757   symcode='[[DFNSTU]]'
3758   ;;
3759 esac
3761 # If we're using GNU nm, then use its standard symbol codes.
3762 case `$NM -V 2>&1` in
3763 *GNU* | *'with BFD'*)
3764   symcode='[[ABCDGIRSTW]]' ;;
3765 esac
3767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3768   # Gets list of data symbols to import.
3769   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3770   # Adjust the below global symbol transforms to fixup imported variables.
3771   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3772   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
3773   lt_c_name_lib_hook="\
3774   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
3775   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
3776 else
3777   # Disable hooks by default.
3778   lt_cv_sys_global_symbol_to_import=
3779   lt_cdecl_hook=
3780   lt_c_name_hook=
3781   lt_c_name_lib_hook=
3784 # Transform an extracted symbol line into a proper C declaration.
3785 # Some systems (esp. on ia64) link data and code symbols differently,
3786 # so use this general approach.
3787 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3788 $lt_cdecl_hook\
3789 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3790 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3792 # Transform an extracted symbol line into symbol name and symbol address
3793 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3794 $lt_c_name_hook\
3795 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
3796 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
3798 # Transform an extracted symbol line into symbol name with lib prefix and
3799 # symbol address.
3800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
3801 $lt_c_name_lib_hook\
3802 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
3803 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
3804 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
3806 # Handle CRLF in mingw tool chain
3807 opt_cr=
3808 case $build_os in
3809 mingw*)
3810   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3811   ;;
3812 esac
3814 # Try without a prefix underscore, then with it.
3815 for ac_symprfx in "" "_"; do
3817   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3818   symxfrm="\\1 $ac_symprfx\\2 \\2"
3820   # Write the raw and C identifiers.
3821   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3822     # Fake it for dumpbin and say T for any non-static function,
3823     # D for any global variable and I for any imported variable.
3824     # Also find C++ and __fastcall symbols from MSVC++,
3825     # which start with @ or ?.
3826     lt_cv_sys_global_symbol_pipe="$AWK ['"\
3827 "     {last_section=section; section=\$ 3};"\
3828 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3829 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3830 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
3831 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
3832 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
3833 "     \$ 0!~/External *\|/{next};"\
3834 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3835 "     {if(hide[section]) next};"\
3836 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
3837 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
3838 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
3839 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
3840 "     ' prfx=^$ac_symprfx]"
3841   else
3842     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3843   fi
3844   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3846   # Check to see that the pipe works correctly.
3847   pipe_works=no
3849   rm -f conftest*
3850   cat > conftest.$ac_ext <<_LT_EOF
3851 #ifdef __cplusplus
3852 extern "C" {
3853 #endif
3854 char nm_test_var;
3855 void nm_test_func(void);
3856 void nm_test_func(void){}
3857 #ifdef __cplusplus
3859 #endif
3860 int main(){nm_test_var='a';nm_test_func();return(0);}
3861 _LT_EOF
3863   if AC_TRY_EVAL(ac_compile); then
3864     # Now try to grab the symbols.
3865     nlist=conftest.nm
3866     if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3867       # Try sorting and uniquifying the output.
3868       if sort "$nlist" | uniq > "$nlist"T; then
3869         mv -f "$nlist"T "$nlist"
3870       else
3871         rm -f "$nlist"T
3872       fi
3874       # Make sure that we snagged all the symbols we need.
3875       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3876         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3877           cat <<_LT_EOF > conftest.$ac_ext
3878 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
3879 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
3880 /* DATA imports from DLLs on WIN32 can't be const, because runtime
3881    relocations are performed -- see ld's documentation on pseudo-relocs.  */
3882 # define LT@&t@_DLSYM_CONST
3883 #elif defined __osf__
3884 /* This system does not cope well with relocations in const data.  */
3885 # define LT@&t@_DLSYM_CONST
3886 #else
3887 # define LT@&t@_DLSYM_CONST const
3888 #endif
3890 #ifdef __cplusplus
3891 extern "C" {
3892 #endif
3894 _LT_EOF
3895           # Now generate the symbol file.
3896           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3898           cat <<_LT_EOF >> conftest.$ac_ext
3900 /* The mapping between symbol names and symbols.  */
3901 LT@&t@_DLSYM_CONST struct {
3902   const char *name;
3903   void       *address;
3905 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3907   { "@PROGRAM@", (void *) 0 },
3908 _LT_EOF
3909           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3910           cat <<\_LT_EOF >> conftest.$ac_ext
3911   {0, (void *) 0}
3914 /* This works around a problem in FreeBSD linker */
3915 #ifdef FREEBSD_WORKAROUND
3916 static const void *lt_preloaded_setup() {
3917   return lt__PROGRAM__LTX_preloaded_symbols;
3919 #endif
3921 #ifdef __cplusplus
3923 #endif
3924 _LT_EOF
3925           # Now try linking the two files.
3926           mv conftest.$ac_objext conftstm.$ac_objext
3927           lt_globsym_save_LIBS=$LIBS
3928           lt_globsym_save_CFLAGS=$CFLAGS
3929           LIBS=conftstm.$ac_objext
3930           CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3931           if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
3932             pipe_works=yes
3933           fi
3934           LIBS=$lt_globsym_save_LIBS
3935           CFLAGS=$lt_globsym_save_CFLAGS
3936         else
3937           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3938         fi
3939       else
3940         echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3941       fi
3942     else
3943       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3944     fi
3945   else
3946     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3947     cat conftest.$ac_ext >&5
3948   fi
3949   rm -rf conftest* conftst*
3951   # Do not use the global_symbol_pipe unless it works.
3952   if test yes = "$pipe_works"; then
3953     break
3954   else
3955     lt_cv_sys_global_symbol_pipe=
3956   fi
3957 done
3959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3960   lt_cv_sys_global_symbol_to_cdecl=
3962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3963   AC_MSG_RESULT(failed)
3964 else
3965   AC_MSG_RESULT(ok)
3968 # Response file support.
3969 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3970   nm_file_list_spec='@'
3971 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3972   nm_file_list_spec='@'
3975 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3976     [Take the output of nm and produce a listing of raw symbols and C names])
3977 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3978     [Transform the output of nm in a proper C declaration])
3979 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
3980     [Transform the output of nm into a list of symbols to manually relocate])
3981 _LT_DECL([global_symbol_to_c_name_address],
3982     [lt_cv_sys_global_symbol_to_c_name_address], [1],
3983     [Transform the output of nm in a C name address pair])
3984 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3985     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3986     [Transform the output of nm in a C name address pair when lib prefix is needed])
3987 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
3988     [The name lister interface])
3989 _LT_DECL([], [nm_file_list_spec], [1],
3990     [Specify filename containing input files for $NM])
3991 ]) # _LT_CMD_GLOBAL_SYMBOLS
3994 # _LT_COMPILER_PIC([TAGNAME])
3995 # ---------------------------
3996 m4_defun([_LT_COMPILER_PIC],
3997 [m4_require([_LT_TAG_COMPILER])dnl
3998 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3999 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4000 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4002 m4_if([$1], [CXX], [
4003   # C++ specific cases for pic, static, wl, etc.
4004   if test yes = "$GXX"; then
4005     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4006     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4008     case $host_os in
4009     aix*)
4010       # All AIX code is PIC.
4011       if test ia64 = "$host_cpu"; then
4012         # AIX 5 now supports IA64 processor
4013         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4014       fi
4015       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4016       ;;
4018     amigaos*)
4019       case $host_cpu in
4020       powerpc)
4021             # see comment about AmigaOS4 .so support
4022             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4023         ;;
4024       m68k)
4025             # FIXME: we need at least 68020 code to build shared libraries, but
4026             # adding the '-m68020' flag to GCC prevents building anything better,
4027             # like '-m68040'.
4028             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4029         ;;
4030       esac
4031       ;;
4033     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4034       # PIC is the default for these OSes.
4035       ;;
4036     mingw* | cygwin* | os2* | pw32* | cegcc*)
4037       # This hack is so that the source file can tell whether it is being
4038       # built for inclusion in a dll (and should export symbols for example).
4039       # Although the cygwin gcc ignores -fPIC, still need this for old-style
4040       # (--disable-auto-import) libraries
4041       m4_if([$1], [GCJ], [],
4042         [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4043       ;;
4044     darwin* | rhapsody*)
4045       # PIC is the default on this platform
4046       # Common symbols not allowed in MH_DYLIB files
4047       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4048       ;;
4049     *djgpp*)
4050       # DJGPP does not support shared libraries at all
4051       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4052       ;;
4053     haiku*)
4054       # PIC is the default for Haiku.
4055       # The "-static" flag exists, but is broken.
4056       _LT_TAGVAR(lt_prog_compiler_static, $1)=
4057       ;;
4058     interix[[3-9]]*)
4059       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4060       # Instead, we relocate shared libraries at runtime.
4061       ;;
4062     sysv4*MP*)
4063       if test -d /usr/nec; then
4064         _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4065       fi
4066       ;;
4067     hpux*)
4068       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4069       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4070       # sets the default TLS model and affects inlining.
4071       case $host_cpu in
4072       hppa*64*)
4073         ;;
4074       *)
4075         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4076         ;;
4077       esac
4078       ;;
4079     *qnx* | *nto*)
4080       # QNX uses GNU C++, but need to define -shared option too, otherwise
4081       # it will coredump.
4082       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4083       ;;
4084     *)
4085       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4086       ;;
4087     esac
4088   else
4089     case $host_os in
4090       aix[[4-9]]*)
4091         # All AIX code is PIC.
4092         if test ia64 = "$host_cpu"; then
4093           # AIX 5 now supports IA64 processor
4094           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4095         else
4096           _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4097         fi
4098         ;;
4099       chorus*)
4100         case $cc_basename in
4101         cxch68*)
4102           # Green Hills C++ Compiler
4103           # _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"
4104           ;;
4105         esac
4106         ;;
4107       mingw* | cygwin* | os2* | pw32* | cegcc*)
4108         # This hack is so that the source file can tell whether it is being
4109         # built for inclusion in a dll (and should export symbols for example).
4110         m4_if([$1], [GCJ], [],
4111           [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4112         ;;
4113       dgux*)
4114         case $cc_basename in
4115           ec++*)
4116             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4117             ;;
4118           ghcx*)
4119             # Green Hills C++ Compiler
4120             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4121             ;;
4122           *)
4123             ;;
4124         esac
4125         ;;
4126       freebsd* | dragonfly*)
4127         # FreeBSD uses GNU C++
4128         ;;
4129       hpux9* | hpux10* | hpux11*)
4130         case $cc_basename in
4131           CC*)
4132             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4133             _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4134             if test ia64 != "$host_cpu"; then
4135               _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4136             fi
4137             ;;
4138           aCC*)
4139             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4140             _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4141             case $host_cpu in
4142             hppa*64*|ia64*)
4143               # +Z the default
4144               ;;
4145             *)
4146               _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4147               ;;
4148             esac
4149             ;;
4150           *)
4151             ;;
4152         esac
4153         ;;
4154       interix*)
4155         # This is c89, which is MS Visual C++ (no shared libs)
4156         # Anyone wants to do a port?
4157         ;;
4158       irix5* | irix6* | nonstopux*)
4159         case $cc_basename in
4160           CC*)
4161             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4162             _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4163             # CC pic flag -KPIC is the default.
4164             ;;
4165           *)
4166             ;;
4167         esac
4168         ;;
4169       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4170         case $cc_basename in
4171           KCC*)
4172             # KAI C++ Compiler
4173             _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4174             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4175             ;;
4176           ecpc* )
4177             # old Intel C++ for x86_64, which still supported -KPIC.
4178             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4179             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4180             _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4181             ;;
4182           icpc* )
4183             # Intel C++, used to be incompatible with GCC.
4184             # ICC 10 doesn't accept -KPIC any more.
4185             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4186             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4187             _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4188             ;;
4189           pgCC* | pgcpp*)
4190             # Portland Group C++ compiler
4191             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4192             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4193             _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4194             ;;
4195           cxx*)
4196             # Compaq C++
4197             # Make sure the PIC flag is empty.  It appears that all Alpha
4198             # Linux and Compaq Tru64 Unix objects are PIC.
4199             _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4200             _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4201             ;;
4202           xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4203             # IBM XL 8.0, 9.0 on PPC and BlueGene
4204             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4205             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4206             _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4207             ;;
4208           *)
4209             case `$CC -V 2>&1 | sed 5q` in
4210             *Sun\ C*)
4211               # Sun C++ 5.9
4212               _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4213               _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4214               _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4215               ;;
4216             esac
4217             ;;
4218         esac
4219         ;;
4220       lynxos*)
4221         ;;
4222       m88k*)
4223         ;;
4224       mvs*)
4225         case $cc_basename in
4226           cxx*)
4227             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4228             ;;
4229           *)
4230             ;;
4231         esac
4232         ;;
4233       netbsd*)
4234         ;;
4235       *qnx* | *nto*)
4236         # QNX uses GNU C++, but need to define -shared option too, otherwise
4237         # it will coredump.
4238         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4239         ;;
4240       osf3* | osf4* | osf5*)
4241         case $cc_basename in
4242           KCC*)
4243             _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4244             ;;
4245           RCC*)
4246             # Rational C++ 2.4.1
4247             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4248             ;;
4249           cxx*)
4250             # Digital/Compaq C++
4251             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4252             # Make sure the PIC flag is empty.  It appears that all Alpha
4253             # Linux and Compaq Tru64 Unix objects are PIC.
4254             _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4255             _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4256             ;;
4257           *)
4258             ;;
4259         esac
4260         ;;
4261       psos*)
4262         ;;
4263       solaris*)
4264         case $cc_basename in
4265           CC* | sunCC*)
4266             # Sun C++ 4.2, 5.x and Centerline C++
4267             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4268             _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4269             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4270             ;;
4271           gcx*)
4272             # Green Hills C++ Compiler
4273             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4274             ;;
4275           *)
4276             ;;
4277         esac
4278         ;;
4279       sunos4*)
4280         case $cc_basename in
4281           CC*)
4282             # Sun C++ 4.x
4283             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4284             _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4285             ;;
4286           lcc*)
4287             # Lucid
4288             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4289             ;;
4290           *)
4291             ;;
4292         esac
4293         ;;
4294       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4295         case $cc_basename in
4296           CC*)
4297             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4298             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4299             _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4300             ;;
4301         esac
4302         ;;
4303       tandem*)
4304         case $cc_basename in
4305           NCC*)
4306             # NonStop-UX NCC 3.20
4307             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4308             ;;
4309           *)
4310             ;;
4311         esac
4312         ;;
4313       vxworks*)
4314         ;;
4315       *)
4316         _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4317         ;;
4318     esac
4319   fi
4322   if test yes = "$GCC"; then
4323     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4324     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4326     case $host_os in
4327       aix*)
4328       # All AIX code is PIC.
4329       if test ia64 = "$host_cpu"; then
4330         # AIX 5 now supports IA64 processor
4331         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4332       fi
4333       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4334       ;;
4336     amigaos*)
4337       case $host_cpu in
4338       powerpc)
4339             # see comment about AmigaOS4 .so support
4340             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4341         ;;
4342       m68k)
4343             # FIXME: we need at least 68020 code to build shared libraries, but
4344             # adding the '-m68020' flag to GCC prevents building anything better,
4345             # like '-m68040'.
4346             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4347         ;;
4348       esac
4349       ;;
4351     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4352       # PIC is the default for these OSes.
4353       ;;
4355     mingw* | cygwin* | pw32* | os2* | cegcc*)
4356       # This hack is so that the source file can tell whether it is being
4357       # built for inclusion in a dll (and should export symbols for example).
4358       # Although the cygwin gcc ignores -fPIC, still need this for old-style
4359       # (--disable-auto-import) libraries
4360       m4_if([$1], [GCJ], [],
4361         [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4362       ;;
4364     darwin* | rhapsody*)
4365       # PIC is the default on this platform
4366       # Common symbols not allowed in MH_DYLIB files
4367       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4368       ;;
4370     haiku*)
4371       # PIC is the default for Haiku.
4372       # The "-static" flag exists, but is broken.
4373       _LT_TAGVAR(lt_prog_compiler_static, $1)=
4374       ;;
4376     hpux*)
4377       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4378       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4379       # sets the default TLS model and affects inlining.
4380       case $host_cpu in
4381       hppa*64*)
4382         # +Z the default
4383         ;;
4384       *)
4385         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4386         ;;
4387       esac
4388       ;;
4390     interix[[3-9]]*)
4391       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4392       # Instead, we relocate shared libraries at runtime.
4393       ;;
4395     msdosdjgpp*)
4396       # Just because we use GCC doesn't mean we suddenly get shared libraries
4397       # on systems that don't support them.
4398       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4399       enable_shared=no
4400       ;;
4402     *nto* | *qnx*)
4403       # QNX uses GNU C++, but need to define -shared option too, otherwise
4404       # it will coredump.
4405       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4406       ;;
4408     sysv4*MP*)
4409       if test -d /usr/nec; then
4410         _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4411       fi
4412       ;;
4414     *)
4415       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4416       ;;
4417     esac
4419     case $cc_basename in
4420     nvcc*) # Cuda Compiler Driver 2.2
4421       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4422       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4423         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4424       fi
4425       ;;
4426     esac
4427   else
4428     # PORTME Check for flag to pass linker flags through the system compiler.
4429     case $host_os in
4430     aix*)
4431       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4432       if test ia64 = "$host_cpu"; then
4433         # AIX 5 now supports IA64 processor
4434         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4435       else
4436         _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4437       fi
4438       ;;
4440     darwin* | rhapsody*)
4441       # PIC is the default on this platform
4442       # Common symbols not allowed in MH_DYLIB files
4443       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4444       case $cc_basename in
4445       nagfor*)
4446         # NAG Fortran compiler
4447         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4448         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4449         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4450         ;;
4451       esac
4452       ;;
4454     mingw* | cygwin* | pw32* | os2* | cegcc*)
4455       # This hack is so that the source file can tell whether it is being
4456       # built for inclusion in a dll (and should export symbols for example).
4457       m4_if([$1], [GCJ], [],
4458         [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4459       ;;
4461     hpux9* | hpux10* | hpux11*)
4462       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4463       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4464       # not for PA HP-UX.
4465       case $host_cpu in
4466       hppa*64*|ia64*)
4467         # +Z the default
4468         ;;
4469       *)
4470         _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4471         ;;
4472       esac
4473       # Is there a better lt_prog_compiler_static that works with the bundled CC?
4474       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4475       ;;
4477     irix5* | irix6* | nonstopux*)
4478       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4479       # PIC (with -KPIC) is the default.
4480       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4481       ;;
4483     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4484       case $cc_basename in
4485       # old Intel for x86_64, which still supported -KPIC.
4486       ecc*)
4487         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4488         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4489         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4490         ;;
4491       # icc used to be incompatible with GCC.
4492       # ICC 10 doesn't accept -KPIC any more.
4493       icc* | ifort*)
4494         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4495         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4496         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4497         ;;
4498       # Lahey Fortran 8.1.
4499       lf95*)
4500         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4501         _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4502         _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4503         ;;
4504       nagfor*)
4505         # NAG Fortran compiler
4506         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4507         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4508         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4509         ;;
4510       tcc*)
4511         # Fabrice Bellard et al's Tiny C Compiler
4512         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4513         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4514         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4515         ;;
4516       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4517         # Portland Group compilers (*not* the Pentium gcc compiler,
4518         # which looks to be a dead project)
4519         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4520         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4521         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4522         ;;
4523       ccc*)
4524         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4525         # All Alpha code is PIC.
4526         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4527         ;;
4528       xl* | bgxl* | bgf* | mpixl*)
4529         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4530         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4531         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4532         _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4533         ;;
4534       *)
4535         case `$CC -V 2>&1 | sed 5q` in
4536         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4537           # Sun Fortran 8.3 passes all unrecognized flags to the linker
4538           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4539           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4540           _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4541           ;;
4542         *Sun\ F* | *Sun*Fortran*)
4543           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4544           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4545           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4546           ;;
4547         *Sun\ C*)
4548           # Sun C 5.9
4549           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4550           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4551           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4552           ;;
4553         *Intel*\ [[CF]]*Compiler*)
4554           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4555           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4556           _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4557           ;;
4558         *Portland\ Group*)
4559           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4560           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4561           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4562           ;;
4563         esac
4564         ;;
4565       esac
4566       ;;
4568     newsos6)
4569       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4570       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4571       ;;
4573     *nto* | *qnx*)
4574       # QNX uses GNU C++, but need to define -shared option too, otherwise
4575       # it will coredump.
4576       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4577       ;;
4579     osf3* | osf4* | osf5*)
4580       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4581       # All OSF/1 code is PIC.
4582       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4583       ;;
4585     rdos*)
4586       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4587       ;;
4589     solaris*)
4590       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4591       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4592       case $cc_basename in
4593       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4594         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4595       *)
4596         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4597       esac
4598       ;;
4600     sunos4*)
4601       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4602       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4603       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4604       ;;
4606     sysv4 | sysv4.2uw2* | sysv4.3*)
4607       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4609       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4610       ;;
4612     sysv4*MP*)
4613       if test -d /usr/nec; then
4614         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4615         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4616       fi
4617       ;;
4619     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4620       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4621       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4622       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4623       ;;
4625     unicos*)
4626       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4627       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4628       ;;
4630     uts4*)
4631       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4632       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4633       ;;
4635     *)
4636       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4637       ;;
4638     esac
4639   fi
4641 case $host_os in
4642   # For platforms that do not support PIC, -DPIC is meaningless:
4643   *djgpp*)
4644     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4645     ;;
4646   *)
4647     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4648     ;;
4649 esac
4651 AC_CACHE_CHECK([for $compiler option to produce PIC],
4652   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4653   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4654 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4657 # Check to make sure the PIC flag actually works.
4659 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4660   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4661     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4662     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4663     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4664      "" | " "*) ;;
4665      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4666      esac],
4667     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4668      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4670 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4671         [Additional compiler flags for building library objects])
4673 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4674         [How to pass a linker flag through the compiler])
4676 # Check to make sure the static flag actually works.
4678 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4679 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4680   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4681   $lt_tmp_static_flag,
4682   [],
4683   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4684 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4685         [Compiler flag to prevent dynamic linking])
4686 ])# _LT_COMPILER_PIC
4689 # _LT_LINKER_SHLIBS([TAGNAME])
4690 # ----------------------------
4691 # See if the linker supports building shared libraries.
4692 m4_defun([_LT_LINKER_SHLIBS],
4693 [AC_REQUIRE([LT_PATH_LD])dnl
4694 AC_REQUIRE([LT_PATH_NM])dnl
4695 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4696 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4697 m4_require([_LT_DECL_EGREP])dnl
4698 m4_require([_LT_DECL_SED])dnl
4699 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4700 m4_require([_LT_TAG_COMPILER])dnl
4701 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4702 m4_if([$1], [CXX], [
4703   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4704   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4705   case $host_os in
4706   aix[[4-9]]*)
4707     # If we're using GNU nm, then we don't want the "-C" option.
4708     # -C means demangle to AIX nm, but means don't demangle with GNU nm
4709     # Also, AIX nm treats weak defined symbols like other global defined
4710     # symbols, whereas GNU nm marks them as "W".
4711     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4712       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4713     else
4714       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4715     fi
4716     ;;
4717   pw32*)
4718     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4719     ;;
4720   cygwin* | mingw* | cegcc*)
4721     case $cc_basename in
4722     cl*)
4723       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4724       ;;
4725     *)
4726       _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'
4727       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4728       ;;
4729     esac
4730     ;;
4731   *)
4732     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4733     ;;
4734   esac
4735 ], [
4736   runpath_var=
4737   _LT_TAGVAR(allow_undefined_flag, $1)=
4738   _LT_TAGVAR(always_export_symbols, $1)=no
4739   _LT_TAGVAR(archive_cmds, $1)=
4740   _LT_TAGVAR(archive_expsym_cmds, $1)=
4741   _LT_TAGVAR(compiler_needs_object, $1)=no
4742   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4743   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4744   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4745   _LT_TAGVAR(hardcode_automatic, $1)=no
4746   _LT_TAGVAR(hardcode_direct, $1)=no
4747   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4748   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4749   _LT_TAGVAR(hardcode_libdir_separator, $1)=
4750   _LT_TAGVAR(hardcode_minus_L, $1)=no
4751   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4752   _LT_TAGVAR(inherit_rpath, $1)=no
4753   _LT_TAGVAR(link_all_deplibs, $1)=unknown
4754   _LT_TAGVAR(module_cmds, $1)=
4755   _LT_TAGVAR(module_expsym_cmds, $1)=
4756   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4757   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4758   _LT_TAGVAR(thread_safe_flag_spec, $1)=
4759   _LT_TAGVAR(whole_archive_flag_spec, $1)=
4760   # include_expsyms should be a list of space-separated symbols to be *always*
4761   # included in the symbol list
4762   _LT_TAGVAR(include_expsyms, $1)=
4763   # exclude_expsyms can be an extended regexp of symbols to exclude
4764   # it will be wrapped by ' (' and ')$', so one must not match beginning or
4765   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4766   # as well as any symbol that contains 'd'.
4767   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4768   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4769   # platforms (ab)use it in PIC code, but their linkers get confused if
4770   # the symbol is explicitly referenced.  Since portable code cannot
4771   # rely on this symbol name, it's probably fine to never include it in
4772   # preloaded symbol tables.
4773   # Exclude shared library initialization/finalization symbols.
4774 dnl Note also adjust exclude_expsyms for C++ above.
4775   extract_expsyms_cmds=
4777   case $host_os in
4778   cygwin* | mingw* | pw32* | cegcc*)
4779     # FIXME: the MSVC++ port hasn't been tested in a loooong time
4780     # When not using gcc, we currently assume that we are using
4781     # Microsoft Visual C++.
4782     if test yes != "$GCC"; then
4783       with_gnu_ld=no
4784     fi
4785     ;;
4786   interix*)
4787     # we just hope/assume this is gcc and not c89 (= MSVC++)
4788     with_gnu_ld=yes
4789     ;;
4790   openbsd* | bitrig*)
4791     with_gnu_ld=no
4792     ;;
4793   esac
4795   _LT_TAGVAR(ld_shlibs, $1)=yes
4797   # On some targets, GNU ld is compatible enough with the native linker
4798   # that we're better off using the native interface for both.
4799   lt_use_gnu_ld_interface=no
4800   if test yes = "$with_gnu_ld"; then
4801     case $host_os in
4802       aix*)
4803         # The AIX port of GNU ld has always aspired to compatibility
4804         # with the native linker.  However, as the warning in the GNU ld
4805         # block says, versions before 2.19.5* couldn't really create working
4806         # shared libraries, regardless of the interface used.
4807         case `$LD -v 2>&1` in
4808           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4809           *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4810           *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4811           *)
4812             lt_use_gnu_ld_interface=yes
4813             ;;
4814         esac
4815         ;;
4816       *)
4817         lt_use_gnu_ld_interface=yes
4818         ;;
4819     esac
4820   fi
4822   if test yes = "$lt_use_gnu_ld_interface"; then
4823     # If archive_cmds runs LD, not CC, wlarc should be empty
4824     wlarc='$wl'
4826     # Set some defaults for GNU ld with shared library support. These
4827     # are reset later if shared libraries are not supported. Putting them
4828     # here allows them to be overridden if necessary.
4829     runpath_var=LD_RUN_PATH
4830     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
4831     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
4832     # ancient GNU ld didn't support --whole-archive et. al.
4833     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4834       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
4835     else
4836       _LT_TAGVAR(whole_archive_flag_spec, $1)=
4837     fi
4838     supports_anon_versioning=no
4839     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
4840       *GNU\ gold*) supports_anon_versioning=yes ;;
4841       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4842       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4843       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4844       *\ 2.11.*) ;; # other 2.11 versions
4845       *) supports_anon_versioning=yes ;;
4846     esac
4848     # See if GNU ld supports shared libraries.
4849     case $host_os in
4850     aix[[3-9]]*)
4851       # On AIX/PPC, the GNU linker is very broken
4852       if test ia64 != "$host_cpu"; then
4853         _LT_TAGVAR(ld_shlibs, $1)=no
4854         cat <<_LT_EOF 1>&2
4856 *** Warning: the GNU linker, at least up to release 2.19, is reported
4857 *** to be unable to reliably create shared libraries on AIX.
4858 *** Therefore, libtool is disabling shared libraries support.  If you
4859 *** really care for shared libraries, you may want to install binutils
4860 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4861 *** You will then need to restart the configuration process.
4863 _LT_EOF
4864       fi
4865       ;;
4867     amigaos*)
4868       case $host_cpu in
4869       powerpc)
4870             # see comment about AmigaOS4 .so support
4871             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
4872             _LT_TAGVAR(archive_expsym_cmds, $1)=''
4873         ;;
4874       m68k)
4875             _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)'
4876             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4877             _LT_TAGVAR(hardcode_minus_L, $1)=yes
4878         ;;
4879       esac
4880       ;;
4882     beos*)
4883       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4884         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4885         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4886         # support --undefined.  This deserves some investigation.  FIXME
4887         _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
4888       else
4889         _LT_TAGVAR(ld_shlibs, $1)=no
4890       fi
4891       ;;
4893     cygwin* | mingw* | pw32* | cegcc*)
4894       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4895       # as there is no search path for DLLs.
4896       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4897       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
4898       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4899       _LT_TAGVAR(always_export_symbols, $1)=no
4900       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4901       _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'
4902       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4904       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4905         _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'
4906         # If the export-symbols file already is a .def file, use it as
4907         # is; otherwise, prepend EXPORTS...
4908         _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
4909           cp $export_symbols $output_objdir/$soname.def;
4910         else
4911           echo EXPORTS > $output_objdir/$soname.def;
4912           cat $export_symbols >> $output_objdir/$soname.def;
4913         fi~
4914         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4915       else
4916         _LT_TAGVAR(ld_shlibs, $1)=no
4917       fi
4918       ;;
4920     haiku*)
4921       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
4922       _LT_TAGVAR(link_all_deplibs, $1)=yes
4923       ;;
4925     interix[[3-9]]*)
4926       _LT_TAGVAR(hardcode_direct, $1)=no
4927       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4928       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
4929       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
4930       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4931       # Instead, shared libraries are loaded at an image base (0x10000000 by
4932       # default) and relocated if they conflict, which is a slow very memory
4933       # consuming and fragmenting process.  To avoid this, we pick a random,
4934       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4935       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4936       _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'
4937       _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'
4938       ;;
4940     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4941       tmp_diet=no
4942       if test linux-dietlibc = "$host_os"; then
4943         case $cc_basename in
4944           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
4945         esac
4946       fi
4947       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4948          && test no = "$tmp_diet"
4949       then
4950         tmp_addflag=' $pic_flag'
4951         tmp_sharedflag='-shared'
4952         case $cc_basename,$host_cpu in
4953         pgcc*)                          # Portland Group C compiler
4954           _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'
4955           tmp_addflag=' $pic_flag'
4956           ;;
4957         pgf77* | pgf90* | pgf95* | pgfortran*)
4958                                         # Portland Group f77 and f90 compilers
4959           _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'
4960           tmp_addflag=' $pic_flag -Mnomain' ;;
4961         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4962           tmp_addflag=' -i_dynamic' ;;
4963         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
4964           tmp_addflag=' -i_dynamic -nofor_main' ;;
4965         ifc* | ifort*)                  # Intel Fortran compiler
4966           tmp_addflag=' -nofor_main' ;;
4967         lf95*)                          # Lahey Fortran 8.1
4968           _LT_TAGVAR(whole_archive_flag_spec, $1)=
4969           tmp_sharedflag='--shared' ;;
4970         nagfor*)                        # NAGFOR 5.3
4971           tmp_sharedflag='-Wl,-shared' ;;
4972         xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4973           tmp_sharedflag='-qmkshrobj'
4974           tmp_addflag= ;;
4975         nvcc*)  # Cuda Compiler Driver 2.2
4976           _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'
4977           _LT_TAGVAR(compiler_needs_object, $1)=yes
4978           ;;
4979         esac
4980         case `$CC -V 2>&1 | sed 5q` in
4981         *Sun\ C*)                       # Sun C 5.9
4982           _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'
4983           _LT_TAGVAR(compiler_needs_object, $1)=yes
4984           tmp_sharedflag='-G' ;;
4985         *Sun\ F*)                       # Sun Fortran 8.3
4986           tmp_sharedflag='-G' ;;
4987         esac
4988         _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
4990         if test yes = "$supports_anon_versioning"; then
4991           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4992             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4993             echo "local: *; };" >> $output_objdir/$libname.ver~
4994             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
4995         fi
4997         case $cc_basename in
4998         xlf* | bgf* | bgxlf* | mpixlf*)
4999           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5000           _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5001           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5002           _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5003           if test yes = "$supports_anon_versioning"; then
5004             _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5005               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5006               echo "local: *; };" >> $output_objdir/$libname.ver~
5007               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5008           fi
5009           ;;
5010         esac
5011       else
5012         _LT_TAGVAR(ld_shlibs, $1)=no
5013       fi
5014       ;;
5016     netbsd*)
5017       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5018         _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5019         wlarc=
5020       else
5021         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5022         _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'
5023       fi
5024       ;;
5026     solaris*)
5027       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5028         _LT_TAGVAR(ld_shlibs, $1)=no
5029         cat <<_LT_EOF 1>&2
5031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5032 *** create shared libraries on Solaris systems.  Therefore, libtool
5033 *** is disabling shared libraries support.  We urge you to upgrade GNU
5034 *** binutils to release 2.9.1 or newer.  Another option is to modify
5035 *** your PATH or compiler configuration so that the native linker is
5036 *** used, and then restart.
5038 _LT_EOF
5039       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5040         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5041         _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'
5042       else
5043         _LT_TAGVAR(ld_shlibs, $1)=no
5044       fi
5045       ;;
5047     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5048       case `$LD -v 2>&1` in
5049         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5050         _LT_TAGVAR(ld_shlibs, $1)=no
5051         cat <<_LT_EOF 1>&2
5053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5054 *** reliably create shared libraries on SCO systems.  Therefore, libtool
5055 *** is disabling shared libraries support.  We urge you to upgrade GNU
5056 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5057 *** your PATH or compiler configuration so that the native linker is
5058 *** used, and then restart.
5060 _LT_EOF
5061         ;;
5062         *)
5063           # For security reasons, it is highly recommended that you always
5064           # use absolute paths for naming shared libraries, and exclude the
5065           # DT_RUNPATH tag from executables and libraries.  But doing so
5066           # requires that you compile everything twice, which is a pain.
5067           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5068             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5069             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5070             _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'
5071           else
5072             _LT_TAGVAR(ld_shlibs, $1)=no
5073           fi
5074         ;;
5075       esac
5076       ;;
5078     sunos4*)
5079       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5080       wlarc=
5081       _LT_TAGVAR(hardcode_direct, $1)=yes
5082       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5083       ;;
5085     *)
5086       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5087         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5088         _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'
5089       else
5090         _LT_TAGVAR(ld_shlibs, $1)=no
5091       fi
5092       ;;
5093     esac
5095     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5096       runpath_var=
5097       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5098       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5099       _LT_TAGVAR(whole_archive_flag_spec, $1)=
5100     fi
5101   else
5102     # PORTME fill in a description of your system's linker (not GNU ld)
5103     case $host_os in
5104     aix3*)
5105       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5106       _LT_TAGVAR(always_export_symbols, $1)=yes
5107       _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'
5108       # Note: this linker hardcodes the directories in LIBPATH if there
5109       # are no directories specified by -L.
5110       _LT_TAGVAR(hardcode_minus_L, $1)=yes
5111       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5112         # Neither direct hardcoding nor static linking is supported with a
5113         # broken collect2.
5114         _LT_TAGVAR(hardcode_direct, $1)=unsupported
5115       fi
5116       ;;
5118     aix[[4-9]]*)
5119       if test ia64 = "$host_cpu"; then
5120         # On IA64, the linker does run time linking by default, so we don't
5121         # have to do anything special.
5122         aix_use_runtimelinking=no
5123         exp_sym_flag='-Bexport'
5124         no_entry_flag=
5125       else
5126         # If we're using GNU nm, then we don't want the "-C" option.
5127         # -C means demangle to AIX nm, but means don't demangle with GNU nm
5128         # Also, AIX nm treats weak defined symbols like other global
5129         # defined symbols, whereas GNU nm marks them as "W".
5130         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5131           _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5132         else
5133           _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5134         fi
5135         aix_use_runtimelinking=no
5137         # Test if we are trying to use run time linking or normal
5138         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5139         # need to do runtime linking.
5140         case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5141           for ld_flag in $LDFLAGS; do
5142           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5143             aix_use_runtimelinking=yes
5144             break
5145           fi
5146           done
5147           ;;
5148         esac
5150         exp_sym_flag='-bexport'
5151         no_entry_flag='-bnoentry'
5152       fi
5154       # When large executables or shared objects are built, AIX ld can
5155       # have problems creating the table of contents.  If linking a library
5156       # or program results in "error TOC overflow" add -mminimal-toc to
5157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5160       _LT_TAGVAR(archive_cmds, $1)=''
5161       _LT_TAGVAR(hardcode_direct, $1)=yes
5162       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5163       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5164       _LT_TAGVAR(link_all_deplibs, $1)=yes
5165       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5167       if test yes = "$GCC"; then
5168         case $host_os in aix4.[[012]]|aix4.[[012]].*)
5169         # We only want to do this on AIX 4.2 and lower, the check
5170         # below for broken collect2 doesn't work under 4.3+
5171           collect2name=`$CC -print-prog-name=collect2`
5172           if test -f "$collect2name" &&
5173            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5174           then
5175           # We have reworked collect2
5176           :
5177           else
5178           # We have old collect2
5179           _LT_TAGVAR(hardcode_direct, $1)=unsupported
5180           # It fails to find uninstalled libraries when the uninstalled
5181           # path is not listed in the libpath.  Setting hardcode_minus_L
5182           # to unsupported forces relinking
5183           _LT_TAGVAR(hardcode_minus_L, $1)=yes
5184           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5185           _LT_TAGVAR(hardcode_libdir_separator, $1)=
5186           fi
5187           ;;
5188         esac
5189         shared_flag='-shared'
5190         if test yes = "$aix_use_runtimelinking"; then
5191           shared_flag="$shared_flag "'$wl-G'
5192         fi
5193       else
5194         # not using gcc
5195         if test ia64 = "$host_cpu"; then
5196         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5197         # chokes on -Wl,-G. The following line is correct:
5198           shared_flag='-G'
5199         else
5200           if test yes = "$aix_use_runtimelinking"; then
5201             shared_flag='$wl-G'
5202           else
5203             shared_flag='$wl-bM:SRE'
5204           fi
5205         fi
5206       fi
5208       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5209       # It seems that -bexpall does not export symbols beginning with
5210       # underscore (_), so it is better to generate a list of symbols to export.
5211       _LT_TAGVAR(always_export_symbols, $1)=yes
5212       if test yes = "$aix_use_runtimelinking"; then
5213         # Warning - without using the other runtime loading flags (-brtl),
5214         # -berok will link without error, but may produce a broken library.
5215         _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5216         # Determine the default libpath from the value encoded in an
5217         # empty executable.
5218         _LT_SYS_MODULE_PATH_AIX([$1])
5219         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5220         _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
5221       else
5222         if test ia64 = "$host_cpu"; then
5223           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5224           _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5225           _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"
5226         else
5227          # Determine the default libpath from the value encoded in an
5228          # empty executable.
5229          _LT_SYS_MODULE_PATH_AIX([$1])
5230          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5231           # Warning - without using the other run time loading flags,
5232           # -berok will link without error, but may produce a broken library.
5233           _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5234           _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5235           if test yes = "$with_gnu_ld"; then
5236             # We only use this code for GNU lds that support --whole-archive.
5237             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5238           else
5239             # Exported symbols can be pulled into shared objects from archives
5240             _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5241           fi
5242           _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5243           # This is similar to how AIX traditionally builds its shared libraries.
5244           _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5245         fi
5246       fi
5247       ;;
5249     amigaos*)
5250       case $host_cpu in
5251       powerpc)
5252             # see comment about AmigaOS4 .so support
5253             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5254             _LT_TAGVAR(archive_expsym_cmds, $1)=''
5255         ;;
5256       m68k)
5257             _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)'
5258             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5259             _LT_TAGVAR(hardcode_minus_L, $1)=yes
5260         ;;
5261       esac
5262       ;;
5264     bsdi[[45]]*)
5265       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5266       ;;
5268     cygwin* | mingw* | pw32* | cegcc*)
5269       # When not using gcc, we currently assume that we are using
5270       # Microsoft Visual C++.
5271       # hardcode_libdir_flag_spec is actually meaningless, as there is
5272       # no search path for DLLs.
5273       case $cc_basename in
5274       cl*)
5275         # Native MSVC
5276         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5277         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5278         _LT_TAGVAR(always_export_symbols, $1)=yes
5279         _LT_TAGVAR(file_list_spec, $1)='@'
5280         # Tell ltmain to make .lib files, not .a files.
5281         libext=lib
5282         # Tell ltmain to make .dll files, not .so files.
5283         shrext_cmds=.dll
5284         # FIXME: Setting linknames here is a bad hack.
5285         _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5286         _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5287             cp "$export_symbols" "$output_objdir/$soname.def";
5288             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5289           else
5290             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5291           fi~
5292           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5293           linknames='
5294         # The linker will not automatically build a static lib if we build a DLL.
5295         # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5296         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5297         _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5298         _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'
5299         # Don't use ranlib
5300         _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5301         _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5302           lt_tool_outputfile="@TOOL_OUTPUT@"~
5303           case $lt_outputfile in
5304             *.exe|*.EXE) ;;
5305             *)
5306               lt_outputfile=$lt_outputfile.exe
5307               lt_tool_outputfile=$lt_tool_outputfile.exe
5308               ;;
5309           esac~
5310           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5311             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5312             $RM "$lt_outputfile.manifest";
5313           fi'
5314         ;;
5315       *)
5316         # Assume MSVC wrapper
5317         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5318         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5319         # Tell ltmain to make .lib files, not .a files.
5320         libext=lib
5321         # Tell ltmain to make .dll files, not .so files.
5322         shrext_cmds=.dll
5323         # FIXME: Setting linknames here is a bad hack.
5324         _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5325         # The linker will automatically build a .lib file if we build a DLL.
5326         _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5327         # FIXME: Should let the user specify the lib program.
5328         _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5329         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5330         ;;
5331       esac
5332       ;;
5334     darwin* | rhapsody*)
5335       _LT_DARWIN_LINKER_FEATURES($1)
5336       ;;
5338     dgux*)
5339       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5340       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5341       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5342       ;;
5344     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5345     # support.  Future versions do this automatically, but an explicit c++rt0.o
5346     # does not break anything, and helps significantly (at the cost of a little
5347     # extra space).
5348     freebsd2.2*)
5349       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5350       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5351       _LT_TAGVAR(hardcode_direct, $1)=yes
5352       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5353       ;;
5355     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5356     freebsd2.*)
5357       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5358       _LT_TAGVAR(hardcode_direct, $1)=yes
5359       _LT_TAGVAR(hardcode_minus_L, $1)=yes
5360       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5361       ;;
5363     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5364     freebsd* | dragonfly*)
5365       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5366       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5367       _LT_TAGVAR(hardcode_direct, $1)=yes
5368       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5369       ;;
5371     hpux9*)
5372       if test yes = "$GCC"; then
5373         _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'
5374       else
5375         _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'
5376       fi
5377       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5378       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5379       _LT_TAGVAR(hardcode_direct, $1)=yes
5381       # hardcode_minus_L: Not really in the search PATH,
5382       # but as the default location of the library.
5383       _LT_TAGVAR(hardcode_minus_L, $1)=yes
5384       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5385       ;;
5387     hpux10*)
5388       if test yes,no = "$GCC,$with_gnu_ld"; then
5389         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5390       else
5391         _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5392       fi
5393       if test no = "$with_gnu_ld"; then
5394         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5395         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5396         _LT_TAGVAR(hardcode_direct, $1)=yes
5397         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5398         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5399         # hardcode_minus_L: Not really in the search PATH,
5400         # but as the default location of the library.
5401         _LT_TAGVAR(hardcode_minus_L, $1)=yes
5402       fi
5403       ;;
5405     hpux11*)
5406       if test yes,no = "$GCC,$with_gnu_ld"; then
5407         case $host_cpu in
5408         hppa*64*)
5409           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5410           ;;
5411         ia64*)
5412           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5413           ;;
5414         *)
5415           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5416           ;;
5417         esac
5418       else
5419         case $host_cpu in
5420         hppa*64*)
5421           _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5422           ;;
5423         ia64*)
5424           _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5425           ;;
5426         *)
5427         m4_if($1, [], [
5428           # Older versions of the 11.00 compiler do not understand -b yet
5429           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5430           _LT_LINKER_OPTION([if $CC understands -b],
5431             _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5432             [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5433             [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5434           [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5435           ;;
5436         esac
5437       fi
5438       if test no = "$with_gnu_ld"; then
5439         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5440         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5442         case $host_cpu in
5443         hppa*64*|ia64*)
5444           _LT_TAGVAR(hardcode_direct, $1)=no
5445           _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5446           ;;
5447         *)
5448           _LT_TAGVAR(hardcode_direct, $1)=yes
5449           _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5450           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5452           # hardcode_minus_L: Not really in the search PATH,
5453           # but as the default location of the library.
5454           _LT_TAGVAR(hardcode_minus_L, $1)=yes
5455           ;;
5456         esac
5457       fi
5458       ;;
5460     irix5* | irix6* | nonstopux*)
5461       if test yes = "$GCC"; then
5462         _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'
5463         # Try to use the -exported_symbol ld option, if it does not
5464         # work, assume that -exports_file does not work either and
5465         # implicitly export all symbols.
5466         # This should be the same for all languages, so no per-tag cache variable.
5467         AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5468           [lt_cv_irix_exported_symbol],
5469           [save_LDFLAGS=$LDFLAGS
5470            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5471            AC_LINK_IFELSE(
5472              [AC_LANG_SOURCE(
5473                 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5474                               [C++], [[int foo (void) { return 0; }]],
5475                               [Fortran 77], [[
5476       subroutine foo
5477       end]],
5478                               [Fortran], [[
5479       subroutine foo
5480       end]])])],
5481               [lt_cv_irix_exported_symbol=yes],
5482               [lt_cv_irix_exported_symbol=no])
5483            LDFLAGS=$save_LDFLAGS])
5484         if test yes = "$lt_cv_irix_exported_symbol"; then
5485           _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'
5486         fi
5487       else
5488         _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'
5489         _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'
5490       fi
5491       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5492       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5493       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5494       _LT_TAGVAR(inherit_rpath, $1)=yes
5495       _LT_TAGVAR(link_all_deplibs, $1)=yes
5496       ;;
5498     netbsd*)
5499       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5500         _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5501       else
5502         _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5503       fi
5504       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5505       _LT_TAGVAR(hardcode_direct, $1)=yes
5506       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5507       ;;
5509     newsos6)
5510       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511       _LT_TAGVAR(hardcode_direct, $1)=yes
5512       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5513       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5514       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5515       ;;
5517     *nto* | *qnx*)
5518       ;;
5520     openbsd* | bitrig*)
5521       if test -f /usr/libexec/ld.so; then
5522         _LT_TAGVAR(hardcode_direct, $1)=yes
5523         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5524         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5525         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5526           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5527           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5528           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5529           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5530         else
5531           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5532           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5533         fi
5534       else
5535         _LT_TAGVAR(ld_shlibs, $1)=no
5536       fi
5537       ;;
5539     os2*)
5540       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5541       _LT_TAGVAR(hardcode_minus_L, $1)=yes
5542       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5543       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5544       _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5545       ;;
5547     osf3*)
5548       if test yes = "$GCC"; then
5549         _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5550         _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'
5551       else
5552         _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5553         _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'
5554       fi
5555       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5556       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5557       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5558       ;;
5560     osf4* | osf5*)      # as osf3* with the addition of -msym flag
5561       if test yes = "$GCC"; then
5562         _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5563         _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'
5564         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5565       else
5566         _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5567         _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'
5568         _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~
5569           $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'
5571         # Both c and cxx compiler support -rpath directly
5572         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5573       fi
5574       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5575       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5576       ;;
5578     solaris*)
5579       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5580       if test yes = "$GCC"; then
5581         wlarc='$wl'
5582         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5583         _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5584           $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'
5585       else
5586         case `$CC -V 2>&1` in
5587         *"Compilers 5.0"*)
5588           wlarc=''
5589           _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5590           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5591             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5592           ;;
5593         *)
5594           wlarc='$wl'
5595           _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5596           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5597             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5598           ;;
5599         esac
5600       fi
5601       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5602       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5603       case $host_os in
5604       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5605       *)
5606         # The compiler driver will combine and reorder linker options,
5607         # but understands '-z linker_flag'.  GCC discards it without '$wl',
5608         # but is careful enough not to reorder.
5609         # Supported since Solaris 2.6 (maybe 2.5.1?)
5610         if test yes = "$GCC"; then
5611           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5612         else
5613           _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5614         fi
5615         ;;
5616       esac
5617       _LT_TAGVAR(link_all_deplibs, $1)=yes
5618       ;;
5620     sunos4*)
5621       if test sequent = "$host_vendor"; then
5622         # Use $CC to link under sequent, because it throws in some extra .o
5623         # files that make .init and .fini sections work.
5624         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5625       else
5626         _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5627       fi
5628       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5629       _LT_TAGVAR(hardcode_direct, $1)=yes
5630       _LT_TAGVAR(hardcode_minus_L, $1)=yes
5631       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5632       ;;
5634     sysv4)
5635       case $host_vendor in
5636         sni)
5637           _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5638           _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5639         ;;
5640         siemens)
5641           ## LD is ld it makes a PLAMLIB
5642           ## CC just makes a GrossModule.
5643           _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5644           _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5645           _LT_TAGVAR(hardcode_direct, $1)=no
5646         ;;
5647         motorola)
5648           _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649           _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5650         ;;
5651       esac
5652       runpath_var='LD_RUN_PATH'
5653       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5654       ;;
5656     sysv4.3*)
5657       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5658       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5659       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5660       ;;
5662     sysv4*MP*)
5663       if test -d /usr/nec; then
5664         _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5665         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5666         runpath_var=LD_RUN_PATH
5667         hardcode_runpath_var=yes
5668         _LT_TAGVAR(ld_shlibs, $1)=yes
5669       fi
5670       ;;
5672     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5673       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
5674       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5675       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5676       runpath_var='LD_RUN_PATH'
5678       if test yes = "$GCC"; then
5679         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5680         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5681       else
5682         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5683         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5684       fi
5685       ;;
5687     sysv5* | sco3.2v5* | sco5v6*)
5688       # Note: We CANNOT use -z defs as we might desire, because we do not
5689       # link with -lc, and that would cause any symbols used from libc to
5690       # always be unresolved, which means just about no library would
5691       # ever link correctly.  If we're not using GNU ld we use -z text
5692       # though, which does catch some bad symbols but isn't as heavy-handed
5693       # as -z defs.
5694       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
5695       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
5696       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5697       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5698       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
5699       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5700       _LT_TAGVAR(link_all_deplibs, $1)=yes
5701       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
5702       runpath_var='LD_RUN_PATH'
5704       if test yes = "$GCC"; then
5705         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5706         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5707       else
5708         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5709         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5710       fi
5711       ;;
5713     uts4*)
5714       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5715       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5716       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5717       ;;
5719     *)
5720       _LT_TAGVAR(ld_shlibs, $1)=no
5721       ;;
5722     esac
5724     if test sni = "$host_vendor"; then
5725       case $host in
5726       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5727         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
5728         ;;
5729       esac
5730     fi
5731   fi
5733 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5734 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
5736 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5738 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5739 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5740 _LT_DECL([], [extract_expsyms_cmds], [2],
5741     [The commands to extract the exported symbol list from a shared archive])
5744 # Do we need to explicitly link libc?
5746 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5747 x|xyes)
5748   # Assume -lc should be added
5749   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5751   if test yes,yes = "$GCC,$enable_shared"; then
5752     case $_LT_TAGVAR(archive_cmds, $1) in
5753     *'~'*)
5754       # FIXME: we may have to deal with multi-command sequences.
5755       ;;
5756     '$CC '*)
5757       # Test whether the compiler implicitly links with -lc since on some
5758       # systems, -lgcc has to come before -lc. If gcc already passes -lc
5759       # to ld, don't add -lc before -lgcc.
5760       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5761         [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5762         [$RM conftest*
5763         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5765         if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5766           soname=conftest
5767           lib=conftest
5768           libobjs=conftest.$ac_objext
5769           deplibs=
5770           wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5771           pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5772           compiler_flags=-v
5773           linker_flags=-v
5774           verstring=
5775           output_objdir=.
5776           libname=conftest
5777           lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5778           _LT_TAGVAR(allow_undefined_flag, $1)=
5779           if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5780           then
5781             lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5782           else
5783             lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5784           fi
5785           _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5786         else
5787           cat conftest.err 1>&5
5788         fi
5789         $RM conftest*
5790         ])
5791       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5792       ;;
5793     esac
5794   fi
5795   ;;
5796 esac
5798 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5799     [Whether or not to add -lc for building shared libraries])
5800 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5801     [enable_shared_with_static_runtimes], [0],
5802     [Whether or not to disallow shared libs when runtime libs are static])
5803 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5804     [Compiler flag to allow reflexive dlopens])
5805 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5806     [Compiler flag to generate shared objects directly from archives])
5807 _LT_TAGDECL([], [compiler_needs_object], [1],
5808     [Whether the compiler copes with passing no objects directly])
5809 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5810     [Create an old-style archive from a shared archive])
5811 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5812     [Create a temporary old-style archive to link instead of a shared archive])
5813 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5814 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5815 _LT_TAGDECL([], [module_cmds], [2],
5816     [Commands used to build a loadable module if different from building
5817     a shared archive.])
5818 _LT_TAGDECL([], [module_expsym_cmds], [2])
5819 _LT_TAGDECL([], [with_gnu_ld], [1],
5820     [Whether we are building with GNU ld or not])
5821 _LT_TAGDECL([], [allow_undefined_flag], [1],
5822     [Flag that allows shared libraries with undefined symbols to be built])
5823 _LT_TAGDECL([], [no_undefined_flag], [1],
5824     [Flag that enforces no undefined symbols])
5825 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5826     [Flag to hardcode $libdir into a binary during linking.
5827     This must work even if $libdir does not exist])
5828 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5829     [Whether we need a single "-rpath" flag with a separated argument])
5830 _LT_TAGDECL([], [hardcode_direct], [0],
5831     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
5832     DIR into the resulting binary])
5833 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5834     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
5835     DIR into the resulting binary and the resulting library dependency is
5836     "absolute", i.e impossible to change by setting $shlibpath_var if the
5837     library is relocated])
5838 _LT_TAGDECL([], [hardcode_minus_L], [0],
5839     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5840     into the resulting binary])
5841 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5842     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5843     into the resulting binary])
5844 _LT_TAGDECL([], [hardcode_automatic], [0],
5845     [Set to "yes" if building a shared library automatically hardcodes DIR
5846     into the library and all subsequent libraries and executables linked
5847     against it])
5848 _LT_TAGDECL([], [inherit_rpath], [0],
5849     [Set to yes if linker adds runtime paths of dependent libraries
5850     to runtime path list])
5851 _LT_TAGDECL([], [link_all_deplibs], [0],
5852     [Whether libtool must link a program against all its dependency libraries])
5853 _LT_TAGDECL([], [always_export_symbols], [0],
5854     [Set to "yes" if exported symbols are required])
5855 _LT_TAGDECL([], [export_symbols_cmds], [2],
5856     [The commands to list exported symbols])
5857 _LT_TAGDECL([], [exclude_expsyms], [1],
5858     [Symbols that should not be listed in the preloaded symbols])
5859 _LT_TAGDECL([], [include_expsyms], [1],
5860     [Symbols that must always be exported])
5861 _LT_TAGDECL([], [prelink_cmds], [2],
5862     [Commands necessary for linking programs (against libraries) with templates])
5863 _LT_TAGDECL([], [postlink_cmds], [2],
5864     [Commands necessary for finishing linking programs])
5865 _LT_TAGDECL([], [file_list_spec], [1],
5866     [Specify filename containing input files])
5867 dnl FIXME: Not yet implemented
5868 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5869 dnl    [Compiler flag to generate thread safe objects])
5870 ])# _LT_LINKER_SHLIBS
5873 # _LT_LANG_C_CONFIG([TAG])
5874 # ------------------------
5875 # Ensure that the configuration variables for a C compiler are suitably
5876 # defined.  These variables are subsequently used by _LT_CONFIG to write
5877 # the compiler configuration to 'libtool'.
5878 m4_defun([_LT_LANG_C_CONFIG],
5879 [m4_require([_LT_DECL_EGREP])dnl
5880 lt_save_CC=$CC
5881 AC_LANG_PUSH(C)
5883 # Source file extension for C test sources.
5884 ac_ext=c
5886 # Object file extension for compiled C test sources.
5887 objext=o
5888 _LT_TAGVAR(objext, $1)=$objext
5890 # Code to be used in simple compile tests
5891 lt_simple_compile_test_code="int some_variable = 0;"
5893 # Code to be used in simple link tests
5894 lt_simple_link_test_code='int main(){return(0);}'
5896 _LT_TAG_COMPILER
5897 # Save the default compiler, since it gets overwritten when the other
5898 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5899 compiler_DEFAULT=$CC
5901 # save warnings/boilerplate of simple test code
5902 _LT_COMPILER_BOILERPLATE
5903 _LT_LINKER_BOILERPLATE
5905 if test -n "$compiler"; then
5906   _LT_COMPILER_NO_RTTI($1)
5907   _LT_COMPILER_PIC($1)
5908   _LT_COMPILER_C_O($1)
5909   _LT_COMPILER_FILE_LOCKS($1)
5910   _LT_LINKER_SHLIBS($1)
5911   _LT_SYS_DYNAMIC_LINKER($1)
5912   _LT_LINKER_HARDCODE_LIBPATH($1)
5913   LT_SYS_DLOPEN_SELF
5914   _LT_CMD_STRIPLIB
5916   # Report what library types will actually be built
5917   AC_MSG_CHECKING([if libtool supports shared libraries])
5918   AC_MSG_RESULT([$can_build_shared])
5920   AC_MSG_CHECKING([whether to build shared libraries])
5921   test no = "$can_build_shared" && enable_shared=no
5923   # On AIX, shared libraries and static libraries use the same namespace, and
5924   # are all built from PIC.
5925   case $host_os in
5926   aix3*)
5927     test yes = "$enable_shared" && enable_static=no
5928     if test -n "$RANLIB"; then
5929       archive_cmds="$archive_cmds~\$RANLIB \$lib"
5930       postinstall_cmds='$RANLIB $lib'
5931     fi
5932     ;;
5934   aix[[4-9]]*)
5935     if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
5936       test yes = "$enable_shared" && enable_static=no
5937     fi
5938     ;;
5939   esac
5940   AC_MSG_RESULT([$enable_shared])
5942   AC_MSG_CHECKING([whether to build static libraries])
5943   # Make sure either enable_shared or enable_static is yes.
5944   test yes = "$enable_shared" || enable_static=yes
5945   AC_MSG_RESULT([$enable_static])
5947   _LT_CONFIG($1)
5949 AC_LANG_POP
5950 CC=$lt_save_CC
5951 ])# _LT_LANG_C_CONFIG
5954 # _LT_LANG_CXX_CONFIG([TAG])
5955 # --------------------------
5956 # Ensure that the configuration variables for a C++ compiler are suitably
5957 # defined.  These variables are subsequently used by _LT_CONFIG to write
5958 # the compiler configuration to 'libtool'.
5959 m4_defun([_LT_LANG_CXX_CONFIG],
5960 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5961 m4_require([_LT_DECL_EGREP])dnl
5962 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5963 if test -n "$CXX" && ( test no != "$CXX" &&
5964     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
5965     (test g++ != "$CXX"))); then
5966   AC_PROG_CXXCPP
5967 else
5968   _lt_caught_CXX_error=yes
5971 AC_LANG_PUSH(C++)
5972 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5973 _LT_TAGVAR(allow_undefined_flag, $1)=
5974 _LT_TAGVAR(always_export_symbols, $1)=no
5975 _LT_TAGVAR(archive_expsym_cmds, $1)=
5976 _LT_TAGVAR(compiler_needs_object, $1)=no
5977 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5978 _LT_TAGVAR(hardcode_direct, $1)=no
5979 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5981 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5982 _LT_TAGVAR(hardcode_minus_L, $1)=no
5983 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5984 _LT_TAGVAR(hardcode_automatic, $1)=no
5985 _LT_TAGVAR(inherit_rpath, $1)=no
5986 _LT_TAGVAR(module_cmds, $1)=
5987 _LT_TAGVAR(module_expsym_cmds, $1)=
5988 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5989 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5990 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5991 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5992 _LT_TAGVAR(no_undefined_flag, $1)=
5993 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5994 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5996 # Source file extension for C++ test sources.
5997 ac_ext=cpp
5999 # Object file extension for compiled C++ test sources.
6000 objext=o
6001 _LT_TAGVAR(objext, $1)=$objext
6003 # No sense in running all these tests if we already determined that
6004 # the CXX compiler isn't working.  Some variables (like enable_shared)
6005 # are currently assumed to apply to all compilers on this platform,
6006 # and will be corrupted by setting them based on a non-working compiler.
6007 if test yes != "$_lt_caught_CXX_error"; then
6008   # Code to be used in simple compile tests
6009   lt_simple_compile_test_code="int some_variable = 0;"
6011   # Code to be used in simple link tests
6012   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6014   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6015   _LT_TAG_COMPILER
6017   # save warnings/boilerplate of simple test code
6018   _LT_COMPILER_BOILERPLATE
6019   _LT_LINKER_BOILERPLATE
6021   # Allow CC to be a program name with arguments.
6022   lt_save_CC=$CC
6023   lt_save_CFLAGS=$CFLAGS
6024   lt_save_LD=$LD
6025   lt_save_GCC=$GCC
6026   GCC=$GXX
6027   lt_save_with_gnu_ld=$with_gnu_ld
6028   lt_save_path_LD=$lt_cv_path_LD
6029   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6030     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6031   else
6032     $as_unset lt_cv_prog_gnu_ld
6033   fi
6034   if test -n "${lt_cv_path_LDCXX+set}"; then
6035     lt_cv_path_LD=$lt_cv_path_LDCXX
6036   else
6037     $as_unset lt_cv_path_LD
6038   fi
6039   test -z "${LDCXX+set}" || LD=$LDCXX
6040   CC=${CXX-"c++"}
6041   CFLAGS=$CXXFLAGS
6042   compiler=$CC
6043   _LT_TAGVAR(compiler, $1)=$CC
6044   _LT_CC_BASENAME([$compiler])
6046   if test -n "$compiler"; then
6047     # We don't want -fno-exception when compiling C++ code, so set the
6048     # no_builtin_flag separately
6049     if test yes = "$GXX"; then
6050       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6051     else
6052       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6053     fi
6055     if test yes = "$GXX"; then
6056       # Set up default GNU C++ configuration
6058       LT_PATH_LD
6060       # Check if GNU C++ uses GNU ld as the underlying linker, since the
6061       # archiving commands below assume that GNU ld is being used.
6062       if test yes = "$with_gnu_ld"; then
6063         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6064         _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'
6066         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6067         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6069         # If archive_cmds runs LD, not CC, wlarc should be empty
6070         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6071         #     investigate it a little bit more. (MM)
6072         wlarc='$wl'
6074         # ancient GNU ld didn't support --whole-archive et. al.
6075         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6076           $GREP 'no-whole-archive' > /dev/null; then
6077           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6078         else
6079           _LT_TAGVAR(whole_archive_flag_spec, $1)=
6080         fi
6081       else
6082         with_gnu_ld=no
6083         wlarc=
6085         # A generic and very simple default shared library creation
6086         # command for GNU C++ for the case where it uses the native
6087         # linker, instead of GNU ld.  If possible, this setting should
6088         # overridden to take advantage of the native linker features on
6089         # the platform it is being used on.
6090         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6091       fi
6093       # Commands to make compiler produce verbose output that lists
6094       # what "hidden" libraries, object files and flags are used when
6095       # linking a shared library.
6096       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6098     else
6099       GXX=no
6100       with_gnu_ld=no
6101       wlarc=
6102     fi
6104     # PORTME: fill in a description of your system's C++ link characteristics
6105     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6106     _LT_TAGVAR(ld_shlibs, $1)=yes
6107     case $host_os in
6108       aix3*)
6109         # FIXME: insert proper C++ library support
6110         _LT_TAGVAR(ld_shlibs, $1)=no
6111         ;;
6112       aix[[4-9]]*)
6113         if test ia64 = "$host_cpu"; then
6114           # On IA64, the linker does run time linking by default, so we don't
6115           # have to do anything special.
6116           aix_use_runtimelinking=no
6117           exp_sym_flag='-Bexport'
6118           no_entry_flag=
6119         else
6120           aix_use_runtimelinking=no
6122           # Test if we are trying to use run time linking or normal
6123           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6124           # need to do runtime linking.
6125           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6126             for ld_flag in $LDFLAGS; do
6127               case $ld_flag in
6128               *-brtl*)
6129                 aix_use_runtimelinking=yes
6130                 break
6131                 ;;
6132               esac
6133             done
6134             ;;
6135           esac
6137           exp_sym_flag='-bexport'
6138           no_entry_flag='-bnoentry'
6139         fi
6141         # When large executables or shared objects are built, AIX ld can
6142         # have problems creating the table of contents.  If linking a library
6143         # or program results in "error TOC overflow" add -mminimal-toc to
6144         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6145         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6147         _LT_TAGVAR(archive_cmds, $1)=''
6148         _LT_TAGVAR(hardcode_direct, $1)=yes
6149         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6150         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6151         _LT_TAGVAR(link_all_deplibs, $1)=yes
6152         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6154         if test yes = "$GXX"; then
6155           case $host_os in aix4.[[012]]|aix4.[[012]].*)
6156           # We only want to do this on AIX 4.2 and lower, the check
6157           # below for broken collect2 doesn't work under 4.3+
6158           collect2name=`$CC -print-prog-name=collect2`
6159           if test -f "$collect2name" &&
6160              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6161           then
6162             # We have reworked collect2
6163             :
6164           else
6165             # We have old collect2
6166             _LT_TAGVAR(hardcode_direct, $1)=unsupported
6167             # It fails to find uninstalled libraries when the uninstalled
6168             # path is not listed in the libpath.  Setting hardcode_minus_L
6169             # to unsupported forces relinking
6170             _LT_TAGVAR(hardcode_minus_L, $1)=yes
6171             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6172             _LT_TAGVAR(hardcode_libdir_separator, $1)=
6173           fi
6174           esac
6175           shared_flag='-shared'
6176           if test yes = "$aix_use_runtimelinking"; then
6177             shared_flag=$shared_flag' $wl-G'
6178           fi
6179         else
6180           # not using gcc
6181           if test ia64 = "$host_cpu"; then
6182           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6183           # chokes on -Wl,-G. The following line is correct:
6184           shared_flag='-G'
6185           else
6186             if test yes = "$aix_use_runtimelinking"; then
6187               shared_flag='$wl-G'
6188             else
6189               shared_flag='$wl-bM:SRE'
6190             fi
6191           fi
6192         fi
6194         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6195         # It seems that -bexpall does not export symbols beginning with
6196         # underscore (_), so it is better to generate a list of symbols to
6197         # export.
6198         _LT_TAGVAR(always_export_symbols, $1)=yes
6199         if test yes = "$aix_use_runtimelinking"; then
6200           # Warning - without using the other runtime loading flags (-brtl),
6201           # -berok will link without error, but may produce a broken library.
6202           _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6203           # Determine the default libpath from the value encoded in an empty
6204           # executable.
6205           _LT_SYS_MODULE_PATH_AIX([$1])
6206           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6208           _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
6209         else
6210           if test ia64 = "$host_cpu"; then
6211             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6212             _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6213             _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"
6214           else
6215             # Determine the default libpath from the value encoded in an
6216             # empty executable.
6217             _LT_SYS_MODULE_PATH_AIX([$1])
6218             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6219             # Warning - without using the other run time loading flags,
6220             # -berok will link without error, but may produce a broken library.
6221             _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6222             _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6223             if test yes = "$with_gnu_ld"; then
6224               # We only use this code for GNU lds that support --whole-archive.
6225               _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6226             else
6227               # Exported symbols can be pulled into shared objects from archives
6228               _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6229             fi
6230             _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6231             # This is similar to how AIX traditionally builds its shared
6232             # libraries.
6233             _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6234           fi
6235         fi
6236         ;;
6238       beos*)
6239         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6240           _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6241           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6242           # support --undefined.  This deserves some investigation.  FIXME
6243           _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6244         else
6245           _LT_TAGVAR(ld_shlibs, $1)=no
6246         fi
6247         ;;
6249       chorus*)
6250         case $cc_basename in
6251           *)
6252           # FIXME: insert proper C++ library support
6253           _LT_TAGVAR(ld_shlibs, $1)=no
6254           ;;
6255         esac
6256         ;;
6258       cygwin* | mingw* | pw32* | cegcc*)
6259         case $GXX,$cc_basename in
6260         ,cl* | no,cl*)
6261           # Native MSVC
6262           # hardcode_libdir_flag_spec is actually meaningless, as there is
6263           # no search path for DLLs.
6264           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6265           _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6266           _LT_TAGVAR(always_export_symbols, $1)=yes
6267           _LT_TAGVAR(file_list_spec, $1)='@'
6268           # Tell ltmain to make .lib files, not .a files.
6269           libext=lib
6270           # Tell ltmain to make .dll files, not .so files.
6271           shrext_cmds=.dll
6272           # FIXME: Setting linknames here is a bad hack.
6273           _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6274           _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6275               cp "$export_symbols" "$output_objdir/$soname.def";
6276               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6277             else
6278               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6279             fi~
6280             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6281             linknames='
6282           # The linker will not automatically build a static lib if we build a DLL.
6283           # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6284           _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6285           # Don't use ranlib
6286           _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6287           _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6288             lt_tool_outputfile="@TOOL_OUTPUT@"~
6289             case $lt_outputfile in
6290               *.exe|*.EXE) ;;
6291               *)
6292                 lt_outputfile=$lt_outputfile.exe
6293                 lt_tool_outputfile=$lt_tool_outputfile.exe
6294                 ;;
6295             esac~
6296             func_to_tool_file "$lt_outputfile"~
6297             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6298               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6299               $RM "$lt_outputfile.manifest";
6300             fi'
6301           ;;
6302         *)
6303           # g++
6304           # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6305           # as there is no search path for DLLs.
6306           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6307           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6308           _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6309           _LT_TAGVAR(always_export_symbols, $1)=no
6310           _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6312           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6313             _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'
6314             # If the export-symbols file already is a .def file, use it as
6315             # is; otherwise, prepend EXPORTS...
6316             _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6317               cp $export_symbols $output_objdir/$soname.def;
6318             else
6319               echo EXPORTS > $output_objdir/$soname.def;
6320               cat $export_symbols >> $output_objdir/$soname.def;
6321             fi~
6322             $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'
6323           else
6324             _LT_TAGVAR(ld_shlibs, $1)=no
6325           fi
6326           ;;
6327         esac
6328         ;;
6329       darwin* | rhapsody*)
6330         _LT_DARWIN_LINKER_FEATURES($1)
6331         ;;
6333       dgux*)
6334         case $cc_basename in
6335           ec++*)
6336             # FIXME: insert proper C++ library support
6337             _LT_TAGVAR(ld_shlibs, $1)=no
6338             ;;
6339           ghcx*)
6340             # Green Hills C++ Compiler
6341             # FIXME: insert proper C++ library support
6342             _LT_TAGVAR(ld_shlibs, $1)=no
6343             ;;
6344           *)
6345             # FIXME: insert proper C++ library support
6346             _LT_TAGVAR(ld_shlibs, $1)=no
6347             ;;
6348         esac
6349         ;;
6351       freebsd2.*)
6352         # C++ shared libraries reported to be fairly broken before
6353         # switch to ELF
6354         _LT_TAGVAR(ld_shlibs, $1)=no
6355         ;;
6357       freebsd-elf*)
6358         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6359         ;;
6361       freebsd* | dragonfly*)
6362         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6363         # conventions
6364         _LT_TAGVAR(ld_shlibs, $1)=yes
6365         ;;
6367       haiku*)
6368         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6369         _LT_TAGVAR(link_all_deplibs, $1)=yes
6370         ;;
6372       hpux9*)
6373         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6374         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6375         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6376         _LT_TAGVAR(hardcode_direct, $1)=yes
6377         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6378                                              # but as the default
6379                                              # location of the library.
6381         case $cc_basename in
6382           CC*)
6383             # FIXME: insert proper C++ library support
6384             _LT_TAGVAR(ld_shlibs, $1)=no
6385             ;;
6386           aCC*)
6387             _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'
6388             # Commands to make compiler produce verbose output that lists
6389             # what "hidden" libraries, object files and flags are used when
6390             # linking a shared library.
6391             #
6392             # There doesn't appear to be a way to prevent this compiler from
6393             # explicitly linking system object files so we need to strip them
6394             # from the output so that they don't get included in the library
6395             # dependencies.
6396             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"'
6397             ;;
6398           *)
6399             if test yes = "$GXX"; then
6400               _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'
6401             else
6402               # FIXME: insert proper C++ library support
6403               _LT_TAGVAR(ld_shlibs, $1)=no
6404             fi
6405             ;;
6406         esac
6407         ;;
6409       hpux10*|hpux11*)
6410         if test no = "$with_gnu_ld"; then
6411           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6412           _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6414           case $host_cpu in
6415             hppa*64*|ia64*)
6416               ;;
6417             *)
6418               _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6419               ;;
6420           esac
6421         fi
6422         case $host_cpu in
6423           hppa*64*|ia64*)
6424             _LT_TAGVAR(hardcode_direct, $1)=no
6425             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6426             ;;
6427           *)
6428             _LT_TAGVAR(hardcode_direct, $1)=yes
6429             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6430             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6431                                                  # but as the default
6432                                                  # location of the library.
6433             ;;
6434         esac
6436         case $cc_basename in
6437           CC*)
6438             # FIXME: insert proper C++ library support
6439             _LT_TAGVAR(ld_shlibs, $1)=no
6440             ;;
6441           aCC*)
6442             case $host_cpu in
6443               hppa*64*)
6444                 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6445                 ;;
6446               ia64*)
6447                 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6448                 ;;
6449               *)
6450                 _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'
6451                 ;;
6452             esac
6453             # Commands to make compiler produce verbose output that lists
6454             # what "hidden" libraries, object files and flags are used when
6455             # linking a shared library.
6456             #
6457             # There doesn't appear to be a way to prevent this compiler from
6458             # explicitly linking system object files so we need to strip them
6459             # from the output so that they don't get included in the library
6460             # dependencies.
6461             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"'
6462             ;;
6463           *)
6464             if test yes = "$GXX"; then
6465               if test no = "$with_gnu_ld"; then
6466                 case $host_cpu in
6467                   hppa*64*)
6468                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6469                     ;;
6470                   ia64*)
6471                     _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'
6472                     ;;
6473                   *)
6474                     _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'
6475                     ;;
6476                 esac
6477               fi
6478             else
6479               # FIXME: insert proper C++ library support
6480               _LT_TAGVAR(ld_shlibs, $1)=no
6481             fi
6482             ;;
6483         esac
6484         ;;
6486       interix[[3-9]]*)
6487         _LT_TAGVAR(hardcode_direct, $1)=no
6488         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6489         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6490         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6491         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6492         # Instead, shared libraries are loaded at an image base (0x10000000 by
6493         # default) and relocated if they conflict, which is a slow very memory
6494         # consuming and fragmenting process.  To avoid this, we pick a random,
6495         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6496         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6497         _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'
6498         _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'
6499         ;;
6500       irix5* | irix6*)
6501         case $cc_basename in
6502           CC*)
6503             # SGI C++
6504             _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'
6506             # Archives containing C++ object files must be created using
6507             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6508             # necessary to make sure instantiated templates are included
6509             # in the archive.
6510             _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6511             ;;
6512           *)
6513             if test yes = "$GXX"; then
6514               if test no = "$with_gnu_ld"; then
6515                 _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'
6516               else
6517                 _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'
6518               fi
6519             fi
6520             _LT_TAGVAR(link_all_deplibs, $1)=yes
6521             ;;
6522         esac
6523         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6524         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6525         _LT_TAGVAR(inherit_rpath, $1)=yes
6526         ;;
6528       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6529         case $cc_basename in
6530           KCC*)
6531             # Kuck and Associates, Inc. (KAI) C++ Compiler
6533             # KCC will only create a shared library if the output file
6534             # ends with ".so" (or ".sl" for HP-UX), so rename the library
6535             # to its proper name (with version) after linking.
6536             _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'
6537             _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'
6538             # Commands to make compiler produce verbose output that lists
6539             # what "hidden" libraries, object files and flags are used when
6540             # linking a shared library.
6541             #
6542             # There doesn't appear to be a way to prevent this compiler from
6543             # explicitly linking system object files so we need to strip them
6544             # from the output so that they don't get included in the library
6545             # dependencies.
6546             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"'
6548             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6549             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6551             # Archives containing C++ object files must be created using
6552             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6553             _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6554             ;;
6555           icpc* | ecpc* )
6556             # Intel C++
6557             with_gnu_ld=yes
6558             # version 8.0 and above of icpc choke on multiply defined symbols
6559             # if we add $predep_objects and $postdep_objects, however 7.1 and
6560             # earlier do not add the objects themselves.
6561             case `$CC -V 2>&1` in
6562               *"Version 7."*)
6563                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6564                 _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'
6565                 ;;
6566               *)  # Version 8.0 or newer
6567                 tmp_idyn=
6568                 case $host_cpu in
6569                   ia64*) tmp_idyn=' -i_dynamic';;
6570                 esac
6571                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6572                 _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'
6573                 ;;
6574             esac
6575             _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6576             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6577             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6578             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6579             ;;
6580           pgCC* | pgcpp*)
6581             # Portland Group C++ compiler
6582             case `$CC -V` in
6583             *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6584               _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6585                rm -rf $tpldir~
6586                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6587                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6588               _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6589                 rm -rf $tpldir~
6590                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6591                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6592                 $RANLIB $oldlib'
6593               _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6594                 rm -rf $tpldir~
6595                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6596                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6597               _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6598                 rm -rf $tpldir~
6599                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6600                 $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'
6601               ;;
6602             *) # Version 6 and above use weak symbols
6603               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6604               _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'
6605               ;;
6606             esac
6608             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
6609             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6610             _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'
6611             ;;
6612           cxx*)
6613             # Compaq C++
6614             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6615             _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'
6617             runpath_var=LD_RUN_PATH
6618             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6619             _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6621             # Commands to make compiler produce verbose output that lists
6622             # what "hidden" libraries, object files and flags are used when
6623             # linking a shared library.
6624             #
6625             # There doesn't appear to be a way to prevent this compiler from
6626             # explicitly linking system object files so we need to strip them
6627             # from the output so that they don't get included in the library
6628             # dependencies.
6629             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'
6630             ;;
6631           xl* | mpixl* | bgxl*)
6632             # IBM XL 8.0 on PPC, with GNU ld
6633             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6634             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6635             _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6636             if test yes = "$supports_anon_versioning"; then
6637               _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6638                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6639                 echo "local: *; };" >> $output_objdir/$libname.ver~
6640                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
6641             fi
6642             ;;
6643           *)
6644             case `$CC -V 2>&1 | sed 5q` in
6645             *Sun\ C*)
6646               # Sun C++ 5.9
6647               _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6648               _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6649               _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'
6650               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6651               _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'
6652               _LT_TAGVAR(compiler_needs_object, $1)=yes
6654               # Not sure whether something based on
6655               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6656               # would be better.
6657               output_verbose_link_cmd='func_echo_all'
6659               # Archives containing C++ object files must be created using
6660               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6661               # necessary to make sure instantiated templates are included
6662               # in the archive.
6663               _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6664               ;;
6665             esac
6666             ;;
6667         esac
6668         ;;
6670       lynxos*)
6671         # FIXME: insert proper C++ library support
6672         _LT_TAGVAR(ld_shlibs, $1)=no
6673         ;;
6675       m88k*)
6676         # FIXME: insert proper C++ library support
6677         _LT_TAGVAR(ld_shlibs, $1)=no
6678         ;;
6680       mvs*)
6681         case $cc_basename in
6682           cxx*)
6683             # FIXME: insert proper C++ library support
6684             _LT_TAGVAR(ld_shlibs, $1)=no
6685             ;;
6686           *)
6687             # FIXME: insert proper C++ library support
6688             _LT_TAGVAR(ld_shlibs, $1)=no
6689             ;;
6690         esac
6691         ;;
6693       netbsd*)
6694         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6695           _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6696           wlarc=
6697           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6698           _LT_TAGVAR(hardcode_direct, $1)=yes
6699           _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6700         fi
6701         # Workaround some broken pre-1.5 toolchains
6702         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6703         ;;
6705       *nto* | *qnx*)
6706         _LT_TAGVAR(ld_shlibs, $1)=yes
6707         ;;
6709       openbsd* | bitrig*)
6710         if test -f /usr/libexec/ld.so; then
6711           _LT_TAGVAR(hardcode_direct, $1)=yes
6712           _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6713           _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6714           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6715           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6716           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
6717             _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'
6718             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6719             _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6720           fi
6721           output_verbose_link_cmd=func_echo_all
6722         else
6723           _LT_TAGVAR(ld_shlibs, $1)=no
6724         fi
6725         ;;
6727       osf3* | osf4* | osf5*)
6728         case $cc_basename in
6729           KCC*)
6730             # Kuck and Associates, Inc. (KAI) C++ Compiler
6732             # KCC will only create a shared library if the output file
6733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
6734             # to its proper name (with version) after linking.
6735             _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'
6737             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6738             _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6740             # Archives containing C++ object files must be created using
6741             # the KAI C++ compiler.
6742             case $host in
6743               osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6744               *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6745             esac
6746             ;;
6747           RCC*)
6748             # Rational C++ 2.4.1
6749             # FIXME: insert proper C++ library support
6750             _LT_TAGVAR(ld_shlibs, $1)=no
6751             ;;
6752           cxx*)
6753             case $host in
6754               osf3*)
6755                 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6756                 _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'
6757                 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6758                 ;;
6759               *)
6760                 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6761                 _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'
6762                 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6763                   echo "-hidden">> $lib.exp~
6764                   $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~
6765                   $RM $lib.exp'
6766                 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6767                 ;;
6768             esac
6770             _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6772             # Commands to make compiler produce verbose output that lists
6773             # what "hidden" libraries, object files and flags are used when
6774             # linking a shared library.
6775             #
6776             # There doesn't appear to be a way to prevent this compiler from
6777             # explicitly linking system object files so we need to strip them
6778             # from the output so that they don't get included in the library
6779             # dependencies.
6780             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"'
6781             ;;
6782           *)
6783             if test yes,no = "$GXX,$with_gnu_ld"; then
6784               _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6785               case $host in
6786                 osf3*)
6787                   _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'
6788                   ;;
6789                 *)
6790                   _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'
6791                   ;;
6792               esac
6794               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6795               _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6797               # Commands to make compiler produce verbose output that lists
6798               # what "hidden" libraries, object files and flags are used when
6799               # linking a shared library.
6800               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6802             else
6803               # FIXME: insert proper C++ library support
6804               _LT_TAGVAR(ld_shlibs, $1)=no
6805             fi
6806             ;;
6807         esac
6808         ;;
6810       psos*)
6811         # FIXME: insert proper C++ library support
6812         _LT_TAGVAR(ld_shlibs, $1)=no
6813         ;;
6815       sunos4*)
6816         case $cc_basename in
6817           CC*)
6818             # Sun C++ 4.x
6819             # FIXME: insert proper C++ library support
6820             _LT_TAGVAR(ld_shlibs, $1)=no
6821             ;;
6822           lcc*)
6823             # Lucid
6824             # FIXME: insert proper C++ library support
6825             _LT_TAGVAR(ld_shlibs, $1)=no
6826             ;;
6827           *)
6828             # FIXME: insert proper C++ library support
6829             _LT_TAGVAR(ld_shlibs, $1)=no
6830             ;;
6831         esac
6832         ;;
6834       solaris*)
6835         case $cc_basename in
6836           CC* | sunCC*)
6837             # Sun C++ 4.2, 5.x and Centerline C++
6838             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6839             _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6840             _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6841             _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6842               $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'
6844             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6845             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6846             case $host_os in
6847               solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6848               *)
6849                 # The compiler driver will combine and reorder linker options,
6850                 # but understands '-z linker_flag'.
6851                 # Supported since Solaris 2.6 (maybe 2.5.1?)
6852                 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6853                 ;;
6854             esac
6855             _LT_TAGVAR(link_all_deplibs, $1)=yes
6857             output_verbose_link_cmd='func_echo_all'
6859             # Archives containing C++ object files must be created using
6860             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6861             # necessary to make sure instantiated templates are included
6862             # in the archive.
6863             _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6864             ;;
6865           gcx*)
6866             # Green Hills C++ Compiler
6867             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
6869             # The C++ compiler must be used to create the archive.
6870             _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6871             ;;
6872           *)
6873             # GNU C++ compiler with Solaris linker
6874             if test yes,no = "$GXX,$with_gnu_ld"; then
6875               _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
6876               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6877                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
6878                 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6879                   $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'
6881                 # Commands to make compiler produce verbose output that lists
6882                 # what "hidden" libraries, object files and flags are used when
6883                 # linking a shared library.
6884                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6885               else
6886                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
6887                 # platform.
6888                 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
6889                 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6890                   $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'
6892                 # Commands to make compiler produce verbose output that lists
6893                 # what "hidden" libraries, object files and flags are used when
6894                 # linking a shared library.
6895                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6896               fi
6898               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
6899               case $host_os in
6900                 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6901                 *)
6902                   _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
6903                   ;;
6904               esac
6905             fi
6906             ;;
6907         esac
6908         ;;
6910     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6911       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6912       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6913       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6914       runpath_var='LD_RUN_PATH'
6916       case $cc_basename in
6917         CC*)
6918           _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6919           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6920           ;;
6921         *)
6922           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6923           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6924           ;;
6925       esac
6926       ;;
6928       sysv5* | sco3.2v5* | sco5v6*)
6929         # Note: We CANNOT use -z defs as we might desire, because we do not
6930         # link with -lc, and that would cause any symbols used from libc to
6931         # always be unresolved, which means just about no library would
6932         # ever link correctly.  If we're not using GNU ld we use -z text
6933         # though, which does catch some bad symbols but isn't as heavy-handed
6934         # as -z defs.
6935         _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6936         _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6937         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6938         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6939         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6940         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6941         _LT_TAGVAR(link_all_deplibs, $1)=yes
6942         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6943         runpath_var='LD_RUN_PATH'
6945         case $cc_basename in
6946           CC*)
6947             _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6948             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6949             _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6950               '"$_LT_TAGVAR(old_archive_cmds, $1)"
6951             _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6952               '"$_LT_TAGVAR(reload_cmds, $1)"
6953             ;;
6954           *)
6955             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6956             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6957             ;;
6958         esac
6959       ;;
6961       tandem*)
6962         case $cc_basename in
6963           NCC*)
6964             # NonStop-UX NCC 3.20
6965             # FIXME: insert proper C++ library support
6966             _LT_TAGVAR(ld_shlibs, $1)=no
6967             ;;
6968           *)
6969             # FIXME: insert proper C++ library support
6970             _LT_TAGVAR(ld_shlibs, $1)=no
6971             ;;
6972         esac
6973         ;;
6975       vxworks*)
6976         # FIXME: insert proper C++ library support
6977         _LT_TAGVAR(ld_shlibs, $1)=no
6978         ;;
6980       *)
6981         # FIXME: insert proper C++ library support
6982         _LT_TAGVAR(ld_shlibs, $1)=no
6983         ;;
6984     esac
6986     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6987     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6989     _LT_TAGVAR(GCC, $1)=$GXX
6990     _LT_TAGVAR(LD, $1)=$LD
6992     ## CAVEAT EMPTOR:
6993     ## There is no encapsulation within the following macros, do not change
6994     ## the running order or otherwise move them around unless you know exactly
6995     ## what you are doing...
6996     _LT_SYS_HIDDEN_LIBDEPS($1)
6997     _LT_COMPILER_PIC($1)
6998     _LT_COMPILER_C_O($1)
6999     _LT_COMPILER_FILE_LOCKS($1)
7000     _LT_LINKER_SHLIBS($1)
7001     _LT_SYS_DYNAMIC_LINKER($1)
7002     _LT_LINKER_HARDCODE_LIBPATH($1)
7004     _LT_CONFIG($1)
7005   fi # test -n "$compiler"
7007   CC=$lt_save_CC
7008   CFLAGS=$lt_save_CFLAGS
7009   LDCXX=$LD
7010   LD=$lt_save_LD
7011   GCC=$lt_save_GCC
7012   with_gnu_ld=$lt_save_with_gnu_ld
7013   lt_cv_path_LDCXX=$lt_cv_path_LD
7014   lt_cv_path_LD=$lt_save_path_LD
7015   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7016   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7017 fi # test yes != "$_lt_caught_CXX_error"
7019 AC_LANG_POP
7020 ])# _LT_LANG_CXX_CONFIG
7023 # _LT_FUNC_STRIPNAME_CNF
7024 # ----------------------
7025 # func_stripname_cnf prefix suffix name
7026 # strip PREFIX and SUFFIX off of NAME.
7027 # PREFIX and SUFFIX must not contain globbing or regex special
7028 # characters, hashes, percent signs, but SUFFIX may contain a leading
7029 # dot (in which case that matches only a dot).
7031 # This function is identical to the (non-XSI) version of func_stripname,
7032 # except this one can be used by m4 code that may be executed by configure,
7033 # rather than the libtool script.
7034 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7035 AC_REQUIRE([_LT_DECL_SED])
7036 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7037 func_stripname_cnf ()
7039   case @S|@2 in
7040   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7041   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7042   esac
7043 } # func_stripname_cnf
7044 ])# _LT_FUNC_STRIPNAME_CNF
7046 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7047 # ---------------------------------
7048 # Figure out "hidden" library dependencies from verbose
7049 # compiler output when linking a shared library.
7050 # Parse the compiler output and extract the necessary
7051 # objects, libraries and library flags.
7052 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7053 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7054 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7055 # Dependencies to place before and after the object being linked:
7056 _LT_TAGVAR(predep_objects, $1)=
7057 _LT_TAGVAR(postdep_objects, $1)=
7058 _LT_TAGVAR(predeps, $1)=
7059 _LT_TAGVAR(postdeps, $1)=
7060 _LT_TAGVAR(compiler_lib_search_path, $1)=
7062 dnl we can't use the lt_simple_compile_test_code here,
7063 dnl because it contains code intended for an executable,
7064 dnl not a library.  It's possible we should let each
7065 dnl tag define a new lt_????_link_test_code variable,
7066 dnl but it's only used here...
7067 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7068 int a;
7069 void foo (void) { a = 0; }
7070 _LT_EOF
7071 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7072 class Foo
7074 public:
7075   Foo (void) { a = 0; }
7076 private:
7077   int a;
7079 _LT_EOF
7080 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7081       subroutine foo
7082       implicit none
7083       integer*4 a
7084       a=0
7085       return
7086       end
7087 _LT_EOF
7088 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7089       subroutine foo
7090       implicit none
7091       integer a
7092       a=0
7093       return
7094       end
7095 _LT_EOF
7096 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7097 public class foo {
7098   private int a;
7099   public void bar (void) {
7100     a = 0;
7101   }
7103 _LT_EOF
7104 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7105 package foo
7106 func foo() {
7108 _LT_EOF
7111 _lt_libdeps_save_CFLAGS=$CFLAGS
7112 case "$CC $CFLAGS " in #(
7113 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7114 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7115 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7116 esac
7118 dnl Parse the compiler output and extract the necessary
7119 dnl objects, libraries and library flags.
7120 if AC_TRY_EVAL(ac_compile); then
7121   # Parse the compiler output and extract the necessary
7122   # objects, libraries and library flags.
7124   # Sentinel used to keep track of whether or not we are before
7125   # the conftest object file.
7126   pre_test_object_deps_done=no
7128   for p in `eval "$output_verbose_link_cmd"`; do
7129     case $prev$p in
7131     -L* | -R* | -l*)
7132        # Some compilers place space between "-{L,R}" and the path.
7133        # Remove the space.
7134        if test x-L = "$p" ||
7135           test x-R = "$p"; then
7136          prev=$p
7137          continue
7138        fi
7140        # Expand the sysroot to ease extracting the directories later.
7141        if test -z "$prev"; then
7142          case $p in
7143          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7144          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7145          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7146          esac
7147        fi
7148        case $p in
7149        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7150        esac
7151        if test no = "$pre_test_object_deps_done"; then
7152          case $prev in
7153          -L | -R)
7154            # Internal compiler library paths should come after those
7155            # provided the user.  The postdeps already come after the
7156            # user supplied libs so there is no need to process them.
7157            if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7158              _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7159            else
7160              _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7161            fi
7162            ;;
7163          # The "-l" case would never come before the object being
7164          # linked, so don't bother handling this case.
7165          esac
7166        else
7167          if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7168            _LT_TAGVAR(postdeps, $1)=$prev$p
7169          else
7170            _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7171          fi
7172        fi
7173        prev=
7174        ;;
7176     *.lto.$objext) ;; # Ignore GCC LTO objects
7177     *.$objext)
7178        # This assumes that the test object file only shows up
7179        # once in the compiler output.
7180        if test "$p" = "conftest.$objext"; then
7181          pre_test_object_deps_done=yes
7182          continue
7183        fi
7185        if test no = "$pre_test_object_deps_done"; then
7186          if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7187            _LT_TAGVAR(predep_objects, $1)=$p
7188          else
7189            _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7190          fi
7191        else
7192          if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7193            _LT_TAGVAR(postdep_objects, $1)=$p
7194          else
7195            _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7196          fi
7197        fi
7198        ;;
7200     *) ;; # Ignore the rest.
7202     esac
7203   done
7205   # Clean up.
7206   rm -f a.out a.exe
7207 else
7208   echo "libtool.m4: error: problem compiling $1 test program"
7211 $RM -f confest.$objext
7212 CFLAGS=$_lt_libdeps_save_CFLAGS
7214 # PORTME: override above test on systems where it is broken
7215 m4_if([$1], [CXX],
7216 [case $host_os in
7217 interix[[3-9]]*)
7218   # Interix 3.5 installs completely hosed .la files for C++, so rather than
7219   # hack all around it, let's just trust "g++" to DTRT.
7220   _LT_TAGVAR(predep_objects,$1)=
7221   _LT_TAGVAR(postdep_objects,$1)=
7222   _LT_TAGVAR(postdeps,$1)=
7223   ;;
7225 linux*)
7226   case `$CC -V 2>&1 | sed 5q` in
7227   *Sun\ C*)
7228     # Sun C++ 5.9
7230     # The more standards-conforming stlport4 library is
7231     # incompatible with the Cstd library. Avoid specifying
7232     # it if it's in CXXFLAGS. Ignore libCrun as
7233     # -library=stlport4 depends on it.
7234     case " $CXX $CXXFLAGS " in
7235     *" -library=stlport4 "*)
7236       solaris_use_stlport4=yes
7237       ;;
7238     esac
7240     if test yes != "$solaris_use_stlport4"; then
7241       _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7242     fi
7243     ;;
7244   esac
7245   ;;
7247 solaris*)
7248   case $cc_basename in
7249   CC* | sunCC*)
7250     # The more standards-conforming stlport4 library is
7251     # incompatible with the Cstd library. Avoid specifying
7252     # it if it's in CXXFLAGS. Ignore libCrun as
7253     # -library=stlport4 depends on it.
7254     case " $CXX $CXXFLAGS " in
7255     *" -library=stlport4 "*)
7256       solaris_use_stlport4=yes
7257       ;;
7258     esac
7260     # Adding this requires a known-good setup of shared libraries for
7261     # Sun compiler versions before 5.6, else PIC objects from an old
7262     # archive will be linked into the output, leading to subtle bugs.
7263     if test yes != "$solaris_use_stlport4"; then
7264       _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7265     fi
7266     ;;
7267   esac
7268   ;;
7269 esac
7272 case " $_LT_TAGVAR(postdeps, $1) " in
7273 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7274 esac
7275  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7276 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7277  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7279 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7280     [The directories searched by this compiler when creating a shared library])
7281 _LT_TAGDECL([], [predep_objects], [1],
7282     [Dependencies to place before and after the objects being linked to
7283     create a shared library])
7284 _LT_TAGDECL([], [postdep_objects], [1])
7285 _LT_TAGDECL([], [predeps], [1])
7286 _LT_TAGDECL([], [postdeps], [1])
7287 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7288     [The library search path used internally by the compiler when linking
7289     a shared library])
7290 ])# _LT_SYS_HIDDEN_LIBDEPS
7293 # _LT_LANG_F77_CONFIG([TAG])
7294 # --------------------------
7295 # Ensure that the configuration variables for a Fortran 77 compiler are
7296 # suitably defined.  These variables are subsequently used by _LT_CONFIG
7297 # to write the compiler configuration to 'libtool'.
7298 m4_defun([_LT_LANG_F77_CONFIG],
7299 [AC_LANG_PUSH(Fortran 77)
7300 if test -z "$F77" || test no = "$F77"; then
7301   _lt_disable_F77=yes
7304 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7305 _LT_TAGVAR(allow_undefined_flag, $1)=
7306 _LT_TAGVAR(always_export_symbols, $1)=no
7307 _LT_TAGVAR(archive_expsym_cmds, $1)=
7308 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7309 _LT_TAGVAR(hardcode_direct, $1)=no
7310 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7311 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7312 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7313 _LT_TAGVAR(hardcode_minus_L, $1)=no
7314 _LT_TAGVAR(hardcode_automatic, $1)=no
7315 _LT_TAGVAR(inherit_rpath, $1)=no
7316 _LT_TAGVAR(module_cmds, $1)=
7317 _LT_TAGVAR(module_expsym_cmds, $1)=
7318 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7319 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7320 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7321 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7322 _LT_TAGVAR(no_undefined_flag, $1)=
7323 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7324 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7326 # Source file extension for f77 test sources.
7327 ac_ext=f
7329 # Object file extension for compiled f77 test sources.
7330 objext=o
7331 _LT_TAGVAR(objext, $1)=$objext
7333 # No sense in running all these tests if we already determined that
7334 # the F77 compiler isn't working.  Some variables (like enable_shared)
7335 # are currently assumed to apply to all compilers on this platform,
7336 # and will be corrupted by setting them based on a non-working compiler.
7337 if test yes != "$_lt_disable_F77"; then
7338   # Code to be used in simple compile tests
7339   lt_simple_compile_test_code="\
7340       subroutine t
7341       return
7342       end
7345   # Code to be used in simple link tests
7346   lt_simple_link_test_code="\
7347       program t
7348       end
7351   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7352   _LT_TAG_COMPILER
7354   # save warnings/boilerplate of simple test code
7355   _LT_COMPILER_BOILERPLATE
7356   _LT_LINKER_BOILERPLATE
7358   # Allow CC to be a program name with arguments.
7359   lt_save_CC=$CC
7360   lt_save_GCC=$GCC
7361   lt_save_CFLAGS=$CFLAGS
7362   CC=${F77-"f77"}
7363   CFLAGS=$FFLAGS
7364   compiler=$CC
7365   _LT_TAGVAR(compiler, $1)=$CC
7366   _LT_CC_BASENAME([$compiler])
7367   GCC=$G77
7368   if test -n "$compiler"; then
7369     AC_MSG_CHECKING([if libtool supports shared libraries])
7370     AC_MSG_RESULT([$can_build_shared])
7372     AC_MSG_CHECKING([whether to build shared libraries])
7373     test no = "$can_build_shared" && enable_shared=no
7375     # On AIX, shared libraries and static libraries use the same namespace, and
7376     # are all built from PIC.
7377     case $host_os in
7378       aix3*)
7379         test yes = "$enable_shared" && enable_static=no
7380         if test -n "$RANLIB"; then
7381           archive_cmds="$archive_cmds~\$RANLIB \$lib"
7382           postinstall_cmds='$RANLIB $lib'
7383         fi
7384         ;;
7385       aix[[4-9]]*)
7386         if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
7387           test yes = "$enable_shared" && enable_static=no
7388         fi
7389         ;;
7390     esac
7391     AC_MSG_RESULT([$enable_shared])
7393     AC_MSG_CHECKING([whether to build static libraries])
7394     # Make sure either enable_shared or enable_static is yes.
7395     test yes = "$enable_shared" || enable_static=yes
7396     AC_MSG_RESULT([$enable_static])
7398     _LT_TAGVAR(GCC, $1)=$G77
7399     _LT_TAGVAR(LD, $1)=$LD
7401     ## CAVEAT EMPTOR:
7402     ## There is no encapsulation within the following macros, do not change
7403     ## the running order or otherwise move them around unless you know exactly
7404     ## what you are doing...
7405     _LT_COMPILER_PIC($1)
7406     _LT_COMPILER_C_O($1)
7407     _LT_COMPILER_FILE_LOCKS($1)
7408     _LT_LINKER_SHLIBS($1)
7409     _LT_SYS_DYNAMIC_LINKER($1)
7410     _LT_LINKER_HARDCODE_LIBPATH($1)
7412     _LT_CONFIG($1)
7413   fi # test -n "$compiler"
7415   GCC=$lt_save_GCC
7416   CC=$lt_save_CC
7417   CFLAGS=$lt_save_CFLAGS
7418 fi # test yes != "$_lt_disable_F77"
7420 AC_LANG_POP
7421 ])# _LT_LANG_F77_CONFIG
7424 # _LT_LANG_FC_CONFIG([TAG])
7425 # -------------------------
7426 # Ensure that the configuration variables for a Fortran compiler are
7427 # suitably defined.  These variables are subsequently used by _LT_CONFIG
7428 # to write the compiler configuration to 'libtool'.
7429 m4_defun([_LT_LANG_FC_CONFIG],
7430 [AC_LANG_PUSH(Fortran)
7432 if test -z "$FC" || test no = "$FC"; then
7433   _lt_disable_FC=yes
7436 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7437 _LT_TAGVAR(allow_undefined_flag, $1)=
7438 _LT_TAGVAR(always_export_symbols, $1)=no
7439 _LT_TAGVAR(archive_expsym_cmds, $1)=
7440 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7441 _LT_TAGVAR(hardcode_direct, $1)=no
7442 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7444 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7445 _LT_TAGVAR(hardcode_minus_L, $1)=no
7446 _LT_TAGVAR(hardcode_automatic, $1)=no
7447 _LT_TAGVAR(inherit_rpath, $1)=no
7448 _LT_TAGVAR(module_cmds, $1)=
7449 _LT_TAGVAR(module_expsym_cmds, $1)=
7450 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7451 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7452 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7453 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7454 _LT_TAGVAR(no_undefined_flag, $1)=
7455 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7456 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7458 # Source file extension for fc test sources.
7459 ac_ext=${ac_fc_srcext-f}
7461 # Object file extension for compiled fc test sources.
7462 objext=o
7463 _LT_TAGVAR(objext, $1)=$objext
7465 # No sense in running all these tests if we already determined that
7466 # the FC compiler isn't working.  Some variables (like enable_shared)
7467 # are currently assumed to apply to all compilers on this platform,
7468 # and will be corrupted by setting them based on a non-working compiler.
7469 if test yes != "$_lt_disable_FC"; then
7470   # Code to be used in simple compile tests
7471   lt_simple_compile_test_code="\
7472       subroutine t
7473       return
7474       end
7477   # Code to be used in simple link tests
7478   lt_simple_link_test_code="\
7479       program t
7480       end
7483   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7484   _LT_TAG_COMPILER
7486   # save warnings/boilerplate of simple test code
7487   _LT_COMPILER_BOILERPLATE
7488   _LT_LINKER_BOILERPLATE
7490   # Allow CC to be a program name with arguments.
7491   lt_save_CC=$CC
7492   lt_save_GCC=$GCC
7493   lt_save_CFLAGS=$CFLAGS
7494   CC=${FC-"f95"}
7495   CFLAGS=$FCFLAGS
7496   compiler=$CC
7497   GCC=$ac_cv_fc_compiler_gnu
7499   _LT_TAGVAR(compiler, $1)=$CC
7500   _LT_CC_BASENAME([$compiler])
7502   if test -n "$compiler"; then
7503     AC_MSG_CHECKING([if libtool supports shared libraries])
7504     AC_MSG_RESULT([$can_build_shared])
7506     AC_MSG_CHECKING([whether to build shared libraries])
7507     test no = "$can_build_shared" && enable_shared=no
7509     # On AIX, shared libraries and static libraries use the same namespace, and
7510     # are all built from PIC.
7511     case $host_os in
7512       aix3*)
7513         test yes = "$enable_shared" && enable_static=no
7514         if test -n "$RANLIB"; then
7515           archive_cmds="$archive_cmds~\$RANLIB \$lib"
7516           postinstall_cmds='$RANLIB $lib'
7517         fi
7518         ;;
7519       aix[[4-9]]*)
7520         if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
7521           test yes = "$enable_shared" && enable_static=no
7522         fi
7523         ;;
7524     esac
7525     AC_MSG_RESULT([$enable_shared])
7527     AC_MSG_CHECKING([whether to build static libraries])
7528     # Make sure either enable_shared or enable_static is yes.
7529     test yes = "$enable_shared" || enable_static=yes
7530     AC_MSG_RESULT([$enable_static])
7532     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7533     _LT_TAGVAR(LD, $1)=$LD
7535     ## CAVEAT EMPTOR:
7536     ## There is no encapsulation within the following macros, do not change
7537     ## the running order or otherwise move them around unless you know exactly
7538     ## what you are doing...
7539     _LT_SYS_HIDDEN_LIBDEPS($1)
7540     _LT_COMPILER_PIC($1)
7541     _LT_COMPILER_C_O($1)
7542     _LT_COMPILER_FILE_LOCKS($1)
7543     _LT_LINKER_SHLIBS($1)
7544     _LT_SYS_DYNAMIC_LINKER($1)
7545     _LT_LINKER_HARDCODE_LIBPATH($1)
7547     _LT_CONFIG($1)
7548   fi # test -n "$compiler"
7550   GCC=$lt_save_GCC
7551   CC=$lt_save_CC
7552   CFLAGS=$lt_save_CFLAGS
7553 fi # test yes != "$_lt_disable_FC"
7555 AC_LANG_POP
7556 ])# _LT_LANG_FC_CONFIG
7559 # _LT_LANG_GCJ_CONFIG([TAG])
7560 # --------------------------
7561 # Ensure that the configuration variables for the GNU Java Compiler compiler
7562 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
7563 # to write the compiler configuration to 'libtool'.
7564 m4_defun([_LT_LANG_GCJ_CONFIG],
7565 [AC_REQUIRE([LT_PROG_GCJ])dnl
7566 AC_LANG_SAVE
7568 # Source file extension for Java test sources.
7569 ac_ext=java
7571 # Object file extension for compiled Java test sources.
7572 objext=o
7573 _LT_TAGVAR(objext, $1)=$objext
7575 # Code to be used in simple compile tests
7576 lt_simple_compile_test_code="class foo {}"
7578 # Code to be used in simple link tests
7579 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7582 _LT_TAG_COMPILER
7584 # save warnings/boilerplate of simple test code
7585 _LT_COMPILER_BOILERPLATE
7586 _LT_LINKER_BOILERPLATE
7588 # Allow CC to be a program name with arguments.
7589 lt_save_CC=$CC
7590 lt_save_CFLAGS=$CFLAGS
7591 lt_save_GCC=$GCC
7592 GCC=yes
7593 CC=${GCJ-"gcj"}
7594 CFLAGS=$GCJFLAGS
7595 compiler=$CC
7596 _LT_TAGVAR(compiler, $1)=$CC
7597 _LT_TAGVAR(LD, $1)=$LD
7598 _LT_CC_BASENAME([$compiler])
7600 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7601 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7603 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7604 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7605 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7607 if test -n "$compiler"; then
7608   _LT_COMPILER_NO_RTTI($1)
7609   _LT_COMPILER_PIC($1)
7610   _LT_COMPILER_C_O($1)
7611   _LT_COMPILER_FILE_LOCKS($1)
7612   _LT_LINKER_SHLIBS($1)
7613   _LT_LINKER_HARDCODE_LIBPATH($1)
7615   _LT_CONFIG($1)
7618 AC_LANG_RESTORE
7620 GCC=$lt_save_GCC
7621 CC=$lt_save_CC
7622 CFLAGS=$lt_save_CFLAGS
7623 ])# _LT_LANG_GCJ_CONFIG
7626 # _LT_LANG_GO_CONFIG([TAG])
7627 # --------------------------
7628 # Ensure that the configuration variables for the GNU Go compiler
7629 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
7630 # to write the compiler configuration to 'libtool'.
7631 m4_defun([_LT_LANG_GO_CONFIG],
7632 [AC_REQUIRE([LT_PROG_GO])dnl
7633 AC_LANG_SAVE
7635 # Source file extension for Go test sources.
7636 ac_ext=go
7638 # Object file extension for compiled Go test sources.
7639 objext=o
7640 _LT_TAGVAR(objext, $1)=$objext
7642 # Code to be used in simple compile tests
7643 lt_simple_compile_test_code="package main; func main() { }"
7645 # Code to be used in simple link tests
7646 lt_simple_link_test_code='package main; func main() { }'
7648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7649 _LT_TAG_COMPILER
7651 # save warnings/boilerplate of simple test code
7652 _LT_COMPILER_BOILERPLATE
7653 _LT_LINKER_BOILERPLATE
7655 # Allow CC to be a program name with arguments.
7656 lt_save_CC=$CC
7657 lt_save_CFLAGS=$CFLAGS
7658 lt_save_GCC=$GCC
7659 GCC=yes
7660 CC=${GOC-"gccgo"}
7661 CFLAGS=$GOFLAGS
7662 compiler=$CC
7663 _LT_TAGVAR(compiler, $1)=$CC
7664 _LT_TAGVAR(LD, $1)=$LD
7665 _LT_CC_BASENAME([$compiler])
7667 # Go did not exist at the time GCC didn't implicitly link libc in.
7668 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7670 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7671 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7672 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7674 if test -n "$compiler"; then
7675   _LT_COMPILER_NO_RTTI($1)
7676   _LT_COMPILER_PIC($1)
7677   _LT_COMPILER_C_O($1)
7678   _LT_COMPILER_FILE_LOCKS($1)
7679   _LT_LINKER_SHLIBS($1)
7680   _LT_LINKER_HARDCODE_LIBPATH($1)
7682   _LT_CONFIG($1)
7685 AC_LANG_RESTORE
7687 GCC=$lt_save_GCC
7688 CC=$lt_save_CC
7689 CFLAGS=$lt_save_CFLAGS
7690 ])# _LT_LANG_GO_CONFIG
7693 # _LT_LANG_RC_CONFIG([TAG])
7694 # -------------------------
7695 # Ensure that the configuration variables for the Windows resource compiler
7696 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
7697 # to write the compiler configuration to 'libtool'.
7698 m4_defun([_LT_LANG_RC_CONFIG],
7699 [AC_REQUIRE([LT_PROG_RC])dnl
7700 AC_LANG_SAVE
7702 # Source file extension for RC test sources.
7703 ac_ext=rc
7705 # Object file extension for compiled RC test sources.
7706 objext=o
7707 _LT_TAGVAR(objext, $1)=$objext
7709 # Code to be used in simple compile tests
7710 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7712 # Code to be used in simple link tests
7713 lt_simple_link_test_code=$lt_simple_compile_test_code
7715 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7716 _LT_TAG_COMPILER
7718 # save warnings/boilerplate of simple test code
7719 _LT_COMPILER_BOILERPLATE
7720 _LT_LINKER_BOILERPLATE
7722 # Allow CC to be a program name with arguments.
7723 lt_save_CC=$CC
7724 lt_save_CFLAGS=$CFLAGS
7725 lt_save_GCC=$GCC
7726 GCC=
7727 CC=${RC-"windres"}
7728 CFLAGS=
7729 compiler=$CC
7730 _LT_TAGVAR(compiler, $1)=$CC
7731 _LT_CC_BASENAME([$compiler])
7732 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7734 if test -n "$compiler"; then
7735   :
7736   _LT_CONFIG($1)
7739 GCC=$lt_save_GCC
7740 AC_LANG_RESTORE
7741 CC=$lt_save_CC
7742 CFLAGS=$lt_save_CFLAGS
7743 ])# _LT_LANG_RC_CONFIG
7746 # LT_PROG_GCJ
7747 # -----------
7748 AC_DEFUN([LT_PROG_GCJ],
7749 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7750   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7751     [AC_CHECK_TOOL(GCJ, gcj,)
7752       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
7753       AC_SUBST(GCJFLAGS)])])[]dnl
7756 # Old name:
7757 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7758 dnl aclocal-1.4 backwards compatibility:
7759 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7762 # LT_PROG_GO
7763 # ----------
7764 AC_DEFUN([LT_PROG_GO],
7765 [AC_CHECK_TOOL(GOC, gccgo,)
7769 # LT_PROG_RC
7770 # ----------
7771 AC_DEFUN([LT_PROG_RC],
7772 [AC_CHECK_TOOL(RC, windres,)
7775 # Old name:
7776 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7777 dnl aclocal-1.4 backwards compatibility:
7778 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7781 # _LT_DECL_EGREP
7782 # --------------
7783 # If we don't have a new enough Autoconf to choose the best grep
7784 # available, choose the one first in the user's PATH.
7785 m4_defun([_LT_DECL_EGREP],
7786 [AC_REQUIRE([AC_PROG_EGREP])dnl
7787 AC_REQUIRE([AC_PROG_FGREP])dnl
7788 test -z "$GREP" && GREP=grep
7789 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7790 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7791 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7792 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7793 AC_SUBST([GREP])
7797 # _LT_DECL_OBJDUMP
7798 # --------------
7799 # If we don't have a new enough Autoconf to choose the best objdump
7800 # available, choose the one first in the user's PATH.
7801 m4_defun([_LT_DECL_OBJDUMP],
7802 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7803 test -z "$OBJDUMP" && OBJDUMP=objdump
7804 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7805 AC_SUBST([OBJDUMP])
7808 # _LT_DECL_DLLTOOL
7809 # ----------------
7810 # Ensure DLLTOOL variable is set.
7811 m4_defun([_LT_DECL_DLLTOOL],
7812 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7813 test -z "$DLLTOOL" && DLLTOOL=dlltool
7814 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7815 AC_SUBST([DLLTOOL])
7818 # _LT_DECL_SED
7819 # ------------
7820 # Check for a fully-functional sed program, that truncates
7821 # as few characters as possible.  Prefer GNU sed if found.
7822 m4_defun([_LT_DECL_SED],
7823 [AC_PROG_SED
7824 test -z "$SED" && SED=sed
7825 Xsed="$SED -e 1s/^X//"
7826 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7827 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7828     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7829 ])# _LT_DECL_SED
7831 m4_ifndef([AC_PROG_SED], [
7832 # NOTE: This macro has been submitted for inclusion into   #
7833 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7834 #  a released version of Autoconf we should remove this    #
7835 #  macro and use it instead.                               #
7837 m4_defun([AC_PROG_SED],
7838 [AC_MSG_CHECKING([for a sed that does not truncate output])
7839 AC_CACHE_VAL(lt_cv_path_SED,
7840 [# Loop through the user's path and test for sed and gsed.
7841 # Then use that list of sed's as ones to test for truncation.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847   for lt_ac_prog in sed gsed; do
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7850         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7851       fi
7852     done
7853   done
7854 done
7855 IFS=$as_save_IFS
7856 lt_ac_max=0
7857 lt_ac_count=0
7858 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7859 # along with /bin/sed that truncates output.
7860 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7861   test ! -f "$lt_ac_sed" && continue
7862   cat /dev/null > conftest.in
7863   lt_ac_count=0
7864   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7865   # Check for GNU sed and select it if it is found.
7866   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7867     lt_cv_path_SED=$lt_ac_sed
7868     break
7869   fi
7870   while true; do
7871     cat conftest.in conftest.in >conftest.tmp
7872     mv conftest.tmp conftest.in
7873     cp conftest.in conftest.nl
7874     echo >>conftest.nl
7875     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7876     cmp -s conftest.out conftest.nl || break
7877     # 10000 chars as input seems more than enough
7878     test 10 -lt "$lt_ac_count" && break
7879     lt_ac_count=`expr $lt_ac_count + 1`
7880     if test "$lt_ac_count" -gt "$lt_ac_max"; then
7881       lt_ac_max=$lt_ac_count
7882       lt_cv_path_SED=$lt_ac_sed
7883     fi
7884   done
7885 done
7887 SED=$lt_cv_path_SED
7888 AC_SUBST([SED])
7889 AC_MSG_RESULT([$SED])
7890 ])#AC_PROG_SED
7891 ])#m4_ifndef
7893 # Old name:
7894 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7895 dnl aclocal-1.4 backwards compatibility:
7896 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7899 # _LT_CHECK_SHELL_FEATURES
7900 # ------------------------
7901 # Find out whether the shell is Bourne or XSI compatible,
7902 # or has some other useful features.
7903 m4_defun([_LT_CHECK_SHELL_FEATURES],
7904 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7905   lt_unset=unset
7906 else
7907   lt_unset=false
7909 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7911 # test EBCDIC or ASCII
7912 case `echo X|tr X '\101'` in
7913  A) # ASCII based system
7914     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7915   lt_SP2NL='tr \040 \012'
7916   lt_NL2SP='tr \015\012 \040\040'
7917   ;;
7918  *) # EBCDIC based system
7919   lt_SP2NL='tr \100 \n'
7920   lt_NL2SP='tr \r\n \100\100'
7921   ;;
7922 esac
7923 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7924 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7925 ])# _LT_CHECK_SHELL_FEATURES
7928 # _LT_PATH_CONVERSION_FUNCTIONS
7929 # -----------------------------
7930 # Determine what file name conversion functions should be used by
7931 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
7932 # for certain cross-compile configurations and native mingw.
7933 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7934 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7935 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7936 AC_MSG_CHECKING([how to convert $build file names to $host format])
7937 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7938 [case $host in
7939   *-*-mingw* )
7940     case $build in
7941       *-*-mingw* ) # actually msys
7942         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7943         ;;
7944       *-*-cygwin* )
7945         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7946         ;;
7947       * ) # otherwise, assume *nix
7948         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7949         ;;
7950     esac
7951     ;;
7952   *-*-cygwin* )
7953     case $build in
7954       *-*-mingw* ) # actually msys
7955         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7956         ;;
7957       *-*-cygwin* )
7958         lt_cv_to_host_file_cmd=func_convert_file_noop
7959         ;;
7960       * ) # otherwise, assume *nix
7961         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7962         ;;
7963     esac
7964     ;;
7965   * ) # unhandled hosts (and "normal" native builds)
7966     lt_cv_to_host_file_cmd=func_convert_file_noop
7967     ;;
7968 esac
7970 to_host_file_cmd=$lt_cv_to_host_file_cmd
7971 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7972 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7973          [0], [convert $build file names to $host format])dnl
7975 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7976 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7977 [#assume ordinary cross tools, or native build.
7978 lt_cv_to_tool_file_cmd=func_convert_file_noop
7979 case $host in
7980   *-*-mingw* )
7981     case $build in
7982       *-*-mingw* ) # actually msys
7983         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7984         ;;
7985     esac
7986     ;;
7987 esac
7989 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7990 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7991 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7992          [0], [convert $build files to toolchain format])dnl
7993 ])# _LT_PATH_CONVERSION_FUNCTIONS
7995 # Helper functions for option handling.                    -*- Autoconf -*-
7997 #   Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software
7998 #   Foundation, Inc.
7999 #   Written by Gary V. Vaughan, 2004
8001 # This file is free software; the Free Software Foundation gives
8002 # unlimited permission to copy and/or distribute it, with or without
8003 # modifications, as long as this notice is preserved.
8005 # serial 8 ltoptions.m4
8007 # This is to help aclocal find these macros, as it can't see m4_define.
8008 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8011 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8012 # ------------------------------------------
8013 m4_define([_LT_MANGLE_OPTION],
8014 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8017 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8018 # ---------------------------------------
8019 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8020 # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8021 # saved as a flag.
8022 m4_define([_LT_SET_OPTION],
8023 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8024 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8025         _LT_MANGLE_DEFUN([$1], [$2]),
8026     [m4_warning([Unknown $1 option '$2'])])[]dnl
8030 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8031 # ------------------------------------------------------------
8032 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8033 m4_define([_LT_IF_OPTION],
8034 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8037 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8038 # -------------------------------------------------------
8039 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8040 # are set.
8041 m4_define([_LT_UNLESS_OPTIONS],
8042 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8043             [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8044                       [m4_define([$0_found])])])[]dnl
8045 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8046 ])[]dnl
8050 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8051 # ----------------------------------------
8052 # OPTION-LIST is a space-separated list of Libtool options associated
8053 # with MACRO-NAME.  If any OPTION has a matching handler declared with
8054 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8055 # the unknown option and exit.
8056 m4_defun([_LT_SET_OPTIONS],
8057 [# Set options
8058 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8059     [_LT_SET_OPTION([$1], _LT_Option)])
8061 m4_if([$1],[LT_INIT],[
8062   dnl
8063   dnl Simply set some default values (i.e off) if boolean options were not
8064   dnl specified:
8065   _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8066   ])
8067   _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8068   ])
8069   dnl
8070   dnl If no reference was made to various pairs of opposing options, then
8071   dnl we run the default mode handler for the pair.  For example, if neither
8072   dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
8073   dnl archives by default:
8074   _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8075   _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8076   _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8077   _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8078                    [_LT_ENABLE_FAST_INSTALL])
8079   ])
8080 ])# _LT_SET_OPTIONS
8084 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8085 # -----------------------------------------
8086 m4_define([_LT_MANGLE_DEFUN],
8087 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8090 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8091 # -----------------------------------------------
8092 m4_define([LT_OPTION_DEFINE],
8093 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8094 ])# LT_OPTION_DEFINE
8097 # dlopen
8098 # ------
8099 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8102 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8103 [_LT_SET_OPTION([LT_INIT], [dlopen])
8104 AC_DIAGNOSE([obsolete],
8105 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8106 put the 'dlopen' option into LT_INIT's first parameter.])
8109 dnl aclocal-1.4 backwards compatibility:
8110 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8113 # win32-dll
8114 # ---------
8115 # Declare package support for building win32 dll's.
8116 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8117 [enable_win32_dll=yes
8119 case $host in
8120 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8121   AC_CHECK_TOOL(AS, as, false)
8122   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8123   AC_CHECK_TOOL(OBJDUMP, objdump, false)
8124   ;;
8125 esac
8127 test -z "$AS" && AS=as
8128 _LT_DECL([], [AS],      [1], [Assembler program])dnl
8130 test -z "$DLLTOOL" && DLLTOOL=dlltool
8131 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8133 test -z "$OBJDUMP" && OBJDUMP=objdump
8134 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8135 ])# win32-dll
8137 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8138 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8139 _LT_SET_OPTION([LT_INIT], [win32-dll])
8140 AC_DIAGNOSE([obsolete],
8141 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8142 put the 'win32-dll' option into LT_INIT's first parameter.])
8145 dnl aclocal-1.4 backwards compatibility:
8146 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8149 # _LT_ENABLE_SHARED([DEFAULT])
8150 # ----------------------------
8151 # implement the --enable-shared flag, and supports the 'shared' and
8152 # 'disable-shared' LT_INIT options.
8153 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8154 m4_define([_LT_ENABLE_SHARED],
8155 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8156 AC_ARG_ENABLE([shared],
8157     [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8158         [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8159     [p=${PACKAGE-default}
8160     case $enableval in
8161     yes) enable_shared=yes ;;
8162     no) enable_shared=no ;;
8163     *)
8164       enable_shared=no
8165       # Look at the argument we got.  We use all the common list separators.
8166       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8167       for pkg in $enableval; do
8168         IFS=$lt_save_ifs
8169         if test "X$pkg" = "X$p"; then
8170           enable_shared=yes
8171         fi
8172       done
8173       IFS=$lt_save_ifs
8174       ;;
8175     esac],
8176     [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8178     _LT_DECL([build_libtool_libs], [enable_shared], [0],
8179         [Whether or not to build shared libraries])
8180 ])# _LT_ENABLE_SHARED
8182 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8183 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8185 # Old names:
8186 AC_DEFUN([AC_ENABLE_SHARED],
8187 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8190 AC_DEFUN([AC_DISABLE_SHARED],
8191 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8194 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8195 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8197 dnl aclocal-1.4 backwards compatibility:
8198 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8199 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8203 # _LT_ENABLE_STATIC([DEFAULT])
8204 # ----------------------------
8205 # implement the --enable-static flag, and support the 'static' and
8206 # 'disable-static' LT_INIT options.
8207 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8208 m4_define([_LT_ENABLE_STATIC],
8209 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8210 AC_ARG_ENABLE([static],
8211     [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8212         [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8213     [p=${PACKAGE-default}
8214     case $enableval in
8215     yes) enable_static=yes ;;
8216     no) enable_static=no ;;
8217     *)
8218      enable_static=no
8219       # Look at the argument we got.  We use all the common list separators.
8220       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8221       for pkg in $enableval; do
8222         IFS=$lt_save_ifs
8223         if test "X$pkg" = "X$p"; then
8224           enable_static=yes
8225         fi
8226       done
8227       IFS=$lt_save_ifs
8228       ;;
8229     esac],
8230     [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8232     _LT_DECL([build_old_libs], [enable_static], [0],
8233         [Whether or not to build static libraries])
8234 ])# _LT_ENABLE_STATIC
8236 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8237 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8239 # Old names:
8240 AC_DEFUN([AC_ENABLE_STATIC],
8241 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8244 AC_DEFUN([AC_DISABLE_STATIC],
8245 [_LT_SET_OPTION([LT_INIT], [disable-static])
8248 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8249 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8251 dnl aclocal-1.4 backwards compatibility:
8252 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8253 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8257 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8258 # ----------------------------------
8259 # implement the --enable-fast-install flag, and support the 'fast-install'
8260 # and 'disable-fast-install' LT_INIT options.
8261 # DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
8262 m4_define([_LT_ENABLE_FAST_INSTALL],
8263 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8264 AC_ARG_ENABLE([fast-install],
8265     [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8266     [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8267     [p=${PACKAGE-default}
8268     case $enableval in
8269     yes) enable_fast_install=yes ;;
8270     no) enable_fast_install=no ;;
8271     *)
8272       enable_fast_install=no
8273       # Look at the argument we got.  We use all the common list separators.
8274       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8275       for pkg in $enableval; do
8276         IFS=$lt_save_ifs
8277         if test "X$pkg" = "X$p"; then
8278           enable_fast_install=yes
8279         fi
8280       done
8281       IFS=$lt_save_ifs
8282       ;;
8283     esac],
8284     [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8286 _LT_DECL([fast_install], [enable_fast_install], [0],
8287          [Whether or not to optimize for fast installation])dnl
8288 ])# _LT_ENABLE_FAST_INSTALL
8290 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8291 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8293 # Old names:
8294 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8295 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8296 AC_DIAGNOSE([obsolete],
8297 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8298 the 'fast-install' option into LT_INIT's first parameter.])
8301 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8302 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8303 AC_DIAGNOSE([obsolete],
8304 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8305 the 'disable-fast-install' option into LT_INIT's first parameter.])
8308 dnl aclocal-1.4 backwards compatibility:
8309 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8310 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8313 # _LT_WITH_PIC([MODE])
8314 # --------------------
8315 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8316 # LT_INIT options.
8317 # MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
8318 m4_define([_LT_WITH_PIC],
8319 [AC_ARG_WITH([pic],
8320     [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8321         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8322     [lt_p=${PACKAGE-default}
8323     case $withval in
8324     yes|no) pic_mode=$withval ;;
8325     *)
8326       pic_mode=default
8327       # Look at the argument we got.  We use all the common list separators.
8328       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8329       for lt_pkg in $withval; do
8330         IFS=$lt_save_ifs
8331         if test "X$lt_pkg" = "X$lt_p"; then
8332           pic_mode=yes
8333         fi
8334       done
8335       IFS=$lt_save_ifs
8336       ;;
8337     esac],
8338     [pic_mode=m4_default([$1], [default])])
8340 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8341 ])# _LT_WITH_PIC
8343 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8344 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8346 # Old name:
8347 AU_DEFUN([AC_LIBTOOL_PICMODE],
8348 [_LT_SET_OPTION([LT_INIT], [pic-only])
8349 AC_DIAGNOSE([obsolete],
8350 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8351 put the 'pic-only' option into LT_INIT's first parameter.])
8354 dnl aclocal-1.4 backwards compatibility:
8355 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8358 m4_define([_LTDL_MODE], [])
8359 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8360                  [m4_define([_LTDL_MODE], [nonrecursive])])
8361 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8362                  [m4_define([_LTDL_MODE], [recursive])])
8363 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8364                  [m4_define([_LTDL_MODE], [subproject])])
8366 m4_define([_LTDL_TYPE], [])
8367 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8368                  [m4_define([_LTDL_TYPE], [installable])])
8369 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8370                  [m4_define([_LTDL_TYPE], [convenience])])
8372 # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8374 # Copyright (C) 2004-2005, 2007-2008, 2011-2013 Free Software
8375 # Foundation, Inc.
8376 # Written by Gary V. Vaughan, 2004
8378 # This file is free software; the Free Software Foundation gives
8379 # unlimited permission to copy and/or distribute it, with or without
8380 # modifications, as long as this notice is preserved.
8382 # serial 6 ltsugar.m4
8384 # This is to help aclocal find these macros, as it can't see m4_define.
8385 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8388 # lt_join(SEP, ARG1, [ARG2...])
8389 # -----------------------------
8390 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8391 # associated separator.
8392 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8393 # versions in m4sugar had bugs.
8394 m4_define([lt_join],
8395 [m4_if([$#], [1], [],
8396        [$#], [2], [[$2]],
8397        [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8398 m4_define([_lt_join],
8399 [m4_if([$#$2], [2], [],
8400        [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8403 # lt_car(LIST)
8404 # lt_cdr(LIST)
8405 # ------------
8406 # Manipulate m4 lists.
8407 # These macros are necessary as long as will still need to support
8408 # Autoconf-2.59, which quotes differently.
8409 m4_define([lt_car], [[$1]])
8410 m4_define([lt_cdr],
8411 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8412        [$#], 1, [],
8413        [m4_dquote(m4_shift($@))])])
8414 m4_define([lt_unquote], $1)
8417 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8418 # ------------------------------------------
8419 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
8420 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8421 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8422 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8423 # than defined and empty).
8425 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8426 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8427 m4_define([lt_append],
8428 [m4_define([$1],
8429            m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8433 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8434 # ----------------------------------------------------------
8435 # Produce a SEP delimited list of all paired combinations of elements of
8436 # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8437 # has the form PREFIXmINFIXSUFFIXn.
8438 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8439 m4_define([lt_combine],
8440 [m4_if(m4_eval([$# > 3]), [1],
8441        [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8442 [[m4_foreach([_Lt_prefix], [$2],
8443              [m4_foreach([_Lt_suffix],
8444                 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8445         [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8448 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8449 # -----------------------------------------------------------------------
8450 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8451 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8452 m4_define([lt_if_append_uniq],
8453 [m4_ifdef([$1],
8454           [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8455                  [lt_append([$1], [$2], [$3])$4],
8456                  [$5])],
8457           [lt_append([$1], [$2], [$3])$4])])
8460 # lt_dict_add(DICT, KEY, VALUE)
8461 # -----------------------------
8462 m4_define([lt_dict_add],
8463 [m4_define([$1($2)], [$3])])
8466 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8467 # --------------------------------------------
8468 m4_define([lt_dict_add_subkey],
8469 [m4_define([$1($2:$3)], [$4])])
8472 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8473 # ----------------------------------
8474 m4_define([lt_dict_fetch],
8475 [m4_ifval([$3],
8476         m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8477     m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8480 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8481 # -----------------------------------------------------------------
8482 m4_define([lt_if_dict_fetch],
8483 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8484         [$5],
8485     [$6])])
8488 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8489 # --------------------------------------------------------------
8490 m4_define([lt_dict_filter],
8491 [m4_if([$5], [], [],
8492   [lt_join(m4_quote(m4_default([$4], [[, ]])),
8493            lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8494                       [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8497 # ltversion.m4 -- version numbers                       -*- Autoconf -*-
8499 #   Copyright (C) 2004, 2011-2013 Free Software Foundation, Inc.
8500 #   Written by Scott James Remnant, 2004
8502 # This file is free software; the Free Software Foundation gives
8503 # unlimited permission to copy and/or distribute it, with or without
8504 # modifications, as long as this notice is preserved.
8506 # @configure_input@
8508 # serial 4038 ltversion.m4
8509 # This file is part of GNU Libtool
8511 m4_define([LT_PACKAGE_VERSION], [2.4.2.418])
8512 m4_define([LT_PACKAGE_REVISION], [2.4.2.418])
8514 AC_DEFUN([LTVERSION_VERSION],
8515 [macro_version='2.4.2.418'
8516 macro_revision='2.4.2.418'
8517 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8518 _LT_DECL(, macro_revision, 0)
8521 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8523 #   Copyright (C) 2004-2005, 2007, 2009, 2011-2013 Free Software
8524 #   Foundation, Inc.
8525 #   Written by Scott James Remnant, 2004.
8527 # This file is free software; the Free Software Foundation gives
8528 # unlimited permission to copy and/or distribute it, with or without
8529 # modifications, as long as this notice is preserved.
8531 # serial 5 lt~obsolete.m4
8533 # These exist entirely to fool aclocal when bootstrapping libtool.
8535 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
8536 # which have later been changed to m4_define as they aren't part of the
8537 # exported API, or moved to Autoconf or Automake where they belong.
8539 # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8540 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8541 # using a macro with the same name in our local m4/libtool.m4 it'll
8542 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8543 # and doesn't know about Autoconf macros at all.)
8545 # So we provide this file, which has a silly filename so it's always
8546 # included after everything else.  This provides aclocal with the
8547 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8548 # because those macros already exist, or will be overwritten later.
8549 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8551 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8552 # Yes, that means every name once taken will need to remain here until
8553 # we give up compatibility with versions before 1.7, at which point
8554 # we need to keep only those names which we still refer to.
8556 # This is to help aclocal find these macros, as it can't see m4_define.
8557 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8559 m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8560 m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8561 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8562 m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8563 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8564 m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8565 m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8566 m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8567 m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8568 m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8569 m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8570 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8571 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8572 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8573 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8574 m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8575 m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8576 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8577 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8578 m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8579 m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8580 m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8581 m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8582 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8583 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8584 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8585 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8586 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8587 m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8588 m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8589 m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8590 m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8591 m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8592 m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8593 m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8594 m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8595 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8596 m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8597 m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8598 m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8599 m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8600 m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8601 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8602 m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8603 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8604 m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8605 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8606 m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8607 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8608 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8609 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8610 m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8611 m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8612 m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8613 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8614 m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8615 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8616 m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8617 m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
8618 m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
8619 m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
8621 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
8623 # This file is free software; the Free Software Foundation
8624 # gives unlimited permission to copy and/or distribute it,
8625 # with or without modifications, as long as this notice is preserved.
8627 # AM_AUTOMAKE_VERSION(VERSION)
8628 # ----------------------------
8629 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8630 # generated from the m4 files accompanying Automake X.Y.
8631 # (This private macro should not be called outside this file.)
8632 AC_DEFUN([AM_AUTOMAKE_VERSION],
8633 [am__api_version='1.15'
8634 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8635 dnl require some minimum version.  Point them to the right macro.
8636 m4_if([$1], [1.15], [],
8637       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8640 # _AM_AUTOCONF_VERSION(VERSION)
8641 # -----------------------------
8642 # aclocal traces this macro to find the Autoconf version.
8643 # This is a private macro too.  Using m4_define simplifies
8644 # the logic in aclocal, which can simply ignore this definition.
8645 m4_define([_AM_AUTOCONF_VERSION], [])
8647 # AM_SET_CURRENT_AUTOMAKE_VERSION
8648 # -------------------------------
8649 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8650 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8651 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8652 [AM_AUTOMAKE_VERSION([1.15])dnl
8653 m4_ifndef([AC_AUTOCONF_VERSION],
8654   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8655 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8657 # Copyright (C) 2011-2014 Free Software Foundation, Inc.
8659 # This file is free software; the Free Software Foundation
8660 # gives unlimited permission to copy and/or distribute it,
8661 # with or without modifications, as long as this notice is preserved.
8663 # AM_PROG_AR([ACT-IF-FAIL])
8664 # -------------------------
8665 # Try to determine the archiver interface, and trigger the ar-lib wrapper
8666 # if it is needed.  If the detection of archiver interface fails, run
8667 # ACT-IF-FAIL (default is to abort configure with a proper error message).
8668 AC_DEFUN([AM_PROG_AR],
8669 [AC_BEFORE([$0], [LT_INIT])dnl
8670 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
8671 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8672 AC_REQUIRE_AUX_FILE([ar-lib])dnl
8673 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
8674 : ${AR=ar}
8676 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
8677   [AC_LANG_PUSH([C])
8678    am_cv_ar_interface=ar
8679    AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
8680      [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
8681       AC_TRY_EVAL([am_ar_try])
8682       if test "$ac_status" -eq 0; then
8683         am_cv_ar_interface=ar
8684       else
8685         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
8686         AC_TRY_EVAL([am_ar_try])
8687         if test "$ac_status" -eq 0; then
8688           am_cv_ar_interface=lib
8689         else
8690           am_cv_ar_interface=unknown
8691         fi
8692       fi
8693       rm -f conftest.lib libconftest.a
8694      ])
8695    AC_LANG_POP([C])])
8697 case $am_cv_ar_interface in
8699   ;;
8700 lib)
8701   # Microsoft lib, so override with the ar-lib wrapper script.
8702   # FIXME: It is wrong to rewrite AR.
8703   # But if we don't then we get into trouble of one sort or another.
8704   # A longer-term fix would be to have automake use am__AR in this case,
8705   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8706   # similar.
8707   AR="$am_aux_dir/ar-lib $AR"
8708   ;;
8709 unknown)
8710   m4_default([$1],
8711              [AC_MSG_ERROR([could not determine $AR interface])])
8712   ;;
8713 esac
8714 AC_SUBST([AR])dnl
8717 # Figure out how to run the assembler.                      -*- Autoconf -*-
8719 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8721 # This file is free software; the Free Software Foundation
8722 # gives unlimited permission to copy and/or distribute it,
8723 # with or without modifications, as long as this notice is preserved.
8725 # AM_PROG_AS
8726 # ----------
8727 AC_DEFUN([AM_PROG_AS],
8728 [# By default we simply use the C compiler to build assembly code.
8729 AC_REQUIRE([AC_PROG_CC])
8730 test "${CCAS+set}" = set || CCAS=$CC
8731 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
8732 AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
8733 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
8734 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
8737 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8739 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8741 # This file is free software; the Free Software Foundation
8742 # gives unlimited permission to copy and/or distribute it,
8743 # with or without modifications, as long as this notice is preserved.
8745 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8746 # $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
8747 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8749 # Of course, Automake must honor this variable whenever it calls a
8750 # tool from the auxiliary directory.  The problem is that $srcdir (and
8751 # therefore $ac_aux_dir as well) can be either absolute or relative,
8752 # depending on how configure is run.  This is pretty annoying, since
8753 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8754 # source directory, any form will work fine, but in subdirectories a
8755 # relative path needs to be adjusted first.
8757 # $ac_aux_dir/missing
8758 #    fails when called from a subdirectory if $ac_aux_dir is relative
8759 # $top_srcdir/$ac_aux_dir/missing
8760 #    fails if $ac_aux_dir is absolute,
8761 #    fails when called from a subdirectory in a VPATH build with
8762 #          a relative $ac_aux_dir
8764 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8765 # are both prefixed by $srcdir.  In an in-source build this is usually
8766 # harmless because $srcdir is '.', but things will broke when you
8767 # start a VPATH build or use an absolute $srcdir.
8769 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8770 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
8771 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8772 # and then we would define $MISSING as
8773 #   MISSING="\${SHELL} $am_aux_dir/missing"
8774 # This will work as long as MISSING is not called from configure, because
8775 # unfortunately $(top_srcdir) has no meaning in configure.
8776 # However there are other variables, like CC, which are often used in
8777 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8779 # Another solution, used here, is to always expand $ac_aux_dir to an
8780 # absolute PATH.  The drawback is that using absolute paths prevent a
8781 # configured tree to be moved without reconfiguration.
8783 AC_DEFUN([AM_AUX_DIR_EXPAND],
8784 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8785 # Expand $ac_aux_dir to an absolute path.
8786 am_aux_dir=`cd "$ac_aux_dir" && pwd`
8789 # AM_CONDITIONAL                                            -*- Autoconf -*-
8791 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
8793 # This file is free software; the Free Software Foundation
8794 # gives unlimited permission to copy and/or distribute it,
8795 # with or without modifications, as long as this notice is preserved.
8797 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8798 # -------------------------------------
8799 # Define a conditional.
8800 AC_DEFUN([AM_CONDITIONAL],
8801 [AC_PREREQ([2.52])dnl
8802  m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
8803        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8804 AC_SUBST([$1_TRUE])dnl
8805 AC_SUBST([$1_FALSE])dnl
8806 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8807 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8808 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8809 if $2; then
8810   $1_TRUE=
8811   $1_FALSE='#'
8812 else
8813   $1_TRUE='#'
8814   $1_FALSE=
8816 AC_CONFIG_COMMANDS_PRE(
8817 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8818   AC_MSG_ERROR([[conditional "$1" was never defined.
8819 Usually this means the macro was only invoked conditionally.]])
8820 fi])])
8822 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
8824 # This file is free software; the Free Software Foundation
8825 # gives unlimited permission to copy and/or distribute it,
8826 # with or without modifications, as long as this notice is preserved.
8829 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8830 # written in clear, in which case automake, when reading aclocal.m4,
8831 # will think it sees a *use*, and therefore will trigger all it's
8832 # C support machinery.  Also note that it means that autoscan, seeing
8833 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8836 # _AM_DEPENDENCIES(NAME)
8837 # ----------------------
8838 # See how the compiler implements dependency checking.
8839 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
8840 # We try a few techniques and use that to set a single cache variable.
8842 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8843 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8844 # dependency, and given that the user is not expected to run this macro,
8845 # just rely on AC_PROG_CC.
8846 AC_DEFUN([_AM_DEPENDENCIES],
8847 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8848 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8849 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8850 AC_REQUIRE([AM_DEP_TRACK])dnl
8852 m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
8853       [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
8854       [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8855       [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
8856       [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
8857       [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
8858                     [depcc="$$1"   am_compiler_list=])
8860 AC_CACHE_CHECK([dependency style of $depcc],
8861                [am_cv_$1_dependencies_compiler_type],
8862 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8863   # We make a subdir and do the tests there.  Otherwise we can end up
8864   # making bogus files that we don't know about and never remove.  For
8865   # instance it was reported that on HP-UX the gcc test will end up
8866   # making a dummy file named 'D' -- because '-MD' means "put the output
8867   # in D".
8868   rm -rf conftest.dir
8869   mkdir conftest.dir
8870   # Copy depcomp to subdir because otherwise we won't find it if we're
8871   # using a relative directory.
8872   cp "$am_depcomp" conftest.dir
8873   cd conftest.dir
8874   # We will build objects and dependencies in a subdirectory because
8875   # it helps to detect inapplicable dependency modes.  For instance
8876   # both Tru64's cc and ICC support -MD to output dependencies as a
8877   # side effect of compilation, but ICC will put the dependencies in
8878   # the current directory while Tru64 will put them in the object
8879   # directory.
8880   mkdir sub
8882   am_cv_$1_dependencies_compiler_type=none
8883   if test "$am_compiler_list" = ""; then
8884      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8885   fi
8886   am__universal=false
8887   m4_case([$1], [CC],
8888     [case " $depcc " in #(
8889      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8890      esac],
8891     [CXX],
8892     [case " $depcc " in #(
8893      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8894      esac])
8896   for depmode in $am_compiler_list; do
8897     # Setup a source with many dependencies, because some compilers
8898     # like to wrap large dependency lists on column 80 (with \), and
8899     # we should not choose a depcomp mode which is confused by this.
8900     #
8901     # We need to recreate these files for each test, as the compiler may
8902     # overwrite some of them when testing with obscure command lines.
8903     # This happens at least with the AIX C compiler.
8904     : > sub/conftest.c
8905     for i in 1 2 3 4 5 6; do
8906       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8907       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8908       # Solaris 10 /bin/sh.
8909       echo '/* dummy */' > sub/conftst$i.h
8910     done
8911     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8913     # We check with '-c' and '-o' for the sake of the "dashmstdout"
8914     # mode.  It turns out that the SunPro C++ compiler does not properly
8915     # handle '-M -o', and we need to detect this.  Also, some Intel
8916     # versions had trouble with output in subdirs.
8917     am__obj=sub/conftest.${OBJEXT-o}
8918     am__minus_obj="-o $am__obj"
8919     case $depmode in
8920     gcc)
8921       # This depmode causes a compiler race in universal mode.
8922       test "$am__universal" = false || continue
8923       ;;
8924     nosideeffect)
8925       # After this tag, mechanisms are not by side-effect, so they'll
8926       # only be used when explicitly requested.
8927       if test "x$enable_dependency_tracking" = xyes; then
8928         continue
8929       else
8930         break
8931       fi
8932       ;;
8933     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8934       # This compiler won't grok '-c -o', but also, the minuso test has
8935       # not run yet.  These depmodes are late enough in the game, and
8936       # so weak that their functioning should not be impacted.
8937       am__obj=conftest.${OBJEXT-o}
8938       am__minus_obj=
8939       ;;
8940     none) break ;;
8941     esac
8942     if depmode=$depmode \
8943        source=sub/conftest.c object=$am__obj \
8944        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8945        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8946          >/dev/null 2>conftest.err &&
8947        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8948        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8949        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8950        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8951       # icc doesn't choke on unknown options, it will just issue warnings
8952       # or remarks (even with -Werror).  So we grep stderr for any message
8953       # that says an option was ignored or not supported.
8954       # When given -MP, icc 7.0 and 7.1 complain thusly:
8955       #   icc: Command line warning: ignoring option '-M'; no argument required
8956       # The diagnosis changed in icc 8.0:
8957       #   icc: Command line remark: option '-MP' not supported
8958       if (grep 'ignoring option' conftest.err ||
8959           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8960         am_cv_$1_dependencies_compiler_type=$depmode
8961         break
8962       fi
8963     fi
8964   done
8966   cd ..
8967   rm -rf conftest.dir
8968 else
8969   am_cv_$1_dependencies_compiler_type=none
8972 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8973 AM_CONDITIONAL([am__fastdep$1], [
8974   test "x$enable_dependency_tracking" != xno \
8975   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8979 # AM_SET_DEPDIR
8980 # -------------
8981 # Choose a directory name for dependency files.
8982 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
8983 AC_DEFUN([AM_SET_DEPDIR],
8984 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8985 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8989 # AM_DEP_TRACK
8990 # ------------
8991 AC_DEFUN([AM_DEP_TRACK],
8992 [AC_ARG_ENABLE([dependency-tracking], [dnl
8993 AS_HELP_STRING(
8994   [--enable-dependency-tracking],
8995   [do not reject slow dependency extractors])
8996 AS_HELP_STRING(
8997   [--disable-dependency-tracking],
8998   [speeds up one-time build])])
8999 if test "x$enable_dependency_tracking" != xno; then
9000   am_depcomp="$ac_aux_dir/depcomp"
9001   AMDEPBACKSLASH='\'
9002   am__nodep='_no'
9004 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9005 AC_SUBST([AMDEPBACKSLASH])dnl
9006 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9007 AC_SUBST([am__nodep])dnl
9008 _AM_SUBST_NOTMAKE([am__nodep])dnl
9011 # Generate code to set up dependency tracking.              -*- Autoconf -*-
9013 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
9015 # This file is free software; the Free Software Foundation
9016 # gives unlimited permission to copy and/or distribute it,
9017 # with or without modifications, as long as this notice is preserved.
9020 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9021 # ------------------------------
9022 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9024   # Older Autoconf quotes --file arguments for eval, but not when files
9025   # are listed without --file.  Let's play safe and only enable the eval
9026   # if we detect the quoting.
9027   case $CONFIG_FILES in
9028   *\'*) eval set x "$CONFIG_FILES" ;;
9029   *)   set x $CONFIG_FILES ;;
9030   esac
9031   shift
9032   for mf
9033   do
9034     # Strip MF so we end up with the name of the file.
9035     mf=`echo "$mf" | sed -e 's/:.*$//'`
9036     # Check whether this is an Automake generated Makefile or not.
9037     # We used to match only the files named 'Makefile.in', but
9038     # some people rename them; so instead we look at the file content.
9039     # Grep'ing the first line is not enough: some people post-process
9040     # each Makefile.in and add a new line on top of each file to say so.
9041     # Grep'ing the whole file is not good either: AIX grep has a line
9042     # limit of 2048, but all sed's we know have understand at least 4000.
9043     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9044       dirpart=`AS_DIRNAME("$mf")`
9045     else
9046       continue
9047     fi
9048     # Extract the definition of DEPDIR, am__include, and am__quote
9049     # from the Makefile without running 'make'.
9050     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9051     test -z "$DEPDIR" && continue
9052     am__include=`sed -n 's/^am__include = //p' < "$mf"`
9053     test -z "$am__include" && continue
9054     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9055     # Find all dependency output files, they are included files with
9056     # $(DEPDIR) in their names.  We invoke sed twice because it is the
9057     # simplest approach to changing $(DEPDIR) to its actual value in the
9058     # expansion.
9059     for file in `sed -n "
9060       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9061          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9062       # Make sure the directory exists.
9063       test -f "$dirpart/$file" && continue
9064       fdir=`AS_DIRNAME(["$file"])`
9065       AS_MKDIR_P([$dirpart/$fdir])
9066       # echo "creating $dirpart/$file"
9067       echo '# dummy' > "$dirpart/$file"
9068     done
9069   done
9071 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9074 # AM_OUTPUT_DEPENDENCY_COMMANDS
9075 # -----------------------------
9076 # This macro should only be invoked once -- use via AC_REQUIRE.
9078 # This code is only required when automatic dependency tracking
9079 # is enabled.  FIXME.  This creates each '.P' file that we will
9080 # need in order to bootstrap the dependency handling code.
9081 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9082 [AC_CONFIG_COMMANDS([depfiles],
9083      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9084      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9087 # Do all the work for Automake.                             -*- Autoconf -*-
9089 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
9091 # This file is free software; the Free Software Foundation
9092 # gives unlimited permission to copy and/or distribute it,
9093 # with or without modifications, as long as this notice is preserved.
9095 # This macro actually does too much.  Some checks are only needed if
9096 # your package does certain things.  But this isn't really a big deal.
9098 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9099 m4_define([AC_PROG_CC],
9100 m4_defn([AC_PROG_CC])
9101 [_AM_PROG_CC_C_O
9104 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9105 # AM_INIT_AUTOMAKE([OPTIONS])
9106 # -----------------------------------------------
9107 # The call with PACKAGE and VERSION arguments is the old style
9108 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
9109 # and VERSION should now be passed to AC_INIT and removed from
9110 # the call to AM_INIT_AUTOMAKE.
9111 # We support both call styles for the transition.  After
9112 # the next Automake release, Autoconf can make the AC_INIT
9113 # arguments mandatory, and then we can depend on a new Autoconf
9114 # release and drop the old call support.
9115 AC_DEFUN([AM_INIT_AUTOMAKE],
9116 [AC_PREREQ([2.65])dnl
9117 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9118 dnl the ones we care about.
9119 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9120 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9121 AC_REQUIRE([AC_PROG_INSTALL])dnl
9122 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9123   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9124   # is not polluted with repeated "-I."
9125   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9126   # test to see if srcdir already configured
9127   if test -f $srcdir/config.status; then
9128     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9129   fi
9132 # test whether we have cygpath
9133 if test -z "$CYGPATH_W"; then
9134   if (cygpath --version) >/dev/null 2>/dev/null; then
9135     CYGPATH_W='cygpath -w'
9136   else
9137     CYGPATH_W=echo
9138   fi
9140 AC_SUBST([CYGPATH_W])
9142 # Define the identity of the package.
9143 dnl Distinguish between old-style and new-style calls.
9144 m4_ifval([$2],
9145 [AC_DIAGNOSE([obsolete],
9146              [$0: two- and three-arguments forms are deprecated.])
9147 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9148  AC_SUBST([PACKAGE], [$1])dnl
9149  AC_SUBST([VERSION], [$2])],
9150 [_AM_SET_OPTIONS([$1])dnl
9151 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9152 m4_if(
9153   m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9154   [ok:ok],,
9155   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9156  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9157  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9159 _AM_IF_OPTION([no-define],,
9160 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9161  AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9163 # Some tools Automake needs.
9164 AC_REQUIRE([AM_SANITY_CHECK])dnl
9165 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9166 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9167 AM_MISSING_PROG([AUTOCONF], [autoconf])
9168 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9169 AM_MISSING_PROG([AUTOHEADER], [autoheader])
9170 AM_MISSING_PROG([MAKEINFO], [makeinfo])
9171 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9172 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9173 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9174 # For better backward compatibility.  To be removed once Automake 1.9.x
9175 # dies out for good.  For more background, see:
9176 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9178 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9179 # We need awk for the "check" target (and possibly the TAP driver).  The
9180 # system "awk" is bad on some platforms.
9181 AC_REQUIRE([AC_PROG_AWK])dnl
9182 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9183 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9184 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9185               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9186                              [_AM_PROG_TAR([v7])])])
9187 _AM_IF_OPTION([no-dependencies],,
9188 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9189                   [_AM_DEPENDENCIES([CC])],
9190                   [m4_define([AC_PROG_CC],
9191                              m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9192 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9193                   [_AM_DEPENDENCIES([CXX])],
9194                   [m4_define([AC_PROG_CXX],
9195                              m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9196 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9197                   [_AM_DEPENDENCIES([OBJC])],
9198                   [m4_define([AC_PROG_OBJC],
9199                              m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9200 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9201                   [_AM_DEPENDENCIES([OBJCXX])],
9202                   [m4_define([AC_PROG_OBJCXX],
9203                              m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9205 AC_REQUIRE([AM_SILENT_RULES])dnl
9206 dnl The testsuite driver may need to know about EXEEXT, so add the
9207 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
9208 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9209 AC_CONFIG_COMMANDS_PRE(dnl
9210 [m4_provide_if([_AM_COMPILER_EXEEXT],
9211   [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9213 # POSIX will say in a future version that running "rm -f" with no argument
9214 # is OK; and we want to be able to make that assumption in our Makefile
9215 # recipes.  So use an aggressive probe to check that the usage we want is
9216 # actually supported "in the wild" to an acceptable degree.
9217 # See automake bug#10828.
9218 # To make any issue more visible, cause the running configure to be aborted
9219 # by default if the 'rm' program in use doesn't match our expectations; the
9220 # user can still override this though.
9221 if rm -f && rm -fr && rm -rf; then : OK; else
9222   cat >&2 <<'END'
9223 Oops!
9225 Your 'rm' program seems unable to run without file operands specified
9226 on the command line, even when the '-f' option is present.  This is contrary
9227 to the behaviour of most rm programs out there, and not conforming with
9228 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9230 Please tell bug-automake@gnu.org about your system, including the value
9231 of your $PATH and any error possibly output before this message.  This
9232 can help us improve future automake versions.
9235   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9236     echo 'Configuration will proceed anyway, since you have set the' >&2
9237     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9238     echo >&2
9239   else
9240     cat >&2 <<'END'
9241 Aborting the configuration process, to ensure you take notice of the issue.
9243 You can download and install GNU coreutils to get an 'rm' implementation
9244 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9246 If you want to complete the configuration process using your problematic
9247 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9248 to "yes", and re-run configure.
9251     AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9252   fi
9254 dnl The trailing newline in this macro's definition is deliberate, for
9255 dnl backward compatibility and to allow trailing 'dnl'-style comments
9256 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
9259 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9260 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9261 dnl mangled by Autoconf and run in a shell conditional statement.
9262 m4_define([_AC_COMPILER_EXEEXT],
9263 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9265 # When config.status generates a header, we must update the stamp-h file.
9266 # This file resides in the same directory as the config header
9267 # that is generated.  The stamp files are numbered to have different names.
9269 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9270 # loop where config.status creates the headers, so we can generate
9271 # our stamp files there.
9272 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9273 [# Compute $1's index in $config_headers.
9274 _am_arg=$1
9275 _am_stamp_count=1
9276 for _am_header in $config_headers :; do
9277   case $_am_header in
9278     $_am_arg | $_am_arg:* )
9279       break ;;
9280     * )
9281       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9282   esac
9283 done
9284 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9286 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9288 # This file is free software; the Free Software Foundation
9289 # gives unlimited permission to copy and/or distribute it,
9290 # with or without modifications, as long as this notice is preserved.
9292 # AM_PROG_INSTALL_SH
9293 # ------------------
9294 # Define $install_sh.
9295 AC_DEFUN([AM_PROG_INSTALL_SH],
9296 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9297 if test x"${install_sh+set}" != xset; then
9298   case $am_aux_dir in
9299   *\ * | *\     *)
9300     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9301   *)
9302     install_sh="\${SHELL} $am_aux_dir/install-sh"
9303   esac
9305 AC_SUBST([install_sh])])
9307 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
9309 # This file is free software; the Free Software Foundation
9310 # gives unlimited permission to copy and/or distribute it,
9311 # with or without modifications, as long as this notice is preserved.
9313 # Check whether the underlying file-system supports filenames
9314 # with a leading dot.  For instance MS-DOS doesn't.
9315 AC_DEFUN([AM_SET_LEADING_DOT],
9316 [rm -rf .tst 2>/dev/null
9317 mkdir .tst 2>/dev/null
9318 if test -d .tst; then
9319   am__leading_dot=.
9320 else
9321   am__leading_dot=_
9323 rmdir .tst 2>/dev/null
9324 AC_SUBST([am__leading_dot])])
9326 # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9327 # From Jim Meyering
9329 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
9331 # This file is free software; the Free Software Foundation
9332 # gives unlimited permission to copy and/or distribute it,
9333 # with or without modifications, as long as this notice is preserved.
9335 # AM_MAINTAINER_MODE([DEFAULT-MODE])
9336 # ----------------------------------
9337 # Control maintainer-specific portions of Makefiles.
9338 # Default is to disable them, unless 'enable' is passed literally.
9339 # For symmetry, 'disable' may be passed as well.  Anyway, the user
9340 # can override the default with the --enable/--disable switch.
9341 AC_DEFUN([AM_MAINTAINER_MODE],
9342 [m4_case(m4_default([$1], [disable]),
9343        [enable], [m4_define([am_maintainer_other], [disable])],
9344        [disable], [m4_define([am_maintainer_other], [enable])],
9345        [m4_define([am_maintainer_other], [enable])
9346         m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9347 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9348   dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9349   AC_ARG_ENABLE([maintainer-mode],
9350     [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
9351       am_maintainer_other[ make rules and dependencies not useful
9352       (and sometimes confusing) to the casual installer])],
9353     [USE_MAINTAINER_MODE=$enableval],
9354     [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9355   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9356   AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9357   MAINT=$MAINTAINER_MODE_TRUE
9358   AC_SUBST([MAINT])dnl
9362 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
9364 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9366 # This file is free software; the Free Software Foundation
9367 # gives unlimited permission to copy and/or distribute it,
9368 # with or without modifications, as long as this notice is preserved.
9370 # AM_MAKE_INCLUDE()
9371 # -----------------
9372 # Check to see how make treats includes.
9373 AC_DEFUN([AM_MAKE_INCLUDE],
9374 [am_make=${MAKE-make}
9375 cat > confinc << 'END'
9376 am__doit:
9377         @echo this is the am__doit target
9378 .PHONY: am__doit
9380 # If we don't find an include directive, just comment out the code.
9381 AC_MSG_CHECKING([for style of include used by $am_make])
9382 am__include="#"
9383 am__quote=
9384 _am_result=none
9385 # First try GNU make style include.
9386 echo "include confinc" > confmf
9387 # Ignore all kinds of additional output from 'make'.
9388 case `$am_make -s -f confmf 2> /dev/null` in #(
9389 *the\ am__doit\ target*)
9390   am__include=include
9391   am__quote=
9392   _am_result=GNU
9393   ;;
9394 esac
9395 # Now try BSD make style include.
9396 if test "$am__include" = "#"; then
9397    echo '.include "confinc"' > confmf
9398    case `$am_make -s -f confmf 2> /dev/null` in #(
9399    *the\ am__doit\ target*)
9400      am__include=.include
9401      am__quote="\""
9402      _am_result=BSD
9403      ;;
9404    esac
9406 AC_SUBST([am__include])
9407 AC_SUBST([am__quote])
9408 AC_MSG_RESULT([$_am_result])
9409 rm -f confinc confmf
9412 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9414 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
9416 # This file is free software; the Free Software Foundation
9417 # gives unlimited permission to copy and/or distribute it,
9418 # with or without modifications, as long as this notice is preserved.
9420 # AM_MISSING_PROG(NAME, PROGRAM)
9421 # ------------------------------
9422 AC_DEFUN([AM_MISSING_PROG],
9423 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9424 $1=${$1-"${am_missing_run}$2"}
9425 AC_SUBST($1)])
9427 # AM_MISSING_HAS_RUN
9428 # ------------------
9429 # Define MISSING if not defined so far and test if it is modern enough.
9430 # If it is, set am_missing_run to use it, otherwise, to nothing.
9431 AC_DEFUN([AM_MISSING_HAS_RUN],
9432 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9433 AC_REQUIRE_AUX_FILE([missing])dnl
9434 if test x"${MISSING+set}" != xset; then
9435   case $am_aux_dir in
9436   *\ * | *\     *)
9437     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9438   *)
9439     MISSING="\${SHELL} $am_aux_dir/missing" ;;
9440   esac
9442 # Use eval to expand $SHELL
9443 if eval "$MISSING --is-lightweight"; then
9444   am_missing_run="$MISSING "
9445 else
9446   am_missing_run=
9447   AC_MSG_WARN(['missing' script is too old or missing])
9451 # Helper functions for option handling.                     -*- Autoconf -*-
9453 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9455 # This file is free software; the Free Software Foundation
9456 # gives unlimited permission to copy and/or distribute it,
9457 # with or without modifications, as long as this notice is preserved.
9459 # _AM_MANGLE_OPTION(NAME)
9460 # -----------------------
9461 AC_DEFUN([_AM_MANGLE_OPTION],
9462 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9464 # _AM_SET_OPTION(NAME)
9465 # --------------------
9466 # Set option NAME.  Presently that only means defining a flag for this option.
9467 AC_DEFUN([_AM_SET_OPTION],
9468 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9470 # _AM_SET_OPTIONS(OPTIONS)
9471 # ------------------------
9472 # OPTIONS is a space-separated list of Automake options.
9473 AC_DEFUN([_AM_SET_OPTIONS],
9474 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9476 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9477 # -------------------------------------------
9478 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9479 AC_DEFUN([_AM_IF_OPTION],
9480 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9482 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
9484 # This file is free software; the Free Software Foundation
9485 # gives unlimited permission to copy and/or distribute it,
9486 # with or without modifications, as long as this notice is preserved.
9488 # _AM_PROG_CC_C_O
9489 # ---------------
9490 # Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
9491 # to automatically call this.
9492 AC_DEFUN([_AM_PROG_CC_C_O],
9493 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9494 AC_REQUIRE_AUX_FILE([compile])dnl
9495 AC_LANG_PUSH([C])dnl
9496 AC_CACHE_CHECK(
9497   [whether $CC understands -c and -o together],
9498   [am_cv_prog_cc_c_o],
9499   [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9500   # Make sure it works both with $CC and with simple cc.
9501   # Following AC_PROG_CC_C_O, we do the test twice because some
9502   # compilers refuse to overwrite an existing .o file with -o,
9503   # though they will create one.
9504   am_cv_prog_cc_c_o=yes
9505   for am_i in 1 2; do
9506     if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9507          && test -f conftest2.$ac_objext; then
9508       : OK
9509     else
9510       am_cv_prog_cc_c_o=no
9511       break
9512     fi
9513   done
9514   rm -f core conftest*
9515   unset am_i])
9516 if test "$am_cv_prog_cc_c_o" != yes; then
9517    # Losing compiler, so override with the script.
9518    # FIXME: It is wrong to rewrite CC.
9519    # But if we don't then we get into trouble of one sort or another.
9520    # A longer-term fix would be to have automake use am__CC in this case,
9521    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9522    CC="$am_aux_dir/compile $CC"
9524 AC_LANG_POP([C])])
9526 # For backward compatibility.
9527 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9529 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9531 # This file is free software; the Free Software Foundation
9532 # gives unlimited permission to copy and/or distribute it,
9533 # with or without modifications, as long as this notice is preserved.
9535 # AM_RUN_LOG(COMMAND)
9536 # -------------------
9537 # Run COMMAND, save the exit status in ac_status, and log it.
9538 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9539 AC_DEFUN([AM_RUN_LOG],
9540 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9541    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9542    ac_status=$?
9543    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9544    (exit $ac_status); }])
9546 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
9548 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
9550 # This file is free software; the Free Software Foundation
9551 # gives unlimited permission to copy and/or distribute it,
9552 # with or without modifications, as long as this notice is preserved.
9554 # AM_SANITY_CHECK
9555 # ---------------
9556 AC_DEFUN([AM_SANITY_CHECK],
9557 [AC_MSG_CHECKING([whether build environment is sane])
9558 # Reject unsafe characters in $srcdir or the absolute working directory
9559 # name.  Accept space and tab only in the latter.
9560 am_lf='
9562 case `pwd` in
9563   *[[\\\"\#\$\&\'\`$am_lf]]*)
9564     AC_MSG_ERROR([unsafe absolute working directory name]);;
9565 esac
9566 case $srcdir in
9567   *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9568     AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9569 esac
9571 # Do 'set' in a subshell so we don't clobber the current shell's
9572 # arguments.  Must try -L first in case configure is actually a
9573 # symlink; some systems play weird games with the mod time of symlinks
9574 # (eg FreeBSD returns the mod time of the symlink's containing
9575 # directory).
9576 if (
9577    am_has_slept=no
9578    for am_try in 1 2; do
9579      echo "timestamp, slept: $am_has_slept" > conftest.file
9580      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9581      if test "$[*]" = "X"; then
9582         # -L didn't work.
9583         set X `ls -t "$srcdir/configure" conftest.file`
9584      fi
9585      if test "$[*]" != "X $srcdir/configure conftest.file" \
9586         && test "$[*]" != "X conftest.file $srcdir/configure"; then
9588         # If neither matched, then we have a broken ls.  This can happen
9589         # if, for instance, CONFIG_SHELL is bash and it inherits a
9590         # broken ls alias from the environment.  This has actually
9591         # happened.  Such a system could not be considered "sane".
9592         AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
9593   alias in your environment])
9594      fi
9595      if test "$[2]" = conftest.file || test $am_try -eq 2; then
9596        break
9597      fi
9598      # Just in case.
9599      sleep 1
9600      am_has_slept=yes
9601    done
9602    test "$[2]" = conftest.file
9603    )
9604 then
9605    # Ok.
9606    :
9607 else
9608    AC_MSG_ERROR([newly created file is older than distributed files!
9609 Check your system clock])
9611 AC_MSG_RESULT([yes])
9612 # If we didn't sleep, we still need to ensure time stamps of config.status and
9613 # generated files are strictly newer.
9614 am_sleep_pid=
9615 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9616   ( sleep 1 ) &
9617   am_sleep_pid=$!
9619 AC_CONFIG_COMMANDS_PRE(
9620   [AC_MSG_CHECKING([that generated files are newer than configure])
9621    if test -n "$am_sleep_pid"; then
9622      # Hide warnings about reused PIDs.
9623      wait $am_sleep_pid 2>/dev/null
9624    fi
9625    AC_MSG_RESULT([done])])
9626 rm -f conftest.file
9629 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
9631 # This file is free software; the Free Software Foundation
9632 # gives unlimited permission to copy and/or distribute it,
9633 # with or without modifications, as long as this notice is preserved.
9635 # AM_SILENT_RULES([DEFAULT])
9636 # --------------------------
9637 # Enable less verbose build rules; with the default set to DEFAULT
9638 # ("yes" being less verbose, "no" or empty being verbose).
9639 AC_DEFUN([AM_SILENT_RULES],
9640 [AC_ARG_ENABLE([silent-rules], [dnl
9641 AS_HELP_STRING(
9642   [--enable-silent-rules],
9643   [less verbose build output (undo: "make V=1")])
9644 AS_HELP_STRING(
9645   [--disable-silent-rules],
9646   [verbose build output (undo: "make V=0")])dnl
9648 case $enable_silent_rules in @%:@ (((
9649   yes) AM_DEFAULT_VERBOSITY=0;;
9650    no) AM_DEFAULT_VERBOSITY=1;;
9651     *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9652 esac
9654 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
9655 dnl do not support nested variable expansions.
9656 dnl See automake bug#9928 and bug#10237.
9657 am_make=${MAKE-make}
9658 AC_CACHE_CHECK([whether $am_make supports nested variables],
9659    [am_cv_make_support_nested_variables],
9660    [if AS_ECHO([['TRUE=$(BAR$(V))
9661 BAR0=false
9662 BAR1=true
9664 am__doit:
9665         @$(TRUE)
9666 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
9667   am_cv_make_support_nested_variables=yes
9668 else
9669   am_cv_make_support_nested_variables=no
9670 fi])
9671 if test $am_cv_make_support_nested_variables = yes; then
9672   dnl Using '$V' instead of '$(V)' breaks IRIX make.
9673   AM_V='$(V)'
9674   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
9675 else
9676   AM_V=$AM_DEFAULT_VERBOSITY
9677   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
9679 AC_SUBST([AM_V])dnl
9680 AM_SUBST_NOTMAKE([AM_V])dnl
9681 AC_SUBST([AM_DEFAULT_V])dnl
9682 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
9683 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9684 AM_BACKSLASH='\'
9685 AC_SUBST([AM_BACKSLASH])dnl
9686 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9689 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9691 # This file is free software; the Free Software Foundation
9692 # gives unlimited permission to copy and/or distribute it,
9693 # with or without modifications, as long as this notice is preserved.
9695 # AM_PROG_INSTALL_STRIP
9696 # ---------------------
9697 # One issue with vendor 'install' (even GNU) is that you can't
9698 # specify the program used to strip binaries.  This is especially
9699 # annoying in cross-compiling environments, where the build's strip
9700 # is unlikely to handle the host's binaries.
9701 # Fortunately install-sh will honor a STRIPPROG variable, so we
9702 # always use install-sh in "make install-strip", and initialize
9703 # STRIPPROG with the value of the STRIP variable (set by the user).
9704 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9705 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9706 # Installed binaries are usually stripped using 'strip' when the user
9707 # run "make install-strip".  However 'strip' might not be the right
9708 # tool to use in cross-compilation environments, therefore Automake
9709 # will honor the 'STRIP' environment variable to overrule this program.
9710 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
9711 if test "$cross_compiling" != no; then
9712   AC_CHECK_TOOL([STRIP], [strip], :)
9714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9715 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9717 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
9719 # This file is free software; the Free Software Foundation
9720 # gives unlimited permission to copy and/or distribute it,
9721 # with or without modifications, as long as this notice is preserved.
9723 # _AM_SUBST_NOTMAKE(VARIABLE)
9724 # ---------------------------
9725 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9726 # This macro is traced by Automake.
9727 AC_DEFUN([_AM_SUBST_NOTMAKE])
9729 # AM_SUBST_NOTMAKE(VARIABLE)
9730 # --------------------------
9731 # Public sister of _AM_SUBST_NOTMAKE.
9732 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9734 # Check how to create a tarball.                            -*- Autoconf -*-
9736 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
9738 # This file is free software; the Free Software Foundation
9739 # gives unlimited permission to copy and/or distribute it,
9740 # with or without modifications, as long as this notice is preserved.
9742 # _AM_PROG_TAR(FORMAT)
9743 # --------------------
9744 # Check how to create a tarball in format FORMAT.
9745 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
9747 # Substitute a variable $(am__tar) that is a command
9748 # writing to stdout a FORMAT-tarball containing the directory
9749 # $tardir.
9750 #     tardir=directory && $(am__tar) > result.tar
9752 # Substitute a variable $(am__untar) that extract such
9753 # a tarball read from stdin.
9754 #     $(am__untar) < result.tar
9756 AC_DEFUN([_AM_PROG_TAR],
9757 [# Always define AMTAR for backward compatibility.  Yes, it's still used
9758 # in the wild :-(  We should find a proper way to deprecate it ...
9759 AC_SUBST([AMTAR], ['$${TAR-tar}'])
9761 # We'll loop over all known methods to create a tar archive until one works.
9762 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9764 m4_if([$1], [v7],
9765   [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9767   [m4_case([$1],
9768     [ustar],
9769      [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
9770       # There is notably a 21 bits limit for the UID and the GID.  In fact,
9771       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9772       # and bug#13588).
9773       am_max_uid=2097151 # 2^21 - 1
9774       am_max_gid=$am_max_uid
9775       # The $UID and $GID variables are not portable, so we need to resort
9776       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
9777       # below are definitely unexpected, so allow the users to see them
9778       # (that is, avoid stderr redirection).
9779       am_uid=`id -u || echo unknown`
9780       am_gid=`id -g || echo unknown`
9781       AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
9782       if test $am_uid -le $am_max_uid; then
9783          AC_MSG_RESULT([yes])
9784       else
9785          AC_MSG_RESULT([no])
9786          _am_tools=none
9787       fi
9788       AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
9789       if test $am_gid -le $am_max_gid; then
9790          AC_MSG_RESULT([yes])
9791       else
9792         AC_MSG_RESULT([no])
9793         _am_tools=none
9794       fi],
9796   [pax],
9797     [],
9799   [m4_fatal([Unknown tar format])])
9801   AC_MSG_CHECKING([how to create a $1 tar archive])
9803   # Go ahead even if we have the value already cached.  We do so because we
9804   # need to set the values for the 'am__tar' and 'am__untar' variables.
9805   _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9807   for _am_tool in $_am_tools; do
9808     case $_am_tool in
9809     gnutar)
9810       for _am_tar in tar gnutar gtar; do
9811         AM_RUN_LOG([$_am_tar --version]) && break
9812       done
9813       am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9814       am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9815       am__untar="$_am_tar -xf -"
9816       ;;
9817     plaintar)
9818       # Must skip GNU tar: if it does not support --format= it doesn't create
9819       # ustar tarball either.
9820       (tar --version) >/dev/null 2>&1 && continue
9821       am__tar='tar chf - "$$tardir"'
9822       am__tar_='tar chf - "$tardir"'
9823       am__untar='tar xf -'
9824       ;;
9825     pax)
9826       am__tar='pax -L -x $1 -w "$$tardir"'
9827       am__tar_='pax -L -x $1 -w "$tardir"'
9828       am__untar='pax -r'
9829       ;;
9830     cpio)
9831       am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9832       am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9833       am__untar='cpio -i -H $1 -d'
9834       ;;
9835     none)
9836       am__tar=false
9837       am__tar_=false
9838       am__untar=false
9839       ;;
9840     esac
9842     # If the value was cached, stop now.  We just wanted to have am__tar
9843     # and am__untar set.
9844     test -n "${am_cv_prog_tar_$1}" && break
9846     # tar/untar a dummy directory, and stop if the command works.
9847     rm -rf conftest.dir
9848     mkdir conftest.dir
9849     echo GrepMe > conftest.dir/file
9850     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9851     rm -rf conftest.dir
9852     if test -s conftest.tar; then
9853       AM_RUN_LOG([$am__untar <conftest.tar])
9854       AM_RUN_LOG([cat conftest.dir/file])
9855       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9856     fi
9857   done
9858   rm -rf conftest.dir
9860   AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9861   AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9863 AC_SUBST([am__tar])
9864 AC_SUBST([am__untar])
9865 ]) # _AM_PROG_TAR