1 # generated automatically by aclocal 1.11 -*- 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.63],,
17 [m4_warning([this file was generated for autoconf 2.63.
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], [],
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])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`
111 # AM_CONDITIONAL -*- Autoconf -*-
113 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114 # Free Software Foundation, Inc.
116 # This file is free software; the Free Software Foundation
117 # gives unlimited permission to copy and/or distribute it,
118 # with or without modifications, as long as this notice is preserved.
122 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
123 # -------------------------------------
124 # Define a conditional.
125 AC_DEFUN([AM_CONDITIONAL],
127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129 AC_SUBST([$1_TRUE])dnl
130 AC_SUBST([$1_FALSE])dnl
131 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
132 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
133 m4_define([_AM_COND_VALUE_$1], [$2])dnl
141 AC_CONFIG_COMMANDS_PRE(
142 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143 AC_MSG_ERROR([[conditional "$1" was never defined.
144 Usually this means the macro was only invoked conditionally.]])
147 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148 # Free Software Foundation, Inc.
150 # This file is free software; the Free Software Foundation
151 # gives unlimited permission to copy and/or distribute it,
152 # with or without modifications, as long as this notice is preserved.
156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157 # written in clear, in which case automake, when reading aclocal.m4,
158 # will think it sees a *use*, and therefore will trigger all it's
159 # C support machinery. Also note that it means that autoscan, seeing
160 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
163 # _AM_DEPENDENCIES(NAME)
164 # ----------------------
165 # See how the compiler implements dependency checking.
166 # NAME is "CC", "CXX", "GCJ", or "OBJC".
167 # We try a few techniques and use that to set a single cache variable.
169 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171 # dependency, and given that the user is not expected to run this macro,
172 # just rely on AC_PROG_CC.
173 AC_DEFUN([_AM_DEPENDENCIES],
174 [AC_REQUIRE([AM_SET_DEPDIR])dnl
175 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177 AC_REQUIRE([AM_DEP_TRACK])dnl
179 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180 [$1], CXX, [depcc="$CXX" am_compiler_list=],
181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182 [$1], UPC, [depcc="$UPC" am_compiler_list=],
183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184 [depcc="$$1" am_compiler_list=])
186 AC_CACHE_CHECK([dependency style of $depcc],
187 [am_cv_$1_dependencies_compiler_type],
188 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189 # We make a subdir and do the tests there. Otherwise we can end up
190 # making bogus files that we don't know about and never remove. For
191 # instance it was reported that on HP-UX the gcc test will end up
192 # making a dummy file named `D' -- because `-MD' means `put the output
195 # Copy depcomp to subdir because otherwise we won't find it if we're
196 # using a relative directory.
197 cp "$am_depcomp" conftest.dir
199 # We will build objects and dependencies in a subdirectory because
200 # it helps to detect inapplicable dependency modes. For instance
201 # both Tru64's cc and ICC support -MD to output dependencies as a
202 # side effect of compilation, but ICC will put the dependencies in
203 # the current directory while Tru64 will put them in the object
207 am_cv_$1_dependencies_compiler_type=none
208 if test "$am_compiler_list" = ""; then
209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
217 [case " $depcc " in #(
218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
221 for depmode in $am_compiler_list; do
222 # Setup a source with many dependencies, because some compilers
223 # like to wrap large dependency lists on column 80 (with \), and
224 # we should not choose a depcomp mode which is confused by this.
226 # We need to recreate these files for each test, as the compiler may
227 # overwrite some of them when testing with obscure command lines.
228 # This happens at least with the AIX C compiler.
230 for i in 1 2 3 4 5 6; do
231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233 # Solaris 8's {/usr,}/bin/sh.
234 touch sub/conftst$i.h
236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
238 # We check with `-c' and `-o' for the sake of the "dashmstdout"
239 # mode. It turns out that the SunPro C++ compiler does not properly
240 # handle `-M -o', and we need to detect this. Also, some Intel
241 # versions had trouble with output in subdirs
242 am__obj=sub/conftest.${OBJEXT-o}
243 am__minus_obj="-o $am__obj"
246 # This depmode causes a compiler race in universal mode.
247 test "$am__universal" = false || continue
250 # after this tag, mechanisms are not by side-effect, so they'll
251 # only be used when explicitly requested
252 if test "x$enable_dependency_tracking" = xyes; then
258 msvisualcpp | msvcmsys)
259 # This compiler won't grok `-c -o', but also, the minuso test has
260 # not run yet. These depmodes are late enough in the game, and
261 # so weak that their functioning should not be impacted.
262 am__obj=conftest.${OBJEXT-o}
267 if depmode=$depmode \
268 source=sub/conftest.c object=$am__obj \
269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271 >/dev/null 2>conftest.err &&
272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276 # icc doesn't choke on unknown options, it will just issue warnings
277 # or remarks (even with -Werror). So we grep stderr for any message
278 # that says an option was ignored or not supported.
279 # When given -MP, icc 7.0 and 7.1 complain thusly:
280 # icc: Command line warning: ignoring option '-M'; no argument required
281 # The diagnosis changed in icc 8.0:
282 # icc: Command line remark: option '-MP' not supported
283 if (grep 'ignoring option' conftest.err ||
284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285 am_cv_$1_dependencies_compiler_type=$depmode
294 am_cv_$1_dependencies_compiler_type=none
297 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298 AM_CONDITIONAL([am__fastdep$1], [
299 test "x$enable_dependency_tracking" != xno \
300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306 # Choose a directory name for dependency files.
307 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
308 AC_DEFUN([AM_SET_DEPDIR],
309 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316 AC_DEFUN([AM_DEP_TRACK],
317 [AC_ARG_ENABLE(dependency-tracking,
318 [ --disable-dependency-tracking speeds up one-time build
319 --enable-dependency-tracking do not reject slow dependency extractors])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325 AC_SUBST([AMDEPBACKSLASH])dnl
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329 # Generate code to set up dependency tracking. -*- Autoconf -*-
331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332 # Free Software Foundation, Inc.
334 # This file is free software; the Free Software Foundation
335 # gives unlimited permission to copy and/or distribute it,
336 # with or without modifications, as long as this notice is preserved.
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344 # Autoconf 2.62 quotes --file arguments for eval, but not when files
345 # are listed without --file. Let's play safe and only enable the eval
346 # if we detect the quoting.
347 case $CONFIG_FILES in
348 *\'*) eval set x "$CONFIG_FILES" ;;
349 *) set x $CONFIG_FILES ;;
354 # Strip MF so we end up with the name of the file.
355 mf=`echo "$mf" | sed -e 's/:.*$//'`
356 # Check whether this is an Automake generated Makefile or not.
357 # We used to match only the files named `Makefile.in', but
358 # some people rename them; so instead we look at the file content.
359 # Grep'ing the first line is not enough: some people post-process
360 # each Makefile.in and add a new line on top of each file to say so.
361 # Grep'ing the whole file is not good either: AIX grep has a line
362 # limit of 2048, but all sed's we know have understand at least 4000.
363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364 dirpart=`AS_DIRNAME("$mf")`
368 # Extract the definition of DEPDIR, am__include, and am__quote
369 # from the Makefile without running `make'.
370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371 test -z "$DEPDIR" && continue
372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
373 test -z "am__include" && continue
374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375 # When using ansi2knr, U may be empty or an underscore; expand it
376 U=`sed -n 's/^U = //p' < "$mf"`
377 # Find all dependency output files, they are included files with
378 # $(DEPDIR) in their names. We invoke sed twice because it is the
379 # simplest approach to changing $(DEPDIR) to its actual value in the
381 for file in `sed -n "
382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384 # Make sure the directory exists.
385 test -f "$dirpart/$file" && continue
386 fdir=`AS_DIRNAME(["$file"])`
387 AS_MKDIR_P([$dirpart/$fdir])
388 # echo "creating $dirpart/$file"
389 echo '# dummy' > "$dirpart/$file"
393 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
396 # AM_OUTPUT_DEPENDENCY_COMMANDS
397 # -----------------------------
398 # This macro should only be invoked once -- use via AC_REQUIRE.
400 # This code is only required when automatic dependency tracking
401 # is enabled. FIXME. This creates each `.P' file that we will
402 # need in order to bootstrap the dependency handling code.
403 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404 [AC_CONFIG_COMMANDS([depfiles],
405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
409 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
410 # Free Software Foundation, Inc.
412 # This file is free software; the Free Software Foundation
413 # gives unlimited permission to copy and/or distribute it,
414 # with or without modifications, as long as this notice is preserved.
418 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
419 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
421 # Do all the work for Automake. -*- Autoconf -*-
423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
424 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
426 # This file is free software; the Free Software Foundation
427 # gives unlimited permission to copy and/or distribute it,
428 # with or without modifications, as long as this notice is preserved.
432 # This macro actually does too much. Some checks are only needed if
433 # your package does certain things. But this isn't really a big deal.
435 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
436 # AM_INIT_AUTOMAKE([OPTIONS])
437 # -----------------------------------------------
438 # The call with PACKAGE and VERSION arguments is the old style
439 # call (pre autoconf-2.50), which is being phased out. PACKAGE
440 # and VERSION should now be passed to AC_INIT and removed from
441 # the call to AM_INIT_AUTOMAKE.
442 # We support both call styles for the transition. After
443 # the next Automake release, Autoconf can make the AC_INIT
444 # arguments mandatory, and then we can depend on a new Autoconf
445 # release and drop the old call support.
446 AC_DEFUN([AM_INIT_AUTOMAKE],
447 [AC_PREREQ([2.62])dnl
448 dnl Autoconf wants to disallow AM_ names. We explicitly allow
449 dnl the ones we care about.
450 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
451 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
452 AC_REQUIRE([AC_PROG_INSTALL])dnl
453 if test "`cd $srcdir && pwd`" != "`pwd`"; then
454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
455 # is not polluted with repeated "-I."
456 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
457 # test to see if srcdir already configured
458 if test -f $srcdir/config.status; then
459 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
463 # test whether we have cygpath
464 if test -z "$CYGPATH_W"; then
465 if (cygpath --version) >/dev/null 2>/dev/null; then
466 CYGPATH_W='cygpath -w'
471 AC_SUBST([CYGPATH_W])
473 # Define the identity of the package.
474 dnl Distinguish between old-style and new-style calls.
476 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
477 AC_SUBST([PACKAGE], [$1])dnl
478 AC_SUBST([VERSION], [$2])],
479 [_AM_SET_OPTIONS([$1])dnl
480 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
481 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
482 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
483 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
484 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
486 _AM_IF_OPTION([no-define],,
487 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
488 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
490 # Some tools Automake needs.
491 AC_REQUIRE([AM_SANITY_CHECK])dnl
492 AC_REQUIRE([AC_ARG_PROGRAM])dnl
493 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
494 AM_MISSING_PROG(AUTOCONF, autoconf)
495 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
496 AM_MISSING_PROG(AUTOHEADER, autoheader)
497 AM_MISSING_PROG(MAKEINFO, makeinfo)
498 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
500 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
501 # We need awk for the "check" target. The system "awk" is bad on
503 AC_REQUIRE([AC_PROG_AWK])dnl
504 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
505 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
506 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
508 [_AM_PROG_TAR([v7])])])
509 _AM_IF_OPTION([no-dependencies],,
510 [AC_PROVIDE_IFELSE([AC_PROG_CC],
511 [_AM_DEPENDENCIES(CC)],
512 [define([AC_PROG_CC],
513 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
514 AC_PROVIDE_IFELSE([AC_PROG_CXX],
515 [_AM_DEPENDENCIES(CXX)],
516 [define([AC_PROG_CXX],
517 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
518 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
519 [_AM_DEPENDENCIES(OBJC)],
520 [define([AC_PROG_OBJC],
521 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
523 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
524 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
525 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
526 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
527 AC_CONFIG_COMMANDS_PRE(dnl
528 [m4_provide_if([_AM_COMPILER_EXEEXT],
529 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
532 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
533 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
534 dnl mangled by Autoconf and run in a shell conditional statement.
535 m4_define([_AC_COMPILER_EXEEXT],
536 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
539 # When config.status generates a header, we must update the stamp-h file.
540 # This file resides in the same directory as the config header
541 # that is generated. The stamp files are numbered to have different names.
543 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
544 # loop where config.status creates the headers, so we can generate
545 # our stamp files there.
546 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
547 [# Compute $1's index in $config_headers.
550 for _am_header in $config_headers :; do
552 $_am_arg | $_am_arg:* )
555 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
558 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
560 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
562 # This file is free software; the Free Software Foundation
563 # gives unlimited permission to copy and/or distribute it,
564 # with or without modifications, as long as this notice is preserved.
568 # Define $install_sh.
569 AC_DEFUN([AM_PROG_INSTALL_SH],
570 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571 if test x"${install_sh}" != xset; then
574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
576 install_sh="\${SHELL} $am_aux_dir/install-sh"
579 AC_SUBST(install_sh)])
581 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
583 # This file is free software; the Free Software Foundation
584 # gives unlimited permission to copy and/or distribute it,
585 # with or without modifications, as long as this notice is preserved.
589 # Check whether the underlying file-system supports filenames
590 # with a leading dot. For instance MS-DOS doesn't.
591 AC_DEFUN([AM_SET_LEADING_DOT],
592 [rm -rf .tst 2>/dev/null
593 mkdir .tst 2>/dev/null
594 if test -d .tst; then
599 rmdir .tst 2>/dev/null
600 AC_SUBST([am__leading_dot])])
602 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
603 # 2006 Free Software Foundation, Inc.
605 # This file is free software; the Free Software Foundation
606 # gives unlimited permission to copy and/or distribute it,
607 # with or without modifications, as long as this notice is preserved.
613 AC_DEFUN([AM_PATH_LISPDIR],
614 [AC_PREREQ([2.60])dnl
615 # If set to t, that means we are running in a shell under Emacs.
616 # If you have an Emacs named "t", then use the full path.
617 test x"$EMACS" = xt && EMACS=
618 AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
619 AC_ARG_VAR([EMACS], [the Emacs editor command])
620 AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
621 AC_ARG_WITH([lispdir],
622 [ --with-lispdir override the default lisp directory],
624 AC_MSG_CHECKING([where .elc files should go])
625 AC_MSG_RESULT([$lispdir])],
627 AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
628 if test $EMACS != "no"; then
629 if test x${lispdir+set} != xset; then
630 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
631 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
632 # which is non-obvious for non-emacs users.
633 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
634 # emacsen earlier and avoid running this altogether.
635 AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
636 am_cv_lispdir=`sed -n \
638 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
639 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
644 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
646 lispdir="$am_cv_lispdir"
651 AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
653 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
656 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
657 # Free Software Foundation, Inc.
659 # This file is free software; the Free Software Foundation
660 # gives unlimited permission to copy and/or distribute it,
661 # with or without modifications, as long as this notice is preserved.
665 # AM_MAINTAINER_MODE([DEFAULT-MODE])
666 # ----------------------------------
667 # Control maintainer-specific portions of Makefiles.
668 # Default is to disable them, unless `enable' is passed literally.
669 # For symmetry, `disable' may be passed as well. Anyway, the user
670 # can override the default with the --enable/--disable switch.
671 AC_DEFUN([AM_MAINTAINER_MODE],
672 [m4_case(m4_default([$1], [disable]),
673 [enable], [m4_define([am_maintainer_other], [disable])],
674 [disable], [m4_define([am_maintainer_other], [enable])],
675 [m4_define([am_maintainer_other], [enable])
676 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
677 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
678 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
679 AC_ARG_ENABLE([maintainer-mode],
680 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
681 (and sometimes confusing) to the casual installer],
682 [USE_MAINTAINER_MODE=$enableval],
683 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
684 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
685 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
686 MAINT=$MAINTAINER_MODE_TRUE
691 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
693 # Check to see how 'make' treats includes. -*- Autoconf -*-
695 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
697 # This file is free software; the Free Software Foundation
698 # gives unlimited permission to copy and/or distribute it,
699 # with or without modifications, as long as this notice is preserved.
705 # Check to see how make treats includes.
706 AC_DEFUN([AM_MAKE_INCLUDE],
707 [am_make=${MAKE-make}
708 cat > confinc << 'END'
710 @echo this is the am__doit target
713 # If we don't find an include directive, just comment out the code.
714 AC_MSG_CHECKING([for style of include used by $am_make])
718 # First try GNU make style include.
719 echo "include confinc" > confmf
720 # Ignore all kinds of additional output from `make'.
721 case `$am_make -s -f confmf 2> /dev/null` in #(
722 *the\ am__doit\ target*)
728 # Now try BSD make style include.
729 if test "$am__include" = "#"; then
730 echo '.include "confinc"' > confmf
731 case `$am_make -s -f confmf 2> /dev/null` in #(
732 *the\ am__doit\ target*)
739 AC_SUBST([am__include])
740 AC_SUBST([am__quote])
741 AC_MSG_RESULT([$_am_result])
745 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
747 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
748 # Free Software Foundation, Inc.
750 # This file is free software; the Free Software Foundation
751 # gives unlimited permission to copy and/or distribute it,
752 # with or without modifications, as long as this notice is preserved.
756 # AM_MISSING_PROG(NAME, PROGRAM)
757 # ------------------------------
758 AC_DEFUN([AM_MISSING_PROG],
759 [AC_REQUIRE([AM_MISSING_HAS_RUN])
760 $1=${$1-"${am_missing_run}$2"}
766 # Define MISSING if not defined so far and test if it supports --run.
767 # If it does, set am_missing_run to use it, otherwise, to nothing.
768 AC_DEFUN([AM_MISSING_HAS_RUN],
769 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
770 AC_REQUIRE_AUX_FILE([missing])dnl
771 if test x"${MISSING+set}" != xset; then
774 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
776 MISSING="\${SHELL} $am_aux_dir/missing" ;;
779 # Use eval to expand $SHELL
780 if eval "$MISSING --run true"; then
781 am_missing_run="$MISSING --run "
784 AC_MSG_WARN([`missing' script is too old or missing])
788 # Copyright (C) 2003, 2004, 2005, 2006 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 # Check for `mkdir -p'.
797 AC_DEFUN([AM_PROG_MKDIR_P],
798 [AC_PREREQ([2.60])dnl
799 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
800 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
801 dnl while keeping a definition of mkdir_p for backward compatibility.
802 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
803 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
804 dnl Makefile.ins that do not define MKDIR_P, so we do our own
805 dnl adjustment using top_builddir (which is defined more often than
807 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
809 [[\\/$]]* | ?:[[\\/]]*) ;;
810 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
814 # Helper functions for option handling. -*- Autoconf -*-
816 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
818 # This file is free software; the Free Software Foundation
819 # gives unlimited permission to copy and/or distribute it,
820 # with or without modifications, as long as this notice is preserved.
824 # _AM_MANGLE_OPTION(NAME)
825 # -----------------------
826 AC_DEFUN([_AM_MANGLE_OPTION],
827 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
829 # _AM_SET_OPTION(NAME)
830 # ------------------------------
831 # Set option NAME. Presently that only means defining a flag for this option.
832 AC_DEFUN([_AM_SET_OPTION],
833 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
835 # _AM_SET_OPTIONS(OPTIONS)
836 # ----------------------------------
837 # OPTIONS is a space-separated list of Automake options.
838 AC_DEFUN([_AM_SET_OPTIONS],
839 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
841 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
842 # -------------------------------------------
843 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
844 AC_DEFUN([_AM_IF_OPTION],
845 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
847 # Check to make sure that the build environment is sane. -*- Autoconf -*-
849 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
850 # Free Software Foundation, Inc.
852 # This file is free software; the Free Software Foundation
853 # gives unlimited permission to copy and/or distribute it,
854 # with or without modifications, as long as this notice is preserved.
860 AC_DEFUN([AM_SANITY_CHECK],
861 [AC_MSG_CHECKING([whether build environment is sane])
864 echo timestamp > conftest.file
865 # Reject unsafe characters in $srcdir or the absolute working directory
866 # name. Accept space and tab only in the latter.
870 *[[\\\"\#\$\&\'\`$am_lf]]*)
871 AC_MSG_ERROR([unsafe absolute working directory name]);;
874 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
875 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
878 # Do `set' in a subshell so we don't clobber the current shell's
879 # arguments. Must try -L first in case configure is actually a
880 # symlink; some systems play weird games with the mod time of symlinks
881 # (eg FreeBSD returns the mod time of the symlink's containing
884 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
885 if test "$[*]" = "X"; then
887 set X `ls -t "$srcdir/configure" conftest.file`
890 if test "$[*]" != "X $srcdir/configure conftest.file" \
891 && test "$[*]" != "X conftest.file $srcdir/configure"; then
893 # If neither matched, then we have a broken ls. This can happen
894 # if, for instance, CONFIG_SHELL is bash and it inherits a
895 # broken ls alias from the environment. This has actually
896 # happened. Such a system could not be considered "sane".
897 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
898 alias in your environment])
901 test "$[2]" = conftest.file
907 AC_MSG_ERROR([newly created file is older than distributed files!
908 Check your system clock])
912 # Copyright (C) 2009 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_SILENT_RULES([DEFAULT])
921 # --------------------------
922 # Enable less verbose build rules; with the default set to DEFAULT
923 # (`yes' being less verbose, `no' or empty being verbose).
924 AC_DEFUN([AM_SILENT_RULES],
925 [AC_ARG_ENABLE([silent-rules],
926 [ --enable-silent-rules less verbose build output (undo: `make V=1')
927 --disable-silent-rules verbose build output (undo: `make V=0')])
928 case $enable_silent_rules in
929 yes) AM_DEFAULT_VERBOSITY=0;;
930 no) AM_DEFAULT_VERBOSITY=1;;
931 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
933 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
935 AC_SUBST([AM_BACKSLASH])dnl
936 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
939 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
941 # This file is free software; the Free Software Foundation
942 # gives unlimited permission to copy and/or distribute it,
943 # with or without modifications, as long as this notice is preserved.
945 # AM_PROG_INSTALL_STRIP
946 # ---------------------
947 # One issue with vendor `install' (even GNU) is that you can't
948 # specify the program used to strip binaries. This is especially
949 # annoying in cross-compiling environments, where the build's strip
950 # is unlikely to handle the host's binaries.
951 # Fortunately install-sh will honor a STRIPPROG variable, so we
952 # always use install-sh in `make install-strip', and initialize
953 # STRIPPROG with the value of the STRIP variable (set by the user).
954 AC_DEFUN([AM_PROG_INSTALL_STRIP],
955 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
956 # Installed binaries are usually stripped using `strip' when the user
957 # run `make install-strip'. However `strip' might not be the right
958 # tool to use in cross-compilation environments, therefore Automake
959 # will honor the `STRIP' environment variable to overrule this program.
960 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
961 if test "$cross_compiling" != no; then
962 AC_CHECK_TOOL([STRIP], [strip], :)
964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
965 AC_SUBST([INSTALL_STRIP_PROGRAM])])
967 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
969 # This file is free software; the Free Software Foundation
970 # gives unlimited permission to copy and/or distribute it,
971 # with or without modifications, as long as this notice is preserved.
975 # _AM_SUBST_NOTMAKE(VARIABLE)
976 # ---------------------------
977 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
978 # This macro is traced by Automake.
979 AC_DEFUN([_AM_SUBST_NOTMAKE])
981 # AM_SUBST_NOTMAKE(VARIABLE)
982 # ---------------------------
983 # Public sister of _AM_SUBST_NOTMAKE.
984 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
986 # Check how to create a tarball. -*- Autoconf -*-
988 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
990 # This file is free software; the Free Software Foundation
991 # gives unlimited permission to copy and/or distribute it,
992 # with or without modifications, as long as this notice is preserved.
996 # _AM_PROG_TAR(FORMAT)
997 # --------------------
998 # Check how to create a tarball in format FORMAT.
999 # FORMAT should be one of `v7', `ustar', or `pax'.
1001 # Substitute a variable $(am__tar) that is a command
1002 # writing to stdout a FORMAT-tarball containing the directory
1004 # tardir=directory && $(am__tar) > result.tar
1006 # Substitute a variable $(am__untar) that extract such
1007 # a tarball read from stdin.
1008 # $(am__untar) < result.tar
1009 AC_DEFUN([_AM_PROG_TAR],
1010 [# Always define AMTAR for backward compatibility.
1011 AM_MISSING_PROG([AMTAR], [tar])
1013 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1014 [m4_case([$1], [ustar],, [pax],,
1015 [m4_fatal([Unknown tar format])])
1016 AC_MSG_CHECKING([how to create a $1 tar archive])
1017 # Loop over all known methods to create a tar archive until one works.
1018 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1019 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1020 # Do not fold the above two line into one, because Tru64 sh and
1021 # Solaris sh will not grok spaces in the rhs of `-'.
1022 for _am_tool in $_am_tools
1026 for _am_tar in tar gnutar gtar;
1028 AM_RUN_LOG([$_am_tar --version]) && break
1030 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1031 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1032 am__untar="$_am_tar -xf -"
1035 # Must skip GNU tar: if it does not support --format= it doesn't create
1036 # ustar tarball either.
1037 (tar --version) >/dev/null 2>&1 && continue
1038 am__tar='tar chf - "$$tardir"'
1039 am__tar_='tar chf - "$tardir"'
1040 am__untar='tar xf -'
1043 am__tar='pax -L -x $1 -w "$$tardir"'
1044 am__tar_='pax -L -x $1 -w "$tardir"'
1048 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1049 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1050 am__untar='cpio -i -H $1 -d'
1059 # If the value was cached, stop now. We just wanted to have am__tar
1060 # and am__untar set.
1061 test -n "${am_cv_prog_tar_$1}" && break
1063 # tar/untar a dummy directory, and stop if the command works
1066 echo GrepMe > conftest.dir/file
1067 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1069 if test -s conftest.tar; then
1070 AM_RUN_LOG([$am__untar <conftest.tar])
1071 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1076 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1077 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1079 AC_SUBST([am__untar])
1082 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1084 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1085 # 2006, 2007, 2008 Free Software Foundation, Inc.
1086 # Written by Gordon Matzigkeit, 1996
1088 # This file is free software; the Free Software Foundation gives
1089 # unlimited permission to copy and/or distribute it, with or without
1090 # modifications, as long as this notice is preserved.
1092 m4_define([_LT_COPYING], [dnl
1093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1094 # 2006, 2007, 2008 Free Software Foundation, Inc.
1095 # Written by Gordon Matzigkeit, 1996
1097 # This file is part of GNU Libtool.
1099 # GNU Libtool is free software; you can redistribute it and/or
1100 # modify it under the terms of the GNU General Public License as
1101 # published by the Free Software Foundation; either version 2 of
1102 # the License, or (at your option) any later version.
1104 # As a special exception to the GNU General Public License,
1105 # if you distribute this file as part of a program or library that
1106 # is built using GNU Libtool, you may include this file under the
1107 # same distribution terms that you use for the rest of that program.
1109 # GNU Libtool is distributed in the hope that it will be useful,
1110 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1112 # GNU General Public License for more details.
1114 # You should have received a copy of the GNU General Public License
1115 # along with GNU Libtool; see the file COPYING. If not, a copy
1116 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1117 # obtained by writing to the Free Software Foundation, Inc.,
1118 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1124 # LT_PREREQ(VERSION)
1125 # ------------------
1126 # Complain and exit if this libtool version is less that VERSION.
1127 m4_defun([LT_PREREQ],
1128 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1130 [m4_fatal([Libtool version $1 or higher is required],
1135 # _LT_CHECK_BUILDDIR
1136 # ------------------
1137 # Complain if the absolute build directory name contains unusual characters
1138 m4_defun([_LT_CHECK_BUILDDIR],
1141 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1146 # LT_INIT([OPTIONS])
1147 # ------------------
1149 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1150 AC_BEFORE([$0], [LT_LANG])dnl
1151 AC_BEFORE([$0], [LT_OUTPUT])dnl
1152 AC_BEFORE([$0], [LTDL_INIT])dnl
1153 m4_require([_LT_CHECK_BUILDDIR])dnl
1155 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1156 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1157 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1158 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1159 dnl unless we require an AC_DEFUNed macro:
1160 AC_REQUIRE([LTOPTIONS_VERSION])dnl
1161 AC_REQUIRE([LTSUGAR_VERSION])dnl
1162 AC_REQUIRE([LTVERSION_VERSION])dnl
1163 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1164 m4_require([_LT_PROG_LTMAIN])dnl
1167 _LT_SET_OPTIONS([$0], [$1])
1169 # This can be used to rebuild libtool when needed
1170 LIBTOOL_DEPS="$ltmain"
1172 # Always use our own libtool.
1173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1174 AC_SUBST(LIBTOOL)dnl
1179 m4_define([LT_INIT])
1183 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1184 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1185 dnl aclocal-1.4 backwards compatibility:
1186 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1187 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1190 # _LT_CC_BASENAME(CC)
1191 # -------------------
1192 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1193 m4_defun([_LT_CC_BASENAME],
1194 [for cc_temp in $1""; do
1196 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1197 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1202 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1206 # _LT_FILEUTILS_DEFAULTS
1207 # ----------------------
1208 # It is okay to use these file commands and assume they have been set
1209 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1210 m4_defun([_LT_FILEUTILS_DEFAULTS],
1214 ])# _LT_FILEUTILS_DEFAULTS
1219 m4_defun([_LT_SETUP],
1220 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1221 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1222 _LT_DECL([], [host_alias], [0], [The host system])dnl
1223 _LT_DECL([], [host], [0])dnl
1224 _LT_DECL([], [host_os], [0])dnl
1226 _LT_DECL([], [build_alias], [0], [The build system])dnl
1227 _LT_DECL([], [build], [0])dnl
1228 _LT_DECL([], [build_os], [0])dnl
1230 AC_REQUIRE([AC_PROG_CC])dnl
1231 AC_REQUIRE([LT_PATH_LD])dnl
1232 AC_REQUIRE([LT_PATH_NM])dnl
1234 AC_REQUIRE([AC_PROG_LN_S])dnl
1235 test -z "$LN_S" && LN_S="ln -s"
1236 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1238 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1239 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1240 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1242 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1243 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1244 m4_require([_LT_CMD_RELOAD])dnl
1245 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1246 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1247 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1249 _LT_CONFIG_LIBTOOL_INIT([
1250 # See if we are running on zsh, and set the options which allow our
1251 # commands through without removal of \ escapes INIT.
1252 if test -n "\${ZSH_VERSION+set}" ; then
1253 setopt NO_GLOB_SUBST
1256 if test -n "${ZSH_VERSION+set}" ; then
1257 setopt NO_GLOB_SUBST
1262 m4_require([_LT_TAG_COMPILER])dnl
1263 _LT_PROG_ECHO_BACKSLASH
1267 # AIX sometimes has problems with the GCC collect2 program. For some
1268 # reason, if we set the COLLECT_NAMES environment variable, the problems
1269 # vanish in a puff of smoke.
1270 if test "X${COLLECT_NAMES+set}" != Xset; then
1272 export COLLECT_NAMES
1277 # Sed substitution that helps us do robust quoting. It backslashifies
1278 # metacharacters that are still active within 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'
1296 can_build_shared=yes
1298 # All known linkers require a `.a' archive for static linking (except MSVC,
1299 # which needs '.lib').
1302 with_gnu_ld="$lt_cv_prog_gnu_ld"
1305 old_CFLAGS="$CFLAGS"
1307 # Set sane defaults for various variables
1308 test -z "$CC" && CC=cc
1309 test -z "$LTCC" && LTCC=$CC
1310 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1311 test -z "$LD" && LD=ld
1312 test -z "$ac_objext" && ac_objext=o
1314 _LT_CC_BASENAME([$compiler])
1316 # Only perform the check for file, if the check method requires it
1317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1318 case $deplibs_check_method in
1320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1326 # Use C for the default configuration in the libtool script
1327 LT_SUPPORTED_TAG([CC])
1329 _LT_LANG_DEFAULT_CONFIG
1336 # Note that this code is called both from `configure', and `config.status'
1337 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1338 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1339 # so we pass a copy along to make sure it has a sensible value anyway.
1340 m4_defun([_LT_PROG_LTMAIN],
1341 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1342 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1343 ltmain="$ac_aux_dir/ltmain.sh"
1348 # So that we can recreate a full libtool script including additional
1349 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1350 # in macros and then make a single call at the end using the `libtool'
1354 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1355 # ----------------------------------------
1356 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1357 m4_define([_LT_CONFIG_LIBTOOL_INIT],
1359 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1364 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1367 # _LT_CONFIG_LIBTOOL([COMMANDS])
1368 # ------------------------------
1369 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1370 m4_define([_LT_CONFIG_LIBTOOL],
1372 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1377 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1380 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1381 # -----------------------------------------------------
1382 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1383 [_LT_CONFIG_LIBTOOL([$1])
1384 _LT_CONFIG_LIBTOOL_INIT([$2])
1388 # _LT_FORMAT_COMMENT([COMMENT])
1389 # -----------------------------
1390 # Add leading comment marks to the start of each line, and a trailing
1391 # full-stop to the whole comment if one is not present already.
1392 m4_define([_LT_FORMAT_COMMENT],
1394 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1395 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1402 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1403 # -------------------------------------------------------------------
1404 # CONFIGNAME is the name given to the value in the libtool script.
1405 # VARNAME is the (base) name used in the configure script.
1406 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1407 # VARNAME. Any other value will be used directly.
1408 m4_define([_LT_DECL],
1409 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1410 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1411 [m4_ifval([$1], [$1], [$2])])
1412 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1414 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1415 lt_dict_add_subkey([lt_decl_dict], [$2],
1416 [tagged?], [m4_ifval([$5], [yes], [no])])])
1420 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1421 # --------------------------------------------------------
1422 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1425 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1426 # ------------------------------------------------
1427 m4_define([lt_decl_tag_varnames],
1428 [_lt_decl_filter([tagged?], [yes], $@)])
1431 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1432 # ---------------------------------------------------------
1433 m4_define([_lt_decl_filter],
1435 [0], [m4_fatal([$0: too few arguments: $#])],
1436 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1437 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1438 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1439 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1443 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1444 # --------------------------------------------------
1445 m4_define([lt_decl_quote_varnames],
1446 [_lt_decl_filter([value], [1], $@)])
1449 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1450 # ---------------------------------------------------
1451 m4_define([lt_decl_dquote_varnames],
1452 [_lt_decl_filter([value], [2], $@)])
1455 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1456 # ---------------------------------------------------
1457 m4_define([lt_decl_varnames_tagged],
1458 [m4_assert([$# <= 2])dnl
1459 _$0(m4_quote(m4_default([$1], [[, ]])),
1460 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1461 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1462 m4_define([_lt_decl_varnames_tagged],
1463 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1466 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1467 # ------------------------------------------------
1468 m4_define([lt_decl_all_varnames],
1469 [_$0(m4_quote(m4_default([$1], [[, ]])),
1471 m4_quote(lt_decl_varnames),
1472 m4_quote(m4_shift($@))))[]dnl
1474 m4_define([_lt_decl_all_varnames],
1475 [lt_join($@, lt_decl_varnames_tagged([$1],
1476 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1480 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1481 # ------------------------------------
1482 # Quote a variable value, and forward it to `config.status' so that its
1483 # declaration there will have the same value as in `configure'. VARNAME
1484 # must have a single quote delimited value for this to work.
1485 m4_define([_LT_CONFIG_STATUS_DECLARE],
1486 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1489 # _LT_CONFIG_STATUS_DECLARATIONS
1490 # ------------------------------
1491 # We delimit libtool config variables with single quotes, so when
1492 # we write them to config.status, we have to be sure to quote all
1493 # embedded single quotes properly. In configure, this macro expands
1494 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1496 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1497 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1498 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1499 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1504 # Output comment and list of tags supported by the script
1505 m4_defun([_LT_LIBTOOL_TAGS],
1506 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1507 available_tags="_LT_TAGS"dnl
1511 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1512 # -----------------------------------
1513 # Extract the dictionary values for VARNAME (optionally with TAG) and
1514 # expand to a commented shell variable setting:
1516 # # Some comment about what VAR is for.
1517 # visible_name=$lt_internal_name
1518 m4_define([_LT_LIBTOOL_DECLARE],
1519 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1520 [description])))[]dnl
1521 m4_pushdef([_libtool_name],
1522 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1523 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1524 [0], [_libtool_name=[$]$1],
1525 [1], [_libtool_name=$lt_[]$1],
1526 [2], [_libtool_name=$lt_[]$1],
1527 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1528 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1532 # _LT_LIBTOOL_CONFIG_VARS
1533 # -----------------------
1534 # Produce commented declarations of non-tagged libtool config variables
1535 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1536 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1537 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1538 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1539 [m4_foreach([_lt_var],
1540 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1541 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1544 # _LT_LIBTOOL_TAG_VARS(TAG)
1545 # -------------------------
1546 m4_define([_LT_LIBTOOL_TAG_VARS],
1547 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1548 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1551 # _LT_TAGVAR(VARNAME, [TAGNAME])
1552 # ------------------------------
1553 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1556 # _LT_CONFIG_COMMANDS
1557 # -------------------
1558 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1559 # variables for single and double quote escaping we saved from calls
1560 # to _LT_DECL, we can put quote escaped variables declarations
1561 # into `config.status', and then the shell code to quote escape them in
1562 # for loops in `config.status'. Finally, any additional code accumulated
1563 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1564 m4_defun([_LT_CONFIG_COMMANDS],
1565 [AC_PROVIDE_IFELSE([LT_OUTPUT],
1566 dnl If the libtool generation code has been placed in $CONFIG_LT,
1567 dnl instead of duplicating it all over again into config.status,
1568 dnl then we will have config.status run $CONFIG_LT later, so it
1569 dnl needs to know what name is stored there:
1570 [AC_CONFIG_COMMANDS([libtool],
1571 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1572 dnl If the libtool generation code is destined for config.status,
1573 dnl expand the accumulated commands and init code now:
1574 [AC_CONFIG_COMMANDS([libtool],
1575 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1576 ])#_LT_CONFIG_COMMANDS
1580 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1583 # The HP-UX ksh and POSIX shell print the target directory to stdout
1585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1587 sed_quote_subst='$sed_quote_subst'
1588 double_quote_subst='$double_quote_subst'
1589 delay_variable_subst='$delay_variable_subst'
1590 _LT_CONFIG_STATUS_DECLARATIONS
1592 LTCFLAGS='$LTCFLAGS'
1593 compiler='$compiler_DEFAULT'
1595 # Quote evaled strings.
1596 for var in lt_decl_all_varnames([[ \
1597 ]], lt_decl_quote_varnames); do
1598 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1599 *[[\\\\\\\`\\"\\\$]]*)
1600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1608 # Double-quote double-evaled strings.
1609 for var in lt_decl_all_varnames([[ \
1610 ]], lt_decl_dquote_varnames); do
1611 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1612 *[[\\\\\\\`\\"\\\$]]*)
1613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1621 # Fix-up fallback echo if it was mangled by the above quoting rules.
1623 *'\\\[$]0 --fallback-echo"')dnl "
1624 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1628 _LT_OUTPUT_LIBTOOL_INIT
1634 # This macro allows early generation of the libtool script (before
1635 # AC_OUTPUT is called), incase it is used in configure for compilation
1637 AC_DEFUN([LT_OUTPUT],
1638 [: ${CONFIG_LT=./config.lt}
1639 AC_MSG_NOTICE([creating $CONFIG_LT])
1640 cat >"$CONFIG_LT" <<_LTEOF
1642 # Generated by $as_me.
1643 # Run this file to recreate a libtool stub with the current configuration.
1646 SHELL=\${CONFIG_SHELL-$SHELL}
1649 cat >>"$CONFIG_LT" <<\_LTEOF
1653 exec AS_MESSAGE_FD>&1
1654 exec AS_MESSAGE_LOG_FD>>config.log
1657 AS_BOX([Running $as_me.])
1658 } >&AS_MESSAGE_LOG_FD
1661 \`$as_me' creates a local libtool stub from the current configuration,
1662 for use in further configure time tests before the real libtool is
1665 Usage: $[0] [[OPTIONS]]
1667 -h, --help print this help, then exit
1668 -V, --version print version number, then exit
1669 -q, --quiet do not print progress messages
1670 -d, --debug don't remove temporary files
1672 Report bugs to <bug-libtool@gnu.org>."
1675 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1676 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1677 configured by $[0], generated by m4_PACKAGE_STRING.
1679 Copyright (C) 2008 Free Software Foundation, Inc.
1680 This config.lt script is free software; the Free Software Foundation
1681 gives unlimited permision to copy, distribute and modify it."
1683 while test $[#] != 0
1686 --version | --v* | -V )
1687 echo "$lt_cl_version"; exit 0 ;;
1688 --help | --h* | -h )
1689 echo "$lt_cl_help"; exit 0 ;;
1690 --debug | --d* | -d )
1692 --quiet | --q* | --silent | --s* | -q )
1695 -*) AC_MSG_ERROR([unrecognized option: $[1]
1696 Try \`$[0] --help' for more information.]) ;;
1698 *) AC_MSG_ERROR([unrecognized argument: $[1]
1699 Try \`$[0] --help' for more information.]) ;;
1704 if $lt_cl_silent; then
1705 exec AS_MESSAGE_FD>/dev/null
1709 cat >>"$CONFIG_LT" <<_LTEOF
1710 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1713 cat >>"$CONFIG_LT" <<\_LTEOF
1714 AC_MSG_NOTICE([creating $ofile])
1715 _LT_OUTPUT_LIBTOOL_COMMANDS
1718 chmod +x "$CONFIG_LT"
1720 # configure is writing to config.log, but config.lt does its own redirection,
1721 # appending to config.log, which fails on DOS, as config.log is still kept
1722 # open by configure. Here we exec the FD to /dev/null, effectively closing
1723 # config.log, so it can be properly (re)opened and appended to by config.lt.
1724 if test "$no_create" != yes; then
1726 test "$silent" = yes &&
1727 lt_config_lt_args="$lt_config_lt_args --quiet"
1728 exec AS_MESSAGE_LOG_FD>/dev/null
1729 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1730 exec AS_MESSAGE_LOG_FD>>config.log
1731 $lt_cl_success || AS_EXIT(1)
1738 # If TAG is the built-in tag, create an initial libtool script with a
1739 # default configuration from the untagged config vars. Otherwise add code
1740 # to config.status for appending the configuration named by TAG from the
1741 # matching tagged config vars.
1742 m4_defun([_LT_CONFIG],
1743 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1744 _LT_CONFIG_SAVE_COMMANDS([
1745 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1746 m4_if(_LT_TAG, [C], [
1747 # See if we are running on zsh, and set the options which allow our
1748 # commands through without removal of \ escapes.
1749 if test -n "${ZSH_VERSION+set}" ; then
1750 setopt NO_GLOB_SUBST
1754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1757 cat <<_LT_EOF >> "$cfgfile"
1760 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1761 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1763 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1768 # ### BEGIN LIBTOOL CONFIG
1769 _LT_LIBTOOL_CONFIG_VARS
1770 _LT_LIBTOOL_TAG_VARS
1771 # ### END LIBTOOL CONFIG
1777 cat <<\_LT_EOF >> "$cfgfile"
1778 # AIX sometimes has problems with the GCC collect2 program. For some
1779 # reason, if we set the COLLECT_NAMES environment variable, the problems
1780 # vanish in a puff of smoke.
1781 if test "X${COLLECT_NAMES+set}" != Xset; then
1783 export COLLECT_NAMES
1791 # We use sed instead of cat because bash on DJGPP gets confused if
1792 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1793 # text mode, it properly converts lines to CR/LF. This bash problem
1794 # is reportedly fixed, but why not run on old versions too?
1795 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1796 || (rm -f "$cfgfile"; exit 1)
1798 _LT_PROG_XSI_SHELLFNS
1800 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1801 || (rm -f "$cfgfile"; exit 1)
1803 mv -f "$cfgfile" "$ofile" ||
1804 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1807 [cat <<_LT_EOF >> "$ofile"
1809 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1810 dnl in a comment (ie after a #).
1811 # ### BEGIN LIBTOOL TAG CONFIG: $1
1812 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
1813 # ### END LIBTOOL TAG CONFIG: $1
1820 TIMESTAMP='$TIMESTAMP'
1822 ofile='$ofile'], [])
1823 ])dnl /_LT_CONFIG_SAVE_COMMANDS
1827 # LT_SUPPORTED_TAG(TAG)
1828 # ---------------------
1829 # Trace this macro to discover what tags are supported by the libtool
1830 # --tag option, using:
1831 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1832 AC_DEFUN([LT_SUPPORTED_TAG], [])
1835 # C support is built-in for now
1836 m4_define([_LT_LANG_C_enabled], [])
1837 m4_define([_LT_TAGS], [])
1842 # Enable libtool support for the given language if not already enabled.
1844 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1847 [C++], [_LT_LANG(CXX)],
1848 [Java], [_LT_LANG(GCJ)],
1849 [Fortran 77], [_LT_LANG(F77)],
1850 [Fortran], [_LT_LANG(FC)],
1851 [Windows Resource], [_LT_LANG(RC)],
1852 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1854 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1858 # _LT_LANG(LANGNAME)
1859 # ------------------
1860 m4_defun([_LT_LANG],
1861 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1862 [LT_SUPPORTED_TAG([$1])dnl
1863 m4_append([_LT_TAGS], [$1 ])dnl
1864 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1865 _LT_LANG_$1_CONFIG($1)])dnl
1869 # _LT_LANG_DEFAULT_CONFIG
1870 # -----------------------
1871 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1872 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1874 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1876 AC_PROVIDE_IFELSE([AC_PROG_F77],
1878 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1880 AC_PROVIDE_IFELSE([AC_PROG_FC],
1882 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1884 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1885 dnl pulling things in needlessly.
1886 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1888 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1890 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1892 [m4_ifdef([AC_PROG_GCJ],
1893 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1894 m4_ifdef([A][M_PROG_GCJ],
1895 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1896 m4_ifdef([LT_PROG_GCJ],
1897 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1899 AC_PROVIDE_IFELSE([LT_PROG_RC],
1901 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1902 ])# _LT_LANG_DEFAULT_CONFIG
1905 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1906 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1907 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1908 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1909 dnl aclocal-1.4 backwards compatibility:
1910 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1911 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1912 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1913 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1918 m4_defun([_LT_TAG_COMPILER],
1919 [AC_REQUIRE([AC_PROG_CC])dnl
1921 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1922 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1923 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1924 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1926 # If no C compiler was specified, use CC.
1929 # If no C compiler flags were specified, use CFLAGS.
1930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1932 # Allow CC to be a program name with arguments.
1934 ])# _LT_TAG_COMPILER
1937 # _LT_COMPILER_BOILERPLATE
1938 # ------------------------
1939 # Check for compiler boilerplate output or warnings with
1940 # the simple compiler test code.
1941 m4_defun([_LT_COMPILER_BOILERPLATE],
1942 [m4_require([_LT_DECL_SED])dnl
1943 ac_outfile=conftest.$ac_objext
1944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1946 _lt_compiler_boilerplate=`cat conftest.err`
1948 ])# _LT_COMPILER_BOILERPLATE
1951 # _LT_LINKER_BOILERPLATE
1952 # ----------------------
1953 # Check for linker boilerplate output or warnings with
1954 # the simple link test code.
1955 m4_defun([_LT_LINKER_BOILERPLATE],
1956 [m4_require([_LT_DECL_SED])dnl
1957 ac_outfile=conftest.$ac_objext
1958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1960 _lt_linker_boilerplate=`cat conftest.err`
1962 ])# _LT_LINKER_BOILERPLATE
1964 # _LT_REQUIRED_DARWIN_CHECKS
1965 # -------------------------
1966 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1968 rhapsody* | darwin*)
1969 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1970 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1971 AC_CHECK_TOOL([LIPO], [lipo], [:])
1972 AC_CHECK_TOOL([OTOOL], [otool], [:])
1973 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1974 _LT_DECL([], [DSYMUTIL], [1],
1975 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1976 _LT_DECL([], [NMEDIT], [1],
1977 [Tool to change global to local symbols on Mac OS X])
1978 _LT_DECL([], [LIPO], [1],
1979 [Tool to manipulate fat objects and archives on Mac OS X])
1980 _LT_DECL([], [OTOOL], [1],
1981 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1982 _LT_DECL([], [OTOOL64], [1],
1983 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1985 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1986 [lt_cv_apple_cc_single_mod=no
1987 if test -z "${LT_MULTI_MODULE}"; then
1988 # By default we will add the -single_module flag. You can override
1989 # by either setting the environment variable LT_MULTI_MODULE
1990 # non-empty at configure time, or by adding -multi_module to the
1992 rm -rf libconftest.dylib*
1993 echo "int foo(void){return 1;}" > conftest.c
1994 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1995 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1996 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1997 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1999 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
2000 lt_cv_apple_cc_single_mod=yes
2002 cat conftest.err >&AS_MESSAGE_LOG_FD
2004 rm -rf libconftest.dylib*
2007 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2008 [lt_cv_ld_exported_symbols_list],
2009 [lt_cv_ld_exported_symbols_list=no
2010 save_LDFLAGS=$LDFLAGS
2011 echo "_main" > conftest.sym
2012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2013 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2014 [lt_cv_ld_exported_symbols_list=yes],
2015 [lt_cv_ld_exported_symbols_list=no])
2016 LDFLAGS="$save_LDFLAGS"
2019 rhapsody* | darwin1.[[012]])
2020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
2022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2023 darwin*) # darwin 5.x on
2024 # if running on 10.5 or later, the deployment target defaults
2025 # to the OS version, if on x86, and 10.4, the deployment
2026 # target defaults to 10.4. Don't you love it?
2027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2028 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
2029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
2033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
2037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
2038 _lt_dar_single_mod='$single_module'
2040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
2041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
2043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
2045 if test "$DSYMUTIL" != ":"; then
2046 _lt_dsymutil='~$DSYMUTIL $lib || :'
2055 # _LT_DARWIN_LINKER_FEATURES
2056 # --------------------------
2057 # Checks for linker and compiler features on darwin
2058 m4_defun([_LT_DARWIN_LINKER_FEATURES],
2060 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2061 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2062 _LT_TAGVAR(hardcode_direct, $1)=no
2063 _LT_TAGVAR(hardcode_automatic, $1)=yes
2064 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2065 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2066 _LT_TAGVAR(link_all_deplibs, $1)=yes
2067 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2068 case $cc_basename in
2069 ifort*) _lt_dar_can_shared=yes ;;
2070 *) _lt_dar_can_shared=$GCC ;;
2072 if test "$_lt_dar_can_shared" = "yes"; then
2073 output_verbose_link_cmd=echo
2074 _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}"
2075 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2076 _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}"
2077 _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}"
2079 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2080 _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}"
2081 _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}"
2085 _LT_TAGVAR(ld_shlibs, $1)=no
2089 # _LT_SYS_MODULE_PATH_AIX
2090 # -----------------------
2091 # Links a minimal program and checks the executable
2092 # for the system default hardcoded library path. In most cases,
2093 # this is /usr/lib:/lib, but when the MPI compilers are used
2094 # the location of the communication and MPI libs are included too.
2095 # If we don't find anything, use the default library path according
2096 # to the aix ld manual.
2097 m4_defun([_LT_SYS_MODULE_PATH_AIX],
2098 [m4_require([_LT_DECL_SED])dnl
2099 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2100 lt_aix_libpath_sed='
2101 /Import File Strings/,/^$/ {
2107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2108 # Check for a 64-bit object if we didn't find anything.
2109 if test -z "$aix_libpath"; then
2110 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2112 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2113 ])# _LT_SYS_MODULE_PATH_AIX
2116 # _LT_SHELL_INIT(ARG)
2117 # -------------------
2118 m4_define([_LT_SHELL_INIT],
2119 [ifdef([AC_DIVERSION_NOTICE],
2120 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2121 [AC_DIVERT_PUSH(NOTICE)])
2127 # _LT_PROG_ECHO_BACKSLASH
2128 # -----------------------
2129 # Add some code to the start of the generated configure script which
2130 # will find an echo command which doesn't interpret backslashes.
2131 m4_defun([_LT_PROG_ECHO_BACKSLASH],
2133 # Check that we are running under the correct shell.
2134 SHELL=${CONFIG_SHELL-/bin/sh}
2138 # Remove one level of quotation (which was required for Make).
2139 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2143 ECHO=${lt_ECHO-echo}
2144 if test "X[$]1" = X--no-reexec; then
2145 # Discard the --no-reexec flag, and continue.
2147 elif test "X[$]1" = X--fallback-echo; then
2148 # Avoid inline document here, it may be left over
2150 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2151 # Yippee, $ECHO works!
2154 # Restart under the correct shell.
2155 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2158 if test "X[$]1" = X--fallback-echo; then
2159 # used as fallback echo
2167 # The HP-UX ksh and POSIX shell print the target directory to stdout
2169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2171 if test -z "$lt_ECHO"; then
2172 if test "X${echo_test_string+set}" != Xset; then
2173 # find a string as large as possible, as long as the shell can cope with it
2174 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2175 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2176 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2177 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2184 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2185 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2186 test "X$echo_testing_string" = "X$echo_test_string"; then
2189 # The Solaris, AIX, and Digital Unix default echo programs unquote
2190 # backslashes. This makes it impossible to quote backslashes using
2191 # echo "$something" | sed 's/\\/\\\\/g'
2193 # So, first we look for a working echo in the user's PATH.
2195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2196 for dir in $PATH /usr/ucb; do
2198 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2199 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2200 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2201 test "X$echo_testing_string" = "X$echo_test_string"; then
2208 if test "X$ECHO" = Xecho; then
2209 # We didn't find a better echo, so look for alternatives.
2210 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2211 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2212 test "X$echo_testing_string" = "X$echo_test_string"; then
2213 # This shell has a builtin print -r that does the trick.
2215 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2216 test "X$CONFIG_SHELL" != X/bin/ksh; then
2217 # If we have ksh, try running configure again with it.
2218 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2219 export ORIGINAL_CONFIG_SHELL
2220 CONFIG_SHELL=/bin/ksh
2222 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2226 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2227 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2228 test "X$echo_testing_string" = "X$echo_test_string"; then
2229 # Cool, printf works
2231 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2232 test "X$echo_testing_string" = 'X\t' &&
2233 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2234 test "X$echo_testing_string" = "X$echo_test_string"; then
2235 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2237 SHELL="$CONFIG_SHELL"
2239 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2240 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2241 test "X$echo_testing_string" = 'X\t' &&
2242 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2243 test "X$echo_testing_string" = "X$echo_test_string"; then
2244 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2246 # maybe with a smaller string...
2249 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2250 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2257 if test "$prev" != 'sed 50q "[$]0"'; then
2258 echo_test_string=`eval $prev`
2259 export echo_test_string
2260 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2262 # Oops. We lost completely, so just stick with echo.
2271 # Copy echo and quote the copy suitably for passing to libtool from
2272 # the Makefile, instead of quoting the original, which is used later.
2274 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2275 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2280 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2281 _LT_DECL([], [ECHO], [1],
2282 [An echo program that does not interpret backslashes])
2283 ])# _LT_PROG_ECHO_BACKSLASH
2288 m4_defun([_LT_ENABLE_LOCK],
2289 [AC_ARG_ENABLE([libtool-lock],
2290 [AS_HELP_STRING([--disable-libtool-lock],
2291 [avoid locking (might break parallel builds)])])
2292 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2294 # Some flags need to be propagated to the compiler or linker for good
2298 # Find out which ABI we are using.
2299 echo 'int i;' > conftest.$ac_ext
2300 if AC_TRY_EVAL(ac_compile); then
2301 case `/usr/bin/file conftest.$ac_objext` in
2313 # Find out which ABI we are using.
2314 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2315 if AC_TRY_EVAL(ac_compile); then
2316 if test "$lt_cv_prog_gnu_ld" = yes; then
2317 case `/usr/bin/file conftest.$ac_objext` in
2319 LD="${LD-ld} -melf32bsmip"
2322 LD="${LD-ld} -melf32bmipn32"
2325 LD="${LD-ld} -melf64bmip"
2329 case `/usr/bin/file conftest.$ac_objext` in
2345 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2346 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2347 # Find out which ABI we are using.
2348 echo 'int i;' > conftest.$ac_ext
2349 if AC_TRY_EVAL(ac_compile); then
2350 case `/usr/bin/file conftest.o` in
2353 x86_64-*kfreebsd*-gnu)
2354 LD="${LD-ld} -m elf_i386_fbsd"
2357 LD="${LD-ld} -m elf_i386"
2359 ppc64-*linux*|powerpc64-*linux*)
2360 LD="${LD-ld} -m elf32ppclinux"
2363 LD="${LD-ld} -m elf_s390"
2366 LD="${LD-ld} -m elf32_sparc"
2372 x86_64-*kfreebsd*-gnu)
2373 LD="${LD-ld} -m elf_x86_64_fbsd"
2376 LD="${LD-ld} -m elf_x86_64"
2378 ppc*-*linux*|powerpc*-*linux*)
2379 LD="${LD-ld} -m elf64ppc"
2381 s390*-*linux*|s390*-*tpf*)
2382 LD="${LD-ld} -m elf64_s390"
2385 LD="${LD-ld} -m elf64_sparc"
2395 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2396 SAVE_CFLAGS="$CFLAGS"
2397 CFLAGS="$CFLAGS -belf"
2398 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2400 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2404 CFLAGS="$SAVE_CFLAGS"
2408 # Find out which ABI we are using.
2409 echo 'int i;' > conftest.$ac_ext
2410 if AC_TRY_EVAL(ac_compile); then
2411 case `/usr/bin/file conftest.o` in
2413 case $lt_cv_prog_gnu_ld in
2414 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2416 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2428 need_locks="$enable_libtool_lock"
2432 # _LT_CMD_OLD_ARCHIVE
2433 # -------------------
2434 m4_defun([_LT_CMD_OLD_ARCHIVE],
2435 [AC_CHECK_TOOL(AR, ar, false)
2436 test -z "$AR" && AR=ar
2437 test -z "$AR_FLAGS" && AR_FLAGS=cru
2438 _LT_DECL([], [AR], [1], [The archiver])
2439 _LT_DECL([], [AR_FLAGS], [1])
2441 AC_CHECK_TOOL(STRIP, strip, :)
2442 test -z "$STRIP" && STRIP=:
2443 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
2445 AC_CHECK_TOOL(RANLIB, ranlib, :)
2446 test -z "$RANLIB" && RANLIB=:
2447 _LT_DECL([], [RANLIB], [1],
2448 [Commands used to install an old-style archive])
2450 # Determine commands to create old-style static archives.
2451 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2452 old_postinstall_cmds='chmod 644 $oldlib'
2453 old_postuninstall_cmds=
2455 if test -n "$RANLIB"; then
2458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2464 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2466 _LT_DECL([], [old_postinstall_cmds], [2])
2467 _LT_DECL([], [old_postuninstall_cmds], [2])
2468 _LT_TAGDECL([], [old_archive_cmds], [2],
2469 [Commands used to build an old-style archive])
2470 ])# _LT_CMD_OLD_ARCHIVE
2473 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2474 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2475 # ----------------------------------------------------------------
2476 # Check whether the given compiler option works
2477 AC_DEFUN([_LT_COMPILER_OPTION],
2478 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2479 m4_require([_LT_DECL_SED])dnl
2480 AC_CACHE_CHECK([$1], [$2],
2482 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2484 lt_compiler_flag="$3"
2485 # Insert the option either (1) after the last *FLAGS variable, or
2486 # (2) before a word containing "conftest.", or (3) at the end.
2487 # Note that $ac_compile itself does not contain backslashes and begins
2488 # with a dollar sign (not a hyphen), so the echo should work correctly.
2489 # The option is referenced via a variable to avoid confusing sed.
2490 lt_compile=`echo "$ac_compile" | $SED \
2491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2492 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2493 -e 's:$: $lt_compiler_flag:'`
2494 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2495 (eval "$lt_compile" 2>conftest.err)
2497 cat conftest.err >&AS_MESSAGE_LOG_FD
2498 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2499 if (exit $ac_status) && test -s "$ac_outfile"; then
2500 # The compiler can only warn and ignore the option if not recognized
2501 # So say no if there are warnings other than the usual output.
2502 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2511 if test x"[$]$2" = xyes; then
2512 m4_if([$5], , :, [$5])
2514 m4_if([$6], , :, [$6])
2516 ])# _LT_COMPILER_OPTION
2519 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2520 dnl aclocal-1.4 backwards compatibility:
2521 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2524 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2525 # [ACTION-SUCCESS], [ACTION-FAILURE])
2526 # ----------------------------------------------------
2527 # Check whether the given linker option works
2528 AC_DEFUN([_LT_LINKER_OPTION],
2529 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2530 m4_require([_LT_DECL_SED])dnl
2531 AC_CACHE_CHECK([$1], [$2],
2533 save_LDFLAGS="$LDFLAGS"
2534 LDFLAGS="$LDFLAGS $3"
2535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2537 # The linker can only warn and ignore the option if not recognized
2538 # So say no if there are warnings
2539 if test -s conftest.err; then
2540 # Append any errors to the config.log.
2541 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2544 if diff conftest.exp conftest.er2 >/dev/null; then
2552 LDFLAGS="$save_LDFLAGS"
2555 if test x"[$]$2" = xyes; then
2556 m4_if([$4], , :, [$4])
2558 m4_if([$5], , :, [$5])
2560 ])# _LT_LINKER_OPTION
2563 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2564 dnl aclocal-1.4 backwards compatibility:
2565 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2570 AC_DEFUN([LT_CMD_MAX_LEN],
2571 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2572 # find the maximum length of command line arguments
2573 AC_MSG_CHECKING([the maximum length of command line arguments])
2574 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2580 # On DJGPP, this test can blow up pretty badly due to problems in libc
2581 # (any single argument exceeding 2000 bytes causes a buffer overrun
2582 # during glob expansion). Even if it were fixed, the result of this
2583 # check would be larger than it should be.
2584 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2588 # Under GNU Hurd, this test is not required because there is
2589 # no limit to the length of command line arguments.
2590 # Libtool will interpret -1 as no limit whatsoever
2591 lt_cv_sys_max_cmd_len=-1;
2594 cygwin* | mingw* | cegcc*)
2595 # On Win9x/ME, this test blows up -- it succeeds, but takes
2596 # about 5 minutes as the teststring grows exponentially.
2597 # Worse, since 9x/ME are not pre-emptively multitasking,
2598 # you end up with a "frozen" computer, even though with patience
2599 # the test eventually succeeds (with a max line length of 256k).
2600 # Instead, let's just punt: use the minimum linelength reported by
2601 # all of the supported platforms: 8192 (on NT/2K/XP).
2602 lt_cv_sys_max_cmd_len=8192;
2606 # On AmigaOS with pdksh, this test takes hours, literally.
2607 # So we just punt and use a minimum line length of 8192.
2608 lt_cv_sys_max_cmd_len=8192;
2611 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2612 # This has been around since 386BSD, at least. Likely further.
2613 if test -x /sbin/sysctl; then
2614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2615 elif test -x /usr/sbin/sysctl; then
2616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2620 # And add a safety zone
2621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2627 lt_cv_sys_max_cmd_len=196608
2631 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2632 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2633 # nice to cause kernel panics so lets avoid the loop below.
2634 # First set a reasonable default.
2635 lt_cv_sys_max_cmd_len=16384
2637 if test -x /sbin/sysconfig; then
2638 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2639 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2644 lt_cv_sys_max_cmd_len=102400
2646 sysv5* | sco5v6* | sysv4.2uw2*)
2647 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2648 if test -n "$kargmax"; then
2649 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2651 lt_cv_sys_max_cmd_len=32768
2655 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2656 if test -n "$lt_cv_sys_max_cmd_len"; then
2657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2660 # Make teststring a little bigger before we do anything with it.
2661 # a 1K string should be a reasonable start.
2662 for i in 1 2 3 4 5 6 7 8 ; do
2663 teststring=$teststring$teststring
2665 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2666 # If test is not a shell built-in, we'll probably end up computing a
2667 # maximum length that is only half of the actual maximum length, but
2669 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2670 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2671 test $i != 17 # 1/2 MB should be enough
2674 teststring=$teststring$teststring
2676 # Only check the string length outside the loop.
2677 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2679 # Add a significant safety factor because C++ compilers can tack on
2680 # massive amounts of additional arguments before passing them to the
2681 # linker. It appears as though 1/2 is a usable value.
2682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2687 if test -n $lt_cv_sys_max_cmd_len ; then
2688 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2692 max_cmd_len=$lt_cv_sys_max_cmd_len
2693 _LT_DECL([], [max_cmd_len], [0],
2694 [What is the maximum length of a command?])
2698 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2699 dnl aclocal-1.4 backwards compatibility:
2700 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2705 m4_defun([_LT_HEADER_DLFCN],
2706 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2707 ])# _LT_HEADER_DLFCN
2710 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2711 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2712 # ----------------------------------------------------------------
2713 m4_defun([_LT_TRY_DLOPEN_SELF],
2714 [m4_require([_LT_HEADER_DLFCN])dnl
2715 if test "$cross_compiling" = yes; then :
2718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2719 lt_status=$lt_dlunknown
2720 cat > conftest.$ac_ext <<_LT_EOF
2721 [#line __oline__ "configure"
2722 #include "confdefs.h"
2731 # define LT_DLGLOBAL RTLD_GLOBAL
2734 # define LT_DLGLOBAL DL_GLOBAL
2736 # define LT_DLGLOBAL 0
2740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2741 find out it does not work in some platform. */
2742 #ifndef LT_DLLAZY_OR_NOW
2744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2747 # define LT_DLLAZY_OR_NOW DL_LAZY
2750 # define LT_DLLAZY_OR_NOW RTLD_NOW
2753 # define LT_DLLAZY_OR_NOW DL_NOW
2755 # define LT_DLLAZY_OR_NOW 0
2762 void fnord() { int i=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;
2771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2772 /* dlclose (self); */
2780 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2781 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2784 x$lt_dlno_uscore) $1 ;;
2785 x$lt_dlneed_uscore) $2 ;;
2786 x$lt_dlunknown|x*) $3 ;;
2789 # compilation failed
2794 ])# _LT_TRY_DLOPEN_SELF
2797 # LT_SYS_DLOPEN_SELF
2798 # ------------------
2799 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2800 [m4_require([_LT_HEADER_DLFCN])dnl
2801 if test "x$enable_dlopen" != xyes; then
2802 enable_dlopen=unknown
2803 enable_dlopen_self=unknown
2804 enable_dlopen_self_static=unknown
2811 lt_cv_dlopen="load_add_on"
2813 lt_cv_dlopen_self=yes
2816 mingw* | pw32* | cegcc*)
2817 lt_cv_dlopen="LoadLibrary"
2822 lt_cv_dlopen="dlopen"
2827 # if libdl is installed we need to link against it
2828 AC_CHECK_LIB([dl], [dlopen],
2829 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2832 lt_cv_dlopen_self=yes
2837 AC_CHECK_FUNC([shl_load],
2838 [lt_cv_dlopen="shl_load"],
2839 [AC_CHECK_LIB([dld], [shl_load],
2840 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2841 [AC_CHECK_FUNC([dlopen],
2842 [lt_cv_dlopen="dlopen"],
2843 [AC_CHECK_LIB([dl], [dlopen],
2844 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2845 [AC_CHECK_LIB([svld], [dlopen],
2846 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2847 [AC_CHECK_LIB([dld], [dld_link],
2848 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2857 if test "x$lt_cv_dlopen" != xno; then
2863 case $lt_cv_dlopen in
2865 save_CPPFLAGS="$CPPFLAGS"
2866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2868 save_LDFLAGS="$LDFLAGS"
2869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2872 LIBS="$lt_cv_dlopen_libs $LIBS"
2874 AC_CACHE_CHECK([whether a program can dlopen itself],
2875 lt_cv_dlopen_self, [dnl
2876 _LT_TRY_DLOPEN_SELF(
2877 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2878 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2881 if test "x$lt_cv_dlopen_self" = xyes; then
2882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2883 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2884 lt_cv_dlopen_self_static, [dnl
2885 _LT_TRY_DLOPEN_SELF(
2886 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2887 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2891 CPPFLAGS="$save_CPPFLAGS"
2892 LDFLAGS="$save_LDFLAGS"
2897 case $lt_cv_dlopen_self in
2898 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2899 *) enable_dlopen_self=unknown ;;
2902 case $lt_cv_dlopen_self_static in
2903 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2904 *) enable_dlopen_self_static=unknown ;;
2907 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2908 [Whether dlopen is supported])
2909 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2910 [Whether dlopen of programs is supported])
2911 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2912 [Whether dlopen of statically linked programs is supported])
2913 ])# LT_SYS_DLOPEN_SELF
2916 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2917 dnl aclocal-1.4 backwards compatibility:
2918 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2921 # _LT_COMPILER_C_O([TAGNAME])
2922 # ---------------------------
2923 # Check to see if options -c and -o are simultaneously supported by compiler.
2924 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2925 m4_defun([_LT_COMPILER_C_O],
2926 [m4_require([_LT_DECL_SED])dnl
2927 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2928 m4_require([_LT_TAG_COMPILER])dnl
2929 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2930 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2931 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2932 $RM -r conftest 2>/dev/null
2936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2938 lt_compiler_flag="-o out/conftest2.$ac_objext"
2939 # Insert the option either (1) after the last *FLAGS variable, or
2940 # (2) before a word containing "conftest.", or (3) at the end.
2941 # Note that $ac_compile itself does not contain backslashes and begins
2942 # with a dollar sign (not a hyphen), so the echo should work correctly.
2943 lt_compile=`echo "$ac_compile" | $SED \
2944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2945 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2946 -e 's:$: $lt_compiler_flag:'`
2947 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2948 (eval "$lt_compile" 2>out/conftest.err)
2950 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2951 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2954 # The compiler can only warn and ignore the option if not recognized
2955 # So say no if there are warnings
2956 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2959 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2962 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2964 # SGI C++ compiler will create directory out/ii_files/ for
2965 # template instantiation
2966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2967 $RM out/* && rmdir out
2972 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2973 [Does compiler simultaneously support -c and -o options?])
2974 ])# _LT_COMPILER_C_O
2977 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2978 # ----------------------------------
2979 # Check to see if we can do hard links to lock some files if needed
2980 m4_defun([_LT_COMPILER_FILE_LOCKS],
2981 [m4_require([_LT_ENABLE_LOCK])dnl
2982 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2983 _LT_COMPILER_C_O([$1])
2985 hard_links="nottested"
2986 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2987 # do not overwrite the value of need_locks provided by the user
2988 AC_MSG_CHECKING([if we can lock with hard links])
2991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2993 ln conftest.a conftest.b 2>&5 || hard_links=no
2994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2995 AC_MSG_RESULT([$hard_links])
2996 if test "$hard_links" = no; then
2997 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3003 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3004 ])# _LT_COMPILER_FILE_LOCKS
3009 m4_defun([_LT_CHECK_OBJDIR],
3010 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3011 [rm -f .libs 2>/dev/null
3012 mkdir .libs 2>/dev/null
3013 if test -d .libs; then
3016 # MS-DOS does not allow filenames that begin with a dot.
3019 rmdir .libs 2>/dev/null])
3020 objdir=$lt_cv_objdir
3021 _LT_DECL([], [objdir], [0],
3022 [The name of the directory that contains temporary libtool files])dnl
3023 m4_pattern_allow([LT_OBJDIR])dnl
3024 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3025 [Define to the sub-directory in which libtool stores uninstalled libraries.])
3026 ])# _LT_CHECK_OBJDIR
3029 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3030 # --------------------------------------
3031 # Check hardcoding attributes.
3032 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3033 [AC_MSG_CHECKING([how to hardcode library paths into programs])
3034 _LT_TAGVAR(hardcode_action, $1)=
3035 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3036 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3037 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3039 # We can hardcode non-existent directories.
3040 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3042 # have to relink, otherwise we might link with an installed library
3043 # when we should be linking with a yet-to-be-installed one
3044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3045 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3046 # Linking always hardcodes the temporary library directory.
3047 _LT_TAGVAR(hardcode_action, $1)=relink
3049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3050 _LT_TAGVAR(hardcode_action, $1)=immediate
3053 # We cannot hardcode anything, or else we can only hardcode existing
3055 _LT_TAGVAR(hardcode_action, $1)=unsupported
3057 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3059 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3060 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3061 # Fast installation is not supported
3062 enable_fast_install=no
3063 elif test "$shlibpath_overrides_runpath" = yes ||
3064 test "$enable_shared" = no; then
3065 # Fast installation is not necessary
3066 enable_fast_install=needless
3068 _LT_TAGDECL([], [hardcode_action], [0],
3069 [How to hardcode a shared library path into an executable])
3070 ])# _LT_LINKER_HARDCODE_LIBPATH
3075 m4_defun([_LT_CMD_STRIPLIB],
3076 [m4_require([_LT_DECL_EGREP])
3079 AC_MSG_CHECKING([whether stripping libraries is possible])
3080 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3083 AC_MSG_RESULT([yes])
3085 # FIXME - insert some real tests, host_os isn't really good enough
3088 if test -n "$STRIP" ; then
3089 striplib="$STRIP -x"
3090 old_striplib="$STRIP -S"
3091 AC_MSG_RESULT([yes])
3101 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3102 _LT_DECL([], [striplib], [1])
3103 ])# _LT_CMD_STRIPLIB
3106 # _LT_SYS_DYNAMIC_LINKER([TAG])
3107 # -----------------------------
3108 # PORTME Fill in your ld.so characteristics
3109 m4_defun([_LT_SYS_DYNAMIC_LINKER],
3110 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3111 m4_require([_LT_DECL_EGREP])dnl
3112 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3113 m4_require([_LT_DECL_OBJDUMP])dnl
3114 m4_require([_LT_DECL_SED])dnl
3115 AC_MSG_CHECKING([dynamic linker characteristics])
3118 if test "$GCC" = yes; then
3120 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3121 *) lt_awk_arg="/^libraries:/" ;;
3123 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3124 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3125 # if the path contains ";" then we assume it to be the separator
3126 # otherwise default to the standard path separator (i.e. ":") - it is
3127 # assumed that no part of a normal pathname contains ";" but that should
3128 # okay in the real world where ";" in dirpaths is itself problematic.
3129 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3133 # Ok, now we have the path, separated by spaces, we can step through it
3134 # and add multilib dir if necessary.
3135 lt_tmp_lt_search_path_spec=
3136 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3137 for lt_sys_path in $lt_search_path_spec; do
3138 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3141 test -d "$lt_sys_path" && \
3142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3145 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3146 BEGIN {RS=" "; FS="/|\n";} {
3149 for (lt_i = NF; lt_i > 0; lt_i--) {
3150 if ($lt_i != "" && $lt_i != ".") {
3151 if ($lt_i == "..") {
3154 if (lt_count == 0) {
3155 lt_foo="/" $lt_i lt_foo;
3162 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3163 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3165 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3167 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3170 libname_spec='lib$name'
3178 shlibpath_overrides_runpath=unknown
3180 dynamic_linker="$host_os ld.so"
3181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3182 need_lib_prefix=unknown
3183 hardcode_into_libs=no
3185 # when you set need_version to no, make sure it does not cause -set_version
3186 # flags to be left without arguments
3187 need_version=unknown
3192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3193 shlibpath_var=LIBPATH
3195 # AIX 3 has no versioning support, so we append a major version to the name.
3196 soname_spec='${libname}${release}${shared_ext}$major'
3203 hardcode_into_libs=yes
3204 if test "$host_cpu" = ia64; then
3205 # AIX 5 supports IA64
3206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3207 shlibpath_var=LD_LIBRARY_PATH
3209 # With GCC up to 2.95.x, collect2 would create an import file
3210 # for dependence libraries. The import file would start with
3211 # the line `#! .'. This would cause the generated library to
3212 # depend on `.', always an invalid library. This was fixed in
3213 # development snapshots of GCC prior to 3.0.
3215 aix4 | aix4.[[01]] | aix4.[[01]].*)
3216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3226 # soname into executable. Probably we can add versioning support to
3227 # collect2, so additional links can be useful in future.
3228 if test "$aix_use_runtimelinking" = yes; then
3229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3230 # instead of lib<name>.a to let people know that these are not
3231 # typical AIX shared libraries.
3232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3234 # We preserve .a as extension for shared libraries through AIX4.2
3235 # and later when we are not doing run time linking.
3236 library_names_spec='${libname}${release}.a $libname.a'
3237 soname_spec='${libname}${release}${shared_ext}$major'
3239 shlibpath_var=LIBPATH
3246 # Since July 2007 AmigaOS4 officially supports .so libraries.
3247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3251 library_names_spec='$libname.ixlibrary $libname.a'
3252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3253 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
3259 library_names_spec='${libname}${shared_ext}'
3260 dynamic_linker="$host_os ld.so"
3261 shlibpath_var=LIBRARY_PATH
3267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3268 soname_spec='${libname}${release}${shared_ext}$major'
3269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3270 shlibpath_var=LD_LIBRARY_PATH
3271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3273 # the default ld.so.conf also contains /usr/contrib/lib and
3274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3275 # libtool to hard-code these into programs
3278 cygwin* | mingw* | pw32* | cegcc*)
3279 version_type=windows
3284 case $GCC,$host_os in
3285 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3286 library_names_spec='$libname.dll.a'
3287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3288 postinstall_cmds='base_file=`basename \${file}`~
3289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3290 dldir=$destdir/`dirname \$dlpath`~
3291 test -d \$dldir || mkdir -p \$dldir~
3292 $install_prog $dir/$dlname \$dldir/$dlname~
3293 chmod a+x \$dldir/$dlname~
3294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3298 dlpath=$dir/\$dldll~
3300 shlibpath_overrides_runpath=yes
3304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3306 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3309 # MinGW DLLs use traditional 'lib' prefix
3310 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3311 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3312 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3313 # It is most probably a Windows format PATH printed by
3314 # mingw gcc, but we are running on Cygwin. Gcc prints its search
3315 # path with ; separators, and with drive letters. We can handle the
3316 # drive letters (cygwin fileutils understands them), so leave them,
3317 # especially as we might pass files found there to a mingw objdump,
3318 # which wouldn't understand a cygwinified path. Ahh.
3319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3325 # pw32 DLLs use 'pw' prefix rather than 'lib'
3326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3335 dynamic_linker='Win32 ld.exe'
3336 # FIXME: first we should search . and the directory the executable is in
3340 darwin* | rhapsody*)
3341 dynamic_linker="$host_os dyld"
3345 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3346 soname_spec='${libname}${release}${major}$shared_ext'
3347 shlibpath_overrides_runpath=yes
3348 shlibpath_var=DYLD_LIBRARY_PATH
3349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3351 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3360 soname_spec='${libname}${release}${shared_ext}$major'
3361 shlibpath_var=LD_LIBRARY_PATH
3368 freebsd* | dragonfly*)
3369 # DragonFly does not have aout. When/if they implement a new
3370 # versioning mechanism, adjust this.
3371 if test -x /usr/bin/objformat; then
3372 objformat=`/usr/bin/objformat`
3375 freebsd[[123]]*) objformat=aout ;;
3379 version_type=freebsd-$objformat
3380 case $version_type in
3382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3391 shlibpath_var=LD_LIBRARY_PATH
3394 shlibpath_overrides_runpath=yes
3396 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3397 shlibpath_overrides_runpath=yes
3398 hardcode_into_libs=yes
3400 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3401 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3402 shlibpath_overrides_runpath=no
3403 hardcode_into_libs=yes
3405 *) # from 4.6 on, and DragonFly
3406 shlibpath_overrides_runpath=yes
3407 hardcode_into_libs=yes
3416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3417 soname_spec='${libname}${release}${shared_ext}$major'
3418 shlibpath_var=LD_LIBRARY_PATH
3419 hardcode_into_libs=yes
3422 hpux9* | hpux10* | hpux11*)
3423 # Give a soname corresponding to the major version so that dld.sl refuses to
3424 # link against other versions.
3431 hardcode_into_libs=yes
3432 dynamic_linker="$host_os dld.so"
3433 shlibpath_var=LD_LIBRARY_PATH
3434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3436 soname_spec='${libname}${release}${shared_ext}$major'
3437 if test "X$HPUX_IA64_MODE" = X32; then
3438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3446 hardcode_into_libs=yes
3447 dynamic_linker="$host_os dld.sl"
3448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3451 soname_spec='${libname}${release}${shared_ext}$major'
3452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3457 dynamic_linker="$host_os dld.sl"
3458 shlibpath_var=SHLIB_PATH
3459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3461 soname_spec='${libname}${release}${shared_ext}$major'
3464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3465 postinstall_cmds='chmod 555 $lib'
3472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3473 soname_spec='${libname}${release}${shared_ext}$major'
3474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3475 shlibpath_var=LD_LIBRARY_PATH
3476 shlibpath_overrides_runpath=no
3477 hardcode_into_libs=yes
3480 irix5* | irix6* | nonstopux*)
3482 nonstopux*) version_type=nonstopux ;;
3484 if test "$lt_cv_prog_gnu_ld" = yes; then
3492 soname_spec='${libname}${release}${shared_ext}$major'
3493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3495 irix5* | nonstopux*)
3499 case $LD in # libtool.m4 will add one of these switches to LD
3500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3501 libsuff= shlibsuff= libmagic=32-bit;;
3502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3503 libsuff=32 shlibsuff=N32 libmagic=N32;;
3504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3506 *) libsuff= shlibsuff= libmagic=never-match;;
3510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3511 shlibpath_overrides_runpath=no
3512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3514 hardcode_into_libs=yes
3517 # No shared lib support for Linux oldld, aout, or coff.
3518 linux*oldld* | linux*aout* | linux*coff*)
3522 # This must be Linux ELF.
3523 linux* | k*bsd*-gnu)
3527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3528 soname_spec='${libname}${release}${shared_ext}$major'
3529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3530 shlibpath_var=LD_LIBRARY_PATH
3531 shlibpath_overrides_runpath=no
3532 # Some binutils ld are patched to set DT_RUNPATH
3533 save_LDFLAGS=$LDFLAGS
3535 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3536 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3537 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3538 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3539 [shlibpath_overrides_runpath=yes])])
3540 LDFLAGS=$save_LDFLAGS
3543 # This implies no fast_install, which is unacceptable.
3544 # Some rework will be needed to allow for fast_install
3545 # before this can be enabled.
3546 hardcode_into_libs=yes
3548 # Append ld.so.conf contents to the search path
3549 if test -f /etc/ld.so.conf; then
3550 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3551 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3554 # We used to test for /lib/ld.so.1 and disable shared libraries on
3555 # powerpc, because MkLinux only supported shared libraries with the
3556 # GNU dynamic linker. Since this was broken with cross compilers,
3557 # most powerpc-linux boxes support dynamic linking these days and
3558 # people can always --disable-shared, the test was removed, and we
3559 # assume the GNU/Linux dynamic linker is in use.
3560 dynamic_linker='GNU/Linux ld.so'
3567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3570 dynamic_linker='NetBSD (a.out) ld.so'
3572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3573 soname_spec='${libname}${release}${shared_ext}$major'
3574 dynamic_linker='NetBSD ld.elf_so'
3576 shlibpath_var=LD_LIBRARY_PATH
3577 shlibpath_overrides_runpath=yes
3578 hardcode_into_libs=yes
3583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3584 shlibpath_var=LD_LIBRARY_PATH
3585 shlibpath_overrides_runpath=yes
3592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3593 soname_spec='${libname}${release}${shared_ext}$major'
3594 shlibpath_var=LD_LIBRARY_PATH
3595 shlibpath_overrides_runpath=no
3596 hardcode_into_libs=yes
3597 dynamic_linker='ldqnx.so'
3602 sys_lib_dlsearch_path_spec="/usr/lib"
3604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3606 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3607 *) need_version=no ;;
3609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3611 shlibpath_var=LD_LIBRARY_PATH
3612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3614 openbsd2.[[89]] | openbsd2.[[89]].*)
3615 shlibpath_overrides_runpath=no
3618 shlibpath_overrides_runpath=yes
3622 shlibpath_overrides_runpath=yes
3627 libname_spec='$name'
3630 library_names_spec='$libname${shared_ext} $libname.a'
3631 dynamic_linker='OS/2 ld.exe'
3632 shlibpath_var=LIBPATH
3635 osf3* | osf4* | osf5*)
3639 soname_spec='${libname}${release}${shared_ext}$major'
3640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3641 shlibpath_var=LD_LIBRARY_PATH
3642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3655 soname_spec='${libname}${release}${shared_ext}$major'
3656 shlibpath_var=LD_LIBRARY_PATH
3657 shlibpath_overrides_runpath=yes
3658 hardcode_into_libs=yes
3659 # ldd complains unless libraries are executable
3660 postinstall_cmds='chmod +x $lib'
3665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3666 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3667 shlibpath_var=LD_LIBRARY_PATH
3668 shlibpath_overrides_runpath=yes
3669 if test "$with_gnu_ld" = yes; then
3677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3678 soname_spec='${libname}${release}${shared_ext}$major'
3679 shlibpath_var=LD_LIBRARY_PATH
3680 case $host_vendor in
3682 shlibpath_overrides_runpath=no
3684 runpath_var=LD_RUN_PATH
3692 shlibpath_overrides_runpath=no
3693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3699 if test -d /usr/nec ;then
3701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3702 soname_spec='$libname${shared_ext}.$major'
3703 shlibpath_var=LD_LIBRARY_PATH
3707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3708 version_type=freebsd-elf
3711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3712 soname_spec='${libname}${release}${shared_ext}$major'
3713 shlibpath_var=LD_LIBRARY_PATH
3714 shlibpath_overrides_runpath=yes
3715 hardcode_into_libs=yes
3716 if test "$with_gnu_ld" = yes; then
3717 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3726 sys_lib_dlsearch_path_spec='/usr/lib'
3730 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3735 shlibpath_var=LD_LIBRARY_PATH
3736 shlibpath_overrides_runpath=no
3737 hardcode_into_libs=yes
3742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3743 soname_spec='${libname}${release}${shared_ext}$major'
3744 shlibpath_var=LD_LIBRARY_PATH
3751 AC_MSG_RESULT([$dynamic_linker])
3752 test "$dynamic_linker" = no && can_build_shared=no
3754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3755 if test "$GCC" = yes; then
3756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3759 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3760 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3762 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3763 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3766 _LT_DECL([], [variables_saved_for_relink], [1],
3767 [Variables whose values should be saved in libtool wrapper scripts and
3768 restored at link time])
3769 _LT_DECL([], [need_lib_prefix], [0],
3770 [Do we need the "lib" prefix for modules?])
3771 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3772 _LT_DECL([], [version_type], [0], [Library versioning type])
3773 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3774 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3775 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3776 [Is shlibpath searched before the hard-coded library search path?])
3777 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3778 _LT_DECL([], [library_names_spec], [1],
3779 [[List of archive names. First name is the real one, the rest are links.
3780 The last name is the one that the linker finds with -lNAME]])
3781 _LT_DECL([], [soname_spec], [1],
3782 [[The coded name of the library, if different from the real name]])
3783 _LT_DECL([], [postinstall_cmds], [2],
3784 [Command to use after installation of a shared archive])
3785 _LT_DECL([], [postuninstall_cmds], [2],
3786 [Command to use after uninstallation of a shared archive])
3787 _LT_DECL([], [finish_cmds], [2],
3788 [Commands used to finish a libtool library installation in a directory])
3789 _LT_DECL([], [finish_eval], [1],
3790 [[As "finish_cmds", except a single script fragment to be evaled but
3792 _LT_DECL([], [hardcode_into_libs], [0],
3793 [Whether we should hardcode library paths into libraries])
3794 _LT_DECL([], [sys_lib_search_path_spec], [2],
3795 [Compile-time system search path for libraries])
3796 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3797 [Run-time system search path for libraries])
3798 ])# _LT_SYS_DYNAMIC_LINKER
3801 # _LT_PATH_TOOL_PREFIX(TOOL)
3802 # --------------------------
3803 # find a file program which can recognize shared library
3804 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3805 [m4_require([_LT_DECL_EGREP])dnl
3806 AC_MSG_CHECKING([for $1])
3807 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3809 [[\\/*] | ?:[\\/]*])
3810 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3813 lt_save_MAGIC_CMD="$MAGIC_CMD"
3814 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3815 dnl $ac_dummy forces splitting on constant user-supplied paths.
3816 dnl POSIX.2 word splitting is done only on the output of word expansions,
3817 dnl not every word. This closes a longstanding sh security hole.
3818 ac_dummy="m4_if([$2], , $PATH, [$2])"
3819 for ac_dir in $ac_dummy; do
3821 test -z "$ac_dir" && ac_dir=.
3822 if test -f $ac_dir/$1; then
3823 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3824 if test -n "$file_magic_test_file"; then
3825 case $deplibs_check_method in
3827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3830 $EGREP "$file_magic_regex" > /dev/null; then
3835 *** Warning: the command libtool uses to detect shared libraries,
3836 *** $file_magic_cmd, produces output that libtool cannot recognize.
3837 *** The result is that libtool may fail to recognize shared libraries
3838 *** as such. This will affect the creation of libtool libraries that
3839 *** depend on shared libraries, but programs linked with such libtool
3840 *** libraries will work regardless of this problem. Nevertheless, you
3841 *** may want to report the problem to your system manager and/or to
3842 *** bug-libtool@gnu.org
3852 MAGIC_CMD="$lt_save_MAGIC_CMD"
3855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3856 if test -n "$MAGIC_CMD"; then
3857 AC_MSG_RESULT($MAGIC_CMD)
3861 _LT_DECL([], [MAGIC_CMD], [0],
3862 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3863 ])# _LT_PATH_TOOL_PREFIX
3866 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3867 dnl aclocal-1.4 backwards compatibility:
3868 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3873 # find a file program which can recognize a shared library
3874 m4_defun([_LT_PATH_MAGIC],
3875 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3876 if test -z "$lt_cv_path_MAGIC_CMD"; then
3877 if test -n "$ac_tool_prefix"; then
3878 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3888 # find the pathname to the GNU or non-GNU linker
3889 AC_DEFUN([LT_PATH_LD],
3890 [AC_REQUIRE([AC_PROG_CC])dnl
3891 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3892 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3893 m4_require([_LT_DECL_SED])dnl
3894 m4_require([_LT_DECL_EGREP])dnl
3896 AC_ARG_WITH([gnu-ld],
3897 [AS_HELP_STRING([--with-gnu-ld],
3898 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3899 [test "$withval" = no || with_gnu_ld=yes],
3900 [with_gnu_ld=no])dnl
3903 if test "$GCC" = yes; then
3904 # Check if gcc -print-prog-name=ld gives a path.
3905 AC_MSG_CHECKING([for ld used by $CC])
3908 # gcc leaves a trailing carriage return which upsets mingw
3909 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3911 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3914 # Accept absolute paths.
3915 [[\\/]]* | ?:[[\\/]]*)
3916 re_direlt='/[[^/]][[^/]]*/\.\./'
3917 # Canonicalize the pathname of ld
3918 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3919 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3920 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3922 test -z "$LD" && LD="$ac_prog"
3925 # If it fails, then pretend we aren't using GCC.
3929 # If it is relative, then search for the first ld in PATH.
3933 elif test "$with_gnu_ld" = yes; then
3934 AC_MSG_CHECKING([for GNU ld])
3936 AC_MSG_CHECKING([for non-GNU ld])
3938 AC_CACHE_VAL(lt_cv_path_LD,
3939 [if test -z "$LD"; then
3940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3941 for ac_dir in $PATH; do
3943 test -z "$ac_dir" && ac_dir=.
3944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3945 lt_cv_path_LD="$ac_dir/$ac_prog"
3946 # Check to see if the program is GNU ld. I'd rather use --version,
3947 # but apparently some variants of GNU ld only accept -v.
3948 # Break only if it was the GNU/non-GNU ld that we prefer.
3949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3950 *GNU* | *'with BFD'*)
3951 test "$with_gnu_ld" != no && break
3954 test "$with_gnu_ld" != yes && break
3961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3964 if test -n "$LD"; then
3969 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3973 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3977 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3978 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3979 dnl aclocal-1.4 backwards compatibility:
3980 dnl AC_DEFUN([AM_PROG_LD], [])
3981 dnl AC_DEFUN([AC_PROG_LD], [])
3986 m4_defun([_LT_PATH_LD_GNU],
3987 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3988 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3989 case `$LD -v 2>&1 </dev/null` in
3990 *GNU* | *'with BFD'*)
3991 lt_cv_prog_gnu_ld=yes
3994 lt_cv_prog_gnu_ld=no
3997 with_gnu_ld=$lt_cv_prog_gnu_ld
4003 # find reload flag for linker
4004 # -- PORTME Some linkers may need a different reload flag.
4005 m4_defun([_LT_CMD_RELOAD],
4006 [AC_CACHE_CHECK([for $LD option to reload object files],
4007 lt_cv_ld_reload_flag,
4008 [lt_cv_ld_reload_flag='-r'])
4009 reload_flag=$lt_cv_ld_reload_flag
4010 case $reload_flag in
4012 *) reload_flag=" $reload_flag" ;;
4014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4017 if test "$GCC" = yes; then
4018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4024 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4025 _LT_DECL([], [reload_cmds], [2])dnl
4029 # _LT_CHECK_MAGIC_METHOD
4030 # ----------------------
4031 # how to check for library dependencies
4032 # -- PORTME fill in with the dynamic library characteristics
4033 m4_defun([_LT_CHECK_MAGIC_METHOD],
4034 [m4_require([_LT_DECL_EGREP])
4035 m4_require([_LT_DECL_OBJDUMP])
4036 AC_CACHE_CHECK([how to recognize dependent libraries],
4037 lt_cv_deplibs_check_method,
4038 [lt_cv_file_magic_cmd='$MAGIC_CMD'
4039 lt_cv_file_magic_test_file=
4040 lt_cv_deplibs_check_method='unknown'
4041 # Need to set the preceding variable on all platforms that support
4042 # interlibrary dependencies.
4043 # 'none' -- dependencies not supported.
4044 # `unknown' -- same as none, but documents that we really don't know.
4045 # 'pass_all' -- all dependencies passed with no checks.
4046 # 'test_compile' -- check by making test program.
4047 # 'file_magic [[regex]]' -- check by looking for files in library path
4048 # which responds to the $file_magic_cmd with a given extended regex.
4049 # If you have `file' or equivalent on your system and you're not sure
4050 # whether `pass_all' will *always* work, you probably want this one.
4054 lt_cv_deplibs_check_method=pass_all
4058 lt_cv_deplibs_check_method=pass_all
4062 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4063 lt_cv_file_magic_cmd='/usr/bin/file -L'
4064 lt_cv_file_magic_test_file=/shlib/libc.so
4068 # func_win32_libid is a shell function defined in ltmain.sh
4069 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4070 lt_cv_file_magic_cmd='func_win32_libid'
4074 # Base MSYS/MinGW do not provide the 'file' command needed by
4075 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4076 # unless we find 'file', for example because we are cross-compiling.
4077 if ( file / ) >/dev/null 2>&1; then
4078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4079 lt_cv_file_magic_cmd='func_win32_libid'
4081 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4082 lt_cv_file_magic_cmd='$OBJDUMP -f'
4087 # use the weaker test based on 'objdump'. See mingw*.
4088 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4089 lt_cv_file_magic_cmd='$OBJDUMP -f'
4092 darwin* | rhapsody*)
4093 lt_cv_deplibs_check_method=pass_all
4096 freebsd* | dragonfly*)
4097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4100 # Not sure whether the presence of OpenBSD here was a mistake.
4101 # Let's accept both of them until this is cleared up.
4102 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4103 lt_cv_file_magic_cmd=/usr/bin/file
4104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4108 lt_cv_deplibs_check_method=pass_all
4113 lt_cv_deplibs_check_method=pass_all
4116 hpux10.20* | hpux11*)
4117 lt_cv_file_magic_cmd=/usr/bin/file
4120 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4121 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4124 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4125 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4128 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4129 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4135 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4136 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4139 irix5* | irix6* | nonstopux*)
4141 *-32|*"-32 ") libmagic=32-bit;;
4142 *-n32|*"-n32 ") libmagic=N32;;
4143 *-64|*"-64 ") libmagic=64-bit;;
4144 *) libmagic=never-match;;
4146 lt_cv_deplibs_check_method=pass_all
4149 # This must be Linux ELF.
4150 linux* | k*bsd*-gnu)
4151 lt_cv_deplibs_check_method=pass_all
4155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4156 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4158 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4163 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4164 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4169 lt_cv_deplibs_check_method=pass_all
4173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4174 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4176 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4180 osf3* | osf4* | osf5*)
4181 lt_cv_deplibs_check_method=pass_all
4185 lt_cv_deplibs_check_method=pass_all
4189 lt_cv_deplibs_check_method=pass_all
4192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4193 lt_cv_deplibs_check_method=pass_all
4197 case $host_vendor in
4199 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]]'
4200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4203 lt_cv_deplibs_check_method=pass_all
4206 lt_cv_file_magic_cmd='/bin/file'
4207 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4210 lt_cv_file_magic_cmd='/bin/file'
4211 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4212 lt_cv_file_magic_test_file=/lib/libc.so
4215 lt_cv_deplibs_check_method=pass_all
4218 lt_cv_deplibs_check_method=pass_all
4224 lt_cv_deplibs_check_method=pass_all
4228 file_magic_cmd=$lt_cv_file_magic_cmd
4229 deplibs_check_method=$lt_cv_deplibs_check_method
4230 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4232 _LT_DECL([], [deplibs_check_method], [1],
4233 [Method to check whether dependent libraries are shared objects])
4234 _LT_DECL([], [file_magic_cmd], [1],
4235 [Command to use when deplibs_check_method == "file_magic"])
4236 ])# _LT_CHECK_MAGIC_METHOD
4241 # find the pathname to a BSD- or MS-compatible name lister
4242 AC_DEFUN([LT_PATH_NM],
4243 [AC_REQUIRE([AC_PROG_CC])dnl
4244 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4245 [if test -n "$NM"; then
4246 # Let the user override the test.
4249 lt_nm_to_check="${ac_tool_prefix}nm"
4250 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4251 lt_nm_to_check="$lt_nm_to_check nm"
4253 for lt_tmp_nm in $lt_nm_to_check; do
4254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4255 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4257 test -z "$ac_dir" && ac_dir=.
4258 tmp_nm="$ac_dir/$lt_tmp_nm"
4259 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4260 # Check to see if the nm accepts a BSD-compat flag.
4261 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4262 # nm: unknown option "B" ignored
4263 # Tru64's nm complains that /dev/null is an invalid object file
4264 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4265 */dev/null* | *'Invalid file or object type'*)
4266 lt_cv_path_NM="$tmp_nm -B"
4270 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4272 lt_cv_path_NM="$tmp_nm -p"
4276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4277 continue # so that we can try to find one that supports BSD flags
4286 : ${lt_cv_path_NM=no}
4288 if test "$lt_cv_path_NM" != "no"; then
4291 # Didn't find any BSD compatible name lister, look for dumpbin.
4292 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4294 if test "$DUMPBIN" != ":"; then
4298 test -z "$NM" && NM=nm
4300 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4302 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4303 [lt_cv_nm_interface="BSD nm"
4304 echo "int some_variable = 0;" > conftest.$ac_ext
4305 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4306 (eval "$ac_compile" 2>conftest.err)
4307 cat conftest.err >&AS_MESSAGE_LOG_FD
4308 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4309 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4310 cat conftest.err >&AS_MESSAGE_LOG_FD
4311 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4312 cat conftest.out >&AS_MESSAGE_LOG_FD
4313 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4314 lt_cv_nm_interface="MS dumpbin"
4320 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4321 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4322 dnl aclocal-1.4 backwards compatibility:
4323 dnl AC_DEFUN([AM_PROG_NM], [])
4324 dnl AC_DEFUN([AC_PROG_NM], [])
4329 # check for math library
4330 AC_DEFUN([LT_LIB_M],
4331 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4334 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4335 # These system don't have libm, or don't need it
4338 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4339 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4342 AC_CHECK_LIB(m, cos, LIBM="-lm")
4349 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4350 dnl aclocal-1.4 backwards compatibility:
4351 dnl AC_DEFUN([AC_CHECK_LIBM], [])
4354 # _LT_COMPILER_NO_RTTI([TAGNAME])
4355 # -------------------------------
4356 m4_defun([_LT_COMPILER_NO_RTTI],
4357 [m4_require([_LT_TAG_COMPILER])dnl
4359 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4361 if test "$GCC" = yes; then
4362 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4364 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4365 lt_cv_prog_compiler_rtti_exceptions,
4366 [-fno-rtti -fno-exceptions], [],
4367 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4369 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4370 [Compiler flag to turn off builtin functions])
4371 ])# _LT_COMPILER_NO_RTTI
4374 # _LT_CMD_GLOBAL_SYMBOLS
4375 # ----------------------
4376 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4377 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4378 AC_REQUIRE([AC_PROG_CC])dnl
4379 AC_REQUIRE([LT_PATH_NM])dnl
4380 AC_REQUIRE([LT_PATH_LD])dnl
4381 m4_require([_LT_DECL_SED])dnl
4382 m4_require([_LT_DECL_EGREP])dnl
4383 m4_require([_LT_TAG_COMPILER])dnl
4385 # Check for command to grab the raw symbol name followed by C symbol from nm.
4386 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4387 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4389 # These are sane defaults that work on at least a few old systems.
4390 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4392 # Character class describing NM global symbol codes.
4393 symcode='[[BCDEGRST]]'
4395 # Regexp to match symbols that can be accessed directly from C.
4396 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4398 # Define system-specific variables.
4403 cygwin* | mingw* | pw32* | cegcc*)
4404 symcode='[[ABCDGISTW]]'
4407 if test "$host_cpu" = ia64; then
4408 symcode='[[ABCDEGRST]]'
4412 symcode='[[BCDEGRST]]'
4415 symcode='[[BCDEGQRST]]'
4426 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4430 symcode='[[DFNSTU]]'
4434 # If we're using GNU nm, then use its standard symbol codes.
4435 case `$NM -V 2>&1` in
4436 *GNU* | *'with BFD'*)
4437 symcode='[[ABCDGIRSTW]]' ;;
4440 # Transform an extracted symbol line into a proper C declaration.
4441 # Some systems (esp. on ia64) link data and code symbols differently,
4442 # so use this general approach.
4443 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4445 # Transform an extracted symbol line into symbol name and symbol address
4446 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4447 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'"
4449 # Handle CRLF in mingw tool chain
4453 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4457 # Try without a prefix underscore, then with it.
4458 for ac_symprfx in "" "_"; do
4460 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4461 symxfrm="\\1 $ac_symprfx\\2 \\2"
4463 # Write the raw and C identifiers.
4464 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4465 # Fake it for dumpbin and say T for any non-static function
4466 # and D for any global variable.
4467 # Also find C++ and __fastcall symbols from MSVC++,
4468 # which start with @ or ?.
4469 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4470 " {last_section=section; section=\$ 3};"\
4471 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4472 " \$ 0!~/External *\|/{next};"\
4473 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4474 " {if(hide[section]) next};"\
4475 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4476 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4477 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4478 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4479 " ' prfx=^$ac_symprfx]"
4481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4484 # Check to see that the pipe works correctly.
4488 cat > conftest.$ac_ext <<_LT_EOF
4493 void nm_test_func(void);
4494 void nm_test_func(void){}
4498 int main(){nm_test_var='a';nm_test_func();return(0);}
4501 if AC_TRY_EVAL(ac_compile); then
4502 # Now try to grab the symbols.
4504 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4505 # Try sorting and uniquifying the output.
4506 if sort "$nlist" | uniq > "$nlist"T; then
4507 mv -f "$nlist"T "$nlist"
4512 # Make sure that we snagged all the symbols we need.
4513 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4514 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4515 cat <<_LT_EOF > conftest.$ac_ext
4521 # Now generate the symbol file.
4522 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4524 cat <<_LT_EOF >> conftest.$ac_ext
4526 /* The mapping between symbol names and symbols. */
4531 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4533 { "@PROGRAM@", (void *) 0 },
4535 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4536 cat <<\_LT_EOF >> conftest.$ac_ext
4540 /* This works around a problem in FreeBSD linker */
4541 #ifdef FREEBSD_WORKAROUND
4542 static const void *lt_preloaded_setup() {
4543 return lt__PROGRAM__LTX_preloaded_symbols;
4551 # Now try linking the two files.
4552 mv conftest.$ac_objext conftstm.$ac_objext
4553 lt_save_LIBS="$LIBS"
4554 lt_save_CFLAGS="$CFLAGS"
4555 LIBS="conftstm.$ac_objext"
4556 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4557 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4560 LIBS="$lt_save_LIBS"
4561 CFLAGS="$lt_save_CFLAGS"
4563 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4566 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4569 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4572 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4573 cat conftest.$ac_ext >&5
4575 rm -rf conftest* conftst*
4577 # Do not use the global_symbol_pipe unless it works.
4578 if test "$pipe_works" = yes; then
4581 lt_cv_sys_global_symbol_pipe=
4585 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4586 lt_cv_sys_global_symbol_to_cdecl=
4588 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4589 AC_MSG_RESULT(failed)
4594 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4595 [Take the output of nm and produce a listing of raw symbols and C names])
4596 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4597 [Transform the output of nm in a proper C declaration])
4598 _LT_DECL([global_symbol_to_c_name_address],
4599 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4600 [Transform the output of nm in a C name address pair])
4601 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4602 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4603 [Transform the output of nm in a C name address pair when lib prefix is needed])
4604 ]) # _LT_CMD_GLOBAL_SYMBOLS
4607 # _LT_COMPILER_PIC([TAGNAME])
4608 # ---------------------------
4609 m4_defun([_LT_COMPILER_PIC],
4610 [m4_require([_LT_TAG_COMPILER])dnl
4611 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4612 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4613 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4615 AC_MSG_CHECKING([for $compiler option to produce PIC])
4616 m4_if([$1], [CXX], [
4617 # C++ specific cases for pic, static, wl, etc.
4618 if test "$GXX" = yes; then
4619 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4620 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4624 # All AIX code is PIC.
4625 if test "$host_cpu" = ia64; then
4626 # AIX 5 now supports IA64 processor
4627 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4634 # see comment about AmigaOS4 .so support
4635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4638 # FIXME: we need at least 68020 code to build shared libraries, but
4639 # adding the `-m68020' flag to GCC prevents building anything better,
4641 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4647 # PIC is the default for these OSes.
4649 mingw* | cygwin* | os2* | pw32* | cegcc*)
4650 # This hack is so that the source file can tell whether it is being
4651 # built for inclusion in a dll (and should export symbols for example).
4652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4653 # (--disable-auto-import) libraries
4654 m4_if([$1], [GCJ], [],
4655 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4657 darwin* | rhapsody*)
4658 # PIC is the default on this platform
4659 # Common symbols not allowed in MH_DYLIB files
4660 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4663 # DJGPP does not support shared libraries at all
4664 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4668 # Instead, we relocate shared libraries at runtime.
4671 if test -d /usr/nec; then
4672 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4676 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4677 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4678 # sets the default TLS model and affects inlining.
4683 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4688 # QNX uses GNU C++, but need to define -shared option too, otherwise
4690 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4693 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4699 # All AIX code is PIC.
4700 if test "$host_cpu" = ia64; then
4701 # AIX 5 now supports IA64 processor
4702 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4708 case $cc_basename in
4710 # Green Hills C++ Compiler
4711 # _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"
4716 case $cc_basename in
4718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4721 # Green Hills C++ Compiler
4722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4728 freebsd* | dragonfly*)
4729 # FreeBSD uses GNU C++
4731 hpux9* | hpux10* | hpux11*)
4732 case $cc_basename in
4734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4735 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4736 if test "$host_cpu" != ia64; then
4737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4757 # This is c89, which is MS Visual C++ (no shared libs)
4758 # Anyone wants to do a port?
4760 irix5* | irix6* | nonstopux*)
4761 case $cc_basename in
4763 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4765 # CC pic flag -KPIC is the default.
4771 linux* | k*bsd*-gnu)
4772 case $cc_basename in
4775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4779 # old Intel C++ for x86_64 which still supported -KPIC.
4780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4781 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4782 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4785 # Intel C++, used to be incompatible with GCC.
4786 # ICC 10 doesn't accept -KPIC any more.
4787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4788 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4789 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4792 # Portland Group C++ compiler
4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4794 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4795 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4799 # Make sure the PIC flag is empty. It appears that all Alpha
4800 # Linux and Compaq Tru64 Unix objects are PIC.
4801 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4806 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4807 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4808 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4811 case `$CC -V 2>&1 | sed 5q` in
4814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4816 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4827 case $cc_basename in
4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4838 # QNX uses GNU C++, but need to define -shared option too, otherwise
4840 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4842 osf3* | osf4* | osf5*)
4843 case $cc_basename in
4845 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4848 # Rational C++ 2.4.1
4849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4852 # Digital/Compaq C++
4853 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4854 # Make sure the PIC flag is empty. It appears that all Alpha
4855 # Linux and Compaq Tru64 Unix objects are PIC.
4856 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4857 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4866 case $cc_basename in
4868 # Sun C++ 4.2, 5.x and Centerline C++
4869 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4870 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4871 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4874 # Green Hills C++ Compiler
4875 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4882 case $cc_basename in
4885 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4886 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4890 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4897 case $cc_basename in
4899 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4900 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4901 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4906 case $cc_basename in
4908 # NonStop-UX NCC 3.20
4909 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4918 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4924 if test "$GCC" = yes; then
4925 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4926 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4930 # All AIX code is PIC.
4931 if test "$host_cpu" = ia64; then
4932 # AIX 5 now supports IA64 processor
4933 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4940 # see comment about AmigaOS4 .so support
4941 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4944 # FIXME: we need at least 68020 code to build shared libraries, but
4945 # adding the `-m68020' flag to GCC prevents building anything better,
4947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4953 # PIC is the default for these OSes.
4956 mingw* | cygwin* | pw32* | os2* | cegcc*)
4957 # This hack is so that the source file can tell whether it is being
4958 # built for inclusion in a dll (and should export symbols for example).
4959 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4960 # (--disable-auto-import) libraries
4961 m4_if([$1], [GCJ], [],
4962 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4965 darwin* | rhapsody*)
4966 # PIC is the default on this platform
4967 # Common symbols not allowed in MH_DYLIB files
4968 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4972 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4973 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4974 # sets the default TLS model and affects inlining.
4980 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4986 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4987 # Instead, we relocate shared libraries at runtime.
4991 # Just because we use GCC doesn't mean we suddenly get shared libraries
4992 # on systems that don't support them.
4993 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4998 # QNX uses GNU C++, but need to define -shared option too, otherwise
5000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5004 if test -d /usr/nec; then
5005 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5010 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5014 # PORTME Check for flag to pass linker flags through the system compiler.
5017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5018 if test "$host_cpu" = ia64; then
5019 # AIX 5 now supports IA64 processor
5020 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5026 mingw* | cygwin* | pw32* | os2* | cegcc*)
5027 # This hack is so that the source file can tell whether it is being
5028 # built for inclusion in a dll (and should export symbols for example).
5029 m4_if([$1], [GCJ], [],
5030 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5033 hpux9* | hpux10* | hpux11*)
5034 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5046 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5049 irix5* | irix6* | nonstopux*)
5050 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5051 # PIC (with -KPIC) is the default.
5052 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5055 linux* | k*bsd*-gnu)
5056 case $cc_basename in
5057 # old Intel for x86_64 which still supported -KPIC.
5059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5063 # icc used to be incompatible with GCC.
5064 # ICC 10 doesn't accept -KPIC any more.
5066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5070 # Lahey Fortran 8.1.
5072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5074 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5076 pgcc* | pgf77* | pgf90* | pgf95*)
5077 # Portland Group compilers (*not* the Pentium gcc compiler,
5078 # which looks to be a dead project)
5079 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5085 # All Alpha code is PIC.
5086 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5089 # IBM XL C 8.0/Fortran 10.1 on PPC
5090 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5091 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5092 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5095 case `$CC -V 2>&1 | sed 5q` in
5098 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5099 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5103 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5106 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5114 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5115 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5119 # QNX uses GNU C++, but need to define -shared option too, otherwise
5121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5124 osf3* | osf4* | osf5*)
5125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5126 # All OSF/1 code is PIC.
5127 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5131 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5135 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5136 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5137 case $cc_basename in
5139 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5141 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5146 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5147 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5148 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5151 sysv4 | sysv4.2uw2* | sysv4.3*)
5152 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5153 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5154 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5158 if test -d /usr/nec ;then
5159 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5160 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5164 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5165 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5166 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5167 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5171 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5172 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5176 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5177 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5181 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5187 # For platforms which do not support PIC, -DPIC is meaningless:
5189 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5192 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5195 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5196 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5197 [How to pass a linker flag through the compiler])
5200 # Check to make sure the PIC flag actually works.
5202 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5203 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5204 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5205 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5206 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5208 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5210 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5211 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5213 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5214 [Additional compiler flags for building library objects])
5217 # Check to make sure the static flag actually works.
5219 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5220 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5221 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5222 $lt_tmp_static_flag,
5224 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5225 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5226 [Compiler flag to prevent dynamic linking])
5227 ])# _LT_COMPILER_PIC
5230 # _LT_LINKER_SHLIBS([TAGNAME])
5231 # ----------------------------
5232 # See if the linker supports building shared libraries.
5233 m4_defun([_LT_LINKER_SHLIBS],
5234 [AC_REQUIRE([LT_PATH_LD])dnl
5235 AC_REQUIRE([LT_PATH_NM])dnl
5236 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5237 m4_require([_LT_DECL_EGREP])dnl
5238 m4_require([_LT_DECL_SED])dnl
5239 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5240 m4_require([_LT_TAG_COMPILER])dnl
5241 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5242 m4_if([$1], [CXX], [
5243 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5246 # If we're using GNU nm, then we don't want the "-C" option.
5247 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5248 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5249 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5251 _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'
5255 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5257 cygwin* | mingw* | cegcc*)
5258 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5261 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5264 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5267 _LT_TAGVAR(allow_undefined_flag, $1)=
5268 _LT_TAGVAR(always_export_symbols, $1)=no
5269 _LT_TAGVAR(archive_cmds, $1)=
5270 _LT_TAGVAR(archive_expsym_cmds, $1)=
5271 _LT_TAGVAR(compiler_needs_object, $1)=no
5272 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5273 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5274 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5275 _LT_TAGVAR(hardcode_automatic, $1)=no
5276 _LT_TAGVAR(hardcode_direct, $1)=no
5277 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5278 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5279 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5280 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5281 _LT_TAGVAR(hardcode_minus_L, $1)=no
5282 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5283 _LT_TAGVAR(inherit_rpath, $1)=no
5284 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5285 _LT_TAGVAR(module_cmds, $1)=
5286 _LT_TAGVAR(module_expsym_cmds, $1)=
5287 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5288 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5289 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5290 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5291 # include_expsyms should be a list of space-separated symbols to be *always*
5292 # included in the symbol list
5293 _LT_TAGVAR(include_expsyms, $1)=
5294 # exclude_expsyms can be an extended regexp of symbols to exclude
5295 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5296 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5297 # as well as any symbol that contains `d'.
5298 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5299 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5300 # platforms (ab)use it in PIC code, but their linkers get confused if
5301 # the symbol is explicitly referenced. Since portable code cannot
5302 # rely on this symbol name, it's probably fine to never include it in
5303 # preloaded symbol tables.
5304 # Exclude shared library initialization/finalization symbols.
5305 dnl Note also adjust exclude_expsyms for C++ above.
5306 extract_expsyms_cmds=
5309 cygwin* | mingw* | pw32* | cegcc*)
5310 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5311 # When not using gcc, we currently assume that we are using
5312 # Microsoft Visual C++.
5313 if test "$GCC" != yes; then
5318 # we just hope/assume this is gcc and not c89 (= MSVC++)
5326 _LT_TAGVAR(ld_shlibs, $1)=yes
5327 if test "$with_gnu_ld" = yes; then
5328 # If archive_cmds runs LD, not CC, wlarc should be empty
5331 # Set some defaults for GNU ld with shared library support. These
5332 # are reset later if shared libraries are not supported. Putting them
5333 # here allows them to be overridden if necessary.
5334 runpath_var=LD_RUN_PATH
5335 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5336 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5337 # ancient GNU ld didn't support --whole-archive et. al.
5338 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5339 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5341 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5343 supports_anon_versioning=no
5344 case `$LD -v 2>&1` in
5345 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5346 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5347 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5348 *\ 2.11.*) ;; # other 2.11 versions
5349 *) supports_anon_versioning=yes ;;
5352 # See if GNU ld supports shared libraries.
5355 # On AIX/PPC, the GNU linker is very broken
5356 if test "$host_cpu" != ia64; then
5357 _LT_TAGVAR(ld_shlibs, $1)=no
5360 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5361 *** to be unable to reliably create shared libraries on AIX.
5362 *** Therefore, libtool is disabling shared libraries support. If you
5363 *** really care for shared libraries, you may want to modify your PATH
5364 *** so that a non-GNU linker is found, and then restart.
5373 # see comment about AmigaOS4 .so support
5374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5375 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5378 _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)'
5379 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5380 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5387 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5389 # support --undefined. This deserves some investigation. FIXME
5390 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5392 _LT_TAGVAR(ld_shlibs, $1)=no
5396 cygwin* | mingw* | pw32* | cegcc*)
5397 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5398 # as there is no search path for DLLs.
5399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5400 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5401 _LT_TAGVAR(always_export_symbols, $1)=no
5402 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5403 _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'
5405 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5406 _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'
5407 # If the export-symbols file already is a .def file (1st line
5408 # is EXPORTS), use it as is; otherwise, prepend...
5409 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5410 cp $export_symbols $output_objdir/$soname.def;
5412 echo EXPORTS > $output_objdir/$soname.def;
5413 cat $export_symbols >> $output_objdir/$soname.def;
5415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5417 _LT_TAGVAR(ld_shlibs, $1)=no
5422 _LT_TAGVAR(hardcode_direct, $1)=no
5423 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5424 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5425 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5427 # Instead, shared libraries are loaded at an image base (0x10000000 by
5428 # default) and relocated if they conflict, which is a slow very memory
5429 # consuming and fragmenting process. To avoid this, we pick a random,
5430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5432 _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'
5433 _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'
5436 gnu* | linux* | tpf* | k*bsd*-gnu)
5438 if test "$host_os" = linux-dietlibc; then
5439 case $cc_basename in
5440 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5443 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5444 && test "$tmp_diet" = no
5447 tmp_sharedflag='-shared'
5448 case $cc_basename,$host_cpu in
5449 pgcc*) # Portland Group C compiler
5450 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5451 tmp_addflag=' $pic_flag'
5453 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5454 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5455 tmp_addflag=' $pic_flag -Mnomain' ;;
5456 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5457 tmp_addflag=' -i_dynamic' ;;
5458 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5459 tmp_addflag=' -i_dynamic -nofor_main' ;;
5460 ifc* | ifort*) # Intel Fortran compiler
5461 tmp_addflag=' -nofor_main' ;;
5462 lf95*) # Lahey Fortran 8.1
5463 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5464 tmp_sharedflag='--shared' ;;
5465 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5466 tmp_sharedflag='-qmkshrobj'
5469 case `$CC -V 2>&1 | sed 5q` in
5470 *Sun\ C*) # Sun C 5.9
5471 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5472 _LT_TAGVAR(compiler_needs_object, $1)=yes
5473 tmp_sharedflag='-G' ;;
5474 *Sun\ F*) # Sun Fortran 8.3
5475 tmp_sharedflag='-G' ;;
5477 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5479 if test "x$supports_anon_versioning" = xyes; then
5480 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5482 echo "local: *; };" >> $output_objdir/$libname.ver~
5483 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5486 case $cc_basename in
5488 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5489 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5490 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5491 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5492 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5493 if test "x$supports_anon_versioning" = xyes; then
5494 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5496 echo "local: *; };" >> $output_objdir/$libname.ver~
5497 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5502 _LT_TAGVAR(ld_shlibs, $1)=no
5507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5508 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5511 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5512 _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'
5517 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5518 _LT_TAGVAR(ld_shlibs, $1)=no
5521 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5522 *** create shared libraries on Solaris systems. Therefore, libtool
5523 *** is disabling shared libraries support. We urge you to upgrade GNU
5524 *** binutils to release 2.9.1 or newer. Another option is to modify
5525 *** your PATH or compiler configuration so that the native linker is
5526 *** used, and then restart.
5529 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5530 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5531 _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'
5533 _LT_TAGVAR(ld_shlibs, $1)=no
5537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5538 case `$LD -v 2>&1` in
5539 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5540 _LT_TAGVAR(ld_shlibs, $1)=no
5543 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5544 *** reliably create shared libraries on SCO systems. Therefore, libtool
5545 *** is disabling shared libraries support. We urge you to upgrade GNU
5546 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5547 *** your PATH or compiler configuration so that the native linker is
5548 *** used, and then restart.
5553 # For security reasons, it is highly recommended that you always
5554 # use absolute paths for naming shared libraries, and exclude the
5555 # DT_RUNPATH tag from executables and libraries. But doing so
5556 # requires that you compile everything twice, which is a pain.
5557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5560 _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'
5562 _LT_TAGVAR(ld_shlibs, $1)=no
5569 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5571 _LT_TAGVAR(hardcode_direct, $1)=yes
5572 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5578 _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'
5580 _LT_TAGVAR(ld_shlibs, $1)=no
5585 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5588 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5589 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5592 # PORTME fill in a description of your system's linker (not GNU ld)
5595 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5596 _LT_TAGVAR(always_export_symbols, $1)=yes
5597 _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'
5598 # Note: this linker hardcodes the directories in LIBPATH if there
5599 # are no directories specified by -L.
5600 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5601 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5602 # Neither direct hardcoding nor static linking is supported with a
5604 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5609 if test "$host_cpu" = ia64; then
5610 # On IA64, the linker does run time linking by default, so we don't
5611 # have to do anything special.
5612 aix_use_runtimelinking=no
5613 exp_sym_flag='-Bexport'
5616 # If we're using GNU nm, then we don't want the "-C" option.
5617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5618 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5619 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5621 _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'
5623 aix_use_runtimelinking=no
5625 # Test if we are trying to use run time linking or normal
5626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5627 # need to do runtime linking.
5628 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5629 for ld_flag in $LDFLAGS; do
5630 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5631 aix_use_runtimelinking=yes
5638 exp_sym_flag='-bexport'
5639 no_entry_flag='-bnoentry'
5642 # When large executables or shared objects are built, AIX ld can
5643 # have problems creating the table of contents. If linking a library
5644 # or program results in "error TOC overflow" add -mminimal-toc to
5645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5648 _LT_TAGVAR(archive_cmds, $1)=''
5649 _LT_TAGVAR(hardcode_direct, $1)=yes
5650 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5651 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5652 _LT_TAGVAR(link_all_deplibs, $1)=yes
5653 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5655 if test "$GCC" = yes; then
5656 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5657 # We only want to do this on AIX 4.2 and lower, the check
5658 # below for broken collect2 doesn't work under 4.3+
5659 collect2name=`${CC} -print-prog-name=collect2`
5660 if test -f "$collect2name" &&
5661 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5663 # We have reworked collect2
5666 # We have old collect2
5667 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5668 # It fails to find uninstalled libraries when the uninstalled
5669 # path is not listed in the libpath. Setting hardcode_minus_L
5670 # to unsupported forces relinking
5671 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5673 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5677 shared_flag='-shared'
5678 if test "$aix_use_runtimelinking" = yes; then
5679 shared_flag="$shared_flag "'${wl}-G'
5683 if test "$host_cpu" = ia64; then
5684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5685 # chokes on -Wl,-G. The following line is correct:
5688 if test "$aix_use_runtimelinking" = yes; then
5689 shared_flag='${wl}-G'
5691 shared_flag='${wl}-bM:SRE'
5696 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5697 # It seems that -bexpall does not export symbols beginning with
5698 # underscore (_), so it is better to generate a list of symbols to export.
5699 _LT_TAGVAR(always_export_symbols, $1)=yes
5700 if test "$aix_use_runtimelinking" = yes; then
5701 # Warning - without using the other runtime loading flags (-brtl),
5702 # -berok will link without error, but may produce a broken library.
5703 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5704 # Determine the default libpath from the value encoded in an
5706 _LT_SYS_MODULE_PATH_AIX
5707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5708 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5710 if test "$host_cpu" = ia64; then
5711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5712 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5713 _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"
5715 # Determine the default libpath from the value encoded in an
5717 _LT_SYS_MODULE_PATH_AIX
5718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5719 # Warning - without using the other run time loading flags,
5720 # -berok will link without error, but may produce a broken library.
5721 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5722 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5723 # Exported symbols can be pulled into shared objects from archives
5724 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5725 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5726 # This is similar to how AIX traditionally builds its shared libraries.
5727 _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'
5735 # see comment about AmigaOS4 .so support
5736 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5737 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5740 _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)'
5741 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5742 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5748 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5751 cygwin* | mingw* | pw32* | cegcc*)
5752 # When not using gcc, we currently assume that we are using
5753 # Microsoft Visual C++.
5754 # hardcode_libdir_flag_spec is actually meaningless, as there is
5755 # no search path for DLLs.
5756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5757 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5758 # Tell ltmain to make .lib files, not .a files.
5760 # Tell ltmain to make .dll files, not .so files.
5762 # FIXME: Setting linknames here is a bad hack.
5763 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5764 # The linker will automatically build a .lib file if we build a DLL.
5765 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5766 # FIXME: Should let the user specify the lib program.
5767 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5768 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5769 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5772 darwin* | rhapsody*)
5773 _LT_DARWIN_LINKER_FEATURES($1)
5777 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5783 _LT_TAGVAR(ld_shlibs, $1)=no
5786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5787 # support. Future versions do this automatically, but an explicit c++rt0.o
5788 # does not break anything, and helps significantly (at the cost of a little
5791 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5793 _LT_TAGVAR(hardcode_direct, $1)=yes
5794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5799 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5800 _LT_TAGVAR(hardcode_direct, $1)=yes
5801 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5802 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5806 freebsd* | dragonfly*)
5807 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5809 _LT_TAGVAR(hardcode_direct, $1)=yes
5810 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5814 if test "$GCC" = yes; then
5815 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5817 _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'
5819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5820 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5821 _LT_TAGVAR(hardcode_direct, $1)=yes
5823 # hardcode_minus_L: Not really in the search PATH,
5824 # but as the default location of the library.
5825 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5826 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5831 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5833 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5835 if test "$with_gnu_ld" = no; then
5836 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5837 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5838 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5839 _LT_TAGVAR(hardcode_direct, $1)=yes
5840 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5841 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5842 # hardcode_minus_L: Not really in the search PATH,
5843 # but as the default location of the library.
5844 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5852 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5855 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5858 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5864 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5867 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5870 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5874 if test "$with_gnu_ld" = no; then
5875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5876 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5880 _LT_TAGVAR(hardcode_direct, $1)=no
5881 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5884 _LT_TAGVAR(hardcode_direct, $1)=yes
5885 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5886 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5888 # hardcode_minus_L: Not really in the search PATH,
5889 # but as the default location of the library.
5890 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5896 irix5* | irix6* | nonstopux*)
5897 if test "$GCC" = yes; then
5898 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5899 # Try to use the -exported_symbol ld option, if it does not
5900 # work, assume that -exports_file does not work either and
5901 # implicitly export all symbols.
5902 save_LDFLAGS="$LDFLAGS"
5903 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5904 AC_LINK_IFELSE(int foo(void) {},
5905 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5907 LDFLAGS="$save_LDFLAGS"
5909 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5910 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5912 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5914 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5915 _LT_TAGVAR(inherit_rpath, $1)=yes
5916 _LT_TAGVAR(link_all_deplibs, $1)=yes
5920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5921 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5923 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5926 _LT_TAGVAR(hardcode_direct, $1)=yes
5927 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5931 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5932 _LT_TAGVAR(hardcode_direct, $1)=yes
5933 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5934 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5935 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5942 if test -f /usr/libexec/ld.so; then
5943 _LT_TAGVAR(hardcode_direct, $1)=yes
5944 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5945 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5947 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5948 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5949 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5950 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5953 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5954 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5959 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5964 _LT_TAGVAR(ld_shlibs, $1)=no
5969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5970 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5971 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5972 _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'
5973 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5977 if test "$GCC" = yes; then
5978 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5979 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5981 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5982 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5984 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5986 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5989 osf4* | osf5*) # as osf3* with the addition of -msym flag
5990 if test "$GCC" = yes; then
5991 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5992 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5993 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5995 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5996 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5997 _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~
5998 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6000 # Both c and cxx compiler support -rpath directly
6001 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6003 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6004 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6008 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6009 if test "$GCC" = yes; then
6011 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6012 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6013 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6015 case `$CC -V 2>&1` in
6018 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6024 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6025 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6026 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6031 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6033 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6035 # The compiler driver will combine and reorder linker options,
6036 # but understands `-z linker_flag'. GCC discards it without `$wl',
6037 # but is careful enough not to reorder.
6038 # Supported since Solaris 2.6 (maybe 2.5.1?)
6039 if test "$GCC" = yes; then
6040 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6042 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6046 _LT_TAGVAR(link_all_deplibs, $1)=yes
6050 if test "x$host_vendor" = xsequent; then
6051 # Use $CC to link under sequent, because it throws in some extra .o
6052 # files that make .init and .fini sections work.
6053 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6055 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6058 _LT_TAGVAR(hardcode_direct, $1)=yes
6059 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6060 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6064 case $host_vendor in
6066 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6067 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6070 ## LD is ld it makes a PLAMLIB
6071 ## CC just makes a GrossModule.
6072 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6073 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6074 _LT_TAGVAR(hardcode_direct, $1)=no
6077 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6078 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6081 runpath_var='LD_RUN_PATH'
6082 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6086 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6087 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6088 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6092 if test -d /usr/nec; then
6093 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6094 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6095 runpath_var=LD_RUN_PATH
6096 hardcode_runpath_var=yes
6097 _LT_TAGVAR(ld_shlibs, $1)=yes
6101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6102 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6103 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6104 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6105 runpath_var='LD_RUN_PATH'
6107 if test "$GCC" = yes; then
6108 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6109 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6112 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6116 sysv5* | sco3.2v5* | sco5v6*)
6117 # Note: We can NOT use -z defs as we might desire, because we do not
6118 # link with -lc, and that would cause any symbols used from libc to
6119 # always be unresolved, which means just about no library would
6120 # ever link correctly. If we're not using GNU ld we use -z text
6121 # though, which does catch some bad symbols but isn't as heavy-handed
6123 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6124 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6125 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6126 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6128 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6129 _LT_TAGVAR(link_all_deplibs, $1)=yes
6130 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6131 runpath_var='LD_RUN_PATH'
6133 if test "$GCC" = yes; then
6134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6135 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6137 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6138 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6143 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6145 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6149 _LT_TAGVAR(ld_shlibs, $1)=no
6153 if test x$host_vendor = xsni; then
6155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6156 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6162 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6163 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6165 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6167 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6168 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6169 _LT_DECL([], [extract_expsyms_cmds], [2],
6170 [The commands to extract the exported symbol list from a shared archive])
6173 # Do we need to explicitly link libc?
6175 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6177 # Assume -lc should be added
6178 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6180 if test "$enable_shared" = yes && test "$GCC" = yes; then
6181 case $_LT_TAGVAR(archive_cmds, $1) in
6183 # FIXME: we may have to deal with multi-command sequences.
6186 # Test whether the compiler implicitly links with -lc since on some
6187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6188 # to ld, don't add -lc before -lgcc.
6189 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6193 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6196 libobjs=conftest.$ac_objext
6198 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6199 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6205 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6206 _LT_TAGVAR(allow_undefined_flag, $1)=
6207 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6209 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6211 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6213 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6215 cat conftest.err 1>&5
6218 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6225 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6226 [Whether or not to add -lc for building shared libraries])
6227 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6228 [enable_shared_with_static_runtimes], [0],
6229 [Whether or not to disallow shared libs when runtime libs are static])
6230 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6231 [Compiler flag to allow reflexive dlopens])
6232 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6233 [Compiler flag to generate shared objects directly from archives])
6234 _LT_TAGDECL([], [compiler_needs_object], [1],
6235 [Whether the compiler copes with passing no objects directly])
6236 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6237 [Create an old-style archive from a shared archive])
6238 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6239 [Create a temporary old-style archive to link instead of a shared archive])
6240 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6241 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6242 _LT_TAGDECL([], [module_cmds], [2],
6243 [Commands used to build a loadable module if different from building
6245 _LT_TAGDECL([], [module_expsym_cmds], [2])
6246 _LT_TAGDECL([], [with_gnu_ld], [1],
6247 [Whether we are building with GNU ld or not])
6248 _LT_TAGDECL([], [allow_undefined_flag], [1],
6249 [Flag that allows shared libraries with undefined symbols to be built])
6250 _LT_TAGDECL([], [no_undefined_flag], [1],
6251 [Flag that enforces no undefined symbols])
6252 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6253 [Flag to hardcode $libdir into a binary during linking.
6254 This must work even if $libdir does not exist])
6255 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6256 [[If ld is used when linking, flag to hardcode $libdir into a binary
6257 during linking. This must work even if $libdir does not exist]])
6258 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6259 [Whether we need a single "-rpath" flag with a separated argument])
6260 _LT_TAGDECL([], [hardcode_direct], [0],
6261 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6262 DIR into the resulting binary])
6263 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6264 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6265 DIR into the resulting binary and the resulting library dependency is
6266 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6267 library is relocated])
6268 _LT_TAGDECL([], [hardcode_minus_L], [0],
6269 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6270 into the resulting binary])
6271 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6272 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6273 into the resulting binary])
6274 _LT_TAGDECL([], [hardcode_automatic], [0],
6275 [Set to "yes" if building a shared library automatically hardcodes DIR
6276 into the library and all subsequent libraries and executables linked
6278 _LT_TAGDECL([], [inherit_rpath], [0],
6279 [Set to yes if linker adds runtime paths of dependent libraries
6280 to runtime path list])
6281 _LT_TAGDECL([], [link_all_deplibs], [0],
6282 [Whether libtool must link a program against all its dependency libraries])
6283 _LT_TAGDECL([], [fix_srcfile_path], [1],
6284 [Fix the shell variable $srcfile for the compiler])
6285 _LT_TAGDECL([], [always_export_symbols], [0],
6286 [Set to "yes" if exported symbols are required])
6287 _LT_TAGDECL([], [export_symbols_cmds], [2],
6288 [The commands to list exported symbols])
6289 _LT_TAGDECL([], [exclude_expsyms], [1],
6290 [Symbols that should not be listed in the preloaded symbols])
6291 _LT_TAGDECL([], [include_expsyms], [1],
6292 [Symbols that must always be exported])
6293 _LT_TAGDECL([], [prelink_cmds], [2],
6294 [Commands necessary for linking programs (against libraries) with templates])
6295 _LT_TAGDECL([], [file_list_spec], [1],
6296 [Specify filename containing input files])
6297 dnl FIXME: Not yet implemented
6298 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6299 dnl [Compiler flag to generate thread safe objects])
6300 ])# _LT_LINKER_SHLIBS
6303 # _LT_LANG_C_CONFIG([TAG])
6304 # ------------------------
6305 # Ensure that the configuration variables for a C compiler are suitably
6306 # defined. These variables are subsequently used by _LT_CONFIG to write
6307 # the compiler configuration to `libtool'.
6308 m4_defun([_LT_LANG_C_CONFIG],
6309 [m4_require([_LT_DECL_EGREP])dnl
6313 # Source file extension for C test sources.
6316 # Object file extension for compiled C test sources.
6318 _LT_TAGVAR(objext, $1)=$objext
6320 # Code to be used in simple compile tests
6321 lt_simple_compile_test_code="int some_variable = 0;"
6323 # Code to be used in simple link tests
6324 lt_simple_link_test_code='int main(){return(0);}'
6327 # Save the default compiler, since it gets overwritten when the other
6328 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6329 compiler_DEFAULT=$CC
6331 # save warnings/boilerplate of simple test code
6332 _LT_COMPILER_BOILERPLATE
6333 _LT_LINKER_BOILERPLATE
6335 if test -n "$compiler"; then
6336 _LT_COMPILER_NO_RTTI($1)
6337 _LT_COMPILER_PIC($1)
6338 _LT_COMPILER_C_O($1)
6339 _LT_COMPILER_FILE_LOCKS($1)
6340 _LT_LINKER_SHLIBS($1)
6341 _LT_SYS_DYNAMIC_LINKER($1)
6342 _LT_LINKER_HARDCODE_LIBPATH($1)
6346 # Report which library types will actually be built
6347 AC_MSG_CHECKING([if libtool supports shared libraries])
6348 AC_MSG_RESULT([$can_build_shared])
6350 AC_MSG_CHECKING([whether to build shared libraries])
6351 test "$can_build_shared" = "no" && enable_shared=no
6353 # On AIX, shared libraries and static libraries use the same namespace, and
6354 # are all built from PIC.
6357 test "$enable_shared" = yes && enable_static=no
6358 if test -n "$RANLIB"; then
6359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6360 postinstall_cmds='$RANLIB $lib'
6365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6366 test "$enable_shared" = yes && enable_static=no
6370 AC_MSG_RESULT([$enable_shared])
6372 AC_MSG_CHECKING([whether to build static libraries])
6373 # Make sure either enable_shared or enable_static is yes.
6374 test "$enable_shared" = yes || enable_static=yes
6375 AC_MSG_RESULT([$enable_static])
6381 ])# _LT_LANG_C_CONFIG
6386 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6387 # compiler, we have our own version here.
6388 m4_defun([_LT_PROG_CXX],
6390 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6392 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6393 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6394 (test "X$CXX" != "Xg++"))) ; then
6397 _lt_caught_CXX_error=yes
6399 popdef([AC_MSG_ERROR])
6402 dnl aclocal-1.4 backwards compatibility:
6403 dnl AC_DEFUN([_LT_PROG_CXX], [])
6406 # _LT_LANG_CXX_CONFIG([TAG])
6407 # --------------------------
6408 # Ensure that the configuration variables for a C++ compiler are suitably
6409 # defined. These variables are subsequently used by _LT_CONFIG to write
6410 # the compiler configuration to `libtool'.
6411 m4_defun([_LT_LANG_CXX_CONFIG],
6412 [AC_REQUIRE([_LT_PROG_CXX])dnl
6413 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6414 m4_require([_LT_DECL_EGREP])dnl
6417 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6418 _LT_TAGVAR(allow_undefined_flag, $1)=
6419 _LT_TAGVAR(always_export_symbols, $1)=no
6420 _LT_TAGVAR(archive_expsym_cmds, $1)=
6421 _LT_TAGVAR(compiler_needs_object, $1)=no
6422 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6423 _LT_TAGVAR(hardcode_direct, $1)=no
6424 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6425 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6426 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6427 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6428 _LT_TAGVAR(hardcode_minus_L, $1)=no
6429 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6430 _LT_TAGVAR(hardcode_automatic, $1)=no
6431 _LT_TAGVAR(inherit_rpath, $1)=no
6432 _LT_TAGVAR(module_cmds, $1)=
6433 _LT_TAGVAR(module_expsym_cmds, $1)=
6434 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6435 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6436 _LT_TAGVAR(no_undefined_flag, $1)=
6437 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6438 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6440 # Source file extension for C++ test sources.
6443 # Object file extension for compiled C++ test sources.
6445 _LT_TAGVAR(objext, $1)=$objext
6447 # No sense in running all these tests if we already determined that
6448 # the CXX compiler isn't working. Some variables (like enable_shared)
6449 # are currently assumed to apply to all compilers on this platform,
6450 # and will be corrupted by setting them based on a non-working compiler.
6451 if test "$_lt_caught_CXX_error" != yes; then
6452 # Code to be used in simple compile tests
6453 lt_simple_compile_test_code="int some_variable = 0;"
6455 # Code to be used in simple link tests
6456 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6461 # save warnings/boilerplate of simple test code
6462 _LT_COMPILER_BOILERPLATE
6463 _LT_LINKER_BOILERPLATE
6465 # Allow CC to be a program name with arguments.
6470 lt_save_with_gnu_ld=$with_gnu_ld
6471 lt_save_path_LD=$lt_cv_path_LD
6472 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6473 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6475 $as_unset lt_cv_prog_gnu_ld
6477 if test -n "${lt_cv_path_LDCXX+set}"; then
6478 lt_cv_path_LD=$lt_cv_path_LDCXX
6480 $as_unset lt_cv_path_LD
6482 test -z "${LDCXX+set}" || LD=$LDCXX
6485 _LT_TAGVAR(compiler, $1)=$CC
6486 _LT_CC_BASENAME([$compiler])
6488 if test -n "$compiler"; then
6489 # We don't want -fno-exception when compiling C++ code, so set the
6490 # no_builtin_flag separately
6491 if test "$GXX" = yes; then
6492 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6494 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6497 if test "$GXX" = yes; then
6498 # Set up default GNU C++ configuration
6502 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6503 # archiving commands below assume that GNU ld is being used.
6504 if test "$with_gnu_ld" = yes; then
6505 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6511 # If archive_cmds runs LD, not CC, wlarc should be empty
6512 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6513 # investigate it a little bit more. (MM)
6516 # ancient GNU ld didn't support --whole-archive et. al.
6517 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6518 $GREP 'no-whole-archive' > /dev/null; then
6519 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6521 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6527 # A generic and very simple default shared library creation
6528 # command for GNU C++ for the case where it uses the native
6529 # linker, instead of GNU ld. If possible, this setting should
6530 # overridden to take advantage of the native linker features on
6531 # the platform it is being used on.
6532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6535 # Commands to make compiler produce verbose output that lists
6536 # what "hidden" libraries, object files and flags are used when
6537 # linking a shared library.
6538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6546 # PORTME: fill in a description of your system's C++ link characteristics
6547 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6548 _LT_TAGVAR(ld_shlibs, $1)=yes
6551 # FIXME: insert proper C++ library support
6552 _LT_TAGVAR(ld_shlibs, $1)=no
6555 if test "$host_cpu" = ia64; then
6556 # On IA64, the linker does run time linking by default, so we don't
6557 # have to do anything special.
6558 aix_use_runtimelinking=no
6559 exp_sym_flag='-Bexport'
6562 aix_use_runtimelinking=no
6564 # Test if we are trying to use run time linking or normal
6565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6566 # need to do runtime linking.
6567 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6568 for ld_flag in $LDFLAGS; do
6571 aix_use_runtimelinking=yes
6579 exp_sym_flag='-bexport'
6580 no_entry_flag='-bnoentry'
6583 # When large executables or shared objects are built, AIX ld can
6584 # have problems creating the table of contents. If linking a library
6585 # or program results in "error TOC overflow" add -mminimal-toc to
6586 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6587 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6589 _LT_TAGVAR(archive_cmds, $1)=''
6590 _LT_TAGVAR(hardcode_direct, $1)=yes
6591 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6592 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6593 _LT_TAGVAR(link_all_deplibs, $1)=yes
6594 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6596 if test "$GXX" = yes; then
6597 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6598 # We only want to do this on AIX 4.2 and lower, the check
6599 # below for broken collect2 doesn't work under 4.3+
6600 collect2name=`${CC} -print-prog-name=collect2`
6601 if test -f "$collect2name" &&
6602 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6604 # We have reworked collect2
6607 # We have old collect2
6608 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6609 # It fails to find uninstalled libraries when the uninstalled
6610 # path is not listed in the libpath. Setting hardcode_minus_L
6611 # to unsupported forces relinking
6612 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6613 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6614 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6617 shared_flag='-shared'
6618 if test "$aix_use_runtimelinking" = yes; then
6619 shared_flag="$shared_flag "'${wl}-G'
6623 if test "$host_cpu" = ia64; then
6624 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6625 # chokes on -Wl,-G. The following line is correct:
6628 if test "$aix_use_runtimelinking" = yes; then
6629 shared_flag='${wl}-G'
6631 shared_flag='${wl}-bM:SRE'
6636 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6637 # It seems that -bexpall does not export symbols beginning with
6638 # underscore (_), so it is better to generate a list of symbols to
6640 _LT_TAGVAR(always_export_symbols, $1)=yes
6641 if test "$aix_use_runtimelinking" = yes; then
6642 # Warning - without using the other runtime loading flags (-brtl),
6643 # -berok will link without error, but may produce a broken library.
6644 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6645 # Determine the default libpath from the value encoded in an empty
6647 _LT_SYS_MODULE_PATH_AIX
6648 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6650 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6652 if test "$host_cpu" = ia64; then
6653 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6654 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6655 _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"
6657 # Determine the default libpath from the value encoded in an
6659 _LT_SYS_MODULE_PATH_AIX
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6661 # Warning - without using the other run time loading flags,
6662 # -berok will link without error, but may produce a broken library.
6663 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6665 # Exported symbols can be pulled into shared objects from archives
6666 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6667 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6668 # This is similar to how AIX traditionally builds its shared
6670 _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'
6676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6679 # support --undefined. This deserves some investigation. FIXME
6680 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6682 _LT_TAGVAR(ld_shlibs, $1)=no
6687 case $cc_basename in
6689 # FIXME: insert proper C++ library support
6690 _LT_TAGVAR(ld_shlibs, $1)=no
6695 cygwin* | mingw* | pw32* | cegcc*)
6696 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6697 # as there is no search path for DLLs.
6698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6700 _LT_TAGVAR(always_export_symbols, $1)=no
6701 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6704 _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'
6705 # If the export-symbols file already is a .def file (1st line
6706 # is EXPORTS), use it as is; otherwise, prepend...
6707 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6708 cp $export_symbols $output_objdir/$soname.def;
6710 echo EXPORTS > $output_objdir/$soname.def;
6711 cat $export_symbols >> $output_objdir/$soname.def;
6713 $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'
6715 _LT_TAGVAR(ld_shlibs, $1)=no
6718 darwin* | rhapsody*)
6719 _LT_DARWIN_LINKER_FEATURES($1)
6723 case $cc_basename in
6725 # FIXME: insert proper C++ library support
6726 _LT_TAGVAR(ld_shlibs, $1)=no
6729 # Green Hills C++ Compiler
6730 # FIXME: insert proper C++ library support
6731 _LT_TAGVAR(ld_shlibs, $1)=no
6734 # FIXME: insert proper C++ library support
6735 _LT_TAGVAR(ld_shlibs, $1)=no
6741 # C++ shared libraries reported to be fairly broken before
6743 _LT_TAGVAR(ld_shlibs, $1)=no
6747 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6750 freebsd* | dragonfly*)
6751 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6753 _LT_TAGVAR(ld_shlibs, $1)=yes
6760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6761 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6762 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6763 _LT_TAGVAR(hardcode_direct, $1)=yes
6764 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6765 # but as the default
6766 # location of the library.
6768 case $cc_basename in
6770 # FIXME: insert proper C++ library support
6771 _LT_TAGVAR(ld_shlibs, $1)=no
6774 _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'
6775 # Commands to make compiler produce verbose output that lists
6776 # what "hidden" libraries, object files and flags are used when
6777 # linking a shared library.
6779 # There doesn't appear to be a way to prevent this compiler from
6780 # explicitly linking system object files so we need to strip them
6781 # from the output so that they don't get included in the library
6783 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; $ECHO "X$list" | $Xsed'
6786 if test "$GXX" = yes; then
6787 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
6789 # FIXME: insert proper C++ library support
6790 _LT_TAGVAR(ld_shlibs, $1)=no
6797 if test $with_gnu_ld = no; then
6798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6799 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6805 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6811 _LT_TAGVAR(hardcode_direct, $1)=no
6812 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6815 _LT_TAGVAR(hardcode_direct, $1)=yes
6816 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6817 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6818 # but as the default
6819 # location of the library.
6823 case $cc_basename in
6825 # FIXME: insert proper C++ library support
6826 _LT_TAGVAR(ld_shlibs, $1)=no
6831 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6834 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6837 _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'
6840 # Commands to make compiler produce verbose output that lists
6841 # what "hidden" libraries, object files and flags are used when
6842 # linking a shared library.
6844 # There doesn't appear to be a way to prevent this compiler from
6845 # explicitly linking system object files so we need to strip them
6846 # from the output so that they don't get included in the library
6848 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; $ECHO "X$list" | $Xsed'
6851 if test "$GXX" = yes; then
6852 if test $with_gnu_ld = no; then
6855 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6858 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6866 # FIXME: insert proper C++ library support
6867 _LT_TAGVAR(ld_shlibs, $1)=no
6874 _LT_TAGVAR(hardcode_direct, $1)=no
6875 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6877 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6879 # Instead, shared libraries are loaded at an image base (0x10000000 by
6880 # default) and relocated if they conflict, which is a slow very memory
6881 # consuming and fragmenting process. To avoid this, we pick a random,
6882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6884 _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'
6885 _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'
6888 case $cc_basename in
6891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6893 # Archives containing C++ object files must be created using
6894 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6895 # necessary to make sure instantiated templates are included
6897 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6900 if test "$GXX" = yes; then
6901 if test "$with_gnu_ld" = no; then
6902 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6907 _LT_TAGVAR(link_all_deplibs, $1)=yes
6910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6911 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6912 _LT_TAGVAR(inherit_rpath, $1)=yes
6915 linux* | k*bsd*-gnu)
6916 case $cc_basename in
6918 # Kuck and Associates, Inc. (KAI) C++ Compiler
6920 # KCC will only create a shared library if the output file
6921 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6922 # to its proper name (with version) after linking.
6923 _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'
6924 _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'
6925 # Commands to make compiler produce verbose output that lists
6926 # what "hidden" libraries, object files and flags are used when
6927 # linking a shared library.
6929 # There doesn't appear to be a way to prevent this compiler from
6930 # explicitly linking system object files so we need to strip them
6931 # from the output so that they don't get included in the library
6933 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; $ECHO "X$list" | $Xsed'
6935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6936 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6938 # Archives containing C++ object files must be created using
6939 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6940 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6945 # version 8.0 and above of icpc choke on multiply defined symbols
6946 # if we add $predep_objects and $postdep_objects, however 7.1 and
6947 # earlier do not add the objects themselves.
6948 case `$CC -V 2>&1` in
6950 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951 _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'
6953 *) # Version 8.0 or newer
6956 ia64*) tmp_idyn=' -i_dynamic';;
6958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6959 _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'
6962 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6963 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6964 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6965 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6968 # Portland Group C++ compiler
6970 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6971 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6973 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6974 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6975 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6977 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6978 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6980 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6982 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6983 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6984 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6986 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6987 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6989 *) # Version 6 will use weak symbols
6990 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6991 _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'
6995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6996 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6997 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7001 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7002 _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'
7004 runpath_var=LD_RUN_PATH
7005 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7006 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7008 # Commands to make compiler produce verbose output that lists
7009 # what "hidden" libraries, object files and flags are used when
7010 # linking a shared library.
7012 # There doesn't appear to be a way to prevent this compiler from
7013 # explicitly linking system object files so we need to strip them
7014 # from the output so that they don't get included in the library
7016 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7019 # IBM XL 8.0 on PPC, with GNU ld
7020 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7021 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7022 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7023 if test "x$supports_anon_versioning" = xyes; then
7024 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7026 echo "local: *; };" >> $output_objdir/$libname.ver~
7027 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7031 case `$CC -V 2>&1 | sed 5q` in
7034 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7035 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7036 _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'
7037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7038 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7039 _LT_TAGVAR(compiler_needs_object, $1)=yes
7041 # Not sure whether something based on
7042 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7044 output_verbose_link_cmd='echo'
7046 # Archives containing C++ object files must be created using
7047 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7048 # necessary to make sure instantiated templates are included
7050 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7058 # FIXME: insert proper C++ library support
7059 _LT_TAGVAR(ld_shlibs, $1)=no
7063 # FIXME: insert proper C++ library support
7064 _LT_TAGVAR(ld_shlibs, $1)=no
7068 case $cc_basename in
7070 # FIXME: insert proper C++ library support
7071 _LT_TAGVAR(ld_shlibs, $1)=no
7074 # FIXME: insert proper C++ library support
7075 _LT_TAGVAR(ld_shlibs, $1)=no
7081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7082 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7085 _LT_TAGVAR(hardcode_direct, $1)=yes
7086 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7088 # Workaround some broken pre-1.5 toolchains
7089 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7093 _LT_TAGVAR(ld_shlibs, $1)=yes
7097 # C++ shared libraries are fairly broken
7098 _LT_TAGVAR(ld_shlibs, $1)=no
7102 if test -f /usr/libexec/ld.so; then
7103 _LT_TAGVAR(hardcode_direct, $1)=yes
7104 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7105 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7106 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7109 _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'
7110 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7111 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7113 output_verbose_link_cmd=echo
7115 _LT_TAGVAR(ld_shlibs, $1)=no
7119 osf3* | osf4* | osf5*)
7120 case $cc_basename in
7122 # Kuck and Associates, Inc. (KAI) C++ Compiler
7124 # KCC will only create a shared library if the output file
7125 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7126 # to its proper name (with version) after linking.
7127 _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'
7129 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7130 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7132 # Archives containing C++ object files must be created using
7133 # the KAI C++ compiler.
7135 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7136 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7140 # Rational C++ 2.4.1
7141 # FIXME: insert proper C++ library support
7142 _LT_TAGVAR(ld_shlibs, $1)=no
7147 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7148 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7149 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7152 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7153 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7154 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7155 echo "-hidden">> $lib.exp~
7156 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
7158 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7162 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7164 # Commands to make compiler produce verbose output that lists
7165 # what "hidden" libraries, object files and flags are used when
7166 # linking a shared library.
7168 # There doesn't appear to be a way to prevent this compiler from
7169 # explicitly linking system object files so we need to strip them
7170 # from the output so that they don't get included in the library
7172 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
7175 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7176 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7179 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7182 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7187 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7189 # Commands to make compiler produce verbose output that lists
7190 # what "hidden" libraries, object files and flags are used when
7191 # linking a shared library.
7192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7195 # FIXME: insert proper C++ library support
7196 _LT_TAGVAR(ld_shlibs, $1)=no
7203 # FIXME: insert proper C++ library support
7204 _LT_TAGVAR(ld_shlibs, $1)=no
7208 case $cc_basename in
7211 # FIXME: insert proper C++ library support
7212 _LT_TAGVAR(ld_shlibs, $1)=no
7216 # FIXME: insert proper C++ library support
7217 _LT_TAGVAR(ld_shlibs, $1)=no
7220 # FIXME: insert proper C++ library support
7221 _LT_TAGVAR(ld_shlibs, $1)=no
7227 case $cc_basename in
7229 # Sun C++ 4.2, 5.x and Centerline C++
7230 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7231 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7232 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7233 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7234 $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'
7236 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7237 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7239 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7241 # The compiler driver will combine and reorder linker options,
7242 # but understands `-z linker_flag'.
7243 # Supported since Solaris 2.6 (maybe 2.5.1?)
7244 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7247 _LT_TAGVAR(link_all_deplibs, $1)=yes
7249 output_verbose_link_cmd='echo'
7251 # Archives containing C++ object files must be created using
7252 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7253 # necessary to make sure instantiated templates are included
7255 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7258 # Green Hills C++ Compiler
7259 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7261 # The C++ compiler must be used to create the archive.
7262 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7265 # GNU C++ compiler with Solaris linker
7266 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7267 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7268 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7269 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7270 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7271 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7273 # Commands to make compiler produce verbose output that lists
7274 # what "hidden" libraries, object files and flags are used when
7275 # linking a shared library.
7276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7278 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7280 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7281 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7282 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7284 # Commands to make compiler produce verbose output that lists
7285 # what "hidden" libraries, object files and flags are used when
7286 # linking a shared library.
7287 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7290 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7292 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7294 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7303 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7304 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7305 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7306 runpath_var='LD_RUN_PATH'
7308 case $cc_basename in
7310 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7311 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7314 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7315 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7320 sysv5* | sco3.2v5* | sco5v6*)
7321 # Note: We can NOT use -z defs as we might desire, because we do not
7322 # link with -lc, and that would cause any symbols used from libc to
7323 # always be unresolved, which means just about no library would
7324 # ever link correctly. If we're not using GNU ld we use -z text
7325 # though, which does catch some bad symbols but isn't as heavy-handed
7327 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7328 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7329 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7330 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7332 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7333 _LT_TAGVAR(link_all_deplibs, $1)=yes
7334 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7335 runpath_var='LD_RUN_PATH'
7337 case $cc_basename in
7339 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7340 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7350 case $cc_basename in
7352 # NonStop-UX NCC 3.20
7353 # FIXME: insert proper C++ library support
7354 _LT_TAGVAR(ld_shlibs, $1)=no
7357 # FIXME: insert proper C++ library support
7358 _LT_TAGVAR(ld_shlibs, $1)=no
7364 # FIXME: insert proper C++ library support
7365 _LT_TAGVAR(ld_shlibs, $1)=no
7369 # FIXME: insert proper C++ library support
7370 _LT_TAGVAR(ld_shlibs, $1)=no
7374 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7375 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7377 _LT_TAGVAR(GCC, $1)="$GXX"
7378 _LT_TAGVAR(LD, $1)="$LD"
7381 ## There is no encapsulation within the following macros, do not change
7382 ## the running order or otherwise move them around unless you know exactly
7383 ## what you are doing...
7384 _LT_SYS_HIDDEN_LIBDEPS($1)
7385 _LT_COMPILER_PIC($1)
7386 _LT_COMPILER_C_O($1)
7387 _LT_COMPILER_FILE_LOCKS($1)
7388 _LT_LINKER_SHLIBS($1)
7389 _LT_SYS_DYNAMIC_LINKER($1)
7390 _LT_LINKER_HARDCODE_LIBPATH($1)
7393 fi # test -n "$compiler"
7399 with_gnu_ld=$lt_save_with_gnu_ld
7400 lt_cv_path_LDCXX=$lt_cv_path_LD
7401 lt_cv_path_LD=$lt_save_path_LD
7402 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7403 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7404 fi # test "$_lt_caught_CXX_error" != yes
7407 ])# _LT_LANG_CXX_CONFIG
7410 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7411 # ---------------------------------
7412 # Figure out "hidden" library dependencies from verbose
7413 # compiler output when linking a shared library.
7414 # Parse the compiler output and extract the necessary
7415 # objects, libraries and library flags.
7416 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7417 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7418 # Dependencies to place before and after the object being linked:
7419 _LT_TAGVAR(predep_objects, $1)=
7420 _LT_TAGVAR(postdep_objects, $1)=
7421 _LT_TAGVAR(predeps, $1)=
7422 _LT_TAGVAR(postdeps, $1)=
7423 _LT_TAGVAR(compiler_lib_search_path, $1)=
7425 dnl we can't use the lt_simple_compile_test_code here,
7426 dnl because it contains code intended for an executable,
7427 dnl not a library. It's possible we should let each
7428 dnl tag define a new lt_????_link_test_code variable,
7429 dnl but it's only used here...
7430 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7432 void foo (void) { a = 0; }
7434 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7438 Foo (void) { a = 0; }
7443 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7451 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7459 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7462 public void bar (void) {
7468 dnl Parse the compiler output and extract the necessary
7469 dnl objects, libraries and library flags.
7470 if AC_TRY_EVAL(ac_compile); then
7471 # Parse the compiler output and extract the necessary
7472 # objects, libraries and library flags.
7474 # Sentinel used to keep track of whether or not we are before
7475 # the conftest object file.
7476 pre_test_object_deps_done=no
7478 for p in `eval "$output_verbose_link_cmd"`; do
7482 # Some compilers place space between "-{L,R}" and the path.
7484 if test $p = "-L" ||
7485 test $p = "-R"; then
7492 if test "$pre_test_object_deps_done" = no; then
7495 # Internal compiler library paths should come after those
7496 # provided the user. The postdeps already come after the
7497 # user supplied libs so there is no need to process them.
7498 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7499 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7501 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7504 # The "-l" case would never come before the object being
7505 # linked, so don't bother handling this case.
7508 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7509 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7511 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7517 # This assumes that the test object file only shows up
7518 # once in the compiler output.
7519 if test "$p" = "conftest.$objext"; then
7520 pre_test_object_deps_done=yes
7524 if test "$pre_test_object_deps_done" = no; then
7525 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7526 _LT_TAGVAR(predep_objects, $1)="$p"
7528 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7531 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7532 _LT_TAGVAR(postdep_objects, $1)="$p"
7534 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7539 *) ;; # Ignore the rest.
7547 echo "libtool.m4: error: problem compiling $1 test program"
7550 $RM -f confest.$objext
7552 # PORTME: override above test on systems where it is broken
7556 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7557 # hack all around it, let's just trust "g++" to DTRT.
7558 _LT_TAGVAR(predep_objects,$1)=
7559 _LT_TAGVAR(postdep_objects,$1)=
7560 _LT_TAGVAR(postdeps,$1)=
7564 case `$CC -V 2>&1 | sed 5q` in
7568 # The more standards-conforming stlport4 library is
7569 # incompatible with the Cstd library. Avoid specifying
7570 # it if it's in CXXFLAGS. Ignore libCrun as
7571 # -library=stlport4 depends on it.
7572 case " $CXX $CXXFLAGS " in
7573 *" -library=stlport4 "*)
7574 solaris_use_stlport4=yes
7578 if test "$solaris_use_stlport4" != yes; then
7579 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7586 case $cc_basename in
7588 # The more standards-conforming stlport4 library is
7589 # incompatible with the Cstd library. Avoid specifying
7590 # it if it's in CXXFLAGS. Ignore libCrun as
7591 # -library=stlport4 depends on it.
7592 case " $CXX $CXXFLAGS " in
7593 *" -library=stlport4 "*)
7594 solaris_use_stlport4=yes
7598 # Adding this requires a known-good setup of shared libraries for
7599 # Sun compiler versions before 5.6, else PIC objects from an old
7600 # archive will be linked into the output, leading to subtle bugs.
7601 if test "$solaris_use_stlport4" != yes; then
7602 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7610 case " $_LT_TAGVAR(postdeps, $1) " in
7611 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7613 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7614 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7615 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7617 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7618 [The directories searched by this compiler when creating a shared library])
7619 _LT_TAGDECL([], [predep_objects], [1],
7620 [Dependencies to place before and after the objects being linked to
7621 create a shared library])
7622 _LT_TAGDECL([], [postdep_objects], [1])
7623 _LT_TAGDECL([], [predeps], [1])
7624 _LT_TAGDECL([], [postdeps], [1])
7625 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7626 [The library search path used internally by the compiler when linking
7628 ])# _LT_SYS_HIDDEN_LIBDEPS
7633 # Since AC_PROG_F77 is broken, in that it returns the empty string
7634 # if there is no fortran compiler, we have our own version here.
7635 m4_defun([_LT_PROG_F77],
7637 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7639 if test -z "$F77" || test "X$F77" = "Xno"; then
7642 popdef([AC_MSG_ERROR])
7645 dnl aclocal-1.4 backwards compatibility:
7646 dnl AC_DEFUN([_LT_PROG_F77], [])
7649 # _LT_LANG_F77_CONFIG([TAG])
7650 # --------------------------
7651 # Ensure that the configuration variables for a Fortran 77 compiler are
7652 # suitably defined. These variables are subsequently used by _LT_CONFIG
7653 # to write the compiler configuration to `libtool'.
7654 m4_defun([_LT_LANG_F77_CONFIG],
7655 [AC_REQUIRE([_LT_PROG_F77])dnl
7656 AC_LANG_PUSH(Fortran 77)
7658 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7659 _LT_TAGVAR(allow_undefined_flag, $1)=
7660 _LT_TAGVAR(always_export_symbols, $1)=no
7661 _LT_TAGVAR(archive_expsym_cmds, $1)=
7662 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7663 _LT_TAGVAR(hardcode_direct, $1)=no
7664 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7665 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7666 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7667 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7668 _LT_TAGVAR(hardcode_minus_L, $1)=no
7669 _LT_TAGVAR(hardcode_automatic, $1)=no
7670 _LT_TAGVAR(inherit_rpath, $1)=no
7671 _LT_TAGVAR(module_cmds, $1)=
7672 _LT_TAGVAR(module_expsym_cmds, $1)=
7673 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7674 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7675 _LT_TAGVAR(no_undefined_flag, $1)=
7676 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7677 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7679 # Source file extension for f77 test sources.
7682 # Object file extension for compiled f77 test sources.
7684 _LT_TAGVAR(objext, $1)=$objext
7686 # No sense in running all these tests if we already determined that
7687 # the F77 compiler isn't working. Some variables (like enable_shared)
7688 # are currently assumed to apply to all compilers on this platform,
7689 # and will be corrupted by setting them based on a non-working compiler.
7690 if test "$_lt_disable_F77" != yes; then
7691 # Code to be used in simple compile tests
7692 lt_simple_compile_test_code="\
7698 # Code to be used in simple link tests
7699 lt_simple_link_test_code="\
7704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7707 # save warnings/boilerplate of simple test code
7708 _LT_COMPILER_BOILERPLATE
7709 _LT_LINKER_BOILERPLATE
7711 # Allow CC to be a program name with arguments.
7716 _LT_TAGVAR(compiler, $1)=$CC
7717 _LT_CC_BASENAME([$compiler])
7719 if test -n "$compiler"; then
7720 AC_MSG_CHECKING([if libtool supports shared libraries])
7721 AC_MSG_RESULT([$can_build_shared])
7723 AC_MSG_CHECKING([whether to build shared libraries])
7724 test "$can_build_shared" = "no" && enable_shared=no
7726 # On AIX, shared libraries and static libraries use the same namespace, and
7727 # are all built from PIC.
7730 test "$enable_shared" = yes && enable_static=no
7731 if test -n "$RANLIB"; then
7732 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7733 postinstall_cmds='$RANLIB $lib'
7737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7738 test "$enable_shared" = yes && enable_static=no
7742 AC_MSG_RESULT([$enable_shared])
7744 AC_MSG_CHECKING([whether to build static libraries])
7745 # Make sure either enable_shared or enable_static is yes.
7746 test "$enable_shared" = yes || enable_static=yes
7747 AC_MSG_RESULT([$enable_static])
7749 _LT_TAGVAR(GCC, $1)="$G77"
7750 _LT_TAGVAR(LD, $1)="$LD"
7753 ## There is no encapsulation within the following macros, do not change
7754 ## the running order or otherwise move them around unless you know exactly
7755 ## what you are doing...
7756 _LT_COMPILER_PIC($1)
7757 _LT_COMPILER_C_O($1)
7758 _LT_COMPILER_FILE_LOCKS($1)
7759 _LT_LINKER_SHLIBS($1)
7760 _LT_SYS_DYNAMIC_LINKER($1)
7761 _LT_LINKER_HARDCODE_LIBPATH($1)
7764 fi # test -n "$compiler"
7768 fi # test "$_lt_disable_F77" != yes
7771 ])# _LT_LANG_F77_CONFIG
7776 # Since AC_PROG_FC is broken, in that it returns the empty string
7777 # if there is no fortran compiler, we have our own version here.
7778 m4_defun([_LT_PROG_FC],
7780 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7782 if test -z "$FC" || test "X$FC" = "Xno"; then
7785 popdef([AC_MSG_ERROR])
7788 dnl aclocal-1.4 backwards compatibility:
7789 dnl AC_DEFUN([_LT_PROG_FC], [])
7792 # _LT_LANG_FC_CONFIG([TAG])
7793 # -------------------------
7794 # Ensure that the configuration variables for a Fortran compiler are
7795 # suitably defined. These variables are subsequently used by _LT_CONFIG
7796 # to write the compiler configuration to `libtool'.
7797 m4_defun([_LT_LANG_FC_CONFIG],
7798 [AC_REQUIRE([_LT_PROG_FC])dnl
7799 AC_LANG_PUSH(Fortran)
7801 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7802 _LT_TAGVAR(allow_undefined_flag, $1)=
7803 _LT_TAGVAR(always_export_symbols, $1)=no
7804 _LT_TAGVAR(archive_expsym_cmds, $1)=
7805 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7806 _LT_TAGVAR(hardcode_direct, $1)=no
7807 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7809 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7810 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7811 _LT_TAGVAR(hardcode_minus_L, $1)=no
7812 _LT_TAGVAR(hardcode_automatic, $1)=no
7813 _LT_TAGVAR(inherit_rpath, $1)=no
7814 _LT_TAGVAR(module_cmds, $1)=
7815 _LT_TAGVAR(module_expsym_cmds, $1)=
7816 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7817 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7818 _LT_TAGVAR(no_undefined_flag, $1)=
7819 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7820 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7822 # Source file extension for fc test sources.
7823 ac_ext=${ac_fc_srcext-f}
7825 # Object file extension for compiled fc test sources.
7827 _LT_TAGVAR(objext, $1)=$objext
7829 # No sense in running all these tests if we already determined that
7830 # the FC compiler isn't working. Some variables (like enable_shared)
7831 # are currently assumed to apply to all compilers on this platform,
7832 # and will be corrupted by setting them based on a non-working compiler.
7833 if test "$_lt_disable_FC" != yes; then
7834 # Code to be used in simple compile tests
7835 lt_simple_compile_test_code="\
7841 # Code to be used in simple link tests
7842 lt_simple_link_test_code="\
7847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7850 # save warnings/boilerplate of simple test code
7851 _LT_COMPILER_BOILERPLATE
7852 _LT_LINKER_BOILERPLATE
7854 # Allow CC to be a program name with arguments.
7859 GCC=$ac_cv_fc_compiler_gnu
7861 _LT_TAGVAR(compiler, $1)=$CC
7862 _LT_CC_BASENAME([$compiler])
7864 if test -n "$compiler"; then
7865 AC_MSG_CHECKING([if libtool supports shared libraries])
7866 AC_MSG_RESULT([$can_build_shared])
7868 AC_MSG_CHECKING([whether to build shared libraries])
7869 test "$can_build_shared" = "no" && enable_shared=no
7871 # On AIX, shared libraries and static libraries use the same namespace, and
7872 # are all built from PIC.
7875 test "$enable_shared" = yes && enable_static=no
7876 if test -n "$RANLIB"; then
7877 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7878 postinstall_cmds='$RANLIB $lib'
7882 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7883 test "$enable_shared" = yes && enable_static=no
7887 AC_MSG_RESULT([$enable_shared])
7889 AC_MSG_CHECKING([whether to build static libraries])
7890 # Make sure either enable_shared or enable_static is yes.
7891 test "$enable_shared" = yes || enable_static=yes
7892 AC_MSG_RESULT([$enable_static])
7894 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7895 _LT_TAGVAR(LD, $1)="$LD"
7898 ## There is no encapsulation within the following macros, do not change
7899 ## the running order or otherwise move them around unless you know exactly
7900 ## what you are doing...
7901 _LT_SYS_HIDDEN_LIBDEPS($1)
7902 _LT_COMPILER_PIC($1)
7903 _LT_COMPILER_C_O($1)
7904 _LT_COMPILER_FILE_LOCKS($1)
7905 _LT_LINKER_SHLIBS($1)
7906 _LT_SYS_DYNAMIC_LINKER($1)
7907 _LT_LINKER_HARDCODE_LIBPATH($1)
7910 fi # test -n "$compiler"
7914 fi # test "$_lt_disable_FC" != yes
7917 ])# _LT_LANG_FC_CONFIG
7920 # _LT_LANG_GCJ_CONFIG([TAG])
7921 # --------------------------
7922 # Ensure that the configuration variables for the GNU Java Compiler compiler
7923 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7924 # to write the compiler configuration to `libtool'.
7925 m4_defun([_LT_LANG_GCJ_CONFIG],
7926 [AC_REQUIRE([LT_PROG_GCJ])dnl
7929 # Source file extension for Java test sources.
7932 # Object file extension for compiled Java test sources.
7934 _LT_TAGVAR(objext, $1)=$objext
7936 # Code to be used in simple compile tests
7937 lt_simple_compile_test_code="class foo {}"
7939 # Code to be used in simple link tests
7940 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7945 # save warnings/boilerplate of simple test code
7946 _LT_COMPILER_BOILERPLATE
7947 _LT_LINKER_BOILERPLATE
7949 # Allow CC to be a program name with arguments.
7955 _LT_TAGVAR(compiler, $1)=$CC
7956 _LT_TAGVAR(LD, $1)="$LD"
7957 _LT_CC_BASENAME([$compiler])
7959 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7960 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7962 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7964 if test -n "$compiler"; then
7965 _LT_COMPILER_NO_RTTI($1)
7966 _LT_COMPILER_PIC($1)
7967 _LT_COMPILER_C_O($1)
7968 _LT_COMPILER_FILE_LOCKS($1)
7969 _LT_LINKER_SHLIBS($1)
7970 _LT_LINKER_HARDCODE_LIBPATH($1)
7979 ])# _LT_LANG_GCJ_CONFIG
7982 # _LT_LANG_RC_CONFIG([TAG])
7983 # -------------------------
7984 # Ensure that the configuration variables for the Windows resource compiler
7985 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7986 # to write the compiler configuration to `libtool'.
7987 m4_defun([_LT_LANG_RC_CONFIG],
7988 [AC_REQUIRE([LT_PROG_RC])dnl
7991 # Source file extension for RC test sources.
7994 # Object file extension for compiled RC test sources.
7996 _LT_TAGVAR(objext, $1)=$objext
7998 # Code to be used in simple compile tests
7999 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8001 # Code to be used in simple link tests
8002 lt_simple_link_test_code="$lt_simple_compile_test_code"
8004 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8007 # save warnings/boilerplate of simple test code
8008 _LT_COMPILER_BOILERPLATE
8009 _LT_LINKER_BOILERPLATE
8011 # Allow CC to be a program name with arguments.
8017 _LT_TAGVAR(compiler, $1)=$CC
8018 _LT_CC_BASENAME([$compiler])
8019 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8021 if test -n "$compiler"; then
8029 ])# _LT_LANG_RC_CONFIG
8034 AC_DEFUN([LT_PROG_GCJ],
8035 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8036 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8037 [AC_CHECK_TOOL(GCJ, gcj,)
8038 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8039 AC_SUBST(GCJFLAGS)])])[]dnl
8043 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8044 dnl aclocal-1.4 backwards compatibility:
8045 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8050 AC_DEFUN([LT_PROG_RC],
8051 [AC_CHECK_TOOL(RC, windres,)
8055 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8056 dnl aclocal-1.4 backwards compatibility:
8057 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8062 # If we don't have a new enough Autoconf to choose the best grep
8063 # available, choose the one first in the user's PATH.
8064 m4_defun([_LT_DECL_EGREP],
8065 [AC_REQUIRE([AC_PROG_EGREP])dnl
8066 AC_REQUIRE([AC_PROG_FGREP])dnl
8067 test -z "$GREP" && GREP=grep
8068 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8069 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8070 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8071 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8078 # If we don't have a new enough Autoconf to choose the best objdump
8079 # available, choose the one first in the user's PATH.
8080 m4_defun([_LT_DECL_OBJDUMP],
8081 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8082 test -z "$OBJDUMP" && OBJDUMP=objdump
8083 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8090 # Check for a fully-functional sed program, that truncates
8091 # as few characters as possible. Prefer GNU sed if found.
8092 m4_defun([_LT_DECL_SED],
8094 test -z "$SED" && SED=sed
8095 Xsed="$SED -e 1s/^X//"
8096 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8097 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8098 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8101 m4_ifndef([AC_PROG_SED], [
8102 # NOTE: This macro has been submitted for inclusion into #
8103 # GNU Autoconf as AC_PROG_SED. When it is available in #
8104 # a released version of Autoconf we should remove this #
8105 # macro and use it instead. #
8107 m4_defun([AC_PROG_SED],
8108 [AC_MSG_CHECKING([for a sed that does not truncate output])
8109 AC_CACHE_VAL(lt_cv_path_SED,
8110 [# Loop through the user's path and test for sed and gsed.
8111 # Then use that list of sed's as ones to test for truncation.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for lt_ac_prog in sed gsed; do
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8120 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8128 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8129 # along with /bin/sed that truncates output.
8130 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8131 test ! -f $lt_ac_sed && continue
8132 cat /dev/null > conftest.in
8134 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8135 # Check for GNU sed and select it if it is found.
8136 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8137 lt_cv_path_SED=$lt_ac_sed
8141 cat conftest.in conftest.in >conftest.tmp
8142 mv conftest.tmp conftest.in
8143 cp conftest.in conftest.nl
8145 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8146 cmp -s conftest.out conftest.nl || break
8147 # 10000 chars as input seems more than enough
8148 test $lt_ac_count -gt 10 && break
8149 lt_ac_count=`expr $lt_ac_count + 1`
8150 if test $lt_ac_count -gt $lt_ac_max; then
8151 lt_ac_max=$lt_ac_count
8152 lt_cv_path_SED=$lt_ac_sed
8159 AC_MSG_RESULT([$SED])
8164 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8165 dnl aclocal-1.4 backwards compatibility:
8166 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8169 # _LT_CHECK_SHELL_FEATURES
8170 # ------------------------
8171 # Find out whether the shell is Bourne or XSI compatible,
8172 # or has some other useful features.
8173 m4_defun([_LT_CHECK_SHELL_FEATURES],
8174 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8175 # Try some XSI features
8178 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8180 && eval 'test $(( 1 + 1 )) -eq 2 \
8181 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8183 AC_MSG_RESULT([$xsi_shell])
8184 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8186 AC_MSG_CHECKING([whether the shell understands "+="])
8188 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8190 && lt_shell_append=yes
8191 AC_MSG_RESULT([$lt_shell_append])
8192 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8199 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8201 # test EBCDIC or ASCII
8202 case `echo X|tr X '\101'` in
8203 A) # ASCII based system
8204 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8205 lt_SP2NL='tr \040 \012'
8206 lt_NL2SP='tr \015\012 \040\040'
8208 *) # EBCDIC based system
8209 lt_SP2NL='tr \100 \n'
8210 lt_NL2SP='tr \r\n \100\100'
8213 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8214 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8215 ])# _LT_CHECK_SHELL_FEATURES
8218 # _LT_PROG_XSI_SHELLFNS
8219 # ---------------------
8220 # Bourne and XSI compatible variants of some useful shell functions.
8221 m4_defun([_LT_PROG_XSI_SHELLFNS],
8224 cat << \_LT_EOF >> "$cfgfile"
8226 # func_dirname file append nondir_replacement
8227 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8228 # otherwise set result to NONDIR_REPLACEMENT.
8232 */*) func_dirname_result="${1%/*}${2}" ;;
8233 * ) func_dirname_result="${3}" ;;
8237 # func_basename file
8240 func_basename_result="${1##*/}"
8243 # func_dirname_and_basename file append nondir_replacement
8244 # perform func_basename and func_dirname in a single function
8246 # dirname: Compute the dirname of FILE. If nonempty,
8247 # add APPEND to the result, otherwise set result
8248 # to NONDIR_REPLACEMENT.
8249 # value returned in "$func_dirname_result"
8250 # basename: Compute filename of FILE.
8251 # value retuned in "$func_basename_result"
8252 # Implementation must be kept synchronized with func_dirname
8253 # and func_basename. For efficiency, we do not delegate to
8254 # those functions but instead duplicate the functionality here.
8255 func_dirname_and_basename ()
8258 */*) func_dirname_result="${1%/*}${2}" ;;
8259 * ) func_dirname_result="${3}" ;;
8261 func_basename_result="${1##*/}"
8264 # func_stripname prefix suffix name
8265 # strip PREFIX and SUFFIX off of NAME.
8266 # PREFIX and SUFFIX must not contain globbing or regex special
8267 # characters, hashes, percent signs, but SUFFIX may contain a leading
8268 # dot (in which case that matches only a dot).
8271 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8272 # positional parameters, so assign one to ordinary parameter first.
8273 func_stripname_result=${3}
8274 func_stripname_result=${func_stripname_result#"${1}"}
8275 func_stripname_result=${func_stripname_result%"${2}"}
8281 func_opt_split_opt=${1%%=*}
8282 func_opt_split_arg=${1#*=}
8289 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8290 *) func_lo2o_result=${1} ;;
8294 # func_xform libobj-or-source
8297 func_xform_result=${1%.*}.lo
8300 # func_arith arithmetic-term...
8303 func_arith_result=$(( $[*] ))
8307 # STRING may not start with a hyphen.
8310 func_len_result=${#1}
8315 *) # Bourne compatible functions.
8316 cat << \_LT_EOF >> "$cfgfile"
8318 # func_dirname file append nondir_replacement
8319 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8320 # otherwise set result to NONDIR_REPLACEMENT.
8323 # Extract subdirectory from the argument.
8324 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8325 if test "X$func_dirname_result" = "X${1}"; then
8326 func_dirname_result="${3}"
8328 func_dirname_result="$func_dirname_result${2}"
8332 # func_basename file
8335 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8338 dnl func_dirname_and_basename
8339 dnl A portable version of this function is already defined in general.m4sh
8340 dnl so there is no need for it here.
8342 # func_stripname prefix suffix name
8343 # strip PREFIX and SUFFIX off of NAME.
8344 # PREFIX and SUFFIX must not contain globbing or regex special
8345 # characters, hashes, percent signs, but SUFFIX may contain a leading
8346 # dot (in which case that matches only a dot).
8347 # func_strip_suffix prefix name
8351 .*) func_stripname_result=`$ECHO "X${3}" \
8352 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8353 *) func_stripname_result=`$ECHO "X${3}" \
8354 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8359 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8360 my_sed_long_arg='1s/^-[[^=]]*=//'
8365 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8366 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8372 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8375 # func_xform libobj-or-source
8378 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8381 # func_arith arithmetic-term...
8384 func_arith_result=`expr "$[@]"`
8388 # STRING may not start with a hyphen.
8391 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8397 case $lt_shell_append in
8399 cat << \_LT_EOF >> "$cfgfile"
8401 # func_append var value
8402 # Append VALUE to the end of shell variable VAR.
8410 cat << \_LT_EOF >> "$cfgfile"
8412 # func_append var value
8413 # Append VALUE to the end of shell variable VAR.
8416 eval "$[1]=\$$[1]\$[2]"
8424 # Helper functions for option handling. -*- Autoconf -*-
8426 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8427 # Written by Gary V. Vaughan, 2004
8429 # This file is free software; the Free Software Foundation gives
8430 # unlimited permission to copy and/or distribute it, with or without
8431 # modifications, as long as this notice is preserved.
8433 # serial 6 ltoptions.m4
8435 # This is to help aclocal find these macros, as it can't see m4_define.
8436 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8439 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8440 # ------------------------------------------
8441 m4_define([_LT_MANGLE_OPTION],
8442 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8445 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8446 # ---------------------------------------
8447 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8448 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8450 m4_define([_LT_SET_OPTION],
8451 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8452 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8453 _LT_MANGLE_DEFUN([$1], [$2]),
8454 [m4_warning([Unknown $1 option `$2'])])[]dnl
8458 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8459 # ------------------------------------------------------------
8460 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8461 m4_define([_LT_IF_OPTION],
8462 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8465 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8466 # -------------------------------------------------------
8467 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8469 m4_define([_LT_UNLESS_OPTIONS],
8470 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8471 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8472 [m4_define([$0_found])])])[]dnl
8473 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8478 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8479 # ----------------------------------------
8480 # OPTION-LIST is a space-separated list of Libtool options associated
8481 # with MACRO-NAME. If any OPTION has a matching handler declared with
8482 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8483 # the unknown option and exit.
8484 m4_defun([_LT_SET_OPTIONS],
8486 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8487 [_LT_SET_OPTION([$1], _LT_Option)])
8489 m4_if([$1],[LT_INIT],[
8491 dnl Simply set some default values (i.e off) if boolean options were not
8493 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8495 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8498 dnl If no reference was made to various pairs of opposing options, then
8499 dnl we run the default mode handler for the pair. For example, if neither
8500 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8501 dnl archives by default:
8502 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8503 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8504 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8505 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8506 [_LT_ENABLE_FAST_INSTALL])
8512 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8513 # -----------------------------------------
8514 m4_define([_LT_MANGLE_DEFUN],
8515 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8518 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8519 # -----------------------------------------------
8520 m4_define([LT_OPTION_DEFINE],
8521 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8522 ])# LT_OPTION_DEFINE
8527 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8530 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8531 [_LT_SET_OPTION([LT_INIT], [dlopen])
8532 AC_DIAGNOSE([obsolete],
8533 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8534 put the `dlopen' option into LT_INIT's first parameter.])
8537 dnl aclocal-1.4 backwards compatibility:
8538 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8543 # Declare package support for building win32 dll's.
8544 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8545 [enable_win32_dll=yes
8548 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8549 AC_CHECK_TOOL(AS, as, false)
8550 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8551 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8555 test -z "$AS" && AS=as
8556 _LT_DECL([], [AS], [0], [Assembler program])dnl
8558 test -z "$DLLTOOL" && DLLTOOL=dlltool
8559 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8561 test -z "$OBJDUMP" && OBJDUMP=objdump
8562 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8565 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8566 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8567 _LT_SET_OPTION([LT_INIT], [win32-dll])
8568 AC_DIAGNOSE([obsolete],
8569 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8570 put the `win32-dll' option into LT_INIT's first parameter.])
8573 dnl aclocal-1.4 backwards compatibility:
8574 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8577 # _LT_ENABLE_SHARED([DEFAULT])
8578 # ----------------------------
8579 # implement the --enable-shared flag, and supports the `shared' and
8580 # `disable-shared' LT_INIT options.
8581 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8582 m4_define([_LT_ENABLE_SHARED],
8583 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8584 AC_ARG_ENABLE([shared],
8585 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8586 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8587 [p=${PACKAGE-default}
8589 yes) enable_shared=yes ;;
8590 no) enable_shared=no ;;
8593 # Look at the argument we got. We use all the common list separators.
8594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8595 for pkg in $enableval; do
8597 if test "X$pkg" = "X$p"; then
8604 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8606 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8607 [Whether or not to build shared libraries])
8608 ])# _LT_ENABLE_SHARED
8610 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8611 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8614 AC_DEFUN([AC_ENABLE_SHARED],
8615 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8618 AC_DEFUN([AC_DISABLE_SHARED],
8619 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8622 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8623 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8625 dnl aclocal-1.4 backwards compatibility:
8626 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8627 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8631 # _LT_ENABLE_STATIC([DEFAULT])
8632 # ----------------------------
8633 # implement the --enable-static flag, and support the `static' and
8634 # `disable-static' LT_INIT options.
8635 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8636 m4_define([_LT_ENABLE_STATIC],
8637 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8638 AC_ARG_ENABLE([static],
8639 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8640 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8641 [p=${PACKAGE-default}
8643 yes) enable_static=yes ;;
8644 no) enable_static=no ;;
8647 # Look at the argument we got. We use all the common list separators.
8648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8649 for pkg in $enableval; do
8651 if test "X$pkg" = "X$p"; then
8658 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8660 _LT_DECL([build_old_libs], [enable_static], [0],
8661 [Whether or not to build static libraries])
8662 ])# _LT_ENABLE_STATIC
8664 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8665 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8668 AC_DEFUN([AC_ENABLE_STATIC],
8669 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8672 AC_DEFUN([AC_DISABLE_STATIC],
8673 [_LT_SET_OPTION([LT_INIT], [disable-static])
8676 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8677 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8679 dnl aclocal-1.4 backwards compatibility:
8680 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8681 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8685 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8686 # ----------------------------------
8687 # implement the --enable-fast-install flag, and support the `fast-install'
8688 # and `disable-fast-install' LT_INIT options.
8689 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8690 m4_define([_LT_ENABLE_FAST_INSTALL],
8691 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8692 AC_ARG_ENABLE([fast-install],
8693 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8694 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8695 [p=${PACKAGE-default}
8697 yes) enable_fast_install=yes ;;
8698 no) enable_fast_install=no ;;
8700 enable_fast_install=no
8701 # Look at the argument we got. We use all the common list separators.
8702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8703 for pkg in $enableval; do
8705 if test "X$pkg" = "X$p"; then
8706 enable_fast_install=yes
8712 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8714 _LT_DECL([fast_install], [enable_fast_install], [0],
8715 [Whether or not to optimize for fast installation])dnl
8716 ])# _LT_ENABLE_FAST_INSTALL
8718 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8719 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8722 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8723 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8724 AC_DIAGNOSE([obsolete],
8725 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8726 the `fast-install' option into LT_INIT's first parameter.])
8729 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8730 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8731 AC_DIAGNOSE([obsolete],
8732 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8733 the `disable-fast-install' option into LT_INIT's first parameter.])
8736 dnl aclocal-1.4 backwards compatibility:
8737 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8738 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8741 # _LT_WITH_PIC([MODE])
8742 # --------------------
8743 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8745 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8746 m4_define([_LT_WITH_PIC],
8748 [AS_HELP_STRING([--with-pic],
8749 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8750 [pic_mode="$withval"],
8753 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8755 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8758 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8759 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8762 AU_DEFUN([AC_LIBTOOL_PICMODE],
8763 [_LT_SET_OPTION([LT_INIT], [pic-only])
8764 AC_DIAGNOSE([obsolete],
8765 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8766 put the `pic-only' option into LT_INIT's first parameter.])
8769 dnl aclocal-1.4 backwards compatibility:
8770 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8773 m4_define([_LTDL_MODE], [])
8774 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8775 [m4_define([_LTDL_MODE], [nonrecursive])])
8776 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8777 [m4_define([_LTDL_MODE], [recursive])])
8778 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8779 [m4_define([_LTDL_MODE], [subproject])])
8781 m4_define([_LTDL_TYPE], [])
8782 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8783 [m4_define([_LTDL_TYPE], [installable])])
8784 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8785 [m4_define([_LTDL_TYPE], [convenience])])
8787 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8789 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8790 # Written by Gary V. Vaughan, 2004
8792 # This file is free software; the Free Software Foundation gives
8793 # unlimited permission to copy and/or distribute it, with or without
8794 # modifications, as long as this notice is preserved.
8796 # serial 6 ltsugar.m4
8798 # This is to help aclocal find these macros, as it can't see m4_define.
8799 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8802 # lt_join(SEP, ARG1, [ARG2...])
8803 # -----------------------------
8804 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8805 # associated separator.
8806 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8807 # versions in m4sugar had bugs.
8808 m4_define([lt_join],
8809 [m4_if([$#], [1], [],
8811 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8812 m4_define([_lt_join],
8813 [m4_if([$#$2], [2], [],
8814 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8820 # Manipulate m4 lists.
8821 # These macros are necessary as long as will still need to support
8822 # Autoconf-2.59 which quotes differently.
8823 m4_define([lt_car], [[$1]])
8825 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8827 [m4_dquote(m4_shift($@))])])
8828 m4_define([lt_unquote], $1)
8831 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8832 # ------------------------------------------
8833 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8834 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8835 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8836 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8837 # than defined and empty).
8839 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8840 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8841 m4_define([lt_append],
8843 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8847 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8848 # ----------------------------------------------------------
8849 # Produce a SEP delimited list of all paired combinations of elements of
8850 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8851 # has the form PREFIXmINFIXSUFFIXn.
8852 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8853 m4_define([lt_combine],
8854 [m4_if(m4_eval([$# > 3]), [1],
8855 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8856 [[m4_foreach([_Lt_prefix], [$2],
8857 [m4_foreach([_Lt_suffix],
8858 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8859 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8862 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8863 # -----------------------------------------------------------------------
8864 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8865 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8866 m4_define([lt_if_append_uniq],
8868 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8869 [lt_append([$1], [$2], [$3])$4],
8871 [lt_append([$1], [$2], [$3])$4])])
8874 # lt_dict_add(DICT, KEY, VALUE)
8875 # -----------------------------
8876 m4_define([lt_dict_add],
8877 [m4_define([$1($2)], [$3])])
8880 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8881 # --------------------------------------------
8882 m4_define([lt_dict_add_subkey],
8883 [m4_define([$1($2:$3)], [$4])])
8886 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8887 # ----------------------------------
8888 m4_define([lt_dict_fetch],
8890 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8891 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8894 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8895 # -----------------------------------------------------------------
8896 m4_define([lt_if_dict_fetch],
8897 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8902 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8903 # --------------------------------------------------------------
8904 m4_define([lt_dict_filter],
8905 [m4_if([$5], [], [],
8906 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8907 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8908 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8911 # ltversion.m4 -- version numbers -*- Autoconf -*-
8913 # Copyright (C) 2004 Free Software Foundation, Inc.
8914 # Written by Scott James Remnant, 2004
8916 # This file is free software; the Free Software Foundation gives
8917 # unlimited permission to copy and/or distribute it, with or without
8918 # modifications, as long as this notice is preserved.
8920 # Generated from ltversion.in.
8922 # serial 3012 ltversion.m4
8923 # This file is part of GNU Libtool
8925 m4_define([LT_PACKAGE_VERSION], [2.2.6])
8926 m4_define([LT_PACKAGE_REVISION], [1.3012])
8928 AC_DEFUN([LTVERSION_VERSION],
8929 [macro_version='2.2.6'
8930 macro_revision='1.3012'
8931 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8932 _LT_DECL(, macro_revision, 0)
8935 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8937 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8938 # Written by Scott James Remnant, 2004.
8940 # This file is free software; the Free Software Foundation gives
8941 # unlimited permission to copy and/or distribute it, with or without
8942 # modifications, as long as this notice is preserved.
8944 # serial 4 lt~obsolete.m4
8946 # These exist entirely to fool aclocal when bootstrapping libtool.
8948 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8949 # which have later been changed to m4_define as they aren't part of the
8950 # exported API, or moved to Autoconf or Automake where they belong.
8952 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8953 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8954 # using a macro with the same name in our local m4/libtool.m4 it'll
8955 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8956 # and doesn't know about Autoconf macros at all.)
8958 # So we provide this file, which has a silly filename so it's always
8959 # included after everything else. This provides aclocal with the
8960 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8961 # because those macros already exist, or will be overwritten later.
8962 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8964 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8965 # Yes, that means every name once taken will need to remain here until
8966 # we give up compatibility with versions before 1.7, at which point
8967 # we need to keep only those names which we still refer to.
8969 # This is to help aclocal find these macros, as it can't see m4_define.
8970 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8972 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8973 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8974 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8975 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8976 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8977 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8978 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8979 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8980 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8981 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8982 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8983 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8984 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8985 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8986 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8987 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8988 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8989 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8990 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8991 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8992 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8993 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8994 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8995 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8996 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8997 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8998 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8999 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9000 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
9001 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
9002 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
9003 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9004 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9005 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
9006 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
9007 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9008 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9009 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
9010 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9011 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
9012 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
9013 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
9014 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
9015 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9016 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9017 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9018 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9019 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9020 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9021 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9022 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9023 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9024 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9025 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
9026 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9028 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9030 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9032 # This program is free software; you can redistribute it and/or modify
9033 # it under the terms of the GNU General Public License as published by
9034 # the Free Software Foundation; either version 2 of the License, or
9035 # (at your option) any later version.
9037 # This program is distributed in the hope that it will be useful, but
9038 # WITHOUT ANY WARRANTY; without even the implied warranty of
9039 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9040 # General Public License for more details.
9042 # You should have received a copy of the GNU General Public License
9043 # along with this program; if not, write to the Free Software
9044 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9046 # As a special exception to the GNU General Public License, if you
9047 # distribute this file as part of a program that contains a
9048 # configuration script generated by Autoconf, you may include it under
9049 # the same distribution terms that you use for the rest of that program.
9051 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
9052 # ----------------------------------
9053 AC_DEFUN([PKG_PROG_PKG_CONFIG],
9054 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9055 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9056 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9057 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9058 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9060 if test -n "$PKG_CONFIG"; then
9061 _pkg_min_version=m4_default([$1], [0.9.0])
9062 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9063 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9064 AC_MSG_RESULT([yes])
9071 ])# PKG_PROG_PKG_CONFIG
9073 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9075 # Check to see whether a particular set of modules exists. Similar
9076 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
9079 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
9080 # this or PKG_CHECK_MODULES is called, or make sure to call
9081 # PKG_CHECK_EXISTS manually
9082 # --------------------------------------------------------------
9083 AC_DEFUN([PKG_CHECK_EXISTS],
9084 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9085 if test -n "$PKG_CONFIG" && \
9086 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9087 m4_ifval([$2], [$2], [:])
9088 m4_ifvaln([$3], [else
9093 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9094 # ---------------------------------------------
9095 m4_define([_PKG_CONFIG],
9096 [if test -n "$$1"; then
9098 elif test -n "$PKG_CONFIG"; then
9099 PKG_CHECK_EXISTS([$3],
9100 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9107 # _PKG_SHORT_ERRORS_SUPPORTED
9108 # -----------------------------
9109 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9110 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9112 _pkg_short_errors_supported=yes
9114 _pkg_short_errors_supported=no
9116 ])# _PKG_SHORT_ERRORS_SUPPORTED
9119 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9120 # [ACTION-IF-NOT-FOUND])
9123 # Note that if there is a possibility the first call to
9124 # PKG_CHECK_MODULES might not happen, you should be sure to include an
9125 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9128 # --------------------------------------------------------------
9129 AC_DEFUN([PKG_CHECK_MODULES],
9130 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9131 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9132 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9135 AC_MSG_CHECKING([for $1])
9137 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9138 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
9140 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9141 and $1[]_LIBS to avoid the need to call pkg-config.
9142 See the pkg-config man page for more details.])
9144 if test $pkg_failed = yes; then
9145 _PKG_SHORT_ERRORS_SUPPORTED
9146 if test $_pkg_short_errors_supported = yes; then
9147 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9149 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9151 # Put the nasty error message in config.log where it belongs
9152 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9154 ifelse([$4], , [AC_MSG_ERROR(dnl
9155 [Package requirements ($2) were not met:
9159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9160 installed software in a non-standard prefix.
9164 [AC_MSG_RESULT([no])
9166 elif test $pkg_failed = untried; then
9167 ifelse([$4], , [AC_MSG_FAILURE(dnl
9168 [The pkg-config script could not be found or is too old. Make sure it
9169 is in your PATH or set the PKG_CONFIG environment variable to the full
9174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9177 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9178 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9179 AC_MSG_RESULT([yes])
9180 ifelse([$3], , :, [$3])
9182 ])# PKG_CHECK_MODULES