1 # generated automatically by aclocal 1.7.9 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # 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 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2, or (at your option)
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 # GNU General Public License for more details.
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the Free Software
30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
38 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
40 # Do all the work for Automake. -*- Autoconf -*-
42 # This macro actually does too much some checks are only needed if
43 # your package does certain things. But this isn't really a big deal.
45 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46 # Free Software Foundation, Inc.
48 # This program is free software; you can redistribute it and/or modify
49 # it under the terms of the GNU General Public License as published by
50 # the Free Software Foundation; either version 2, or (at your option)
53 # This program is distributed in the hope that it will be useful,
54 # but WITHOUT ANY WARRANTY; without even the implied warranty of
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 # GNU General Public License for more details.
58 # You should have received a copy of the GNU General Public License
59 # along with this program; if not, write to the Free Software
60 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
67 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
68 # the ones we care about.
69 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
71 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72 # AM_INIT_AUTOMAKE([OPTIONS])
73 # -----------------------------------------------
74 # The call with PACKAGE and VERSION arguments is the old style
75 # call (pre autoconf-2.50), which is being phased out. PACKAGE
76 # and VERSION should now be passed to AC_INIT and removed from
77 # the call to AM_INIT_AUTOMAKE.
78 # We support both call styles for the transition. After
79 # the next Automake release, Autoconf can make the AC_INIT
80 # arguments mandatory, and then we can depend on a new Autoconf
81 # release and drop the old call support.
82 AC_DEFUN([AM_INIT_AUTOMAKE],
83 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84 AC_REQUIRE([AC_PROG_INSTALL])dnl
85 # test to see if srcdir already configured
86 if test "`cd $srcdir && pwd`" != "`pwd`" &&
87 test -f $srcdir/config.status; then
88 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
91 # test whether we have cygpath
92 if test -z "$CYGPATH_W"; then
93 if (cygpath --version) >/dev/null 2>/dev/null; then
94 CYGPATH_W='cygpath -w'
101 # Define the identity of the package.
102 dnl Distinguish between old-style and new-style calls.
104 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105 AC_SUBST([PACKAGE], [$1])dnl
106 AC_SUBST([VERSION], [$2])],
107 [_AM_SET_OPTIONS([$1])dnl
108 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
111 _AM_IF_OPTION([no-define],,
112 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
115 # Some tools Automake needs.
116 AC_REQUIRE([AM_SANITY_CHECK])dnl
117 AC_REQUIRE([AC_ARG_PROGRAM])dnl
118 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119 AM_MISSING_PROG(AUTOCONF, autoconf)
120 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121 AM_MISSING_PROG(AUTOHEADER, autoheader)
122 AM_MISSING_PROG(MAKEINFO, makeinfo)
123 AM_MISSING_PROG(AMTAR, tar)
125 AM_PROG_INSTALL_STRIP
126 # We need awk for the "check" target. The system "awk" is bad on
128 AC_REQUIRE([AC_PROG_AWK])dnl
129 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
132 _AM_IF_OPTION([no-dependencies],,
133 [AC_PROVIDE_IFELSE([AC_PROG_CC],
134 [_AM_DEPENDENCIES(CC)],
135 [define([AC_PROG_CC],
136 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137 AC_PROVIDE_IFELSE([AC_PROG_CXX],
138 [_AM_DEPENDENCIES(CXX)],
139 [define([AC_PROG_CXX],
140 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
145 # When config.status generates a header, we must update the stamp-h file.
146 # This file resides in the same directory as the config header
147 # that is generated. The stamp files are numbered to have different names.
149 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150 # loop where config.status creates the headers, so we can generate
151 # our stamp files there.
152 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153 [# Compute $1's index in $config_headers.
155 for _am_header in $config_headers :; do
160 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
163 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
165 # Copyright 2002 Free Software Foundation, Inc.
167 # This program is free software; you can redistribute it and/or modify
168 # it under the terms of the GNU General Public License as published by
169 # the Free Software Foundation; either version 2, or (at your option)
172 # This program is distributed in the hope that it will be useful,
173 # but WITHOUT ANY WARRANTY; without even the implied warranty of
174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175 # GNU General Public License for more details.
177 # You should have received a copy of the GNU General Public License
178 # along with this program; if not, write to the Free Software
179 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
181 # AM_AUTOMAKE_VERSION(VERSION)
182 # ----------------------------
183 # Automake X.Y traces this macro to ensure aclocal.m4 has been
184 # generated from the m4 files accompanying Automake X.Y.
185 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
187 # AM_SET_CURRENT_AUTOMAKE_VERSION
188 # -------------------------------
189 # Call AM_AUTOMAKE_VERSION so it can be traced.
190 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192 [AM_AUTOMAKE_VERSION([1.7.9])])
194 # Helper functions for option handling. -*- Autoconf -*-
196 # Copyright 2001, 2002 Free Software Foundation, Inc.
198 # This program is free software; you can redistribute it and/or modify
199 # it under the terms of the GNU General Public License as published by
200 # the Free Software Foundation; either version 2, or (at your option)
203 # This program is distributed in the hope that it will be useful,
204 # but WITHOUT ANY WARRANTY; without even the implied warranty of
205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
206 # GNU General Public License for more details.
208 # You should have received a copy of the GNU General Public License
209 # along with this program; if not, write to the Free Software
210 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
215 # _AM_MANGLE_OPTION(NAME)
216 # -----------------------
217 AC_DEFUN([_AM_MANGLE_OPTION],
218 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
220 # _AM_SET_OPTION(NAME)
221 # ------------------------------
222 # Set option NAME. Presently that only means defining a flag for this option.
223 AC_DEFUN([_AM_SET_OPTION],
224 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
226 # _AM_SET_OPTIONS(OPTIONS)
227 # ----------------------------------
228 # OPTIONS is a space-separated list of Automake options.
229 AC_DEFUN([_AM_SET_OPTIONS],
230 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
232 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233 # -------------------------------------------
234 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235 AC_DEFUN([_AM_IF_OPTION],
236 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
239 # Check to make sure that the build environment is sane.
242 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
244 # This program is free software; you can redistribute it and/or modify
245 # it under the terms of the GNU General Public License as published by
246 # the Free Software Foundation; either version 2, or (at your option)
249 # This program is distributed in the hope that it will be useful,
250 # but WITHOUT ANY WARRANTY; without even the implied warranty of
251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
252 # GNU General Public License for more details.
254 # You should have received a copy of the GNU General Public License
255 # along with this program; if not, write to the Free Software
256 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
263 AC_DEFUN([AM_SANITY_CHECK],
264 [AC_MSG_CHECKING([whether build environment is sane])
267 echo timestamp > conftest.file
268 # Do `set' in a subshell so we don't clobber the current shell's
269 # arguments. Must try -L first in case configure is actually a
270 # symlink; some systems play weird games with the mod time of symlinks
271 # (eg FreeBSD returns the mod time of the symlink's containing
274 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275 if test "$[*]" = "X"; then
277 set X `ls -t $srcdir/configure conftest.file`
280 if test "$[*]" != "X $srcdir/configure conftest.file" \
281 && test "$[*]" != "X conftest.file $srcdir/configure"; then
283 # If neither matched, then we have a broken ls. This can happen
284 # if, for instance, CONFIG_SHELL is bash and it inherits a
285 # broken ls alias from the environment. This has actually
286 # happened. Such a system could not be considered "sane".
287 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
288 alias in your environment])
291 test "$[2]" = conftest.file
297 AC_MSG_ERROR([newly created file is older than distributed files!
298 Check your system clock])
305 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
307 # This program is free software; you can redistribute it and/or modify
308 # it under the terms of the GNU General Public License as published by
309 # the Free Software Foundation; either version 2, or (at your option)
312 # This program is distributed in the hope that it will be useful,
313 # but WITHOUT ANY WARRANTY; without even the implied warranty of
314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
315 # GNU General Public License for more details.
317 # You should have received a copy of the GNU General Public License
318 # along with this program; if not, write to the Free Software
319 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
324 # AM_MISSING_PROG(NAME, PROGRAM)
325 # ------------------------------
326 AC_DEFUN([AM_MISSING_PROG],
327 [AC_REQUIRE([AM_MISSING_HAS_RUN])
328 $1=${$1-"${am_missing_run}$2"}
334 # Define MISSING if not defined so far and test if it supports --run.
335 # If it does, set am_missing_run to use it, otherwise, to nothing.
336 AC_DEFUN([AM_MISSING_HAS_RUN],
337 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339 # Use eval to expand $SHELL
340 if eval "$MISSING --run true"; then
341 am_missing_run="$MISSING --run "
344 AC_MSG_WARN([`missing' script is too old or missing])
350 # Copyright 2001 Free Software Foundation, Inc.
352 # This program is free software; you can redistribute it and/or modify
353 # it under the terms of the GNU General Public License as published by
354 # the Free Software Foundation; either version 2, or (at your option)
357 # This program is distributed in the hope that it will be useful,
358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
360 # GNU General Public License for more details.
362 # You should have received a copy of the GNU General Public License
363 # along with this program; if not, write to the Free Software
364 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
367 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
369 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
371 # Of course, Automake must honor this variable whenever it calls a
372 # tool from the auxiliary directory. The problem is that $srcdir (and
373 # therefore $ac_aux_dir as well) can be either absolute or relative,
374 # depending on how configure is run. This is pretty annoying, since
375 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
376 # source directory, any form will work fine, but in subdirectories a
377 # relative path needs to be adjusted first.
379 # $ac_aux_dir/missing
380 # fails when called from a subdirectory if $ac_aux_dir is relative
381 # $top_srcdir/$ac_aux_dir/missing
382 # fails if $ac_aux_dir is absolute,
383 # fails when called from a subdirectory in a VPATH build with
384 # a relative $ac_aux_dir
386 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387 # are both prefixed by $srcdir. In an in-source build this is usually
388 # harmless because $srcdir is `.', but things will broke when you
389 # start a VPATH build or use an absolute $srcdir.
391 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
393 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394 # and then we would define $MISSING as
395 # MISSING="\${SHELL} $am_aux_dir/missing"
396 # This will work as long as MISSING is not called from configure, because
397 # unfortunately $(top_srcdir) has no meaning in configure.
398 # However there are other variables, like CC, which are often used in
399 # configure, and could therefore not use this "fixed" $ac_aux_dir.
401 # Another solution, used here, is to always expand $ac_aux_dir to an
402 # absolute PATH. The drawback is that using absolute paths prevent a
403 # configured tree to be moved without reconfiguration.
405 # Rely on autoconf to set up CDPATH properly.
408 AC_DEFUN([AM_AUX_DIR_EXPAND], [
409 # expand $ac_aux_dir to an absolute path
410 am_aux_dir=`cd $ac_aux_dir && pwd`
415 # Define $install_sh.
417 # Copyright 2001 Free Software Foundation, Inc.
419 # This program is free software; you can redistribute it and/or modify
420 # it under the terms of the GNU General Public License as published by
421 # the Free Software Foundation; either version 2, or (at your option)
424 # This program is distributed in the hope that it will be useful,
425 # but WITHOUT ANY WARRANTY; without even the implied warranty of
426 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
427 # GNU General Public License for more details.
429 # You should have received a copy of the GNU General Public License
430 # along with this program; if not, write to the Free Software
431 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
434 AC_DEFUN([AM_PROG_INSTALL_SH],
435 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436 install_sh=${install_sh-"$am_aux_dir/install-sh"}
437 AC_SUBST(install_sh)])
439 # AM_PROG_INSTALL_STRIP
441 # Copyright 2001 Free Software Foundation, Inc.
443 # This program is free software; you can redistribute it and/or modify
444 # it under the terms of the GNU General Public License as published by
445 # the Free Software Foundation; either version 2, or (at your option)
448 # This program is distributed in the hope that it will be useful,
449 # but WITHOUT ANY WARRANTY; without even the implied warranty of
450 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
451 # GNU General Public License for more details.
453 # You should have received a copy of the GNU General Public License
454 # along with this program; if not, write to the Free Software
455 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
458 # One issue with vendor `install' (even GNU) is that you can't
459 # specify the program used to strip binaries. This is especially
460 # annoying in cross-compiling environments, where the build's strip
461 # is unlikely to handle the host's binaries.
462 # Fortunately install-sh will honor a STRIPPROG variable, so we
463 # always use install-sh in `make install-strip', and initialize
464 # STRIPPROG with the value of the STRIP variable (set by the user).
465 AC_DEFUN([AM_PROG_INSTALL_STRIP],
466 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467 # Installed binaries are usually stripped using `strip' when the user
468 # run `make install-strip'. However `strip' might not be the right
469 # tool to use in cross-compilation environments, therefore Automake
470 # will honor the `STRIP' environment variable to overrule this program.
471 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472 if test "$cross_compiling" != no; then
473 AC_CHECK_TOOL([STRIP], [strip], :)
475 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476 AC_SUBST([INSTALL_STRIP_PROGRAM])])
479 # Copyright (C) 2003 Free Software Foundation, Inc.
481 # This program is free software; you can redistribute it and/or modify
482 # it under the terms of the GNU General Public License as published by
483 # the Free Software Foundation; either version 2, or (at your option)
486 # This program is distributed in the hope that it will be useful,
487 # but WITHOUT ANY WARRANTY; without even the implied warranty of
488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489 # GNU General Public License for more details.
491 # You should have received a copy of the GNU General Public License
492 # along with this program; if not, write to the Free Software
493 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
498 # Check whether the underlying file-system supports filenames
499 # with a leading dot. For instance MS-DOS doesn't.
500 AC_DEFUN([AM_SET_LEADING_DOT],
501 [rm -rf .tst 2>/dev/null
502 mkdir .tst 2>/dev/null
503 if test -d .tst; then
508 rmdir .tst 2>/dev/null
509 AC_SUBST([am__leading_dot])])
511 # serial 5 -*- Autoconf -*-
513 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
515 # This program is free software; you can redistribute it and/or modify
516 # it under the terms of the GNU General Public License as published by
517 # the Free Software Foundation; either version 2, or (at your option)
520 # This program is distributed in the hope that it will be useful,
521 # but WITHOUT ANY WARRANTY; without even the implied warranty of
522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
523 # GNU General Public License for more details.
525 # You should have received a copy of the GNU General Public License
526 # along with this program; if not, write to the Free Software
527 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
531 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532 # written in clear, in which case automake, when reading aclocal.m4,
533 # will think it sees a *use*, and therefore will trigger all it's
534 # C support machinery. Also note that it means that autoscan, seeing
535 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
539 # _AM_DEPENDENCIES(NAME)
540 # ----------------------
541 # See how the compiler implements dependency checking.
542 # NAME is "CC", "CXX", "GCJ", or "OBJC".
543 # We try a few techniques and use that to set a single cache variable.
545 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547 # dependency, and given that the user is not expected to run this macro,
548 # just rely on AC_PROG_CC.
549 AC_DEFUN([_AM_DEPENDENCIES],
550 [AC_REQUIRE([AM_SET_DEPDIR])dnl
551 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553 AC_REQUIRE([AM_DEP_TRACK])dnl
555 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
556 [$1], CXX, [depcc="$CXX" am_compiler_list=],
557 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
559 [depcc="$$1" am_compiler_list=])
561 AC_CACHE_CHECK([dependency style of $depcc],
562 [am_cv_$1_dependencies_compiler_type],
563 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564 # We make a subdir and do the tests there. Otherwise we can end up
565 # making bogus files that we don't know about and never remove. For
566 # instance it was reported that on HP-UX the gcc test will end up
567 # making a dummy file named `D' -- because `-MD' means `put the output
570 # Copy depcomp to subdir because otherwise we won't find it if we're
571 # using a relative directory.
572 cp "$am_depcomp" conftest.dir
574 # We will build objects and dependencies in a subdirectory because
575 # it helps to detect inapplicable dependency modes. For instance
576 # both Tru64's cc and ICC support -MD to output dependencies as a
577 # side effect of compilation, but ICC will put the dependencies in
578 # the current directory while Tru64 will put them in the object
582 am_cv_$1_dependencies_compiler_type=none
583 if test "$am_compiler_list" = ""; then
584 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
586 for depmode in $am_compiler_list; do
587 # Setup a source with many dependencies, because some compilers
588 # like to wrap large dependency lists on column 80 (with \), and
589 # we should not choose a depcomp mode which is confused by this.
591 # We need to recreate these files for each test, as the compiler may
592 # overwrite some of them when testing with obscure command lines.
593 # This happens at least with the AIX C compiler.
595 for i in 1 2 3 4 5 6; do
596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
603 # after this tag, mechanisms are not by side-effect, so they'll
604 # only be used when explicitly requested
605 if test "x$enable_dependency_tracking" = xyes; then
613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
614 # mode. It turns out that the SunPro C++ compiler does not properly
615 # handle `-M -o', and we need to detect this.
616 if depmode=$depmode \
617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620 >/dev/null 2>conftest.err &&
621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624 # icc doesn't choke on unknown options, it will just issue warnings
625 # (even with -Werror). So we grep stderr for any message
626 # that says an option was ignored.
627 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628 am_cv_$1_dependencies_compiler_type=$depmode
637 am_cv_$1_dependencies_compiler_type=none
640 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641 AM_CONDITIONAL([am__fastdep$1], [
642 test "x$enable_dependency_tracking" != xno \
643 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649 # Choose a directory name for dependency files.
650 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
651 AC_DEFUN([AM_SET_DEPDIR],
652 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659 AC_DEFUN([AM_DEP_TRACK],
660 [AC_ARG_ENABLE(dependency-tracking,
661 [ --disable-dependency-tracking Speeds up one-time builds
662 --enable-dependency-tracking Do not reject slow dependency extractors])
663 if test "x$enable_dependency_tracking" != xno; then
664 am_depcomp="$ac_aux_dir/depcomp"
667 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668 AC_SUBST([AMDEPBACKSLASH])
671 # Generate code to set up dependency tracking. -*- Autoconf -*-
673 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
675 # This program is free software; you can redistribute it and/or modify
676 # it under the terms of the GNU General Public License as published by
677 # the Free Software Foundation; either version 2, or (at your option)
680 # This program is distributed in the hope that it will be useful,
681 # but WITHOUT ANY WARRANTY; without even the implied warranty of
682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
683 # GNU General Public License for more details.
685 # You should have received a copy of the GNU General Public License
686 # along with this program; if not, write to the Free Software
687 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692 # _AM_OUTPUT_DEPENDENCY_COMMANDS
693 # ------------------------------
694 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695 [for mf in $CONFIG_FILES; do
696 # Strip MF so we end up with the name of the file.
697 mf=`echo "$mf" | sed -e 's/:.*$//'`
698 # Check whether this is an Automake generated Makefile or not.
699 # We used to match only the files named `Makefile.in', but
700 # some people rename them; so instead we look at the file content.
701 # Grep'ing the first line is not enough: some people post-process
702 # each Makefile.in and add a new line on top of each file to say so.
703 # So let's grep whole file.
704 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705 dirpart=`AS_DIRNAME("$mf")`
709 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710 # Extract the definition of DEP_FILES from the Makefile without
712 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713 test -z "$DEPDIR" && continue
714 # When using ansi2knr, U may be empty or an underscore; expand it
715 U=`sed -n -e '/^U = / s///p' < "$mf"`
716 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717 # We invoke sed twice because it is the simplest approach to
718 # changing $(DEPDIR) to its actual value in the expansion.
719 for file in `sed -n -e '
720 /^DEP_FILES = .*\\\\$/ {
729 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731 # Make sure the directory exists.
732 test -f "$dirpart/$file" && continue
733 fdir=`AS_DIRNAME(["$file"])`
734 AS_MKDIR_P([$dirpart/$fdir])
735 # echo "creating $dirpart/$file"
736 echo '# dummy' > "$dirpart/$file"
739 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
742 # AM_OUTPUT_DEPENDENCY_COMMANDS
743 # -----------------------------
744 # This macro should only be invoked once -- use via AC_REQUIRE.
746 # This code is only required when automatic dependency tracking
747 # is enabled. FIXME. This creates each `.P' file that we will
748 # need in order to bootstrap the dependency handling code.
749 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750 [AC_CONFIG_COMMANDS([depfiles],
751 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
755 # Check to see how 'make' treats includes. -*- Autoconf -*-
757 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
759 # This program is free software; you can redistribute it and/or modify
760 # it under the terms of the GNU General Public License as published by
761 # the Free Software Foundation; either version 2, or (at your option)
764 # This program is distributed in the hope that it will be useful,
765 # but WITHOUT ANY WARRANTY; without even the implied warranty of
766 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
767 # GNU General Public License for more details.
769 # You should have received a copy of the GNU General Public License
770 # along with this program; if not, write to the Free Software
771 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
778 # Check to see how make treats includes.
779 AC_DEFUN([AM_MAKE_INCLUDE],
780 [am_make=${MAKE-make}
781 cat > confinc << 'END'
786 # If we don't find an include directive, just comment out the code.
787 AC_MSG_CHECKING([for style of include used by $am_make])
791 # First try GNU make style include.
792 echo "include confinc" > confmf
793 # We grep out `Entering directory' and `Leaving directory'
794 # messages which can occur if `w' ends up in MAKEFLAGS.
795 # In particular we don't look at `^make:' because GNU make might
796 # be invoked under some other name (usually "gmake"), in which
797 # case it prints its new name instead of `make'.
798 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
803 # Now try BSD make style include.
804 if test "$am__include" = "#"; then
805 echo '.include "confinc"' > confmf
806 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
812 AC_SUBST([am__include])
813 AC_SUBST([am__quote])
814 AC_MSG_RESULT([$_am_result])
818 # AM_CONDITIONAL -*- Autoconf -*-
820 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
822 # This program is free software; you can redistribute it and/or modify
823 # it under the terms of the GNU General Public License as published by
824 # the Free Software Foundation; either version 2, or (at your option)
827 # This program is distributed in the hope that it will be useful,
828 # but WITHOUT ANY WARRANTY; without even the implied warranty of
829 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
830 # GNU General Public License for more details.
832 # You should have received a copy of the GNU General Public License
833 # along with this program; if not, write to the Free Software
834 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
841 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
842 # -------------------------------------
843 # Define a conditional.
844 AC_DEFUN([AM_CONDITIONAL],
845 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
846 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
856 AC_CONFIG_COMMANDS_PRE(
857 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858 AC_MSG_ERROR([conditional "$1" was never defined.
859 Usually this means the macro was only invoked conditionally.])
862 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
864 # serial 47 AC_PROG_LIBTOOL
867 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
868 # -----------------------------------------------------------
869 # If this macro is not defined by Autoconf, define it here.
870 m4_ifdef([AC_PROVIDE_IFELSE],
872 [m4_define([AC_PROVIDE_IFELSE],
873 [m4_ifdef([AC_PROVIDE_$1],
879 AC_DEFUN([AC_PROG_LIBTOOL],
880 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
881 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
882 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
883 AC_PROVIDE_IFELSE([AC_PROG_CXX],
885 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
887 dnl And a similar setup for Fortran 77 support
888 AC_PROVIDE_IFELSE([AC_PROG_F77],
890 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
893 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
894 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
895 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
896 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
898 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
900 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
902 [ifdef([AC_PROG_GCJ],
903 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
904 ifdef([A][M_PROG_GCJ],
905 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
906 ifdef([LT_AC_PROG_GCJ],
907 [define([LT_AC_PROG_GCJ],
908 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
909 ])])# AC_PROG_LIBTOOL
914 AC_DEFUN([_AC_PROG_LIBTOOL],
915 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
916 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
917 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
918 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
920 # This can be used to rebuild libtool when needed
921 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
923 # Always use our own libtool.
924 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
927 # Prevent multiple expansion
928 define([AC_PROG_LIBTOOL], [])
934 AC_DEFUN([AC_LIBTOOL_SETUP],
936 AC_REQUIRE([AC_ENABLE_SHARED])dnl
937 AC_REQUIRE([AC_ENABLE_STATIC])dnl
938 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
939 AC_REQUIRE([AC_CANONICAL_HOST])dnl
940 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
941 AC_REQUIRE([AC_PROG_CC])dnl
942 AC_REQUIRE([AC_PROG_LD])dnl
943 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
944 AC_REQUIRE([AC_PROG_NM])dnl
946 AC_REQUIRE([AC_PROG_LN_S])dnl
947 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
948 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
949 AC_REQUIRE([AC_OBJEXT])dnl
950 AC_REQUIRE([AC_EXEEXT])dnl
953 AC_LIBTOOL_SYS_MAX_CMD_LEN
954 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
957 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
958 _LT_AC_PROG_ECHO_BACKSLASH
962 # AIX sometimes has problems with the GCC collect2 program. For some
963 # reason, if we set the COLLECT_NAMES environment variable, the problems
964 # vanish in a puff of smoke.
965 if test "X${COLLECT_NAMES+set}" != Xset; then
972 # Sed substitution that helps us do robust quoting. It backslashifies
973 # metacharacters that are still active within double-quoted strings.
974 Xsed='sed -e 1s/^X//'
975 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
977 # Same as above, but do not quote variable references.
978 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
980 # Sed substitution to delay expansion of an escaped shell variable in a
981 # double_quote_subst'ed string.
982 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
984 # Sed substitution to avoid accidental globbing in evaled expressions
985 no_glob_subst='s/\*/\\\*/g'
991 default_ofile=libtool
994 # All known linkers require a `.a' archive for static linking (except M$VC,
995 # which needs '.lib').
997 ltmain="$ac_aux_dir/ltmain.sh"
998 ofile="$default_ofile"
999 with_gnu_ld="$lt_cv_prog_gnu_ld"
1001 AC_CHECK_TOOL(AR, ar, false)
1002 AC_CHECK_TOOL(RANLIB, ranlib, :)
1003 AC_CHECK_TOOL(STRIP, strip, :)
1006 old_CFLAGS="$CFLAGS"
1008 # Set sane defaults for various variables
1009 test -z "$AR" && AR=ar
1010 test -z "$AR_FLAGS" && AR_FLAGS=cru
1011 test -z "$AS" && AS=as
1012 test -z "$CC" && CC=cc
1013 test -z "$LTCC" && LTCC=$CC
1014 test -z "$DLLTOOL" && DLLTOOL=dlltool
1015 test -z "$LD" && LD=ld
1016 test -z "$LN_S" && LN_S="ln -s"
1017 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1018 test -z "$NM" && NM=nm
1019 test -z "$SED" && SED=sed
1020 test -z "$OBJDUMP" && OBJDUMP=objdump
1021 test -z "$RANLIB" && RANLIB=:
1022 test -z "$STRIP" && STRIP=:
1023 test -z "$ac_objext" && ac_objext=o
1025 # Determine commands to create old-style static archives.
1026 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1027 old_postinstall_cmds='chmod 644 $oldlib'
1028 old_postuninstall_cmds=
1030 if test -n "$RANLIB"; then
1033 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1036 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1039 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1042 _LT_CC_BASENAME([$compiler])
1044 # Only perform the check for file, if the check method requires it
1045 case $deplibs_check_method in
1047 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1053 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1054 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1055 enable_win32_dll=yes, enable_win32_dll=no)
1057 AC_ARG_ENABLE([libtool-lock],
1058 [AC_HELP_STRING([--disable-libtool-lock],
1059 [avoid locking (might break parallel builds)])])
1060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1063 [AC_HELP_STRING([--with-pic],
1064 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1065 [pic_mode="$withval"],
1067 test -z "$pic_mode" && pic_mode=default
1069 # Use C for the default configuration in the libtool script
1071 AC_LIBTOOL_LANG_C_CONFIG
1073 ])# AC_LIBTOOL_SETUP
1076 # _LT_AC_SYS_COMPILER
1077 # -------------------
1078 AC_DEFUN([_LT_AC_SYS_COMPILER],
1079 [AC_REQUIRE([AC_PROG_CC])dnl
1081 # If no C compiler was specified, use CC.
1084 # Allow CC to be a program name with arguments.
1086 ])# _LT_AC_SYS_COMPILER
1089 # _LT_CC_BASENAME(CC)
1090 # -------------------
1091 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1092 AC_DEFUN([_LT_CC_BASENAME],
1093 [for cc_temp in $1""; do
1095 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1096 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1105 # _LT_COMPILER_BOILERPLATE
1106 # ------------------------
1107 # Check for compiler boilerplate output or warnings with
1108 # the simple compiler test code.
1109 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1110 [ac_outfile=conftest.$ac_objext
1111 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1113 _lt_compiler_boilerplate=`cat conftest.err`
1115 ])# _LT_COMPILER_BOILERPLATE
1118 # _LT_LINKER_BOILERPLATE
1119 # ----------------------
1120 # Check for linker boilerplate output or warnings with
1121 # the simple link test code.
1122 AC_DEFUN([_LT_LINKER_BOILERPLATE],
1123 [ac_outfile=conftest.$ac_objext
1124 printf "$lt_simple_link_test_code" >conftest.$ac_ext
1125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1126 _lt_linker_boilerplate=`cat conftest.err`
1128 ])# _LT_LINKER_BOILERPLATE
1131 # _LT_AC_SYS_LIBPATH_AIX
1132 # ----------------------
1133 # Links a minimal program and checks the executable
1134 # for the system default hardcoded library path. In most cases,
1135 # this is /usr/lib:/lib, but when the MPI compilers are used
1136 # the location of the communication and MPI libs are included too.
1137 # If we don't find anything, use the default library path according
1138 # to the aix ld manual.
1139 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1140 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1143 # Check for a 64-bit object if we didn't find anything.
1144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1147 ])# _LT_AC_SYS_LIBPATH_AIX
1150 # _LT_AC_SHELL_INIT(ARG)
1151 # ----------------------
1152 AC_DEFUN([_LT_AC_SHELL_INIT],
1153 [ifdef([AC_DIVERSION_NOTICE],
1154 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1155 [AC_DIVERT_PUSH(NOTICE)])
1158 ])# _LT_AC_SHELL_INIT
1161 # _LT_AC_PROG_ECHO_BACKSLASH
1162 # --------------------------
1163 # Add some code to the start of the generated configure script which
1164 # will find an echo command which doesn't interpret backslashes.
1165 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1166 [_LT_AC_SHELL_INIT([
1167 # Check that we are running under the correct shell.
1168 SHELL=${CONFIG_SHELL-/bin/sh}
1172 # Remove one level of quotation (which was required for Make).
1173 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1178 if test "X[$]1" = X--no-reexec; then
1179 # Discard the --no-reexec flag, and continue.
1181 elif test "X[$]1" = X--fallback-echo; then
1182 # Avoid inline document here, it may be left over
1184 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1185 # Yippee, $echo works!
1188 # Restart under the correct shell.
1189 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1192 if test "X[$]1" = X--fallback-echo; then
1193 # used as fallback echo
1201 # The HP-UX ksh and POSIX shell print the target directory to stdout
1203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1205 if test -z "$ECHO"; then
1206 if test "X${echo_test_string+set}" != Xset; then
1207 # find a string as large as possible, as long as the shell can cope with it
1208 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1209 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1210 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1211 echo_test_string="`eval $cmd`" &&
1212 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1219 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1220 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1221 test "X$echo_testing_string" = "X$echo_test_string"; then
1224 # The Solaris, AIX, and Digital Unix default echo programs unquote
1225 # backslashes. This makes it impossible to quote backslashes using
1226 # echo "$something" | sed 's/\\/\\\\/g'
1228 # So, first we look for a working echo in the user's PATH.
1230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1231 for dir in $PATH /usr/ucb; do
1233 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1234 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1235 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1236 test "X$echo_testing_string" = "X$echo_test_string"; then
1243 if test "X$echo" = Xecho; then
1244 # We didn't find a better echo, so look for alternatives.
1245 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1246 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1247 test "X$echo_testing_string" = "X$echo_test_string"; then
1248 # This shell has a builtin print -r that does the trick.
1250 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1251 test "X$CONFIG_SHELL" != X/bin/ksh; then
1252 # If we have ksh, try running configure again with it.
1253 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1254 export ORIGINAL_CONFIG_SHELL
1255 CONFIG_SHELL=/bin/ksh
1257 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1261 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1262 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1263 test "X$echo_testing_string" = "X$echo_test_string"; then
1264 # Cool, printf works
1266 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1267 test "X$echo_testing_string" = 'X\t' &&
1268 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1269 test "X$echo_testing_string" = "X$echo_test_string"; then
1270 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1272 SHELL="$CONFIG_SHELL"
1274 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1275 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1276 test "X$echo_testing_string" = 'X\t' &&
1277 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1278 test "X$echo_testing_string" = "X$echo_test_string"; then
1279 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1281 # maybe with a smaller string...
1284 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1285 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1292 if test "$prev" != 'sed 50q "[$]0"'; then
1293 echo_test_string=`eval $prev`
1294 export echo_test_string
1295 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1297 # Oops. We lost completely, so just stick with echo.
1306 # Copy echo and quote the copy suitably for passing to libtool from
1307 # the Makefile, instead of quoting the original, which is used later.
1309 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1310 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1314 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1319 AC_DEFUN([_LT_AC_LOCK],
1320 [AC_ARG_ENABLE([libtool-lock],
1321 [AC_HELP_STRING([--disable-libtool-lock],
1322 [avoid locking (might break parallel builds)])])
1323 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1325 # Some flags need to be propagated to the compiler or linker for good
1329 # Find out which ABI we are using.
1330 echo 'int i;' > conftest.$ac_ext
1331 if AC_TRY_EVAL(ac_compile); then
1332 case `/usr/bin/file conftest.$ac_objext` in
1344 # Find out which ABI we are using.
1345 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1346 if AC_TRY_EVAL(ac_compile); then
1347 if test "$lt_cv_prog_gnu_ld" = yes; then
1348 case `/usr/bin/file conftest.$ac_objext` in
1350 LD="${LD-ld} -melf32bsmip"
1353 LD="${LD-ld} -melf32bmipn32"
1356 LD="${LD-ld} -melf64bmip"
1360 case `/usr/bin/file conftest.$ac_objext` in
1376 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1377 # Find out which ABI we are using.
1378 echo 'int i;' > conftest.$ac_ext
1379 if AC_TRY_EVAL(ac_compile); then
1380 case "`/usr/bin/file conftest.o`" in
1384 LD="${LD-ld} -m elf_i386"
1386 ppc64-*linux*|powerpc64-*linux*)
1387 LD="${LD-ld} -m elf32ppclinux"
1390 LD="${LD-ld} -m elf_s390"
1393 LD="${LD-ld} -m elf32_sparc"
1400 LD="${LD-ld} -m elf_x86_64"
1402 ppc*-*linux*|powerpc*-*linux*)
1403 LD="${LD-ld} -m elf64ppc"
1406 LD="${LD-ld} -m elf64_s390"
1409 LD="${LD-ld} -m elf64_sparc"
1419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1420 SAVE_CFLAGS="$CFLAGS"
1421 CFLAGS="$CFLAGS -belf"
1422 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1424 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1428 CFLAGS="$SAVE_CFLAGS"
1431 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1432 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1433 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1434 AC_CHECK_TOOL(AS, as, false)
1435 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1440 need_locks="$enable_libtool_lock"
1445 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1446 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1447 # ----------------------------------------------------------------
1448 # Check whether the given compiler option works
1449 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1450 [AC_REQUIRE([LT_AC_PROG_SED])
1451 AC_CACHE_CHECK([$1], [$2],
1453 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1455 lt_compiler_flag="$3"
1456 # Insert the option either (1) after the last *FLAGS variable, or
1457 # (2) before a word containing "conftest.", or (3) at the end.
1458 # Note that $ac_compile itself does not contain backslashes and begins
1459 # with a dollar sign (not a hyphen), so the echo should work correctly.
1460 # The option is referenced via a variable to avoid confusing sed.
1461 lt_compile=`echo "$ac_compile" | $SED \
1462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1463 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1464 -e 's:$: $lt_compiler_flag:'`
1465 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1466 (eval "$lt_compile" 2>conftest.err)
1468 cat conftest.err >&AS_MESSAGE_LOG_FD
1469 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1470 if (exit $ac_status) && test -s "$ac_outfile"; then
1471 # The compiler can only warn and ignore the option if not recognized
1472 # So say no if there are warnings other than the usual output.
1473 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1474 $SED '/^$/d' conftest.err >conftest.er2
1475 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1482 if test x"[$]$2" = xyes; then
1483 ifelse([$5], , :, [$5])
1485 ifelse([$6], , :, [$6])
1487 ])# AC_LIBTOOL_COMPILER_OPTION
1490 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1491 # [ACTION-SUCCESS], [ACTION-FAILURE])
1492 # ------------------------------------------------------------
1493 # Check whether the given compiler option works
1494 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1495 [AC_CACHE_CHECK([$1], [$2],
1497 save_LDFLAGS="$LDFLAGS"
1498 LDFLAGS="$LDFLAGS $3"
1499 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1500 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1501 # The compiler can only warn and ignore the option if not recognized
1502 # So say no if there are warnings
1503 if test -s conftest.err; then
1504 # Append any errors to the config.log.
1505 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1506 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
1507 $SED '/^$/d' conftest.err >conftest.er2
1508 if diff conftest.exp conftest.er2 >/dev/null; then
1516 LDFLAGS="$save_LDFLAGS"
1519 if test x"[$]$2" = xyes; then
1520 ifelse([$4], , :, [$4])
1522 ifelse([$5], , :, [$5])
1524 ])# AC_LIBTOOL_LINKER_OPTION
1527 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1528 # --------------------------
1529 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1530 [# find the maximum length of command line arguments
1531 AC_MSG_CHECKING([the maximum length of command line arguments])
1532 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1538 # On DJGPP, this test can blow up pretty badly due to problems in libc
1539 # (any single argument exceeding 2000 bytes causes a buffer overrun
1540 # during glob expansion). Even if it were fixed, the result of this
1541 # check would be larger than it should be.
1542 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1546 # Under GNU Hurd, this test is not required because there is
1547 # no limit to the length of command line arguments.
1548 # Libtool will interpret -1 as no limit whatsoever
1549 lt_cv_sys_max_cmd_len=-1;
1553 # On Win9x/ME, this test blows up -- it succeeds, but takes
1554 # about 5 minutes as the teststring grows exponentially.
1555 # Worse, since 9x/ME are not pre-emptively multitasking,
1556 # you end up with a "frozen" computer, even though with patience
1557 # the test eventually succeeds (with a max line length of 256k).
1558 # Instead, let's just punt: use the minimum linelength reported by
1559 # all of the supported platforms: 8192 (on NT/2K/XP).
1560 lt_cv_sys_max_cmd_len=8192;
1564 # On AmigaOS with pdksh, this test takes hours, literally.
1565 # So we just punt and use a minimum line length of 8192.
1566 lt_cv_sys_max_cmd_len=8192;
1569 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1570 # This has been around since 386BSD, at least. Likely further.
1571 if test -x /sbin/sysctl; then
1572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1573 elif test -x /usr/sbin/sysctl; then
1574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1576 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1578 # And add a safety zone
1579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1583 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1584 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1585 # nice to cause kernel panics so lets avoid the loop below.
1586 # First set a reasonable default.
1587 lt_cv_sys_max_cmd_len=16384
1589 if test -x /sbin/sysconfig; then
1590 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1591 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1596 # If test is not a shell built-in, we'll probably end up computing a
1597 # maximum length that is only half of the actual maximum length, but
1599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1600 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1601 = "XX$teststring") >/dev/null 2>&1 &&
1602 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1603 lt_cv_sys_max_cmd_len=$new_result &&
1604 test $i != 17 # 1/2 MB should be enough
1607 teststring=$teststring$teststring
1610 # Add a significant safety factor because C++ compilers can tack on massive
1611 # amounts of additional arguments before passing them to the linker.
1612 # It appears as though 1/2 is a usable value.
1613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1617 if test -n $lt_cv_sys_max_cmd_len ; then
1618 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1622 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1625 # _LT_AC_CHECK_DLFCN
1626 # --------------------
1627 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1628 [AC_CHECK_HEADERS(dlfcn.h)dnl
1629 ])# _LT_AC_CHECK_DLFCN
1632 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1633 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1634 # ------------------------------------------------------------------
1635 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1636 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1637 if test "$cross_compiling" = yes; then :
1640 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1641 lt_status=$lt_dlunknown
1642 cat > conftest.$ac_ext <<EOF
1643 [#line __oline__ "configure"
1644 #include "confdefs.h"
1653 # define LT_DLGLOBAL RTLD_GLOBAL
1656 # define LT_DLGLOBAL DL_GLOBAL
1658 # define LT_DLGLOBAL 0
1662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1663 find out it does not work in some platform. */
1664 #ifndef LT_DLLAZY_OR_NOW
1666 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1669 # define LT_DLLAZY_OR_NOW DL_LAZY
1672 # define LT_DLLAZY_OR_NOW RTLD_NOW
1675 # define LT_DLLAZY_OR_NOW DL_NOW
1677 # define LT_DLLAZY_OR_NOW 0
1685 extern "C" void exit (int);
1688 void fnord() { int i=42;}
1691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1692 int status = $lt_dlunknown;
1696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1698 /* dlclose (self); */
1704 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1705 (./conftest; exit; ) 2>/dev/null
1708 x$lt_dlno_uscore) $1 ;;
1709 x$lt_dlneed_uscore) $2 ;;
1710 x$lt_unknown|x*) $3 ;;
1713 # compilation failed
1718 ])# _LT_AC_TRY_DLOPEN_SELF
1721 # AC_LIBTOOL_DLOPEN_SELF
1722 # -------------------
1723 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1724 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1725 if test "x$enable_dlopen" != xyes; then
1726 enable_dlopen=unknown
1727 enable_dlopen_self=unknown
1728 enable_dlopen_self_static=unknown
1735 lt_cv_dlopen="load_add_on"
1737 lt_cv_dlopen_self=yes
1741 lt_cv_dlopen="LoadLibrary"
1746 lt_cv_dlopen="dlopen"
1751 # if libdl is installed we need to link against it
1752 AC_CHECK_LIB([dl], [dlopen],
1753 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1756 lt_cv_dlopen_self=yes
1761 AC_CHECK_FUNC([shl_load],
1762 [lt_cv_dlopen="shl_load"],
1763 [AC_CHECK_LIB([dld], [shl_load],
1764 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1765 [AC_CHECK_FUNC([dlopen],
1766 [lt_cv_dlopen="dlopen"],
1767 [AC_CHECK_LIB([dl], [dlopen],
1768 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1769 [AC_CHECK_LIB([svld], [dlopen],
1770 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1771 [AC_CHECK_LIB([dld], [dld_link],
1772 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1781 if test "x$lt_cv_dlopen" != xno; then
1787 case $lt_cv_dlopen in
1789 save_CPPFLAGS="$CPPFLAGS"
1790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1792 save_LDFLAGS="$LDFLAGS"
1793 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1796 LIBS="$lt_cv_dlopen_libs $LIBS"
1798 AC_CACHE_CHECK([whether a program can dlopen itself],
1799 lt_cv_dlopen_self, [dnl
1800 _LT_AC_TRY_DLOPEN_SELF(
1801 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1802 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1805 if test "x$lt_cv_dlopen_self" = xyes; then
1806 LDFLAGS="$LDFLAGS $link_static_flag"
1807 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1808 lt_cv_dlopen_self_static, [dnl
1809 _LT_AC_TRY_DLOPEN_SELF(
1810 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1811 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1815 CPPFLAGS="$save_CPPFLAGS"
1816 LDFLAGS="$save_LDFLAGS"
1821 case $lt_cv_dlopen_self in
1822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1823 *) enable_dlopen_self=unknown ;;
1826 case $lt_cv_dlopen_self_static in
1827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1828 *) enable_dlopen_self_static=unknown ;;
1831 ])# AC_LIBTOOL_DLOPEN_SELF
1834 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1835 # ---------------------------------
1836 # Check to see if options -c and -o are simultaneously supported by compiler
1837 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1838 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1839 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1840 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1841 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1842 $rm -r conftest 2>/dev/null
1846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1848 lt_compiler_flag="-o out/conftest2.$ac_objext"
1849 # Insert the option either (1) after the last *FLAGS variable, or
1850 # (2) before a word containing "conftest.", or (3) at the end.
1851 # Note that $ac_compile itself does not contain backslashes and begins
1852 # with a dollar sign (not a hyphen), so the echo should work correctly.
1853 lt_compile=`echo "$ac_compile" | $SED \
1854 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1855 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1856 -e 's:$: $lt_compiler_flag:'`
1857 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1858 (eval "$lt_compile" 2>out/conftest.err)
1860 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1861 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1864 # The compiler can only warn and ignore the option if not recognized
1865 # So say no if there are warnings
1866 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1867 $SED '/^$/d' out/conftest.err >out/conftest.er2
1868 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1869 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1874 # SGI C++ compiler will create directory out/ii_files/ for
1875 # template instantiation
1876 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1877 $rm out/* && rmdir out
1882 ])# AC_LIBTOOL_PROG_CC_C_O
1885 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1886 # -----------------------------------------
1887 # Check to see if we can do hard links to lock some files if needed
1888 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1889 [AC_REQUIRE([_LT_AC_LOCK])dnl
1891 hard_links="nottested"
1892 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1893 # do not overwrite the value of need_locks provided by the user
1894 AC_MSG_CHECKING([if we can lock with hard links])
1897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1899 ln conftest.a conftest.b 2>&5 || hard_links=no
1900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1901 AC_MSG_RESULT([$hard_links])
1902 if test "$hard_links" = no; then
1903 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1909 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1914 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1915 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1916 [rm -f .libs 2>/dev/null
1917 mkdir .libs 2>/dev/null
1918 if test -d .libs; then
1921 # MS-DOS does not allow filenames that begin with a dot.
1924 rmdir .libs 2>/dev/null])
1925 objdir=$lt_cv_objdir
1926 ])# AC_LIBTOOL_OBJDIR
1929 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1930 # ----------------------------------------------
1931 # Check hardcoding attributes.
1932 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1933 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1934 _LT_AC_TAGVAR(hardcode_action, $1)=
1935 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1936 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1937 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1939 # We can hardcode non-existant directories.
1940 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1942 # have to relink, otherwise we might link with an installed library
1943 # when we should be linking with a yet-to-be-installed one
1944 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1945 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1946 # Linking always hardcodes the temporary library directory.
1947 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1950 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1953 # We cannot hardcode anything, or else we can only hardcode existing
1955 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1957 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1959 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1960 # Fast installation is not supported
1961 enable_fast_install=no
1962 elif test "$shlibpath_overrides_runpath" = yes ||
1963 test "$enable_shared" = no; then
1964 # Fast installation is not necessary
1965 enable_fast_install=needless
1967 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1970 # AC_LIBTOOL_SYS_LIB_STRIP
1971 # ------------------------
1972 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1975 AC_MSG_CHECKING([whether stripping libraries is possible])
1976 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1977 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1978 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1979 AC_MSG_RESULT([yes])
1981 # FIXME - insert some real tests, host_os isn't really good enough
1984 if test -n "$STRIP" ; then
1985 striplib="$STRIP -x"
1986 AC_MSG_RESULT([yes])
1996 ])# AC_LIBTOOL_SYS_LIB_STRIP
1999 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2000 # -----------------------------
2001 # PORTME Fill in your ld.so characteristics
2002 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2003 [AC_MSG_CHECKING([dynamic linker characteristics])
2005 libname_spec='lib$name'
2013 shlibpath_overrides_runpath=unknown
2015 dynamic_linker="$host_os ld.so"
2016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2017 if test "$GCC" = yes; then
2018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2019 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2020 # if the path contains ";" then we assume it to be the separator
2021 # otherwise default to the standard path separator (i.e. ":") - it is
2022 # assumed that no part of a normal pathname contains ";" but that should
2023 # okay in the real world where ";" in dirpaths is itself problematic.
2024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2031 need_lib_prefix=unknown
2032 hardcode_into_libs=no
2034 # when you set need_version to no, make sure it does not cause -set_version
2035 # flags to be left without arguments
2036 need_version=unknown
2041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2042 shlibpath_var=LIBPATH
2044 # AIX 3 has no versioning support, so we append a major version to the name.
2045 soname_spec='${libname}${release}${shared_ext}$major'
2052 hardcode_into_libs=yes
2053 if test "$host_cpu" = ia64; then
2054 # AIX 5 supports IA64
2055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2056 shlibpath_var=LD_LIBRARY_PATH
2058 # With GCC up to 2.95.x, collect2 would create an import file
2059 # for dependence libraries. The import file would start with
2060 # the line `#! .'. This would cause the generated library to
2061 # depend on `.', always an invalid library. This was fixed in
2062 # development snapshots of GCC prior to 3.0.
2064 aix4 | aix4.[[01]] | aix4.[[01]].*)
2065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2067 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2075 # soname into executable. Probably we can add versioning support to
2076 # collect2, so additional links can be useful in future.
2077 if test "$aix_use_runtimelinking" = yes; then
2078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2079 # instead of lib<name>.a to let people know that these are not
2080 # typical AIX shared libraries.
2081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2083 # We preserve .a as extension for shared libraries through AIX4.2
2084 # and later when we are not doing run time linking.
2085 library_names_spec='${libname}${release}.a $libname.a'
2086 soname_spec='${libname}${release}${shared_ext}$major'
2088 shlibpath_var=LIBPATH
2093 library_names_spec='$libname.ixlibrary $libname.a'
2094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2095 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'
2099 library_names_spec='${libname}${shared_ext}'
2100 dynamic_linker="$host_os ld.so"
2101 shlibpath_var=LIBRARY_PATH
2107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2108 soname_spec='${libname}${release}${shared_ext}$major'
2109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2110 shlibpath_var=LD_LIBRARY_PATH
2111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2113 # the default ld.so.conf also contains /usr/contrib/lib and
2114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2115 # libtool to hard-code these into programs
2118 cygwin* | mingw* | pw32*)
2119 version_type=windows
2124 case $GCC,$host_os in
2125 yes,cygwin* | yes,mingw* | yes,pw32*)
2126 library_names_spec='$libname.dll.a'
2127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2128 postinstall_cmds='base_file=`basename \${file}`~
2129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2130 dldir=$destdir/`dirname \$dlpath`~
2131 test -d \$dldir || mkdir -p \$dldir~
2132 $install_prog $dir/$dlname \$dldir/$dlname'
2133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2134 dlpath=$dir/\$dldll~
2136 shlibpath_overrides_runpath=yes
2140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2142 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2145 # MinGW DLLs use traditional 'lib' prefix
2146 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2147 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2148 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2149 # It is most probably a Windows format PATH printed by
2150 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2151 # path with ; separators, and with drive letters. We can handle the
2152 # drive letters (cygwin fileutils understands them), so leave them,
2153 # especially as we might pass files found there to a mingw objdump,
2154 # which wouldn't understand a cygwinified path. Ahh.
2155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2161 # pw32 DLLs use 'pw' prefix rather than 'lib'
2162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2171 dynamic_linker='Win32 ld.exe'
2172 # FIXME: first we should search . and the directory the executable is in
2176 darwin* | rhapsody*)
2177 dynamic_linker="$host_os dyld"
2181 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2182 soname_spec='${libname}${release}${major}$shared_ext'
2183 shlibpath_overrides_runpath=yes
2184 shlibpath_var=DYLD_LIBRARY_PATH
2185 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2186 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2187 if test "$GCC" = yes; then
2188 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2190 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2200 soname_spec='${libname}${release}${shared_ext}$major'
2201 shlibpath_var=LD_LIBRARY_PATH
2212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2213 soname_spec='${libname}${release}${shared_ext}$major'
2214 shlibpath_var=LD_LIBRARY_PATH
2215 shlibpath_overrides_runpath=no
2216 hardcode_into_libs=yes
2217 dynamic_linker='GNU ld.so'
2220 freebsd* | dragonfly*)
2221 # DragonFly does not have aout. When/if they implement a new
2222 # versioning mechanism, adjust this.
2223 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2224 version_type=freebsd-$objformat
2225 case $version_type in
2227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2236 shlibpath_var=LD_LIBRARY_PATH
2239 shlibpath_overrides_runpath=yes
2241 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2242 shlibpath_overrides_runpath=yes
2243 hardcode_into_libs=yes
2246 shlibpath_overrides_runpath=no
2247 hardcode_into_libs=yes
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2257 soname_spec='${libname}${release}${shared_ext}$major'
2258 shlibpath_var=LD_LIBRARY_PATH
2259 hardcode_into_libs=yes
2262 hpux9* | hpux10* | hpux11*)
2263 # Give a soname corresponding to the major version so that dld.sl refuses to
2264 # link against other versions.
2271 hardcode_into_libs=yes
2272 dynamic_linker="$host_os dld.so"
2273 shlibpath_var=LD_LIBRARY_PATH
2274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2276 soname_spec='${libname}${release}${shared_ext}$major'
2277 if test "X$HPUX_IA64_MODE" = X32; then
2278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2286 hardcode_into_libs=yes
2287 dynamic_linker="$host_os dld.sl"
2288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2291 soname_spec='${libname}${release}${shared_ext}$major'
2292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2297 dynamic_linker="$host_os dld.sl"
2298 shlibpath_var=SHLIB_PATH
2299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2301 soname_spec='${libname}${release}${shared_ext}$major'
2304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2305 postinstall_cmds='chmod 555 $lib'
2308 irix5* | irix6* | nonstopux*)
2310 nonstopux*) version_type=nonstopux ;;
2312 if test "$lt_cv_prog_gnu_ld" = yes; then
2320 soname_spec='${libname}${release}${shared_ext}$major'
2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2323 irix5* | nonstopux*)
2327 case $LD in # libtool.m4 will add one of these switches to LD
2328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2329 libsuff= shlibsuff= libmagic=32-bit;;
2330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2331 libsuff=32 shlibsuff=N32 libmagic=N32;;
2332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2334 *) libsuff= shlibsuff= libmagic=never-match;;
2338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2339 shlibpath_overrides_runpath=no
2340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2342 hardcode_into_libs=yes
2345 # No shared lib support for Linux oldld, aout, or coff.
2346 linux*oldld* | linux*aout* | linux*coff*)
2350 # This must be Linux ELF.
2355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2356 soname_spec='${libname}${release}${shared_ext}$major'
2357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2358 shlibpath_var=LD_LIBRARY_PATH
2359 shlibpath_overrides_runpath=no
2360 # This implies no fast_install, which is unacceptable.
2361 # Some rework will be needed to allow for fast_install
2362 # before this can be enabled.
2363 hardcode_into_libs=yes
2365 # find out which ABI we are using
2368 x86_64*|s390x*|powerpc64*)
2369 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2370 if AC_TRY_EVAL(ac_compile); then
2371 case `/usr/bin/file conftest.$ac_objext` in
2374 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2382 # Append ld.so.conf contents to the search path
2383 if test -f /etc/ld.so.conf; then
2384 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2385 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
2388 # We used to test for /lib/ld.so.1 and disable shared libraries on
2389 # powerpc, because MkLinux only supported shared libraries with the
2390 # GNU dynamic linker. Since this was broken with cross compilers,
2391 # most powerpc-linux boxes support dynamic linking these days and
2392 # people can always --disable-shared, the test was removed, and we
2393 # assume the GNU/Linux dynamic linker is in use.
2394 dynamic_linker='GNU/Linux ld.so'
2401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2402 soname_spec='${libname}${release}${shared_ext}$major'
2403 shlibpath_var=LD_LIBRARY_PATH
2404 shlibpath_overrides_runpath=no
2405 hardcode_into_libs=yes
2406 dynamic_linker='GNU ld.so'
2413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2416 dynamic_linker='NetBSD (a.out) ld.so'
2418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2419 soname_spec='${libname}${release}${shared_ext}$major'
2420 dynamic_linker='NetBSD ld.elf_so'
2422 shlibpath_var=LD_LIBRARY_PATH
2423 shlibpath_overrides_runpath=yes
2424 hardcode_into_libs=yes
2429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2430 shlibpath_var=LD_LIBRARY_PATH
2431 shlibpath_overrides_runpath=yes
2438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2439 soname_spec='${libname}${release}${shared_ext}$major'
2440 shlibpath_var=LD_LIBRARY_PATH
2441 shlibpath_overrides_runpath=yes
2447 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2449 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2450 *) need_version=no ;;
2452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2454 shlibpath_var=LD_LIBRARY_PATH
2455 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2457 openbsd2.[[89]] | openbsd2.[[89]].*)
2458 shlibpath_overrides_runpath=no
2461 shlibpath_overrides_runpath=yes
2465 shlibpath_overrides_runpath=yes
2470 libname_spec='$name'
2473 library_names_spec='$libname${shared_ext} $libname.a'
2474 dynamic_linker='OS/2 ld.exe'
2475 shlibpath_var=LIBPATH
2478 osf3* | osf4* | osf5*)
2482 soname_spec='${libname}${release}${shared_ext}$major'
2483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2484 shlibpath_var=LD_LIBRARY_PATH
2485 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2486 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2491 soname_spec='${libname}${release}${shared_ext}$major'
2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2493 shlibpath_var=LD_LIBRARY_PATH
2500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2501 soname_spec='${libname}${release}${shared_ext}$major'
2502 shlibpath_var=LD_LIBRARY_PATH
2503 shlibpath_overrides_runpath=yes
2504 hardcode_into_libs=yes
2505 # ldd complains unless libraries are executable
2506 postinstall_cmds='chmod +x $lib'
2511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2513 shlibpath_var=LD_LIBRARY_PATH
2514 shlibpath_overrides_runpath=yes
2515 if test "$with_gnu_ld" = yes; then
2521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2524 soname_spec='${libname}${release}${shared_ext}$major'
2525 shlibpath_var=LD_LIBRARY_PATH
2526 case $host_vendor in
2528 shlibpath_overrides_runpath=no
2530 export_dynamic_flag_spec='${wl}-Blargedynsym'
2531 runpath_var=LD_RUN_PATH
2539 shlibpath_overrides_runpath=no
2540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2546 if test -d /usr/nec ;then
2548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2549 soname_spec='$libname${shared_ext}.$major'
2550 shlibpath_var=LD_LIBRARY_PATH
2556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2557 soname_spec='${libname}${release}${shared_ext}$major'
2558 shlibpath_var=LD_LIBRARY_PATH
2565 AC_MSG_RESULT([$dynamic_linker])
2566 test "$dynamic_linker" = no && can_build_shared=no
2567 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2572 AC_DEFUN([_LT_AC_TAGCONFIG],
2573 [AC_ARG_WITH([tags],
2574 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2575 [include additional configurations @<:@automatic@:>@])],
2576 [tagnames="$withval"])
2578 if test -f "$ltmain" && test -n "$tagnames"; then
2579 if test ! -f "${ofile}"; then
2580 AC_MSG_WARN([output file `$ofile' does not exist])
2583 if test -z "$LTCC"; then
2584 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2585 if test -z "$LTCC"; then
2586 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2588 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2592 # Extract list of available tagged configurations in $ofile.
2593 # Note that this assumes the entire list is on one line.
2594 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2597 for tagname in $tagnames; do
2599 # Check whether tagname contains only valid characters
2600 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2602 *) AC_MSG_ERROR([invalid tag name: $tagname])
2606 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2608 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2611 # Update the list of available tags.
2612 if test -n "$tagname"; then
2613 echo appending configuration tag \"$tagname\" to $ofile
2617 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2618 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2619 (test "X$CXX" != "Xg++"))) ; then
2620 AC_LIBTOOL_LANG_CXX_CONFIG
2627 if test -n "$F77" && test "X$F77" != "Xno"; then
2628 AC_LIBTOOL_LANG_F77_CONFIG
2635 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2636 AC_LIBTOOL_LANG_GCJ_CONFIG
2643 AC_LIBTOOL_LANG_RC_CONFIG
2647 AC_MSG_ERROR([Unsupported tag name: $tagname])
2651 # Append the new tag name to the list of available tags.
2652 if test -n "$tagname" ; then
2653 available_tags="$available_tags $tagname"
2659 # Now substitute the updated list of available tags.
2660 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2661 mv "${ofile}T" "$ofile"
2665 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2668 ])# _LT_AC_TAGCONFIG
2673 # enable checks for dlopen support
2674 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2675 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2676 ])# AC_LIBTOOL_DLOPEN
2679 # AC_LIBTOOL_WIN32_DLL
2680 # --------------------
2681 # declare package support for building win32 dll's
2682 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2683 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2684 ])# AC_LIBTOOL_WIN32_DLL
2687 # AC_ENABLE_SHARED([DEFAULT])
2688 # ---------------------------
2689 # implement the --enable-shared flag
2690 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2691 AC_DEFUN([AC_ENABLE_SHARED],
2692 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2693 AC_ARG_ENABLE([shared],
2694 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2695 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2696 [p=${PACKAGE-default}
2698 yes) enable_shared=yes ;;
2699 no) enable_shared=no ;;
2702 # Look at the argument we got. We use all the common list separators.
2703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2704 for pkg in $enableval; do
2706 if test "X$pkg" = "X$p"; then
2713 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2714 ])# AC_ENABLE_SHARED
2719 #- set the default shared flag to --disable-shared
2720 AC_DEFUN([AC_DISABLE_SHARED],
2721 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2722 AC_ENABLE_SHARED(no)
2723 ])# AC_DISABLE_SHARED
2726 # AC_ENABLE_STATIC([DEFAULT])
2727 # ---------------------------
2728 # implement the --enable-static flag
2729 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2730 AC_DEFUN([AC_ENABLE_STATIC],
2731 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2732 AC_ARG_ENABLE([static],
2733 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2734 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2735 [p=${PACKAGE-default}
2737 yes) enable_static=yes ;;
2738 no) enable_static=no ;;
2741 # Look at the argument we got. We use all the common list separators.
2742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2743 for pkg in $enableval; do
2745 if test "X$pkg" = "X$p"; then
2752 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2753 ])# AC_ENABLE_STATIC
2758 # set the default static flag to --disable-static
2759 AC_DEFUN([AC_DISABLE_STATIC],
2760 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2761 AC_ENABLE_STATIC(no)
2762 ])# AC_DISABLE_STATIC
2765 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2766 # ---------------------------------
2767 # implement the --enable-fast-install flag
2768 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2769 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2770 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2771 AC_ARG_ENABLE([fast-install],
2772 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2773 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2774 [p=${PACKAGE-default}
2776 yes) enable_fast_install=yes ;;
2777 no) enable_fast_install=no ;;
2779 enable_fast_install=no
2780 # Look at the argument we got. We use all the common list separators.
2781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2782 for pkg in $enableval; do
2784 if test "X$pkg" = "X$p"; then
2785 enable_fast_install=yes
2791 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2792 ])# AC_ENABLE_FAST_INSTALL
2795 # AC_DISABLE_FAST_INSTALL
2796 # -----------------------
2797 # set the default to --disable-fast-install
2798 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2799 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2800 AC_ENABLE_FAST_INSTALL(no)
2801 ])# AC_DISABLE_FAST_INSTALL
2804 # AC_LIBTOOL_PICMODE([MODE])
2805 # --------------------------
2806 # implement the --with-pic flag
2807 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2808 AC_DEFUN([AC_LIBTOOL_PICMODE],
2809 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2810 pic_mode=ifelse($#,1,$1,default)
2811 ])# AC_LIBTOOL_PICMODE
2816 # This is predefined starting with Autoconf 2.54, so this conditional
2817 # definition can be removed once we require Autoconf 2.54 or later.
2818 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2819 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2820 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2821 then ac_cv_prog_egrep='grep -E'
2822 else ac_cv_prog_egrep='egrep'
2824 EGREP=$ac_cv_prog_egrep
2829 # AC_PATH_TOOL_PREFIX
2830 # -------------------
2831 # find a file program which can recognise shared library
2832 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2833 [AC_REQUIRE([AC_PROG_EGREP])dnl
2834 AC_MSG_CHECKING([for $1])
2835 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2837 [[\\/*] | ?:[\\/]*])
2838 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2841 lt_save_MAGIC_CMD="$MAGIC_CMD"
2842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2843 dnl $ac_dummy forces splitting on constant user-supplied paths.
2844 dnl POSIX.2 word splitting is done only on the output of word expansions,
2845 dnl not every word. This closes a longstanding sh security hole.
2846 ac_dummy="ifelse([$2], , $PATH, [$2])"
2847 for ac_dir in $ac_dummy; do
2849 test -z "$ac_dir" && ac_dir=.
2850 if test -f $ac_dir/$1; then
2851 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2852 if test -n "$file_magic_test_file"; then
2853 case $deplibs_check_method in
2855 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2858 $EGREP "$file_magic_regex" > /dev/null; then
2863 *** Warning: the command libtool uses to detect shared libraries,
2864 *** $file_magic_cmd, produces output that libtool cannot recognize.
2865 *** The result is that libtool may fail to recognize shared libraries
2866 *** as such. This will affect the creation of libtool libraries that
2867 *** depend on shared libraries, but programs linked with such libtool
2868 *** libraries will work regardless of this problem. Nevertheless, you
2869 *** may want to report the problem to your system manager and/or to
2870 *** bug-libtool@gnu.org
2880 MAGIC_CMD="$lt_save_MAGIC_CMD"
2883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2884 if test -n "$MAGIC_CMD"; then
2885 AC_MSG_RESULT($MAGIC_CMD)
2889 ])# AC_PATH_TOOL_PREFIX
2894 # find a file program which can recognise a shared library
2895 AC_DEFUN([AC_PATH_MAGIC],
2896 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2897 if test -z "$lt_cv_path_MAGIC_CMD"; then
2898 if test -n "$ac_tool_prefix"; then
2899 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2909 # find the pathname to the GNU or non-GNU linker
2910 AC_DEFUN([AC_PROG_LD],
2911 [AC_ARG_WITH([gnu-ld],
2912 [AC_HELP_STRING([--with-gnu-ld],
2913 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2914 [test "$withval" = no || with_gnu_ld=yes],
2916 AC_REQUIRE([LT_AC_PROG_SED])dnl
2917 AC_REQUIRE([AC_PROG_CC])dnl
2918 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2919 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2921 if test "$GCC" = yes; then
2922 # Check if gcc -print-prog-name=ld gives a path.
2923 AC_MSG_CHECKING([for ld used by $CC])
2926 # gcc leaves a trailing carriage return which upsets mingw
2927 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2929 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2932 # Accept absolute paths.
2933 [[\\/]]* | ?:[[\\/]]*)
2934 re_direlt='/[[^/]][[^/]]*/\.\./'
2935 # Canonicalize the pathname of ld
2936 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2937 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2938 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2940 test -z "$LD" && LD="$ac_prog"
2943 # If it fails, then pretend we aren't using GCC.
2947 # If it is relative, then search for the first ld in PATH.
2951 elif test "$with_gnu_ld" = yes; then
2952 AC_MSG_CHECKING([for GNU ld])
2954 AC_MSG_CHECKING([for non-GNU ld])
2956 AC_CACHE_VAL(lt_cv_path_LD,
2957 [if test -z "$LD"; then
2958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2959 for ac_dir in $PATH; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2963 lt_cv_path_LD="$ac_dir/$ac_prog"
2964 # Check to see if the program is GNU ld. I'd rather use --version,
2965 # but apparently some GNU ld's only accept -v.
2966 # Break only if it was the GNU/non-GNU ld that we prefer.
2967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2968 *GNU* | *'with BFD'*)
2969 test "$with_gnu_ld" != no && break
2972 test "$with_gnu_ld" != yes && break
2979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2982 if test -n "$LD"; then
2987 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2994 AC_DEFUN([AC_PROG_LD_GNU],
2995 [AC_REQUIRE([AC_PROG_EGREP])dnl
2996 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2997 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2998 case `$LD -v 2>&1 </dev/null` in
2999 *GNU* | *'with BFD'*)
3000 lt_cv_prog_gnu_ld=yes
3003 lt_cv_prog_gnu_ld=no
3006 with_gnu_ld=$lt_cv_prog_gnu_ld
3010 # AC_PROG_LD_RELOAD_FLAG
3011 # ----------------------
3012 # find reload flag for linker
3013 # -- PORTME Some linkers may need a different reload flag.
3014 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3015 [AC_CACHE_CHECK([for $LD option to reload object files],
3016 lt_cv_ld_reload_flag,
3017 [lt_cv_ld_reload_flag='-r'])
3018 reload_flag=$lt_cv_ld_reload_flag
3019 case $reload_flag in
3021 *) reload_flag=" $reload_flag" ;;
3023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3026 if test "$GCC" = yes; then
3027 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3033 ])# AC_PROG_LD_RELOAD_FLAG
3036 # AC_DEPLIBS_CHECK_METHOD
3037 # -----------------------
3038 # how to check for library dependencies
3039 # -- PORTME fill in with the dynamic library characteristics
3040 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3041 [AC_CACHE_CHECK([how to recognise dependent libraries],
3042 lt_cv_deplibs_check_method,
3043 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3044 lt_cv_file_magic_test_file=
3045 lt_cv_deplibs_check_method='unknown'
3046 # Need to set the preceding variable on all platforms that support
3047 # interlibrary dependencies.
3048 # 'none' -- dependencies not supported.
3049 # `unknown' -- same as none, but documents that we really don't know.
3050 # 'pass_all' -- all dependencies passed with no checks.
3051 # 'test_compile' -- check by making test program.
3052 # 'file_magic [[regex]]' -- check by looking for files in library path
3053 # which responds to the $file_magic_cmd with a given extended regex.
3054 # If you have `file' or equivalent on your system and you're not sure
3055 # whether `pass_all' will *always* work, you probably want this one.
3059 lt_cv_deplibs_check_method=pass_all
3063 lt_cv_deplibs_check_method=pass_all
3067 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3068 lt_cv_file_magic_cmd='/usr/bin/file -L'
3069 lt_cv_file_magic_test_file=/shlib/libc.so
3073 # func_win32_libid is a shell function defined in ltmain.sh
3074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3075 lt_cv_file_magic_cmd='func_win32_libid'
3079 # Base MSYS/MinGW do not provide the 'file' command needed by
3080 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3081 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3082 lt_cv_file_magic_cmd='$OBJDUMP -f'
3085 darwin* | rhapsody*)
3086 lt_cv_deplibs_check_method=pass_all
3089 freebsd* | kfreebsd*-gnu | dragonfly*)
3090 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3093 # Not sure whether the presence of OpenBSD here was a mistake.
3094 # Let's accept both of them until this is cleared up.
3095 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3096 lt_cv_file_magic_cmd=/usr/bin/file
3097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3101 lt_cv_deplibs_check_method=pass_all
3106 lt_cv_deplibs_check_method=pass_all
3109 hpux10.20* | hpux11*)
3110 lt_cv_file_magic_cmd=/usr/bin/file
3113 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3117 [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]']
3118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3121 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3127 irix5* | irix6* | nonstopux*)
3129 *-32|*"-32 ") libmagic=32-bit;;
3130 *-n32|*"-n32 ") libmagic=N32;;
3131 *-64|*"-64 ") libmagic=64-bit;;
3132 *) libmagic=never-match;;
3134 lt_cv_deplibs_check_method=pass_all
3137 # This must be Linux ELF.
3139 lt_cv_deplibs_check_method=pass_all
3143 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3144 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3146 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3151 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3152 lt_cv_file_magic_cmd=/usr/bin/file
3153 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3157 lt_cv_deplibs_check_method=unknown
3161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3162 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3164 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3168 osf3* | osf4* | osf5*)
3169 lt_cv_deplibs_check_method=pass_all
3173 lt_cv_deplibs_check_method=pass_all
3177 lt_cv_deplibs_check_method=pass_all
3180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3181 case $host_vendor in
3183 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]]'
3184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3187 lt_cv_deplibs_check_method=pass_all
3190 lt_cv_file_magic_cmd='/bin/file'
3191 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3194 lt_cv_file_magic_cmd='/bin/file'
3195 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3196 lt_cv_file_magic_test_file=/lib/libc.so
3199 lt_cv_deplibs_check_method=pass_all
3204 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3205 lt_cv_deplibs_check_method=pass_all
3209 file_magic_cmd=$lt_cv_file_magic_cmd
3210 deplibs_check_method=$lt_cv_deplibs_check_method
3211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3212 ])# AC_DEPLIBS_CHECK_METHOD
3217 # find the pathname to a BSD-compatible name lister
3218 AC_DEFUN([AC_PROG_NM],
3219 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3220 [if test -n "$NM"; then
3221 # Let the user override the test.
3224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3225 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3227 test -z "$ac_dir" && ac_dir=.
3228 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3229 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3230 # Check to see if the nm accepts a BSD-compat flag.
3231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3232 # nm: unknown option "B" ignored
3233 # Tru64's nm complains that /dev/null is an invalid object file
3234 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3235 */dev/null* | *'Invalid file or object type'*)
3236 lt_cv_path_NM="$tmp_nm -B"
3240 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3242 lt_cv_path_NM="$tmp_nm -p"
3246 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3247 continue # so that we can try to find one that supports BSD flags
3254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3262 # check for math library
3263 AC_DEFUN([AC_CHECK_LIBM],
3264 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3267 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3268 # These system don't have libm, or don't need it
3271 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3272 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3275 AC_CHECK_LIB(m, cos, LIBM="-lm")
3281 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3282 # -----------------------------------
3283 # sets LIBLTDL to the link flags for the libltdl convenience library and
3284 # LTDLINCL to the include flags for the libltdl header and adds
3285 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3286 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3287 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3288 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3289 # '${top_srcdir}/' (note the single quotes!). If your package is not
3290 # flat and you're not using automake, define top_builddir and
3291 # top_srcdir appropriately in the Makefiles.
3292 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3293 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3294 case $enable_ltdl_convenience in
3295 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3296 "") enable_ltdl_convenience=yes
3297 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3299 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3300 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3301 # For backwards non-gettext consistent compatibility...
3303 ])# AC_LIBLTDL_CONVENIENCE
3306 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3307 # -----------------------------------
3308 # sets LIBLTDL to the link flags for the libltdl installable library and
3309 # LTDLINCL to the include flags for the libltdl header and adds
3310 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3311 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3312 # DIRECTORY is not provided and an installed libltdl is not found, it is
3313 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3314 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3315 # quotes!). If your package is not flat and you're not using automake,
3316 # define top_builddir and top_srcdir appropriately in the Makefiles.
3317 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3318 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3319 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3320 AC_CHECK_LIB(ltdl, lt_dlinit,
3321 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3322 [if test x"$enable_ltdl_install" = xno; then
3323 AC_MSG_WARN([libltdl not installed, but installation disabled])
3325 enable_ltdl_install=yes
3328 if test x"$enable_ltdl_install" = x"yes"; then
3329 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3330 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3331 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3333 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3337 # For backwards non-gettext consistent compatibility...
3339 ])# AC_LIBLTDL_INSTALLABLE
3344 # enable support for C++ libraries
3345 AC_DEFUN([AC_LIBTOOL_CXX],
3346 [AC_REQUIRE([_LT_AC_LANG_CXX])
3352 AC_DEFUN([_LT_AC_LANG_CXX],
3353 [AC_REQUIRE([AC_PROG_CXX])
3354 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3355 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3358 # _LT_AC_PROG_CXXCPP
3360 AC_DEFUN([_LT_AC_PROG_CXXCPP],
3362 AC_REQUIRE([AC_PROG_CXX])
3363 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3364 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3365 (test "X$CXX" != "Xg++"))) ; then
3368 ])# _LT_AC_PROG_CXXCPP
3372 # enable support for Fortran 77 libraries
3373 AC_DEFUN([AC_LIBTOOL_F77],
3374 [AC_REQUIRE([_LT_AC_LANG_F77])
3380 AC_DEFUN([_LT_AC_LANG_F77],
3381 [AC_REQUIRE([AC_PROG_F77])
3382 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3388 # enable support for GCJ libraries
3389 AC_DEFUN([AC_LIBTOOL_GCJ],
3390 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3396 AC_DEFUN([_LT_AC_LANG_GCJ],
3397 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3398 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3399 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3400 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3401 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3402 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3403 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3409 # enable support for Windows resource files
3410 AC_DEFUN([AC_LIBTOOL_RC],
3411 [AC_REQUIRE([LT_AC_PROG_RC])
3412 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3416 # AC_LIBTOOL_LANG_C_CONFIG
3417 # ------------------------
3418 # Ensure that the configuration vars for the C compiler are
3419 # suitably defined. Those variables are subsequently used by
3420 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3421 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3422 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3426 # Source file extension for C test sources.
3429 # Object file extension for compiled C test sources.
3431 _LT_AC_TAGVAR(objext, $1)=$objext
3433 # Code to be used in simple compile tests
3434 lt_simple_compile_test_code="int some_variable = 0;\n"
3436 # Code to be used in simple link tests
3437 lt_simple_link_test_code='int main(){return(0);}\n'
3441 # save warnings/boilerplate of simple test code
3442 _LT_COMPILER_BOILERPLATE
3443 _LT_LINKER_BOILERPLATE
3446 # Check for any special shared library compilation flags.
3448 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3449 if test "$GCC" = no; then
3452 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3456 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3457 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3458 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3460 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3461 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3467 # Check to make sure the static flag actually works.
3469 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3470 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3471 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3473 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3476 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3477 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3478 AC_LIBTOOL_PROG_CC_C_O($1)
3479 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3480 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3481 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3482 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3483 AC_LIBTOOL_SYS_LIB_STRIP
3484 AC_LIBTOOL_DLOPEN_SELF($1)
3486 # Report which librarie types wil actually be built
3487 AC_MSG_CHECKING([if libtool supports shared libraries])
3488 AC_MSG_RESULT([$can_build_shared])
3490 AC_MSG_CHECKING([whether to build shared libraries])
3491 test "$can_build_shared" = "no" && enable_shared=no
3493 # On AIX, shared libraries and static libraries use the same namespace, and
3494 # are all built from PIC.
3497 test "$enable_shared" = yes && enable_static=no
3498 if test -n "$RANLIB"; then
3499 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3500 postinstall_cmds='$RANLIB $lib'
3505 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3506 test "$enable_shared" = yes && enable_static=no
3510 AC_MSG_RESULT([$enable_shared])
3512 AC_MSG_CHECKING([whether to build static libraries])
3513 # Make sure either enable_shared or enable_static is yes.
3514 test "$enable_shared" = yes || enable_static=yes
3515 AC_MSG_RESULT([$enable_static])
3517 AC_LIBTOOL_CONFIG($1)
3521 ])# AC_LIBTOOL_LANG_C_CONFIG
3524 # AC_LIBTOOL_LANG_CXX_CONFIG
3525 # --------------------------
3526 # Ensure that the configuration vars for the C compiler are
3527 # suitably defined. Those variables are subsequently used by
3528 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3529 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3530 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3532 AC_REQUIRE([AC_PROG_CXX])
3533 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3535 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3536 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3537 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3538 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3539 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3540 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3541 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3542 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3543 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3544 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3545 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3546 _LT_AC_TAGVAR(module_cmds, $1)=
3547 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3548 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3549 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3550 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3551 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3552 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3554 # Dependencies to place before and after the object being linked:
3555 _LT_AC_TAGVAR(predep_objects, $1)=
3556 _LT_AC_TAGVAR(postdep_objects, $1)=
3557 _LT_AC_TAGVAR(predeps, $1)=
3558 _LT_AC_TAGVAR(postdeps, $1)=
3559 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3561 # Source file extension for C++ test sources.
3564 # Object file extension for compiled C++ test sources.
3566 _LT_AC_TAGVAR(objext, $1)=$objext
3568 # Code to be used in simple compile tests
3569 lt_simple_compile_test_code="int some_variable = 0;\n"
3571 # Code to be used in simple link tests
3572 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3574 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3577 # save warnings/boilerplate of simple test code
3578 _LT_COMPILER_BOILERPLATE
3579 _LT_LINKER_BOILERPLATE
3581 # Allow CC to be a program name with arguments.
3586 lt_save_with_gnu_ld=$with_gnu_ld
3587 lt_save_path_LD=$lt_cv_path_LD
3588 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3589 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3591 unset lt_cv_prog_gnu_ld
3593 if test -n "${lt_cv_path_LDCXX+set}"; then
3594 lt_cv_path_LD=$lt_cv_path_LDCXX
3598 test -z "${LDCXX+set}" || LD=$LDCXX
3601 _LT_AC_TAGVAR(compiler, $1)=$CC
3602 _LT_CC_BASENAME([$compiler])
3604 # We don't want -fno-exception wen compiling C++ code, so set the
3605 # no_builtin_flag separately
3606 if test "$GXX" = yes; then
3607 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3609 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3612 if test "$GXX" = yes; then
3613 # Set up default GNU C++ configuration
3617 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3618 # archiving commands below assume that GNU ld is being used.
3619 if test "$with_gnu_ld" = yes; then
3620 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3621 _LT_AC_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'
3623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3624 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3626 # If archive_cmds runs LD, not CC, wlarc should be empty
3627 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3628 # investigate it a little bit more. (MM)
3631 # ancient GNU ld didn't support --whole-archive et. al.
3632 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3633 grep 'no-whole-archive' > /dev/null; then
3634 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3636 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3642 # A generic and very simple default shared library creation
3643 # command for GNU C++ for the case where it uses the native
3644 # linker, instead of GNU ld. If possible, this setting should
3645 # overridden to take advantage of the native linker features on
3646 # the platform it is being used on.
3647 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3650 # Commands to make compiler produce verbose output that lists
3651 # what "hidden" libraries, object files and flags are used when
3652 # linking a shared library.
3653 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3661 # PORTME: fill in a description of your system's C++ link characteristics
3662 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3663 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3666 # FIXME: insert proper C++ library support
3667 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3670 if test "$host_cpu" = ia64; then
3671 # On IA64, the linker does run time linking by default, so we don't
3672 # have to do anything special.
3673 aix_use_runtimelinking=no
3674 exp_sym_flag='-Bexport'
3677 aix_use_runtimelinking=no
3679 # Test if we are trying to use run time linking or normal
3680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3681 # need to do runtime linking.
3682 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3683 for ld_flag in $LDFLAGS; do
3686 aix_use_runtimelinking=yes
3693 exp_sym_flag='-bexport'
3694 no_entry_flag='-bnoentry'
3697 # When large executables or shared objects are built, AIX ld can
3698 # have problems creating the table of contents. If linking a library
3699 # or program results in "error TOC overflow" add -mminimal-toc to
3700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3703 _LT_AC_TAGVAR(archive_cmds, $1)=''
3704 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3705 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3706 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3708 if test "$GXX" = yes; then
3709 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3710 # We only want to do this on AIX 4.2 and lower, the check
3711 # below for broken collect2 doesn't work under 4.3+
3712 collect2name=`${CC} -print-prog-name=collect2`
3713 if test -f "$collect2name" && \
3714 strings "$collect2name" | grep resolve_lib_name >/dev/null
3716 # We have reworked collect2
3717 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3719 # We have old collect2
3720 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3721 # It fails to find uninstalled libraries when the uninstalled
3722 # path is not listed in the libpath. Setting hardcode_minus_L
3723 # to unsupported forces relinking
3724 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3725 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3726 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3729 shared_flag='-shared'
3730 if test "$aix_use_runtimelinking" = yes; then
3731 shared_flag="$shared_flag "'${wl}-G'
3735 if test "$host_cpu" = ia64; then
3736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3737 # chokes on -Wl,-G. The following line is correct:
3740 if test "$aix_use_runtimelinking" = yes; then
3741 shared_flag='${wl}-G'
3743 shared_flag='${wl}-bM:SRE'
3748 # It seems that -bexpall does not export symbols beginning with
3749 # underscore (_), so it is better to generate a list of symbols to export.
3750 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3751 if test "$aix_use_runtimelinking" = yes; then
3752 # Warning - without using the other runtime loading flags (-brtl),
3753 # -berok will link without error, but may produce a broken library.
3754 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3755 # Determine the default libpath from the value encoded in an empty executable.
3756 _LT_AC_SYS_LIBPATH_AIX
3757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3759 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3761 if test "$host_cpu" = ia64; then
3762 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3763 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3764 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3766 # Determine the default libpath from the value encoded in an empty executable.
3767 _LT_AC_SYS_LIBPATH_AIX
3768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3769 # Warning - without using the other run time loading flags,
3770 # -berok will link without error, but may produce a broken library.
3771 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3772 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3773 # -bexpall does not export symbols beginning with underscore (_)
3774 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3775 # Exported symbols can be pulled into shared objects from archives
3776 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3777 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3778 # This is similar to how AIX traditionally builds it's shared libraries.
3779 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3784 case $cc_basename in
3786 # FIXME: insert proper C++ library support
3787 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3793 cygwin* | mingw* | pw32*)
3794 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3795 # as there is no search path for DLLs.
3796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3797 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3798 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3799 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3801 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3802 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3803 # If the export-symbols file already is a .def file (1st line
3804 # is EXPORTS), use it as is; otherwise, prepend...
3805 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3806 cp $export_symbols $output_objdir/$soname.def;
3808 echo EXPORTS > $output_objdir/$soname.def;
3809 cat $export_symbols >> $output_objdir/$soname.def;
3811 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3813 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3816 darwin* | rhapsody*)
3818 rhapsody* | darwin1.[[012]])
3819 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3822 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3823 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3825 case ${MACOSX_DEPLOYMENT_TARGET} in
3827 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3830 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3836 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3837 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3838 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3839 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3840 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3841 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3843 if test "$GXX" = yes ; then
3844 lt_int_apple_cc_single_mod=no
3845 output_verbose_link_cmd='echo'
3846 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3847 lt_int_apple_cc_single_mod=yes
3849 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3850 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3852 _LT_AC_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'
3854 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3856 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3857 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3859 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3861 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3863 case $cc_basename in
3865 output_verbose_link_cmd='echo'
3866 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3867 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3869 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3870 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3873 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3880 case $cc_basename in
3882 # FIXME: insert proper C++ library support
3883 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3886 # Green Hills C++ Compiler
3887 # FIXME: insert proper C++ library support
3888 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3891 # FIXME: insert proper C++ library support
3892 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3897 # C++ shared libraries reported to be fairly broken before switch to ELF
3898 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3901 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3903 freebsd* | kfreebsd*-gnu | dragonfly*)
3904 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3906 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3911 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3912 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3913 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3914 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3915 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3916 # but as the default
3917 # location of the library.
3919 case $cc_basename in
3921 # FIXME: insert proper C++ library support
3922 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3925 _LT_AC_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'
3926 # Commands to make compiler produce verbose output that lists
3927 # what "hidden" libraries, object files and flags are used when
3928 # linking a shared library.
3930 # There doesn't appear to be a way to prevent this compiler from
3931 # explicitly linking system object files so we need to strip them
3932 # from the output so that they don't get included in the library
3934 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 $list'
3937 if test "$GXX" = yes; then
3938 _LT_AC_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'
3940 # FIXME: insert proper C++ library support
3941 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3947 if test $with_gnu_ld = no; then
3950 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3951 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3952 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3955 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3958 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3959 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3960 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3966 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3967 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3970 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3971 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3972 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3973 # but as the default
3974 # location of the library.
3977 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3978 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3979 # but as the default
3980 # location of the library.
3984 case $cc_basename in
3986 # FIXME: insert proper C++ library support
3987 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3992 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3995 _LT_AC_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'
3998 # Commands to make compiler produce verbose output that lists
3999 # what "hidden" libraries, object files and flags are used when
4000 # linking a shared library.
4002 # There doesn't appear to be a way to prevent this compiler from
4003 # explicitly linking system object files so we need to strip them
4004 # from the output so that they don't get included in the library
4006 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 $list'
4009 if test "$GXX" = yes; then
4010 if test $with_gnu_ld = no; then
4013 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4016 _LT_AC_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'
4021 # FIXME: insert proper C++ library support
4022 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4028 case $cc_basename in
4031 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4033 # Archives containing C++ object files must be created using
4034 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4035 # necessary to make sure instantiated templates are included
4037 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4040 if test "$GXX" = yes; then
4041 if test "$with_gnu_ld" = no; then
4042 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4044 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4047 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4050 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4051 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4054 case $cc_basename in
4056 # Kuck and Associates, Inc. (KAI) C++ Compiler
4058 # KCC will only create a shared library if the output file
4059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4060 # to its proper name (with version) after linking.
4061 _LT_AC_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'
4062 _LT_AC_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'
4063 # Commands to make compiler produce verbose output that lists
4064 # what "hidden" libraries, object files and flags are used when
4065 # linking a shared library.
4067 # There doesn't appear to be a way to prevent this compiler from
4068 # explicitly linking system object files so we need to strip them
4069 # from the output so that they don't get included in the library
4071 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 $list'
4073 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4074 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4076 # Archives containing C++ object files must be created using
4077 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4078 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4083 # version 8.0 and above of icpc choke on multiply defined symbols
4084 # if we add $predep_objects and $postdep_objects, however 7.1 and
4085 # earlier do not add the objects themselves.
4086 case `$CC -V 2>&1` in
4088 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4089 _LT_AC_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'
4091 *) # Version 8.0 or newer
4094 ia64*) tmp_idyn=' -i_dynamic';;
4096 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4097 _LT_AC_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'
4100 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4101 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4102 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4103 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4106 # Portland Group C++ compiler
4107 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4108 _LT_AC_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'
4110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4111 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4112 _LT_AC_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'
4116 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4117 _LT_AC_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'
4119 runpath_var=LD_RUN_PATH
4120 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4121 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4123 # Commands to make compiler produce verbose output that lists
4124 # what "hidden" libraries, object files and flags are used when
4125 # linking a shared library.
4127 # There doesn't appear to be a way to prevent this compiler from
4128 # explicitly linking system object files so we need to strip them
4129 # from the output so that they don't get included in the library
4131 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4136 # FIXME: insert proper C++ library support
4137 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4140 # FIXME: insert proper C++ library support
4141 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4144 case $cc_basename in
4146 # FIXME: insert proper C++ library support
4147 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150 # FIXME: insert proper C++ library support
4151 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4157 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4159 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4160 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4161 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4163 # Workaround some broken pre-1.5 toolchains
4164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4167 # C++ shared libraries are fairly broken
4168 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4171 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4172 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4173 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4174 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4176 _LT_AC_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'
4177 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4178 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4180 output_verbose_link_cmd='echo'
4183 case $cc_basename in
4185 # Kuck and Associates, Inc. (KAI) C++ Compiler
4187 # KCC will only create a shared library if the output file
4188 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4189 # to its proper name (with version) after linking.
4190 _LT_AC_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'
4192 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4193 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4195 # Archives containing C++ object files must be created using
4196 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4197 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4201 # Rational C++ 2.4.1
4202 # FIXME: insert proper C++ library support
4203 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4206 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4210 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4212 # Commands to make compiler produce verbose output that lists
4213 # what "hidden" libraries, object files and flags are used when
4214 # linking a shared library.
4216 # There doesn't appear to be a way to prevent this compiler from
4217 # explicitly linking system object files so we need to strip them
4218 # from the output so that they don't get included in the library
4220 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4223 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4224 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4225 _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4227 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4228 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4230 # Commands to make compiler produce verbose output that lists
4231 # what "hidden" libraries, object files and flags are used when
4232 # linking a shared library.
4233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4236 # FIXME: insert proper C++ library support
4237 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4243 case $cc_basename in
4245 # Kuck and Associates, Inc. (KAI) C++ Compiler
4247 # KCC will only create a shared library if the output file
4248 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4249 # to its proper name (with version) after linking.
4250 _LT_AC_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'
4252 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4253 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4255 # Archives containing C++ object files must be created using
4256 # the KAI C++ compiler.
4257 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4260 # Rational C++ 2.4.1
4261 # FIXME: insert proper C++ library support
4262 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4265 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4266 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4267 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4268 echo "-hidden">> $lib.exp~
4269 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4272 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4273 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4275 # Commands to make compiler produce verbose output that lists
4276 # what "hidden" libraries, object files and flags are used when
4277 # linking a shared library.
4279 # There doesn't appear to be a way to prevent this compiler from
4280 # explicitly linking system object files so we need to strip them
4281 # from the output so that they don't get included in the library
4283 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4287 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4288 _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4290 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4291 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4293 # Commands to make compiler produce verbose output that lists
4294 # what "hidden" libraries, object files and flags are used when
4295 # linking a shared library.
4296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4299 # FIXME: insert proper C++ library support
4300 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4306 # FIXME: insert proper C++ library support
4307 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4310 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4311 case $cc_basename in
4313 # FIXME: insert proper C++ library support
4314 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4317 # FIXME: insert proper C++ library support
4318 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4323 case $cc_basename in
4326 # FIXME: insert proper C++ library support
4327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4331 # FIXME: insert proper C++ library support
4332 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4335 # FIXME: insert proper C++ library support
4336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4341 case $cc_basename in
4343 # Sun C++ 4.2, 5.x and Centerline C++
4344 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4345 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4346 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4347 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4350 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4352 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4354 # The C++ compiler is used as linker so we must use $wl
4355 # flag to pass the commands to the underlying system
4356 # linker. We must also pass each convience library through
4357 # to the system linker between allextract/defaultextract.
4358 # The C++ compiler will combine linker options so we
4359 # cannot just pass the convience library names through
4361 # Supported since Solaris 2.6 (maybe 2.5.1?)
4362 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4365 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4367 # Commands to make compiler produce verbose output that lists
4368 # what "hidden" libraries, object files and flags are used when
4369 # linking a shared library.
4371 # There doesn't appear to be a way to prevent this compiler from
4372 # explicitly linking system object files so we need to strip them
4373 # from the output so that they don't get included in the library
4375 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4377 # Archives containing C++ object files must be created using
4378 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4379 # necessary to make sure instantiated templates are included
4381 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4384 # Green Hills C++ Compiler
4385 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4387 # The C++ compiler must be used to create the archive.
4388 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4391 # GNU C++ compiler with Solaris linker
4392 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4393 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4394 if $CC --version | grep -v '^2\.7' > /dev/null; then
4395 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4396 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4397 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4399 # Commands to make compiler produce verbose output that lists
4400 # what "hidden" libraries, object files and flags are used when
4401 # linking a shared library.
4402 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4404 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4406 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4407 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4408 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4410 # Commands to make compiler produce verbose output that lists
4411 # what "hidden" libraries, object files and flags are used when
4412 # linking a shared library.
4413 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4416 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4421 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4422 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4425 case $cc_basename in
4427 # NonStop-UX NCC 3.20
4428 # FIXME: insert proper C++ library support
4429 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4432 # FIXME: insert proper C++ library support
4433 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4438 # FIXME: insert proper C++ library support
4439 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4442 # FIXME: insert proper C++ library support
4443 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4446 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4447 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4449 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4450 _LT_AC_TAGVAR(LD, $1)="$LD"
4452 AC_LIBTOOL_POSTDEP_PREDEP($1)
4453 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4454 AC_LIBTOOL_PROG_CC_C_O($1)
4455 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4456 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4457 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4458 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4459 AC_LIBTOOL_SYS_LIB_STRIP
4460 AC_LIBTOOL_DLOPEN_SELF($1)
4462 AC_LIBTOOL_CONFIG($1)
4469 with_gnu_ldcxx=$with_gnu_ld
4470 with_gnu_ld=$lt_save_with_gnu_ld
4471 lt_cv_path_LDCXX=$lt_cv_path_LD
4472 lt_cv_path_LD=$lt_save_path_LD
4473 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4474 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4475 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4477 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4478 # ------------------------
4479 # Figure out "hidden" library dependencies from verbose
4480 # compiler output when linking a shared library.
4481 # Parse the compiler output and extract the necessary
4482 # objects, libraries and library flags.
4483 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4484 dnl we can't use the lt_simple_compile_test_code here,
4485 dnl because it contains code intended for an executable,
4486 dnl not a library. It's possible we should let each
4487 dnl tag define a new lt_????_link_test_code variable,
4488 dnl but it's only used here...
4489 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4491 void foo (void) { a = 0; }
4493 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4497 Foo (void) { a = 0; }
4502 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4510 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4513 public void bar (void) {
4519 dnl Parse the compiler output and extract the necessary
4520 dnl objects, libraries and library flags.
4521 if AC_TRY_EVAL(ac_compile); then
4522 # Parse the compiler output and extract the necessary
4523 # objects, libraries and library flags.
4525 # Sentinel used to keep track of whether or not we are before
4526 # the conftest object file.
4527 pre_test_object_deps_done=no
4529 # The `*' in the case matches for architectures that use `case' in
4530 # $output_verbose_cmd can trigger glob expansion during the loop
4531 # eval without this substitution.
4532 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4534 for p in `eval $output_verbose_link_cmd`; do
4538 # Some compilers place space between "-{L,R}" and the path.
4541 || test $p = "-R"; then
4548 if test "$pre_test_object_deps_done" = no; then
4551 # Internal compiler library paths should come after those
4552 # provided the user. The postdeps already come after the
4553 # user supplied libs so there is no need to process them.
4554 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4555 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4557 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4560 # The "-l" case would never come before the object being
4561 # linked, so don't bother handling this case.
4564 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4565 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4567 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4573 # This assumes that the test object file only shows up
4574 # once in the compiler output.
4575 if test "$p" = "conftest.$objext"; then
4576 pre_test_object_deps_done=yes
4580 if test "$pre_test_object_deps_done" = no; then
4581 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4582 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4584 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4587 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4588 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4590 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4595 *) ;; # Ignore the rest.
4603 echo "libtool.m4: error: problem compiling $1 test program"
4606 $rm -f confest.$objext
4608 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4609 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4611 ])# AC_LIBTOOL_POSTDEP_PREDEP
4613 # AC_LIBTOOL_LANG_F77_CONFIG
4614 # ------------------------
4615 # Ensure that the configuration vars for the C compiler are
4616 # suitably defined. Those variables are subsequently used by
4617 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4618 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4619 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4620 [AC_REQUIRE([AC_PROG_F77])
4621 AC_LANG_PUSH(Fortran 77)
4623 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4624 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4625 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4628 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4629 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4630 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4631 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4632 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4633 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4634 _LT_AC_TAGVAR(module_cmds, $1)=
4635 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4636 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4637 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4638 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4640 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4642 # Source file extension for f77 test sources.
4645 # Object file extension for compiled f77 test sources.
4647 _LT_AC_TAGVAR(objext, $1)=$objext
4649 # Code to be used in simple compile tests
4650 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4652 # Code to be used in simple link tests
4653 lt_simple_link_test_code=" program t\n end\n"
4655 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4658 # save warnings/boilerplate of simple test code
4659 _LT_COMPILER_BOILERPLATE
4660 _LT_LINKER_BOILERPLATE
4662 # Allow CC to be a program name with arguments.
4666 _LT_AC_TAGVAR(compiler, $1)=$CC
4667 _LT_CC_BASENAME([$compiler])
4669 AC_MSG_CHECKING([if libtool supports shared libraries])
4670 AC_MSG_RESULT([$can_build_shared])
4672 AC_MSG_CHECKING([whether to build shared libraries])
4673 test "$can_build_shared" = "no" && enable_shared=no
4675 # On AIX, shared libraries and static libraries use the same namespace, and
4676 # are all built from PIC.
4679 test "$enable_shared" = yes && enable_static=no
4680 if test -n "$RANLIB"; then
4681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4682 postinstall_cmds='$RANLIB $lib'
4686 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4687 test "$enable_shared" = yes && enable_static=no
4691 AC_MSG_RESULT([$enable_shared])
4693 AC_MSG_CHECKING([whether to build static libraries])
4694 # Make sure either enable_shared or enable_static is yes.
4695 test "$enable_shared" = yes || enable_static=yes
4696 AC_MSG_RESULT([$enable_static])
4698 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4700 _LT_AC_TAGVAR(GCC, $1)="$G77"
4701 _LT_AC_TAGVAR(LD, $1)="$LD"
4703 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4704 AC_LIBTOOL_PROG_CC_C_O($1)
4705 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4706 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4707 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4708 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4709 AC_LIBTOOL_SYS_LIB_STRIP
4712 AC_LIBTOOL_CONFIG($1)
4716 ])# AC_LIBTOOL_LANG_F77_CONFIG
4719 # AC_LIBTOOL_LANG_GCJ_CONFIG
4720 # --------------------------
4721 # Ensure that the configuration vars for the C compiler are
4722 # suitably defined. Those variables are subsequently used by
4723 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4724 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4725 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4728 # Source file extension for Java test sources.
4731 # Object file extension for compiled Java test sources.
4733 _LT_AC_TAGVAR(objext, $1)=$objext
4735 # Code to be used in simple compile tests
4736 lt_simple_compile_test_code="class foo {}\n"
4738 # Code to be used in simple link tests
4739 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4744 # save warnings/boilerplate of simple test code
4745 _LT_COMPILER_BOILERPLATE
4746 _LT_LINKER_BOILERPLATE
4748 # Allow CC to be a program name with arguments.
4752 _LT_AC_TAGVAR(compiler, $1)=$CC
4753 _LT_CC_BASENAME([$compiler])
4755 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4756 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4758 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4760 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4761 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4762 AC_LIBTOOL_PROG_CC_C_O($1)
4763 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4764 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4765 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4766 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4767 AC_LIBTOOL_SYS_LIB_STRIP
4768 AC_LIBTOOL_DLOPEN_SELF($1)
4770 AC_LIBTOOL_CONFIG($1)
4774 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4777 # AC_LIBTOOL_LANG_RC_CONFIG
4778 # --------------------------
4779 # Ensure that the configuration vars for the Windows resource compiler are
4780 # suitably defined. Those variables are subsequently used by
4781 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4782 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4783 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4786 # Source file extension for RC test sources.
4789 # Object file extension for compiled RC test sources.
4791 _LT_AC_TAGVAR(objext, $1)=$objext
4793 # Code to be used in simple compile tests
4794 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4796 # Code to be used in simple link tests
4797 lt_simple_link_test_code="$lt_simple_compile_test_code"
4799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4802 # save warnings/boilerplate of simple test code
4803 _LT_COMPILER_BOILERPLATE
4804 _LT_LINKER_BOILERPLATE
4806 # Allow CC to be a program name with arguments.
4810 _LT_AC_TAGVAR(compiler, $1)=$CC
4811 _LT_CC_BASENAME([$compiler])
4812 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4814 AC_LIBTOOL_CONFIG($1)
4818 ])# AC_LIBTOOL_LANG_RC_CONFIG
4821 # AC_LIBTOOL_CONFIG([TAGNAME])
4822 # ----------------------------
4823 # If TAGNAME is not passed, then create an initial libtool script
4824 # with a default configuration from the untagged config vars. Otherwise
4825 # add code to config.status for appending the configuration named by
4826 # TAGNAME from the matching tagged config vars.
4827 AC_DEFUN([AC_LIBTOOL_CONFIG],
4828 [# The else clause should only fire when bootstrapping the
4829 # libtool distribution, otherwise you forgot to ship ltmain.sh
4830 # with your package, and you will get complaints that there are
4831 # no rules to generate ltmain.sh.
4832 if test -f "$ltmain"; then
4833 # See if we are running on zsh, and set the options which allow our commands through
4834 # without removal of \ escapes.
4835 if test -n "${ZSH_VERSION+set}" ; then
4836 setopt NO_GLOB_SUBST
4838 # Now quote all the things that may contain metacharacters while being
4839 # careful not to overquote the AC_SUBSTed values. We take copies of the
4840 # variables and quote the copies for generation of the libtool script.
4841 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4845 deplibs_check_method reload_flag reload_cmds need_locks \
4846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4847 lt_cv_sys_global_symbol_to_c_name_address \
4848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4849 old_postinstall_cmds old_postuninstall_cmds \
4850 _LT_AC_TAGVAR(compiler, $1) \
4851 _LT_AC_TAGVAR(CC, $1) \
4852 _LT_AC_TAGVAR(LD, $1) \
4853 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4854 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4855 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4856 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4857 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4858 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4859 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4860 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4861 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4862 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4863 _LT_AC_TAGVAR(predep_objects, $1) \
4864 _LT_AC_TAGVAR(postdep_objects, $1) \
4865 _LT_AC_TAGVAR(predeps, $1) \
4866 _LT_AC_TAGVAR(postdeps, $1) \
4867 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4868 _LT_AC_TAGVAR(archive_cmds, $1) \
4869 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4870 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4871 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4872 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4873 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4874 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4875 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4877 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4878 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4879 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4880 _LT_AC_TAGVAR(module_cmds, $1) \
4881 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4882 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4883 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4884 _LT_AC_TAGVAR(include_expsyms, $1); do
4887 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4888 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4889 _LT_AC_TAGVAR(archive_cmds, $1) | \
4890 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4891 _LT_AC_TAGVAR(module_cmds, $1) | \
4892 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4893 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4894 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4895 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4896 postinstall_cmds | postuninstall_cmds | \
4897 old_postinstall_cmds | old_postuninstall_cmds | \
4898 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4899 # Double-quote double-evaled strings.
4900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4909 *'\[$]0 --fallback-echo"')
4910 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4915 [cfgfile="${ofile}T"
4916 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4918 AC_MSG_NOTICE([creating $ofile])],
4921 cat <<__EOF__ >> "$cfgfile"
4925 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4926 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4927 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4929 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4930 # Free Software Foundation, Inc.
4932 # This file is part of GNU Libtool:
4933 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4935 # This program is free software; you can redistribute it and/or modify
4936 # it under the terms of the GNU General Public License as published by
4937 # the Free Software Foundation; either version 2 of the License, or
4938 # (at your option) any later version.
4940 # This program is distributed in the hope that it will be useful, but
4941 # WITHOUT ANY WARRANTY; without even the implied warranty of
4942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4943 # General Public License for more details.
4945 # You should have received a copy of the GNU General Public License
4946 # along with this program; if not, write to the Free Software
4947 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4949 # As a special exception to the GNU General Public License, if you
4950 # distribute this file as part of a program that contains a
4951 # configuration script generated by Autoconf, you may include it under
4952 # the same distribution terms that you use for the rest of that program.
4954 # A sed program that does not truncate output.
4957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4958 Xsed="$SED -e 1s/^X//"
4960 # The HP-UX ksh and POSIX shell print the target directory to stdout
4962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4964 # The names of the tagged configurations supported by this script.
4967 # ### BEGIN LIBTOOL CONFIG],
4968 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4972 # Shell to use when invoking shell scripts.
4975 # Whether or not to build shared libraries.
4976 build_libtool_libs=$enable_shared
4978 # Whether or not to build static libraries.
4979 build_old_libs=$enable_static
4981 # Whether or not to add -lc for building shared libraries.
4982 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4984 # Whether or not to disallow shared libs when runtime libs are static
4985 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4987 # Whether or not to optimize for fast installation.
4988 fast_install=$enable_fast_install
4991 host_alias=$host_alias
4996 build_alias=$build_alias
5000 # An echo program that does not interpret backslashes.
5005 AR_FLAGS=$lt_AR_FLAGS
5010 # A language-specific compiler.
5011 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5013 # Is the compiler the GNU C compiler?
5014 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5019 # The linker used to build libraries.
5020 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5022 # Whether we need hard or soft links.
5025 # A BSD-compatible nm program.
5028 # A symbol stripping program
5031 # Used to examine libraries when file_magic_cmd begins "file"
5032 MAGIC_CMD=$MAGIC_CMD
5034 # Used on cygwin: DLL creation program.
5037 # Used on cygwin: object dumper.
5040 # Used on cygwin: assembler.
5043 # The name of the directory that contains temporary libtool files.
5046 # How to create reloadable object files.
5047 reload_flag=$lt_reload_flag
5048 reload_cmds=$lt_reload_cmds
5050 # How to pass a linker flag through the compiler.
5051 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5053 # Object file suffix (normally "o").
5056 # Old archive suffix (normally "a").
5059 # Shared library suffix (normally ".so").
5060 shrext_cmds='$shrext_cmds'
5062 # Executable file suffix (normally "").
5065 # Additional compiler flags for building library objects.
5066 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5069 # What is the maximum length of a command?
5070 max_cmd_len=$lt_cv_sys_max_cmd_len
5072 # Does compiler simultaneously support -c and -o options?
5073 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5075 # Must we lock files when doing compilation?
5076 need_locks=$lt_need_locks
5078 # Do we need the lib prefix for modules?
5079 need_lib_prefix=$need_lib_prefix
5081 # Do we need a version for libraries?
5082 need_version=$need_version
5084 # Whether dlopen is supported.
5085 dlopen_support=$enable_dlopen
5087 # Whether dlopen of programs is supported.
5088 dlopen_self=$enable_dlopen_self
5090 # Whether dlopen of statically linked programs is supported.
5091 dlopen_self_static=$enable_dlopen_self_static
5093 # Compiler flag to prevent dynamic linking.
5094 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5096 # Compiler flag to turn off builtin functions.
5097 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5099 # Compiler flag to allow reflexive dlopens.
5100 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5102 # Compiler flag to generate shared objects directly from archives.
5103 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5105 # Compiler flag to generate thread-safe objects.
5106 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5108 # Library versioning type.
5109 version_type=$version_type
5111 # Format of library name prefix.
5112 libname_spec=$lt_libname_spec
5114 # List of archive names. First name is the real one, the rest are links.
5115 # The last name is the one that the linker finds with -lNAME.
5116 library_names_spec=$lt_library_names_spec
5118 # The coded name of the library, if different from the real name.
5119 soname_spec=$lt_soname_spec
5121 # Commands used to build and install an old-style archive.
5123 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5124 old_postinstall_cmds=$lt_old_postinstall_cmds
5125 old_postuninstall_cmds=$lt_old_postuninstall_cmds
5127 # Create an old-style archive from a shared archive.
5128 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5130 # Create a temporary old-style archive to link instead of a shared archive.
5131 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5133 # Commands used to build and install a shared archive.
5134 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5135 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5136 postinstall_cmds=$lt_postinstall_cmds
5137 postuninstall_cmds=$lt_postuninstall_cmds
5139 # Commands used to build a loadable module (assumed same as above if empty)
5140 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5141 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5143 # Commands to strip libraries.
5144 old_striplib=$lt_old_striplib
5145 striplib=$lt_striplib
5147 # Dependencies to place before the objects being linked to create a
5149 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5151 # Dependencies to place after the objects being linked to create a
5153 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5155 # Dependencies to place before the objects being linked to create a
5157 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5159 # Dependencies to place after the objects being linked to create a
5161 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5163 # The library search path used internally by the compiler when linking
5165 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5167 # Method to check whether dependent libraries are shared objects.
5168 deplibs_check_method=$lt_deplibs_check_method
5170 # Command to use when deplibs_check_method == file_magic.
5171 file_magic_cmd=$lt_file_magic_cmd
5173 # Flag that allows shared libraries with undefined symbols to be built.
5174 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5176 # Flag that forces no undefined symbols.
5177 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5179 # Commands used to finish a libtool library installation in a directory.
5180 finish_cmds=$lt_finish_cmds
5182 # Same as above, but a single script fragment to be evaled but not shown.
5183 finish_eval=$lt_finish_eval
5185 # Take the output of nm and produce a listing of raw symbols and C names.
5186 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5188 # Transform the output of nm in a proper C declaration
5189 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5191 # Transform the output of nm in a C name address pair
5192 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5194 # This is the shared library runtime path variable.
5195 runpath_var=$runpath_var
5197 # This is the shared library path variable.
5198 shlibpath_var=$shlibpath_var
5200 # Is shlibpath searched before the hard-coded library search path?
5201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5203 # How to hardcode a shared library path into an executable.
5204 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5206 # Whether we should hardcode library paths into libraries.
5207 hardcode_into_libs=$hardcode_into_libs
5209 # Flag to hardcode \$libdir into a binary during linking.
5210 # This must work even if \$libdir does not exist.
5211 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5213 # If ld is used when linking, flag to hardcode \$libdir into
5214 # a binary during linking. This must work even if \$libdir does
5216 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5218 # Whether we need a single -rpath flag with a separated argument.
5219 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5221 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5223 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5225 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5227 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5229 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5230 # the resulting binary.
5231 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5233 # Set to yes if building a shared library automatically hardcodes DIR into the library
5234 # and all subsequent libraries and executables linked against it.
5235 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5237 # Variables whose values should be saved in libtool wrapper scripts and
5238 # restored at relink time.
5239 variables_saved_for_relink="$variables_saved_for_relink"
5241 # Whether libtool must link a program against all its dependency libraries.
5242 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5244 # Compile-time system search path for libraries
5245 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5247 # Run-time system search path for libraries
5248 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5250 # Fix the shell variable \$srcfile for the compiler.
5251 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5253 # Set to yes if exported symbols are required.
5254 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5256 # The commands to list exported symbols.
5257 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5259 # The commands to extract the exported symbol list from a shared archive.
5260 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5262 # Symbols that should not be listed in the preloaded symbols.
5263 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5265 # Symbols that must always be exported.
5266 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5269 [# ### END LIBTOOL CONFIG],
5270 [# ### END LIBTOOL TAG CONFIG: $tagname])
5277 cat <<\EOF >> "$cfgfile"
5279 # AIX sometimes has problems with the GCC collect2 program. For some
5280 # reason, if we set the COLLECT_NAMES environment variable, the problems
5281 # vanish in a puff of smoke.
5282 if test "X${COLLECT_NAMES+set}" != Xset; then
5284 export COLLECT_NAMES
5290 # We use sed instead of cat because bash on DJGPP gets confused if
5291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5292 # text mode, it properly converts lines to CR/LF. This bash problem
5293 # is reportedly fixed, but why not run on old versions too?
5294 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5296 mv -f "$cfgfile" "$ofile" || \
5297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5301 # If there is no Makefile yet, we rely on a make rule to execute
5302 # `config.status --recheck' to rerun these tests and create the
5303 # libtool script then.
5304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5305 if test -f "$ltmain_in"; then
5306 test -f Makefile && make "$ltmain"
5309 ])# AC_LIBTOOL_CONFIG
5312 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5313 # -------------------------------------------
5314 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5315 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5317 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5319 if test "$GCC" = yes; then
5320 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5322 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5323 lt_cv_prog_compiler_rtti_exceptions,
5324 [-fno-rtti -fno-exceptions], [],
5325 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5327 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5330 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5331 # ---------------------------------
5332 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5333 [AC_REQUIRE([AC_CANONICAL_HOST])
5334 AC_REQUIRE([AC_PROG_NM])
5335 AC_REQUIRE([AC_OBJEXT])
5336 # Check for command to grab the raw symbol name followed by C symbol from nm.
5337 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5338 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5340 # These are sane defaults that work on at least a few old systems.
5341 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5343 # Character class describing NM global symbol codes.
5344 symcode='[[BCDEGRST]]'
5346 # Regexp to match symbols that can be accessed directly from C.
5347 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5349 # Transform an extracted symbol line into a proper C declaration
5350 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5352 # Transform an extracted symbol line into symbol name and symbol address
5353 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5355 # Define system-specific variables.
5360 cygwin* | mingw* | pw32*)
5361 symcode='[[ABCDGISTW]]'
5363 hpux*) # Its linker distinguishes data from code symbols
5364 if test "$host_cpu" = ia64; then
5365 symcode='[[ABCDEGRST]]'
5367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5368 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5371 if test "$host_cpu" = ia64; then
5372 symcode='[[ABCDGIRSTW]]'
5373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5374 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5378 symcode='[[BCDEGRST]]'
5381 symcode='[[BCDEGQRST]]'
5387 symcode='[[DFNSTU]]'
5391 # Handle CRLF in mingw tool chain
5395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5399 # If we're using GNU nm, then use its standard symbol codes.
5400 case `$NM -V 2>&1` in
5401 *GNU* | *'with BFD'*)
5402 symcode='[[ABCDGIRSTW]]' ;;
5405 # Try without a prefix undercore, then with it.
5406 for ac_symprfx in "" "_"; do
5408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5409 symxfrm="\\1 $ac_symprfx\\2 \\2"
5411 # Write the raw and C identifiers.
5412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5414 # Check to see that the pipe works correctly.
5418 cat > conftest.$ac_ext <<EOF
5423 void nm_test_func(){}
5427 int main(){nm_test_var='a';nm_test_func();return(0);}
5430 if AC_TRY_EVAL(ac_compile); then
5431 # Now try to grab the symbols.
5433 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5434 # Try sorting and uniquifying the output.
5435 if sort "$nlist" | uniq > "$nlist"T; then
5436 mv -f "$nlist"T "$nlist"
5441 # Make sure that we snagged all the symbols we need.
5442 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444 cat <<EOF > conftest.$ac_ext
5450 # Now generate the symbol file.
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5453 cat <<EOF >> conftest.$ac_ext
5454 #if defined (__STDC__) && __STDC__
5455 # define lt_ptr_t void *
5457 # define lt_ptr_t char *
5461 /* The mapping between symbol names and symbols. */
5466 lt_preloaded_symbols[[]] =
5469 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470 cat <<\EOF >> conftest.$ac_ext
5478 # Now try linking the two files.
5479 mv conftest.$ac_objext conftstm.$ac_objext
5480 lt_save_LIBS="$LIBS"
5481 lt_save_CFLAGS="$CFLAGS"
5482 LIBS="conftstm.$ac_objext"
5483 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5484 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5487 LIBS="$lt_save_LIBS"
5488 CFLAGS="$lt_save_CFLAGS"
5490 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5493 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5499 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5500 cat conftest.$ac_ext >&5
5502 rm -f conftest* conftst*
5504 # Do not use the global_symbol_pipe unless it works.
5505 if test "$pipe_works" = yes; then
5508 lt_cv_sys_global_symbol_pipe=
5512 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5513 lt_cv_sys_global_symbol_to_cdecl=
5515 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5516 AC_MSG_RESULT(failed)
5520 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5523 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5524 # ---------------------------------------
5525 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5526 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5527 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5528 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5530 AC_MSG_CHECKING([for $compiler option to produce PIC])
5532 # C++ specific cases for pic, static, wl, etc.
5533 if test "$GXX" = yes; then
5534 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5535 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5539 # All AIX code is PIC.
5540 if test "$host_cpu" = ia64; then
5541 # AIX 5 now supports IA64 processor
5542 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5546 # FIXME: we need at least 68020 code to build shared libraries, but
5547 # adding the `-m68020' flag to GCC prevents building anything better,
5549 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5552 # PIC is the default for these OSes.
5554 mingw* | os2* | pw32*)
5555 # This hack is so that the source file can tell whether it is being
5556 # built for inclusion in a dll (and should export symbols for example).
5557 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5559 darwin* | rhapsody*)
5560 # PIC is the default on this platform
5561 # Common symbols not allowed in MH_DYLIB files
5562 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5565 # DJGPP does not support shared libraries at all
5566 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5569 if test -d /usr/nec; then
5570 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5580 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5585 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5591 # All AIX code is PIC.
5592 if test "$host_cpu" = ia64; then
5593 # AIX 5 now supports IA64 processor
5594 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5596 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5600 case $cc_basename in
5602 # Green Hills C++ Compiler
5603 # _LT_AC_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"
5608 # PIC is the default on this platform
5609 # Common symbols not allowed in MH_DYLIB files
5610 case $cc_basename in
5612 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5613 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5618 case $cc_basename in
5620 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5623 # Green Hills C++ Compiler
5624 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5630 freebsd* | kfreebsd*-gnu | dragonfly*)
5631 # FreeBSD uses GNU C++
5633 hpux9* | hpux10* | hpux11*)
5634 case $cc_basename in
5636 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5637 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5638 if test "$host_cpu" != ia64; then
5639 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5643 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5644 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5650 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5658 irix5* | irix6* | nonstopux*)
5659 case $cc_basename in
5661 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5662 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5663 # CC pic flag -KPIC is the default.
5670 case $cc_basename in
5673 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5674 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5678 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5679 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5680 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5683 # Portland Group C++ compiler.
5684 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5685 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5686 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5690 # Make sure the PIC flag is empty. It appears that all Alpha
5691 # Linux and Compaq Tru64 Unix objects are PIC.
5692 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5693 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5704 case $cc_basename in
5706 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5714 osf3* | osf4* | osf5*)
5715 case $cc_basename in
5717 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5720 # Rational C++ 2.4.1
5721 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5724 # Digital/Compaq C++
5725 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5726 # Make sure the PIC flag is empty. It appears that all Alpha
5727 # Linux and Compaq Tru64 Unix objects are PIC.
5728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5729 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5738 case $cc_basename in
5740 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5747 case $cc_basename in
5749 # Sun C++ 4.2, 5.x and Centerline C++
5750 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5751 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5752 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5755 # Green Hills C++ Compiler
5756 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5763 case $cc_basename in
5766 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5767 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5771 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5778 case $cc_basename in
5780 # NonStop-UX NCC 3.20
5781 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5792 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5798 if test "$GCC" = yes; then
5799 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5800 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5804 # All AIX code is PIC.
5805 if test "$host_cpu" = ia64; then
5806 # AIX 5 now supports IA64 processor
5807 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5812 # FIXME: we need at least 68020 code to build shared libraries, but
5813 # adding the `-m68020' flag to GCC prevents building anything better,
5815 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5818 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5819 # PIC is the default for these OSes.
5822 mingw* | pw32* | os2*)
5823 # This hack is so that the source file can tell whether it is being
5824 # built for inclusion in a dll (and should export symbols for example).
5825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5828 darwin* | rhapsody*)
5829 # PIC is the default on this platform
5830 # Common symbols not allowed in MH_DYLIB files
5831 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5835 # Just because we use GCC doesn't mean we suddenly get shared libraries
5836 # on systems that don't support them.
5837 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5842 if test -d /usr/nec; then
5843 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5855 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5861 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5865 # PORTME Check for flag to pass linker flags through the system compiler.
5868 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5869 if test "$host_cpu" = ia64; then
5870 # AIX 5 now supports IA64 processor
5871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5873 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5877 # PIC is the default on this platform
5878 # Common symbols not allowed in MH_DYLIB files
5879 case $cc_basename in
5881 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5882 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5887 mingw* | pw32* | os2*)
5888 # This hack is so that the source file can tell whether it is being
5889 # built for inclusion in a dll (and should export symbols for example).
5890 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5893 hpux9* | hpux10* | hpux11*)
5894 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5902 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5909 irix5* | irix6* | nonstopux*)
5910 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5911 # PIC (with -KPIC) is the default.
5912 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5916 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5917 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5921 case $cc_basename in
5923 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5924 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5925 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5927 pgcc* | pgf77* | pgf90*)
5928 # Portland Group compilers (*not* the Pentium gcc compiler,
5929 # which looks to be a dead project)
5930 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5931 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5932 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5935 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5936 # All Alpha code is PIC.
5937 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5942 osf3* | osf4* | osf5*)
5943 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5944 # All OSF/1 code is PIC.
5945 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5949 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5950 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5954 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5955 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5956 case $cc_basename in
5958 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5960 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5965 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5966 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5967 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5971 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5972 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5973 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5977 if test -d /usr/nec ;then
5978 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5979 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5984 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5985 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5990 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5994 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5999 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6002 # Check to make sure the PIC flag actually works.
6004 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6005 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6006 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6007 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6008 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6010 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6012 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6013 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6016 # For platforms which do not support PIC, -DPIC is meaningless:
6018 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6027 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6028 # ------------------------------------
6029 # See if the linker supports building shared libraries.
6030 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6031 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6033 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6036 # If we're using GNU nm, then we don't want the "-C" option.
6037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6038 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6039 _LT_AC_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'
6041 _LT_AC_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'
6045 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6048 _LT_AC_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'
6051 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6056 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6057 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6058 _LT_AC_TAGVAR(archive_cmds, $1)=
6059 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6060 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6061 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6062 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6063 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6064 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6066 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6067 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6068 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6069 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6070 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6071 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6072 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6073 _LT_AC_TAGVAR(module_cmds, $1)=
6074 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6075 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6076 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6077 # include_expsyms should be a list of space-separated symbols to be *always*
6078 # included in the symbol list
6079 _LT_AC_TAGVAR(include_expsyms, $1)=
6080 # exclude_expsyms can be an extended regexp of symbols to exclude
6081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6083 # as well as any symbol that contains `d'.
6084 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6086 # platforms (ab)use it in PIC code, but their linkers get confused if
6087 # the symbol is explicitly referenced. Since portable code cannot
6088 # rely on this symbol name, it's probably fine to never include it in
6089 # preloaded symbol tables.
6090 extract_expsyms_cmds=
6091 # Just being paranoid about ensuring that cc_basename is set.
6092 _LT_CC_BASENAME([$compiler])
6094 cygwin* | mingw* | pw32*)
6095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6096 # When not using gcc, we currently assume that we are using
6097 # Microsoft Visual C++.
6098 if test "$GCC" != yes; then
6107 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6108 if test "$with_gnu_ld" = yes; then
6109 # If archive_cmds runs LD, not CC, wlarc should be empty
6112 # Set some defaults for GNU ld with shared library support. These
6113 # are reset later if shared libraries are not supported. Putting them
6114 # here allows them to be overridden if necessary.
6115 runpath_var=LD_RUN_PATH
6116 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6117 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6118 # ancient GNU ld didn't support --whole-archive et. al.
6119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6120 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6122 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6124 supports_anon_versioning=no
6125 case `$LD -v 2>/dev/null` in
6126 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6129 *\ 2.11.*) ;; # other 2.11 versions
6130 *) supports_anon_versioning=yes ;;
6133 # See if GNU ld supports shared libraries.
6135 aix3* | aix4* | aix5*)
6136 # On AIX/PPC, the GNU linker is very broken
6137 if test "$host_cpu" != ia64; then
6138 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6142 *** to be unable to reliably create shared libraries on AIX.
6143 *** Therefore, libtool is disabling shared libraries support. If you
6144 *** really care for shared libraries, you may want to modify your PATH
6145 *** so that a non-GNU linker is found, and then restart.
6152 _LT_AC_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)'
6153 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6154 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6156 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6157 # that the semantics of dynamic libraries on AmigaOS, at least up
6158 # to version 4, is to share data among multiple programs linked
6159 # with the same dynamic library. Since this doesn't match the
6160 # behavior of shared libraries on other platforms, we can't use
6162 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6167 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6169 # support --undefined. This deserves some investigation. FIXME
6170 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6172 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6176 cygwin* | mingw* | pw32*)
6177 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6178 # as there is no search path for DLLs.
6179 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6180 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6181 _LT_AC_TAGVAR(always_export_symbols, $1)=no
6182 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6183 _LT_AC_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'
6185 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6186 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6187 # If the export-symbols file already is a .def file (1st line
6188 # is EXPORTS), use it as is; otherwise, prepend...
6189 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6190 cp $export_symbols $output_objdir/$soname.def;
6192 echo EXPORTS > $output_objdir/$soname.def;
6193 cat $export_symbols >> $output_objdir/$soname.def;
6195 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6197 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6204 case $cc_basename,$host_cpu in
6205 pgcc*) # Portland Group C compiler
6206 _LT_AC_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'
6207 tmp_addflag=' $pic_flag'
6209 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6210 _LT_AC_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'
6211 tmp_addflag=' $pic_flag -Mnomain' ;;
6212 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6213 tmp_addflag=' -i_dynamic' ;;
6214 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6215 tmp_addflag=' -i_dynamic -nofor_main' ;;
6216 ifc* | ifort*) # Intel Fortran compiler
6217 tmp_addflag=' -nofor_main' ;;
6219 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6221 if test $supports_anon_versioning = yes; then
6222 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6224 $echo "local: *; };" >> $output_objdir/$libname.ver~
6225 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6228 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6234 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6237 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6238 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6244 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6248 *** create shared libraries on Solaris systems. Therefore, libtool
6249 *** is disabling shared libraries support. We urge you to upgrade GNU
6250 *** binutils to release 2.9.1 or newer. Another option is to modify
6251 *** your PATH or compiler configuration so that the native linker is
6252 *** used, and then restart.
6255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6256 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6257 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6259 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6264 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6266 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6267 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6272 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6273 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6275 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6280 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6282 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6283 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6284 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6287 # PORTME fill in a description of your system's linker (not GNU ld)
6290 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6291 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6292 _LT_AC_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'
6293 # Note: this linker hardcodes the directories in LIBPATH if there
6294 # are no directories specified by -L.
6295 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6296 if test "$GCC" = yes && test -z "$link_static_flag"; then
6297 # Neither direct hardcoding nor static linking is supported with a
6299 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6304 if test "$host_cpu" = ia64; then
6305 # On IA64, the linker does run time linking by default, so we don't
6306 # have to do anything special.
6307 aix_use_runtimelinking=no
6308 exp_sym_flag='-Bexport'
6311 # If we're using GNU nm, then we don't want the "-C" option.
6312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6314 _LT_AC_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'
6316 _LT_AC_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'
6318 aix_use_runtimelinking=no
6320 # Test if we are trying to use run time linking or normal
6321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6322 # need to do runtime linking.
6323 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6324 for ld_flag in $LDFLAGS; do
6325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6326 aix_use_runtimelinking=yes
6332 exp_sym_flag='-bexport'
6333 no_entry_flag='-bnoentry'
6336 # When large executables or shared objects are built, AIX ld can
6337 # have problems creating the table of contents. If linking a library
6338 # or program results in "error TOC overflow" add -mminimal-toc to
6339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6342 _LT_AC_TAGVAR(archive_cmds, $1)=''
6343 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6344 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6345 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6347 if test "$GCC" = yes; then
6348 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6349 # We only want to do this on AIX 4.2 and lower, the check
6350 # below for broken collect2 doesn't work under 4.3+
6351 collect2name=`${CC} -print-prog-name=collect2`
6352 if test -f "$collect2name" && \
6353 strings "$collect2name" | grep resolve_lib_name >/dev/null
6355 # We have reworked collect2
6356 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6358 # We have old collect2
6359 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6360 # It fails to find uninstalled libraries when the uninstalled
6361 # path is not listed in the libpath. Setting hardcode_minus_L
6362 # to unsupported forces relinking
6363 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6364 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6365 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6368 shared_flag='-shared'
6369 if test "$aix_use_runtimelinking" = yes; then
6370 shared_flag="$shared_flag "'${wl}-G'
6374 if test "$host_cpu" = ia64; then
6375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6376 # chokes on -Wl,-G. The following line is correct:
6379 if test "$aix_use_runtimelinking" = yes; then
6380 shared_flag='${wl}-G'
6382 shared_flag='${wl}-bM:SRE'
6387 # It seems that -bexpall does not export symbols beginning with
6388 # underscore (_), so it is better to generate a list of symbols to export.
6389 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6390 if test "$aix_use_runtimelinking" = yes; then
6391 # Warning - without using the other runtime loading flags (-brtl),
6392 # -berok will link without error, but may produce a broken library.
6393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6394 # Determine the default libpath from the value encoded in an empty executable.
6395 _LT_AC_SYS_LIBPATH_AIX
6396 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6397 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6399 if test "$host_cpu" = ia64; then
6400 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6401 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6402 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6404 # Determine the default libpath from the value encoded in an empty executable.
6405 _LT_AC_SYS_LIBPATH_AIX
6406 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6407 # Warning - without using the other run time loading flags,
6408 # -berok will link without error, but may produce a broken library.
6409 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6410 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6411 # -bexpall does not export symbols beginning with underscore (_)
6412 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6413 # Exported symbols can be pulled into shared objects from archives
6414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6415 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6416 # This is similar to how AIX traditionally builds it's shared libraries.
6417 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6423 _LT_AC_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)'
6424 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6425 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6426 # see comment about different semantics on the GNU ld section
6427 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6431 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6434 cygwin* | mingw* | pw32*)
6435 # When not using gcc, we currently assume that we are using
6436 # Microsoft Visual C++.
6437 # hardcode_libdir_flag_spec is actually meaningless, as there is
6438 # no search path for DLLs.
6439 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6440 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6441 # Tell ltmain to make .lib files, not .a files.
6443 # Tell ltmain to make .dll files, not .so files.
6445 # FIXME: Setting linknames here is a bad hack.
6446 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6447 # The linker will automatically build a .lib file if we build a DLL.
6448 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6449 # FIXME: Should let the user specify the lib program.
6450 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6451 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6452 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6455 darwin* | rhapsody*)
6457 rhapsody* | darwin1.[[012]])
6458 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6461 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6462 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6464 case ${MACOSX_DEPLOYMENT_TARGET} in
6466 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6469 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6475 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6476 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6477 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6478 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6479 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6480 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6481 if test "$GCC" = yes ; then
6482 output_verbose_link_cmd='echo'
6483 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6484 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6486 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6487 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6489 case $cc_basename in
6491 output_verbose_link_cmd='echo'
6492 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6493 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6495 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6496 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6499 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6506 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6508 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6512 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6516 # support. Future versions do this automatically, but an explicit c++rt0.o
6517 # does not break anything, and helps significantly (at the cost of a little
6520 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6521 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6522 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6523 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6528 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6529 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6530 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6531 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6535 freebsd* | kfreebsd*-gnu | dragonfly*)
6536 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6537 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6538 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6539 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6543 if test "$GCC" = yes; then
6544 _LT_AC_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'
6546 _LT_AC_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'
6548 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6549 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6550 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6552 # hardcode_minus_L: Not really in the search PATH,
6553 # but as the default location of the library.
6554 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6555 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6559 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6562 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6565 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6571 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6574 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6578 if test "$with_gnu_ld" = no; then
6581 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6584 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6585 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6589 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6590 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6592 # hardcode_minus_L: Not really in the search PATH,
6593 # but as the default location of the library.
6594 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6597 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6598 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6599 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6600 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6602 # hardcode_minus_L: Not really in the search PATH,
6603 # but as the default location of the library.
6604 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6610 irix5* | irix6* | nonstopux*)
6611 if test "$GCC" = yes; then
6612 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6614 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6617 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6618 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6619 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6624 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6626 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6628 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6629 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6630 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6634 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6635 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6636 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6637 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6638 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6642 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6643 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6645 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6646 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6647 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6648 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6651 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6652 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6656 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6657 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6664 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6665 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6666 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6667 _LT_AC_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'
6668 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6672 if test "$GCC" = yes; then
6673 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6674 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6676 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6677 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6679 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6680 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6683 osf4* | osf5*) # as osf3* with the addition of -msym flag
6684 if test "$GCC" = yes; then
6685 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6686 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6687 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6689 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6690 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6691 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6692 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6694 # Both c and cxx compiler support -rpath directly
6695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6697 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6701 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6702 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6703 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6704 runpath_var=LD_RUN_PATH
6705 hardcode_runpath_var=yes
6709 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6710 if test "$GCC" = yes; then
6712 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6713 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6714 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6717 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6718 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6722 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6724 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6726 # The compiler driver will combine linker options so we
6727 # cannot just pass the convience library names through
6728 # without $wl, iff we do not link with $LD.
6729 # Luckily, gcc supports the same syntax we need for Sun Studio.
6730 # Supported since Solaris 2.6 (maybe 2.5.1?)
6733 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6735 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6738 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6742 if test "x$host_vendor" = xsequent; then
6743 # Use $CC to link under sequent, because it throws in some extra .o
6744 # files that make .init and .fini sections work.
6745 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6747 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6749 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6750 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6751 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6752 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6756 case $host_vendor in
6758 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6759 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6762 ## LD is ld it makes a PLAMLIB
6763 ## CC just makes a GrossModule.
6764 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6765 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6766 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6769 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6770 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6773 runpath_var='LD_RUN_PATH'
6774 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6778 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6779 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6780 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6784 if test -d /usr/nec; then
6785 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6786 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6787 runpath_var=LD_RUN_PATH
6788 hardcode_runpath_var=yes
6789 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6794 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6795 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6796 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6797 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6798 hardcode_runpath_var=yes
6799 runpath_var=LD_RUN_PATH
6802 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6803 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6804 if test "$GCC" = yes; then
6805 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6807 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6809 runpath_var='LD_RUN_PATH'
6810 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6814 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6815 # $CC -shared without GNU ld will not create a library from C++
6816 # object files and a static libstdc++, better avoid it by now
6817 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6818 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6821 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6822 runpath_var='LD_RUN_PATH'
6826 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6827 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6828 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6832 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6837 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6838 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6841 if test "$GCC" = yes; then
6842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6846 # Do we need to explicitly link libc?
6848 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6850 # Assume -lc should be added
6851 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6853 if test "$enable_shared" = yes && test "$GCC" = yes; then
6854 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6856 # FIXME: we may have to deal with multi-command sequences.
6859 # Test whether the compiler implicitly links with -lc since on some
6860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6861 # to ld, don't add -lc before -lgcc.
6862 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6866 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6869 libobjs=conftest.$ac_objext
6871 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6877 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6878 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6879 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6881 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6883 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6885 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6887 cat conftest.err 1>&5
6890 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6896 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6899 # _LT_AC_FILE_LTDLL_C
6900 # -------------------
6901 # Be careful that the start marker always follows a newline.
6902 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6903 # /* ltdll.c starts here */
6904 # #define WIN32_LEAN_AND_MEAN
6905 # #include <windows.h>
6906 # #undef WIN32_LEAN_AND_MEAN
6907 # #include <stdio.h>
6909 # #ifndef __CYGWIN__
6910 # # ifdef __CYGWIN32__
6911 # # define __CYGWIN__ __CYGWIN32__
6915 # #ifdef __cplusplus
6918 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6919 # #ifdef __cplusplus
6924 # #include <cygwin/cygwin_dll.h>
6925 # DECLARE_CYGWIN_DLL( DllMain );
6927 # HINSTANCE __hDllInstance_base;
6930 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6932 # __hDllInstance_base = hInst;
6935 # /* ltdll.c ends here */
6936 ])# _LT_AC_FILE_LTDLL_C
6939 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6940 # ---------------------------------
6941 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6945 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6946 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6947 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6948 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6949 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6950 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6951 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6953 # This is just to silence aclocal about the macro not being used
6954 ifelse([AC_DISABLE_FAST_INSTALL])
6956 AC_DEFUN([LT_AC_PROG_GCJ],
6957 [AC_CHECK_TOOL(GCJ, gcj, no)
6958 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6962 AC_DEFUN([LT_AC_PROG_RC],
6963 [AC_CHECK_TOOL(RC, windres, no)
6966 # NOTE: This macro has been submitted for inclusion into #
6967 # GNU Autoconf as AC_PROG_SED. When it is available in #
6968 # a released version of Autoconf we should remove this #
6969 # macro and use it instead. #
6972 # Check for a fully-functional sed program, that truncates
6973 # as few characters as possible. Prefer GNU sed if found.
6974 AC_DEFUN([LT_AC_PROG_SED],
6975 [AC_MSG_CHECKING([for a sed that does not truncate output])
6976 AC_CACHE_VAL(lt_cv_path_SED,
6977 [# Loop through the user's path and test for sed and gsed.
6978 # Then use that list of sed's as ones to test for truncation.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for lt_ac_prog in sed gsed; do
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6987 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6994 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6995 # along with /bin/sed that truncates output.
6996 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6997 test ! -f $lt_ac_sed && continue
6998 cat /dev/null > conftest.in
7000 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7001 # Check for GNU sed and select it if it is found.
7002 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7003 lt_cv_path_SED=$lt_ac_sed
7007 cat conftest.in conftest.in >conftest.tmp
7008 mv conftest.tmp conftest.in
7009 cp conftest.in conftest.nl
7011 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7012 cmp -s conftest.out conftest.nl || break
7013 # 10000 chars as input seems more than enough
7014 test $lt_ac_count -gt 10 && break
7015 lt_ac_count=`expr $lt_ac_count + 1`
7016 if test $lt_ac_count -gt $lt_ac_max; then
7017 lt_ac_max=$lt_ac_count
7018 lt_cv_path_SED=$lt_ac_sed
7024 AC_MSG_RESULT([$SED])