1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.11'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.11.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.11.1])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
60 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is `.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [dnl Rely on autoconf to set up CDPATH properly.
107 # expand $ac_aux_dir to an absolute path
108 am_aux_dir=`cd $ac_aux_dir && pwd`
112 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
113 # Free Software Foundation, Inc.
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
121 # This was merged into AC_PROG_CC in Autoconf.
123 AU_DEFUN([AM_PROG_CC_STDC],
125 AC_DIAGNOSE([obsolete], [$0:
126 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
127 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
128 you adjust the code. You can also remove the above call to
129 AC_PROG_CC if you already called it elsewhere.])
130 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
132 AU_DEFUN([fp_PROG_CC_STDC])
134 # AM_CONDITIONAL -*- Autoconf -*-
136 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
137 # Free Software Foundation, Inc.
139 # This file is free software; the Free Software Foundation
140 # gives unlimited permission to copy and/or distribute it,
141 # with or without modifications, as long as this notice is preserved.
145 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
146 # -------------------------------------
147 # Define a conditional.
148 AC_DEFUN([AM_CONDITIONAL],
150 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
151 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
152 AC_SUBST([$1_TRUE])dnl
153 AC_SUBST([$1_FALSE])dnl
154 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
155 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
156 m4_define([_AM_COND_VALUE_$1], [$2])dnl
164 AC_CONFIG_COMMANDS_PRE(
165 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
166 AC_MSG_ERROR([[conditional "$1" was never defined.
167 Usually this means the macro was only invoked conditionally.]])
170 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
171 # Free Software Foundation, Inc.
173 # This file is free software; the Free Software Foundation
174 # gives unlimited permission to copy and/or distribute it,
175 # with or without modifications, as long as this notice is preserved.
179 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
180 # written in clear, in which case automake, when reading aclocal.m4,
181 # will think it sees a *use*, and therefore will trigger all it's
182 # C support machinery. Also note that it means that autoscan, seeing
183 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
186 # _AM_DEPENDENCIES(NAME)
187 # ----------------------
188 # See how the compiler implements dependency checking.
189 # NAME is "CC", "CXX", "GCJ", or "OBJC".
190 # We try a few techniques and use that to set a single cache variable.
192 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
193 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
194 # dependency, and given that the user is not expected to run this macro,
195 # just rely on AC_PROG_CC.
196 AC_DEFUN([_AM_DEPENDENCIES],
197 [AC_REQUIRE([AM_SET_DEPDIR])dnl
198 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
199 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
200 AC_REQUIRE([AM_DEP_TRACK])dnl
202 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
203 [$1], CXX, [depcc="$CXX" am_compiler_list=],
204 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
205 [$1], UPC, [depcc="$UPC" am_compiler_list=],
206 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
207 [depcc="$$1" am_compiler_list=])
209 AC_CACHE_CHECK([dependency style of $depcc],
210 [am_cv_$1_dependencies_compiler_type],
211 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
212 # We make a subdir and do the tests there. Otherwise we can end up
213 # making bogus files that we don't know about and never remove. For
214 # instance it was reported that on HP-UX the gcc test will end up
215 # making a dummy file named `D' -- because `-MD' means `put the output
218 # Copy depcomp to subdir because otherwise we won't find it if we're
219 # using a relative directory.
220 cp "$am_depcomp" conftest.dir
222 # We will build objects and dependencies in a subdirectory because
223 # it helps to detect inapplicable dependency modes. For instance
224 # both Tru64's cc and ICC support -MD to output dependencies as a
225 # side effect of compilation, but ICC will put the dependencies in
226 # the current directory while Tru64 will put them in the object
230 am_cv_$1_dependencies_compiler_type=none
231 if test "$am_compiler_list" = ""; then
232 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
236 [case " $depcc " in #(
237 *\ -arch\ *\ -arch\ *) am__universal=true ;;
240 [case " $depcc " in #(
241 *\ -arch\ *\ -arch\ *) am__universal=true ;;
244 for depmode in $am_compiler_list; do
245 # Setup a source with many dependencies, because some compilers
246 # like to wrap large dependency lists on column 80 (with \), and
247 # we should not choose a depcomp mode which is confused by this.
249 # We need to recreate these files for each test, as the compiler may
250 # overwrite some of them when testing with obscure command lines.
251 # This happens at least with the AIX C compiler.
253 for i in 1 2 3 4 5 6; do
254 echo '#include "conftst'$i'.h"' >> sub/conftest.c
255 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
256 # Solaris 8's {/usr,}/bin/sh.
257 touch sub/conftst$i.h
259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
261 # We check with `-c' and `-o' for the sake of the "dashmstdout"
262 # mode. It turns out that the SunPro C++ compiler does not properly
263 # handle `-M -o', and we need to detect this. Also, some Intel
264 # versions had trouble with output in subdirs
265 am__obj=sub/conftest.${OBJEXT-o}
266 am__minus_obj="-o $am__obj"
269 # This depmode causes a compiler race in universal mode.
270 test "$am__universal" = false || continue
273 # after this tag, mechanisms are not by side-effect, so they'll
274 # only be used when explicitly requested
275 if test "x$enable_dependency_tracking" = xyes; then
281 msvisualcpp | msvcmsys)
282 # This compiler won't grok `-c -o', but also, the minuso test has
283 # not run yet. These depmodes are late enough in the game, and
284 # so weak that their functioning should not be impacted.
285 am__obj=conftest.${OBJEXT-o}
290 if depmode=$depmode \
291 source=sub/conftest.c object=$am__obj \
292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
293 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
294 >/dev/null 2>conftest.err &&
295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
297 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
299 # icc doesn't choke on unknown options, it will just issue warnings
300 # or remarks (even with -Werror). So we grep stderr for any message
301 # that says an option was ignored or not supported.
302 # When given -MP, icc 7.0 and 7.1 complain thusly:
303 # icc: Command line warning: ignoring option '-M'; no argument required
304 # The diagnosis changed in icc 8.0:
305 # icc: Command line remark: option '-MP' not supported
306 if (grep 'ignoring option' conftest.err ||
307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
308 am_cv_$1_dependencies_compiler_type=$depmode
317 am_cv_$1_dependencies_compiler_type=none
320 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
321 AM_CONDITIONAL([am__fastdep$1], [
322 test "x$enable_dependency_tracking" != xno \
323 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
329 # Choose a directory name for dependency files.
330 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
331 AC_DEFUN([AM_SET_DEPDIR],
332 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
333 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
339 AC_DEFUN([AM_DEP_TRACK],
340 [AC_ARG_ENABLE(dependency-tracking,
341 [ --disable-dependency-tracking speeds up one-time build
342 --enable-dependency-tracking do not reject slow dependency extractors])
343 if test "x$enable_dependency_tracking" != xno; then
344 am_depcomp="$ac_aux_dir/depcomp"
347 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
348 AC_SUBST([AMDEPBACKSLASH])dnl
349 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
352 # Generate code to set up dependency tracking. -*- Autoconf -*-
354 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
355 # Free Software Foundation, Inc.
357 # This file is free software; the Free Software Foundation
358 # gives unlimited permission to copy and/or distribute it,
359 # with or without modifications, as long as this notice is preserved.
363 # _AM_OUTPUT_DEPENDENCY_COMMANDS
364 # ------------------------------
365 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
367 # Autoconf 2.62 quotes --file arguments for eval, but not when files
368 # are listed without --file. Let's play safe and only enable the eval
369 # if we detect the quoting.
370 case $CONFIG_FILES in
371 *\'*) eval set x "$CONFIG_FILES" ;;
372 *) set x $CONFIG_FILES ;;
377 # Strip MF so we end up with the name of the file.
378 mf=`echo "$mf" | sed -e 's/:.*$//'`
379 # Check whether this is an Automake generated Makefile or not.
380 # We used to match only the files named `Makefile.in', but
381 # some people rename them; so instead we look at the file content.
382 # Grep'ing the first line is not enough: some people post-process
383 # each Makefile.in and add a new line on top of each file to say so.
384 # Grep'ing the whole file is not good either: AIX grep has a line
385 # limit of 2048, but all sed's we know have understand at least 4000.
386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
387 dirpart=`AS_DIRNAME("$mf")`
391 # Extract the definition of DEPDIR, am__include, and am__quote
392 # from the Makefile without running `make'.
393 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
394 test -z "$DEPDIR" && continue
395 am__include=`sed -n 's/^am__include = //p' < "$mf"`
396 test -z "am__include" && continue
397 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
398 # When using ansi2knr, U may be empty or an underscore; expand it
399 U=`sed -n 's/^U = //p' < "$mf"`
400 # Find all dependency output files, they are included files with
401 # $(DEPDIR) in their names. We invoke sed twice because it is the
402 # simplest approach to changing $(DEPDIR) to its actual value in the
404 for file in `sed -n "
405 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
407 # Make sure the directory exists.
408 test -f "$dirpart/$file" && continue
409 fdir=`AS_DIRNAME(["$file"])`
410 AS_MKDIR_P([$dirpart/$fdir])
411 # echo "creating $dirpart/$file"
412 echo '# dummy' > "$dirpart/$file"
416 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
419 # AM_OUTPUT_DEPENDENCY_COMMANDS
420 # -----------------------------
421 # This macro should only be invoked once -- use via AC_REQUIRE.
423 # This code is only required when automatic dependency tracking
424 # is enabled. FIXME. This creates each `.P' file that we will
425 # need in order to bootstrap the dependency handling code.
426 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
427 [AC_CONFIG_COMMANDS([depfiles],
428 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
429 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
432 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
433 # Free Software Foundation, Inc.
435 # This file is free software; the Free Software Foundation
436 # gives unlimited permission to copy and/or distribute it,
437 # with or without modifications, as long as this notice is preserved.
441 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
442 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
444 # Do all the work for Automake. -*- Autoconf -*-
446 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
447 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
449 # This file is free software; the Free Software Foundation
450 # gives unlimited permission to copy and/or distribute it,
451 # with or without modifications, as long as this notice is preserved.
455 # This macro actually does too much. Some checks are only needed if
456 # your package does certain things. But this isn't really a big deal.
458 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
459 # AM_INIT_AUTOMAKE([OPTIONS])
460 # -----------------------------------------------
461 # The call with PACKAGE and VERSION arguments is the old style
462 # call (pre autoconf-2.50), which is being phased out. PACKAGE
463 # and VERSION should now be passed to AC_INIT and removed from
464 # the call to AM_INIT_AUTOMAKE.
465 # We support both call styles for the transition. After
466 # the next Automake release, Autoconf can make the AC_INIT
467 # arguments mandatory, and then we can depend on a new Autoconf
468 # release and drop the old call support.
469 AC_DEFUN([AM_INIT_AUTOMAKE],
470 [AC_PREREQ([2.62])dnl
471 dnl Autoconf wants to disallow AM_ names. We explicitly allow
472 dnl the ones we care about.
473 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
474 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
475 AC_REQUIRE([AC_PROG_INSTALL])dnl
476 if test "`cd $srcdir && pwd`" != "`pwd`"; then
477 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
478 # is not polluted with repeated "-I."
479 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
480 # test to see if srcdir already configured
481 if test -f $srcdir/config.status; then
482 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
486 # test whether we have cygpath
487 if test -z "$CYGPATH_W"; then
488 if (cygpath --version) >/dev/null 2>/dev/null; then
489 CYGPATH_W='cygpath -w'
494 AC_SUBST([CYGPATH_W])
496 # Define the identity of the package.
497 dnl Distinguish between old-style and new-style calls.
499 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
500 AC_SUBST([PACKAGE], [$1])dnl
501 AC_SUBST([VERSION], [$2])],
502 [_AM_SET_OPTIONS([$1])dnl
503 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
504 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
505 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
506 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
507 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
509 _AM_IF_OPTION([no-define],,
510 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
511 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
513 # Some tools Automake needs.
514 AC_REQUIRE([AM_SANITY_CHECK])dnl
515 AC_REQUIRE([AC_ARG_PROGRAM])dnl
516 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
517 AM_MISSING_PROG(AUTOCONF, autoconf)
518 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
519 AM_MISSING_PROG(AUTOHEADER, autoheader)
520 AM_MISSING_PROG(MAKEINFO, makeinfo)
521 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
522 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
523 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
524 # We need awk for the "check" target. The system "awk" is bad on
526 AC_REQUIRE([AC_PROG_AWK])dnl
527 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
528 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
529 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
530 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
531 [_AM_PROG_TAR([v7])])])
532 _AM_IF_OPTION([no-dependencies],,
533 [AC_PROVIDE_IFELSE([AC_PROG_CC],
534 [_AM_DEPENDENCIES(CC)],
535 [define([AC_PROG_CC],
536 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
537 AC_PROVIDE_IFELSE([AC_PROG_CXX],
538 [_AM_DEPENDENCIES(CXX)],
539 [define([AC_PROG_CXX],
540 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
541 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
542 [_AM_DEPENDENCIES(OBJC)],
543 [define([AC_PROG_OBJC],
544 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
546 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
547 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
548 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
549 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
550 AC_CONFIG_COMMANDS_PRE(dnl
551 [m4_provide_if([_AM_COMPILER_EXEEXT],
552 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
555 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
556 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
557 dnl mangled by Autoconf and run in a shell conditional statement.
558 m4_define([_AC_COMPILER_EXEEXT],
559 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
562 # When config.status generates a header, we must update the stamp-h file.
563 # This file resides in the same directory as the config header
564 # that is generated. The stamp files are numbered to have different names.
566 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
567 # loop where config.status creates the headers, so we can generate
568 # our stamp files there.
569 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
570 [# Compute $1's index in $config_headers.
573 for _am_header in $config_headers :; do
575 $_am_arg | $_am_arg:* )
578 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
581 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
583 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
585 # This file is free software; the Free Software Foundation
586 # gives unlimited permission to copy and/or distribute it,
587 # with or without modifications, as long as this notice is preserved.
591 # Define $install_sh.
592 AC_DEFUN([AM_PROG_INSTALL_SH],
593 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
594 if test x"${install_sh}" != xset; then
597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
599 install_sh="\${SHELL} $am_aux_dir/install-sh"
602 AC_SUBST(install_sh)])
604 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
606 # This file is free software; the Free Software Foundation
607 # gives unlimited permission to copy and/or distribute it,
608 # with or without modifications, as long as this notice is preserved.
612 # Check whether the underlying file-system supports filenames
613 # with a leading dot. For instance MS-DOS doesn't.
614 AC_DEFUN([AM_SET_LEADING_DOT],
615 [rm -rf .tst 2>/dev/null
616 mkdir .tst 2>/dev/null
617 if test -d .tst; then
622 rmdir .tst 2>/dev/null
623 AC_SUBST([am__leading_dot])])
625 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
628 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
629 # Free Software Foundation, Inc.
631 # This file is free software; the Free Software Foundation
632 # gives unlimited permission to copy and/or distribute it,
633 # with or without modifications, as long as this notice is preserved.
637 # AM_MAINTAINER_MODE([DEFAULT-MODE])
638 # ----------------------------------
639 # Control maintainer-specific portions of Makefiles.
640 # Default is to disable them, unless `enable' is passed literally.
641 # For symmetry, `disable' may be passed as well. Anyway, the user
642 # can override the default with the --enable/--disable switch.
643 AC_DEFUN([AM_MAINTAINER_MODE],
644 [m4_case(m4_default([$1], [disable]),
645 [enable], [m4_define([am_maintainer_other], [disable])],
646 [disable], [m4_define([am_maintainer_other], [enable])],
647 [m4_define([am_maintainer_other], [enable])
648 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
649 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
650 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
651 AC_ARG_ENABLE([maintainer-mode],
652 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
653 (and sometimes confusing) to the casual installer],
654 [USE_MAINTAINER_MODE=$enableval],
655 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
656 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
657 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
658 MAINT=$MAINTAINER_MODE_TRUE
663 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
665 # Check to see how 'make' treats includes. -*- Autoconf -*-
667 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
669 # This file is free software; the Free Software Foundation
670 # gives unlimited permission to copy and/or distribute it,
671 # with or without modifications, as long as this notice is preserved.
677 # Check to see how make treats includes.
678 AC_DEFUN([AM_MAKE_INCLUDE],
679 [am_make=${MAKE-make}
680 cat > confinc << 'END'
682 @echo this is the am__doit target
685 # If we don't find an include directive, just comment out the code.
686 AC_MSG_CHECKING([for style of include used by $am_make])
690 # First try GNU make style include.
691 echo "include confinc" > confmf
692 # Ignore all kinds of additional output from `make'.
693 case `$am_make -s -f confmf 2> /dev/null` in #(
694 *the\ am__doit\ target*)
700 # Now try BSD make style include.
701 if test "$am__include" = "#"; then
702 echo '.include "confinc"' > confmf
703 case `$am_make -s -f confmf 2> /dev/null` in #(
704 *the\ am__doit\ target*)
711 AC_SUBST([am__include])
712 AC_SUBST([am__quote])
713 AC_MSG_RESULT([$_am_result])
717 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
719 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
720 # Free Software Foundation, Inc.
722 # This file is free software; the Free Software Foundation
723 # gives unlimited permission to copy and/or distribute it,
724 # with or without modifications, as long as this notice is preserved.
728 # AM_MISSING_PROG(NAME, PROGRAM)
729 # ------------------------------
730 AC_DEFUN([AM_MISSING_PROG],
731 [AC_REQUIRE([AM_MISSING_HAS_RUN])
732 $1=${$1-"${am_missing_run}$2"}
738 # Define MISSING if not defined so far and test if it supports --run.
739 # If it does, set am_missing_run to use it, otherwise, to nothing.
740 AC_DEFUN([AM_MISSING_HAS_RUN],
741 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
742 AC_REQUIRE_AUX_FILE([missing])dnl
743 if test x"${MISSING+set}" != xset; then
746 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
748 MISSING="\${SHELL} $am_aux_dir/missing" ;;
751 # Use eval to expand $SHELL
752 if eval "$MISSING --run true"; then
753 am_missing_run="$MISSING --run "
756 AC_MSG_WARN([`missing' script is too old or missing])
760 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
762 # This file is free software; the Free Software Foundation
763 # gives unlimited permission to copy and/or distribute it,
764 # with or without modifications, as long as this notice is preserved.
768 # Check for `mkdir -p'.
769 AC_DEFUN([AM_PROG_MKDIR_P],
770 [AC_PREREQ([2.60])dnl
771 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
772 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
773 dnl while keeping a definition of mkdir_p for backward compatibility.
774 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
775 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
776 dnl Makefile.ins that do not define MKDIR_P, so we do our own
777 dnl adjustment using top_builddir (which is defined more often than
779 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
781 [[\\/$]]* | ?:[[\\/]]*) ;;
782 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
786 # Helper functions for option handling. -*- Autoconf -*-
788 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
790 # This file is free software; the Free Software Foundation
791 # gives unlimited permission to copy and/or distribute it,
792 # with or without modifications, as long as this notice is preserved.
796 # _AM_MANGLE_OPTION(NAME)
797 # -----------------------
798 AC_DEFUN([_AM_MANGLE_OPTION],
799 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
801 # _AM_SET_OPTION(NAME)
802 # ------------------------------
803 # Set option NAME. Presently that only means defining a flag for this option.
804 AC_DEFUN([_AM_SET_OPTION],
805 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
807 # _AM_SET_OPTIONS(OPTIONS)
808 # ----------------------------------
809 # OPTIONS is a space-separated list of Automake options.
810 AC_DEFUN([_AM_SET_OPTIONS],
811 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
813 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
814 # -------------------------------------------
815 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
816 AC_DEFUN([_AM_IF_OPTION],
817 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
819 # Check to make sure that the build environment is sane. -*- Autoconf -*-
821 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
822 # Free Software Foundation, Inc.
824 # This file is free software; the Free Software Foundation
825 # gives unlimited permission to copy and/or distribute it,
826 # with or without modifications, as long as this notice is preserved.
832 AC_DEFUN([AM_SANITY_CHECK],
833 [AC_MSG_CHECKING([whether build environment is sane])
836 echo timestamp > conftest.file
837 # Reject unsafe characters in $srcdir or the absolute working directory
838 # name. Accept space and tab only in the latter.
842 *[[\\\"\#\$\&\'\`$am_lf]]*)
843 AC_MSG_ERROR([unsafe absolute working directory name]);;
846 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
847 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
850 # Do `set' in a subshell so we don't clobber the current shell's
851 # arguments. Must try -L first in case configure is actually a
852 # symlink; some systems play weird games with the mod time of symlinks
853 # (eg FreeBSD returns the mod time of the symlink's containing
856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
857 if test "$[*]" = "X"; then
859 set X `ls -t "$srcdir/configure" conftest.file`
862 if test "$[*]" != "X $srcdir/configure conftest.file" \
863 && test "$[*]" != "X conftest.file $srcdir/configure"; then
865 # If neither matched, then we have a broken ls. This can happen
866 # if, for instance, CONFIG_SHELL is bash and it inherits a
867 # broken ls alias from the environment. This has actually
868 # happened. Such a system could not be considered "sane".
869 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
870 alias in your environment])
873 test "$[2]" = conftest.file
879 AC_MSG_ERROR([newly created file is older than distributed files!
880 Check your system clock])
884 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
886 # This file is free software; the Free Software Foundation
887 # gives unlimited permission to copy and/or distribute it,
888 # with or without modifications, as long as this notice is preserved.
890 # AM_PROG_INSTALL_STRIP
891 # ---------------------
892 # One issue with vendor `install' (even GNU) is that you can't
893 # specify the program used to strip binaries. This is especially
894 # annoying in cross-compiling environments, where the build's strip
895 # is unlikely to handle the host's binaries.
896 # Fortunately install-sh will honor a STRIPPROG variable, so we
897 # always use install-sh in `make install-strip', and initialize
898 # STRIPPROG with the value of the STRIP variable (set by the user).
899 AC_DEFUN([AM_PROG_INSTALL_STRIP],
900 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
901 # Installed binaries are usually stripped using `strip' when the user
902 # run `make install-strip'. However `strip' might not be the right
903 # tool to use in cross-compilation environments, therefore Automake
904 # will honor the `STRIP' environment variable to overrule this program.
905 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
906 if test "$cross_compiling" != no; then
907 AC_CHECK_TOOL([STRIP], [strip], :)
909 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
910 AC_SUBST([INSTALL_STRIP_PROGRAM])])
912 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
914 # This file is free software; the Free Software Foundation
915 # gives unlimited permission to copy and/or distribute it,
916 # with or without modifications, as long as this notice is preserved.
920 # _AM_SUBST_NOTMAKE(VARIABLE)
921 # ---------------------------
922 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
923 # This macro is traced by Automake.
924 AC_DEFUN([_AM_SUBST_NOTMAKE])
926 # AM_SUBST_NOTMAKE(VARIABLE)
927 # ---------------------------
928 # Public sister of _AM_SUBST_NOTMAKE.
929 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
931 # Check how to create a tarball. -*- Autoconf -*-
933 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
935 # This file is free software; the Free Software Foundation
936 # gives unlimited permission to copy and/or distribute it,
937 # with or without modifications, as long as this notice is preserved.
941 # _AM_PROG_TAR(FORMAT)
942 # --------------------
943 # Check how to create a tarball in format FORMAT.
944 # FORMAT should be one of `v7', `ustar', or `pax'.
946 # Substitute a variable $(am__tar) that is a command
947 # writing to stdout a FORMAT-tarball containing the directory
949 # tardir=directory && $(am__tar) > result.tar
951 # Substitute a variable $(am__untar) that extract such
952 # a tarball read from stdin.
953 # $(am__untar) < result.tar
954 AC_DEFUN([_AM_PROG_TAR],
955 [# Always define AMTAR for backward compatibility.
956 AM_MISSING_PROG([AMTAR], [tar])
958 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
959 [m4_case([$1], [ustar],, [pax],,
960 [m4_fatal([Unknown tar format])])
961 AC_MSG_CHECKING([how to create a $1 tar archive])
962 # Loop over all known methods to create a tar archive until one works.
963 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
964 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
965 # Do not fold the above two line into one, because Tru64 sh and
966 # Solaris sh will not grok spaces in the rhs of `-'.
967 for _am_tool in $_am_tools
971 for _am_tar in tar gnutar gtar;
973 AM_RUN_LOG([$_am_tar --version]) && break
975 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
976 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
977 am__untar="$_am_tar -xf -"
980 # Must skip GNU tar: if it does not support --format= it doesn't create
981 # ustar tarball either.
982 (tar --version) >/dev/null 2>&1 && continue
983 am__tar='tar chf - "$$tardir"'
984 am__tar_='tar chf - "$tardir"'
988 am__tar='pax -L -x $1 -w "$$tardir"'
989 am__tar_='pax -L -x $1 -w "$tardir"'
993 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
994 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
995 am__untar='cpio -i -H $1 -d'
1004 # If the value was cached, stop now. We just wanted to have am__tar
1005 # and am__untar set.
1006 test -n "${am_cv_prog_tar_$1}" && break
1008 # tar/untar a dummy directory, and stop if the command works
1011 echo GrepMe > conftest.dir/file
1012 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1014 if test -s conftest.tar; then
1015 AM_RUN_LOG([$am__untar <conftest.tar])
1016 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1021 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1022 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1024 AC_SUBST([am__untar])
1027 m4_include([acglib.m4])
1028 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1030 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1031 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1033 # Written by Gordon Matzigkeit, 1996
1035 # This file is free software; the Free Software Foundation gives
1036 # unlimited permission to copy and/or distribute it, with or without
1037 # modifications, as long as this notice is preserved.
1039 m4_define([_LT_COPYING], [dnl
1040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1041 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1043 # Written by Gordon Matzigkeit, 1996
1045 # This file is part of GNU Libtool.
1047 # GNU Libtool is free software; you can redistribute it and/or
1048 # modify it under the terms of the GNU General Public License as
1049 # published by the Free Software Foundation; either version 2 of
1050 # the License, or (at your option) any later version.
1052 # As a special exception to the GNU General Public License,
1053 # if you distribute this file as part of a program or library that
1054 # is built using GNU Libtool, you may include this file under the
1055 # same distribution terms that you use for the rest of that program.
1057 # GNU Libtool is distributed in the hope that it will be useful,
1058 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1059 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1060 # GNU General Public License for more details.
1062 # You should have received a copy of the GNU General Public License
1063 # along with GNU Libtool; see the file COPYING. If not, a copy
1064 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1065 # obtained by writing to the Free Software Foundation, Inc.,
1066 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1072 # LT_PREREQ(VERSION)
1073 # ------------------
1074 # Complain and exit if this libtool version is less that VERSION.
1075 m4_defun([LT_PREREQ],
1076 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1078 [m4_fatal([Libtool version $1 or higher is required],
1083 # _LT_CHECK_BUILDDIR
1084 # ------------------
1085 # Complain if the absolute build directory name contains unusual characters
1086 m4_defun([_LT_CHECK_BUILDDIR],
1089 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1094 # LT_INIT([OPTIONS])
1095 # ------------------
1097 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1098 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1099 AC_BEFORE([$0], [LT_LANG])dnl
1100 AC_BEFORE([$0], [LT_OUTPUT])dnl
1101 AC_BEFORE([$0], [LTDL_INIT])dnl
1102 m4_require([_LT_CHECK_BUILDDIR])dnl
1104 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1105 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1106 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1107 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1108 dnl unless we require an AC_DEFUNed macro:
1109 AC_REQUIRE([LTOPTIONS_VERSION])dnl
1110 AC_REQUIRE([LTSUGAR_VERSION])dnl
1111 AC_REQUIRE([LTVERSION_VERSION])dnl
1112 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1113 m4_require([_LT_PROG_LTMAIN])dnl
1115 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1118 _LT_SET_OPTIONS([$0], [$1])
1120 # This can be used to rebuild libtool when needed
1121 LIBTOOL_DEPS="$ltmain"
1123 # Always use our own libtool.
1124 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1125 AC_SUBST(LIBTOOL)dnl
1130 m4_define([LT_INIT])
1134 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1135 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1136 dnl aclocal-1.4 backwards compatibility:
1137 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1138 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1141 # _LT_CC_BASENAME(CC)
1142 # -------------------
1143 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1144 m4_defun([_LT_CC_BASENAME],
1145 [for cc_temp in $1""; do
1147 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1148 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1153 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1157 # _LT_FILEUTILS_DEFAULTS
1158 # ----------------------
1159 # It is okay to use these file commands and assume they have been set
1160 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1161 m4_defun([_LT_FILEUTILS_DEFAULTS],
1165 ])# _LT_FILEUTILS_DEFAULTS
1170 m4_defun([_LT_SETUP],
1171 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1172 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1173 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1174 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1176 _LT_DECL([], [host_alias], [0], [The host system])dnl
1177 _LT_DECL([], [host], [0])dnl
1178 _LT_DECL([], [host_os], [0])dnl
1180 _LT_DECL([], [build_alias], [0], [The build system])dnl
1181 _LT_DECL([], [build], [0])dnl
1182 _LT_DECL([], [build_os], [0])dnl
1184 AC_REQUIRE([AC_PROG_CC])dnl
1185 AC_REQUIRE([LT_PATH_LD])dnl
1186 AC_REQUIRE([LT_PATH_NM])dnl
1188 AC_REQUIRE([AC_PROG_LN_S])dnl
1189 test -z "$LN_S" && LN_S="ln -s"
1190 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1192 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1193 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1194 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1196 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1197 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1198 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
1199 m4_require([_LT_CMD_RELOAD])dnl
1200 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1201 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
1202 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1203 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1204 m4_require([_LT_WITH_SYSROOT])dnl
1206 _LT_CONFIG_LIBTOOL_INIT([
1207 # See if we are running on zsh, and set the options which allow our
1208 # commands through without removal of \ escapes INIT.
1209 if test -n "\${ZSH_VERSION+set}" ; then
1210 setopt NO_GLOB_SUBST
1213 if test -n "${ZSH_VERSION+set}" ; then
1214 setopt NO_GLOB_SUBST
1219 m4_require([_LT_TAG_COMPILER])dnl
1223 # AIX sometimes has problems with the GCC collect2 program. For some
1224 # reason, if we set the COLLECT_NAMES environment variable, the problems
1225 # vanish in a puff of smoke.
1226 if test "X${COLLECT_NAMES+set}" != Xset; then
1228 export COLLECT_NAMES
1235 can_build_shared=yes
1237 # All known linkers require a `.a' archive for static linking (except MSVC,
1238 # which needs '.lib').
1241 with_gnu_ld="$lt_cv_prog_gnu_ld"
1244 old_CFLAGS="$CFLAGS"
1246 # Set sane defaults for various variables
1247 test -z "$CC" && CC=cc
1248 test -z "$LTCC" && LTCC=$CC
1249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1250 test -z "$LD" && LD=ld
1251 test -z "$ac_objext" && ac_objext=o
1253 _LT_CC_BASENAME([$compiler])
1255 # Only perform the check for file, if the check method requires it
1256 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1257 case $deplibs_check_method in
1259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1265 # Use C for the default configuration in the libtool script
1266 LT_SUPPORTED_TAG([CC])
1268 _LT_LANG_DEFAULT_CONFIG
1273 # _LT_PREPARE_SED_QUOTE_VARS
1274 # --------------------------
1275 # Define a few sed substitution that help us do robust quoting.
1276 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1277 [# Backslashify metacharacters that are still active within
1278 # double-quoted strings.
1279 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1281 # Same as above, but do not quote variable references.
1282 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1284 # Sed substitution to delay expansion of an escaped shell variable in a
1285 # double_quote_subst'ed string.
1286 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1288 # Sed substitution to delay expansion of an escaped single quote.
1289 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1291 # Sed substitution to avoid accidental globbing in evaled expressions
1292 no_glob_subst='s/\*/\\\*/g'
1297 # Note that this code is called both from `configure', and `config.status'
1298 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1299 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1300 # so we pass a copy along to make sure it has a sensible value anyway.
1301 m4_defun([_LT_PROG_LTMAIN],
1302 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1303 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1304 ltmain="$ac_aux_dir/ltmain.sh"
1309 # So that we can recreate a full libtool script including additional
1310 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1311 # in macros and then make a single call at the end using the `libtool'
1315 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1316 # ----------------------------------------
1317 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1318 m4_define([_LT_CONFIG_LIBTOOL_INIT],
1320 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1325 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1328 # _LT_CONFIG_LIBTOOL([COMMANDS])
1329 # ------------------------------
1330 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1331 m4_define([_LT_CONFIG_LIBTOOL],
1333 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1338 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1341 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1342 # -----------------------------------------------------
1343 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1344 [_LT_CONFIG_LIBTOOL([$1])
1345 _LT_CONFIG_LIBTOOL_INIT([$2])
1349 # _LT_FORMAT_COMMENT([COMMENT])
1350 # -----------------------------
1351 # Add leading comment marks to the start of each line, and a trailing
1352 # full-stop to the whole comment if one is not present already.
1353 m4_define([_LT_FORMAT_COMMENT],
1355 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1356 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1363 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1364 # -------------------------------------------------------------------
1365 # CONFIGNAME is the name given to the value in the libtool script.
1366 # VARNAME is the (base) name used in the configure script.
1367 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1368 # VARNAME. Any other value will be used directly.
1369 m4_define([_LT_DECL],
1370 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1371 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1372 [m4_ifval([$1], [$1], [$2])])
1373 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1375 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1376 lt_dict_add_subkey([lt_decl_dict], [$2],
1377 [tagged?], [m4_ifval([$5], [yes], [no])])])
1381 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1382 # --------------------------------------------------------
1383 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1386 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1387 # ------------------------------------------------
1388 m4_define([lt_decl_tag_varnames],
1389 [_lt_decl_filter([tagged?], [yes], $@)])
1392 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1393 # ---------------------------------------------------------
1394 m4_define([_lt_decl_filter],
1396 [0], [m4_fatal([$0: too few arguments: $#])],
1397 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1398 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1399 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1400 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1404 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1405 # --------------------------------------------------
1406 m4_define([lt_decl_quote_varnames],
1407 [_lt_decl_filter([value], [1], $@)])
1410 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1411 # ---------------------------------------------------
1412 m4_define([lt_decl_dquote_varnames],
1413 [_lt_decl_filter([value], [2], $@)])
1416 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1417 # ---------------------------------------------------
1418 m4_define([lt_decl_varnames_tagged],
1419 [m4_assert([$# <= 2])dnl
1420 _$0(m4_quote(m4_default([$1], [[, ]])),
1421 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1422 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1423 m4_define([_lt_decl_varnames_tagged],
1424 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1427 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1428 # ------------------------------------------------
1429 m4_define([lt_decl_all_varnames],
1430 [_$0(m4_quote(m4_default([$1], [[, ]])),
1432 m4_quote(lt_decl_varnames),
1433 m4_quote(m4_shift($@))))[]dnl
1435 m4_define([_lt_decl_all_varnames],
1436 [lt_join($@, lt_decl_varnames_tagged([$1],
1437 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1441 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1442 # ------------------------------------
1443 # Quote a variable value, and forward it to `config.status' so that its
1444 # declaration there will have the same value as in `configure'. VARNAME
1445 # must have a single quote delimited value for this to work.
1446 m4_define([_LT_CONFIG_STATUS_DECLARE],
1447 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1450 # _LT_CONFIG_STATUS_DECLARATIONS
1451 # ------------------------------
1452 # We delimit libtool config variables with single quotes, so when
1453 # we write them to config.status, we have to be sure to quote all
1454 # embedded single quotes properly. In configure, this macro expands
1455 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1457 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1458 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1459 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1460 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1465 # Output comment and list of tags supported by the script
1466 m4_defun([_LT_LIBTOOL_TAGS],
1467 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1468 available_tags="_LT_TAGS"dnl
1472 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1473 # -----------------------------------
1474 # Extract the dictionary values for VARNAME (optionally with TAG) and
1475 # expand to a commented shell variable setting:
1477 # # Some comment about what VAR is for.
1478 # visible_name=$lt_internal_name
1479 m4_define([_LT_LIBTOOL_DECLARE],
1480 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1481 [description])))[]dnl
1482 m4_pushdef([_libtool_name],
1483 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1484 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1485 [0], [_libtool_name=[$]$1],
1486 [1], [_libtool_name=$lt_[]$1],
1487 [2], [_libtool_name=$lt_[]$1],
1488 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1489 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1493 # _LT_LIBTOOL_CONFIG_VARS
1494 # -----------------------
1495 # Produce commented declarations of non-tagged libtool config variables
1496 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1497 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1498 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1499 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1500 [m4_foreach([_lt_var],
1501 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1502 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1505 # _LT_LIBTOOL_TAG_VARS(TAG)
1506 # -------------------------
1507 m4_define([_LT_LIBTOOL_TAG_VARS],
1508 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1509 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1512 # _LT_TAGVAR(VARNAME, [TAGNAME])
1513 # ------------------------------
1514 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1517 # _LT_CONFIG_COMMANDS
1518 # -------------------
1519 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1520 # variables for single and double quote escaping we saved from calls
1521 # to _LT_DECL, we can put quote escaped variables declarations
1522 # into `config.status', and then the shell code to quote escape them in
1523 # for loops in `config.status'. Finally, any additional code accumulated
1524 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1525 m4_defun([_LT_CONFIG_COMMANDS],
1526 [AC_PROVIDE_IFELSE([LT_OUTPUT],
1527 dnl If the libtool generation code has been placed in $CONFIG_LT,
1528 dnl instead of duplicating it all over again into config.status,
1529 dnl then we will have config.status run $CONFIG_LT later, so it
1530 dnl needs to know what name is stored there:
1531 [AC_CONFIG_COMMANDS([libtool],
1532 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1533 dnl If the libtool generation code is destined for config.status,
1534 dnl expand the accumulated commands and init code now:
1535 [AC_CONFIG_COMMANDS([libtool],
1536 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1537 ])#_LT_CONFIG_COMMANDS
1541 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1544 # The HP-UX ksh and POSIX shell print the target directory to stdout
1546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1548 sed_quote_subst='$sed_quote_subst'
1549 double_quote_subst='$double_quote_subst'
1550 delay_variable_subst='$delay_variable_subst'
1551 _LT_CONFIG_STATUS_DECLARATIONS
1553 LTCFLAGS='$LTCFLAGS'
1554 compiler='$compiler_DEFAULT'
1556 # A function that is used when there is no print builtin or printf.
1557 func_fallback_echo ()
1559 eval 'cat <<_LTECHO_EOF
1564 # Quote evaled strings.
1565 for var in lt_decl_all_varnames([[ \
1566 ]], lt_decl_quote_varnames); do
1567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1568 *[[\\\\\\\`\\"\\\$]]*)
1569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1577 # Double-quote double-evaled strings.
1578 for var in lt_decl_all_varnames([[ \
1579 ]], lt_decl_dquote_varnames); do
1580 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1581 *[[\\\\\\\`\\"\\\$]]*)
1582 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1585 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1590 _LT_OUTPUT_LIBTOOL_INIT
1593 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1594 # ------------------------------------
1595 # Generate a child script FILE with all initialization necessary to
1596 # reuse the environment learned by the parent script, and make the
1597 # file executable. If COMMENT is supplied, it is inserted after the
1598 # `#!' sequence but before initialization text begins. After this
1599 # macro, additional text can be appended to FILE to form the body of
1600 # the child script. The macro ends with non-zero status if the
1601 # file could not be fully written (such as if the disk is full).
1602 m4_ifdef([AS_INIT_GENERATED],
1603 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1604 [m4_defun([_LT_GENERATED_FILE_INIT],
1605 [m4_require([AS_PREPARE])]dnl
1606 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1608 cat >$1 <<_ASEOF || lt_write_fail=1
1610 # Generated by $as_me.
1612 SHELL=\${CONFIG_SHELL-$SHELL}
1615 cat >>$1 <<\_ASEOF || lt_write_fail=1
1618 exec AS_MESSAGE_FD>&1
1620 test $lt_write_fail = 0 && chmod +x $1[]dnl
1621 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1625 # This macro allows early generation of the libtool script (before
1626 # AC_OUTPUT is called), incase it is used in configure for compilation
1628 AC_DEFUN([LT_OUTPUT],
1629 [: ${CONFIG_LT=./config.lt}
1630 AC_MSG_NOTICE([creating $CONFIG_LT])
1631 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1632 [# Run this file to recreate a libtool stub with the current configuration.])
1634 cat >>"$CONFIG_LT" <<\_LTEOF
1636 exec AS_MESSAGE_LOG_FD>>config.log
1639 AS_BOX([Running $as_me.])
1640 } >&AS_MESSAGE_LOG_FD
1643 \`$as_me' creates a local libtool stub from the current configuration,
1644 for use in further configure time tests before the real libtool is
1647 Usage: $[0] [[OPTIONS]]
1649 -h, --help print this help, then exit
1650 -V, --version print version number, then exit
1651 -q, --quiet do not print progress messages
1652 -d, --debug don't remove temporary files
1654 Report bugs to <bug-libtool@gnu.org>."
1657 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1658 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1659 configured by $[0], generated by m4_PACKAGE_STRING.
1661 Copyright (C) 2010 Free Software Foundation, Inc.
1662 This config.lt script is free software; the Free Software Foundation
1663 gives unlimited permision to copy, distribute and modify it."
1665 while test $[#] != 0
1668 --version | --v* | -V )
1669 echo "$lt_cl_version"; exit 0 ;;
1670 --help | --h* | -h )
1671 echo "$lt_cl_help"; exit 0 ;;
1672 --debug | --d* | -d )
1674 --quiet | --q* | --silent | --s* | -q )
1677 -*) AC_MSG_ERROR([unrecognized option: $[1]
1678 Try \`$[0] --help' for more information.]) ;;
1680 *) AC_MSG_ERROR([unrecognized argument: $[1]
1681 Try \`$[0] --help' for more information.]) ;;
1686 if $lt_cl_silent; then
1687 exec AS_MESSAGE_FD>/dev/null
1691 cat >>"$CONFIG_LT" <<_LTEOF
1692 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1695 cat >>"$CONFIG_LT" <<\_LTEOF
1696 AC_MSG_NOTICE([creating $ofile])
1697 _LT_OUTPUT_LIBTOOL_COMMANDS
1700 chmod +x "$CONFIG_LT"
1702 # configure is writing to config.log, but config.lt does its own redirection,
1703 # appending to config.log, which fails on DOS, as config.log is still kept
1704 # open by configure. Here we exec the FD to /dev/null, effectively closing
1705 # config.log, so it can be properly (re)opened and appended to by config.lt.
1707 test "$silent" = yes &&
1708 lt_config_lt_args="$lt_config_lt_args --quiet"
1709 exec AS_MESSAGE_LOG_FD>/dev/null
1710 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1711 exec AS_MESSAGE_LOG_FD>>config.log
1712 $lt_cl_success || AS_EXIT(1)
1718 # If TAG is the built-in tag, create an initial libtool script with a
1719 # default configuration from the untagged config vars. Otherwise add code
1720 # to config.status for appending the configuration named by TAG from the
1721 # matching tagged config vars.
1722 m4_defun([_LT_CONFIG],
1723 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1724 _LT_CONFIG_SAVE_COMMANDS([
1725 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1726 m4_if(_LT_TAG, [C], [
1727 # See if we are running on zsh, and set the options which allow our
1728 # commands through without removal of \ escapes.
1729 if test -n "${ZSH_VERSION+set}" ; then
1730 setopt NO_GLOB_SUBST
1734 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1737 cat <<_LT_EOF >> "$cfgfile"
1740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1748 # ### BEGIN LIBTOOL CONFIG
1749 _LT_LIBTOOL_CONFIG_VARS
1750 _LT_LIBTOOL_TAG_VARS
1751 # ### END LIBTOOL CONFIG
1757 cat <<\_LT_EOF >> "$cfgfile"
1758 # AIX sometimes has problems with the GCC collect2 program. For some
1759 # reason, if we set the COLLECT_NAMES environment variable, the problems
1760 # vanish in a puff of smoke.
1761 if test "X${COLLECT_NAMES+set}" != Xset; then
1763 export COLLECT_NAMES
1771 # We use sed instead of cat because bash on DJGPP gets confused if
1772 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1773 # text mode, it properly converts lines to CR/LF. This bash problem
1774 # is reportedly fixed, but why not run on old versions too?
1775 sed '$q' "$ltmain" >> "$cfgfile" \
1776 || (rm -f "$cfgfile"; exit 1)
1778 _LT_PROG_REPLACE_SHELLFNS
1780 mv -f "$cfgfile" "$ofile" ||
1781 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1784 [cat <<_LT_EOF >> "$ofile"
1786 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1787 dnl in a comment (ie after a #).
1788 # ### BEGIN LIBTOOL TAG CONFIG: $1
1789 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
1790 # ### END LIBTOOL TAG CONFIG: $1
1797 TIMESTAMP='$TIMESTAMP'
1799 ofile='$ofile'], [])
1800 ])dnl /_LT_CONFIG_SAVE_COMMANDS
1804 # LT_SUPPORTED_TAG(TAG)
1805 # ---------------------
1806 # Trace this macro to discover what tags are supported by the libtool
1807 # --tag option, using:
1808 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1809 AC_DEFUN([LT_SUPPORTED_TAG], [])
1812 # C support is built-in for now
1813 m4_define([_LT_LANG_C_enabled], [])
1814 m4_define([_LT_TAGS], [])
1819 # Enable libtool support for the given language if not already enabled.
1821 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1824 [C++], [_LT_LANG(CXX)],
1825 [Java], [_LT_LANG(GCJ)],
1826 [Fortran 77], [_LT_LANG(F77)],
1827 [Fortran], [_LT_LANG(FC)],
1828 [Windows Resource], [_LT_LANG(RC)],
1829 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1831 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1835 # _LT_LANG(LANGNAME)
1836 # ------------------
1837 m4_defun([_LT_LANG],
1838 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1839 [LT_SUPPORTED_TAG([$1])dnl
1840 m4_append([_LT_TAGS], [$1 ])dnl
1841 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1842 _LT_LANG_$1_CONFIG($1)])dnl
1846 # _LT_LANG_DEFAULT_CONFIG
1847 # -----------------------
1848 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1849 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1851 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1853 AC_PROVIDE_IFELSE([AC_PROG_F77],
1855 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1857 AC_PROVIDE_IFELSE([AC_PROG_FC],
1859 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1861 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1862 dnl pulling things in needlessly.
1863 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1865 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1867 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1869 [m4_ifdef([AC_PROG_GCJ],
1870 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1871 m4_ifdef([A][M_PROG_GCJ],
1872 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1873 m4_ifdef([LT_PROG_GCJ],
1874 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1876 AC_PROVIDE_IFELSE([LT_PROG_RC],
1878 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1879 ])# _LT_LANG_DEFAULT_CONFIG
1882 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1883 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1884 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1885 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1886 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1887 dnl aclocal-1.4 backwards compatibility:
1888 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1889 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1890 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1891 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1892 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1897 m4_defun([_LT_TAG_COMPILER],
1898 [AC_REQUIRE([AC_PROG_CC])dnl
1900 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1901 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1902 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1903 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1905 # If no C compiler was specified, use CC.
1908 # If no C compiler flags were specified, use CFLAGS.
1909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1911 # Allow CC to be a program name with arguments.
1913 ])# _LT_TAG_COMPILER
1916 # _LT_COMPILER_BOILERPLATE
1917 # ------------------------
1918 # Check for compiler boilerplate output or warnings with
1919 # the simple compiler test code.
1920 m4_defun([_LT_COMPILER_BOILERPLATE],
1921 [m4_require([_LT_DECL_SED])dnl
1922 ac_outfile=conftest.$ac_objext
1923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1925 _lt_compiler_boilerplate=`cat conftest.err`
1927 ])# _LT_COMPILER_BOILERPLATE
1930 # _LT_LINKER_BOILERPLATE
1931 # ----------------------
1932 # Check for linker boilerplate output or warnings with
1933 # the simple link test code.
1934 m4_defun([_LT_LINKER_BOILERPLATE],
1935 [m4_require([_LT_DECL_SED])dnl
1936 ac_outfile=conftest.$ac_objext
1937 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1939 _lt_linker_boilerplate=`cat conftest.err`
1941 ])# _LT_LINKER_BOILERPLATE
1943 # _LT_REQUIRED_DARWIN_CHECKS
1944 # -------------------------
1945 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1947 rhapsody* | darwin*)
1948 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1949 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1950 AC_CHECK_TOOL([LIPO], [lipo], [:])
1951 AC_CHECK_TOOL([OTOOL], [otool], [:])
1952 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1953 _LT_DECL([], [DSYMUTIL], [1],
1954 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1955 _LT_DECL([], [NMEDIT], [1],
1956 [Tool to change global to local symbols on Mac OS X])
1957 _LT_DECL([], [LIPO], [1],
1958 [Tool to manipulate fat objects and archives on Mac OS X])
1959 _LT_DECL([], [OTOOL], [1],
1960 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1961 _LT_DECL([], [OTOOL64], [1],
1962 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1964 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1965 [lt_cv_apple_cc_single_mod=no
1966 if test -z "${LT_MULTI_MODULE}"; then
1967 # By default we will add the -single_module flag. You can override
1968 # by either setting the environment variable LT_MULTI_MODULE
1969 # non-empty at configure time, or by adding -multi_module to the
1971 rm -rf libconftest.dylib*
1972 echo "int foo(void){return 1;}" > conftest.c
1973 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1974 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1975 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1976 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1978 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1979 lt_cv_apple_cc_single_mod=yes
1981 cat conftest.err >&AS_MESSAGE_LOG_FD
1983 rm -rf libconftest.dylib*
1986 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1987 [lt_cv_ld_exported_symbols_list],
1988 [lt_cv_ld_exported_symbols_list=no
1989 save_LDFLAGS=$LDFLAGS
1990 echo "_main" > conftest.sym
1991 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1992 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1993 [lt_cv_ld_exported_symbols_list=yes],
1994 [lt_cv_ld_exported_symbols_list=no])
1995 LDFLAGS="$save_LDFLAGS"
1997 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1998 [lt_cv_ld_force_load=no
1999 cat > conftest.c << _LT_EOF
2000 int forced_loaded() { return 2;}
2002 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2003 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2004 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2005 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2006 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2007 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2008 cat > conftest.c << _LT_EOF
2009 int main() { return 0;}
2011 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2012 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2014 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
2015 lt_cv_ld_force_load=yes
2017 cat conftest.err >&AS_MESSAGE_LOG_FD
2019 rm -f conftest.err libconftest.a conftest conftest.c
2020 rm -rf conftest.dSYM
2023 rhapsody* | darwin1.[[012]])
2024 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2026 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2027 darwin*) # darwin 5.x on
2028 # if running on 10.5 or later, the deployment target defaults
2029 # to the OS version, if on x86, and 10.4, the deployment
2030 # target defaults to 10.4. Don't you love it?
2031 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2032 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2037 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2041 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2042 _lt_dar_single_mod='$single_module'
2044 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2045 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2047 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2049 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
2050 _lt_dsymutil='~$DSYMUTIL $lib || :'
2059 # _LT_DARWIN_LINKER_FEATURES
2060 # --------------------------
2061 # Checks for linker and compiler features on darwin
2062 m4_defun([_LT_DARWIN_LINKER_FEATURES],
2064 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2065 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2066 _LT_TAGVAR(hardcode_direct, $1)=no
2067 _LT_TAGVAR(hardcode_automatic, $1)=yes
2068 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2069 if test "$lt_cv_ld_force_load" = "yes"; then
2070 _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\"`'
2072 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2074 _LT_TAGVAR(link_all_deplibs, $1)=yes
2075 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2076 case $cc_basename in
2077 ifort*) _lt_dar_can_shared=yes ;;
2078 *) _lt_dar_can_shared=$GCC ;;
2080 if test "$_lt_dar_can_shared" = "yes"; then
2081 output_verbose_link_cmd=func_echo_all
2082 _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}"
2083 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2084 _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}"
2085 _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}"
2087 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2088 _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}"
2089 _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}"
2093 _LT_TAGVAR(ld_shlibs, $1)=no
2097 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2098 # ----------------------------------
2099 # Links a minimal program and checks the executable
2100 # for the system default hardcoded library path. In most cases,
2101 # this is /usr/lib:/lib, but when the MPI compilers are used
2102 # the location of the communication and MPI libs are included too.
2103 # If we don't find anything, use the default library path according
2104 # to the aix ld manual.
2105 # Store the results from the different compilers for each TAGNAME.
2106 # Allow to override them for all tags through lt_cv_aix_libpath.
2107 m4_defun([_LT_SYS_MODULE_PATH_AIX],
2108 [m4_require([_LT_DECL_SED])dnl
2109 if test "${lt_cv_aix_libpath+set}" = set; then
2110 aix_libpath=$lt_cv_aix_libpath
2112 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2113 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2114 lt_aix_libpath_sed='[
2115 /Import File Strings/,/^$/ {
2117 s/^0 *\([^ ]*\) *$/\1/
2121 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2122 # Check for a 64-bit object if we didn't find anything.
2123 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2124 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2126 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2127 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2130 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2132 ])# _LT_SYS_MODULE_PATH_AIX
2135 # _LT_SHELL_INIT(ARG)
2136 # -------------------
2137 m4_define([_LT_SHELL_INIT],
2138 [m4_divert_text([M4SH-INIT], [$1
2139 ])])# _LT_SHELL_INIT
2143 # _LT_PROG_ECHO_BACKSLASH
2144 # -----------------------
2145 # Find how we can fake an echo command that does not interpret backslash.
2146 # In particular, with Autoconf 2.60 or later we add some code to the start
2147 # of the generated configure script which will find a shell with a builtin
2148 # printf (which we can use as an echo command).
2149 m4_defun([_LT_PROG_ECHO_BACKSLASH],
2150 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2151 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2152 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2154 AC_MSG_CHECKING([how to print strings])
2155 # Test print first, because it will be a builtin if present.
2156 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2157 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2159 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2162 # Use this function as a fallback that always works.
2163 func_fallback_echo ()
2165 eval 'cat <<_LTECHO_EOF
2169 ECHO='func_fallback_echo'
2172 # func_echo_all arg...
2173 # Invoke $ECHO with all args, space-separated.
2180 printf*) AC_MSG_RESULT([printf]) ;;
2181 print*) AC_MSG_RESULT([print -r]) ;;
2182 *) AC_MSG_RESULT([cat]) ;;
2185 m4_ifdef([_AS_DETECT_SUGGESTED],
2186 [_AS_DETECT_SUGGESTED([
2187 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2190 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2191 PATH=/empty FPATH=/empty; export PATH FPATH
2192 test "X`printf %s $ECHO`" = "X$ECHO" \
2193 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2195 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2196 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2197 ])# _LT_PROG_ECHO_BACKSLASH
2202 AC_DEFUN([_LT_WITH_SYSROOT],
2203 [AC_MSG_CHECKING([for sysroot])
2204 AC_ARG_WITH([sysroot],
2205 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
2206 (or the compiler's sysroot if not specified).],
2207 [], [with_sysroot=no])
2209 dnl lt_sysroot will always be passed unquoted. We quote it here
2210 dnl in case the user passed a directory name.
2212 case ${with_sysroot} in #(
2214 if test "$GCC" = yes; then
2215 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2219 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
2224 AC_MSG_RESULT([${with_sysroot}])
2225 AC_MSG_ERROR([The sysroot must be an absolute path.])
2229 AC_MSG_RESULT([${lt_sysroot:-no}])
2230 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2231 [dependent libraries, and in which our libraries should be installed.])])
2235 m4_defun([_LT_ENABLE_LOCK],
2236 [AC_ARG_ENABLE([libtool-lock],
2237 [AS_HELP_STRING([--disable-libtool-lock],
2238 [avoid locking (might break parallel builds)])])
2239 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2241 # Some flags need to be propagated to the compiler or linker for good
2245 # Find out which ABI we are using.
2246 echo 'int i;' > conftest.$ac_ext
2247 if AC_TRY_EVAL(ac_compile); then
2248 case `/usr/bin/file conftest.$ac_objext` in
2260 # Find out which ABI we are using.
2261 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2262 if AC_TRY_EVAL(ac_compile); then
2263 if test "$lt_cv_prog_gnu_ld" = yes; then
2264 case `/usr/bin/file conftest.$ac_objext` in
2266 LD="${LD-ld} -melf32bsmip"
2269 LD="${LD-ld} -melf32bmipn32"
2272 LD="${LD-ld} -melf64bmip"
2276 case `/usr/bin/file conftest.$ac_objext` in
2292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2294 # Find out which ABI we are using.
2295 echo 'int i;' > conftest.$ac_ext
2296 if AC_TRY_EVAL(ac_compile); then
2297 case `/usr/bin/file conftest.o` in
2300 x86_64-*kfreebsd*-gnu)
2301 LD="${LD-ld} -m elf_i386_fbsd"
2304 LD="${LD-ld} -m elf_i386"
2306 ppc64-*linux*|powerpc64-*linux*)
2307 LD="${LD-ld} -m elf32ppclinux"
2310 LD="${LD-ld} -m elf_s390"
2313 LD="${LD-ld} -m elf32_sparc"
2319 x86_64-*kfreebsd*-gnu)
2320 LD="${LD-ld} -m elf_x86_64_fbsd"
2323 LD="${LD-ld} -m elf_x86_64"
2325 ppc*-*linux*|powerpc*-*linux*)
2326 LD="${LD-ld} -m elf64ppc"
2328 s390*-*linux*|s390*-*tpf*)
2329 LD="${LD-ld} -m elf64_s390"
2332 LD="${LD-ld} -m elf64_sparc"
2342 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2343 SAVE_CFLAGS="$CFLAGS"
2344 CFLAGS="$CFLAGS -belf"
2345 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2347 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2349 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2351 CFLAGS="$SAVE_CFLAGS"
2355 # Find out which ABI we are using.
2356 echo 'int i;' > conftest.$ac_ext
2357 if AC_TRY_EVAL(ac_compile); then
2358 case `/usr/bin/file conftest.o` in
2360 case $lt_cv_prog_gnu_ld in
2361 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2375 need_locks="$enable_libtool_lock"
2381 m4_defun([_LT_PROG_AR],
2382 [AC_CHECK_TOOLS(AR, [ar], false)
2385 _LT_DECL([], [AR], [1], [The archiver])
2386 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2388 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2389 [lt_cv_ar_at_file=no
2390 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2391 [echo conftest.$ac_objext > conftest.lst
2392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2393 AC_TRY_EVAL([lt_ar_try])
2394 if test "$ac_status" -eq 0; then
2395 # Ensure the archiver fails upon bogus file names.
2396 rm -f conftest.$ac_objext libconftest.a
2397 AC_TRY_EVAL([lt_ar_try])
2398 if test "$ac_status" -ne 0; then
2402 rm -f conftest.* libconftest.a
2406 if test "x$lt_cv_ar_at_file" = xno; then
2409 archiver_list_spec=$lt_cv_ar_at_file
2411 _LT_DECL([], [archiver_list_spec], [1],
2412 [How to feed a file listing to the archiver])
2416 # _LT_CMD_OLD_ARCHIVE
2417 # -------------------
2418 m4_defun([_LT_CMD_OLD_ARCHIVE],
2421 AC_CHECK_TOOL(STRIP, strip, :)
2422 test -z "$STRIP" && STRIP=:
2423 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
2425 AC_CHECK_TOOL(RANLIB, ranlib, :)
2426 test -z "$RANLIB" && RANLIB=:
2427 _LT_DECL([], [RANLIB], [1],
2428 [Commands used to install an old-style archive])
2430 # Determine commands to create old-style static archives.
2431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2432 old_postinstall_cmds='chmod 644 $oldlib'
2433 old_postuninstall_cmds=
2435 if test -n "$RANLIB"; then
2438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2449 lock_old_archive_extraction=yes ;;
2451 lock_old_archive_extraction=no ;;
2453 _LT_DECL([], [old_postinstall_cmds], [2])
2454 _LT_DECL([], [old_postuninstall_cmds], [2])
2455 _LT_TAGDECL([], [old_archive_cmds], [2],
2456 [Commands used to build an old-style archive])
2457 _LT_DECL([], [lock_old_archive_extraction], [0],
2458 [Whether to use a lock for old archive extraction])
2459 ])# _LT_CMD_OLD_ARCHIVE
2462 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2463 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2464 # ----------------------------------------------------------------
2465 # Check whether the given compiler option works
2466 AC_DEFUN([_LT_COMPILER_OPTION],
2467 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2468 m4_require([_LT_DECL_SED])dnl
2469 AC_CACHE_CHECK([$1], [$2],
2471 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2473 lt_compiler_flag="$3"
2474 # Insert the option either (1) after the last *FLAGS variable, or
2475 # (2) before a word containing "conftest.", or (3) at the end.
2476 # Note that $ac_compile itself does not contain backslashes and begins
2477 # with a dollar sign (not a hyphen), so the echo should work correctly.
2478 # The option is referenced via a variable to avoid confusing sed.
2479 lt_compile=`echo "$ac_compile" | $SED \
2480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2481 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2482 -e 's:$: $lt_compiler_flag:'`
2483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2484 (eval "$lt_compile" 2>conftest.err)
2486 cat conftest.err >&AS_MESSAGE_LOG_FD
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2488 if (exit $ac_status) && test -s "$ac_outfile"; then
2489 # The compiler can only warn and ignore the option if not recognized
2490 # So say no if there are warnings other than the usual output.
2491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2500 if test x"[$]$2" = xyes; then
2501 m4_if([$5], , :, [$5])
2503 m4_if([$6], , :, [$6])
2505 ])# _LT_COMPILER_OPTION
2508 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2509 dnl aclocal-1.4 backwards compatibility:
2510 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2513 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2514 # [ACTION-SUCCESS], [ACTION-FAILURE])
2515 # ----------------------------------------------------
2516 # Check whether the given linker option works
2517 AC_DEFUN([_LT_LINKER_OPTION],
2518 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2519 m4_require([_LT_DECL_SED])dnl
2520 AC_CACHE_CHECK([$1], [$2],
2522 save_LDFLAGS="$LDFLAGS"
2523 LDFLAGS="$LDFLAGS $3"
2524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2526 # The linker can only warn and ignore the option if not recognized
2527 # So say no if there are warnings
2528 if test -s conftest.err; then
2529 # Append any errors to the config.log.
2530 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2533 if diff conftest.exp conftest.er2 >/dev/null; then
2541 LDFLAGS="$save_LDFLAGS"
2544 if test x"[$]$2" = xyes; then
2545 m4_if([$4], , :, [$4])
2547 m4_if([$5], , :, [$5])
2549 ])# _LT_LINKER_OPTION
2552 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2553 dnl aclocal-1.4 backwards compatibility:
2554 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2559 AC_DEFUN([LT_CMD_MAX_LEN],
2560 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2561 # find the maximum length of command line arguments
2562 AC_MSG_CHECKING([the maximum length of command line arguments])
2563 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2569 # On DJGPP, this test can blow up pretty badly due to problems in libc
2570 # (any single argument exceeding 2000 bytes causes a buffer overrun
2571 # during glob expansion). Even if it were fixed, the result of this
2572 # check would be larger than it should be.
2573 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2577 # Under GNU Hurd, this test is not required because there is
2578 # no limit to the length of command line arguments.
2579 # Libtool will interpret -1 as no limit whatsoever
2580 lt_cv_sys_max_cmd_len=-1;
2583 cygwin* | mingw* | cegcc*)
2584 # On Win9x/ME, this test blows up -- it succeeds, but takes
2585 # about 5 minutes as the teststring grows exponentially.
2586 # Worse, since 9x/ME are not pre-emptively multitasking,
2587 # you end up with a "frozen" computer, even though with patience
2588 # the test eventually succeeds (with a max line length of 256k).
2589 # Instead, let's just punt: use the minimum linelength reported by
2590 # all of the supported platforms: 8192 (on NT/2K/XP).
2591 lt_cv_sys_max_cmd_len=8192;
2595 # On MiNT this can take a long time and run out of memory.
2596 lt_cv_sys_max_cmd_len=8192;
2600 # On AmigaOS with pdksh, this test takes hours, literally.
2601 # So we just punt and use a minimum line length of 8192.
2602 lt_cv_sys_max_cmd_len=8192;
2605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2606 # This has been around since 386BSD, at least. Likely further.
2607 if test -x /sbin/sysctl; then
2608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2609 elif test -x /usr/sbin/sysctl; then
2610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2614 # And add a safety zone
2615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2621 lt_cv_sys_max_cmd_len=196608
2625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2627 # nice to cause kernel panics so lets avoid the loop below.
2628 # First set a reasonable default.
2629 lt_cv_sys_max_cmd_len=16384
2631 if test -x /sbin/sysconfig; then
2632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2638 lt_cv_sys_max_cmd_len=102400
2640 sysv5* | sco5v6* | sysv4.2uw2*)
2641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2642 if test -n "$kargmax"; then
2643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2645 lt_cv_sys_max_cmd_len=32768
2649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2650 if test -n "$lt_cv_sys_max_cmd_len"; then
2651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2654 # Make teststring a little bigger before we do anything with it.
2655 # a 1K string should be a reasonable start.
2656 for i in 1 2 3 4 5 6 7 8 ; do
2657 teststring=$teststring$teststring
2659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2660 # If test is not a shell built-in, we'll probably end up computing a
2661 # maximum length that is only half of the actual maximum length, but
2663 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2665 test $i != 17 # 1/2 MB should be enough
2668 teststring=$teststring$teststring
2670 # Only check the string length outside the loop.
2671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2673 # Add a significant safety factor because C++ compilers can tack on
2674 # massive amounts of additional arguments before passing them to the
2675 # linker. It appears as though 1/2 is a usable value.
2676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2681 if test -n $lt_cv_sys_max_cmd_len ; then
2682 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2686 max_cmd_len=$lt_cv_sys_max_cmd_len
2687 _LT_DECL([], [max_cmd_len], [0],
2688 [What is the maximum length of a command?])
2692 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2693 dnl aclocal-1.4 backwards compatibility:
2694 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2699 m4_defun([_LT_HEADER_DLFCN],
2700 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2701 ])# _LT_HEADER_DLFCN
2704 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2705 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2706 # ----------------------------------------------------------------
2707 m4_defun([_LT_TRY_DLOPEN_SELF],
2708 [m4_require([_LT_HEADER_DLFCN])dnl
2709 if test "$cross_compiling" = yes; then :
2712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2713 lt_status=$lt_dlunknown
2714 cat > conftest.$ac_ext <<_LT_EOF
2715 [#line $LINENO "configure"
2716 #include "confdefs.h"
2725 # define LT_DLGLOBAL RTLD_GLOBAL
2728 # define LT_DLGLOBAL DL_GLOBAL
2730 # define LT_DLGLOBAL 0
2734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2735 find out it does not work in some platform. */
2736 #ifndef LT_DLLAZY_OR_NOW
2738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2741 # define LT_DLLAZY_OR_NOW DL_LAZY
2744 # define LT_DLLAZY_OR_NOW RTLD_NOW
2747 # define LT_DLLAZY_OR_NOW DL_NOW
2749 # define LT_DLLAZY_OR_NOW 0
2756 /* When -fvisbility=hidden is used, assume the code has been annotated
2757 correspondingly for the symbols needed. */
2758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2759 int fnord () __attribute__((visibility("default")));
2762 int fnord () { return 42; }
2765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2766 int status = $lt_dlunknown;
2770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2774 else puts (dlerror ());
2776 /* dlclose (self); */
2784 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2785 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2788 x$lt_dlno_uscore) $1 ;;
2789 x$lt_dlneed_uscore) $2 ;;
2790 x$lt_dlunknown|x*) $3 ;;
2793 # compilation failed
2798 ])# _LT_TRY_DLOPEN_SELF
2801 # LT_SYS_DLOPEN_SELF
2802 # ------------------
2803 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2804 [m4_require([_LT_HEADER_DLFCN])dnl
2805 if test "x$enable_dlopen" != xyes; then
2806 enable_dlopen=unknown
2807 enable_dlopen_self=unknown
2808 enable_dlopen_self_static=unknown
2815 lt_cv_dlopen="load_add_on"
2817 lt_cv_dlopen_self=yes
2820 mingw* | pw32* | cegcc*)
2821 lt_cv_dlopen="LoadLibrary"
2826 lt_cv_dlopen="dlopen"
2831 # if libdl is installed we need to link against it
2832 AC_CHECK_LIB([dl], [dlopen],
2833 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2836 lt_cv_dlopen_self=yes
2841 AC_CHECK_FUNC([shl_load],
2842 [lt_cv_dlopen="shl_load"],
2843 [AC_CHECK_LIB([dld], [shl_load],
2844 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2845 [AC_CHECK_FUNC([dlopen],
2846 [lt_cv_dlopen="dlopen"],
2847 [AC_CHECK_LIB([dl], [dlopen],
2848 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2849 [AC_CHECK_LIB([svld], [dlopen],
2850 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2851 [AC_CHECK_LIB([dld], [dld_link],
2852 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2861 if test "x$lt_cv_dlopen" != xno; then
2867 case $lt_cv_dlopen in
2869 save_CPPFLAGS="$CPPFLAGS"
2870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2872 save_LDFLAGS="$LDFLAGS"
2873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2876 LIBS="$lt_cv_dlopen_libs $LIBS"
2878 AC_CACHE_CHECK([whether a program can dlopen itself],
2879 lt_cv_dlopen_self, [dnl
2880 _LT_TRY_DLOPEN_SELF(
2881 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2882 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2885 if test "x$lt_cv_dlopen_self" = xyes; then
2886 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2887 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2888 lt_cv_dlopen_self_static, [dnl
2889 _LT_TRY_DLOPEN_SELF(
2890 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2891 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2895 CPPFLAGS="$save_CPPFLAGS"
2896 LDFLAGS="$save_LDFLAGS"
2901 case $lt_cv_dlopen_self in
2902 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2903 *) enable_dlopen_self=unknown ;;
2906 case $lt_cv_dlopen_self_static in
2907 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2908 *) enable_dlopen_self_static=unknown ;;
2911 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2912 [Whether dlopen is supported])
2913 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2914 [Whether dlopen of programs is supported])
2915 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2916 [Whether dlopen of statically linked programs is supported])
2917 ])# LT_SYS_DLOPEN_SELF
2920 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2921 dnl aclocal-1.4 backwards compatibility:
2922 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2925 # _LT_COMPILER_C_O([TAGNAME])
2926 # ---------------------------
2927 # Check to see if options -c and -o are simultaneously supported by compiler.
2928 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2929 m4_defun([_LT_COMPILER_C_O],
2930 [m4_require([_LT_DECL_SED])dnl
2931 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2932 m4_require([_LT_TAG_COMPILER])dnl
2933 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2934 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2935 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2936 $RM -r conftest 2>/dev/null
2940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2942 lt_compiler_flag="-o out/conftest2.$ac_objext"
2943 # Insert the option either (1) after the last *FLAGS variable, or
2944 # (2) before a word containing "conftest.", or (3) at the end.
2945 # Note that $ac_compile itself does not contain backslashes and begins
2946 # with a dollar sign (not a hyphen), so the echo should work correctly.
2947 lt_compile=`echo "$ac_compile" | $SED \
2948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2949 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2950 -e 's:$: $lt_compiler_flag:'`
2951 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2952 (eval "$lt_compile" 2>out/conftest.err)
2954 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2958 # The compiler can only warn and ignore the option if not recognized
2959 # So say no if there are warnings
2960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2963 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2966 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2968 # SGI C++ compiler will create directory out/ii_files/ for
2969 # template instantiation
2970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2971 $RM out/* && rmdir out
2976 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2977 [Does compiler simultaneously support -c and -o options?])
2978 ])# _LT_COMPILER_C_O
2981 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2982 # ----------------------------------
2983 # Check to see if we can do hard links to lock some files if needed
2984 m4_defun([_LT_COMPILER_FILE_LOCKS],
2985 [m4_require([_LT_ENABLE_LOCK])dnl
2986 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2987 _LT_COMPILER_C_O([$1])
2989 hard_links="nottested"
2990 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2991 # do not overwrite the value of need_locks provided by the user
2992 AC_MSG_CHECKING([if we can lock with hard links])
2995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2997 ln conftest.a conftest.b 2>&5 || hard_links=no
2998 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2999 AC_MSG_RESULT([$hard_links])
3000 if test "$hard_links" = no; then
3001 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3007 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3008 ])# _LT_COMPILER_FILE_LOCKS
3013 m4_defun([_LT_CHECK_OBJDIR],
3014 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3015 [rm -f .libs 2>/dev/null
3016 mkdir .libs 2>/dev/null
3017 if test -d .libs; then
3020 # MS-DOS does not allow filenames that begin with a dot.
3023 rmdir .libs 2>/dev/null])
3024 objdir=$lt_cv_objdir
3025 _LT_DECL([], [objdir], [0],
3026 [The name of the directory that contains temporary libtool files])dnl
3027 m4_pattern_allow([LT_OBJDIR])dnl
3028 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3029 [Define to the sub-directory in which libtool stores uninstalled libraries.])
3030 ])# _LT_CHECK_OBJDIR
3033 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3034 # --------------------------------------
3035 # Check hardcoding attributes.
3036 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3037 [AC_MSG_CHECKING([how to hardcode library paths into programs])
3038 _LT_TAGVAR(hardcode_action, $1)=
3039 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3040 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3041 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3043 # We can hardcode non-existent directories.
3044 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3046 # have to relink, otherwise we might link with an installed library
3047 # when we should be linking with a yet-to-be-installed one
3048 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3049 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3050 # Linking always hardcodes the temporary library directory.
3051 _LT_TAGVAR(hardcode_action, $1)=relink
3053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3054 _LT_TAGVAR(hardcode_action, $1)=immediate
3057 # We cannot hardcode anything, or else we can only hardcode existing
3059 _LT_TAGVAR(hardcode_action, $1)=unsupported
3061 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3063 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3064 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3065 # Fast installation is not supported
3066 enable_fast_install=no
3067 elif test "$shlibpath_overrides_runpath" = yes ||
3068 test "$enable_shared" = no; then
3069 # Fast installation is not necessary
3070 enable_fast_install=needless
3072 _LT_TAGDECL([], [hardcode_action], [0],
3073 [How to hardcode a shared library path into an executable])
3074 ])# _LT_LINKER_HARDCODE_LIBPATH
3079 m4_defun([_LT_CMD_STRIPLIB],
3080 [m4_require([_LT_DECL_EGREP])
3083 AC_MSG_CHECKING([whether stripping libraries is possible])
3084 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3086 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3087 AC_MSG_RESULT([yes])
3089 # FIXME - insert some real tests, host_os isn't really good enough
3092 if test -n "$STRIP" ; then
3093 striplib="$STRIP -x"
3094 old_striplib="$STRIP -S"
3095 AC_MSG_RESULT([yes])
3105 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3106 _LT_DECL([], [striplib], [1])
3107 ])# _LT_CMD_STRIPLIB
3110 # _LT_SYS_DYNAMIC_LINKER([TAG])
3111 # -----------------------------
3112 # PORTME Fill in your ld.so characteristics
3113 m4_defun([_LT_SYS_DYNAMIC_LINKER],
3114 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3115 m4_require([_LT_DECL_EGREP])dnl
3116 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3117 m4_require([_LT_DECL_OBJDUMP])dnl
3118 m4_require([_LT_DECL_SED])dnl
3119 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
3120 AC_MSG_CHECKING([dynamic linker characteristics])
3123 if test "$GCC" = yes; then
3125 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3126 *) lt_awk_arg="/^libraries:/" ;;
3129 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3130 *) lt_sed_strip_eq="s,=/,/,g" ;;
3132 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3133 case $lt_search_path_spec in
3135 # if the path contains ";" then we assume it to be the separator
3136 # otherwise default to the standard path separator (i.e. ":") - it is
3137 # assumed that no part of a normal pathname contains ";" but that should
3138 # okay in the real world where ";" in dirpaths is itself problematic.
3139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3145 # Ok, now we have the path, separated by spaces, we can step through it
3146 # and add multilib dir if necessary.
3147 lt_tmp_lt_search_path_spec=
3148 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3149 for lt_sys_path in $lt_search_path_spec; do
3150 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3153 test -d "$lt_sys_path" && \
3154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3157 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3158 BEGIN {RS=" "; FS="/|\n";} {
3161 for (lt_i = NF; lt_i > 0; lt_i--) {
3162 if ($lt_i != "" && $lt_i != ".") {
3163 if ($lt_i == "..") {
3166 if (lt_count == 0) {
3167 lt_foo="/" $lt_i lt_foo;
3174 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3175 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3177 # AWK program above erroneously prepends '/' to C:/dos/paths
3180 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
3181 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
3183 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3188 libname_spec='lib$name'
3196 shlibpath_overrides_runpath=unknown
3198 dynamic_linker="$host_os ld.so"
3199 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3200 need_lib_prefix=unknown
3201 hardcode_into_libs=no
3203 # when you set need_version to no, make sure it does not cause -set_version
3204 # flags to be left without arguments
3205 need_version=unknown
3210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3211 shlibpath_var=LIBPATH
3213 # AIX 3 has no versioning support, so we append a major version to the name.
3214 soname_spec='${libname}${release}${shared_ext}$major'
3221 hardcode_into_libs=yes
3222 if test "$host_cpu" = ia64; then
3223 # AIX 5 supports IA64
3224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3225 shlibpath_var=LD_LIBRARY_PATH
3227 # With GCC up to 2.95.x, collect2 would create an import file
3228 # for dependence libraries. The import file would start with
3229 # the line `#! .'. This would cause the generated library to
3230 # depend on `.', always an invalid library. This was fixed in
3231 # development snapshots of GCC prior to 3.0.
3233 aix4 | aix4.[[01]] | aix4.[[01]].*)
3234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3236 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3244 # soname into executable. Probably we can add versioning support to
3245 # collect2, so additional links can be useful in future.
3246 if test "$aix_use_runtimelinking" = yes; then
3247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3248 # instead of lib<name>.a to let people know that these are not
3249 # typical AIX shared libraries.
3250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3252 # We preserve .a as extension for shared libraries through AIX4.2
3253 # and later when we are not doing run time linking.
3254 library_names_spec='${libname}${release}.a $libname.a'
3255 soname_spec='${libname}${release}${shared_ext}$major'
3257 shlibpath_var=LIBPATH
3264 # Since July 2007 AmigaOS4 officially supports .so libraries.
3265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3269 library_names_spec='$libname.ixlibrary $libname.a'
3270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3271 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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'
3277 library_names_spec='${libname}${shared_ext}'
3278 dynamic_linker="$host_os ld.so"
3279 shlibpath_var=LIBRARY_PATH
3285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3286 soname_spec='${libname}${release}${shared_ext}$major'
3287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3288 shlibpath_var=LD_LIBRARY_PATH
3289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3291 # the default ld.so.conf also contains /usr/contrib/lib and
3292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3293 # libtool to hard-code these into programs
3296 cygwin* | mingw* | pw32* | cegcc*)
3297 version_type=windows
3302 case $GCC,$cc_basename in
3305 library_names_spec='$libname.dll.a'
3306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3307 postinstall_cmds='base_file=`basename \${file}`~
3308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3309 dldir=$destdir/`dirname \$dlpath`~
3310 test -d \$dldir || mkdir -p \$dldir~
3311 $install_prog $dir/$dlname \$dldir/$dlname~
3312 chmod a+x \$dldir/$dlname~
3313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3317 dlpath=$dir/\$dldll~
3319 shlibpath_overrides_runpath=yes
3323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3329 # MinGW DLLs use traditional 'lib' prefix
3330 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3333 # pw32 DLLs use 'pw' prefix rather than 'lib'
3334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3337 dynamic_linker='Win32 ld.exe'
3342 libname_spec='$name'
3343 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3344 library_names_spec='${libname}.dll.lib'
3348 sys_lib_search_path_spec=
3354 # Let DOS variable expansion print the short 8.3 style file name.
3355 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3356 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3359 # Convert to MSYS style.
3360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3363 # Convert to unix form, then to dos form, then back to unix form
3364 # but this time dos style (no spaces!) so that the unix form looks
3365 # like /cygdrive/c/PROGRA~1:/cygdr...
3366 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3367 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3368 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3371 sys_lib_search_path_spec="$LIB"
3372 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3373 # It is most probably a Windows format PATH.
3374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3378 # FIXME: find the short name or the path components, as spaces are
3379 # common. (e.g. "Program Files" -> "PROGRA~1")
3383 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3384 postinstall_cmds='base_file=`basename \${file}`~
3385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3386 dldir=$destdir/`dirname \$dlpath`~
3387 test -d \$dldir || mkdir -p \$dldir~
3388 $install_prog $dir/$dlname \$dldir/$dlname'
3389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3390 dlpath=$dir/\$dldll~
3392 shlibpath_overrides_runpath=yes
3393 dynamic_linker='Win32 link.exe'
3397 # Assume MSVC wrapper
3398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3399 dynamic_linker='Win32 ld.exe'
3402 # FIXME: first we should search . and the directory the executable is in
3406 darwin* | rhapsody*)
3407 dynamic_linker="$host_os dyld"
3411 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3412 soname_spec='${libname}${release}${major}$shared_ext'
3413 shlibpath_overrides_runpath=yes
3414 shlibpath_var=DYLD_LIBRARY_PATH
3415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3426 soname_spec='${libname}${release}${shared_ext}$major'
3427 shlibpath_var=LD_LIBRARY_PATH
3434 freebsd* | dragonfly*)
3435 # DragonFly does not have aout. When/if they implement a new
3436 # versioning mechanism, adjust this.
3437 if test -x /usr/bin/objformat; then
3438 objformat=`/usr/bin/objformat`
3441 freebsd[[123]]*) objformat=aout ;;
3445 version_type=freebsd-$objformat
3446 case $version_type in
3448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3457 shlibpath_var=LD_LIBRARY_PATH
3460 shlibpath_overrides_runpath=yes
3462 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3463 shlibpath_overrides_runpath=yes
3464 hardcode_into_libs=yes
3466 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3467 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3468 shlibpath_overrides_runpath=no
3469 hardcode_into_libs=yes
3471 *) # from 4.6 on, and DragonFly
3472 shlibpath_overrides_runpath=yes
3473 hardcode_into_libs=yes
3482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3483 soname_spec='${libname}${release}${shared_ext}$major'
3484 shlibpath_var=LD_LIBRARY_PATH
3485 hardcode_into_libs=yes
3492 dynamic_linker="$host_os runtime_loader"
3493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3494 soname_spec='${libname}${release}${shared_ext}$major'
3495 shlibpath_var=LIBRARY_PATH
3496 shlibpath_overrides_runpath=yes
3497 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3498 hardcode_into_libs=yes
3501 hpux9* | hpux10* | hpux11*)
3502 # Give a soname corresponding to the major version so that dld.sl refuses to
3503 # link against other versions.
3510 hardcode_into_libs=yes
3511 dynamic_linker="$host_os dld.so"
3512 shlibpath_var=LD_LIBRARY_PATH
3513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3515 soname_spec='${libname}${release}${shared_ext}$major'
3516 if test "X$HPUX_IA64_MODE" = X32; then
3517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3525 hardcode_into_libs=yes
3526 dynamic_linker="$host_os dld.sl"
3527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3530 soname_spec='${libname}${release}${shared_ext}$major'
3531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3536 dynamic_linker="$host_os dld.sl"
3537 shlibpath_var=SHLIB_PATH
3538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3540 soname_spec='${libname}${release}${shared_ext}$major'
3543 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3544 postinstall_cmds='chmod 555 $lib'
3545 # or fails outright, so override atomically:
3546 install_override_mode=555
3553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3554 soname_spec='${libname}${release}${shared_ext}$major'
3555 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3556 shlibpath_var=LD_LIBRARY_PATH
3557 shlibpath_overrides_runpath=no
3558 hardcode_into_libs=yes
3561 irix5* | irix6* | nonstopux*)
3563 nonstopux*) version_type=nonstopux ;;
3565 if test "$lt_cv_prog_gnu_ld" = yes; then
3573 soname_spec='${libname}${release}${shared_ext}$major'
3574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3576 irix5* | nonstopux*)
3580 case $LD in # libtool.m4 will add one of these switches to LD
3581 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3582 libsuff= shlibsuff= libmagic=32-bit;;
3583 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3584 libsuff=32 shlibsuff=N32 libmagic=N32;;
3585 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3586 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3587 *) libsuff= shlibsuff= libmagic=never-match;;
3591 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3592 shlibpath_overrides_runpath=no
3593 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3594 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3595 hardcode_into_libs=yes
3598 # No shared lib support for Linux oldld, aout, or coff.
3599 linux*oldld* | linux*aout* | linux*coff*)
3603 # This must be Linux ELF.
3604 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3609 soname_spec='${libname}${release}${shared_ext}$major'
3610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3611 shlibpath_var=LD_LIBRARY_PATH
3612 shlibpath_overrides_runpath=no
3614 # Some binutils ld are patched to set DT_RUNPATH
3615 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3616 [lt_cv_shlibpath_overrides_runpath=no
3617 save_LDFLAGS=$LDFLAGS
3619 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3620 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3621 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3622 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3623 [lt_cv_shlibpath_overrides_runpath=yes])])
3624 LDFLAGS=$save_LDFLAGS
3627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3629 # This implies no fast_install, which is unacceptable.
3630 # Some rework will be needed to allow for fast_install
3631 # before this can be enabled.
3632 hardcode_into_libs=yes
3634 # Append ld.so.conf contents to the search path
3635 if test -f /etc/ld.so.conf; then
3636 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' ' '`
3637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3640 # We used to test for /lib/ld.so.1 and disable shared libraries on
3641 # powerpc, because MkLinux only supported shared libraries with the
3642 # GNU dynamic linker. Since this was broken with cross compilers,
3643 # most powerpc-linux boxes support dynamic linking these days and
3644 # people can always --disable-shared, the test was removed, and we
3645 # assume the GNU/Linux dynamic linker is in use.
3646 dynamic_linker='GNU/Linux ld.so'
3653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3656 dynamic_linker='NetBSD (a.out) ld.so'
3658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3659 soname_spec='${libname}${release}${shared_ext}$major'
3660 dynamic_linker='NetBSD ld.elf_so'
3662 shlibpath_var=LD_LIBRARY_PATH
3663 shlibpath_overrides_runpath=yes
3664 hardcode_into_libs=yes
3669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3670 shlibpath_var=LD_LIBRARY_PATH
3671 shlibpath_overrides_runpath=yes
3678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3679 soname_spec='${libname}${release}${shared_ext}$major'
3680 shlibpath_var=LD_LIBRARY_PATH
3681 shlibpath_overrides_runpath=no
3682 hardcode_into_libs=yes
3683 dynamic_linker='ldqnx.so'
3688 sys_lib_dlsearch_path_spec="/usr/lib"
3690 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3692 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3693 *) need_version=no ;;
3695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3697 shlibpath_var=LD_LIBRARY_PATH
3698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3700 openbsd2.[[89]] | openbsd2.[[89]].*)
3701 shlibpath_overrides_runpath=no
3704 shlibpath_overrides_runpath=yes
3708 shlibpath_overrides_runpath=yes
3713 libname_spec='$name'
3716 library_names_spec='$libname${shared_ext} $libname.a'
3717 dynamic_linker='OS/2 ld.exe'
3718 shlibpath_var=LIBPATH
3721 osf3* | osf4* | osf5*)
3725 soname_spec='${libname}${release}${shared_ext}$major'
3726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3727 shlibpath_var=LD_LIBRARY_PATH
3728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3741 soname_spec='${libname}${release}${shared_ext}$major'
3742 shlibpath_var=LD_LIBRARY_PATH
3743 shlibpath_overrides_runpath=yes
3744 hardcode_into_libs=yes
3745 # ldd complains unless libraries are executable
3746 postinstall_cmds='chmod +x $lib'
3751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3753 shlibpath_var=LD_LIBRARY_PATH
3754 shlibpath_overrides_runpath=yes
3755 if test "$with_gnu_ld" = yes; then
3763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3764 soname_spec='${libname}${release}${shared_ext}$major'
3765 shlibpath_var=LD_LIBRARY_PATH
3766 case $host_vendor in
3768 shlibpath_overrides_runpath=no
3770 runpath_var=LD_RUN_PATH
3778 shlibpath_overrides_runpath=no
3779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3785 if test -d /usr/nec ;then
3787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3788 soname_spec='$libname${shared_ext}.$major'
3789 shlibpath_var=LD_LIBRARY_PATH
3793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3794 version_type=freebsd-elf
3797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3798 soname_spec='${libname}${release}${shared_ext}$major'
3799 shlibpath_var=LD_LIBRARY_PATH
3800 shlibpath_overrides_runpath=yes
3801 hardcode_into_libs=yes
3802 if test "$with_gnu_ld" = yes; then
3803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3812 sys_lib_dlsearch_path_spec='/usr/lib'
3816 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3821 shlibpath_var=LD_LIBRARY_PATH
3822 shlibpath_overrides_runpath=no
3823 hardcode_into_libs=yes
3828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3829 soname_spec='${libname}${release}${shared_ext}$major'
3830 shlibpath_var=LD_LIBRARY_PATH
3837 AC_MSG_RESULT([$dynamic_linker])
3838 test "$dynamic_linker" = no && can_build_shared=no
3840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3841 if test "$GCC" = yes; then
3842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3845 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3848 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3849 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3852 _LT_DECL([], [variables_saved_for_relink], [1],
3853 [Variables whose values should be saved in libtool wrapper scripts and
3854 restored at link time])
3855 _LT_DECL([], [need_lib_prefix], [0],
3856 [Do we need the "lib" prefix for modules?])
3857 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3858 _LT_DECL([], [version_type], [0], [Library versioning type])
3859 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3860 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3861 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3862 [Is shlibpath searched before the hard-coded library search path?])
3863 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3864 _LT_DECL([], [library_names_spec], [1],
3865 [[List of archive names. First name is the real one, the rest are links.
3866 The last name is the one that the linker finds with -lNAME]])
3867 _LT_DECL([], [soname_spec], [1],
3868 [[The coded name of the library, if different from the real name]])
3869 _LT_DECL([], [install_override_mode], [1],
3870 [Permission mode override for installation of shared libraries])
3871 _LT_DECL([], [postinstall_cmds], [2],
3872 [Command to use after installation of a shared archive])
3873 _LT_DECL([], [postuninstall_cmds], [2],
3874 [Command to use after uninstallation of a shared archive])
3875 _LT_DECL([], [finish_cmds], [2],
3876 [Commands used to finish a libtool library installation in a directory])
3877 _LT_DECL([], [finish_eval], [1],
3878 [[As "finish_cmds", except a single script fragment to be evaled but
3880 _LT_DECL([], [hardcode_into_libs], [0],
3881 [Whether we should hardcode library paths into libraries])
3882 _LT_DECL([], [sys_lib_search_path_spec], [2],
3883 [Compile-time system search path for libraries])
3884 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3885 [Run-time system search path for libraries])
3886 ])# _LT_SYS_DYNAMIC_LINKER
3889 # _LT_PATH_TOOL_PREFIX(TOOL)
3890 # --------------------------
3891 # find a file program which can recognize shared library
3892 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3893 [m4_require([_LT_DECL_EGREP])dnl
3894 AC_MSG_CHECKING([for $1])
3895 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3897 [[\\/*] | ?:[\\/]*])
3898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3901 lt_save_MAGIC_CMD="$MAGIC_CMD"
3902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3903 dnl $ac_dummy forces splitting on constant user-supplied paths.
3904 dnl POSIX.2 word splitting is done only on the output of word expansions,
3905 dnl not every word. This closes a longstanding sh security hole.
3906 ac_dummy="m4_if([$2], , $PATH, [$2])"
3907 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$1; then
3911 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3912 if test -n "$file_magic_test_file"; then
3913 case $deplibs_check_method in
3915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3918 $EGREP "$file_magic_regex" > /dev/null; then
3923 *** Warning: the command libtool uses to detect shared libraries,
3924 *** $file_magic_cmd, produces output that libtool cannot recognize.
3925 *** The result is that libtool may fail to recognize shared libraries
3926 *** as such. This will affect the creation of libtool libraries that
3927 *** depend on shared libraries, but programs linked with such libtool
3928 *** libraries will work regardless of this problem. Nevertheless, you
3929 *** may want to report the problem to your system manager and/or to
3930 *** bug-libtool@gnu.org
3940 MAGIC_CMD="$lt_save_MAGIC_CMD"
3943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3944 if test -n "$MAGIC_CMD"; then
3945 AC_MSG_RESULT($MAGIC_CMD)
3949 _LT_DECL([], [MAGIC_CMD], [0],
3950 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3951 ])# _LT_PATH_TOOL_PREFIX
3954 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3955 dnl aclocal-1.4 backwards compatibility:
3956 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3961 # find a file program which can recognize a shared library
3962 m4_defun([_LT_PATH_MAGIC],
3963 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3964 if test -z "$lt_cv_path_MAGIC_CMD"; then
3965 if test -n "$ac_tool_prefix"; then
3966 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3976 # find the pathname to the GNU or non-GNU linker
3977 AC_DEFUN([LT_PATH_LD],
3978 [AC_REQUIRE([AC_PROG_CC])dnl
3979 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3980 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3981 m4_require([_LT_DECL_SED])dnl
3982 m4_require([_LT_DECL_EGREP])dnl
3983 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3985 AC_ARG_WITH([gnu-ld],
3986 [AS_HELP_STRING([--with-gnu-ld],
3987 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3988 [test "$withval" = no || with_gnu_ld=yes],
3989 [with_gnu_ld=no])dnl
3992 if test "$GCC" = yes; then
3993 # Check if gcc -print-prog-name=ld gives a path.
3994 AC_MSG_CHECKING([for ld used by $CC])
3997 # gcc leaves a trailing carriage return which upsets mingw
3998 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4000 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4003 # Accept absolute paths.
4004 [[\\/]]* | ?:[[\\/]]*)
4005 re_direlt='/[[^/]][[^/]]*/\.\./'
4006 # Canonicalize the pathname of ld
4007 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4008 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4009 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4011 test -z "$LD" && LD="$ac_prog"
4014 # If it fails, then pretend we aren't using GCC.
4018 # If it is relative, then search for the first ld in PATH.
4022 elif test "$with_gnu_ld" = yes; then
4023 AC_MSG_CHECKING([for GNU ld])
4025 AC_MSG_CHECKING([for non-GNU ld])
4027 AC_CACHE_VAL(lt_cv_path_LD,
4028 [if test -z "$LD"; then
4029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4030 for ac_dir in $PATH; do
4032 test -z "$ac_dir" && ac_dir=.
4033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4034 lt_cv_path_LD="$ac_dir/$ac_prog"
4035 # Check to see if the program is GNU ld. I'd rather use --version,
4036 # but apparently some variants of GNU ld only accept -v.
4037 # Break only if it was the GNU/non-GNU ld that we prefer.
4038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4039 *GNU* | *'with BFD'*)
4040 test "$with_gnu_ld" != no && break
4043 test "$with_gnu_ld" != yes && break
4050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4053 if test -n "$LD"; then
4058 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4062 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4066 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4067 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4068 dnl aclocal-1.4 backwards compatibility:
4069 dnl AC_DEFUN([AM_PROG_LD], [])
4070 dnl AC_DEFUN([AC_PROG_LD], [])
4075 m4_defun([_LT_PATH_LD_GNU],
4076 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4077 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
4078 case `$LD -v 2>&1 </dev/null` in
4079 *GNU* | *'with BFD'*)
4080 lt_cv_prog_gnu_ld=yes
4083 lt_cv_prog_gnu_ld=no
4086 with_gnu_ld=$lt_cv_prog_gnu_ld
4092 # find reload flag for linker
4093 # -- PORTME Some linkers may need a different reload flag.
4094 m4_defun([_LT_CMD_RELOAD],
4095 [AC_CACHE_CHECK([for $LD option to reload object files],
4096 lt_cv_ld_reload_flag,
4097 [lt_cv_ld_reload_flag='-r'])
4098 reload_flag=$lt_cv_ld_reload_flag
4099 case $reload_flag in
4101 *) reload_flag=" $reload_flag" ;;
4103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 cygwin* | mingw* | pw32* | cegcc*)
4106 if test "$GCC" != yes; then
4111 if test "$GCC" = yes; then
4112 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4118 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4119 _LT_TAGDECL([], [reload_cmds], [2])dnl
4123 # _LT_CHECK_MAGIC_METHOD
4124 # ----------------------
4125 # how to check for library dependencies
4126 # -- PORTME fill in with the dynamic library characteristics
4127 m4_defun([_LT_CHECK_MAGIC_METHOD],
4128 [m4_require([_LT_DECL_EGREP])
4129 m4_require([_LT_DECL_OBJDUMP])
4130 AC_CACHE_CHECK([how to recognize dependent libraries],
4131 lt_cv_deplibs_check_method,
4132 [lt_cv_file_magic_cmd='$MAGIC_CMD'
4133 lt_cv_file_magic_test_file=
4134 lt_cv_deplibs_check_method='unknown'
4135 # Need to set the preceding variable on all platforms that support
4136 # interlibrary dependencies.
4137 # 'none' -- dependencies not supported.
4138 # `unknown' -- same as none, but documents that we really don't know.
4139 # 'pass_all' -- all dependencies passed with no checks.
4140 # 'test_compile' -- check by making test program.
4141 # 'file_magic [[regex]]' -- check by looking for files in library path
4142 # which responds to the $file_magic_cmd with a given extended regex.
4143 # If you have `file' or equivalent on your system and you're not sure
4144 # whether `pass_all' will *always* work, you probably want this one.
4148 lt_cv_deplibs_check_method=pass_all
4152 lt_cv_deplibs_check_method=pass_all
4156 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4157 lt_cv_file_magic_cmd='/usr/bin/file -L'
4158 lt_cv_file_magic_test_file=/shlib/libc.so
4162 # func_win32_libid is a shell function defined in ltmain.sh
4163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4164 lt_cv_file_magic_cmd='func_win32_libid'
4168 # Base MSYS/MinGW do not provide the 'file' command needed by
4169 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4170 # unless we find 'file', for example because we are cross-compiling.
4171 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4172 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4174 lt_cv_file_magic_cmd='func_win32_libid'
4176 # Keep this pattern in sync with the one in func_win32_libid.
4177 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4178 lt_cv_file_magic_cmd='$OBJDUMP -f'
4183 # use the weaker test based on 'objdump'. See mingw*.
4184 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4185 lt_cv_file_magic_cmd='$OBJDUMP -f'
4188 darwin* | rhapsody*)
4189 lt_cv_deplibs_check_method=pass_all
4192 freebsd* | dragonfly*)
4193 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4196 # Not sure whether the presence of OpenBSD here was a mistake.
4197 # Let's accept both of them until this is cleared up.
4198 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4199 lt_cv_file_magic_cmd=/usr/bin/file
4200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4204 lt_cv_deplibs_check_method=pass_all
4209 lt_cv_deplibs_check_method=pass_all
4213 lt_cv_deplibs_check_method=pass_all
4216 hpux10.20* | hpux11*)
4217 lt_cv_file_magic_cmd=/usr/bin/file
4220 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4221 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4224 [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]']
4225 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4228 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4229 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4235 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4236 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4239 irix5* | irix6* | nonstopux*)
4241 *-32|*"-32 ") libmagic=32-bit;;
4242 *-n32|*"-n32 ") libmagic=N32;;
4243 *-64|*"-64 ") libmagic=64-bit;;
4244 *) libmagic=never-match;;
4246 lt_cv_deplibs_check_method=pass_all
4249 # This must be Linux ELF.
4250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4251 lt_cv_deplibs_check_method=pass_all
4255 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4256 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4258 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4263 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4264 lt_cv_file_magic_cmd=/usr/bin/file
4265 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4269 lt_cv_deplibs_check_method=pass_all
4273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4274 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4276 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4280 osf3* | osf4* | osf5*)
4281 lt_cv_deplibs_check_method=pass_all
4285 lt_cv_deplibs_check_method=pass_all
4289 lt_cv_deplibs_check_method=pass_all
4292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4293 lt_cv_deplibs_check_method=pass_all
4297 case $host_vendor in
4299 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]]'
4300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4303 lt_cv_deplibs_check_method=pass_all
4306 lt_cv_file_magic_cmd='/bin/file'
4307 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4310 lt_cv_file_magic_cmd='/bin/file'
4311 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4312 lt_cv_file_magic_test_file=/lib/libc.so
4315 lt_cv_deplibs_check_method=pass_all
4318 lt_cv_deplibs_check_method=pass_all
4324 lt_cv_deplibs_check_method=pass_all
4331 if test "$build" = "$host"; then
4334 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4337 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4343 file_magic_cmd=$lt_cv_file_magic_cmd
4344 deplibs_check_method=$lt_cv_deplibs_check_method
4345 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4347 _LT_DECL([], [deplibs_check_method], [1],
4348 [Method to check whether dependent libraries are shared objects])
4349 _LT_DECL([], [file_magic_cmd], [1],
4350 [Command to use when deplibs_check_method = "file_magic"])
4351 _LT_DECL([], [file_magic_glob], [1],
4352 [How to find potential files when deplibs_check_method = "file_magic"])
4353 _LT_DECL([], [want_nocaseglob], [1],
4354 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4355 ])# _LT_CHECK_MAGIC_METHOD
4360 # find the pathname to a BSD- or MS-compatible name lister
4361 AC_DEFUN([LT_PATH_NM],
4362 [AC_REQUIRE([AC_PROG_CC])dnl
4363 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4364 [if test -n "$NM"; then
4365 # Let the user override the test.
4368 lt_nm_to_check="${ac_tool_prefix}nm"
4369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4370 lt_nm_to_check="$lt_nm_to_check nm"
4372 for lt_tmp_nm in $lt_nm_to_check; do
4373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4376 test -z "$ac_dir" && ac_dir=.
4377 tmp_nm="$ac_dir/$lt_tmp_nm"
4378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4379 # Check to see if the nm accepts a BSD-compat flag.
4380 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4381 # nm: unknown option "B" ignored
4382 # Tru64's nm complains that /dev/null is an invalid object file
4383 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4384 */dev/null* | *'Invalid file or object type'*)
4385 lt_cv_path_NM="$tmp_nm -B"
4389 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391 lt_cv_path_NM="$tmp_nm -p"
4395 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4396 continue # so that we can try to find one that supports BSD flags
4405 : ${lt_cv_path_NM=no}
4407 if test "$lt_cv_path_NM" != "no"; then
4410 # Didn't find any BSD compatible name lister, look for dumpbin.
4411 if test -n "$DUMPBIN"; then :
4412 # Let the user override the test.
4414 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4415 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4417 DUMPBIN="$DUMPBIN -symbols"
4425 if test "$DUMPBIN" != ":"; then
4429 test -z "$NM" && NM=nm
4431 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4433 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4434 [lt_cv_nm_interface="BSD nm"
4435 echo "int some_variable = 0;" > conftest.$ac_ext
4436 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4437 (eval "$ac_compile" 2>conftest.err)
4438 cat conftest.err >&AS_MESSAGE_LOG_FD
4439 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4440 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4441 cat conftest.err >&AS_MESSAGE_LOG_FD
4442 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4443 cat conftest.out >&AS_MESSAGE_LOG_FD
4444 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4445 lt_cv_nm_interface="MS dumpbin"
4451 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4452 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4453 dnl aclocal-1.4 backwards compatibility:
4454 dnl AC_DEFUN([AM_PROG_NM], [])
4455 dnl AC_DEFUN([AC_PROG_NM], [])
4457 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4458 # --------------------------------
4459 # how to determine the name of the shared library
4460 # associated with a specific link library.
4461 # -- PORTME fill in with the dynamic library characteristics
4462 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4463 [m4_require([_LT_DECL_EGREP])
4464 m4_require([_LT_DECL_OBJDUMP])
4465 m4_require([_LT_DECL_DLLTOOL])
4466 AC_CACHE_CHECK([how to associate runtime and link libraries],
4467 lt_cv_sharedlib_from_linklib_cmd,
4468 [lt_cv_sharedlib_from_linklib_cmd='unknown'
4471 cygwin* | mingw* | pw32* | cegcc*)
4472 # two different shell functions defined in ltmain.sh
4473 # decide which to use based on capabilities of $DLLTOOL
4474 case `$DLLTOOL --help 2>&1` in
4475 *--identify-strict*)
4476 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4484 # fallback: assume linklib IS sharedlib
4485 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4489 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4490 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4492 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4493 [Command to associate shared and link libraries])
4494 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4497 # _LT_PATH_MANIFEST_TOOL
4498 # ----------------------
4499 # locate the manifest tool
4500 m4_defun([_LT_PATH_MANIFEST_TOOL],
4501 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4502 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4503 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4504 [lt_cv_path_mainfest_tool=no
4505 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4506 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4507 cat conftest.err >&AS_MESSAGE_LOG_FD
4508 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4509 lt_cv_path_mainfest_tool=yes
4512 if test "x$lt_cv_path_mainfest_tool" != xyes; then
4515 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4516 ])# _LT_PATH_MANIFEST_TOOL
4521 # check for math library
4522 AC_DEFUN([LT_LIB_M],
4523 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4526 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4527 # These system don't have libm, or don't need it
4530 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4531 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4534 AC_CHECK_LIB(m, cos, LIBM="-lm")
4541 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4542 dnl aclocal-1.4 backwards compatibility:
4543 dnl AC_DEFUN([AC_CHECK_LIBM], [])
4546 # _LT_COMPILER_NO_RTTI([TAGNAME])
4547 # -------------------------------
4548 m4_defun([_LT_COMPILER_NO_RTTI],
4549 [m4_require([_LT_TAG_COMPILER])dnl
4551 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4553 if test "$GCC" = yes; then
4554 case $cc_basename in
4556 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4558 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4561 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4562 lt_cv_prog_compiler_rtti_exceptions,
4563 [-fno-rtti -fno-exceptions], [],
4564 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4566 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4567 [Compiler flag to turn off builtin functions])
4568 ])# _LT_COMPILER_NO_RTTI
4571 # _LT_CMD_GLOBAL_SYMBOLS
4572 # ----------------------
4573 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4574 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4575 AC_REQUIRE([AC_PROG_CC])dnl
4576 AC_REQUIRE([AC_PROG_AWK])dnl
4577 AC_REQUIRE([LT_PATH_NM])dnl
4578 AC_REQUIRE([LT_PATH_LD])dnl
4579 m4_require([_LT_DECL_SED])dnl
4580 m4_require([_LT_DECL_EGREP])dnl
4581 m4_require([_LT_TAG_COMPILER])dnl
4583 # Check for command to grab the raw symbol name followed by C symbol from nm.
4584 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4585 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4587 # These are sane defaults that work on at least a few old systems.
4588 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4590 # Character class describing NM global symbol codes.
4591 symcode='[[BCDEGRST]]'
4593 # Regexp to match symbols that can be accessed directly from C.
4594 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4596 # Define system-specific variables.
4601 cygwin* | mingw* | pw32* | cegcc*)
4602 symcode='[[ABCDGISTW]]'
4605 if test "$host_cpu" = ia64; then
4606 symcode='[[ABCDEGRST]]'
4610 symcode='[[BCDEGRST]]'
4613 symcode='[[BCDEGQRST]]'
4624 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4628 symcode='[[DFNSTU]]'
4632 # If we're using GNU nm, then use its standard symbol codes.
4633 case `$NM -V 2>&1` in
4634 *GNU* | *'with BFD'*)
4635 symcode='[[ABCDGIRSTW]]' ;;
4638 # Transform an extracted symbol line into a proper C declaration.
4639 # Some systems (esp. on ia64) link data and code symbols differently,
4640 # so use this general approach.
4641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4643 # Transform an extracted symbol line into symbol name and symbol address
4644 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4645 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4647 # Handle CRLF in mingw tool chain
4651 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4655 # Try without a prefix underscore, then with it.
4656 for ac_symprfx in "" "_"; do
4658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4659 symxfrm="\\1 $ac_symprfx\\2 \\2"
4661 # Write the raw and C identifiers.
4662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4663 # Fake it for dumpbin and say T for any non-static function
4664 # and D for any global variable.
4665 # Also find C++ and __fastcall symbols from MSVC++,
4666 # which start with @ or ?.
4667 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4668 " {last_section=section; section=\$ 3};"\
4669 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4670 " \$ 0!~/External *\|/{next};"\
4671 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4672 " {if(hide[section]) next};"\
4673 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4674 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4675 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4676 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4677 " ' prfx=^$ac_symprfx]"
4679 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4681 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4683 # Check to see that the pipe works correctly.
4687 cat > conftest.$ac_ext <<_LT_EOF
4692 void nm_test_func(void);
4693 void nm_test_func(void){}
4697 int main(){nm_test_var='a';nm_test_func();return(0);}
4700 if AC_TRY_EVAL(ac_compile); then
4701 # Now try to grab the symbols.
4703 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4704 # Try sorting and uniquifying the output.
4705 if sort "$nlist" | uniq > "$nlist"T; then
4706 mv -f "$nlist"T "$nlist"
4711 # Make sure that we snagged all the symbols we need.
4712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4714 cat <<_LT_EOF > conftest.$ac_ext
4715 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4716 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4717 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4718 relocations are performed -- see ld's documentation on pseudo-relocs. */
4719 # define LT@&t@_DLSYM_CONST
4720 #elif defined(__osf__)
4721 /* This system does not cope well with relocations in const data. */
4722 # define LT@&t@_DLSYM_CONST
4724 # define LT@&t@_DLSYM_CONST const
4732 # Now generate the symbol file.
4733 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4735 cat <<_LT_EOF >> conftest.$ac_ext
4737 /* The mapping between symbol names and symbols. */
4738 LT@&t@_DLSYM_CONST struct {
4742 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4744 { "@PROGRAM@", (void *) 0 },
4746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4747 cat <<\_LT_EOF >> conftest.$ac_ext
4751 /* This works around a problem in FreeBSD linker */
4752 #ifdef FREEBSD_WORKAROUND
4753 static const void *lt_preloaded_setup() {
4754 return lt__PROGRAM__LTX_preloaded_symbols;
4762 # Now try linking the two files.
4763 mv conftest.$ac_objext conftstm.$ac_objext
4764 lt_globsym_save_LIBS=$LIBS
4765 lt_globsym_save_CFLAGS=$CFLAGS
4766 LIBS="conftstm.$ac_objext"
4767 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4768 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4771 LIBS=$lt_globsym_save_LIBS
4772 CFLAGS=$lt_globsym_save_CFLAGS
4774 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4777 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4780 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4783 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4784 cat conftest.$ac_ext >&5
4786 rm -rf conftest* conftst*
4788 # Do not use the global_symbol_pipe unless it works.
4789 if test "$pipe_works" = yes; then
4792 lt_cv_sys_global_symbol_pipe=
4796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4797 lt_cv_sys_global_symbol_to_cdecl=
4799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4800 AC_MSG_RESULT(failed)
4805 # Response file support.
4806 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4807 nm_file_list_spec='@'
4808 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4809 nm_file_list_spec='@'
4812 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4813 [Take the output of nm and produce a listing of raw symbols and C names])
4814 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4815 [Transform the output of nm in a proper C declaration])
4816 _LT_DECL([global_symbol_to_c_name_address],
4817 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4818 [Transform the output of nm in a C name address pair])
4819 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4820 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4821 [Transform the output of nm in a C name address pair when lib prefix is needed])
4822 _LT_DECL([], [nm_file_list_spec], [1],
4823 [Specify filename containing input files for $NM])
4824 ]) # _LT_CMD_GLOBAL_SYMBOLS
4827 # _LT_COMPILER_PIC([TAGNAME])
4828 # ---------------------------
4829 m4_defun([_LT_COMPILER_PIC],
4830 [m4_require([_LT_TAG_COMPILER])dnl
4831 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4832 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4833 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4835 m4_if([$1], [CXX], [
4836 # C++ specific cases for pic, static, wl, etc.
4837 if test "$GXX" = yes; then
4838 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4843 # All AIX code is PIC.
4844 if test "$host_cpu" = ia64; then
4845 # AIX 5 now supports IA64 processor
4846 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4853 # see comment about AmigaOS4 .so support
4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4857 # FIXME: we need at least 68020 code to build shared libraries, but
4858 # adding the `-m68020' flag to GCC prevents building anything better,
4860 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4866 # PIC is the default for these OSes.
4868 mingw* | cygwin* | os2* | pw32* | cegcc*)
4869 # This hack is so that the source file can tell whether it is being
4870 # built for inclusion in a dll (and should export symbols for example).
4871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4872 # (--disable-auto-import) libraries
4873 m4_if([$1], [GCJ], [],
4874 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4876 darwin* | rhapsody*)
4877 # PIC is the default on this platform
4878 # Common symbols not allowed in MH_DYLIB files
4879 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4882 # DJGPP does not support shared libraries at all
4883 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4886 # PIC is the default for Haiku.
4887 # The "-static" flag exists, but is broken.
4888 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4892 # Instead, we relocate shared libraries at runtime.
4895 if test -d /usr/nec; then
4896 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4902 # sets the default TLS model and affects inlining.
4907 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4912 # QNX uses GNU C++, but need to define -shared option too, otherwise
4914 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4917 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4923 # All AIX code is PIC.
4924 if test "$host_cpu" = ia64; then
4925 # AIX 5 now supports IA64 processor
4926 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4928 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4932 case $cc_basename in
4934 # Green Hills C++ Compiler
4935 # _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"
4939 mingw* | cygwin* | os2* | pw32* | cegcc*)
4940 # This hack is so that the source file can tell whether it is being
4941 # built for inclusion in a dll (and should export symbols for example).
4942 m4_if([$1], [GCJ], [],
4943 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4946 case $cc_basename in
4948 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4951 # Green Hills C++ Compiler
4952 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4958 freebsd* | dragonfly*)
4959 # FreeBSD uses GNU C++
4961 hpux9* | hpux10* | hpux11*)
4962 case $cc_basename in
4964 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4966 if test "$host_cpu" != ia64; then
4967 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4971 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4972 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4978 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4987 # This is c89, which is MS Visual C++ (no shared libs)
4988 # Anyone wants to do a port?
4990 irix5* | irix6* | nonstopux*)
4991 case $cc_basename in
4993 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4994 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4995 # CC pic flag -KPIC is the default.
5001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5002 case $cc_basename in
5005 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5006 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5009 # old Intel C++ for x86_64 which still supported -KPIC.
5010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5012 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5015 # Intel C++, used to be incompatible with GCC.
5016 # ICC 10 doesn't accept -KPIC any more.
5017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5022 # Portland Group C++ compiler
5023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5029 # Make sure the PIC flag is empty. It appears that all Alpha
5030 # Linux and Compaq Tru64 Unix objects are PIC.
5031 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5032 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5034 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
5035 # IBM XL 8.0, 9.0 on PPC and BlueGene
5036 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5037 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5038 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5041 case `$CC -V 2>&1 | sed 5q` in
5044 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5045 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5046 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5057 case $cc_basename in
5059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5068 # QNX uses GNU C++, but need to define -shared option too, otherwise
5070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5072 osf3* | osf4* | osf5*)
5073 case $cc_basename in
5075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5078 # Rational C++ 2.4.1
5079 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5082 # Digital/Compaq C++
5083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5084 # Make sure the PIC flag is empty. It appears that all Alpha
5085 # Linux and Compaq Tru64 Unix objects are PIC.
5086 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5096 case $cc_basename in
5098 # Sun C++ 4.2, 5.x and Centerline C++
5099 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5100 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5104 # Green Hills C++ Compiler
5105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5112 case $cc_basename in
5115 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5116 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5127 case $cc_basename in
5129 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5130 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5131 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5136 case $cc_basename in
5138 # NonStop-UX NCC 3.20
5139 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5148 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5154 if test "$GCC" = yes; then
5155 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5160 # All AIX code is PIC.
5161 if test "$host_cpu" = ia64; then
5162 # AIX 5 now supports IA64 processor
5163 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5170 # see comment about AmigaOS4 .so support
5171 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5174 # FIXME: we need at least 68020 code to build shared libraries, but
5175 # adding the `-m68020' flag to GCC prevents building anything better,
5177 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5183 # PIC is the default for these OSes.
5186 mingw* | cygwin* | pw32* | os2* | cegcc*)
5187 # This hack is so that the source file can tell whether it is being
5188 # built for inclusion in a dll (and should export symbols for example).
5189 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5190 # (--disable-auto-import) libraries
5191 m4_if([$1], [GCJ], [],
5192 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5195 darwin* | rhapsody*)
5196 # PIC is the default on this platform
5197 # Common symbols not allowed in MH_DYLIB files
5198 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5202 # PIC is the default for Haiku.
5203 # The "-static" flag exists, but is broken.
5204 _LT_TAGVAR(lt_prog_compiler_static, $1)=
5208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
5209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
5210 # sets the default TLS model and affects inlining.
5216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5223 # Instead, we relocate shared libraries at runtime.
5227 # Just because we use GCC doesn't mean we suddenly get shared libraries
5228 # on systems that don't support them.
5229 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5234 # QNX uses GNU C++, but need to define -shared option too, otherwise
5236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5240 if test -d /usr/nec; then
5241 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5250 case $cc_basename in
5251 nvcc*) # Cuda Compiler Driver 2.2
5252 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5253 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
5257 # PORTME Check for flag to pass linker flags through the system compiler.
5260 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5261 if test "$host_cpu" = ia64; then
5262 # AIX 5 now supports IA64 processor
5263 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5269 mingw* | cygwin* | pw32* | os2* | cegcc*)
5270 # This hack is so that the source file can tell whether it is being
5271 # built for inclusion in a dll (and should export symbols for example).
5272 m4_if([$1], [GCJ], [],
5273 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5276 hpux9* | hpux10* | hpux11*)
5277 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5278 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5285 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5288 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5289 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5292 irix5* | irix6* | nonstopux*)
5293 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5294 # PIC (with -KPIC) is the default.
5295 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5298 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5299 case $cc_basename in
5300 # old Intel for x86_64 which still supported -KPIC.
5302 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5303 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5304 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5306 # icc used to be incompatible with GCC.
5307 # ICC 10 doesn't accept -KPIC any more.
5309 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5311 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5313 # Lahey Fortran 8.1.
5315 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5316 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5317 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5320 # NAG Fortran compiler
5321 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5322 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5323 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5325 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5326 # Portland Group compilers (*not* the Pentium gcc compiler,
5327 # which looks to be a dead project)
5328 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5330 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5333 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5334 # All Alpha code is PIC.
5335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5337 xl* | bgxl* | bgf* | mpixl*)
5338 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5339 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5344 case `$CC -V 2>&1 | sed 5q` in
5345 *Sun\ F* | *Sun*Fortran*)
5346 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5347 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5348 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5349 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5355 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5363 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5364 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368 # QNX uses GNU C++, but need to define -shared option too, otherwise
5370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5373 osf3* | osf4* | osf5*)
5374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5375 # All OSF/1 code is PIC.
5376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5380 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5384 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5386 case $cc_basename in
5387 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5388 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5390 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5396 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5400 sysv4 | sysv4.2uw2* | sysv4.3*)
5401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5407 if test -d /usr/nec ;then
5408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5414 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5415 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5416 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5421 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5425 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5426 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5430 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5436 # For platforms which do not support PIC, -DPIC is meaningless:
5438 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5441 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5445 AC_CACHE_CHECK([for $compiler option to produce PIC],
5446 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5447 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5448 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5451 # Check to make sure the PIC flag actually works.
5453 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5454 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5455 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5456 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5457 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5459 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5461 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5462 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5464 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5465 [Additional compiler flags for building library objects])
5467 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5468 [How to pass a linker flag through the compiler])
5470 # Check to make sure the static flag actually works.
5472 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5473 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5474 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5475 $lt_tmp_static_flag,
5477 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5478 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5479 [Compiler flag to prevent dynamic linking])
5480 ])# _LT_COMPILER_PIC
5483 # _LT_LINKER_SHLIBS([TAGNAME])
5484 # ----------------------------
5485 # See if the linker supports building shared libraries.
5486 m4_defun([_LT_LINKER_SHLIBS],
5487 [AC_REQUIRE([LT_PATH_LD])dnl
5488 AC_REQUIRE([LT_PATH_NM])dnl
5489 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5490 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5491 m4_require([_LT_DECL_EGREP])dnl
5492 m4_require([_LT_DECL_SED])dnl
5493 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5494 m4_require([_LT_TAG_COMPILER])dnl
5495 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5496 m4_if([$1], [CXX], [
5497 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5498 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5501 # If we're using GNU nm, then we don't want the "-C" option.
5502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5503 # Also, AIX nm treats weak defined symbols like other global defined
5504 # symbols, whereas GNU nm marks them as "W".
5505 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5506 _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'
5508 _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'
5512 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5514 cygwin* | mingw* | cegcc*)
5515 case $cc_basename in
5518 _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'
5519 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5524 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5529 _LT_TAGVAR(allow_undefined_flag, $1)=
5530 _LT_TAGVAR(always_export_symbols, $1)=no
5531 _LT_TAGVAR(archive_cmds, $1)=
5532 _LT_TAGVAR(archive_expsym_cmds, $1)=
5533 _LT_TAGVAR(compiler_needs_object, $1)=no
5534 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5535 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5536 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5537 _LT_TAGVAR(hardcode_automatic, $1)=no
5538 _LT_TAGVAR(hardcode_direct, $1)=no
5539 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5540 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5541 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5542 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5543 _LT_TAGVAR(hardcode_minus_L, $1)=no
5544 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5545 _LT_TAGVAR(inherit_rpath, $1)=no
5546 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5547 _LT_TAGVAR(module_cmds, $1)=
5548 _LT_TAGVAR(module_expsym_cmds, $1)=
5549 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5550 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5551 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5552 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5553 # include_expsyms should be a list of space-separated symbols to be *always*
5554 # included in the symbol list
5555 _LT_TAGVAR(include_expsyms, $1)=
5556 # exclude_expsyms can be an extended regexp of symbols to exclude
5557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5559 # as well as any symbol that contains `d'.
5560 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5562 # platforms (ab)use it in PIC code, but their linkers get confused if
5563 # the symbol is explicitly referenced. Since portable code cannot
5564 # rely on this symbol name, it's probably fine to never include it in
5565 # preloaded symbol tables.
5566 # Exclude shared library initialization/finalization symbols.
5567 dnl Note also adjust exclude_expsyms for C++ above.
5568 extract_expsyms_cmds=
5571 cygwin* | mingw* | pw32* | cegcc*)
5572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5573 # When not using gcc, we currently assume that we are using
5574 # Microsoft Visual C++.
5575 if test "$GCC" != yes; then
5580 # we just hope/assume this is gcc and not c89 (= MSVC++)
5588 _LT_TAGVAR(ld_shlibs, $1)=yes
5590 # On some targets, GNU ld is compatible enough with the native linker
5591 # that we're better off using the native interface for both.
5592 lt_use_gnu_ld_interface=no
5593 if test "$with_gnu_ld" = yes; then
5596 # The AIX port of GNU ld has always aspired to compatibility
5597 # with the native linker. However, as the warning in the GNU ld
5598 # block says, versions before 2.19.5* couldn't really create working
5599 # shared libraries, regardless of the interface used.
5600 case `$LD -v 2>&1` in
5601 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5602 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5603 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5605 lt_use_gnu_ld_interface=yes
5610 lt_use_gnu_ld_interface=yes
5615 if test "$lt_use_gnu_ld_interface" = yes; then
5616 # If archive_cmds runs LD, not CC, wlarc should be empty
5619 # Set some defaults for GNU ld with shared library support. These
5620 # are reset later if shared libraries are not supported. Putting them
5621 # here allows them to be overridden if necessary.
5622 runpath_var=LD_RUN_PATH
5623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5624 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5625 # ancient GNU ld didn't support --whole-archive et. al.
5626 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5627 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5629 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5631 supports_anon_versioning=no
5632 case `$LD -v 2>&1` in
5633 *GNU\ gold*) supports_anon_versioning=yes ;;
5634 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5637 *\ 2.11.*) ;; # other 2.11 versions
5638 *) supports_anon_versioning=yes ;;
5641 # See if GNU ld supports shared libraries.
5644 # On AIX/PPC, the GNU linker is very broken
5645 if test "$host_cpu" != ia64; then
5646 _LT_TAGVAR(ld_shlibs, $1)=no
5649 *** Warning: the GNU linker, at least up to release 2.19, is reported
5650 *** to be unable to reliably create shared libraries on AIX.
5651 *** Therefore, libtool is disabling shared libraries support. If you
5652 *** really care for shared libraries, you may want to install binutils
5653 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5654 *** You will then need to restart the configuration process.
5663 # see comment about AmigaOS4 .so support
5664 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5665 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5668 _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)'
5669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5670 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5679 # support --undefined. This deserves some investigation. FIXME
5680 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5682 _LT_TAGVAR(ld_shlibs, $1)=no
5686 cygwin* | mingw* | pw32* | cegcc*)
5687 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5688 # as there is no search path for DLLs.
5689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5691 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5692 _LT_TAGVAR(always_export_symbols, $1)=no
5693 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5694 _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'
5695 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5697 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5698 _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'
5699 # If the export-symbols file already is a .def file (1st line
5700 # is EXPORTS), use it as is; otherwise, prepend...
5701 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5702 cp $export_symbols $output_objdir/$soname.def;
5704 echo EXPORTS > $output_objdir/$soname.def;
5705 cat $export_symbols >> $output_objdir/$soname.def;
5707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5709 _LT_TAGVAR(ld_shlibs, $1)=no
5714 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5715 _LT_TAGVAR(link_all_deplibs, $1)=yes
5719 _LT_TAGVAR(hardcode_direct, $1)=no
5720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5721 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5722 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5724 # Instead, shared libraries are loaded at an image base (0x10000000 by
5725 # default) and relocated if they conflict, which is a slow very memory
5726 # consuming and fragmenting process. To avoid this, we pick a random,
5727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5728 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5729 _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'
5730 _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'
5733 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5735 if test "$host_os" = linux-dietlibc; then
5736 case $cc_basename in
5737 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5740 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5741 && test "$tmp_diet" = no
5743 tmp_addflag=' $pic_flag'
5744 tmp_sharedflag='-shared'
5745 case $cc_basename,$host_cpu in
5746 pgcc*) # Portland Group C compiler
5747 _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'
5748 tmp_addflag=' $pic_flag'
5750 pgf77* | pgf90* | pgf95* | pgfortran*)
5751 # Portland Group f77 and f90 compilers
5752 _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'
5753 tmp_addflag=' $pic_flag -Mnomain' ;;
5754 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5755 tmp_addflag=' -i_dynamic' ;;
5756 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5757 tmp_addflag=' -i_dynamic -nofor_main' ;;
5758 ifc* | ifort*) # Intel Fortran compiler
5759 tmp_addflag=' -nofor_main' ;;
5760 lf95*) # Lahey Fortran 8.1
5761 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5762 tmp_sharedflag='--shared' ;;
5763 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5764 tmp_sharedflag='-qmkshrobj'
5766 nvcc*) # Cuda Compiler Driver 2.2
5767 _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'
5768 _LT_TAGVAR(compiler_needs_object, $1)=yes
5771 case `$CC -V 2>&1 | sed 5q` in
5772 *Sun\ C*) # Sun C 5.9
5773 _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'
5774 _LT_TAGVAR(compiler_needs_object, $1)=yes
5775 tmp_sharedflag='-G' ;;
5776 *Sun\ F*) # Sun Fortran 8.3
5777 tmp_sharedflag='-G' ;;
5779 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5781 if test "x$supports_anon_versioning" = xyes; then
5782 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5784 echo "local: *; };" >> $output_objdir/$libname.ver~
5785 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5788 case $cc_basename in
5789 xlf* | bgf* | bgxlf* | mpixlf*)
5790 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5791 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5793 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5794 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5795 if test "x$supports_anon_versioning" = xyes; then
5796 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5798 echo "local: *; };" >> $output_objdir/$libname.ver~
5799 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5804 _LT_TAGVAR(ld_shlibs, $1)=no
5809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5810 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5814 _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'
5819 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5820 _LT_TAGVAR(ld_shlibs, $1)=no
5823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5824 *** create shared libraries on Solaris systems. Therefore, libtool
5825 *** is disabling shared libraries support. We urge you to upgrade GNU
5826 *** binutils to release 2.9.1 or newer. Another option is to modify
5827 *** your PATH or compiler configuration so that the native linker is
5828 *** used, and then restart.
5831 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5833 _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'
5835 _LT_TAGVAR(ld_shlibs, $1)=no
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5840 case `$LD -v 2>&1` in
5841 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5842 _LT_TAGVAR(ld_shlibs, $1)=no
5845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5846 *** reliably create shared libraries on SCO systems. Therefore, libtool
5847 *** is disabling shared libraries support. We urge you to upgrade GNU
5848 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5849 *** your PATH or compiler configuration so that the native linker is
5850 *** used, and then restart.
5855 # For security reasons, it is highly recommended that you always
5856 # use absolute paths for naming shared libraries, and exclude the
5857 # DT_RUNPATH tag from executables and libraries. But doing so
5858 # requires that you compile everything twice, which is a pain.
5859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5862 _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'
5864 _LT_TAGVAR(ld_shlibs, $1)=no
5871 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5873 _LT_TAGVAR(hardcode_direct, $1)=yes
5874 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5879 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5880 _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'
5882 _LT_TAGVAR(ld_shlibs, $1)=no
5887 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5890 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5891 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5894 # PORTME fill in a description of your system's linker (not GNU ld)
5897 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5898 _LT_TAGVAR(always_export_symbols, $1)=yes
5899 _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'
5900 # Note: this linker hardcodes the directories in LIBPATH if there
5901 # are no directories specified by -L.
5902 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5904 # Neither direct hardcoding nor static linking is supported with a
5906 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5911 if test "$host_cpu" = ia64; then
5912 # On IA64, the linker does run time linking by default, so we don't
5913 # have to do anything special.
5914 aix_use_runtimelinking=no
5915 exp_sym_flag='-Bexport'
5918 # If we're using GNU nm, then we don't want the "-C" option.
5919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5920 # Also, AIX nm treats weak defined symbols like other global
5921 # defined symbols, whereas GNU nm marks them as "W".
5922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5923 _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'
5925 _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'
5927 aix_use_runtimelinking=no
5929 # Test if we are trying to use run time linking or normal
5930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5931 # need to do runtime linking.
5932 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5933 for ld_flag in $LDFLAGS; do
5934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5935 aix_use_runtimelinking=yes
5942 exp_sym_flag='-bexport'
5943 no_entry_flag='-bnoentry'
5946 # When large executables or shared objects are built, AIX ld can
5947 # have problems creating the table of contents. If linking a library
5948 # or program results in "error TOC overflow" add -mminimal-toc to
5949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5952 _LT_TAGVAR(archive_cmds, $1)=''
5953 _LT_TAGVAR(hardcode_direct, $1)=yes
5954 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5955 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5956 _LT_TAGVAR(link_all_deplibs, $1)=yes
5957 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5959 if test "$GCC" = yes; then
5960 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5961 # We only want to do this on AIX 4.2 and lower, the check
5962 # below for broken collect2 doesn't work under 4.3+
5963 collect2name=`${CC} -print-prog-name=collect2`
5964 if test -f "$collect2name" &&
5965 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5967 # We have reworked collect2
5970 # We have old collect2
5971 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5972 # It fails to find uninstalled libraries when the uninstalled
5973 # path is not listed in the libpath. Setting hardcode_minus_L
5974 # to unsupported forces relinking
5975 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5977 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5981 shared_flag='-shared'
5982 if test "$aix_use_runtimelinking" = yes; then
5983 shared_flag="$shared_flag "'${wl}-G'
5987 if test "$host_cpu" = ia64; then
5988 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5989 # chokes on -Wl,-G. The following line is correct:
5992 if test "$aix_use_runtimelinking" = yes; then
5993 shared_flag='${wl}-G'
5995 shared_flag='${wl}-bM:SRE'
6000 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6001 # It seems that -bexpall does not export symbols beginning with
6002 # underscore (_), so it is better to generate a list of symbols to export.
6003 _LT_TAGVAR(always_export_symbols, $1)=yes
6004 if test "$aix_use_runtimelinking" = yes; then
6005 # Warning - without using the other runtime loading flags (-brtl),
6006 # -berok will link without error, but may produce a broken library.
6007 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6008 # Determine the default libpath from the value encoded in an
6010 _LT_SYS_MODULE_PATH_AIX([$1])
6011 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6012 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6014 if test "$host_cpu" = ia64; then
6015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6016 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6017 _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"
6019 # Determine the default libpath from the value encoded in an
6021 _LT_SYS_MODULE_PATH_AIX([$1])
6022 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6023 # Warning - without using the other run time loading flags,
6024 # -berok will link without error, but may produce a broken library.
6025 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6026 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6027 if test "$with_gnu_ld" = yes; then
6028 # We only use this code for GNU lds that support --whole-archive.
6029 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6031 # Exported symbols can be pulled into shared objects from archives
6032 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6034 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6035 # This is similar to how AIX traditionally builds its shared libraries.
6036 _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'
6044 # see comment about AmigaOS4 .so support
6045 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6046 _LT_TAGVAR(archive_expsym_cmds, $1)=''
6049 _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)'
6050 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6051 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6057 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6060 cygwin* | mingw* | pw32* | cegcc*)
6061 # When not using gcc, we currently assume that we are using
6062 # Microsoft Visual C++.
6063 # hardcode_libdir_flag_spec is actually meaningless, as there is
6064 # no search path for DLLs.
6065 case $cc_basename in
6068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6069 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6070 _LT_TAGVAR(always_export_symbols, $1)=yes
6071 _LT_TAGVAR(file_list_spec, $1)='@'
6072 # Tell ltmain to make .lib files, not .a files.
6074 # Tell ltmain to make .dll files, not .so files.
6076 # FIXME: Setting linknames here is a bad hack.
6077 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6078 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6079 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6081 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6083 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6085 # The linker will not automatically build a static lib if we build a DLL.
6086 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6087 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6088 _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'
6090 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6091 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6092 lt_tool_outputfile="@TOOL_OUTPUT@"~
6093 case $lt_outputfile in
6096 lt_outputfile="$lt_outputfile.exe"
6097 lt_tool_outputfile="$lt_tool_outputfile.exe"
6100 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6101 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6102 $RM "$lt_outputfile.manifest";
6106 # Assume MSVC wrapper
6107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6109 # Tell ltmain to make .lib files, not .a files.
6111 # Tell ltmain to make .dll files, not .so files.
6113 # FIXME: Setting linknames here is a bad hack.
6114 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6115 # The linker will automatically build a .lib file if we build a DLL.
6116 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6117 # FIXME: Should let the user specify the lib program.
6118 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6119 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6124 darwin* | rhapsody*)
6125 _LT_DARWIN_LINKER_FEATURES($1)
6129 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6131 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6135 _LT_TAGVAR(ld_shlibs, $1)=no
6138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6139 # support. Future versions do this automatically, but an explicit c++rt0.o
6140 # does not break anything, and helps significantly (at the cost of a little
6143 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6145 _LT_TAGVAR(hardcode_direct, $1)=yes
6146 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6151 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6152 _LT_TAGVAR(hardcode_direct, $1)=yes
6153 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6154 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6158 freebsd* | dragonfly*)
6159 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6160 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6161 _LT_TAGVAR(hardcode_direct, $1)=yes
6162 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6166 if test "$GCC" = yes; then
6167 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6169 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6173 _LT_TAGVAR(hardcode_direct, $1)=yes
6175 # hardcode_minus_L: Not really in the search PATH,
6176 # but as the default location of the library.
6177 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6178 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6182 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6183 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6185 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6187 if test "$with_gnu_ld" = no; then
6188 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6189 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6190 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6191 _LT_TAGVAR(hardcode_direct, $1)=yes
6192 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6193 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6194 # hardcode_minus_L: Not really in the search PATH,
6195 # but as the default location of the library.
6196 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6201 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6204 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6207 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6210 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6216 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6219 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6223 # Older versions of the 11.00 compiler do not understand -b yet
6224 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
6225 _LT_LINKER_OPTION([if $CC understands -b],
6226 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
6227 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6228 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
6229 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6233 if test "$with_gnu_ld" = no; then
6234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6235 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6239 _LT_TAGVAR(hardcode_direct, $1)=no
6240 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6243 _LT_TAGVAR(hardcode_direct, $1)=yes
6244 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6247 # hardcode_minus_L: Not really in the search PATH,
6248 # but as the default location of the library.
6249 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6255 irix5* | irix6* | nonstopux*)
6256 if test "$GCC" = yes; then
6257 _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'
6258 # Try to use the -exported_symbol ld option, if it does not
6259 # work, assume that -exports_file does not work either and
6260 # implicitly export all symbols.
6261 # This should be the same for all languages, so no per-tag cache variable.
6262 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6263 [lt_cv_irix_exported_symbol],
6264 [save_LDFLAGS="$LDFLAGS"
6265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6268 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6269 [C++], [[int foo (void) { return 0; }]],
6276 [lt_cv_irix_exported_symbol=yes],
6277 [lt_cv_irix_exported_symbol=no])
6278 LDFLAGS="$save_LDFLAGS"])
6279 if test "$lt_cv_irix_exported_symbol" = yes; then
6280 _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'
6283 _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'
6284 _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'
6286 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6287 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6288 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6289 _LT_TAGVAR(inherit_rpath, $1)=yes
6290 _LT_TAGVAR(link_all_deplibs, $1)=yes
6294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6295 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6297 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6299 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6300 _LT_TAGVAR(hardcode_direct, $1)=yes
6301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6305 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6306 _LT_TAGVAR(hardcode_direct, $1)=yes
6307 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6308 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6309 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6316 if test -f /usr/libexec/ld.so; then
6317 _LT_TAGVAR(hardcode_direct, $1)=yes
6318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6319 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6322 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6323 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6324 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6327 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6328 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6329 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6332 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6333 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6338 _LT_TAGVAR(ld_shlibs, $1)=no
6343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6344 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6345 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6346 _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'
6347 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6351 if test "$GCC" = yes; then
6352 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6353 _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'
6355 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6356 _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'
6358 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6360 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6363 osf4* | osf5*) # as osf3* with the addition of -msym flag
6364 if test "$GCC" = yes; then
6365 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6366 _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'
6367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6369 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6370 _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'
6371 _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~
6372 $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'
6374 # Both c and cxx compiler support -rpath directly
6375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6377 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6378 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6382 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6383 if test "$GCC" = yes; then
6385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6386 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6387 $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'
6389 case `$CC -V 2>&1` in
6392 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6393 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6398 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6399 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6400 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6405 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6407 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6409 # The compiler driver will combine and reorder linker options,
6410 # but understands `-z linker_flag'. GCC discards it without `$wl',
6411 # but is careful enough not to reorder.
6412 # Supported since Solaris 2.6 (maybe 2.5.1?)
6413 if test "$GCC" = yes; then
6414 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6416 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6420 _LT_TAGVAR(link_all_deplibs, $1)=yes
6424 if test "x$host_vendor" = xsequent; then
6425 # Use $CC to link under sequent, because it throws in some extra .o
6426 # files that make .init and .fini sections work.
6427 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6429 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6432 _LT_TAGVAR(hardcode_direct, $1)=yes
6433 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6434 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6438 case $host_vendor in
6440 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6441 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6444 ## LD is ld it makes a PLAMLIB
6445 ## CC just makes a GrossModule.
6446 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6447 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6448 _LT_TAGVAR(hardcode_direct, $1)=no
6451 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6452 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6455 runpath_var='LD_RUN_PATH'
6456 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6460 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6461 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6462 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6466 if test -d /usr/nec; then
6467 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6468 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6469 runpath_var=LD_RUN_PATH
6470 hardcode_runpath_var=yes
6471 _LT_TAGVAR(ld_shlibs, $1)=yes
6475 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6476 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6477 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6478 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6479 runpath_var='LD_RUN_PATH'
6481 if test "$GCC" = yes; then
6482 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6483 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6485 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6486 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6490 sysv5* | sco3.2v5* | sco5v6*)
6491 # Note: We can NOT use -z defs as we might desire, because we do not
6492 # link with -lc, and that would cause any symbols used from libc to
6493 # always be unresolved, which means just about no library would
6494 # ever link correctly. If we're not using GNU ld we use -z text
6495 # though, which does catch some bad symbols but isn't as heavy-handed
6497 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6498 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6499 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6500 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6502 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6503 _LT_TAGVAR(link_all_deplibs, $1)=yes
6504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6505 runpath_var='LD_RUN_PATH'
6507 if test "$GCC" = yes; then
6508 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6509 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6511 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6512 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6517 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6519 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6523 _LT_TAGVAR(ld_shlibs, $1)=no
6527 if test x$host_vendor = xsni; then
6529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6530 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6536 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6537 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6539 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6541 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6542 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6543 _LT_DECL([], [extract_expsyms_cmds], [2],
6544 [The commands to extract the exported symbol list from a shared archive])
6547 # Do we need to explicitly link libc?
6549 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6551 # Assume -lc should be added
6552 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6554 if test "$enable_shared" = yes && test "$GCC" = yes; then
6555 case $_LT_TAGVAR(archive_cmds, $1) in
6557 # FIXME: we may have to deal with multi-command sequences.
6560 # Test whether the compiler implicitly links with -lc since on some
6561 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6562 # to ld, don't add -lc before -lgcc.
6563 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6564 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6568 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6571 libobjs=conftest.$ac_objext
6573 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6574 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6580 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6581 _LT_TAGVAR(allow_undefined_flag, $1)=
6582 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6584 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6586 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6588 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6590 cat conftest.err 1>&5
6594 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6601 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6602 [Whether or not to add -lc for building shared libraries])
6603 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6604 [enable_shared_with_static_runtimes], [0],
6605 [Whether or not to disallow shared libs when runtime libs are static])
6606 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6607 [Compiler flag to allow reflexive dlopens])
6608 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6609 [Compiler flag to generate shared objects directly from archives])
6610 _LT_TAGDECL([], [compiler_needs_object], [1],
6611 [Whether the compiler copes with passing no objects directly])
6612 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6613 [Create an old-style archive from a shared archive])
6614 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6615 [Create a temporary old-style archive to link instead of a shared archive])
6616 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6617 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6618 _LT_TAGDECL([], [module_cmds], [2],
6619 [Commands used to build a loadable module if different from building
6621 _LT_TAGDECL([], [module_expsym_cmds], [2])
6622 _LT_TAGDECL([], [with_gnu_ld], [1],
6623 [Whether we are building with GNU ld or not])
6624 _LT_TAGDECL([], [allow_undefined_flag], [1],
6625 [Flag that allows shared libraries with undefined symbols to be built])
6626 _LT_TAGDECL([], [no_undefined_flag], [1],
6627 [Flag that enforces no undefined symbols])
6628 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6629 [Flag to hardcode $libdir into a binary during linking.
6630 This must work even if $libdir does not exist])
6631 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6632 [[If ld is used when linking, flag to hardcode $libdir into a binary
6633 during linking. This must work even if $libdir does not exist]])
6634 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6635 [Whether we need a single "-rpath" flag with a separated argument])
6636 _LT_TAGDECL([], [hardcode_direct], [0],
6637 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6638 DIR into the resulting binary])
6639 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6640 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6641 DIR into the resulting binary and the resulting library dependency is
6642 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6643 library is relocated])
6644 _LT_TAGDECL([], [hardcode_minus_L], [0],
6645 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6646 into the resulting binary])
6647 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6648 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6649 into the resulting binary])
6650 _LT_TAGDECL([], [hardcode_automatic], [0],
6651 [Set to "yes" if building a shared library automatically hardcodes DIR
6652 into the library and all subsequent libraries and executables linked
6654 _LT_TAGDECL([], [inherit_rpath], [0],
6655 [Set to yes if linker adds runtime paths of dependent libraries
6656 to runtime path list])
6657 _LT_TAGDECL([], [link_all_deplibs], [0],
6658 [Whether libtool must link a program against all its dependency libraries])
6659 _LT_TAGDECL([], [always_export_symbols], [0],
6660 [Set to "yes" if exported symbols are required])
6661 _LT_TAGDECL([], [export_symbols_cmds], [2],
6662 [The commands to list exported symbols])
6663 _LT_TAGDECL([], [exclude_expsyms], [1],
6664 [Symbols that should not be listed in the preloaded symbols])
6665 _LT_TAGDECL([], [include_expsyms], [1],
6666 [Symbols that must always be exported])
6667 _LT_TAGDECL([], [prelink_cmds], [2],
6668 [Commands necessary for linking programs (against libraries) with templates])
6669 _LT_TAGDECL([], [postlink_cmds], [2],
6670 [Commands necessary for finishing linking programs])
6671 _LT_TAGDECL([], [file_list_spec], [1],
6672 [Specify filename containing input files])
6673 dnl FIXME: Not yet implemented
6674 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6675 dnl [Compiler flag to generate thread safe objects])
6676 ])# _LT_LINKER_SHLIBS
6679 # _LT_LANG_C_CONFIG([TAG])
6680 # ------------------------
6681 # Ensure that the configuration variables for a C compiler are suitably
6682 # defined. These variables are subsequently used by _LT_CONFIG to write
6683 # the compiler configuration to `libtool'.
6684 m4_defun([_LT_LANG_C_CONFIG],
6685 [m4_require([_LT_DECL_EGREP])dnl
6689 # Source file extension for C test sources.
6692 # Object file extension for compiled C test sources.
6694 _LT_TAGVAR(objext, $1)=$objext
6696 # Code to be used in simple compile tests
6697 lt_simple_compile_test_code="int some_variable = 0;"
6699 # Code to be used in simple link tests
6700 lt_simple_link_test_code='int main(){return(0);}'
6703 # Save the default compiler, since it gets overwritten when the other
6704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6705 compiler_DEFAULT=$CC
6707 # save warnings/boilerplate of simple test code
6708 _LT_COMPILER_BOILERPLATE
6709 _LT_LINKER_BOILERPLATE
6711 if test -n "$compiler"; then
6712 _LT_COMPILER_NO_RTTI($1)
6713 _LT_COMPILER_PIC($1)
6714 _LT_COMPILER_C_O($1)
6715 _LT_COMPILER_FILE_LOCKS($1)
6716 _LT_LINKER_SHLIBS($1)
6717 _LT_SYS_DYNAMIC_LINKER($1)
6718 _LT_LINKER_HARDCODE_LIBPATH($1)
6722 # Report which library types will actually be built
6723 AC_MSG_CHECKING([if libtool supports shared libraries])
6724 AC_MSG_RESULT([$can_build_shared])
6726 AC_MSG_CHECKING([whether to build shared libraries])
6727 test "$can_build_shared" = "no" && enable_shared=no
6729 # On AIX, shared libraries and static libraries use the same namespace, and
6730 # are all built from PIC.
6733 test "$enable_shared" = yes && enable_static=no
6734 if test -n "$RANLIB"; then
6735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6736 postinstall_cmds='$RANLIB $lib'
6741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6742 test "$enable_shared" = yes && enable_static=no
6746 AC_MSG_RESULT([$enable_shared])
6748 AC_MSG_CHECKING([whether to build static libraries])
6749 # Make sure either enable_shared or enable_static is yes.
6750 test "$enable_shared" = yes || enable_static=yes
6751 AC_MSG_RESULT([$enable_static])
6757 ])# _LT_LANG_C_CONFIG
6760 # _LT_LANG_CXX_CONFIG([TAG])
6761 # --------------------------
6762 # Ensure that the configuration variables for a C++ compiler are suitably
6763 # defined. These variables are subsequently used by _LT_CONFIG to write
6764 # the compiler configuration to `libtool'.
6765 m4_defun([_LT_LANG_CXX_CONFIG],
6766 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6767 m4_require([_LT_DECL_EGREP])dnl
6768 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6769 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6770 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6771 (test "X$CXX" != "Xg++"))) ; then
6774 _lt_caught_CXX_error=yes
6778 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6779 _LT_TAGVAR(allow_undefined_flag, $1)=
6780 _LT_TAGVAR(always_export_symbols, $1)=no
6781 _LT_TAGVAR(archive_expsym_cmds, $1)=
6782 _LT_TAGVAR(compiler_needs_object, $1)=no
6783 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6784 _LT_TAGVAR(hardcode_direct, $1)=no
6785 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6786 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6787 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6788 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6789 _LT_TAGVAR(hardcode_minus_L, $1)=no
6790 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6791 _LT_TAGVAR(hardcode_automatic, $1)=no
6792 _LT_TAGVAR(inherit_rpath, $1)=no
6793 _LT_TAGVAR(module_cmds, $1)=
6794 _LT_TAGVAR(module_expsym_cmds, $1)=
6795 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6796 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6797 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6798 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6799 _LT_TAGVAR(no_undefined_flag, $1)=
6800 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6801 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6803 # Source file extension for C++ test sources.
6806 # Object file extension for compiled C++ test sources.
6808 _LT_TAGVAR(objext, $1)=$objext
6810 # No sense in running all these tests if we already determined that
6811 # the CXX compiler isn't working. Some variables (like enable_shared)
6812 # are currently assumed to apply to all compilers on this platform,
6813 # and will be corrupted by setting them based on a non-working compiler.
6814 if test "$_lt_caught_CXX_error" != yes; then
6815 # Code to be used in simple compile tests
6816 lt_simple_compile_test_code="int some_variable = 0;"
6818 # Code to be used in simple link tests
6819 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6824 # save warnings/boilerplate of simple test code
6825 _LT_COMPILER_BOILERPLATE
6826 _LT_LINKER_BOILERPLATE
6828 # Allow CC to be a program name with arguments.
6830 lt_save_CFLAGS=$CFLAGS
6834 lt_save_with_gnu_ld=$with_gnu_ld
6835 lt_save_path_LD=$lt_cv_path_LD
6836 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6837 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6839 $as_unset lt_cv_prog_gnu_ld
6841 if test -n "${lt_cv_path_LDCXX+set}"; then
6842 lt_cv_path_LD=$lt_cv_path_LDCXX
6844 $as_unset lt_cv_path_LD
6846 test -z "${LDCXX+set}" || LD=$LDCXX
6850 _LT_TAGVAR(compiler, $1)=$CC
6851 _LT_CC_BASENAME([$compiler])
6853 if test -n "$compiler"; then
6854 # We don't want -fno-exception when compiling C++ code, so set the
6855 # no_builtin_flag separately
6856 if test "$GXX" = yes; then
6857 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6859 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6862 if test "$GXX" = yes; then
6863 # Set up default GNU C++ configuration
6867 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6868 # archiving commands below assume that GNU ld is being used.
6869 if test "$with_gnu_ld" = yes; then
6870 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871 _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'
6873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6874 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6876 # If archive_cmds runs LD, not CC, wlarc should be empty
6877 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6878 # investigate it a little bit more. (MM)
6881 # ancient GNU ld didn't support --whole-archive et. al.
6882 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6883 $GREP 'no-whole-archive' > /dev/null; then
6884 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6886 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6892 # A generic and very simple default shared library creation
6893 # command for GNU C++ for the case where it uses the native
6894 # linker, instead of GNU ld. If possible, this setting should
6895 # overridden to take advantage of the native linker features on
6896 # the platform it is being used on.
6897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6900 # Commands to make compiler produce verbose output that lists
6901 # what "hidden" libraries, object files and flags are used when
6902 # linking a shared library.
6903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6911 # PORTME: fill in a description of your system's C++ link characteristics
6912 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6913 _LT_TAGVAR(ld_shlibs, $1)=yes
6916 # FIXME: insert proper C++ library support
6917 _LT_TAGVAR(ld_shlibs, $1)=no
6920 if test "$host_cpu" = ia64; then
6921 # On IA64, the linker does run time linking by default, so we don't
6922 # have to do anything special.
6923 aix_use_runtimelinking=no
6924 exp_sym_flag='-Bexport'
6927 aix_use_runtimelinking=no
6929 # Test if we are trying to use run time linking or normal
6930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6931 # need to do runtime linking.
6932 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6933 for ld_flag in $LDFLAGS; do
6936 aix_use_runtimelinking=yes
6944 exp_sym_flag='-bexport'
6945 no_entry_flag='-bnoentry'
6948 # When large executables or shared objects are built, AIX ld can
6949 # have problems creating the table of contents. If linking a library
6950 # or program results in "error TOC overflow" add -mminimal-toc to
6951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6954 _LT_TAGVAR(archive_cmds, $1)=''
6955 _LT_TAGVAR(hardcode_direct, $1)=yes
6956 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6957 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6958 _LT_TAGVAR(link_all_deplibs, $1)=yes
6959 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6961 if test "$GXX" = yes; then
6962 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6963 # We only want to do this on AIX 4.2 and lower, the check
6964 # below for broken collect2 doesn't work under 4.3+
6965 collect2name=`${CC} -print-prog-name=collect2`
6966 if test -f "$collect2name" &&
6967 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6969 # We have reworked collect2
6972 # We have old collect2
6973 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6974 # It fails to find uninstalled libraries when the uninstalled
6975 # path is not listed in the libpath. Setting hardcode_minus_L
6976 # to unsupported forces relinking
6977 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6979 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6982 shared_flag='-shared'
6983 if test "$aix_use_runtimelinking" = yes; then
6984 shared_flag="$shared_flag "'${wl}-G'
6988 if test "$host_cpu" = ia64; then
6989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6990 # chokes on -Wl,-G. The following line is correct:
6993 if test "$aix_use_runtimelinking" = yes; then
6994 shared_flag='${wl}-G'
6996 shared_flag='${wl}-bM:SRE'
7001 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7002 # It seems that -bexpall does not export symbols beginning with
7003 # underscore (_), so it is better to generate a list of symbols to
7005 _LT_TAGVAR(always_export_symbols, $1)=yes
7006 if test "$aix_use_runtimelinking" = yes; then
7007 # Warning - without using the other runtime loading flags (-brtl),
7008 # -berok will link without error, but may produce a broken library.
7009 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7010 # Determine the default libpath from the value encoded in an empty
7012 _LT_SYS_MODULE_PATH_AIX([$1])
7013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7015 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7017 if test "$host_cpu" = ia64; then
7018 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7019 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7020 _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"
7022 # Determine the default libpath from the value encoded in an
7024 _LT_SYS_MODULE_PATH_AIX([$1])
7025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7026 # Warning - without using the other run time loading flags,
7027 # -berok will link without error, but may produce a broken library.
7028 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7029 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7030 if test "$with_gnu_ld" = yes; then
7031 # We only use this code for GNU lds that support --whole-archive.
7032 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7034 # Exported symbols can be pulled into shared objects from archives
7035 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7037 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7038 # This is similar to how AIX traditionally builds its shared
7040 _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'
7046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7047 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7049 # support --undefined. This deserves some investigation. FIXME
7050 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052 _LT_TAGVAR(ld_shlibs, $1)=no
7057 case $cc_basename in
7059 # FIXME: insert proper C++ library support
7060 _LT_TAGVAR(ld_shlibs, $1)=no
7065 cygwin* | mingw* | pw32* | cegcc*)
7066 case $GXX,$cc_basename in
7069 # hardcode_libdir_flag_spec is actually meaningless, as there is
7070 # no search path for DLLs.
7071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7072 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7073 _LT_TAGVAR(always_export_symbols, $1)=yes
7074 _LT_TAGVAR(file_list_spec, $1)='@'
7075 # Tell ltmain to make .lib files, not .a files.
7077 # Tell ltmain to make .dll files, not .so files.
7079 # FIXME: Setting linknames here is a bad hack.
7080 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7081 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7082 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7084 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7086 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7088 # The linker will not automatically build a static lib if we build a DLL.
7089 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7090 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7092 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7093 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7094 lt_tool_outputfile="@TOOL_OUTPUT@"~
7095 case $lt_outputfile in
7098 lt_outputfile="$lt_outputfile.exe"
7099 lt_tool_outputfile="$lt_tool_outputfile.exe"
7102 func_to_tool_file "$lt_outputfile"~
7103 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7104 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7105 $RM "$lt_outputfile.manifest";
7110 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7111 # as there is no search path for DLLs.
7112 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7113 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7114 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7115 _LT_TAGVAR(always_export_symbols, $1)=no
7116 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7118 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7119 _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'
7120 # If the export-symbols file already is a .def file (1st line
7121 # is EXPORTS), use it as is; otherwise, prepend...
7122 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7123 cp $export_symbols $output_objdir/$soname.def;
7125 echo EXPORTS > $output_objdir/$soname.def;
7126 cat $export_symbols >> $output_objdir/$soname.def;
7128 $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'
7130 _LT_TAGVAR(ld_shlibs, $1)=no
7135 darwin* | rhapsody*)
7136 _LT_DARWIN_LINKER_FEATURES($1)
7140 case $cc_basename in
7142 # FIXME: insert proper C++ library support
7143 _LT_TAGVAR(ld_shlibs, $1)=no
7146 # Green Hills C++ Compiler
7147 # FIXME: insert proper C++ library support
7148 _LT_TAGVAR(ld_shlibs, $1)=no
7151 # FIXME: insert proper C++ library support
7152 _LT_TAGVAR(ld_shlibs, $1)=no
7158 # C++ shared libraries reported to be fairly broken before
7160 _LT_TAGVAR(ld_shlibs, $1)=no
7164 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7167 freebsd* | dragonfly*)
7168 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7170 _LT_TAGVAR(ld_shlibs, $1)=yes
7177 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7178 _LT_TAGVAR(link_all_deplibs, $1)=yes
7182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7183 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7184 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7185 _LT_TAGVAR(hardcode_direct, $1)=yes
7186 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7187 # but as the default
7188 # location of the library.
7190 case $cc_basename in
7192 # FIXME: insert proper C++ library support
7193 _LT_TAGVAR(ld_shlibs, $1)=no
7196 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7197 # Commands to make compiler produce verbose output that lists
7198 # what "hidden" libraries, object files and flags are used when
7199 # linking a shared library.
7201 # There doesn't appear to be a way to prevent this compiler from
7202 # explicitly linking system object files so we need to strip them
7203 # from the output so that they don't get included in the library
7205 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"'
7208 if test "$GXX" = yes; then
7209 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7211 # FIXME: insert proper C++ library support
7212 _LT_TAGVAR(ld_shlibs, $1)=no
7219 if test $with_gnu_ld = no; then
7220 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7221 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7227 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7233 _LT_TAGVAR(hardcode_direct, $1)=no
7234 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7237 _LT_TAGVAR(hardcode_direct, $1)=yes
7238 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7239 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7240 # but as the default
7241 # location of the library.
7245 case $cc_basename in
7247 # FIXME: insert proper C++ library support
7248 _LT_TAGVAR(ld_shlibs, $1)=no
7253 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7256 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7259 _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'
7262 # Commands to make compiler produce verbose output that lists
7263 # what "hidden" libraries, object files and flags are used when
7264 # linking a shared library.
7266 # There doesn't appear to be a way to prevent this compiler from
7267 # explicitly linking system object files so we need to strip them
7268 # from the output so that they don't get included in the library
7270 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"'
7273 if test "$GXX" = yes; then
7274 if test $with_gnu_ld = no; then
7277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7280 _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'
7283 _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'
7288 # FIXME: insert proper C++ library support
7289 _LT_TAGVAR(ld_shlibs, $1)=no
7296 _LT_TAGVAR(hardcode_direct, $1)=no
7297 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7298 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7299 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7301 # Instead, shared libraries are loaded at an image base (0x10000000 by
7302 # default) and relocated if they conflict, which is a slow very memory
7303 # consuming and fragmenting process. To avoid this, we pick a random,
7304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7306 _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'
7307 _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'
7310 case $cc_basename in
7313 _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'
7315 # Archives containing C++ object files must be created using
7316 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7317 # necessary to make sure instantiated templates are included
7319 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7322 if test "$GXX" = yes; then
7323 if test "$with_gnu_ld" = no; then
7324 _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'
7326 _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'
7329 _LT_TAGVAR(link_all_deplibs, $1)=yes
7332 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7333 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7334 _LT_TAGVAR(inherit_rpath, $1)=yes
7337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7338 case $cc_basename in
7340 # Kuck and Associates, Inc. (KAI) C++ Compiler
7342 # KCC will only create a shared library if the output file
7343 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7344 # to its proper name (with version) after linking.
7345 _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'
7346 _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'
7347 # Commands to make compiler produce verbose output that lists
7348 # what "hidden" libraries, object files and flags are used when
7349 # linking a shared library.
7351 # There doesn't appear to be a way to prevent this compiler from
7352 # explicitly linking system object files so we need to strip them
7353 # from the output so that they don't get included in the library
7355 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"'
7357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7358 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7360 # Archives containing C++ object files must be created using
7361 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7362 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7367 # version 8.0 and above of icpc choke on multiply defined symbols
7368 # if we add $predep_objects and $postdep_objects, however 7.1 and
7369 # earlier do not add the objects themselves.
7370 case `$CC -V 2>&1` in
7372 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7373 _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'
7375 *) # Version 8.0 or newer
7378 ia64*) tmp_idyn=' -i_dynamic';;
7380 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7381 _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'
7384 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7386 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7387 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7390 # Portland Group C++ compiler
7392 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7393 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7395 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7396 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7397 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7399 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7400 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7402 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7404 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7405 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7406 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7408 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7409 $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'
7411 *) # Version 6 and above use weak symbols
7412 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7413 _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'
7417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7418 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7419 _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'
7423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7424 _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'
7426 runpath_var=LD_RUN_PATH
7427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7428 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7430 # Commands to make compiler produce verbose output that lists
7431 # what "hidden" libraries, object files and flags are used when
7432 # linking a shared library.
7434 # There doesn't appear to be a way to prevent this compiler from
7435 # explicitly linking system object files so we need to strip them
7436 # from the output so that they don't get included in the library
7438 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'
7440 xl* | mpixl* | bgxl*)
7441 # IBM XL 8.0 on PPC, with GNU ld
7442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7443 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7444 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7445 if test "x$supports_anon_versioning" = xyes; then
7446 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7448 echo "local: *; };" >> $output_objdir/$libname.ver~
7449 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7453 case `$CC -V 2>&1 | sed 5q` in
7456 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7457 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7458 _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'
7459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7460 _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'
7461 _LT_TAGVAR(compiler_needs_object, $1)=yes
7463 # Not sure whether something based on
7464 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7466 output_verbose_link_cmd='func_echo_all'
7468 # Archives containing C++ object files must be created using
7469 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7470 # necessary to make sure instantiated templates are included
7472 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7480 # FIXME: insert proper C++ library support
7481 _LT_TAGVAR(ld_shlibs, $1)=no
7485 # FIXME: insert proper C++ library support
7486 _LT_TAGVAR(ld_shlibs, $1)=no
7490 case $cc_basename in
7492 # FIXME: insert proper C++ library support
7493 _LT_TAGVAR(ld_shlibs, $1)=no
7496 # FIXME: insert proper C++ library support
7497 _LT_TAGVAR(ld_shlibs, $1)=no
7503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7504 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7506 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7507 _LT_TAGVAR(hardcode_direct, $1)=yes
7508 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7510 # Workaround some broken pre-1.5 toolchains
7511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7515 _LT_TAGVAR(ld_shlibs, $1)=yes
7519 # C++ shared libraries are fairly broken
7520 _LT_TAGVAR(ld_shlibs, $1)=no
7524 if test -f /usr/libexec/ld.so; then
7525 _LT_TAGVAR(hardcode_direct, $1)=yes
7526 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7527 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7528 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7529 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7531 _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'
7532 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7533 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7535 output_verbose_link_cmd=func_echo_all
7537 _LT_TAGVAR(ld_shlibs, $1)=no
7541 osf3* | osf4* | osf5*)
7542 case $cc_basename in
7544 # Kuck and Associates, Inc. (KAI) C++ Compiler
7546 # KCC will only create a shared library if the output file
7547 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7548 # to its proper name (with version) after linking.
7549 _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'
7551 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7552 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7554 # Archives containing C++ object files must be created using
7555 # the KAI C++ compiler.
7557 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7558 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7562 # Rational C++ 2.4.1
7563 # FIXME: insert proper C++ library support
7564 _LT_TAGVAR(ld_shlibs, $1)=no
7569 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7570 _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'
7571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7574 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7575 _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'
7576 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7577 echo "-hidden">> $lib.exp~
7578 $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~
7580 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7584 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7586 # Commands to make compiler produce verbose output that lists
7587 # what "hidden" libraries, object files and flags are used when
7588 # linking a shared library.
7590 # There doesn't appear to be a way to prevent this compiler from
7591 # explicitly linking system object files so we need to strip them
7592 # from the output so that they don't get included in the library
7594 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"'
7597 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7598 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7601 _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'
7604 _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'
7608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7609 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7611 # Commands to make compiler produce verbose output that lists
7612 # what "hidden" libraries, object files and flags are used when
7613 # linking a shared library.
7614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7617 # FIXME: insert proper C++ library support
7618 _LT_TAGVAR(ld_shlibs, $1)=no
7625 # FIXME: insert proper C++ library support
7626 _LT_TAGVAR(ld_shlibs, $1)=no
7630 case $cc_basename in
7633 # FIXME: insert proper C++ library support
7634 _LT_TAGVAR(ld_shlibs, $1)=no
7638 # FIXME: insert proper C++ library support
7639 _LT_TAGVAR(ld_shlibs, $1)=no
7642 # FIXME: insert proper C++ library support
7643 _LT_TAGVAR(ld_shlibs, $1)=no
7649 case $cc_basename in
7651 # Sun C++ 4.2, 5.x and Centerline C++
7652 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7653 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7654 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7655 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7656 $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'
7658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7659 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7661 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7663 # The compiler driver will combine and reorder linker options,
7664 # but understands `-z linker_flag'.
7665 # Supported since Solaris 2.6 (maybe 2.5.1?)
7666 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7669 _LT_TAGVAR(link_all_deplibs, $1)=yes
7671 output_verbose_link_cmd='func_echo_all'
7673 # Archives containing C++ object files must be created using
7674 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7675 # necessary to make sure instantiated templates are included
7677 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7680 # Green Hills C++ Compiler
7681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7683 # The C++ compiler must be used to create the archive.
7684 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7687 # GNU C++ compiler with Solaris linker
7688 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7689 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7690 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7691 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7692 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7693 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7695 # Commands to make compiler produce verbose output that lists
7696 # what "hidden" libraries, object files and flags are used when
7697 # linking a shared library.
7698 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7700 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7702 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7703 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7704 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7706 # Commands to make compiler produce verbose output that lists
7707 # what "hidden" libraries, object files and flags are used when
7708 # linking a shared library.
7709 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7712 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7714 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7716 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7725 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7726 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7727 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7728 runpath_var='LD_RUN_PATH'
7730 case $cc_basename in
7732 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7733 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7736 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7737 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7742 sysv5* | sco3.2v5* | sco5v6*)
7743 # Note: We can NOT use -z defs as we might desire, because we do not
7744 # link with -lc, and that would cause any symbols used from libc to
7745 # always be unresolved, which means just about no library would
7746 # ever link correctly. If we're not using GNU ld we use -z text
7747 # though, which does catch some bad symbols but isn't as heavy-handed
7749 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7750 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7751 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7752 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7754 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7755 _LT_TAGVAR(link_all_deplibs, $1)=yes
7756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7757 runpath_var='LD_RUN_PATH'
7759 case $cc_basename in
7761 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7763 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7764 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7765 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7766 '"$_LT_TAGVAR(reload_cmds, $1)"
7769 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7770 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7776 case $cc_basename in
7778 # NonStop-UX NCC 3.20
7779 # FIXME: insert proper C++ library support
7780 _LT_TAGVAR(ld_shlibs, $1)=no
7783 # FIXME: insert proper C++ library support
7784 _LT_TAGVAR(ld_shlibs, $1)=no
7790 # FIXME: insert proper C++ library support
7791 _LT_TAGVAR(ld_shlibs, $1)=no
7795 # FIXME: insert proper C++ library support
7796 _LT_TAGVAR(ld_shlibs, $1)=no
7800 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7801 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7803 _LT_TAGVAR(GCC, $1)="$GXX"
7804 _LT_TAGVAR(LD, $1)="$LD"
7807 ## There is no encapsulation within the following macros, do not change
7808 ## the running order or otherwise move them around unless you know exactly
7809 ## what you are doing...
7810 _LT_SYS_HIDDEN_LIBDEPS($1)
7811 _LT_COMPILER_PIC($1)
7812 _LT_COMPILER_C_O($1)
7813 _LT_COMPILER_FILE_LOCKS($1)
7814 _LT_LINKER_SHLIBS($1)
7815 _LT_SYS_DYNAMIC_LINKER($1)
7816 _LT_LINKER_HARDCODE_LIBPATH($1)
7819 fi # test -n "$compiler"
7822 CFLAGS=$lt_save_CFLAGS
7826 with_gnu_ld=$lt_save_with_gnu_ld
7827 lt_cv_path_LDCXX=$lt_cv_path_LD
7828 lt_cv_path_LD=$lt_save_path_LD
7829 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7830 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7831 fi # test "$_lt_caught_CXX_error" != yes
7834 ])# _LT_LANG_CXX_CONFIG
7837 # _LT_FUNC_STRIPNAME_CNF
7838 # ----------------------
7839 # func_stripname_cnf prefix suffix name
7840 # strip PREFIX and SUFFIX off of NAME.
7841 # PREFIX and SUFFIX must not contain globbing or regex special
7842 # characters, hashes, percent signs, but SUFFIX may contain a leading
7843 # dot (in which case that matches only a dot).
7845 # This function is identical to the (non-XSI) version of func_stripname,
7846 # except this one can be used by m4 code that may be executed by configure,
7847 # rather than the libtool script.
7848 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7849 AC_REQUIRE([_LT_DECL_SED])
7850 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7851 func_stripname_cnf ()
7854 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7855 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7857 } # func_stripname_cnf
7858 ])# _LT_FUNC_STRIPNAME_CNF
7860 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7861 # ---------------------------------
7862 # Figure out "hidden" library dependencies from verbose
7863 # compiler output when linking a shared library.
7864 # Parse the compiler output and extract the necessary
7865 # objects, libraries and library flags.
7866 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7867 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7868 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7869 # Dependencies to place before and after the object being linked:
7870 _LT_TAGVAR(predep_objects, $1)=
7871 _LT_TAGVAR(postdep_objects, $1)=
7872 _LT_TAGVAR(predeps, $1)=
7873 _LT_TAGVAR(postdeps, $1)=
7874 _LT_TAGVAR(compiler_lib_search_path, $1)=
7876 dnl we can't use the lt_simple_compile_test_code here,
7877 dnl because it contains code intended for an executable,
7878 dnl not a library. It's possible we should let each
7879 dnl tag define a new lt_????_link_test_code variable,
7880 dnl but it's only used here...
7881 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7883 void foo (void) { a = 0; }
7885 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7889 Foo (void) { a = 0; }
7894 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7902 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7910 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7913 public void bar (void) {
7920 _lt_libdeps_save_CFLAGS=$CFLAGS
7921 case "$CC $CFLAGS " in #(
7922 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7923 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7926 dnl Parse the compiler output and extract the necessary
7927 dnl objects, libraries and library flags.
7928 if AC_TRY_EVAL(ac_compile); then
7929 # Parse the compiler output and extract the necessary
7930 # objects, libraries and library flags.
7932 # Sentinel used to keep track of whether or not we are before
7933 # the conftest object file.
7934 pre_test_object_deps_done=no
7936 for p in `eval "$output_verbose_link_cmd"`; do
7940 # Some compilers place space between "-{L,R}" and the path.
7942 if test $p = "-L" ||
7943 test $p = "-R"; then
7948 # Expand the sysroot to ease extracting the directories later.
7949 if test -z "$prev"; then
7951 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7952 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7953 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7957 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7959 if test "$pre_test_object_deps_done" = no; then
7962 # Internal compiler library paths should come after those
7963 # provided the user. The postdeps already come after the
7964 # user supplied libs so there is no need to process them.
7965 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7966 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7968 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7971 # The "-l" case would never come before the object being
7972 # linked, so don't bother handling this case.
7975 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7976 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7978 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7984 *.lto.$objext) ;; # Ignore GCC LTO objects
7986 # This assumes that the test object file only shows up
7987 # once in the compiler output.
7988 if test "$p" = "conftest.$objext"; then
7989 pre_test_object_deps_done=yes
7993 if test "$pre_test_object_deps_done" = no; then
7994 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7995 _LT_TAGVAR(predep_objects, $1)="$p"
7997 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
8000 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
8001 _LT_TAGVAR(postdep_objects, $1)="$p"
8003 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
8008 *) ;; # Ignore the rest.
8016 echo "libtool.m4: error: problem compiling $1 test program"
8019 $RM -f confest.$objext
8020 CFLAGS=$_lt_libdeps_save_CFLAGS
8022 # PORTME: override above test on systems where it is broken
8026 # Interix 3.5 installs completely hosed .la files for C++, so rather than
8027 # hack all around it, let's just trust "g++" to DTRT.
8028 _LT_TAGVAR(predep_objects,$1)=
8029 _LT_TAGVAR(postdep_objects,$1)=
8030 _LT_TAGVAR(postdeps,$1)=
8034 case `$CC -V 2>&1 | sed 5q` in
8038 # The more standards-conforming stlport4 library is
8039 # incompatible with the Cstd library. Avoid specifying
8040 # it if it's in CXXFLAGS. Ignore libCrun as
8041 # -library=stlport4 depends on it.
8042 case " $CXX $CXXFLAGS " in
8043 *" -library=stlport4 "*)
8044 solaris_use_stlport4=yes
8048 if test "$solaris_use_stlport4" != yes; then
8049 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8056 case $cc_basename in
8058 # The more standards-conforming stlport4 library is
8059 # incompatible with the Cstd library. Avoid specifying
8060 # it if it's in CXXFLAGS. Ignore libCrun as
8061 # -library=stlport4 depends on it.
8062 case " $CXX $CXXFLAGS " in
8063 *" -library=stlport4 "*)
8064 solaris_use_stlport4=yes
8068 # Adding this requires a known-good setup of shared libraries for
8069 # Sun compiler versions before 5.6, else PIC objects from an old
8070 # archive will be linked into the output, leading to subtle bugs.
8071 if test "$solaris_use_stlport4" != yes; then
8072 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
8080 case " $_LT_TAGVAR(postdeps, $1) " in
8081 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8083 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
8084 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
8085 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
8087 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
8088 [The directories searched by this compiler when creating a shared library])
8089 _LT_TAGDECL([], [predep_objects], [1],
8090 [Dependencies to place before and after the objects being linked to
8091 create a shared library])
8092 _LT_TAGDECL([], [postdep_objects], [1])
8093 _LT_TAGDECL([], [predeps], [1])
8094 _LT_TAGDECL([], [postdeps], [1])
8095 _LT_TAGDECL([], [compiler_lib_search_path], [1],
8096 [The library search path used internally by the compiler when linking
8098 ])# _LT_SYS_HIDDEN_LIBDEPS
8101 # _LT_LANG_F77_CONFIG([TAG])
8102 # --------------------------
8103 # Ensure that the configuration variables for a Fortran 77 compiler are
8104 # suitably defined. These variables are subsequently used by _LT_CONFIG
8105 # to write the compiler configuration to `libtool'.
8106 m4_defun([_LT_LANG_F77_CONFIG],
8107 [AC_LANG_PUSH(Fortran 77)
8108 if test -z "$F77" || test "X$F77" = "Xno"; then
8112 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8113 _LT_TAGVAR(allow_undefined_flag, $1)=
8114 _LT_TAGVAR(always_export_symbols, $1)=no
8115 _LT_TAGVAR(archive_expsym_cmds, $1)=
8116 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8117 _LT_TAGVAR(hardcode_direct, $1)=no
8118 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8119 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8120 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8121 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8122 _LT_TAGVAR(hardcode_minus_L, $1)=no
8123 _LT_TAGVAR(hardcode_automatic, $1)=no
8124 _LT_TAGVAR(inherit_rpath, $1)=no
8125 _LT_TAGVAR(module_cmds, $1)=
8126 _LT_TAGVAR(module_expsym_cmds, $1)=
8127 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8128 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8129 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8130 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8131 _LT_TAGVAR(no_undefined_flag, $1)=
8132 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8133 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8135 # Source file extension for f77 test sources.
8138 # Object file extension for compiled f77 test sources.
8140 _LT_TAGVAR(objext, $1)=$objext
8142 # No sense in running all these tests if we already determined that
8143 # the F77 compiler isn't working. Some variables (like enable_shared)
8144 # are currently assumed to apply to all compilers on this platform,
8145 # and will be corrupted by setting them based on a non-working compiler.
8146 if test "$_lt_disable_F77" != yes; then
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="\
8154 # Code to be used in simple link tests
8155 lt_simple_link_test_code="\
8160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8163 # save warnings/boilerplate of simple test code
8164 _LT_COMPILER_BOILERPLATE
8165 _LT_LINKER_BOILERPLATE
8167 # Allow CC to be a program name with arguments.
8170 lt_save_CFLAGS=$CFLAGS
8174 _LT_TAGVAR(compiler, $1)=$CC
8175 _LT_CC_BASENAME([$compiler])
8177 if test -n "$compiler"; then
8178 AC_MSG_CHECKING([if libtool supports shared libraries])
8179 AC_MSG_RESULT([$can_build_shared])
8181 AC_MSG_CHECKING([whether to build shared libraries])
8182 test "$can_build_shared" = "no" && enable_shared=no
8184 # On AIX, shared libraries and static libraries use the same namespace, and
8185 # are all built from PIC.
8188 test "$enable_shared" = yes && enable_static=no
8189 if test -n "$RANLIB"; then
8190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8191 postinstall_cmds='$RANLIB $lib'
8195 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8196 test "$enable_shared" = yes && enable_static=no
8200 AC_MSG_RESULT([$enable_shared])
8202 AC_MSG_CHECKING([whether to build static libraries])
8203 # Make sure either enable_shared or enable_static is yes.
8204 test "$enable_shared" = yes || enable_static=yes
8205 AC_MSG_RESULT([$enable_static])
8207 _LT_TAGVAR(GCC, $1)="$G77"
8208 _LT_TAGVAR(LD, $1)="$LD"
8211 ## There is no encapsulation within the following macros, do not change
8212 ## the running order or otherwise move them around unless you know exactly
8213 ## what you are doing...
8214 _LT_COMPILER_PIC($1)
8215 _LT_COMPILER_C_O($1)
8216 _LT_COMPILER_FILE_LOCKS($1)
8217 _LT_LINKER_SHLIBS($1)
8218 _LT_SYS_DYNAMIC_LINKER($1)
8219 _LT_LINKER_HARDCODE_LIBPATH($1)
8222 fi # test -n "$compiler"
8226 CFLAGS="$lt_save_CFLAGS"
8227 fi # test "$_lt_disable_F77" != yes
8230 ])# _LT_LANG_F77_CONFIG
8233 # _LT_LANG_FC_CONFIG([TAG])
8234 # -------------------------
8235 # Ensure that the configuration variables for a Fortran compiler are
8236 # suitably defined. These variables are subsequently used by _LT_CONFIG
8237 # to write the compiler configuration to `libtool'.
8238 m4_defun([_LT_LANG_FC_CONFIG],
8239 [AC_LANG_PUSH(Fortran)
8241 if test -z "$FC" || test "X$FC" = "Xno"; then
8245 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8246 _LT_TAGVAR(allow_undefined_flag, $1)=
8247 _LT_TAGVAR(always_export_symbols, $1)=no
8248 _LT_TAGVAR(archive_expsym_cmds, $1)=
8249 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8250 _LT_TAGVAR(hardcode_direct, $1)=no
8251 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8252 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8253 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8254 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8255 _LT_TAGVAR(hardcode_minus_L, $1)=no
8256 _LT_TAGVAR(hardcode_automatic, $1)=no
8257 _LT_TAGVAR(inherit_rpath, $1)=no
8258 _LT_TAGVAR(module_cmds, $1)=
8259 _LT_TAGVAR(module_expsym_cmds, $1)=
8260 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8261 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8262 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8263 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8264 _LT_TAGVAR(no_undefined_flag, $1)=
8265 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8266 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8268 # Source file extension for fc test sources.
8269 ac_ext=${ac_fc_srcext-f}
8271 # Object file extension for compiled fc test sources.
8273 _LT_TAGVAR(objext, $1)=$objext
8275 # No sense in running all these tests if we already determined that
8276 # the FC compiler isn't working. Some variables (like enable_shared)
8277 # are currently assumed to apply to all compilers on this platform,
8278 # and will be corrupted by setting them based on a non-working compiler.
8279 if test "$_lt_disable_FC" != yes; then
8280 # Code to be used in simple compile tests
8281 lt_simple_compile_test_code="\
8287 # Code to be used in simple link tests
8288 lt_simple_link_test_code="\
8293 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8296 # save warnings/boilerplate of simple test code
8297 _LT_COMPILER_BOILERPLATE
8298 _LT_LINKER_BOILERPLATE
8300 # Allow CC to be a program name with arguments.
8303 lt_save_CFLAGS=$CFLAGS
8307 GCC=$ac_cv_fc_compiler_gnu
8309 _LT_TAGVAR(compiler, $1)=$CC
8310 _LT_CC_BASENAME([$compiler])
8312 if test -n "$compiler"; then
8313 AC_MSG_CHECKING([if libtool supports shared libraries])
8314 AC_MSG_RESULT([$can_build_shared])
8316 AC_MSG_CHECKING([whether to build shared libraries])
8317 test "$can_build_shared" = "no" && enable_shared=no
8319 # On AIX, shared libraries and static libraries use the same namespace, and
8320 # are all built from PIC.
8323 test "$enable_shared" = yes && enable_static=no
8324 if test -n "$RANLIB"; then
8325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8326 postinstall_cmds='$RANLIB $lib'
8330 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8331 test "$enable_shared" = yes && enable_static=no
8335 AC_MSG_RESULT([$enable_shared])
8337 AC_MSG_CHECKING([whether to build static libraries])
8338 # Make sure either enable_shared or enable_static is yes.
8339 test "$enable_shared" = yes || enable_static=yes
8340 AC_MSG_RESULT([$enable_static])
8342 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
8343 _LT_TAGVAR(LD, $1)="$LD"
8346 ## There is no encapsulation within the following macros, do not change
8347 ## the running order or otherwise move them around unless you know exactly
8348 ## what you are doing...
8349 _LT_SYS_HIDDEN_LIBDEPS($1)
8350 _LT_COMPILER_PIC($1)
8351 _LT_COMPILER_C_O($1)
8352 _LT_COMPILER_FILE_LOCKS($1)
8353 _LT_LINKER_SHLIBS($1)
8354 _LT_SYS_DYNAMIC_LINKER($1)
8355 _LT_LINKER_HARDCODE_LIBPATH($1)
8358 fi # test -n "$compiler"
8362 CFLAGS=$lt_save_CFLAGS
8363 fi # test "$_lt_disable_FC" != yes
8366 ])# _LT_LANG_FC_CONFIG
8369 # _LT_LANG_GCJ_CONFIG([TAG])
8370 # --------------------------
8371 # Ensure that the configuration variables for the GNU Java Compiler compiler
8372 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8373 # to write the compiler configuration to `libtool'.
8374 m4_defun([_LT_LANG_GCJ_CONFIG],
8375 [AC_REQUIRE([LT_PROG_GCJ])dnl
8378 # Source file extension for Java test sources.
8381 # Object file extension for compiled Java test sources.
8383 _LT_TAGVAR(objext, $1)=$objext
8385 # Code to be used in simple compile tests
8386 lt_simple_compile_test_code="class foo {}"
8388 # Code to be used in simple link tests
8389 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
8391 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8394 # save warnings/boilerplate of simple test code
8395 _LT_COMPILER_BOILERPLATE
8396 _LT_LINKER_BOILERPLATE
8398 # Allow CC to be a program name with arguments.
8400 lt_save_CFLAGS=$CFLAGS
8406 _LT_TAGVAR(compiler, $1)=$CC
8407 _LT_TAGVAR(LD, $1)="$LD"
8408 _LT_CC_BASENAME([$compiler])
8410 # GCJ did not exist at the time GCC didn't implicitly link libc in.
8411 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8413 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8414 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8415 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8417 if test -n "$compiler"; then
8418 _LT_COMPILER_NO_RTTI($1)
8419 _LT_COMPILER_PIC($1)
8420 _LT_COMPILER_C_O($1)
8421 _LT_COMPILER_FILE_LOCKS($1)
8422 _LT_LINKER_SHLIBS($1)
8423 _LT_LINKER_HARDCODE_LIBPATH($1)
8432 CFLAGS=$lt_save_CFLAGS
8433 ])# _LT_LANG_GCJ_CONFIG
8436 # _LT_LANG_RC_CONFIG([TAG])
8437 # -------------------------
8438 # Ensure that the configuration variables for the Windows resource compiler
8439 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8440 # to write the compiler configuration to `libtool'.
8441 m4_defun([_LT_LANG_RC_CONFIG],
8442 [AC_REQUIRE([LT_PROG_RC])dnl
8445 # Source file extension for RC test sources.
8448 # Object file extension for compiled RC test sources.
8450 _LT_TAGVAR(objext, $1)=$objext
8452 # Code to be used in simple compile tests
8453 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8455 # Code to be used in simple link tests
8456 lt_simple_link_test_code="$lt_simple_compile_test_code"
8458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8461 # save warnings/boilerplate of simple test code
8462 _LT_COMPILER_BOILERPLATE
8463 _LT_LINKER_BOILERPLATE
8465 # Allow CC to be a program name with arguments.
8467 lt_save_CFLAGS=$CFLAGS
8473 _LT_TAGVAR(compiler, $1)=$CC
8474 _LT_CC_BASENAME([$compiler])
8475 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8477 if test -n "$compiler"; then
8485 CFLAGS=$lt_save_CFLAGS
8486 ])# _LT_LANG_RC_CONFIG
8491 AC_DEFUN([LT_PROG_GCJ],
8492 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8493 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8494 [AC_CHECK_TOOL(GCJ, gcj,)
8495 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8496 AC_SUBST(GCJFLAGS)])])[]dnl
8500 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8501 dnl aclocal-1.4 backwards compatibility:
8502 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8507 AC_DEFUN([LT_PROG_RC],
8508 [AC_CHECK_TOOL(RC, windres,)
8512 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8513 dnl aclocal-1.4 backwards compatibility:
8514 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8519 # If we don't have a new enough Autoconf to choose the best grep
8520 # available, choose the one first in the user's PATH.
8521 m4_defun([_LT_DECL_EGREP],
8522 [AC_REQUIRE([AC_PROG_EGREP])dnl
8523 AC_REQUIRE([AC_PROG_FGREP])dnl
8524 test -z "$GREP" && GREP=grep
8525 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8526 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8527 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8528 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8535 # If we don't have a new enough Autoconf to choose the best objdump
8536 # available, choose the one first in the user's PATH.
8537 m4_defun([_LT_DECL_OBJDUMP],
8538 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8539 test -z "$OBJDUMP" && OBJDUMP=objdump
8540 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8546 # Ensure DLLTOOL variable is set.
8547 m4_defun([_LT_DECL_DLLTOOL],
8548 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8549 test -z "$DLLTOOL" && DLLTOOL=dlltool
8550 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8556 # Check for a fully-functional sed program, that truncates
8557 # as few characters as possible. Prefer GNU sed if found.
8558 m4_defun([_LT_DECL_SED],
8560 test -z "$SED" && SED=sed
8561 Xsed="$SED -e 1s/^X//"
8562 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8563 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8564 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8567 m4_ifndef([AC_PROG_SED], [
8568 # NOTE: This macro has been submitted for inclusion into #
8569 # GNU Autoconf as AC_PROG_SED. When it is available in #
8570 # a released version of Autoconf we should remove this #
8571 # macro and use it instead. #
8573 m4_defun([AC_PROG_SED],
8574 [AC_MSG_CHECKING([for a sed that does not truncate output])
8575 AC_CACHE_VAL(lt_cv_path_SED,
8576 [# Loop through the user's path and test for sed and gsed.
8577 # Then use that list of sed's as ones to test for truncation.
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 test -z "$as_dir" && as_dir=.
8583 for lt_ac_prog in sed gsed; do
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8586 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8594 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8595 # along with /bin/sed that truncates output.
8596 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8597 test ! -f $lt_ac_sed && continue
8598 cat /dev/null > conftest.in
8600 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8601 # Check for GNU sed and select it if it is found.
8602 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8603 lt_cv_path_SED=$lt_ac_sed
8607 cat conftest.in conftest.in >conftest.tmp
8608 mv conftest.tmp conftest.in
8609 cp conftest.in conftest.nl
8611 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8612 cmp -s conftest.out conftest.nl || break
8613 # 10000 chars as input seems more than enough
8614 test $lt_ac_count -gt 10 && break
8615 lt_ac_count=`expr $lt_ac_count + 1`
8616 if test $lt_ac_count -gt $lt_ac_max; then
8617 lt_ac_max=$lt_ac_count
8618 lt_cv_path_SED=$lt_ac_sed
8625 AC_MSG_RESULT([$SED])
8630 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8631 dnl aclocal-1.4 backwards compatibility:
8632 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8635 # _LT_CHECK_SHELL_FEATURES
8636 # ------------------------
8637 # Find out whether the shell is Bourne or XSI compatible,
8638 # or has some other useful features.
8639 m4_defun([_LT_CHECK_SHELL_FEATURES],
8640 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8641 # Try some XSI features
8644 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8646 && eval 'test $(( 1 + 1 )) -eq 2 \
8647 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8649 AC_MSG_RESULT([$xsi_shell])
8650 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8652 AC_MSG_CHECKING([whether the shell understands "+="])
8654 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8656 && lt_shell_append=yes
8657 AC_MSG_RESULT([$lt_shell_append])
8658 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8665 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8667 # test EBCDIC or ASCII
8668 case `echo X|tr X '\101'` in
8669 A) # ASCII based system
8670 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8671 lt_SP2NL='tr \040 \012'
8672 lt_NL2SP='tr \015\012 \040\040'
8674 *) # EBCDIC based system
8675 lt_SP2NL='tr \100 \n'
8676 lt_NL2SP='tr \r\n \100\100'
8679 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8680 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8681 ])# _LT_CHECK_SHELL_FEATURES
8684 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8685 # ------------------------------------------------------
8686 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8687 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8688 m4_defun([_LT_PROG_FUNCTION_REPLACE],
8690 sed -e '/^$1 ()$/,/^} # $1 /c\
8693 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8694 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8695 && mv -f "$cfgfile.tmp" "$cfgfile" \
8696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8697 test 0 -eq $? || _lt_function_replace_fail=:
8701 # _LT_PROG_REPLACE_SHELLFNS
8702 # -------------------------
8703 # Replace existing portable implementations of several shell functions with
8704 # equivalent extended shell implementations where those features are available..
8705 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8706 [if test x"$xsi_shell" = xyes; then
8707 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8709 */*) func_dirname_result="${1%/*}${2}" ;;
8710 * ) func_dirname_result="${3}" ;;
8713 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8714 func_basename_result="${1##*/}"])
8716 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8718 */*) func_dirname_result="${1%/*}${2}" ;;
8719 * ) func_dirname_result="${3}" ;;
8721 func_basename_result="${1##*/}"])
8723 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8724 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8725 # positional parameters, so assign one to ordinary parameter first.
8726 func_stripname_result=${3}
8727 func_stripname_result=${func_stripname_result#"${1}"}
8728 func_stripname_result=${func_stripname_result%"${2}"}])
8730 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8731 func_split_long_opt_name=${1%%=*}
8732 func_split_long_opt_arg=${1#*=}])
8734 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8735 func_split_short_opt_arg=${1#??}
8736 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8738 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8740 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8741 *) func_lo2o_result=${1} ;;
8744 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8746 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8748 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8751 if test x"$lt_shell_append" = xyes; then
8752 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8754 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8755 func_quote_for_eval "${2}"
8756 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8757 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8759 # Save a `func_append' function call where possible by direct use of '+='
8760 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8761 && mv -f "$cfgfile.tmp" "$cfgfile" \
8762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8763 test 0 -eq $? || _lt_function_replace_fail=:
8765 # Save a `func_append' function call even when '+=' is not available
8766 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8767 && mv -f "$cfgfile.tmp" "$cfgfile" \
8768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8769 test 0 -eq $? || _lt_function_replace_fail=:
8772 if test x"$_lt_function_replace_fail" = x":"; then
8773 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8777 # _LT_PATH_CONVERSION_FUNCTIONS
8778 # -----------------------------
8779 # Determine which file name conversion functions should be used by
8780 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8781 # for certain cross-compile configurations and native mingw.
8782 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8783 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8784 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8785 AC_MSG_CHECKING([how to convert $build file names to $host format])
8786 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8790 *-*-mingw* ) # actually msys
8791 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8794 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8796 * ) # otherwise, assume *nix
8797 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8803 *-*-mingw* ) # actually msys
8804 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8807 lt_cv_to_host_file_cmd=func_convert_file_noop
8809 * ) # otherwise, assume *nix
8810 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8814 * ) # unhandled hosts (and "normal" native builds)
8815 lt_cv_to_host_file_cmd=func_convert_file_noop
8819 to_host_file_cmd=$lt_cv_to_host_file_cmd
8820 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8821 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8822 [0], [convert $build file names to $host format])dnl
8824 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8825 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8826 [#assume ordinary cross tools, or native build.
8827 lt_cv_to_tool_file_cmd=func_convert_file_noop
8831 *-*-mingw* ) # actually msys
8832 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8838 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8839 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8840 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8841 [0], [convert $build files to toolchain format])dnl
8842 ])# _LT_PATH_CONVERSION_FUNCTIONS
8844 # Helper functions for option handling. -*- Autoconf -*-
8846 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8848 # Written by Gary V. Vaughan, 2004
8850 # This file is free software; the Free Software Foundation gives
8851 # unlimited permission to copy and/or distribute it, with or without
8852 # modifications, as long as this notice is preserved.
8854 # serial 7 ltoptions.m4
8856 # This is to help aclocal find these macros, as it can't see m4_define.
8857 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8860 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8861 # ------------------------------------------
8862 m4_define([_LT_MANGLE_OPTION],
8863 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8866 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8867 # ---------------------------------------
8868 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8869 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8871 m4_define([_LT_SET_OPTION],
8872 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8873 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8874 _LT_MANGLE_DEFUN([$1], [$2]),
8875 [m4_warning([Unknown $1 option `$2'])])[]dnl
8879 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8880 # ------------------------------------------------------------
8881 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8882 m4_define([_LT_IF_OPTION],
8883 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8886 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8887 # -------------------------------------------------------
8888 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8890 m4_define([_LT_UNLESS_OPTIONS],
8891 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8892 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8893 [m4_define([$0_found])])])[]dnl
8894 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8899 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8900 # ----------------------------------------
8901 # OPTION-LIST is a space-separated list of Libtool options associated
8902 # with MACRO-NAME. If any OPTION has a matching handler declared with
8903 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8904 # the unknown option and exit.
8905 m4_defun([_LT_SET_OPTIONS],
8907 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8908 [_LT_SET_OPTION([$1], _LT_Option)])
8910 m4_if([$1],[LT_INIT],[
8912 dnl Simply set some default values (i.e off) if boolean options were not
8914 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8916 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8919 dnl If no reference was made to various pairs of opposing options, then
8920 dnl we run the default mode handler for the pair. For example, if neither
8921 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8922 dnl archives by default:
8923 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8924 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8925 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8926 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8927 [_LT_ENABLE_FAST_INSTALL])
8933 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8934 # -----------------------------------------
8935 m4_define([_LT_MANGLE_DEFUN],
8936 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8939 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8940 # -----------------------------------------------
8941 m4_define([LT_OPTION_DEFINE],
8942 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8943 ])# LT_OPTION_DEFINE
8948 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8951 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8952 [_LT_SET_OPTION([LT_INIT], [dlopen])
8953 AC_DIAGNOSE([obsolete],
8954 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8955 put the `dlopen' option into LT_INIT's first parameter.])
8958 dnl aclocal-1.4 backwards compatibility:
8959 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8964 # Declare package support for building win32 dll's.
8965 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8966 [enable_win32_dll=yes
8969 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8970 AC_CHECK_TOOL(AS, as, false)
8971 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8972 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8976 test -z "$AS" && AS=as
8977 _LT_DECL([], [AS], [1], [Assembler program])dnl
8979 test -z "$DLLTOOL" && DLLTOOL=dlltool
8980 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8982 test -z "$OBJDUMP" && OBJDUMP=objdump
8983 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8986 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8987 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8988 _LT_SET_OPTION([LT_INIT], [win32-dll])
8989 AC_DIAGNOSE([obsolete],
8990 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8991 put the `win32-dll' option into LT_INIT's first parameter.])
8994 dnl aclocal-1.4 backwards compatibility:
8995 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8998 # _LT_ENABLE_SHARED([DEFAULT])
8999 # ----------------------------
9000 # implement the --enable-shared flag, and supports the `shared' and
9001 # `disable-shared' LT_INIT options.
9002 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9003 m4_define([_LT_ENABLE_SHARED],
9004 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9005 AC_ARG_ENABLE([shared],
9006 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9007 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9008 [p=${PACKAGE-default}
9010 yes) enable_shared=yes ;;
9011 no) enable_shared=no ;;
9014 # Look at the argument we got. We use all the common list separators.
9015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9016 for pkg in $enableval; do
9018 if test "X$pkg" = "X$p"; then
9025 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9027 _LT_DECL([build_libtool_libs], [enable_shared], [0],
9028 [Whether or not to build shared libraries])
9029 ])# _LT_ENABLE_SHARED
9031 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9032 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9035 AC_DEFUN([AC_ENABLE_SHARED],
9036 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9039 AC_DEFUN([AC_DISABLE_SHARED],
9040 [_LT_SET_OPTION([LT_INIT], [disable-shared])
9043 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9044 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9046 dnl aclocal-1.4 backwards compatibility:
9047 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9048 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9052 # _LT_ENABLE_STATIC([DEFAULT])
9053 # ----------------------------
9054 # implement the --enable-static flag, and support the `static' and
9055 # `disable-static' LT_INIT options.
9056 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9057 m4_define([_LT_ENABLE_STATIC],
9058 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9059 AC_ARG_ENABLE([static],
9060 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9061 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9062 [p=${PACKAGE-default}
9064 yes) enable_static=yes ;;
9065 no) enable_static=no ;;
9068 # Look at the argument we got. We use all the common list separators.
9069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9070 for pkg in $enableval; do
9072 if test "X$pkg" = "X$p"; then
9079 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9081 _LT_DECL([build_old_libs], [enable_static], [0],
9082 [Whether or not to build static libraries])
9083 ])# _LT_ENABLE_STATIC
9085 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9086 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9089 AC_DEFUN([AC_ENABLE_STATIC],
9090 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9093 AC_DEFUN([AC_DISABLE_STATIC],
9094 [_LT_SET_OPTION([LT_INIT], [disable-static])
9097 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9098 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9100 dnl aclocal-1.4 backwards compatibility:
9101 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9102 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9106 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
9107 # ----------------------------------
9108 # implement the --enable-fast-install flag, and support the `fast-install'
9109 # and `disable-fast-install' LT_INIT options.
9110 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
9111 m4_define([_LT_ENABLE_FAST_INSTALL],
9112 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9113 AC_ARG_ENABLE([fast-install],
9114 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9115 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9116 [p=${PACKAGE-default}
9118 yes) enable_fast_install=yes ;;
9119 no) enable_fast_install=no ;;
9121 enable_fast_install=no
9122 # Look at the argument we got. We use all the common list separators.
9123 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9124 for pkg in $enableval; do
9126 if test "X$pkg" = "X$p"; then
9127 enable_fast_install=yes
9133 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9135 _LT_DECL([fast_install], [enable_fast_install], [0],
9136 [Whether or not to optimize for fast installation])dnl
9137 ])# _LT_ENABLE_FAST_INSTALL
9139 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9140 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9143 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9144 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9145 AC_DIAGNOSE([obsolete],
9146 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9147 the `fast-install' option into LT_INIT's first parameter.])
9150 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9151 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9152 AC_DIAGNOSE([obsolete],
9153 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
9154 the `disable-fast-install' option into LT_INIT's first parameter.])
9157 dnl aclocal-1.4 backwards compatibility:
9158 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9159 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9162 # _LT_WITH_PIC([MODE])
9163 # --------------------
9164 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
9166 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9167 m4_define([_LT_WITH_PIC],
9169 [AS_HELP_STRING([--with-pic],
9170 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9171 [pic_mode="$withval"],
9174 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9176 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9179 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9180 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9183 AU_DEFUN([AC_LIBTOOL_PICMODE],
9184 [_LT_SET_OPTION([LT_INIT], [pic-only])
9185 AC_DIAGNOSE([obsolete],
9186 [$0: Remove this warning and the call to _LT_SET_OPTION when you
9187 put the `pic-only' option into LT_INIT's first parameter.])
9190 dnl aclocal-1.4 backwards compatibility:
9191 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9194 m4_define([_LTDL_MODE], [])
9195 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9196 [m4_define([_LTDL_MODE], [nonrecursive])])
9197 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9198 [m4_define([_LTDL_MODE], [recursive])])
9199 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9200 [m4_define([_LTDL_MODE], [subproject])])
9202 m4_define([_LTDL_TYPE], [])
9203 LT_OPTION_DEFINE([LTDL_INIT], [installable],
9204 [m4_define([_LTDL_TYPE], [installable])])
9205 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9206 [m4_define([_LTDL_TYPE], [convenience])])
9208 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
9210 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9211 # Written by Gary V. Vaughan, 2004
9213 # This file is free software; the Free Software Foundation gives
9214 # unlimited permission to copy and/or distribute it, with or without
9215 # modifications, as long as this notice is preserved.
9217 # serial 6 ltsugar.m4
9219 # This is to help aclocal find these macros, as it can't see m4_define.
9220 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9223 # lt_join(SEP, ARG1, [ARG2...])
9224 # -----------------------------
9225 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9226 # associated separator.
9227 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9228 # versions in m4sugar had bugs.
9229 m4_define([lt_join],
9230 [m4_if([$#], [1], [],
9232 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9233 m4_define([_lt_join],
9234 [m4_if([$#$2], [2], [],
9235 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9241 # Manipulate m4 lists.
9242 # These macros are necessary as long as will still need to support
9243 # Autoconf-2.59 which quotes differently.
9244 m4_define([lt_car], [[$1]])
9246 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9248 [m4_dquote(m4_shift($@))])])
9249 m4_define([lt_unquote], $1)
9252 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
9253 # ------------------------------------------
9254 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9255 # Note that neither SEPARATOR nor STRING are expanded; they are appended
9256 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9257 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
9258 # than defined and empty).
9260 # This macro is needed until we can rely on Autoconf 2.62, since earlier
9261 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9262 m4_define([lt_append],
9264 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9268 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9269 # ----------------------------------------------------------
9270 # Produce a SEP delimited list of all paired combinations of elements of
9271 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
9272 # has the form PREFIXmINFIXSUFFIXn.
9273 # Needed until we can rely on m4_combine added in Autoconf 2.62.
9274 m4_define([lt_combine],
9275 [m4_if(m4_eval([$# > 3]), [1],
9276 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9277 [[m4_foreach([_Lt_prefix], [$2],
9278 [m4_foreach([_Lt_suffix],
9279 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9280 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9283 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9284 # -----------------------------------------------------------------------
9285 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9286 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9287 m4_define([lt_if_append_uniq],
9289 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9290 [lt_append([$1], [$2], [$3])$4],
9292 [lt_append([$1], [$2], [$3])$4])])
9295 # lt_dict_add(DICT, KEY, VALUE)
9296 # -----------------------------
9297 m4_define([lt_dict_add],
9298 [m4_define([$1($2)], [$3])])
9301 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9302 # --------------------------------------------
9303 m4_define([lt_dict_add_subkey],
9304 [m4_define([$1($2:$3)], [$4])])
9307 # lt_dict_fetch(DICT, KEY, [SUBKEY])
9308 # ----------------------------------
9309 m4_define([lt_dict_fetch],
9311 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9312 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9315 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9316 # -----------------------------------------------------------------
9317 m4_define([lt_if_dict_fetch],
9318 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9323 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9324 # --------------------------------------------------------------
9325 m4_define([lt_dict_filter],
9326 [m4_if([$5], [], [],
9327 [lt_join(m4_quote(m4_default([$4], [[, ]])),
9328 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9329 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9332 # ltversion.m4 -- version numbers -*- Autoconf -*-
9334 # Copyright (C) 2004 Free Software Foundation, Inc.
9335 # Written by Scott James Remnant, 2004
9337 # This file is free software; the Free Software Foundation gives
9338 # unlimited permission to copy and/or distribute it, with or without
9339 # modifications, as long as this notice is preserved.
9343 # serial 3293 ltversion.m4
9344 # This file is part of GNU Libtool
9346 m4_define([LT_PACKAGE_VERSION], [2.4])
9347 m4_define([LT_PACKAGE_REVISION], [1.3293])
9349 AC_DEFUN([LTVERSION_VERSION],
9350 [macro_version='2.4'
9351 macro_revision='1.3293'
9352 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9353 _LT_DECL(, macro_revision, 0)
9356 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9358 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9359 # Written by Scott James Remnant, 2004.
9361 # This file is free software; the Free Software Foundation gives
9362 # unlimited permission to copy and/or distribute it, with or without
9363 # modifications, as long as this notice is preserved.
9365 # serial 5 lt~obsolete.m4
9367 # These exist entirely to fool aclocal when bootstrapping libtool.
9369 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9370 # which have later been changed to m4_define as they aren't part of the
9371 # exported API, or moved to Autoconf or Automake where they belong.
9373 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
9374 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9375 # using a macro with the same name in our local m4/libtool.m4 it'll
9376 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9377 # and doesn't know about Autoconf macros at all.)
9379 # So we provide this file, which has a silly filename so it's always
9380 # included after everything else. This provides aclocal with the
9381 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9382 # because those macros already exist, or will be overwritten later.
9383 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9385 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9386 # Yes, that means every name once taken will need to remain here until
9387 # we give up compatibility with versions before 1.7, at which point
9388 # we need to keep only those names which we still refer to.
9390 # This is to help aclocal find these macros, as it can't see m4_define.
9391 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9393 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9394 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
9395 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9396 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
9397 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9398 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
9399 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
9400 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9401 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
9402 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
9403 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
9404 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9405 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9406 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9407 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9408 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9409 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
9410 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9411 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9412 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
9413 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
9414 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9415 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9416 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9417 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9418 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9419 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9420 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9421 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9422 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9423 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9424 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9425 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9426 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9427 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9428 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9429 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9430 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9431 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9432 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9433 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9434 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9435 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9436 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9437 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9438 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9439 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9440 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9441 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9442 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9443 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9444 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9445 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9446 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9447 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9448 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9449 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9450 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9451 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9452 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9453 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])