• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂c9c66c09104dcba02e1337211c6bdd3b4447e75c (tree)
時間2019-09-24 22:05:32
作者Nick Alcock <nick.alcock@orac...>
CommiterNick Alcock

Log Message

libctf: installable libctf as a shared library

This lets other programs read and write CTF-format data.

Two versioned shared libraries are created: libctf.so and
libctf-nobfd.so. They contain identical content except that
libctf-nobfd.so contains no references to libbfd and does not implement
ctf_open, ctf_fdopen, ctf_bfdopen or ctf_bfdopen_ctfsect, so it can be
used by programs that cannot use BFD, like readelf.

The soname major version is presently .0 until the linker API
stabilizes, when it will flip to .1 and hopefully never change again.

New in v3.
v4: libtoolize and turn into a pair of shared libraries. Drop

--enable-install-ctf: now controlled by --enable-shared and
--enable-install-libbfd, like everything else.

* Makefile.def (host_modules): libctf is no longer no_install.
* Makefile.in: Regenerated.
libctf/
* configure.ac (AC_DISABLE_SHARED): New, like opcodes/.
(LT_INIT): Likewise.
(AM_INSTALL_LIBBFD): Likewise.
(dlopen): Note why this is necessary in a comment.
(SHARED_LIBADD): Initialize for possibly-PIC libiberty: derived from
opcodes/.
(SHARED_LDFLAGS): Likewise.
(BFD_LIBADD): Likewise, for libbfd.
(BFD_DEPENDENCIES): Likewise.
(VERSION_FLAGS): Initialize, using a version script if ld supports
one, or libtool -export-symbols-regex otherwise.
* Makefile.am (INCDIR): New.
(AM_CPPFLAGS): Use $(srcdir), not $(top_srcdir).
(noinst_LIBRARIES): Replace with...
[INSTALL_LIBBFD] (lib_LTLIBRARIES): This, or...
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): ... this, mentioning new
libctf-nobfd.la as well.
[INSTALL_LIBCTF] (include_HEADERS): Add the CTF headers.
[!INSTALL_LIBCTF] (include_HEADERS): New, empty.
(libctf_a_SOURCES): Rename to...
(libctf_nobfd_la_SOURCES): ... this, all of libctf other than
ctf-open-bfd.c.
(libctf_la_SOURCES): Now derived from libctf_nobfd_la_SOURCES,
with ctf-open-bfd.c added.
(libctf_nobfd_la_LIBADD): New, using @SHARED_LIBADD@.
(libctf_la_LIBADD): New, using @BFD_LIBADD@ as well.
(libctf_la_DEPENDENCIES): New, using @BFD_DEPENDENCIES@.
* Makefile.am [INSTALL_LIBCTF]: Use it.
* aclocal.m4: Add ../bfd/acinclude.m4, ../config/acx.m4, and the
libtool macros.
* libctf.ver: New, everything is version LIBCTF_1.0 currently (even
the unstable components).
* Makefile.in: Regenerated.
* config.h.in: Likewise.
* configure: Likewise.
binutils/
* Makefile.am (LIBCTF): Mention the .la file.
(LIBCTF_NOBFD): New.
(readelf_DEPENDENCIES): Use it.
(readelf_LDADD): Likewise.
* Makefile.in: Regenerated.
ld/
* configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
* Makefile.am (TESTCTFLIB): Use it.
(LIBCTF): Use the .la file.
(check-DEJAGNU): Use it.
* Makefile.in: Regenerated.
* configure: Likewise.
include/
* ctf-api.h: Note the instability of the ctf_link interfaces.

Change Summary

差異

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1+2019-07-30 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * Makefile.def (host_modules): libctf is no longer no_install.
4+ * Makefile.in: Regenerated.
5+
16 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
27
38 * Makefile.def (dependencies): all-ld depends on all-libctf.
--- a/Makefile.def
+++ b/Makefile.def
@@ -129,7 +129,7 @@ host_modules= { module= lto-plugin; bootstrap=true;
129129 extra_make_flags='@extra_linker_plugin_flags@'; };
130130 host_modules= { module= libcc1; extra_configure_flags=--enable-shared; };
131131 host_modules= { module= gotools; };
132-host_modules= { module= libctf; no_install=true; no_check=true;
132+host_modules= { module= libctf; no_check=true;
133133 bootstrap=true; };
134134
135135 target_modules = { module= libstdc++-v3;
--- a/Makefile.in
+++ b/Makefile.in
@@ -33849,7 +33849,13 @@ maybe-install-libctf:
3384933849 @if libctf
3385033850 maybe-install-libctf: install-libctf
3385133851
33852-install-libctf:
33852+install-libctf: installdirs
33853+ @: $(MAKE); $(unstage)
33854+ @r=`${PWD_COMMAND}`; export r; \
33855+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33856+ $(HOST_EXPORTS) \
33857+ (cd $(HOST_SUBDIR)/libctf && \
33858+ $(MAKE) $(FLAGS_TO_PASS) install)
3385333859
3385433860 @endif libctf
3385533861
@@ -33858,7 +33864,13 @@ maybe-install-strip-libctf:
3385833864 @if libctf
3385933865 maybe-install-strip-libctf: install-strip-libctf
3386033866
33861-install-strip-libctf:
33867+install-strip-libctf: installdirs
33868+ @: $(MAKE); $(unstage)
33869+ @r=`${PWD_COMMAND}`; export r; \
33870+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33871+ $(HOST_EXPORTS) \
33872+ (cd $(HOST_SUBDIR)/libctf && \
33873+ $(MAKE) $(FLAGS_TO_PASS) install-strip)
3386233874
3386333875 @endif libctf
3386433876
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,11 @@
1+2019-09-23 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * Makefile.am (LIBCTF): Mention the .la file.
4+ (LIBCTF_NOBFD): New.
5+ (readelf_DEPENDENCIES): Use it.
6+ (readelf_LDADD): Likewise.
7+ * Makefile.in: Regenerated.
8+
19 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
210
311 * readelf.c (dump_ctf_symtab_name): Give default value.
--- a/binutils/Makefile.am
+++ b/binutils/Makefile.am
@@ -162,7 +162,8 @@ BFDLIB = ../bfd/libbfd.la
162162
163163 OPCODES = ../opcodes/libopcodes.la
164164
165-LIBCTF = ../libctf/libctf.a
165+LIBCTF = ../libctf/libctf.la
166+LIBCTF_NOBFD = ../libctf/libctf-nobfd.la
166167
167168 LIBIBERTY = ../libiberty/libiberty.a
168169
@@ -229,7 +230,7 @@ dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
229230 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
230231 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
231232 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
232-readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF)
233+readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF_NOBFD)
233234 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
234235 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
235236 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
@@ -244,7 +245,7 @@ objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
244245 strings_SOURCES = strings.c $(BULIBS)
245246
246247 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
247-readelf_LDADD = $(LIBINTL) $(LIBCTF) $(LIBIBERTY) $(ZLIB)
248+readelf_LDADD = $(LIBINTL) $(LIBCTF_NOBFD) $(LIBIBERTY) $(ZLIB)
248249
249250 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
250251 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -655,7 +655,8 @@ BULIBS = bucomm.c version.c filemode.c
655655 ELFLIBS = elfcomm.c
656656 BFDLIB = ../bfd/libbfd.la
657657 OPCODES = ../opcodes/libopcodes.la
658-LIBCTF = ../libctf/libctf.a
658+LIBCTF = ../libctf/libctf.la
659+LIBCTF_NOBFD = ../libctf/libctf-nobfd.la
659660 LIBIBERTY = ../libiberty/libiberty.a
660661 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
661662 EXPECT = expect
@@ -695,7 +696,7 @@ dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
695696 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
696697 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
697698 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
698-readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF)
699+readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF_NOBFD)
699700 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
700701 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
701702 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
@@ -705,7 +706,7 @@ size_SOURCES = size.c $(BULIBS)
705706 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
706707 strings_SOURCES = strings.c $(BULIBS)
707708 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
708-readelf_LDADD = $(LIBINTL) $(LIBCTF) $(LIBIBERTY) $(ZLIB)
709+readelf_LDADD = $(LIBINTL) $(LIBCTF_NOBFD) $(LIBIBERTY) $(ZLIB)
709710 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
710711 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
711712 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
1+2019-09-23 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * ctf-api.h: Note the instability of the ctf_link interfaces.
4+
15 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
26
37 * bfdlink.h (elf_strtab_hash): New forward.
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -408,6 +408,8 @@ extern int ctf_gzwrite (ctf_file_t *fp, gzFile fd);
408408 extern int ctf_compress_write (ctf_file_t * fp, int fd);
409409 extern unsigned char *ctf_write_mem (ctf_file_t *, size_t *, size_t threshold);
410410
411+/* The ctf_link interfaces are not stable yet. No guarantees! */
412+
411413 extern int ctf_link_add_ctf (ctf_file_t *, ctf_archive_t *, const char *);
412414 extern int ctf_link (ctf_file_t *, int share_mode);
413415 typedef const char *ctf_link_strtab_string_f (uint32_t *offset, void *arg);
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,14 @@
11 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
22
3+ * configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
4+ * Makefile.am (TESTCTFLIB): Use it.
5+ (LIBCTF): Use the .la file.
6+ (check-DEJAGNU): Use it.
7+ * Makefile.in: Regenerated.
8+ * configure: Likewise.
9+
10+2019-09-23 Nick Alcock <nick.alcock@oracle.com>
11+
312 * ldlang.h (includes): Add ctf-api.h.
413 (struct lang_input_statement_struct): Add the_ctf.
514 (struct elf_sym_strtab): Add forward.
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -157,7 +157,7 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @zlibinc@ \
157157
158158 BFDLIB = ../bfd/libbfd.la
159159 LIBIBERTY = ../libiberty/libiberty.a
160-LIBCTF = ../libctf/libctf.a
160+LIBCTF = ../libctf/libctf.la
161161
162162 # These all start with e so 'make clean' can find them.
163163 ALL_EMULATION_SOURCES = \
@@ -972,8 +972,9 @@ ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBCTF) $(LI
972972 # Dependency tracking for the generated emulation files.
973973 EXTRA_ld_new_SOURCES += $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES)
974974
975-# This is the real libbfd.a created by libtool.
975+# This is the real libbfd.a and libctf.a created by libtool.
976976 TESTBFDLIB = @TESTBFDLIB@
977+TESTCTFLIB = @TESTCTFLIB@
977978
978979 check-DEJAGNU: site.exp
979980 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
@@ -986,7 +987,7 @@ check-DEJAGNU: site.exp
986987 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS_FOR_TARGET)" \
987988 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
988989 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
989- OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(LIBCTF) $(ZLIB)" \
990+ OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
990991 LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
991992 DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
992993 $(RUNTESTFLAGS); \
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -460,8 +460,9 @@ STRIP = @STRIP@
460460 TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
461461 TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
462462
463-# This is the real libbfd.a created by libtool.
463+# This is the real libbfd.a and libctf.a created by libtool.
464464 TESTBFDLIB = @TESTBFDLIB@
465+TESTCTFLIB = @TESTCTFLIB@
465466 USE_NLS = @USE_NLS@
466467 VERSION = @VERSION@
467468 WARN_CFLAGS = @WARN_CFLAGS@
@@ -646,7 +647,7 @@ AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @zlibinc@ \
646647
647648 BFDLIB = ../bfd/libbfd.la
648649 LIBIBERTY = ../libiberty/libiberty.a
649-LIBCTF = ../libctf/libctf.a
650+LIBCTF = ../libctf/libctf.la
650651
651652 # These all start with e so 'make clean' can find them.
652653 ALL_EMULATION_SOURCES = \
@@ -2574,7 +2575,7 @@ check-DEJAGNU: site.exp
25742575 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS_FOR_TARGET)" \
25752576 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS_FOR_TARGET)" \
25762577 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
2577- OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(LIBCTF) $(ZLIB)" \
2578+ OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" CTFLIB="$(TESTCTFLIB) $(ZLIB)" \
25782579 LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
25792580 DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
25802581 $(RUNTESTFLAGS); \
--- a/ld/configure
+++ b/ld/configure
@@ -634,6 +634,7 @@ ac_subst_vars='am__EXEEXT_FALSE
634634 am__EXEEXT_TRUE
635635 LTLIBOBJS
636636 LIBOBJS
637+TESTCTFLIB
637638 TESTBFDLIB
638639 EMULATION_LIBPATH
639640 LIB_PATH
@@ -12031,7 +12032,7 @@ else
1203112032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1203212033 lt_status=$lt_dlunknown
1203312034 cat > conftest.$ac_ext <<_LT_EOF
12034-#line 12034 "configure"
12035+#line 12035 "configure"
1203512036 #include "confdefs.h"
1203612037
1203712038 #if HAVE_DLFCN_H
@@ -12137,7 +12138,7 @@ else
1213712138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1213812139 lt_status=$lt_dlunknown
1213912140 cat > conftest.$ac_ext <<_LT_EOF
12140-#line 12140 "configure"
12141+#line 12141 "configure"
1214112142 #include "confdefs.h"
1214212143
1214312144 #if HAVE_DLFCN_H
@@ -17667,11 +17668,14 @@ EMULATION_LIBPATH=$all_libpath
1766717668
1766817669 if test x${enable_static} = xno; then
1766917670 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17671+ TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
1767017672 else
1767117673 TESTBFDLIB="../bfd/.libs/libbfd.a"
17674+ TESTCTFLIB="../libctf/.libs/libctf.a"
1767217675 fi
1767317676
1767417677
17678+
1767517679 target_vendor=${target_vendor=$host_vendor}
1767617680 case "$target_vendor" in
1767717681 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -491,10 +491,13 @@ AC_SUBST(EMULATION_LIBPATH)
491491
492492 if test x${enable_static} = xno; then
493493 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
494+ TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
494495 else
495496 TESTBFDLIB="../bfd/.libs/libbfd.a"
497+ TESTCTFLIB="../libctf/.libs/libctf.a"
496498 fi
497499 AC_SUBST(TESTBFDLIB)
500+AC_SUBST(TESTCTFLIB)
498501
499502 target_vendor=${target_vendor=$host_vendor}
500503 case "$target_vendor" in
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,49 @@
1+2019-09-23 Nick Alcock <nick.alcock@oracle.com>
2+
3+ * configure.ac (AC_DISABLE_SHARED): New, like opcodes/.
4+ (LT_INIT): Likewise.
5+ (AM_INSTALL_LIBBFD): Likewise.
6+ (dlopen): Note why this is necessary in a comment.
7+ (SHARED_LIBADD): Initialize for possibly-PIC libiberty: derived from
8+ opcodes/.
9+ (SHARED_LDFLAGS): Likewise.
10+ (BFD_LIBADD): Likewise, for libbfd.
11+ (BFD_DEPENDENCIES): Likewise.
12+ (VERSION_FLAGS): Initialize, using a version script if ld supports
13+ one, or libtool -export-symbols-regex otherwise.
14+ * Makefile.am (INCDIR): New.
15+ (AM_CPPFLAGS): Use $(srcdir), not $(top_srcdir).
16+ (noinst_LIBRARIES): Replace with...
17+ [INSTALL_LIBBFD] (lib_LTLIBRARIES): This, or...
18+ [!INSTALL_LIBBFD] (noinst_LTLIBRARIES): ... this, mentioning new
19+ libctf-nobfd.la as well.
20+ [INSTALL_LIBCTF] (include_HEADERS): Add the CTF headers.
21+ [!INSTALL_LIBCTF] (include_HEADERS): New, empty.
22+ (libctf_a_SOURCES): Rename to...
23+ (libctf_nobfd_la_SOURCES): ... this, all of libctf other than
24+ ctf-open-bfd.c.
25+ (libctf_la_SOURCES): Now derived from libctf_nobfd_la_SOURCES,
26+ with ctf-open-bfd.c added.
27+ (libctf_nobfd_la_LIBADD): New, using @SHARED_LIBADD@.
28+ (libctf_la_LIBADD): New, using @BFD_LIBADD@ as well.
29+ (libctf_la_DEPENDENCIES): New, using @BFD_DEPENDENCIES@.
30+ * Makefile.am [INSTALL_LIBCTF]: Use it.
31+ * aclocal.m4: Add ../bfd/acinclude.m4, ../config/acx.m4, and the
32+ libtool macros.
33+ * libctf.ver: New, everything is version LIBCTF_1.0 currently (even
34+ the unstable components).
35+ * Makefile.in: Regenerated.
36+ * config.h.in: Likewise.
37+ * configure: Likewise.
38+
39+2019-07-30 Nick Alcock <nick.alcock@oracle.com>
40+
41+ * configure.ac (INSTALL_LIBCTF): New, controlled by
42+ --enable-install-libctf.
43+ [INSTALL_LIBCTF] (lib_LIBRARIES): Add libctf.a.
44+ * Makefile.in: Regenerated.
45+ * configure: Regenerated.
46+
147 2019-07-30 Nick Alcock <nick.alcock@oracle.com>
248
349 * ctf-archive.c (ctf_arc_close): Call ctfi_bfd_close if set.
--- a/libctf/Makefile.am
+++ b/libctf/Makefile.am
@@ -27,14 +27,28 @@ AUTOMAKE_OPTIONS = foreign no-texinfo.tex
2727 ZLIB = @zlibdir@ -lz
2828 ZLIBINC = @zlibinc@
2929
30-AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir) -I$(top_srcdir)/../include -I$(top_srcdir)/../bfd -I../bfd
30+INCDIR = $(srcdir)/../include
31+AM_CPPFLAGS = -D_GNU_SOURCE -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -I../bfd
3132 AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ $(ZLIBINC)
3233
33-noinst_LIBRARIES = libctf.a
34+if INSTALL_LIBBFD
35+lib_LTLIBRARIES = libctf.la libctf-nobfd.la
36+include_HEADERS = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
37+else
38+include_HEADERS =
39+noinst_LTLIBRARIES = libctf.la libctf-nobfd.la
40+endif
3441
35-libctf_a_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
36- ctf-hash.c ctf-labels.c ctf-link.c ctf-lookup.c ctf-open.c \
37- ctf-open-bfd.c ctf-string.c ctf-subr.c ctf-types.c ctf-util.c
42+libctf_nobfd_la_LIBADD = @SHARED_LIBADD@ $(ZLIB)
43+libctf_nobfd_la_LDFLAGS = -version-info 0:0:0 @SHARED_LDFLAGS@ @VERSION_FLAGS@
44+libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
45+ ctf-hash.c ctf-labels.c ctf-link.c ctf-lookup.c ctf-open.c \
46+ ctf-string.c ctf-subr.c ctf-types.c ctf-util.c
3847 if NEED_CTF_QSORT_R
39-libctf_a_SOURCES += ctf-qsort_r.c
48+libctf_nobfd_la_SOURCES += ctf-qsort_r.c
4049 endif
50+
51+libctf_la_LIBADD = @BFD_LIBADD@ $(libctf_nobfd_la_LIBADD)
52+libctf_la_DEPENDENCIES = @BFD_DEPENDENCIES@
53+libctf_la_LDFLAGS = $(libctf_nobfd_la_LDFLAGS)
54+libctf_la_SOURCES = $(libctf_nobfd_la_SOURCES) ctf-open-bfd.c
--- a/libctf/Makefile.in
+++ b/libctf/Makefile.in
@@ -32,6 +32,7 @@
3232 # <http://www.gnu.org/licenses/>.
3333 #
3434
35+
3536 VPATH = @srcdir@
3637 am__is_gnu_make = { \
3738 if test -z '$(MAKELEVEL)'; then \
@@ -104,44 +105,99 @@ POST_INSTALL = :
104105 NORMAL_UNINSTALL = :
105106 PRE_UNINSTALL = :
106107 POST_UNINSTALL = :
108+build_triplet = @build@
109+host_triplet = @host@
107110 @NEED_CTF_QSORT_R_TRUE@am__append_1 = ctf-qsort_r.c
108111 subdir = .
109112 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
110-am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
113+am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
114+ $(top_srcdir)/../config/depstand.m4 \
111115 $(top_srcdir)/../config/lead-dot.m4 \
112116 $(top_srcdir)/../config/override.m4 \
113117 $(top_srcdir)/../config/warnings.m4 \
114- $(top_srcdir)/../config/zlib.m4 $(top_srcdir)/configure.ac
118+ $(top_srcdir)/../config/zlib.m4 \
119+ $(top_srcdir)/../bfd/acinclude.m4 $(top_srcdir)/../libtool.m4 \
120+ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \
121+ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \
122+ $(top_srcdir)/configure.ac
115123 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
116124 $(ACLOCAL_M4)
117125 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
118- $(am__configure_deps) $(am__DIST_COMMON)
126+ $(am__configure_deps) $(am__include_HEADERS_DIST) \
127+ $(am__DIST_COMMON)
119128 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
120129 configure.lineno config.status.lineno
121130 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
122131 CONFIG_HEADER = config.h
123132 CONFIG_CLEAN_FILES =
124133 CONFIG_CLEAN_VPATH_FILES =
125-LIBRARIES = $(noinst_LIBRARIES)
126-ARFLAGS = cru
127-AM_V_AR = $(am__v_AR_@AM_V@)
128-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
129-am__v_AR_0 = @echo " AR " $@;
130-am__v_AR_1 =
131-libctf_a_AR = $(AR) $(ARFLAGS)
132-libctf_a_LIBADD =
133-am__libctf_a_SOURCES_DIST = ctf-archive.c ctf-dump.c ctf-create.c \
134- ctf-decl.c ctf-error.c ctf-hash.c ctf-labels.c ctf-link.c \
135- ctf-lookup.c ctf-open.c ctf-open-bfd.c ctf-string.c ctf-subr.c \
134+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
135+am__vpath_adj = case $$p in \
136+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
137+ *) f=$$p;; \
138+ esac;
139+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
140+am__install_max = 40
141+am__nobase_strip_setup = \
142+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
143+am__nobase_strip = \
144+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
145+am__nobase_list = $(am__nobase_strip_setup); \
146+ for p in $$list; do echo "$$p $$p"; done | \
147+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
148+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
149+ if (++n[$$2] == $(am__install_max)) \
150+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
151+ END { for (dir in files) print dir, files[dir] }'
152+am__base_list = \
153+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
154+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
155+am__uninstall_files_from_dir = { \
156+ test -z "$$files" \
157+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
158+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
159+ $(am__cd) "$$dir" && rm -f $$files; }; \
160+ }
161+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
162+LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
163+am__DEPENDENCIES_1 =
164+libctf_nobfd_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
165+am__libctf_nobfd_la_SOURCES_DIST = ctf-archive.c ctf-dump.c \
166+ ctf-create.c ctf-decl.c ctf-error.c ctf-hash.c ctf-labels.c \
167+ ctf-link.c ctf-lookup.c ctf-open.c ctf-string.c ctf-subr.c \
136168 ctf-types.c ctf-util.c ctf-qsort_r.c
137-@NEED_CTF_QSORT_R_TRUE@am__objects_1 = ctf-qsort_r.$(OBJEXT)
138-am_libctf_a_OBJECTS = ctf-archive.$(OBJEXT) ctf-dump.$(OBJEXT) \
139- ctf-create.$(OBJEXT) ctf-decl.$(OBJEXT) ctf-error.$(OBJEXT) \
140- ctf-hash.$(OBJEXT) ctf-labels.$(OBJEXT) ctf-link.$(OBJEXT) \
141- ctf-lookup.$(OBJEXT) ctf-open.$(OBJEXT) ctf-open-bfd.$(OBJEXT) \
142- ctf-string.$(OBJEXT) ctf-subr.$(OBJEXT) ctf-types.$(OBJEXT) \
143- ctf-util.$(OBJEXT) $(am__objects_1)
144-libctf_a_OBJECTS = $(am_libctf_a_OBJECTS)
169+@NEED_CTF_QSORT_R_TRUE@am__objects_1 = ctf-qsort_r.lo
170+am_libctf_nobfd_la_OBJECTS = ctf-archive.lo ctf-dump.lo ctf-create.lo \
171+ ctf-decl.lo ctf-error.lo ctf-hash.lo ctf-labels.lo ctf-link.lo \
172+ ctf-lookup.lo ctf-open.lo ctf-string.lo ctf-subr.lo \
173+ ctf-types.lo ctf-util.lo $(am__objects_1)
174+libctf_nobfd_la_OBJECTS = $(am_libctf_nobfd_la_OBJECTS)
175+AM_V_lt = $(am__v_lt_@AM_V@)
176+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
177+am__v_lt_0 = --silent
178+am__v_lt_1 =
179+libctf_nobfd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
180+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
181+ $(AM_CFLAGS) $(CFLAGS) $(libctf_nobfd_la_LDFLAGS) $(LDFLAGS) \
182+ -o $@
183+@INSTALL_LIBBFD_FALSE@am_libctf_nobfd_la_rpath =
184+@INSTALL_LIBBFD_TRUE@am_libctf_nobfd_la_rpath = -rpath $(libdir)
185+am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
186+am__libctf_la_SOURCES_DIST = ctf-archive.c ctf-dump.c ctf-create.c \
187+ ctf-decl.c ctf-error.c ctf-hash.c ctf-labels.c ctf-link.c \
188+ ctf-lookup.c ctf-open.c ctf-string.c ctf-subr.c ctf-types.c \
189+ ctf-util.c ctf-qsort_r.c ctf-open-bfd.c
190+am__objects_2 = ctf-archive.lo ctf-dump.lo ctf-create.lo ctf-decl.lo \
191+ ctf-error.lo ctf-hash.lo ctf-labels.lo ctf-link.lo \
192+ ctf-lookup.lo ctf-open.lo ctf-string.lo ctf-subr.lo \
193+ ctf-types.lo ctf-util.lo $(am__objects_1)
194+am_libctf_la_OBJECTS = $(am__objects_2) ctf-open-bfd.lo
195+libctf_la_OBJECTS = $(am_libctf_la_OBJECTS)
196+libctf_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
197+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
198+ $(libctf_la_LDFLAGS) $(LDFLAGS) -o $@
199+@INSTALL_LIBBFD_FALSE@am_libctf_la_rpath =
200+@INSTALL_LIBBFD_TRUE@am_libctf_la_rpath = -rpath $(libdir)
145201 AM_V_P = $(am__v_P_@AM_V@)
146202 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
147203 am__v_P_0 = false
@@ -160,23 +216,32 @@ am__depfiles_maybe = depfiles
160216 am__mv = mv -f
161217 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
162218 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
219+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
220+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
221+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
222+ $(AM_CFLAGS) $(CFLAGS)
163223 AM_V_CC = $(am__v_CC_@AM_V@)
164224 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
165225 am__v_CC_0 = @echo " CC " $@;
166226 am__v_CC_1 =
167227 CCLD = $(CC)
168-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
228+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
229+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
230+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
169231 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
170232 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
171233 am__v_CCLD_0 = @echo " CCLD " $@;
172234 am__v_CCLD_1 =
173-SOURCES = $(libctf_a_SOURCES)
174-DIST_SOURCES = $(am__libctf_a_SOURCES_DIST)
235+SOURCES = $(libctf_nobfd_la_SOURCES) $(libctf_la_SOURCES)
236+DIST_SOURCES = $(am__libctf_nobfd_la_SOURCES_DIST) \
237+ $(am__libctf_la_SOURCES_DIST)
175238 am__can_run_installinfo = \
176239 case $$AM_UPDATE_INFO_DIR in \
177240 n|no|NO) false;; \
178241 *) (install-info --version) >/dev/null 2>&1;; \
179242 esac
243+am__include_HEADERS_DIST = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
244+HEADERS = $(include_HEADERS)
180245 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
181246 $(LISP)config.h.in
182247 # Read a list of newline-separated strings from the standard input,
@@ -201,9 +266,10 @@ CSCOPE = cscope
201266 AM_RECURSIVE_TARGETS = cscope
202267 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
203268 $(top_srcdir)/../ar-lib $(top_srcdir)/../compile \
269+ $(top_srcdir)/../config.guess $(top_srcdir)/../config.sub \
204270 $(top_srcdir)/../depcomp $(top_srcdir)/../install-sh \
205- $(top_srcdir)/../missing $(top_srcdir)/../mkinstalldirs \
206- ChangeLog
271+ $(top_srcdir)/../ltmain.sh $(top_srcdir)/../missing \
272+ $(top_srcdir)/../mkinstalldirs ChangeLog
207273 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
208274 distdir = $(PACKAGE)-$(VERSION)
209275 top_distdir = $(distdir)
@@ -229,6 +295,8 @@ AUTOCONF = @AUTOCONF@
229295 AUTOHEADER = @AUTOHEADER@
230296 AUTOMAKE = @AUTOMAKE@
231297 AWK = @AWK@
298+BFD_DEPENDENCIES = @BFD_DEPENDENCIES@
299+BFD_LIBADD = @BFD_LIBADD@
232300 CC = @CC@
233301 CCDEPMODE = @CCDEPMODE@
234302 CFLAGS = @CFLAGS@
@@ -237,25 +305,37 @@ CPPFLAGS = @CPPFLAGS@
237305 CYGPATH_W = @CYGPATH_W@
238306 DEFS = @DEFS@
239307 DEPDIR = @DEPDIR@
308+DSYMUTIL = @DSYMUTIL@
309+DUMPBIN = @DUMPBIN@
240310 ECHO_C = @ECHO_C@
241311 ECHO_N = @ECHO_N@
242312 ECHO_T = @ECHO_T@
243313 EGREP = @EGREP@
244314 EXEEXT = @EXEEXT@
315+FGREP = @FGREP@
245316 GREP = @GREP@
246317 INSTALL = @INSTALL@
247318 INSTALL_DATA = @INSTALL_DATA@
248319 INSTALL_PROGRAM = @INSTALL_PROGRAM@
249320 INSTALL_SCRIPT = @INSTALL_SCRIPT@
250321 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
322+LD = @LD@
251323 LDFLAGS = @LDFLAGS@
252324 LIBOBJS = @LIBOBJS@
253325 LIBS = @LIBS@
326+LIBTOOL = @LIBTOOL@
327+LIPO = @LIPO@
328+LN_S = @LN_S@
254329 LTLIBOBJS = @LTLIBOBJS@
255330 MAINT = @MAINT@
256331 MAKEINFO = @MAKEINFO@
257332 MKDIR_P = @MKDIR_P@
333+NM = @NM@
334+NMEDIT = @NMEDIT@
335+OBJDUMP = @OBJDUMP@
258336 OBJEXT = @OBJEXT@
337+OTOOL = @OTOOL@
338+OTOOL64 = @OTOOL64@
259339 PACKAGE = @PACKAGE@
260340 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
261341 PACKAGE_NAME = @PACKAGE_NAME@
@@ -265,10 +345,14 @@ PACKAGE_URL = @PACKAGE_URL@
265345 PACKAGE_VERSION = @PACKAGE_VERSION@
266346 PATH_SEPARATOR = @PATH_SEPARATOR@
267347 RANLIB = @RANLIB@
348+SED = @SED@
268349 SET_MAKE = @SET_MAKE@
350+SHARED_LDFLAGS = @SHARED_LDFLAGS@
351+SHARED_LIBADD = @SHARED_LIBADD@
269352 SHELL = @SHELL@
270353 STRIP = @STRIP@
271354 VERSION = @VERSION@
355+VERSION_FLAGS = @VERSION_FLAGS@
272356 WARN_PEDANTIC = @WARN_PEDANTIC@
273357 WERROR = @WERROR@
274358 abs_builddir = @abs_builddir@
@@ -277,6 +361,7 @@ abs_top_builddir = @abs_top_builddir@
277361 abs_top_srcdir = @abs_top_srcdir@
278362 ac_ct_AR = @ac_ct_AR@
279363 ac_ct_CC = @ac_ct_CC@
364+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
280365 ac_libctf_warn_cflags = @ac_libctf_warn_cflags@
281366 am__include = @am__include@
282367 am__leading_dot = @am__leading_dot@
@@ -284,7 +369,11 @@ am__quote = @am__quote@
284369 am__tar = @am__tar@
285370 am__untar = @am__untar@
286371 bindir = @bindir@
372+build = @build@
287373 build_alias = @build_alias@
374+build_cpu = @build_cpu@
375+build_os = @build_os@
376+build_vendor = @build_vendor@
288377 builddir = @builddir@
289378 c_warn = @c_warn@
290379 datadir = @datadir@
@@ -292,7 +381,12 @@ datarootdir = @datarootdir@
292381 docdir = @docdir@
293382 dvidir = @dvidir@
294383 exec_prefix = @exec_prefix@
384+host = @host@
295385 host_alias = @host_alias@
386+host_cpu = @host_cpu@
387+host_noncanonical = @host_noncanonical@
388+host_os = @host_os@
389+host_vendor = @host_vendor@
296390 htmldir = @htmldir@
297391 includedir = @includedir@
298392 infodir = @infodir@
@@ -313,6 +407,7 @@ sharedstatedir = @sharedstatedir@
313407 srcdir = @srcdir@
314408 sysconfdir = @sysconfdir@
315409 target_alias = @target_alias@
410+target_noncanonical = @target_noncanonical@
316411 top_build_prefix = @top_build_prefix@
317412 top_builddir = @top_builddir@
318413 top_srcdir = @top_srcdir@
@@ -327,18 +422,28 @@ AUTOMAKE_OPTIONS = foreign no-texinfo.tex
327422 # case both are empty.
328423 ZLIB = @zlibdir@ -lz
329424 ZLIBINC = @zlibinc@
330-AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir) -I$(top_srcdir)/../include -I$(top_srcdir)/../bfd -I../bfd
425+INCDIR = $(srcdir)/../include
426+AM_CPPFLAGS = -D_GNU_SOURCE -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -I../bfd
331427 AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ $(ZLIBINC)
332-noinst_LIBRARIES = libctf.a
333-libctf_a_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c \
334- ctf-error.c ctf-hash.c ctf-labels.c ctf-link.c ctf-lookup.c \
335- ctf-open.c ctf-open-bfd.c ctf-string.c ctf-subr.c ctf-types.c \
428+@INSTALL_LIBBFD_TRUE@lib_LTLIBRARIES = libctf.la libctf-nobfd.la
429+@INSTALL_LIBBFD_FALSE@include_HEADERS =
430+@INSTALL_LIBBFD_TRUE@include_HEADERS = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
431+@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libctf.la libctf-nobfd.la
432+libctf_nobfd_la_LIBADD = @SHARED_LIBADD@ $(ZLIB)
433+libctf_nobfd_la_LDFLAGS = -version-info 0:0:0 @SHARED_LDFLAGS@ @VERSION_FLAGS@
434+libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c \
435+ ctf-decl.c ctf-error.c ctf-hash.c ctf-labels.c ctf-link.c \
436+ ctf-lookup.c ctf-open.c ctf-string.c ctf-subr.c ctf-types.c \
336437 ctf-util.c $(am__append_1)
438+libctf_la_LIBADD = @BFD_LIBADD@ $(libctf_nobfd_la_LIBADD)
439+libctf_la_DEPENDENCIES = @BFD_DEPENDENCIES@
440+libctf_la_LDFLAGS = $(libctf_nobfd_la_LDFLAGS)
441+libctf_la_SOURCES = $(libctf_nobfd_la_SOURCES) ctf-open-bfd.c
337442 all: config.h
338443 $(MAKE) $(AM_MAKEFLAGS) all-am
339444
340445 .SUFFIXES:
341-.SUFFIXES: .c .o .obj
446+.SUFFIXES: .c .lo .o .obj
342447 am--refresh: Makefile
343448 @:
344449 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@@ -388,13 +493,57 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
388493 distclean-hdr:
389494 -rm -f config.h stamp-h1
390495
391-clean-noinstLIBRARIES:
392- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
496+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
497+ @$(NORMAL_INSTALL)
498+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
499+ list2=; for p in $$list; do \
500+ if test -f $$p; then \
501+ list2="$$list2 $$p"; \
502+ else :; fi; \
503+ done; \
504+ test -z "$$list2" || { \
505+ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
506+ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
507+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
508+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
509+ }
510+
511+uninstall-libLTLIBRARIES:
512+ @$(NORMAL_UNINSTALL)
513+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
514+ for p in $$list; do \
515+ $(am__strip_dir) \
516+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
517+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
518+ done
393519
394-libctf.a: $(libctf_a_OBJECTS) $(libctf_a_DEPENDENCIES) $(EXTRA_libctf_a_DEPENDENCIES)
395- $(AM_V_at)-rm -f libctf.a
396- $(AM_V_AR)$(libctf_a_AR) libctf.a $(libctf_a_OBJECTS) $(libctf_a_LIBADD)
397- $(AM_V_at)$(RANLIB) libctf.a
520+clean-libLTLIBRARIES:
521+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
522+ @list='$(lib_LTLIBRARIES)'; \
523+ locs=`for p in $$list; do echo $$p; done | \
524+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
525+ sort -u`; \
526+ test -z "$$locs" || { \
527+ echo rm -f $${locs}; \
528+ rm -f $${locs}; \
529+ }
530+
531+clean-noinstLTLIBRARIES:
532+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
533+ @list='$(noinst_LTLIBRARIES)'; \
534+ locs=`for p in $$list; do echo $$p; done | \
535+ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
536+ sort -u`; \
537+ test -z "$$locs" || { \
538+ echo rm -f $${locs}; \
539+ rm -f $${locs}; \
540+ }
541+
542+libctf-nobfd.la: $(libctf_nobfd_la_OBJECTS) $(libctf_nobfd_la_DEPENDENCIES) $(EXTRA_libctf_nobfd_la_DEPENDENCIES)
543+ $(AM_V_CCLD)$(libctf_nobfd_la_LINK) $(am_libctf_nobfd_la_rpath) $(libctf_nobfd_la_OBJECTS) $(libctf_nobfd_la_LIBADD) $(LIBS)
544+
545+libctf.la: $(libctf_la_OBJECTS) $(libctf_la_DEPENDENCIES) $(EXTRA_libctf_la_DEPENDENCIES)
546+ $(AM_V_CCLD)$(libctf_la_LINK) $(am_libctf_la_rpath) $(libctf_la_OBJECTS) $(libctf_la_LIBADD) $(LIBS)
398547
399548 mostlyclean-compile:
400549 -rm -f *.$(OBJEXT)
@@ -402,22 +551,22 @@ mostlyclean-compile:
402551 distclean-compile:
403552 -rm -f *.tab.c
404553
405-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-archive.Po@am__quote@
406-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-create.Po@am__quote@
407-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-decl.Po@am__quote@
408-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-dump.Po@am__quote@
409-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-error.Po@am__quote@
410-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-hash.Po@am__quote@
411-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-labels.Po@am__quote@
412-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-link.Po@am__quote@
413-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-lookup.Po@am__quote@
414-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-open-bfd.Po@am__quote@
415-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-open.Po@am__quote@
416-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-qsort_r.Po@am__quote@
417-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-string.Po@am__quote@
418-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-subr.Po@am__quote@
419-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-types.Po@am__quote@
420-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-util.Po@am__quote@
554+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-archive.Plo@am__quote@
555+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-create.Plo@am__quote@
556+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-decl.Plo@am__quote@
557+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-dump.Plo@am__quote@
558+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-error.Plo@am__quote@
559+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-hash.Plo@am__quote@
560+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-labels.Plo@am__quote@
561+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-link.Plo@am__quote@
562+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-lookup.Plo@am__quote@
563+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-open-bfd.Plo@am__quote@
564+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-open.Plo@am__quote@
565+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-qsort_r.Plo@am__quote@
566+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-string.Plo@am__quote@
567+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-subr.Plo@am__quote@
568+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-types.Plo@am__quote@
569+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctf-util.Plo@am__quote@
421570
422571 .c.o:
423572 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@@ -433,6 +582,43 @@ distclean-compile:
433582 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
434583 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
435584
585+.c.lo:
586+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
587+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
588+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
589+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
590+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
591+
592+mostlyclean-libtool:
593+ -rm -f *.lo
594+
595+clean-libtool:
596+ -rm -rf .libs _libs
597+
598+distclean-libtool:
599+ -rm -f libtool config.lt
600+install-includeHEADERS: $(include_HEADERS)
601+ @$(NORMAL_INSTALL)
602+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
603+ if test -n "$$list"; then \
604+ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
605+ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
606+ fi; \
607+ for p in $$list; do \
608+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
609+ echo "$$d$$p"; \
610+ done | $(am__base_list) | \
611+ while read files; do \
612+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
613+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
614+ done
615+
616+uninstall-includeHEADERS:
617+ @$(NORMAL_UNINSTALL)
618+ @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
619+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
620+ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
621+
436622 ID: $(am__tagged_files)
437623 $(am__define_uniq_tagged_files); mkid -fID $$unique
438624 tags: tags-am
@@ -657,8 +843,11 @@ distcleancheck: distclean
657843 exit 1; } >&2
658844 check-am: all-am
659845 check: check-am
660-all-am: Makefile $(LIBRARIES) config.h
846+all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
661847 installdirs:
848+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
849+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
850+ done
662851 install: install-am
663852 install-exec: install-exec-am
664853 install-data: install-data-am
@@ -691,14 +880,15 @@ maintainer-clean-generic:
691880 @echo "it deletes files that may require special tools to rebuild."
692881 clean: clean-am
693882
694-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
883+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
884+ clean-noinstLTLIBRARIES mostlyclean-am
695885
696886 distclean: distclean-am
697887 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
698888 -rm -rf ./$(DEPDIR)
699889 -rm -f Makefile
700890 distclean-am: clean-am distclean-compile distclean-generic \
701- distclean-hdr distclean-tags
891+ distclean-hdr distclean-libtool distclean-tags
702892
703893 dvi: dvi-am
704894
@@ -712,13 +902,13 @@ info: info-am
712902
713903 info-am:
714904
715-install-data-am:
905+install-data-am: install-includeHEADERS
716906
717907 install-dvi: install-dvi-am
718908
719909 install-dvi-am:
720910
721-install-exec-am:
911+install-exec-am: install-libLTLIBRARIES
722912
723913 install-html: install-html-am
724914
@@ -749,7 +939,8 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
749939
750940 mostlyclean: mostlyclean-am
751941
752-mostlyclean-am: mostlyclean-compile mostlyclean-generic
942+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
943+ mostlyclean-libtool
753944
754945 pdf: pdf-am
755946
@@ -759,25 +950,28 @@ ps: ps-am
759950
760951 ps-am:
761952
762-uninstall-am:
953+uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
763954
764955 .MAKE: all install-am install-strip
765956
766957 .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
767- clean-cscope clean-generic clean-noinstLIBRARIES cscope \
768- cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
769- dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
770- distcheck distclean distclean-compile distclean-generic \
771- distclean-hdr distclean-tags distcleancheck distdir \
958+ clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
959+ clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
960+ dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \
961+ dist-tarZ dist-xz dist-zip distcheck distclean \
962+ distclean-compile distclean-generic distclean-hdr \
963+ distclean-libtool distclean-tags distcleancheck distdir \
772964 distuninstallcheck dvi dvi-am html html-am info info-am \
773965 install install-am install-data install-data-am install-dvi \
774966 install-dvi-am install-exec install-exec-am install-html \
775- install-html-am install-info install-info-am install-man \
776- install-pdf install-pdf-am install-ps install-ps-am \
777- install-strip installcheck installcheck-am installdirs \
778- maintainer-clean maintainer-clean-generic mostlyclean \
779- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
780- tags tags-am uninstall uninstall-am
967+ install-html-am install-includeHEADERS install-info \
968+ install-info-am install-libLTLIBRARIES install-man install-pdf \
969+ install-pdf-am install-ps install-ps-am install-strip \
970+ installcheck installcheck-am installdirs maintainer-clean \
971+ maintainer-clean-generic mostlyclean mostlyclean-compile \
972+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
973+ tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
974+ uninstall-libLTLIBRARIES
781975
782976 .PRECIOUS: Makefile
783977
--- a/libctf/aclocal.m4
+++ b/libctf/aclocal.m4
@@ -1227,8 +1227,15 @@ AC_SUBST([am__tar])
12271227 AC_SUBST([am__untar])
12281228 ]) # _AM_PROG_TAR
12291229
1230+m4_include([../config/acx.m4])
12301231 m4_include([../config/depstand.m4])
12311232 m4_include([../config/lead-dot.m4])
12321233 m4_include([../config/override.m4])
12331234 m4_include([../config/warnings.m4])
12341235 m4_include([../config/zlib.m4])
1236+m4_include([../bfd/acinclude.m4])
1237+m4_include([../libtool.m4])
1238+m4_include([../ltoptions.m4])
1239+m4_include([../ltsugar.m4])
1240+m4_include([../ltversion.m4])
1241+m4_include([../lt~obsolete.m4])
--- a/libctf/config.h.in
+++ b/libctf/config.h.in
@@ -9,6 +9,9 @@
99 /* Define to 1 if you have the <byteswap.h> header file. */
1010 #undef HAVE_BYTESWAP_H
1111
12+/* Define to 1 if you have the <dlfcn.h> header file. */
13+#undef HAVE_DLFCN_H
14+
1215 /* Define to 1 if you have the <endian.h> header file. */
1316 #undef HAVE_ENDIAN_H
1417
@@ -63,6 +66,10 @@
6366 /* Define to 1 if you have the <unistd.h> header file. */
6467 #undef HAVE_UNISTD_H
6568
69+/* Define to the sub-directory in which libtool stores uninstalled libraries.
70+ */
71+#undef LT_OBJDIR
72+
6673 /* Name of package */
6774 #undef PACKAGE
6875
--- a/libctf/configure
+++ b/libctf/configure
@@ -196,7 +196,15 @@ test -x / || exit 1"
196196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199-test \$(( 1 + 1 )) = 2 || exit 1"
199+test \$(( 1 + 1 )) = 2 || exit 1
200+
201+ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205+ PATH=/empty FPATH=/empty; export PATH FPATH
206+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
200208 if (eval "$as_required") 2>/dev/null; then :
201209 as_have_required=yes
202210 else
@@ -553,6 +561,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553561 # Sed expression to map a string onto a valid variable name.
554562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555563
564+SHELL=${CONFIG_SHELL-/bin/sh}
565+
556566
557567 test -n "$DJDIR" || exec 7<&0 </dev/null
558568 exec 6>&1
@@ -625,11 +635,22 @@ ac_subst_vars='am__EXEEXT_FALSE
625635 am__EXEEXT_TRUE
626636 LTLIBOBJS
627637 LIBOBJS
638+VERSION_FLAGS
639+BFD_DEPENDENCIES
640+BFD_LIBADD
641+SHARED_LIBADD
642+SHARED_LDFLAGS
628643 NEED_CTF_QSORT_R_FALSE
629644 NEED_CTF_QSORT_R_TRUE
630645 zlibinc
631646 zlibdir
632647 ac_libctf_warn_cflags
648+bfdincludedir
649+bfdlibdir
650+target_noncanonical
651+host_noncanonical
652+INSTALL_LIBBFD_FALSE
653+INSTALL_LIBBFD_TRUE
633654 MAINT
634655 MAINTAINER_MODE_FALSE
635656 MAINTAINER_MODE_TRUE
@@ -637,6 +658,28 @@ WERROR
637658 WARN_PEDANTIC
638659 c_warn
639660 warn
661+OTOOL64
662+OTOOL
663+LIPO
664+NMEDIT
665+DSYMUTIL
666+OBJDUMP
667+LN_S
668+NM
669+ac_ct_DUMPBIN
670+DUMPBIN
671+LD
672+FGREP
673+SED
674+host_os
675+host_vendor
676+host_cpu
677+host
678+build_os
679+build_vendor
680+build_cpu
681+build
682+LIBTOOL
640683 ac_ct_AR
641684 AR
642685 RANLIB
@@ -730,9 +773,16 @@ ac_user_opts='
730773 enable_option_checking
731774 enable_dependency_tracking
732775 enable_silent_rules
776+enable_shared
777+enable_static
778+with_pic
779+enable_fast_install
780+with_gnu_ld
781+enable_libtool_lock
733782 enable_largefile
734783 enable_werror_always
735784 enable_maintainer_mode
785+enable_install_libbfd
736786 with_system_zlib
737787 '
738788 ac_precious_vars='build_alias
@@ -1345,6 +1395,10 @@ Program names:
13451395 --program-prefix=PREFIX prepend PREFIX to installed program names
13461396 --program-suffix=SUFFIX append SUFFIX to installed program names
13471397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398+
1399+System types:
1400+ --build=BUILD configure for building on BUILD [guessed]
1401+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
13481402 _ACEOF
13491403 fi
13501404
@@ -1364,15 +1418,24 @@ Optional Features:
13641418 speeds up one-time build
13651419 --enable-silent-rules less verbose build output (undo: "make V=1")
13661420 --disable-silent-rules verbose build output (undo: "make V=0")
1421+ --enable-shared[=PKGS] build shared libraries [default=no]
1422+ --enable-static[=PKGS] build static libraries [default=yes]
1423+ --enable-fast-install[=PKGS]
1424+ optimize for fast installation [default=yes]
1425+ --disable-libtool-lock avoid locking (might break parallel builds)
13671426 --disable-largefile omit support for large files
13681427 --enable-werror-always enable -Werror despite compiler version
13691428 --enable-maintainer-mode
13701429 enable make rules and dependencies not useful (and
13711430 sometimes confusing) to the casual installer
1431+ --enable-install-libbfd controls installation of libbfd and related headers
13721432
13731433 Optional Packages:
13741434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
13751435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436+ --with-pic try to use only PIC/non-PIC objects [default=use
1437+ both]
1438+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
13761439 --with-system-zlib use installed libz
13771440
13781441 Some influential environment variables:
@@ -5174,232 +5237,6722 @@ unknown)
51745237 esac
51755238
51765239
5177-# Check whether --enable-largefile was given.
5178-if test "${enable_largefile+set}" = set; then :
5179- enableval=$enable_largefile;
5240+# Check whether --enable-shared was given.
5241+if test "${enable_shared+set}" = set; then :
5242+ enableval=$enable_shared; p=${PACKAGE-default}
5243+ case $enableval in
5244+ yes) enable_shared=yes ;;
5245+ no) enable_shared=no ;;
5246+ *)
5247+ enable_shared=no
5248+ # Look at the argument we got. We use all the common list separators.
5249+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5250+ for pkg in $enableval; do
5251+ IFS="$lt_save_ifs"
5252+ if test "X$pkg" = "X$p"; then
5253+ enable_shared=yes
5254+ fi
5255+ done
5256+ IFS="$lt_save_ifs"
5257+ ;;
5258+ esac
5259+else
5260+ enable_shared=no
51805261 fi
51815262
5182-if test "$enable_largefile" != no; then
51835263
5184- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5185-$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5186-if ${ac_cv_sys_largefile_CC+:} false; then :
5187- $as_echo_n "(cached) " >&6
5188-else
5189- ac_cv_sys_largefile_CC=no
5190- if test "$GCC" != yes; then
5191- ac_save_CC=$CC
5192- while :; do
5193- # IRIX 6.2 and later do not support large files by default,
5194- # so use the C compiler's -n32 option if that helps.
5195- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196-/* end confdefs.h. */
5197-#include <sys/types.h>
5198- /* Check that off_t can represent 2**63 - 1 correctly.
5199- We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200- since some C++ compilers masquerading as C compilers
5201- incorrectly reject 9223372036854775807. */
5202-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204- && LARGE_OFF_T % 2147483647 == 1)
5205- ? 1 : -1];
5206-int
5207-main ()
5208-{
52095264
5210- ;
5211- return 0;
5212-}
5213-_ACEOF
5214- if ac_fn_c_try_compile "$LINENO"; then :
5215- break
5216-fi
5217-rm -f core conftest.err conftest.$ac_objext
5218- CC="$CC -n32"
5219- if ac_fn_c_try_compile "$LINENO"; then :
5220- ac_cv_sys_largefile_CC=' -n32'; break
5221-fi
5222-rm -f core conftest.err conftest.$ac_objext
5223- break
5224- done
5225- CC=$ac_save_CC
5226- rm -f conftest.$ac_ext
5227- fi
5228-fi
5229-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5230-$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5231- if test "$ac_cv_sys_largefile_CC" != no; then
5232- CC=$CC$ac_cv_sys_largefile_CC
5233- fi
52345265
5235- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5236-$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5237-if ${ac_cv_sys_file_offset_bits+:} false; then :
5266+
5267+
5268+
5269+
5270+
5271+
5272+case `pwd` in
5273+ *\ * | *\ *)
5274+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5275+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5276+esac
5277+
5278+
5279+
5280+macro_version='2.2.7a'
5281+macro_revision='1.3134'
5282+
5283+
5284+
5285+
5286+
5287+
5288+
5289+
5290+
5291+
5292+
5293+
5294+
5295+ltmain="$ac_aux_dir/ltmain.sh"
5296+
5297+# Make sure we can run config.sub.
5298+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5299+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5300+
5301+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5302+$as_echo_n "checking build system type... " >&6; }
5303+if ${ac_cv_build+:} false; then :
52385304 $as_echo_n "(cached) " >&6
52395305 else
5240- while :; do
5241- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242-/* end confdefs.h. */
5243-#include <sys/types.h>
5244- /* Check that off_t can represent 2**63 - 1 correctly.
5245- We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246- since some C++ compilers masquerading as C compilers
5247- incorrectly reject 9223372036854775807. */
5248-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250- && LARGE_OFF_T % 2147483647 == 1)
5251- ? 1 : -1];
5252-int
5253-main ()
5254-{
5255-
5256- ;
5257- return 0;
5258-}
5259-_ACEOF
5260-if ac_fn_c_try_compile "$LINENO"; then :
5261- ac_cv_sys_file_offset_bits=no; break
5262-fi
5263-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265-/* end confdefs.h. */
5266-#define _FILE_OFFSET_BITS 64
5267-#include <sys/types.h>
5268- /* Check that off_t can represent 2**63 - 1 correctly.
5269- We can't simply define LARGE_OFF_T to be 9223372036854775807,
5270- since some C++ compilers masquerading as C compilers
5271- incorrectly reject 9223372036854775807. */
5272-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5273- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5274- && LARGE_OFF_T % 2147483647 == 1)
5275- ? 1 : -1];
5276-int
5277-main ()
5278-{
5306+ ac_build_alias=$build_alias
5307+test "x$ac_build_alias" = x &&
5308+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5309+test "x$ac_build_alias" = x &&
5310+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5311+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5312+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
52795313
5280- ;
5281- return 0;
5282-}
5283-_ACEOF
5284-if ac_fn_c_try_compile "$LINENO"; then :
5285- ac_cv_sys_file_offset_bits=64; break
5286-fi
5287-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288- ac_cv_sys_file_offset_bits=unknown
5289- break
5290-done
52915314 fi
5292-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5293-$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5294-case $ac_cv_sys_file_offset_bits in #(
5295- no | unknown) ;;
5296- *)
5297-cat >>confdefs.h <<_ACEOF
5298-#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5299-_ACEOF
5300-;;
5315+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5316+$as_echo "$ac_cv_build" >&6; }
5317+case $ac_cv_build in
5318+*-*-*) ;;
5319+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
53015320 esac
5302-rm -rf conftest*
5303- if test $ac_cv_sys_file_offset_bits = unknown; then
5304- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5305-$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5306-if ${ac_cv_sys_large_files+:} false; then :
5321+build=$ac_cv_build
5322+ac_save_IFS=$IFS; IFS='-'
5323+set x $ac_cv_build
5324+shift
5325+build_cpu=$1
5326+build_vendor=$2
5327+shift; shift
5328+# Remember, the first character of IFS is used to create $*,
5329+# except with old shells:
5330+build_os=$*
5331+IFS=$ac_save_IFS
5332+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5333+
5334+
5335+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5336+$as_echo_n "checking host system type... " >&6; }
5337+if ${ac_cv_host+:} false; then :
53075338 $as_echo_n "(cached) " >&6
53085339 else
5309- while :; do
5310- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311-/* end confdefs.h. */
5312-#include <sys/types.h>
5313- /* Check that off_t can represent 2**63 - 1 correctly.
5314- We can't simply define LARGE_OFF_T to be 9223372036854775807,
5315- since some C++ compilers masquerading as C compilers
5316- incorrectly reject 9223372036854775807. */
5317-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5318- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5319- && LARGE_OFF_T % 2147483647 == 1)
5320- ? 1 : -1];
5321-int
5322-main ()
5323-{
5324-
5325- ;
5326- return 0;
5327-}
5328-_ACEOF
5329-if ac_fn_c_try_compile "$LINENO"; then :
5330- ac_cv_sys_large_files=no; break
5340+ if test "x$host_alias" = x; then
5341+ ac_cv_host=$ac_cv_build
5342+else
5343+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5344+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
53315345 fi
5332-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334-/* end confdefs.h. */
5335-#define _LARGE_FILES 1
5336-#include <sys/types.h>
5337- /* Check that off_t can represent 2**63 - 1 correctly.
5338- We can't simply define LARGE_OFF_T to be 9223372036854775807,
5339- since some C++ compilers masquerading as C compilers
5340- incorrectly reject 9223372036854775807. */
5341-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5342- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5343- && LARGE_OFF_T % 2147483647 == 1)
5344- ? 1 : -1];
5345-int
5346-main ()
5347-{
53485346
5349- ;
5350- return 0;
5351-}
5352-_ACEOF
5353-if ac_fn_c_try_compile "$LINENO"; then :
5354- ac_cv_sys_large_files=1; break
53555347 fi
5356-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357- ac_cv_sys_large_files=unknown
5358- break
5359-done
5348+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5349+$as_echo "$ac_cv_host" >&6; }
5350+case $ac_cv_host in
5351+*-*-*) ;;
5352+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5353+esac
5354+host=$ac_cv_host
5355+ac_save_IFS=$IFS; IFS='-'
5356+set x $ac_cv_host
5357+shift
5358+host_cpu=$1
5359+host_vendor=$2
5360+shift; shift
5361+# Remember, the first character of IFS is used to create $*,
5362+# except with old shells:
5363+host_os=$*
5364+IFS=$ac_save_IFS
5365+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5366+
5367+
5368+# Backslashify metacharacters that are still active within
5369+# double-quoted strings.
5370+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5371+
5372+# Same as above, but do not quote variable references.
5373+double_quote_subst='s/\(["`\\]\)/\\\1/g'
5374+
5375+# Sed substitution to delay expansion of an escaped shell variable in a
5376+# double_quote_subst'ed string.
5377+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5378+
5379+# Sed substitution to delay expansion of an escaped single quote.
5380+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5381+
5382+# Sed substitution to avoid accidental globbing in evaled expressions
5383+no_glob_subst='s/\*/\\\*/g'
5384+
5385+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5386+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5387+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5388+
5389+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5390+$as_echo_n "checking how to print strings... " >&6; }
5391+# Test print first, because it will be a builtin if present.
5392+if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5393+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5394+ ECHO='print -r --'
5395+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5396+ ECHO='printf %s\n'
5397+else
5398+ # Use this function as a fallback that always works.
5399+ func_fallback_echo ()
5400+ {
5401+ eval 'cat <<_LTECHO_EOF
5402+$1
5403+_LTECHO_EOF'
5404+ }
5405+ ECHO='func_fallback_echo'
53605406 fi
5361-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5362-$as_echo "$ac_cv_sys_large_files" >&6; }
5363-case $ac_cv_sys_large_files in #(
5364- no | unknown) ;;
5365- *)
5366-cat >>confdefs.h <<_ACEOF
5367-#define _LARGE_FILES $ac_cv_sys_large_files
5368-_ACEOF
5369-;;
5407+
5408+# func_echo_all arg...
5409+# Invoke $ECHO with all args, space-separated.
5410+func_echo_all ()
5411+{
5412+ $ECHO ""
5413+}
5414+
5415+case "$ECHO" in
5416+ printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5417+$as_echo "printf" >&6; } ;;
5418+ print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5419+$as_echo "print -r" >&6; } ;;
5420+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5421+$as_echo "cat" >&6; } ;;
53705422 esac
5371-rm -rf conftest*
5372- fi
53735423
53745424
5375-fi
53765425
53775426
5378-MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5379-for ac_prog in aclocal
5380-do
5381- # Extract the first word of "$ac_prog", so it can be a program name with args.
5382-set dummy $ac_prog; ac_word=$2
5383-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384-$as_echo_n "checking for $ac_word... " >&6; }
5385-if ${ac_cv_prog_ACLOCAL+:} false; then :
5427+
5428+
5429+
5430+
5431+
5432+
5433+
5434+
5435+
5436+
5437+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5438+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5439+if ${ac_cv_path_SED+:} false; then :
53865440 $as_echo_n "(cached) " >&6
53875441 else
5388- if test -n "$ACLOCAL"; then
5389- ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
5390-else
5391-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5443+ for ac_i in 1 2 3 4 5 6 7; do
5444+ ac_script="$ac_script$as_nl$ac_script"
5445+ done
5446+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5447+ { ac_script=; unset ac_script;}
5448+ if test -z "$SED"; then
5449+ ac_path_SED_found=false
5450+ # Loop through the user's path and test for each of PROGNAME-LIST
5451+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53925452 for as_dir in $PATH
53935453 do
53945454 IFS=$as_save_IFS
53955455 test -z "$as_dir" && as_dir=.
5456+ for ac_prog in sed gsed; do
53965457 for ac_exec_ext in '' $ac_executable_extensions; do
5397- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398- ac_cv_prog_ACLOCAL="$ac_prog"
5399- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400- break 2
5401- fi
5402-done
5458+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5459+ as_fn_executable_p "$ac_path_SED" || continue
5460+# Check for GNU ac_path_SED and select it if it is found.
5461+ # Check for GNU $ac_path_SED
5462+case `"$ac_path_SED" --version 2>&1` in
5463+*GNU*)
5464+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5465+*)
5466+ ac_count=0
5467+ $as_echo_n 0123456789 >"conftest.in"
5468+ while :
5469+ do
5470+ cat "conftest.in" "conftest.in" >"conftest.tmp"
5471+ mv "conftest.tmp" "conftest.in"
5472+ cp "conftest.in" "conftest.nl"
5473+ $as_echo '' >> "conftest.nl"
5474+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5475+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5476+ as_fn_arith $ac_count + 1 && ac_count=$as_val
5477+ if test $ac_count -gt ${ac_path_SED_max-0}; then
5478+ # Best one so far, save it but keep looking for a better one
5479+ ac_cv_path_SED="$ac_path_SED"
5480+ ac_path_SED_max=$ac_count
5481+ fi
5482+ # 10*(2^10) chars as input seems more than enough
5483+ test $ac_count -gt 10 && break
5484+ done
5485+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5486+esac
5487+
5488+ $ac_path_SED_found && break 3
5489+ done
5490+ done
5491+ done
5492+IFS=$as_save_IFS
5493+ if test -z "$ac_cv_path_SED"; then
5494+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5495+ fi
5496+else
5497+ ac_cv_path_SED=$SED
5498+fi
5499+
5500+fi
5501+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5502+$as_echo "$ac_cv_path_SED" >&6; }
5503+ SED="$ac_cv_path_SED"
5504+ rm -f conftest.sed
5505+
5506+test -z "$SED" && SED=sed
5507+Xsed="$SED -e 1s/^X//"
5508+
5509+
5510+
5511+
5512+
5513+
5514+
5515+
5516+
5517+
5518+
5519+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5520+$as_echo_n "checking for fgrep... " >&6; }
5521+if ${ac_cv_path_FGREP+:} false; then :
5522+ $as_echo_n "(cached) " >&6
5523+else
5524+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5525+ then ac_cv_path_FGREP="$GREP -F"
5526+ else
5527+ if test -z "$FGREP"; then
5528+ ac_path_FGREP_found=false
5529+ # Loop through the user's path and test for each of PROGNAME-LIST
5530+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532+do
5533+ IFS=$as_save_IFS
5534+ test -z "$as_dir" && as_dir=.
5535+ for ac_prog in fgrep; do
5536+ for ac_exec_ext in '' $ac_executable_extensions; do
5537+ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5538+ as_fn_executable_p "$ac_path_FGREP" || continue
5539+# Check for GNU ac_path_FGREP and select it if it is found.
5540+ # Check for GNU $ac_path_FGREP
5541+case `"$ac_path_FGREP" --version 2>&1` in
5542+*GNU*)
5543+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5544+*)
5545+ ac_count=0
5546+ $as_echo_n 0123456789 >"conftest.in"
5547+ while :
5548+ do
5549+ cat "conftest.in" "conftest.in" >"conftest.tmp"
5550+ mv "conftest.tmp" "conftest.in"
5551+ cp "conftest.in" "conftest.nl"
5552+ $as_echo 'FGREP' >> "conftest.nl"
5553+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555+ as_fn_arith $ac_count + 1 && ac_count=$as_val
5556+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5557+ # Best one so far, save it but keep looking for a better one
5558+ ac_cv_path_FGREP="$ac_path_FGREP"
5559+ ac_path_FGREP_max=$ac_count
5560+ fi
5561+ # 10*(2^10) chars as input seems more than enough
5562+ test $ac_count -gt 10 && break
5563+ done
5564+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565+esac
5566+
5567+ $ac_path_FGREP_found && break 3
5568+ done
5569+ done
5570+ done
5571+IFS=$as_save_IFS
5572+ if test -z "$ac_cv_path_FGREP"; then
5573+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574+ fi
5575+else
5576+ ac_cv_path_FGREP=$FGREP
5577+fi
5578+
5579+ fi
5580+fi
5581+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5582+$as_echo "$ac_cv_path_FGREP" >&6; }
5583+ FGREP="$ac_cv_path_FGREP"
5584+
5585+
5586+test -z "$GREP" && GREP=grep
5587+
5588+
5589+
5590+
5591+
5592+
5593+
5594+
5595+
5596+
5597+
5598+
5599+
5600+
5601+
5602+
5603+
5604+
5605+
5606+# Check whether --with-gnu-ld was given.
5607+if test "${with_gnu_ld+set}" = set; then :
5608+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5609+else
5610+ with_gnu_ld=no
5611+fi
5612+
5613+ac_prog=ld
5614+if test "$GCC" = yes; then
5615+ # Check if gcc -print-prog-name=ld gives a path.
5616+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5617+$as_echo_n "checking for ld used by $CC... " >&6; }
5618+ case $host in
5619+ *-*-mingw*)
5620+ # gcc leaves a trailing carriage return which upsets mingw
5621+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5622+ *)
5623+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5624+ esac
5625+ case $ac_prog in
5626+ # Accept absolute paths.
5627+ [\\/]* | ?:[\\/]*)
5628+ re_direlt='/[^/][^/]*/\.\./'
5629+ # Canonicalize the pathname of ld
5630+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5631+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5632+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5633+ done
5634+ test -z "$LD" && LD="$ac_prog"
5635+ ;;
5636+ "")
5637+ # If it fails, then pretend we aren't using GCC.
5638+ ac_prog=ld
5639+ ;;
5640+ *)
5641+ # If it is relative, then search for the first ld in PATH.
5642+ with_gnu_ld=unknown
5643+ ;;
5644+ esac
5645+elif test "$with_gnu_ld" = yes; then
5646+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5647+$as_echo_n "checking for GNU ld... " >&6; }
5648+else
5649+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5650+$as_echo_n "checking for non-GNU ld... " >&6; }
5651+fi
5652+if ${lt_cv_path_LD+:} false; then :
5653+ $as_echo_n "(cached) " >&6
5654+else
5655+ if test -z "$LD"; then
5656+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657+ for ac_dir in $PATH; do
5658+ IFS="$lt_save_ifs"
5659+ test -z "$ac_dir" && ac_dir=.
5660+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5661+ lt_cv_path_LD="$ac_dir/$ac_prog"
5662+ # Check to see if the program is GNU ld. I'd rather use --version,
5663+ # but apparently some variants of GNU ld only accept -v.
5664+ # Break only if it was the GNU/non-GNU ld that we prefer.
5665+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5666+ *GNU* | *'with BFD'*)
5667+ test "$with_gnu_ld" != no && break
5668+ ;;
5669+ *)
5670+ test "$with_gnu_ld" != yes && break
5671+ ;;
5672+ esac
5673+ fi
5674+ done
5675+ IFS="$lt_save_ifs"
5676+else
5677+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
5678+fi
5679+fi
5680+
5681+LD="$lt_cv_path_LD"
5682+if test -n "$LD"; then
5683+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5684+$as_echo "$LD" >&6; }
5685+else
5686+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687+$as_echo "no" >&6; }
5688+fi
5689+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5690+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5691+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5692+if ${lt_cv_prog_gnu_ld+:} false; then :
5693+ $as_echo_n "(cached) " >&6
5694+else
5695+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
5696+case `$LD -v 2>&1 </dev/null` in
5697+*GNU* | *'with BFD'*)
5698+ lt_cv_prog_gnu_ld=yes
5699+ ;;
5700+*)
5701+ lt_cv_prog_gnu_ld=no
5702+ ;;
5703+esac
5704+fi
5705+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5706+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5707+with_gnu_ld=$lt_cv_prog_gnu_ld
5708+
5709+
5710+
5711+
5712+
5713+
5714+
5715+
5716+
5717+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5718+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5719+if ${lt_cv_path_NM+:} false; then :
5720+ $as_echo_n "(cached) " >&6
5721+else
5722+ if test -n "$NM"; then
5723+ # Let the user override the test.
5724+ lt_cv_path_NM="$NM"
5725+else
5726+ lt_nm_to_check="${ac_tool_prefix}nm"
5727+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5728+ lt_nm_to_check="$lt_nm_to_check nm"
5729+ fi
5730+ for lt_tmp_nm in $lt_nm_to_check; do
5731+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5732+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5733+ IFS="$lt_save_ifs"
5734+ test -z "$ac_dir" && ac_dir=.
5735+ tmp_nm="$ac_dir/$lt_tmp_nm"
5736+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5737+ # Check to see if the nm accepts a BSD-compat flag.
5738+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5739+ # nm: unknown option "B" ignored
5740+ # Tru64's nm complains that /dev/null is an invalid object file
5741+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5742+ */dev/null* | *'Invalid file or object type'*)
5743+ lt_cv_path_NM="$tmp_nm -B"
5744+ break
5745+ ;;
5746+ *)
5747+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5748+ */dev/null*)
5749+ lt_cv_path_NM="$tmp_nm -p"
5750+ break
5751+ ;;
5752+ *)
5753+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5754+ continue # so that we can try to find one that supports BSD flags
5755+ ;;
5756+ esac
5757+ ;;
5758+ esac
5759+ fi
5760+ done
5761+ IFS="$lt_save_ifs"
5762+ done
5763+ : ${lt_cv_path_NM=no}
5764+fi
5765+fi
5766+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5767+$as_echo "$lt_cv_path_NM" >&6; }
5768+if test "$lt_cv_path_NM" != "no"; then
5769+ NM="$lt_cv_path_NM"
5770+else
5771+ # Didn't find any BSD compatible name lister, look for dumpbin.
5772+ if test -n "$DUMPBIN"; then :
5773+ # Let the user override the test.
5774+ else
5775+ if test -n "$ac_tool_prefix"; then
5776+ for ac_prog in dumpbin "link -dump"
5777+ do
5778+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5780+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781+$as_echo_n "checking for $ac_word... " >&6; }
5782+if ${ac_cv_prog_DUMPBIN+:} false; then :
5783+ $as_echo_n "(cached) " >&6
5784+else
5785+ if test -n "$DUMPBIN"; then
5786+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5787+else
5788+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789+for as_dir in $PATH
5790+do
5791+ IFS=$as_save_IFS
5792+ test -z "$as_dir" && as_dir=.
5793+ for ac_exec_ext in '' $ac_executable_extensions; do
5794+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5796+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797+ break 2
5798+ fi
5799+done
5800+ done
5801+IFS=$as_save_IFS
5802+
5803+fi
5804+fi
5805+DUMPBIN=$ac_cv_prog_DUMPBIN
5806+if test -n "$DUMPBIN"; then
5807+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5808+$as_echo "$DUMPBIN" >&6; }
5809+else
5810+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811+$as_echo "no" >&6; }
5812+fi
5813+
5814+
5815+ test -n "$DUMPBIN" && break
5816+ done
5817+fi
5818+if test -z "$DUMPBIN"; then
5819+ ac_ct_DUMPBIN=$DUMPBIN
5820+ for ac_prog in dumpbin "link -dump"
5821+do
5822+ # Extract the first word of "$ac_prog", so it can be a program name with args.
5823+set dummy $ac_prog; ac_word=$2
5824+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825+$as_echo_n "checking for $ac_word... " >&6; }
5826+if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5827+ $as_echo_n "(cached) " >&6
5828+else
5829+ if test -n "$ac_ct_DUMPBIN"; then
5830+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5831+else
5832+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833+for as_dir in $PATH
5834+do
5835+ IFS=$as_save_IFS
5836+ test -z "$as_dir" && as_dir=.
5837+ for ac_exec_ext in '' $ac_executable_extensions; do
5838+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5840+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841+ break 2
5842+ fi
5843+done
5844+ done
5845+IFS=$as_save_IFS
5846+
5847+fi
5848+fi
5849+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5850+if test -n "$ac_ct_DUMPBIN"; then
5851+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5852+$as_echo "$ac_ct_DUMPBIN" >&6; }
5853+else
5854+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855+$as_echo "no" >&6; }
5856+fi
5857+
5858+
5859+ test -n "$ac_ct_DUMPBIN" && break
5860+done
5861+
5862+ if test "x$ac_ct_DUMPBIN" = x; then
5863+ DUMPBIN=":"
5864+ else
5865+ case $cross_compiling:$ac_tool_warned in
5866+yes:)
5867+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869+ac_tool_warned=yes ;;
5870+esac
5871+ DUMPBIN=$ac_ct_DUMPBIN
5872+ fi
5873+fi
5874+
5875+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5876+ *COFF*)
5877+ DUMPBIN="$DUMPBIN -symbols"
5878+ ;;
5879+ *)
5880+ DUMPBIN=:
5881+ ;;
5882+ esac
5883+ fi
5884+
5885+ if test "$DUMPBIN" != ":"; then
5886+ NM="$DUMPBIN"
5887+ fi
5888+fi
5889+test -z "$NM" && NM=nm
5890+
5891+
5892+
5893+
5894+
5895+
5896+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5897+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5898+if ${lt_cv_nm_interface+:} false; then :
5899+ $as_echo_n "(cached) " >&6
5900+else
5901+ lt_cv_nm_interface="BSD nm"
5902+ echo "int some_variable = 0;" > conftest.$ac_ext
5903+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5904+ (eval "$ac_compile" 2>conftest.err)
5905+ cat conftest.err >&5
5906+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5907+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5908+ cat conftest.err >&5
5909+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5910+ cat conftest.out >&5
5911+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5912+ lt_cv_nm_interface="MS dumpbin"
5913+ fi
5914+ rm -f conftest*
5915+fi
5916+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5917+$as_echo "$lt_cv_nm_interface" >&6; }
5918+
5919+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5920+$as_echo_n "checking whether ln -s works... " >&6; }
5921+LN_S=$as_ln_s
5922+if test "$LN_S" = "ln -s"; then
5923+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5924+$as_echo "yes" >&6; }
5925+else
5926+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5927+$as_echo "no, using $LN_S" >&6; }
5928+fi
5929+
5930+# find the maximum length of command line arguments
5931+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5932+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5933+if ${lt_cv_sys_max_cmd_len+:} false; then :
5934+ $as_echo_n "(cached) " >&6
5935+else
5936+ i=0
5937+ teststring="ABCD"
5938+
5939+ case $build_os in
5940+ msdosdjgpp*)
5941+ # On DJGPP, this test can blow up pretty badly due to problems in libc
5942+ # (any single argument exceeding 2000 bytes causes a buffer overrun
5943+ # during glob expansion). Even if it were fixed, the result of this
5944+ # check would be larger than it should be.
5945+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
5946+ ;;
5947+
5948+ gnu*)
5949+ # Under GNU Hurd, this test is not required because there is
5950+ # no limit to the length of command line arguments.
5951+ # Libtool will interpret -1 as no limit whatsoever
5952+ lt_cv_sys_max_cmd_len=-1;
5953+ ;;
5954+
5955+ cygwin* | mingw* | cegcc*)
5956+ # On Win9x/ME, this test blows up -- it succeeds, but takes
5957+ # about 5 minutes as the teststring grows exponentially.
5958+ # Worse, since 9x/ME are not pre-emptively multitasking,
5959+ # you end up with a "frozen" computer, even though with patience
5960+ # the test eventually succeeds (with a max line length of 256k).
5961+ # Instead, let's just punt: use the minimum linelength reported by
5962+ # all of the supported platforms: 8192 (on NT/2K/XP).
5963+ lt_cv_sys_max_cmd_len=8192;
5964+ ;;
5965+
5966+ mint*)
5967+ # On MiNT this can take a long time and run out of memory.
5968+ lt_cv_sys_max_cmd_len=8192;
5969+ ;;
5970+
5971+ amigaos*)
5972+ # On AmigaOS with pdksh, this test takes hours, literally.
5973+ # So we just punt and use a minimum line length of 8192.
5974+ lt_cv_sys_max_cmd_len=8192;
5975+ ;;
5976+
5977+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5978+ # This has been around since 386BSD, at least. Likely further.
5979+ if test -x /sbin/sysctl; then
5980+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5981+ elif test -x /usr/sbin/sysctl; then
5982+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5983+ else
5984+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5985+ fi
5986+ # And add a safety zone
5987+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5988+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989+ ;;
5990+
5991+ interix*)
5992+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
5993+ lt_cv_sys_max_cmd_len=196608
5994+ ;;
5995+
5996+ osf*)
5997+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5998+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5999+ # nice to cause kernel panics so lets avoid the loop below.
6000+ # First set a reasonable default.
6001+ lt_cv_sys_max_cmd_len=16384
6002+ #
6003+ if test -x /sbin/sysconfig; then
6004+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6005+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
6006+ esac
6007+ fi
6008+ ;;
6009+ sco3.2v5*)
6010+ lt_cv_sys_max_cmd_len=102400
6011+ ;;
6012+ sysv5* | sco5v6* | sysv4.2uw2*)
6013+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6014+ if test -n "$kargmax"; then
6015+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6016+ else
6017+ lt_cv_sys_max_cmd_len=32768
6018+ fi
6019+ ;;
6020+ *)
6021+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6022+ if test -n "$lt_cv_sys_max_cmd_len"; then
6023+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6024+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6025+ else
6026+ # Make teststring a little bigger before we do anything with it.
6027+ # a 1K string should be a reasonable start.
6028+ for i in 1 2 3 4 5 6 7 8 ; do
6029+ teststring=$teststring$teststring
6030+ done
6031+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6032+ # If test is not a shell built-in, we'll probably end up computing a
6033+ # maximum length that is only half of the actual maximum length, but
6034+ # we can't tell.
6035+ while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6036+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6037+ test $i != 17 # 1/2 MB should be enough
6038+ do
6039+ i=`expr $i + 1`
6040+ teststring=$teststring$teststring
6041+ done
6042+ # Only check the string length outside the loop.
6043+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6044+ teststring=
6045+ # Add a significant safety factor because C++ compilers can tack on
6046+ # massive amounts of additional arguments before passing them to the
6047+ # linker. It appears as though 1/2 is a usable value.
6048+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6049+ fi
6050+ ;;
6051+ esac
6052+
6053+fi
6054+
6055+if test -n $lt_cv_sys_max_cmd_len ; then
6056+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6057+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6058+else
6059+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6060+$as_echo "none" >&6; }
6061+fi
6062+max_cmd_len=$lt_cv_sys_max_cmd_len
6063+
6064+
6065+
6066+
6067+
6068+
6069+: ${CP="cp -f"}
6070+: ${MV="mv -f"}
6071+: ${RM="rm -f"}
6072+
6073+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6074+$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6075+# Try some XSI features
6076+xsi_shell=no
6077+( _lt_dummy="a/b/c"
6078+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6079+ = c,a/b,, \
6080+ && eval 'test $(( 1 + 1 )) -eq 2 \
6081+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6082+ && xsi_shell=yes
6083+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6084+$as_echo "$xsi_shell" >&6; }
6085+
6086+
6087+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6088+$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6089+lt_shell_append=no
6090+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6091+ >/dev/null 2>&1 \
6092+ && lt_shell_append=yes
6093+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6094+$as_echo "$lt_shell_append" >&6; }
6095+
6096+
6097+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6098+ lt_unset=unset
6099+else
6100+ lt_unset=false
6101+fi
6102+
6103+
6104+
6105+
6106+
6107+# test EBCDIC or ASCII
6108+case `echo X|tr X '\101'` in
6109+ A) # ASCII based system
6110+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6111+ lt_SP2NL='tr \040 \012'
6112+ lt_NL2SP='tr \015\012 \040\040'
6113+ ;;
6114+ *) # EBCDIC based system
6115+ lt_SP2NL='tr \100 \n'
6116+ lt_NL2SP='tr \r\n \100\100'
6117+ ;;
6118+esac
6119+
6120+
6121+
6122+
6123+
6124+
6125+
6126+
6127+
6128+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6129+$as_echo_n "checking for $LD option to reload object files... " >&6; }
6130+if ${lt_cv_ld_reload_flag+:} false; then :
6131+ $as_echo_n "(cached) " >&6
6132+else
6133+ lt_cv_ld_reload_flag='-r'
6134+fi
6135+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6136+$as_echo "$lt_cv_ld_reload_flag" >&6; }
6137+reload_flag=$lt_cv_ld_reload_flag
6138+case $reload_flag in
6139+"" | " "*) ;;
6140+*) reload_flag=" $reload_flag" ;;
6141+esac
6142+reload_cmds='$LD$reload_flag -o $output$reload_objs'
6143+case $host_os in
6144+ darwin*)
6145+ if test "$GCC" = yes; then
6146+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6147+ else
6148+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
6149+ fi
6150+ ;;
6151+esac
6152+
6153+
6154+
6155+
6156+
6157+
6158+
6159+
6160+
6161+if test -n "$ac_tool_prefix"; then
6162+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6163+set dummy ${ac_tool_prefix}objdump; ac_word=$2
6164+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165+$as_echo_n "checking for $ac_word... " >&6; }
6166+if ${ac_cv_prog_OBJDUMP+:} false; then :
6167+ $as_echo_n "(cached) " >&6
6168+else
6169+ if test -n "$OBJDUMP"; then
6170+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6171+else
6172+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173+for as_dir in $PATH
6174+do
6175+ IFS=$as_save_IFS
6176+ test -z "$as_dir" && as_dir=.
6177+ for ac_exec_ext in '' $ac_executable_extensions; do
6178+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6180+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181+ break 2
6182+ fi
6183+done
6184+ done
6185+IFS=$as_save_IFS
6186+
6187+fi
6188+fi
6189+OBJDUMP=$ac_cv_prog_OBJDUMP
6190+if test -n "$OBJDUMP"; then
6191+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6192+$as_echo "$OBJDUMP" >&6; }
6193+else
6194+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195+$as_echo "no" >&6; }
6196+fi
6197+
6198+
6199+fi
6200+if test -z "$ac_cv_prog_OBJDUMP"; then
6201+ ac_ct_OBJDUMP=$OBJDUMP
6202+ # Extract the first word of "objdump", so it can be a program name with args.
6203+set dummy objdump; ac_word=$2
6204+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205+$as_echo_n "checking for $ac_word... " >&6; }
6206+if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6207+ $as_echo_n "(cached) " >&6
6208+else
6209+ if test -n "$ac_ct_OBJDUMP"; then
6210+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6211+else
6212+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213+for as_dir in $PATH
6214+do
6215+ IFS=$as_save_IFS
6216+ test -z "$as_dir" && as_dir=.
6217+ for ac_exec_ext in '' $ac_executable_extensions; do
6218+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
6220+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221+ break 2
6222+ fi
6223+done
6224+ done
6225+IFS=$as_save_IFS
6226+
6227+fi
6228+fi
6229+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6230+if test -n "$ac_ct_OBJDUMP"; then
6231+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6232+$as_echo "$ac_ct_OBJDUMP" >&6; }
6233+else
6234+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235+$as_echo "no" >&6; }
6236+fi
6237+
6238+ if test "x$ac_ct_OBJDUMP" = x; then
6239+ OBJDUMP="false"
6240+ else
6241+ case $cross_compiling:$ac_tool_warned in
6242+yes:)
6243+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245+ac_tool_warned=yes ;;
6246+esac
6247+ OBJDUMP=$ac_ct_OBJDUMP
6248+ fi
6249+else
6250+ OBJDUMP="$ac_cv_prog_OBJDUMP"
6251+fi
6252+
6253+test -z "$OBJDUMP" && OBJDUMP=objdump
6254+
6255+
6256+
6257+
6258+
6259+
6260+
6261+
6262+
6263+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6264+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6265+if ${lt_cv_deplibs_check_method+:} false; then :
6266+ $as_echo_n "(cached) " >&6
6267+else
6268+ lt_cv_file_magic_cmd='$MAGIC_CMD'
6269+lt_cv_file_magic_test_file=
6270+lt_cv_deplibs_check_method='unknown'
6271+# Need to set the preceding variable on all platforms that support
6272+# interlibrary dependencies.
6273+# 'none' -- dependencies not supported.
6274+# `unknown' -- same as none, but documents that we really don't know.
6275+# 'pass_all' -- all dependencies passed with no checks.
6276+# 'test_compile' -- check by making test program.
6277+# 'file_magic [[regex]]' -- check by looking for files in library path
6278+# which responds to the $file_magic_cmd with a given extended regex.
6279+# If you have `file' or equivalent on your system and you're not sure
6280+# whether `pass_all' will *always* work, you probably want this one.
6281+
6282+case $host_os in
6283+aix[4-9]*)
6284+ lt_cv_deplibs_check_method=pass_all
6285+ ;;
6286+
6287+beos*)
6288+ lt_cv_deplibs_check_method=pass_all
6289+ ;;
6290+
6291+bsdi[45]*)
6292+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6293+ lt_cv_file_magic_cmd='/usr/bin/file -L'
6294+ lt_cv_file_magic_test_file=/shlib/libc.so
6295+ ;;
6296+
6297+cygwin*)
6298+ # func_win32_libid is a shell function defined in ltmain.sh
6299+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6300+ lt_cv_file_magic_cmd='func_win32_libid'
6301+ ;;
6302+
6303+mingw* | pw32*)
6304+ # Base MSYS/MinGW do not provide the 'file' command needed by
6305+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
6306+ # unless we find 'file', for example because we are cross-compiling.
6307+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6308+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6309+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6310+ lt_cv_file_magic_cmd='func_win32_libid'
6311+ else
6312+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6313+ lt_cv_file_magic_cmd='$OBJDUMP -f'
6314+ fi
6315+ ;;
6316+
6317+cegcc*)
6318+ # use the weaker test based on 'objdump'. See mingw*.
6319+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6320+ lt_cv_file_magic_cmd='$OBJDUMP -f'
6321+ ;;
6322+
6323+darwin* | rhapsody*)
6324+ lt_cv_deplibs_check_method=pass_all
6325+ ;;
6326+
6327+freebsd* | dragonfly*)
6328+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329+ case $host_cpu in
6330+ i*86 )
6331+ # Not sure whether the presence of OpenBSD here was a mistake.
6332+ # Let's accept both of them until this is cleared up.
6333+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6334+ lt_cv_file_magic_cmd=/usr/bin/file
6335+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6336+ ;;
6337+ esac
6338+ else
6339+ lt_cv_deplibs_check_method=pass_all
6340+ fi
6341+ ;;
6342+
6343+gnu*)
6344+ lt_cv_deplibs_check_method=pass_all
6345+ ;;
6346+
6347+haiku*)
6348+ lt_cv_deplibs_check_method=pass_all
6349+ ;;
6350+
6351+hpux10.20* | hpux11*)
6352+ lt_cv_file_magic_cmd=/usr/bin/file
6353+ case $host_cpu in
6354+ ia64*)
6355+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6356+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6357+ ;;
6358+ hppa*64*)
6359+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6360+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6361+ ;;
6362+ *)
6363+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6364+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
6365+ ;;
6366+ esac
6367+ ;;
6368+
6369+interix[3-9]*)
6370+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6371+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6372+ ;;
6373+
6374+irix5* | irix6* | nonstopux*)
6375+ case $LD in
6376+ *-32|*"-32 ") libmagic=32-bit;;
6377+ *-n32|*"-n32 ") libmagic=N32;;
6378+ *-64|*"-64 ") libmagic=64-bit;;
6379+ *) libmagic=never-match;;
6380+ esac
6381+ lt_cv_deplibs_check_method=pass_all
6382+ ;;
6383+
6384+# This must be Linux ELF.
6385+linux* | k*bsd*-gnu | kopensolaris*-gnu)
6386+ lt_cv_deplibs_check_method=pass_all
6387+ ;;
6388+
6389+netbsd*)
6390+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6391+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6392+ else
6393+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6394+ fi
6395+ ;;
6396+
6397+newos6*)
6398+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6399+ lt_cv_file_magic_cmd=/usr/bin/file
6400+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
6401+ ;;
6402+
6403+*nto* | *qnx*)
6404+ lt_cv_deplibs_check_method=pass_all
6405+ ;;
6406+
6407+openbsd*)
6408+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6409+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6410+ else
6411+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6412+ fi
6413+ ;;
6414+
6415+osf3* | osf4* | osf5*)
6416+ lt_cv_deplibs_check_method=pass_all
6417+ ;;
6418+
6419+rdos*)
6420+ lt_cv_deplibs_check_method=pass_all
6421+ ;;
6422+
6423+solaris*)
6424+ lt_cv_deplibs_check_method=pass_all
6425+ ;;
6426+
6427+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6428+ lt_cv_deplibs_check_method=pass_all
6429+ ;;
6430+
6431+sysv4 | sysv4.3*)
6432+ case $host_vendor in
6433+ motorola)
6434+ 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]'
6435+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6436+ ;;
6437+ ncr)
6438+ lt_cv_deplibs_check_method=pass_all
6439+ ;;
6440+ sequent)
6441+ lt_cv_file_magic_cmd='/bin/file'
6442+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6443+ ;;
6444+ sni)
6445+ lt_cv_file_magic_cmd='/bin/file'
6446+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6447+ lt_cv_file_magic_test_file=/lib/libc.so
6448+ ;;
6449+ siemens)
6450+ lt_cv_deplibs_check_method=pass_all
6451+ ;;
6452+ pc)
6453+ lt_cv_deplibs_check_method=pass_all
6454+ ;;
6455+ esac
6456+ ;;
6457+
6458+tpf*)
6459+ lt_cv_deplibs_check_method=pass_all
6460+ ;;
6461+esac
6462+
6463+fi
6464+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6465+$as_echo "$lt_cv_deplibs_check_method" >&6; }
6466+file_magic_cmd=$lt_cv_file_magic_cmd
6467+deplibs_check_method=$lt_cv_deplibs_check_method
6468+test -z "$deplibs_check_method" && deplibs_check_method=unknown
6469+
6470+
6471+
6472+
6473+
6474+
6475+
6476+
6477+
6478+
6479+
6480+
6481+if test -n "$ac_tool_prefix"; then
6482+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6483+set dummy ${ac_tool_prefix}ar; ac_word=$2
6484+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485+$as_echo_n "checking for $ac_word... " >&6; }
6486+if ${ac_cv_prog_AR+:} false; then :
6487+ $as_echo_n "(cached) " >&6
6488+else
6489+ if test -n "$AR"; then
6490+ ac_cv_prog_AR="$AR" # Let the user override the test.
6491+else
6492+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493+for as_dir in $PATH
6494+do
6495+ IFS=$as_save_IFS
6496+ test -z "$as_dir" && as_dir=.
6497+ for ac_exec_ext in '' $ac_executable_extensions; do
6498+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499+ ac_cv_prog_AR="${ac_tool_prefix}ar"
6500+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501+ break 2
6502+ fi
6503+done
6504+ done
6505+IFS=$as_save_IFS
6506+
6507+fi
6508+fi
6509+AR=$ac_cv_prog_AR
6510+if test -n "$AR"; then
6511+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512+$as_echo "$AR" >&6; }
6513+else
6514+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515+$as_echo "no" >&6; }
6516+fi
6517+
6518+
6519+fi
6520+if test -z "$ac_cv_prog_AR"; then
6521+ ac_ct_AR=$AR
6522+ # Extract the first word of "ar", so it can be a program name with args.
6523+set dummy ar; ac_word=$2
6524+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525+$as_echo_n "checking for $ac_word... " >&6; }
6526+if ${ac_cv_prog_ac_ct_AR+:} false; then :
6527+ $as_echo_n "(cached) " >&6
6528+else
6529+ if test -n "$ac_ct_AR"; then
6530+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6531+else
6532+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533+for as_dir in $PATH
6534+do
6535+ IFS=$as_save_IFS
6536+ test -z "$as_dir" && as_dir=.
6537+ for ac_exec_ext in '' $ac_executable_extensions; do
6538+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539+ ac_cv_prog_ac_ct_AR="ar"
6540+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541+ break 2
6542+ fi
6543+done
6544+ done
6545+IFS=$as_save_IFS
6546+
6547+fi
6548+fi
6549+ac_ct_AR=$ac_cv_prog_ac_ct_AR
6550+if test -n "$ac_ct_AR"; then
6551+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6552+$as_echo "$ac_ct_AR" >&6; }
6553+else
6554+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555+$as_echo "no" >&6; }
6556+fi
6557+
6558+ if test "x$ac_ct_AR" = x; then
6559+ AR="false"
6560+ else
6561+ case $cross_compiling:$ac_tool_warned in
6562+yes:)
6563+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565+ac_tool_warned=yes ;;
6566+esac
6567+ AR=$ac_ct_AR
6568+ fi
6569+else
6570+ AR="$ac_cv_prog_AR"
6571+fi
6572+
6573+test -z "$AR" && AR=ar
6574+test -z "$AR_FLAGS" && AR_FLAGS=cru
6575+
6576+
6577+
6578+
6579+
6580+
6581+
6582+
6583+
6584+
6585+
6586+if test -n "$ac_tool_prefix"; then
6587+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6588+set dummy ${ac_tool_prefix}strip; ac_word=$2
6589+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590+$as_echo_n "checking for $ac_word... " >&6; }
6591+if ${ac_cv_prog_STRIP+:} false; then :
6592+ $as_echo_n "(cached) " >&6
6593+else
6594+ if test -n "$STRIP"; then
6595+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6596+else
6597+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598+for as_dir in $PATH
6599+do
6600+ IFS=$as_save_IFS
6601+ test -z "$as_dir" && as_dir=.
6602+ for ac_exec_ext in '' $ac_executable_extensions; do
6603+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6605+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606+ break 2
6607+ fi
6608+done
6609+ done
6610+IFS=$as_save_IFS
6611+
6612+fi
6613+fi
6614+STRIP=$ac_cv_prog_STRIP
6615+if test -n "$STRIP"; then
6616+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6617+$as_echo "$STRIP" >&6; }
6618+else
6619+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620+$as_echo "no" >&6; }
6621+fi
6622+
6623+
6624+fi
6625+if test -z "$ac_cv_prog_STRIP"; then
6626+ ac_ct_STRIP=$STRIP
6627+ # Extract the first word of "strip", so it can be a program name with args.
6628+set dummy strip; ac_word=$2
6629+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630+$as_echo_n "checking for $ac_word... " >&6; }
6631+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6632+ $as_echo_n "(cached) " >&6
6633+else
6634+ if test -n "$ac_ct_STRIP"; then
6635+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636+else
6637+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638+for as_dir in $PATH
6639+do
6640+ IFS=$as_save_IFS
6641+ test -z "$as_dir" && as_dir=.
6642+ for ac_exec_ext in '' $ac_executable_extensions; do
6643+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644+ ac_cv_prog_ac_ct_STRIP="strip"
6645+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646+ break 2
6647+ fi
6648+done
6649+ done
6650+IFS=$as_save_IFS
6651+
6652+fi
6653+fi
6654+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6655+if test -n "$ac_ct_STRIP"; then
6656+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6657+$as_echo "$ac_ct_STRIP" >&6; }
6658+else
6659+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660+$as_echo "no" >&6; }
6661+fi
6662+
6663+ if test "x$ac_ct_STRIP" = x; then
6664+ STRIP=":"
6665+ else
6666+ case $cross_compiling:$ac_tool_warned in
6667+yes:)
6668+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670+ac_tool_warned=yes ;;
6671+esac
6672+ STRIP=$ac_ct_STRIP
6673+ fi
6674+else
6675+ STRIP="$ac_cv_prog_STRIP"
6676+fi
6677+
6678+test -z "$STRIP" && STRIP=:
6679+
6680+
6681+
6682+
6683+
6684+
6685+if test -n "$ac_tool_prefix"; then
6686+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6687+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6688+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689+$as_echo_n "checking for $ac_word... " >&6; }
6690+if ${ac_cv_prog_RANLIB+:} false; then :
6691+ $as_echo_n "(cached) " >&6
6692+else
6693+ if test -n "$RANLIB"; then
6694+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6695+else
6696+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697+for as_dir in $PATH
6698+do
6699+ IFS=$as_save_IFS
6700+ test -z "$as_dir" && as_dir=.
6701+ for ac_exec_ext in '' $ac_executable_extensions; do
6702+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6704+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705+ break 2
6706+ fi
6707+done
6708+ done
6709+IFS=$as_save_IFS
6710+
6711+fi
6712+fi
6713+RANLIB=$ac_cv_prog_RANLIB
6714+if test -n "$RANLIB"; then
6715+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6716+$as_echo "$RANLIB" >&6; }
6717+else
6718+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719+$as_echo "no" >&6; }
6720+fi
6721+
6722+
6723+fi
6724+if test -z "$ac_cv_prog_RANLIB"; then
6725+ ac_ct_RANLIB=$RANLIB
6726+ # Extract the first word of "ranlib", so it can be a program name with args.
6727+set dummy ranlib; ac_word=$2
6728+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729+$as_echo_n "checking for $ac_word... " >&6; }
6730+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6731+ $as_echo_n "(cached) " >&6
6732+else
6733+ if test -n "$ac_ct_RANLIB"; then
6734+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6735+else
6736+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737+for as_dir in $PATH
6738+do
6739+ IFS=$as_save_IFS
6740+ test -z "$as_dir" && as_dir=.
6741+ for ac_exec_ext in '' $ac_executable_extensions; do
6742+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743+ ac_cv_prog_ac_ct_RANLIB="ranlib"
6744+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745+ break 2
6746+ fi
6747+done
6748+ done
6749+IFS=$as_save_IFS
6750+
6751+fi
6752+fi
6753+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6754+if test -n "$ac_ct_RANLIB"; then
6755+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6756+$as_echo "$ac_ct_RANLIB" >&6; }
6757+else
6758+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759+$as_echo "no" >&6; }
6760+fi
6761+
6762+ if test "x$ac_ct_RANLIB" = x; then
6763+ RANLIB=":"
6764+ else
6765+ case $cross_compiling:$ac_tool_warned in
6766+yes:)
6767+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769+ac_tool_warned=yes ;;
6770+esac
6771+ RANLIB=$ac_ct_RANLIB
6772+ fi
6773+else
6774+ RANLIB="$ac_cv_prog_RANLIB"
6775+fi
6776+
6777+test -z "$RANLIB" && RANLIB=:
6778+
6779+
6780+
6781+
6782+
6783+
6784+# Determine commands to create old-style static archives.
6785+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6786+old_postinstall_cmds='chmod 644 $oldlib'
6787+old_postuninstall_cmds=
6788+
6789+if test -n "$RANLIB"; then
6790+ case $host_os in
6791+ openbsd*)
6792+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6793+ ;;
6794+ *)
6795+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6796+ ;;
6797+ esac
6798+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6799+fi
6800+
6801+case $host_os in
6802+ darwin*)
6803+ lock_old_archive_extraction=yes ;;
6804+ *)
6805+ lock_old_archive_extraction=no ;;
6806+esac
6807+
6808+
6809+
6810+
6811+
6812+
6813+
6814+
6815+
6816+
6817+
6818+
6819+
6820+
6821+
6822+
6823+
6824+
6825+
6826+
6827+
6828+
6829+
6830+
6831+
6832+
6833+
6834+
6835+
6836+
6837+
6838+
6839+
6840+
6841+
6842+
6843+
6844+
6845+
6846+# If no C compiler was specified, use CC.
6847+LTCC=${LTCC-"$CC"}
6848+
6849+# If no C compiler flags were specified, use CFLAGS.
6850+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6851+
6852+# Allow CC to be a program name with arguments.
6853+compiler=$CC
6854+
6855+
6856+# Check for command to grab the raw symbol name followed by C symbol from nm.
6857+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6858+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6859+if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6860+ $as_echo_n "(cached) " >&6
6861+else
6862+
6863+# These are sane defaults that work on at least a few old systems.
6864+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6865+
6866+# Character class describing NM global symbol codes.
6867+symcode='[BCDEGRST]'
6868+
6869+# Regexp to match symbols that can be accessed directly from C.
6870+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6871+
6872+# Define system-specific variables.
6873+case $host_os in
6874+aix*)
6875+ symcode='[BCDT]'
6876+ ;;
6877+cygwin* | mingw* | pw32* | cegcc*)
6878+ symcode='[ABCDGISTW]'
6879+ ;;
6880+hpux*)
6881+ if test "$host_cpu" = ia64; then
6882+ symcode='[ABCDEGRST]'
6883+ fi
6884+ ;;
6885+irix* | nonstopux*)
6886+ symcode='[BCDEGRST]'
6887+ ;;
6888+osf*)
6889+ symcode='[BCDEGQRST]'
6890+ ;;
6891+solaris*)
6892+ symcode='[BDRT]'
6893+ ;;
6894+sco3.2v5*)
6895+ symcode='[DT]'
6896+ ;;
6897+sysv4.2uw2*)
6898+ symcode='[DT]'
6899+ ;;
6900+sysv5* | sco5v6* | unixware* | OpenUNIX*)
6901+ symcode='[ABDT]'
6902+ ;;
6903+sysv4)
6904+ symcode='[DFNSTU]'
6905+ ;;
6906+esac
6907+
6908+# If we're using GNU nm, then use its standard symbol codes.
6909+case `$NM -V 2>&1` in
6910+*GNU* | *'with BFD'*)
6911+ symcode='[ABCDGIRSTW]' ;;
6912+esac
6913+
6914+# Transform an extracted symbol line into a proper C declaration.
6915+# Some systems (esp. on ia64) link data and code symbols differently,
6916+# so use this general approach.
6917+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6918+
6919+# Transform an extracted symbol line into symbol name and symbol address
6920+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6921+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6922+
6923+# Handle CRLF in mingw tool chain
6924+opt_cr=
6925+case $build_os in
6926+mingw*)
6927+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6928+ ;;
6929+esac
6930+
6931+# Try without a prefix underscore, then with it.
6932+for ac_symprfx in "" "_"; do
6933+
6934+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6935+ symxfrm="\\1 $ac_symprfx\\2 \\2"
6936+
6937+ # Write the raw and C identifiers.
6938+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6939+ # Fake it for dumpbin and say T for any non-static function
6940+ # and D for any global variable.
6941+ # Also find C++ and __fastcall symbols from MSVC++,
6942+ # which start with @ or ?.
6943+ lt_cv_sys_global_symbol_pipe="$AWK '"\
6944+" {last_section=section; section=\$ 3};"\
6945+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6946+" \$ 0!~/External *\|/{next};"\
6947+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6948+" {if(hide[section]) next};"\
6949+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6950+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6951+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6952+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6953+" ' prfx=^$ac_symprfx"
6954+ else
6955+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6956+ fi
6957+
6958+ # Check to see that the pipe works correctly.
6959+ pipe_works=no
6960+
6961+ rm -f conftest*
6962+ cat > conftest.$ac_ext <<_LT_EOF
6963+#ifdef __cplusplus
6964+extern "C" {
6965+#endif
6966+char nm_test_var;
6967+void nm_test_func(void);
6968+void nm_test_func(void){}
6969+#ifdef __cplusplus
6970+}
6971+#endif
6972+int main(){nm_test_var='a';nm_test_func();return(0);}
6973+_LT_EOF
6974+
6975+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6976+ (eval $ac_compile) 2>&5
6977+ ac_status=$?
6978+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979+ test $ac_status = 0; }; then
6980+ # Now try to grab the symbols.
6981+ nlist=conftest.nm
6982+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6983+ (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6984+ ac_status=$?
6985+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986+ test $ac_status = 0; } && test -s "$nlist"; then
6987+ # Try sorting and uniquifying the output.
6988+ if sort "$nlist" | uniq > "$nlist"T; then
6989+ mv -f "$nlist"T "$nlist"
6990+ else
6991+ rm -f "$nlist"T
6992+ fi
6993+
6994+ # Make sure that we snagged all the symbols we need.
6995+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6996+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6997+ cat <<_LT_EOF > conftest.$ac_ext
6998+#ifdef __cplusplus
6999+extern "C" {
7000+#endif
7001+
7002+_LT_EOF
7003+ # Now generate the symbol file.
7004+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7005+
7006+ cat <<_LT_EOF >> conftest.$ac_ext
7007+
7008+/* The mapping between symbol names and symbols. */
7009+const struct {
7010+ const char *name;
7011+ void *address;
7012+}
7013+lt__PROGRAM__LTX_preloaded_symbols[] =
7014+{
7015+ { "@PROGRAM@", (void *) 0 },
7016+_LT_EOF
7017+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7018+ cat <<\_LT_EOF >> conftest.$ac_ext
7019+ {0, (void *) 0}
7020+};
7021+
7022+/* This works around a problem in FreeBSD linker */
7023+#ifdef FREEBSD_WORKAROUND
7024+static const void *lt_preloaded_setup() {
7025+ return lt__PROGRAM__LTX_preloaded_symbols;
7026+}
7027+#endif
7028+
7029+#ifdef __cplusplus
7030+}
7031+#endif
7032+_LT_EOF
7033+ # Now try linking the two files.
7034+ mv conftest.$ac_objext conftstm.$ac_objext
7035+ lt_save_LIBS="$LIBS"
7036+ lt_save_CFLAGS="$CFLAGS"
7037+ LIBS="conftstm.$ac_objext"
7038+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7039+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7040+ (eval $ac_link) 2>&5
7041+ ac_status=$?
7042+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043+ test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7044+ pipe_works=yes
7045+ fi
7046+ LIBS="$lt_save_LIBS"
7047+ CFLAGS="$lt_save_CFLAGS"
7048+ else
7049+ echo "cannot find nm_test_func in $nlist" >&5
7050+ fi
7051+ else
7052+ echo "cannot find nm_test_var in $nlist" >&5
7053+ fi
7054+ else
7055+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7056+ fi
7057+ else
7058+ echo "$progname: failed program was:" >&5
7059+ cat conftest.$ac_ext >&5
7060+ fi
7061+ rm -rf conftest* conftst*
7062+
7063+ # Do not use the global_symbol_pipe unless it works.
7064+ if test "$pipe_works" = yes; then
7065+ break
7066+ else
7067+ lt_cv_sys_global_symbol_pipe=
7068+ fi
7069+done
7070+
7071+fi
7072+
7073+if test -z "$lt_cv_sys_global_symbol_pipe"; then
7074+ lt_cv_sys_global_symbol_to_cdecl=
7075+fi
7076+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7077+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7078+$as_echo "failed" >&6; }
7079+else
7080+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7081+$as_echo "ok" >&6; }
7082+fi
7083+
7084+
7085+
7086+
7087+
7088+
7089+
7090+
7091+
7092+
7093+
7094+
7095+
7096+
7097+
7098+
7099+
7100+
7101+
7102+
7103+
7104+
7105+# Check whether --enable-libtool-lock was given.
7106+if test "${enable_libtool_lock+set}" = set; then :
7107+ enableval=$enable_libtool_lock;
7108+fi
7109+
7110+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7111+
7112+# Some flags need to be propagated to the compiler or linker for good
7113+# libtool support.
7114+case $host in
7115+ia64-*-hpux*)
7116+ # Find out which ABI we are using.
7117+ echo 'int i;' > conftest.$ac_ext
7118+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119+ (eval $ac_compile) 2>&5
7120+ ac_status=$?
7121+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122+ test $ac_status = 0; }; then
7123+ case `/usr/bin/file conftest.$ac_objext` in
7124+ *ELF-32*)
7125+ HPUX_IA64_MODE="32"
7126+ ;;
7127+ *ELF-64*)
7128+ HPUX_IA64_MODE="64"
7129+ ;;
7130+ esac
7131+ fi
7132+ rm -rf conftest*
7133+ ;;
7134+*-*-irix6*)
7135+ # Find out which ABI we are using.
7136+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7137+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7138+ (eval $ac_compile) 2>&5
7139+ ac_status=$?
7140+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141+ test $ac_status = 0; }; then
7142+ if test "$lt_cv_prog_gnu_ld" = yes; then
7143+ case `/usr/bin/file conftest.$ac_objext` in
7144+ *32-bit*)
7145+ LD="${LD-ld} -melf32bsmip"
7146+ ;;
7147+ *N32*)
7148+ LD="${LD-ld} -melf32bmipn32"
7149+ ;;
7150+ *64-bit*)
7151+ LD="${LD-ld} -melf64bmip"
7152+ ;;
7153+ esac
7154+ else
7155+ case `/usr/bin/file conftest.$ac_objext` in
7156+ *32-bit*)
7157+ LD="${LD-ld} -32"
7158+ ;;
7159+ *N32*)
7160+ LD="${LD-ld} -n32"
7161+ ;;
7162+ *64-bit*)
7163+ LD="${LD-ld} -64"
7164+ ;;
7165+ esac
7166+ fi
7167+ fi
7168+ rm -rf conftest*
7169+ ;;
7170+
7171+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7172+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7173+ # Find out which ABI we are using.
7174+ echo 'int i;' > conftest.$ac_ext
7175+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7176+ (eval $ac_compile) 2>&5
7177+ ac_status=$?
7178+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7179+ test $ac_status = 0; }; then
7180+ case `/usr/bin/file conftest.o` in
7181+ *32-bit*)
7182+ case $host in
7183+ x86_64-*kfreebsd*-gnu)
7184+ LD="${LD-ld} -m elf_i386_fbsd"
7185+ ;;
7186+ x86_64-*linux*)
7187+ case `/usr/bin/file conftest.o` in
7188+ *x86-64*)
7189+ LD="${LD-ld} -m elf32_x86_64"
7190+ ;;
7191+ *)
7192+ LD="${LD-ld} -m elf_i386"
7193+ ;;
7194+ esac
7195+ ;;
7196+ powerpc64le-*linux*)
7197+ LD="${LD-ld} -m elf32lppclinux"
7198+ ;;
7199+ powerpc64-*linux*)
7200+ LD="${LD-ld} -m elf32ppclinux"
7201+ ;;
7202+ s390x-*linux*)
7203+ LD="${LD-ld} -m elf_s390"
7204+ ;;
7205+ sparc64-*linux*)
7206+ LD="${LD-ld} -m elf32_sparc"
7207+ ;;
7208+ esac
7209+ ;;
7210+ *64-bit*)
7211+ case $host in
7212+ x86_64-*kfreebsd*-gnu)
7213+ LD="${LD-ld} -m elf_x86_64_fbsd"
7214+ ;;
7215+ x86_64-*linux*)
7216+ LD="${LD-ld} -m elf_x86_64"
7217+ ;;
7218+ powerpcle-*linux*)
7219+ LD="${LD-ld} -m elf64lppc"
7220+ ;;
7221+ powerpc-*linux*)
7222+ LD="${LD-ld} -m elf64ppc"
7223+ ;;
7224+ s390*-*linux*|s390*-*tpf*)
7225+ LD="${LD-ld} -m elf64_s390"
7226+ ;;
7227+ sparc*-*linux*)
7228+ LD="${LD-ld} -m elf64_sparc"
7229+ ;;
7230+ esac
7231+ ;;
7232+ esac
7233+ fi
7234+ rm -rf conftest*
7235+ ;;
7236+
7237+*-*-sco3.2v5*)
7238+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7239+ SAVE_CFLAGS="$CFLAGS"
7240+ CFLAGS="$CFLAGS -belf"
7241+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7242+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7243+if ${lt_cv_cc_needs_belf+:} false; then :
7244+ $as_echo_n "(cached) " >&6
7245+else
7246+ ac_ext=c
7247+ac_cpp='$CPP $CPPFLAGS'
7248+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250+ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251+
7252+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253+/* end confdefs.h. */
7254+
7255+int
7256+main ()
7257+{
7258+
7259+ ;
7260+ return 0;
7261+}
7262+_ACEOF
7263+if ac_fn_c_try_link "$LINENO"; then :
7264+ lt_cv_cc_needs_belf=yes
7265+else
7266+ lt_cv_cc_needs_belf=no
7267+fi
7268+rm -f core conftest.err conftest.$ac_objext \
7269+ conftest$ac_exeext conftest.$ac_ext
7270+ ac_ext=c
7271+ac_cpp='$CPP $CPPFLAGS'
7272+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274+ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275+
7276+fi
7277+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7278+$as_echo "$lt_cv_cc_needs_belf" >&6; }
7279+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7280+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7281+ CFLAGS="$SAVE_CFLAGS"
7282+ fi
7283+ ;;
7284+sparc*-*solaris*)
7285+ # Find out which ABI we are using.
7286+ echo 'int i;' > conftest.$ac_ext
7287+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7288+ (eval $ac_compile) 2>&5
7289+ ac_status=$?
7290+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291+ test $ac_status = 0; }; then
7292+ case `/usr/bin/file conftest.o` in
7293+ *64-bit*)
7294+ case $lt_cv_prog_gnu_ld in
7295+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
7296+ *)
7297+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7298+ LD="${LD-ld} -64"
7299+ fi
7300+ ;;
7301+ esac
7302+ ;;
7303+ esac
7304+ fi
7305+ rm -rf conftest*
7306+ ;;
7307+esac
7308+
7309+need_locks="$enable_libtool_lock"
7310+
7311+
7312+ case $host_os in
7313+ rhapsody* | darwin*)
7314+ if test -n "$ac_tool_prefix"; then
7315+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7316+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7317+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318+$as_echo_n "checking for $ac_word... " >&6; }
7319+if ${ac_cv_prog_DSYMUTIL+:} false; then :
7320+ $as_echo_n "(cached) " >&6
7321+else
7322+ if test -n "$DSYMUTIL"; then
7323+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7324+else
7325+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326+for as_dir in $PATH
7327+do
7328+ IFS=$as_save_IFS
7329+ test -z "$as_dir" && as_dir=.
7330+ for ac_exec_ext in '' $ac_executable_extensions; do
7331+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7333+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334+ break 2
7335+ fi
7336+done
7337+ done
7338+IFS=$as_save_IFS
7339+
7340+fi
7341+fi
7342+DSYMUTIL=$ac_cv_prog_DSYMUTIL
7343+if test -n "$DSYMUTIL"; then
7344+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7345+$as_echo "$DSYMUTIL" >&6; }
7346+else
7347+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348+$as_echo "no" >&6; }
7349+fi
7350+
7351+
7352+fi
7353+if test -z "$ac_cv_prog_DSYMUTIL"; then
7354+ ac_ct_DSYMUTIL=$DSYMUTIL
7355+ # Extract the first word of "dsymutil", so it can be a program name with args.
7356+set dummy dsymutil; ac_word=$2
7357+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358+$as_echo_n "checking for $ac_word... " >&6; }
7359+if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7360+ $as_echo_n "(cached) " >&6
7361+else
7362+ if test -n "$ac_ct_DSYMUTIL"; then
7363+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7364+else
7365+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366+for as_dir in $PATH
7367+do
7368+ IFS=$as_save_IFS
7369+ test -z "$as_dir" && as_dir=.
7370+ for ac_exec_ext in '' $ac_executable_extensions; do
7371+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7373+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374+ break 2
7375+ fi
7376+done
7377+ done
7378+IFS=$as_save_IFS
7379+
7380+fi
7381+fi
7382+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7383+if test -n "$ac_ct_DSYMUTIL"; then
7384+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7385+$as_echo "$ac_ct_DSYMUTIL" >&6; }
7386+else
7387+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388+$as_echo "no" >&6; }
7389+fi
7390+
7391+ if test "x$ac_ct_DSYMUTIL" = x; then
7392+ DSYMUTIL=":"
7393+ else
7394+ case $cross_compiling:$ac_tool_warned in
7395+yes:)
7396+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398+ac_tool_warned=yes ;;
7399+esac
7400+ DSYMUTIL=$ac_ct_DSYMUTIL
7401+ fi
7402+else
7403+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7404+fi
7405+
7406+ if test -n "$ac_tool_prefix"; then
7407+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7408+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7409+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410+$as_echo_n "checking for $ac_word... " >&6; }
7411+if ${ac_cv_prog_NMEDIT+:} false; then :
7412+ $as_echo_n "(cached) " >&6
7413+else
7414+ if test -n "$NMEDIT"; then
7415+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7416+else
7417+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418+for as_dir in $PATH
7419+do
7420+ IFS=$as_save_IFS
7421+ test -z "$as_dir" && as_dir=.
7422+ for ac_exec_ext in '' $ac_executable_extensions; do
7423+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7425+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426+ break 2
7427+ fi
7428+done
7429+ done
7430+IFS=$as_save_IFS
7431+
7432+fi
7433+fi
7434+NMEDIT=$ac_cv_prog_NMEDIT
7435+if test -n "$NMEDIT"; then
7436+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7437+$as_echo "$NMEDIT" >&6; }
7438+else
7439+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440+$as_echo "no" >&6; }
7441+fi
7442+
7443+
7444+fi
7445+if test -z "$ac_cv_prog_NMEDIT"; then
7446+ ac_ct_NMEDIT=$NMEDIT
7447+ # Extract the first word of "nmedit", so it can be a program name with args.
7448+set dummy nmedit; ac_word=$2
7449+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450+$as_echo_n "checking for $ac_word... " >&6; }
7451+if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7452+ $as_echo_n "(cached) " >&6
7453+else
7454+ if test -n "$ac_ct_NMEDIT"; then
7455+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7456+else
7457+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458+for as_dir in $PATH
7459+do
7460+ IFS=$as_save_IFS
7461+ test -z "$as_dir" && as_dir=.
7462+ for ac_exec_ext in '' $ac_executable_extensions; do
7463+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
7465+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466+ break 2
7467+ fi
7468+done
7469+ done
7470+IFS=$as_save_IFS
7471+
7472+fi
7473+fi
7474+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7475+if test -n "$ac_ct_NMEDIT"; then
7476+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7477+$as_echo "$ac_ct_NMEDIT" >&6; }
7478+else
7479+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480+$as_echo "no" >&6; }
7481+fi
7482+
7483+ if test "x$ac_ct_NMEDIT" = x; then
7484+ NMEDIT=":"
7485+ else
7486+ case $cross_compiling:$ac_tool_warned in
7487+yes:)
7488+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490+ac_tool_warned=yes ;;
7491+esac
7492+ NMEDIT=$ac_ct_NMEDIT
7493+ fi
7494+else
7495+ NMEDIT="$ac_cv_prog_NMEDIT"
7496+fi
7497+
7498+ if test -n "$ac_tool_prefix"; then
7499+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7500+set dummy ${ac_tool_prefix}lipo; ac_word=$2
7501+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502+$as_echo_n "checking for $ac_word... " >&6; }
7503+if ${ac_cv_prog_LIPO+:} false; then :
7504+ $as_echo_n "(cached) " >&6
7505+else
7506+ if test -n "$LIPO"; then
7507+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7508+else
7509+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510+for as_dir in $PATH
7511+do
7512+ IFS=$as_save_IFS
7513+ test -z "$as_dir" && as_dir=.
7514+ for ac_exec_ext in '' $ac_executable_extensions; do
7515+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7517+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518+ break 2
7519+ fi
7520+done
7521+ done
7522+IFS=$as_save_IFS
7523+
7524+fi
7525+fi
7526+LIPO=$ac_cv_prog_LIPO
7527+if test -n "$LIPO"; then
7528+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7529+$as_echo "$LIPO" >&6; }
7530+else
7531+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532+$as_echo "no" >&6; }
7533+fi
7534+
7535+
7536+fi
7537+if test -z "$ac_cv_prog_LIPO"; then
7538+ ac_ct_LIPO=$LIPO
7539+ # Extract the first word of "lipo", so it can be a program name with args.
7540+set dummy lipo; ac_word=$2
7541+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542+$as_echo_n "checking for $ac_word... " >&6; }
7543+if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7544+ $as_echo_n "(cached) " >&6
7545+else
7546+ if test -n "$ac_ct_LIPO"; then
7547+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7548+else
7549+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550+for as_dir in $PATH
7551+do
7552+ IFS=$as_save_IFS
7553+ test -z "$as_dir" && as_dir=.
7554+ for ac_exec_ext in '' $ac_executable_extensions; do
7555+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556+ ac_cv_prog_ac_ct_LIPO="lipo"
7557+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558+ break 2
7559+ fi
7560+done
7561+ done
7562+IFS=$as_save_IFS
7563+
7564+fi
7565+fi
7566+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7567+if test -n "$ac_ct_LIPO"; then
7568+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7569+$as_echo "$ac_ct_LIPO" >&6; }
7570+else
7571+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572+$as_echo "no" >&6; }
7573+fi
7574+
7575+ if test "x$ac_ct_LIPO" = x; then
7576+ LIPO=":"
7577+ else
7578+ case $cross_compiling:$ac_tool_warned in
7579+yes:)
7580+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582+ac_tool_warned=yes ;;
7583+esac
7584+ LIPO=$ac_ct_LIPO
7585+ fi
7586+else
7587+ LIPO="$ac_cv_prog_LIPO"
7588+fi
7589+
7590+ if test -n "$ac_tool_prefix"; then
7591+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7592+set dummy ${ac_tool_prefix}otool; ac_word=$2
7593+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594+$as_echo_n "checking for $ac_word... " >&6; }
7595+if ${ac_cv_prog_OTOOL+:} false; then :
7596+ $as_echo_n "(cached) " >&6
7597+else
7598+ if test -n "$OTOOL"; then
7599+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7600+else
7601+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602+for as_dir in $PATH
7603+do
7604+ IFS=$as_save_IFS
7605+ test -z "$as_dir" && as_dir=.
7606+ for ac_exec_ext in '' $ac_executable_extensions; do
7607+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7609+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610+ break 2
7611+ fi
7612+done
7613+ done
7614+IFS=$as_save_IFS
7615+
7616+fi
7617+fi
7618+OTOOL=$ac_cv_prog_OTOOL
7619+if test -n "$OTOOL"; then
7620+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7621+$as_echo "$OTOOL" >&6; }
7622+else
7623+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624+$as_echo "no" >&6; }
7625+fi
7626+
7627+
7628+fi
7629+if test -z "$ac_cv_prog_OTOOL"; then
7630+ ac_ct_OTOOL=$OTOOL
7631+ # Extract the first word of "otool", so it can be a program name with args.
7632+set dummy otool; ac_word=$2
7633+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634+$as_echo_n "checking for $ac_word... " >&6; }
7635+if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7636+ $as_echo_n "(cached) " >&6
7637+else
7638+ if test -n "$ac_ct_OTOOL"; then
7639+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7640+else
7641+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642+for as_dir in $PATH
7643+do
7644+ IFS=$as_save_IFS
7645+ test -z "$as_dir" && as_dir=.
7646+ for ac_exec_ext in '' $ac_executable_extensions; do
7647+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648+ ac_cv_prog_ac_ct_OTOOL="otool"
7649+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650+ break 2
7651+ fi
7652+done
7653+ done
7654+IFS=$as_save_IFS
7655+
7656+fi
7657+fi
7658+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7659+if test -n "$ac_ct_OTOOL"; then
7660+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7661+$as_echo "$ac_ct_OTOOL" >&6; }
7662+else
7663+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664+$as_echo "no" >&6; }
7665+fi
7666+
7667+ if test "x$ac_ct_OTOOL" = x; then
7668+ OTOOL=":"
7669+ else
7670+ case $cross_compiling:$ac_tool_warned in
7671+yes:)
7672+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7673+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674+ac_tool_warned=yes ;;
7675+esac
7676+ OTOOL=$ac_ct_OTOOL
7677+ fi
7678+else
7679+ OTOOL="$ac_cv_prog_OTOOL"
7680+fi
7681+
7682+ if test -n "$ac_tool_prefix"; then
7683+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7684+set dummy ${ac_tool_prefix}otool64; ac_word=$2
7685+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686+$as_echo_n "checking for $ac_word... " >&6; }
7687+if ${ac_cv_prog_OTOOL64+:} false; then :
7688+ $as_echo_n "(cached) " >&6
7689+else
7690+ if test -n "$OTOOL64"; then
7691+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7692+else
7693+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694+for as_dir in $PATH
7695+do
7696+ IFS=$as_save_IFS
7697+ test -z "$as_dir" && as_dir=.
7698+ for ac_exec_ext in '' $ac_executable_extensions; do
7699+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7701+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702+ break 2
7703+ fi
7704+done
7705+ done
7706+IFS=$as_save_IFS
7707+
7708+fi
7709+fi
7710+OTOOL64=$ac_cv_prog_OTOOL64
7711+if test -n "$OTOOL64"; then
7712+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7713+$as_echo "$OTOOL64" >&6; }
7714+else
7715+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716+$as_echo "no" >&6; }
7717+fi
7718+
7719+
7720+fi
7721+if test -z "$ac_cv_prog_OTOOL64"; then
7722+ ac_ct_OTOOL64=$OTOOL64
7723+ # Extract the first word of "otool64", so it can be a program name with args.
7724+set dummy otool64; ac_word=$2
7725+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726+$as_echo_n "checking for $ac_word... " >&6; }
7727+if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7728+ $as_echo_n "(cached) " >&6
7729+else
7730+ if test -n "$ac_ct_OTOOL64"; then
7731+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7732+else
7733+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734+for as_dir in $PATH
7735+do
7736+ IFS=$as_save_IFS
7737+ test -z "$as_dir" && as_dir=.
7738+ for ac_exec_ext in '' $ac_executable_extensions; do
7739+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740+ ac_cv_prog_ac_ct_OTOOL64="otool64"
7741+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742+ break 2
7743+ fi
7744+done
7745+ done
7746+IFS=$as_save_IFS
7747+
7748+fi
7749+fi
7750+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7751+if test -n "$ac_ct_OTOOL64"; then
7752+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7753+$as_echo "$ac_ct_OTOOL64" >&6; }
7754+else
7755+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756+$as_echo "no" >&6; }
7757+fi
7758+
7759+ if test "x$ac_ct_OTOOL64" = x; then
7760+ OTOOL64=":"
7761+ else
7762+ case $cross_compiling:$ac_tool_warned in
7763+yes:)
7764+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766+ac_tool_warned=yes ;;
7767+esac
7768+ OTOOL64=$ac_ct_OTOOL64
7769+ fi
7770+else
7771+ OTOOL64="$ac_cv_prog_OTOOL64"
7772+fi
7773+
7774+
7775+
7776+
7777+
7778+
7779+
7780+
7781+
7782+
7783+
7784+
7785+
7786+
7787+
7788+
7789+
7790+
7791+
7792+
7793+
7794+
7795+
7796+
7797+
7798+
7799+
7800+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7801+$as_echo_n "checking for -single_module linker flag... " >&6; }
7802+if ${lt_cv_apple_cc_single_mod+:} false; then :
7803+ $as_echo_n "(cached) " >&6
7804+else
7805+ lt_cv_apple_cc_single_mod=no
7806+ if test -z "${LT_MULTI_MODULE}"; then
7807+ # By default we will add the -single_module flag. You can override
7808+ # by either setting the environment variable LT_MULTI_MODULE
7809+ # non-empty at configure time, or by adding -multi_module to the
7810+ # link flags.
7811+ rm -rf libconftest.dylib*
7812+ echo "int foo(void){return 1;}" > conftest.c
7813+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7814+-dynamiclib -Wl,-single_module conftest.c" >&5
7815+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7816+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7817+ _lt_result=$?
7818+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7819+ lt_cv_apple_cc_single_mod=yes
7820+ else
7821+ cat conftest.err >&5
7822+ fi
7823+ rm -rf libconftest.dylib*
7824+ rm -f conftest.*
7825+ fi
7826+fi
7827+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7828+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7829+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7830+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7831+if ${lt_cv_ld_exported_symbols_list+:} false; then :
7832+ $as_echo_n "(cached) " >&6
7833+else
7834+ lt_cv_ld_exported_symbols_list=no
7835+ save_LDFLAGS=$LDFLAGS
7836+ echo "_main" > conftest.sym
7837+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7838+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839+/* end confdefs.h. */
7840+
7841+int
7842+main ()
7843+{
7844+
7845+ ;
7846+ return 0;
7847+}
7848+_ACEOF
7849+if ac_fn_c_try_link "$LINENO"; then :
7850+ lt_cv_ld_exported_symbols_list=yes
7851+else
7852+ lt_cv_ld_exported_symbols_list=no
7853+fi
7854+rm -f core conftest.err conftest.$ac_objext \
7855+ conftest$ac_exeext conftest.$ac_ext
7856+ LDFLAGS="$save_LDFLAGS"
7857+
7858+fi
7859+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7860+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7861+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7862+$as_echo_n "checking for -force_load linker flag... " >&6; }
7863+if ${lt_cv_ld_force_load+:} false; then :
7864+ $as_echo_n "(cached) " >&6
7865+else
7866+ lt_cv_ld_force_load=no
7867+ cat > conftest.c << _LT_EOF
7868+int forced_loaded() { return 2;}
7869+_LT_EOF
7870+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7871+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7872+ echo "$AR cru libconftest.a conftest.o" >&5
7873+ $AR cru libconftest.a conftest.o 2>&5
7874+ cat > conftest.c << _LT_EOF
7875+int main() { return 0;}
7876+_LT_EOF
7877+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7878+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7879+ _lt_result=$?
7880+ if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7881+ lt_cv_ld_force_load=yes
7882+ else
7883+ cat conftest.err >&5
7884+ fi
7885+ rm -f conftest.err libconftest.a conftest conftest.c
7886+ rm -rf conftest.dSYM
7887+
7888+fi
7889+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7890+$as_echo "$lt_cv_ld_force_load" >&6; }
7891+ case $host_os in
7892+ rhapsody* | darwin1.[012])
7893+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7894+ darwin1.*)
7895+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7896+ darwin*) # darwin 5.x on
7897+ # if running on 10.5 or later, the deployment target defaults
7898+ # to the OS version, if on x86, and 10.4, the deployment
7899+ # target defaults to 10.4. Don't you love it?
7900+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7901+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7902+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7903+ 10.[012][,.]*)
7904+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7905+ 10.*)
7906+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907+ esac
7908+ ;;
7909+ esac
7910+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7911+ _lt_dar_single_mod='$single_module'
7912+ fi
7913+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7914+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7915+ else
7916+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7917+ fi
7918+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7919+ _lt_dsymutil='~$DSYMUTIL $lib || :'
7920+ else
7921+ _lt_dsymutil=
7922+ fi
7923+ ;;
7924+ esac
7925+
7926+for ac_header in dlfcn.h
7927+do :
7928+ ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7929+"
7930+if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7931+ cat >>confdefs.h <<_ACEOF
7932+#define HAVE_DLFCN_H 1
7933+_ACEOF
7934+
7935+fi
7936+
7937+done
7938+
7939+
7940+
7941+
7942+
7943+# Set options
7944+
7945+
7946+
7947+ enable_dlopen=no
7948+
7949+
7950+ enable_win32_dll=no
7951+
7952+
7953+
7954+ # Check whether --enable-static was given.
7955+if test "${enable_static+set}" = set; then :
7956+ enableval=$enable_static; p=${PACKAGE-default}
7957+ case $enableval in
7958+ yes) enable_static=yes ;;
7959+ no) enable_static=no ;;
7960+ *)
7961+ enable_static=no
7962+ # Look at the argument we got. We use all the common list separators.
7963+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964+ for pkg in $enableval; do
7965+ IFS="$lt_save_ifs"
7966+ if test "X$pkg" = "X$p"; then
7967+ enable_static=yes
7968+ fi
7969+ done
7970+ IFS="$lt_save_ifs"
7971+ ;;
7972+ esac
7973+else
7974+ enable_static=yes
7975+fi
7976+
7977+
7978+
7979+
7980+
7981+
7982+
7983+
7984+
7985+
7986+# Check whether --with-pic was given.
7987+if test "${with_pic+set}" = set; then :
7988+ withval=$with_pic; pic_mode="$withval"
7989+else
7990+ pic_mode=default
7991+fi
7992+
7993+
7994+test -z "$pic_mode" && pic_mode=default
7995+
7996+
7997+
7998+
7999+
8000+
8001+
8002+ # Check whether --enable-fast-install was given.
8003+if test "${enable_fast_install+set}" = set; then :
8004+ enableval=$enable_fast_install; p=${PACKAGE-default}
8005+ case $enableval in
8006+ yes) enable_fast_install=yes ;;
8007+ no) enable_fast_install=no ;;
8008+ *)
8009+ enable_fast_install=no
8010+ # Look at the argument we got. We use all the common list separators.
8011+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8012+ for pkg in $enableval; do
8013+ IFS="$lt_save_ifs"
8014+ if test "X$pkg" = "X$p"; then
8015+ enable_fast_install=yes
8016+ fi
8017+ done
8018+ IFS="$lt_save_ifs"
8019+ ;;
8020+ esac
8021+else
8022+ enable_fast_install=yes
8023+fi
8024+
8025+
8026+
8027+
8028+
8029+
8030+
8031+
8032+
8033+
8034+
8035+# This can be used to rebuild libtool when needed
8036+LIBTOOL_DEPS="$ltmain"
8037+
8038+# Always use our own libtool.
8039+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8040+
8041+
8042+
8043+
8044+
8045+
8046+
8047+
8048+
8049+
8050+
8051+
8052+
8053+
8054+
8055+
8056+
8057+
8058+
8059+
8060+
8061+
8062+
8063+
8064+
8065+
8066+test -z "$LN_S" && LN_S="ln -s"
8067+
8068+
8069+
8070+
8071+
8072+
8073+
8074+
8075+
8076+
8077+
8078+
8079+
8080+
8081+if test -n "${ZSH_VERSION+set}" ; then
8082+ setopt NO_GLOB_SUBST
8083+fi
8084+
8085+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8086+$as_echo_n "checking for objdir... " >&6; }
8087+if ${lt_cv_objdir+:} false; then :
8088+ $as_echo_n "(cached) " >&6
8089+else
8090+ rm -f .libs 2>/dev/null
8091+mkdir .libs 2>/dev/null
8092+if test -d .libs; then
8093+ lt_cv_objdir=.libs
8094+else
8095+ # MS-DOS does not allow filenames that begin with a dot.
8096+ lt_cv_objdir=_libs
8097+fi
8098+rmdir .libs 2>/dev/null
8099+fi
8100+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8101+$as_echo "$lt_cv_objdir" >&6; }
8102+objdir=$lt_cv_objdir
8103+
8104+
8105+
8106+
8107+
8108+cat >>confdefs.h <<_ACEOF
8109+#define LT_OBJDIR "$lt_cv_objdir/"
8110+_ACEOF
8111+
8112+
8113+
8114+
8115+case $host_os in
8116+aix3*)
8117+ # AIX sometimes has problems with the GCC collect2 program. For some
8118+ # reason, if we set the COLLECT_NAMES environment variable, the problems
8119+ # vanish in a puff of smoke.
8120+ if test "X${COLLECT_NAMES+set}" != Xset; then
8121+ COLLECT_NAMES=
8122+ export COLLECT_NAMES
8123+ fi
8124+ ;;
8125+esac
8126+
8127+# Global variables:
8128+ofile=libtool
8129+can_build_shared=yes
8130+
8131+# All known linkers require a `.a' archive for static linking (except MSVC,
8132+# which needs '.lib').
8133+libext=a
8134+
8135+with_gnu_ld="$lt_cv_prog_gnu_ld"
8136+
8137+old_CC="$CC"
8138+old_CFLAGS="$CFLAGS"
8139+
8140+# Set sane defaults for various variables
8141+test -z "$CC" && CC=cc
8142+test -z "$LTCC" && LTCC=$CC
8143+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8144+test -z "$LD" && LD=ld
8145+test -z "$ac_objext" && ac_objext=o
8146+
8147+for cc_temp in $compiler""; do
8148+ case $cc_temp in
8149+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8150+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8151+ \-*) ;;
8152+ *) break;;
8153+ esac
8154+done
8155+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8156+
8157+
8158+# Only perform the check for file, if the check method requires it
8159+test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160+case $deplibs_check_method in
8161+file_magic*)
8162+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8163+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8164+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8165+if ${lt_cv_path_MAGIC_CMD+:} false; then :
8166+ $as_echo_n "(cached) " >&6
8167+else
8168+ case $MAGIC_CMD in
8169+[\\/*] | ?:[\\/]*)
8170+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8171+ ;;
8172+*)
8173+ lt_save_MAGIC_CMD="$MAGIC_CMD"
8174+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8175+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176+ for ac_dir in $ac_dummy; do
8177+ IFS="$lt_save_ifs"
8178+ test -z "$ac_dir" && ac_dir=.
8179+ if test -f $ac_dir/${ac_tool_prefix}file; then
8180+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8181+ if test -n "$file_magic_test_file"; then
8182+ case $deplibs_check_method in
8183+ "file_magic "*)
8184+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187+ $EGREP "$file_magic_regex" > /dev/null; then
8188+ :
8189+ else
8190+ cat <<_LT_EOF 1>&2
8191+
8192+*** Warning: the command libtool uses to detect shared libraries,
8193+*** $file_magic_cmd, produces output that libtool cannot recognize.
8194+*** The result is that libtool may fail to recognize shared libraries
8195+*** as such. This will affect the creation of libtool libraries that
8196+*** depend on shared libraries, but programs linked with such libtool
8197+*** libraries will work regardless of this problem. Nevertheless, you
8198+*** may want to report the problem to your system manager and/or to
8199+*** bug-libtool@gnu.org
8200+
8201+_LT_EOF
8202+ fi ;;
8203+ esac
8204+ fi
8205+ break
8206+ fi
8207+ done
8208+ IFS="$lt_save_ifs"
8209+ MAGIC_CMD="$lt_save_MAGIC_CMD"
8210+ ;;
8211+esac
8212+fi
8213+
8214+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8215+if test -n "$MAGIC_CMD"; then
8216+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217+$as_echo "$MAGIC_CMD" >&6; }
8218+else
8219+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220+$as_echo "no" >&6; }
8221+fi
8222+
8223+
8224+
8225+
8226+
8227+if test -z "$lt_cv_path_MAGIC_CMD"; then
8228+ if test -n "$ac_tool_prefix"; then
8229+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8230+$as_echo_n "checking for file... " >&6; }
8231+if ${lt_cv_path_MAGIC_CMD+:} false; then :
8232+ $as_echo_n "(cached) " >&6
8233+else
8234+ case $MAGIC_CMD in
8235+[\\/*] | ?:[\\/]*)
8236+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8237+ ;;
8238+*)
8239+ lt_save_MAGIC_CMD="$MAGIC_CMD"
8240+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8241+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8242+ for ac_dir in $ac_dummy; do
8243+ IFS="$lt_save_ifs"
8244+ test -z "$ac_dir" && ac_dir=.
8245+ if test -f $ac_dir/file; then
8246+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
8247+ if test -n "$file_magic_test_file"; then
8248+ case $deplibs_check_method in
8249+ "file_magic "*)
8250+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8251+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8253+ $EGREP "$file_magic_regex" > /dev/null; then
8254+ :
8255+ else
8256+ cat <<_LT_EOF 1>&2
8257+
8258+*** Warning: the command libtool uses to detect shared libraries,
8259+*** $file_magic_cmd, produces output that libtool cannot recognize.
8260+*** The result is that libtool may fail to recognize shared libraries
8261+*** as such. This will affect the creation of libtool libraries that
8262+*** depend on shared libraries, but programs linked with such libtool
8263+*** libraries will work regardless of this problem. Nevertheless, you
8264+*** may want to report the problem to your system manager and/or to
8265+*** bug-libtool@gnu.org
8266+
8267+_LT_EOF
8268+ fi ;;
8269+ esac
8270+ fi
8271+ break
8272+ fi
8273+ done
8274+ IFS="$lt_save_ifs"
8275+ MAGIC_CMD="$lt_save_MAGIC_CMD"
8276+ ;;
8277+esac
8278+fi
8279+
8280+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8281+if test -n "$MAGIC_CMD"; then
8282+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8283+$as_echo "$MAGIC_CMD" >&6; }
8284+else
8285+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286+$as_echo "no" >&6; }
8287+fi
8288+
8289+
8290+ else
8291+ MAGIC_CMD=:
8292+ fi
8293+fi
8294+
8295+ fi
8296+ ;;
8297+esac
8298+
8299+# Use C for the default configuration in the libtool script
8300+
8301+lt_save_CC="$CC"
8302+ac_ext=c
8303+ac_cpp='$CPP $CPPFLAGS'
8304+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8305+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8306+ac_compiler_gnu=$ac_cv_c_compiler_gnu
8307+
8308+
8309+# Source file extension for C test sources.
8310+ac_ext=c
8311+
8312+# Object file extension for compiled C test sources.
8313+objext=o
8314+objext=$objext
8315+
8316+# Code to be used in simple compile tests
8317+lt_simple_compile_test_code="int some_variable = 0;"
8318+
8319+# Code to be used in simple link tests
8320+lt_simple_link_test_code='int main(){return(0);}'
8321+
8322+
8323+
8324+
8325+
8326+
8327+
8328+# If no C compiler was specified, use CC.
8329+LTCC=${LTCC-"$CC"}
8330+
8331+# If no C compiler flags were specified, use CFLAGS.
8332+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8333+
8334+# Allow CC to be a program name with arguments.
8335+compiler=$CC
8336+
8337+# Save the default compiler, since it gets overwritten when the other
8338+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8339+compiler_DEFAULT=$CC
8340+
8341+# save warnings/boilerplate of simple test code
8342+ac_outfile=conftest.$ac_objext
8343+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8344+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8345+_lt_compiler_boilerplate=`cat conftest.err`
8346+$RM conftest*
8347+
8348+ac_outfile=conftest.$ac_objext
8349+echo "$lt_simple_link_test_code" >conftest.$ac_ext
8350+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8351+_lt_linker_boilerplate=`cat conftest.err`
8352+$RM -r conftest*
8353+
8354+
8355+## CAVEAT EMPTOR:
8356+## There is no encapsulation within the following macros, do not change
8357+## the running order or otherwise move them around unless you know exactly
8358+## what you are doing...
8359+if test -n "$compiler"; then
8360+
8361+lt_prog_compiler_no_builtin_flag=
8362+
8363+if test "$GCC" = yes; then
8364+ case $cc_basename in
8365+ nvcc*)
8366+ lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8367+ *)
8368+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8369+ esac
8370+
8371+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8372+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8373+if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8374+ $as_echo_n "(cached) " >&6
8375+else
8376+ lt_cv_prog_compiler_rtti_exceptions=no
8377+ ac_outfile=conftest.$ac_objext
8378+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379+ lt_compiler_flag="-fno-rtti -fno-exceptions"
8380+ # Insert the option either (1) after the last *FLAGS variable, or
8381+ # (2) before a word containing "conftest.", or (3) at the end.
8382+ # Note that $ac_compile itself does not contain backslashes and begins
8383+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8384+ # The option is referenced via a variable to avoid confusing sed.
8385+ lt_compile=`echo "$ac_compile" | $SED \
8386+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388+ -e 's:$: $lt_compiler_flag:'`
8389+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390+ (eval "$lt_compile" 2>conftest.err)
8391+ ac_status=$?
8392+ cat conftest.err >&5
8393+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394+ if (exit $ac_status) && test -s "$ac_outfile"; then
8395+ # The compiler can only warn and ignore the option if not recognized
8396+ # So say no if there are warnings other than the usual output.
8397+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8398+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8400+ lt_cv_prog_compiler_rtti_exceptions=yes
8401+ fi
8402+ fi
8403+ $RM conftest*
8404+
8405+fi
8406+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8407+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8408+
8409+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8410+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8411+else
8412+ :
8413+fi
8414+
8415+fi
8416+
8417+
8418+
8419+
8420+
8421+
8422+ lt_prog_compiler_wl=
8423+lt_prog_compiler_pic=
8424+lt_prog_compiler_static=
8425+
8426+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8427+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8428+
8429+ if test "$GCC" = yes; then
8430+ lt_prog_compiler_wl='-Wl,'
8431+ lt_prog_compiler_static='-static'
8432+
8433+ case $host_os in
8434+ aix*)
8435+ # All AIX code is PIC.
8436+ if test "$host_cpu" = ia64; then
8437+ # AIX 5 now supports IA64 processor
8438+ lt_prog_compiler_static='-Bstatic'
8439+ fi
8440+ lt_prog_compiler_pic='-fPIC'
8441+ ;;
8442+
8443+ amigaos*)
8444+ case $host_cpu in
8445+ powerpc)
8446+ # see comment about AmigaOS4 .so support
8447+ lt_prog_compiler_pic='-fPIC'
8448+ ;;
8449+ m68k)
8450+ # FIXME: we need at least 68020 code to build shared libraries, but
8451+ # adding the `-m68020' flag to GCC prevents building anything better,
8452+ # like `-m68040'.
8453+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8454+ ;;
8455+ esac
8456+ ;;
8457+
8458+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8459+ # PIC is the default for these OSes.
8460+ ;;
8461+
8462+ mingw* | cygwin* | pw32* | os2* | cegcc*)
8463+ # This hack is so that the source file can tell whether it is being
8464+ # built for inclusion in a dll (and should export symbols for example).
8465+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
8466+ # (--disable-auto-import) libraries
8467+ lt_prog_compiler_pic='-DDLL_EXPORT'
8468+ ;;
8469+
8470+ darwin* | rhapsody*)
8471+ # PIC is the default on this platform
8472+ # Common symbols not allowed in MH_DYLIB files
8473+ lt_prog_compiler_pic='-fno-common'
8474+ ;;
8475+
8476+ haiku*)
8477+ # PIC is the default for Haiku.
8478+ # The "-static" flag exists, but is broken.
8479+ lt_prog_compiler_static=
8480+ ;;
8481+
8482+ hpux*)
8483+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8484+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8485+ # sets the default TLS model and affects inlining.
8486+ case $host_cpu in
8487+ hppa*64*)
8488+ # +Z the default
8489+ ;;
8490+ *)
8491+ lt_prog_compiler_pic='-fPIC'
8492+ ;;
8493+ esac
8494+ ;;
8495+
8496+ interix[3-9]*)
8497+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8498+ # Instead, we relocate shared libraries at runtime.
8499+ ;;
8500+
8501+ msdosdjgpp*)
8502+ # Just because we use GCC doesn't mean we suddenly get shared libraries
8503+ # on systems that don't support them.
8504+ lt_prog_compiler_can_build_shared=no
8505+ enable_shared=no
8506+ ;;
8507+
8508+ *nto* | *qnx*)
8509+ # QNX uses GNU C++, but need to define -shared option too, otherwise
8510+ # it will coredump.
8511+ lt_prog_compiler_pic='-fPIC -shared'
8512+ ;;
8513+
8514+ sysv4*MP*)
8515+ if test -d /usr/nec; then
8516+ lt_prog_compiler_pic=-Kconform_pic
8517+ fi
8518+ ;;
8519+
8520+ *)
8521+ lt_prog_compiler_pic='-fPIC'
8522+ ;;
8523+ esac
8524+
8525+ case $cc_basename in
8526+ nvcc*) # Cuda Compiler Driver 2.2
8527+ lt_prog_compiler_wl='-Xlinker '
8528+ lt_prog_compiler_pic='-Xcompiler -fPIC'
8529+ ;;
8530+ esac
8531+ else
8532+ # PORTME Check for flag to pass linker flags through the system compiler.
8533+ case $host_os in
8534+ aix*)
8535+ lt_prog_compiler_wl='-Wl,'
8536+ if test "$host_cpu" = ia64; then
8537+ # AIX 5 now supports IA64 processor
8538+ lt_prog_compiler_static='-Bstatic'
8539+ else
8540+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8541+ fi
8542+ ;;
8543+
8544+ mingw* | cygwin* | pw32* | os2* | cegcc*)
8545+ # This hack is so that the source file can tell whether it is being
8546+ # built for inclusion in a dll (and should export symbols for example).
8547+ lt_prog_compiler_pic='-DDLL_EXPORT'
8548+ ;;
8549+
8550+ hpux9* | hpux10* | hpux11*)
8551+ lt_prog_compiler_wl='-Wl,'
8552+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8553+ # not for PA HP-UX.
8554+ case $host_cpu in
8555+ hppa*64*|ia64*)
8556+ # +Z the default
8557+ ;;
8558+ *)
8559+ lt_prog_compiler_pic='+Z'
8560+ ;;
8561+ esac
8562+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
8563+ lt_prog_compiler_static='${wl}-a ${wl}archive'
8564+ ;;
8565+
8566+ irix5* | irix6* | nonstopux*)
8567+ lt_prog_compiler_wl='-Wl,'
8568+ # PIC (with -KPIC) is the default.
8569+ lt_prog_compiler_static='-non_shared'
8570+ ;;
8571+
8572+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
8573+ case $cc_basename in
8574+ # old Intel for x86_64 which still supported -KPIC.
8575+ ecc*)
8576+ lt_prog_compiler_wl='-Wl,'
8577+ lt_prog_compiler_pic='-KPIC'
8578+ lt_prog_compiler_static='-static'
8579+ ;;
8580+ # icc used to be incompatible with GCC.
8581+ # ICC 10 doesn't accept -KPIC any more.
8582+ icc* | ifort*)
8583+ lt_prog_compiler_wl='-Wl,'
8584+ lt_prog_compiler_pic='-fPIC'
8585+ lt_prog_compiler_static='-static'
8586+ ;;
8587+ # Lahey Fortran 8.1.
8588+ lf95*)
8589+ lt_prog_compiler_wl='-Wl,'
8590+ lt_prog_compiler_pic='--shared'
8591+ lt_prog_compiler_static='--static'
8592+ ;;
8593+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8594+ # Portland Group compilers (*not* the Pentium gcc compiler,
8595+ # which looks to be a dead project)
8596+ lt_prog_compiler_wl='-Wl,'
8597+ lt_prog_compiler_pic='-fpic'
8598+ lt_prog_compiler_static='-Bstatic'
8599+ ;;
8600+ ccc*)
8601+ lt_prog_compiler_wl='-Wl,'
8602+ # All Alpha code is PIC.
8603+ lt_prog_compiler_static='-non_shared'
8604+ ;;
8605+ xl* | bgxl* | bgf* | mpixl*)
8606+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8607+ lt_prog_compiler_wl='-Wl,'
8608+ lt_prog_compiler_pic='-qpic'
8609+ lt_prog_compiler_static='-qstaticlink'
8610+ ;;
8611+ *)
8612+ case `$CC -V 2>&1 | sed 5q` in
8613+ *Sun\ F* | *Sun*Fortran*)
8614+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
8615+ lt_prog_compiler_pic='-KPIC'
8616+ lt_prog_compiler_static='-Bstatic'
8617+ lt_prog_compiler_wl=''
8618+ ;;
8619+ *Sun\ C*)
8620+ # Sun C 5.9
8621+ lt_prog_compiler_pic='-KPIC'
8622+ lt_prog_compiler_static='-Bstatic'
8623+ lt_prog_compiler_wl='-Wl,'
8624+ ;;
8625+ esac
8626+ ;;
8627+ esac
8628+ ;;
8629+
8630+ newsos6)
8631+ lt_prog_compiler_pic='-KPIC'
8632+ lt_prog_compiler_static='-Bstatic'
8633+ ;;
8634+
8635+ *nto* | *qnx*)
8636+ # QNX uses GNU C++, but need to define -shared option too, otherwise
8637+ # it will coredump.
8638+ lt_prog_compiler_pic='-fPIC -shared'
8639+ ;;
8640+
8641+ osf3* | osf4* | osf5*)
8642+ lt_prog_compiler_wl='-Wl,'
8643+ # All OSF/1 code is PIC.
8644+ lt_prog_compiler_static='-non_shared'
8645+ ;;
8646+
8647+ rdos*)
8648+ lt_prog_compiler_static='-non_shared'
8649+ ;;
8650+
8651+ solaris*)
8652+ lt_prog_compiler_pic='-KPIC'
8653+ lt_prog_compiler_static='-Bstatic'
8654+ case $cc_basename in
8655+ f77* | f90* | f95*)
8656+ lt_prog_compiler_wl='-Qoption ld ';;
8657+ *)
8658+ lt_prog_compiler_wl='-Wl,';;
8659+ esac
8660+ ;;
8661+
8662+ sunos4*)
8663+ lt_prog_compiler_wl='-Qoption ld '
8664+ lt_prog_compiler_pic='-PIC'
8665+ lt_prog_compiler_static='-Bstatic'
8666+ ;;
8667+
8668+ sysv4 | sysv4.2uw2* | sysv4.3*)
8669+ lt_prog_compiler_wl='-Wl,'
8670+ lt_prog_compiler_pic='-KPIC'
8671+ lt_prog_compiler_static='-Bstatic'
8672+ ;;
8673+
8674+ sysv4*MP*)
8675+ if test -d /usr/nec ;then
8676+ lt_prog_compiler_pic='-Kconform_pic'
8677+ lt_prog_compiler_static='-Bstatic'
8678+ fi
8679+ ;;
8680+
8681+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8682+ lt_prog_compiler_wl='-Wl,'
8683+ lt_prog_compiler_pic='-KPIC'
8684+ lt_prog_compiler_static='-Bstatic'
8685+ ;;
8686+
8687+ unicos*)
8688+ lt_prog_compiler_wl='-Wl,'
8689+ lt_prog_compiler_can_build_shared=no
8690+ ;;
8691+
8692+ uts4*)
8693+ lt_prog_compiler_pic='-pic'
8694+ lt_prog_compiler_static='-Bstatic'
8695+ ;;
8696+
8697+ *)
8698+ lt_prog_compiler_can_build_shared=no
8699+ ;;
8700+ esac
8701+ fi
8702+
8703+case $host_os in
8704+ # For platforms which do not support PIC, -DPIC is meaningless:
8705+ *djgpp*)
8706+ lt_prog_compiler_pic=
8707+ ;;
8708+ *)
8709+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8710+ ;;
8711+esac
8712+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8713+$as_echo "$lt_prog_compiler_pic" >&6; }
8714+
8715+
8716+
8717+
8718+
8719+
8720+#
8721+# Check to make sure the PIC flag actually works.
8722+#
8723+if test -n "$lt_prog_compiler_pic"; then
8724+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8725+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8726+if ${lt_cv_prog_compiler_pic_works+:} false; then :
8727+ $as_echo_n "(cached) " >&6
8728+else
8729+ lt_cv_prog_compiler_pic_works=no
8730+ ac_outfile=conftest.$ac_objext
8731+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8732+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8733+ # Insert the option either (1) after the last *FLAGS variable, or
8734+ # (2) before a word containing "conftest.", or (3) at the end.
8735+ # Note that $ac_compile itself does not contain backslashes and begins
8736+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8737+ # The option is referenced via a variable to avoid confusing sed.
8738+ lt_compile=`echo "$ac_compile" | $SED \
8739+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8740+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8741+ -e 's:$: $lt_compiler_flag:'`
8742+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8743+ (eval "$lt_compile" 2>conftest.err)
8744+ ac_status=$?
8745+ cat conftest.err >&5
8746+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747+ if (exit $ac_status) && test -s "$ac_outfile"; then
8748+ # The compiler can only warn and ignore the option if not recognized
8749+ # So say no if there are warnings other than the usual output.
8750+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8751+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8752+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8753+ lt_cv_prog_compiler_pic_works=yes
8754+ fi
8755+ fi
8756+ $RM conftest*
8757+
8758+fi
8759+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8760+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8761+
8762+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8763+ case $lt_prog_compiler_pic in
8764+ "" | " "*) ;;
8765+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8766+ esac
8767+else
8768+ lt_prog_compiler_pic=
8769+ lt_prog_compiler_can_build_shared=no
8770+fi
8771+
8772+fi
8773+
8774+
8775+
8776+
8777+
8778+
8779+#
8780+# Check to make sure the static flag actually works.
8781+#
8782+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8783+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8784+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8785+if ${lt_cv_prog_compiler_static_works+:} false; then :
8786+ $as_echo_n "(cached) " >&6
8787+else
8788+ lt_cv_prog_compiler_static_works=no
8789+ save_LDFLAGS="$LDFLAGS"
8790+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8791+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
8792+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8793+ # The linker can only warn and ignore the option if not recognized
8794+ # So say no if there are warnings
8795+ if test -s conftest.err; then
8796+ # Append any errors to the config.log.
8797+ cat conftest.err 1>&5
8798+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8799+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8800+ if diff conftest.exp conftest.er2 >/dev/null; then
8801+ lt_cv_prog_compiler_static_works=yes
8802+ fi
8803+ else
8804+ lt_cv_prog_compiler_static_works=yes
8805+ fi
8806+ fi
8807+ $RM -r conftest*
8808+ LDFLAGS="$save_LDFLAGS"
8809+
8810+fi
8811+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8812+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8813+
8814+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8815+ :
8816+else
8817+ lt_prog_compiler_static=
8818+fi
8819+
8820+
8821+
8822+
8823+
8824+
8825+
8826+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8827+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8828+if ${lt_cv_prog_compiler_c_o+:} false; then :
8829+ $as_echo_n "(cached) " >&6
8830+else
8831+ lt_cv_prog_compiler_c_o=no
8832+ $RM -r conftest 2>/dev/null
8833+ mkdir conftest
8834+ cd conftest
8835+ mkdir out
8836+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8837+
8838+ lt_compiler_flag="-o out/conftest2.$ac_objext"
8839+ # Insert the option either (1) after the last *FLAGS variable, or
8840+ # (2) before a word containing "conftest.", or (3) at the end.
8841+ # Note that $ac_compile itself does not contain backslashes and begins
8842+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8843+ lt_compile=`echo "$ac_compile" | $SED \
8844+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8845+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8846+ -e 's:$: $lt_compiler_flag:'`
8847+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8848+ (eval "$lt_compile" 2>out/conftest.err)
8849+ ac_status=$?
8850+ cat out/conftest.err >&5
8851+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
8853+ then
8854+ # The compiler can only warn and ignore the option if not recognized
8855+ # So say no if there are warnings
8856+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8857+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8858+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8859+ lt_cv_prog_compiler_c_o=yes
8860+ fi
8861+ fi
8862+ chmod u+w . 2>&5
8863+ $RM conftest*
8864+ # SGI C++ compiler will create directory out/ii_files/ for
8865+ # template instantiation
8866+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8867+ $RM out/* && rmdir out
8868+ cd ..
8869+ $RM -r conftest
8870+ $RM conftest*
8871+
8872+fi
8873+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8874+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8875+
8876+
8877+
8878+
8879+
8880+
8881+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8882+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8883+if ${lt_cv_prog_compiler_c_o+:} false; then :
8884+ $as_echo_n "(cached) " >&6
8885+else
8886+ lt_cv_prog_compiler_c_o=no
8887+ $RM -r conftest 2>/dev/null
8888+ mkdir conftest
8889+ cd conftest
8890+ mkdir out
8891+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892+
8893+ lt_compiler_flag="-o out/conftest2.$ac_objext"
8894+ # Insert the option either (1) after the last *FLAGS variable, or
8895+ # (2) before a word containing "conftest.", or (3) at the end.
8896+ # Note that $ac_compile itself does not contain backslashes and begins
8897+ # with a dollar sign (not a hyphen), so the echo should work correctly.
8898+ lt_compile=`echo "$ac_compile" | $SED \
8899+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901+ -e 's:$: $lt_compiler_flag:'`
8902+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903+ (eval "$lt_compile" 2>out/conftest.err)
8904+ ac_status=$?
8905+ cat out/conftest.err >&5
8906+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
8908+ then
8909+ # The compiler can only warn and ignore the option if not recognized
8910+ # So say no if there are warnings
8911+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8912+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8913+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8914+ lt_cv_prog_compiler_c_o=yes
8915+ fi
8916+ fi
8917+ chmod u+w . 2>&5
8918+ $RM conftest*
8919+ # SGI C++ compiler will create directory out/ii_files/ for
8920+ # template instantiation
8921+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8922+ $RM out/* && rmdir out
8923+ cd ..
8924+ $RM -r conftest
8925+ $RM conftest*
8926+
8927+fi
8928+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8929+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8930+
8931+
8932+
8933+
8934+hard_links="nottested"
8935+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8936+ # do not overwrite the value of need_locks provided by the user
8937+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8938+$as_echo_n "checking if we can lock with hard links... " >&6; }
8939+ hard_links=yes
8940+ $RM conftest*
8941+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
8942+ touch conftest.a
8943+ ln conftest.a conftest.b 2>&5 || hard_links=no
8944+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
8945+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8946+$as_echo "$hard_links" >&6; }
8947+ if test "$hard_links" = no; then
8948+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8949+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8950+ need_locks=warn
8951+ fi
8952+else
8953+ need_locks=no
8954+fi
8955+
8956+
8957+
8958+
8959+
8960+
8961+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8962+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8963+
8964+ runpath_var=
8965+ allow_undefined_flag=
8966+ always_export_symbols=no
8967+ archive_cmds=
8968+ archive_expsym_cmds=
8969+ compiler_needs_object=no
8970+ enable_shared_with_static_runtimes=no
8971+ export_dynamic_flag_spec=
8972+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8973+ hardcode_automatic=no
8974+ hardcode_direct=no
8975+ hardcode_direct_absolute=no
8976+ hardcode_libdir_flag_spec=
8977+ hardcode_libdir_flag_spec_ld=
8978+ hardcode_libdir_separator=
8979+ hardcode_minus_L=no
8980+ hardcode_shlibpath_var=unsupported
8981+ inherit_rpath=no
8982+ link_all_deplibs=unknown
8983+ module_cmds=
8984+ module_expsym_cmds=
8985+ old_archive_from_new_cmds=
8986+ old_archive_from_expsyms_cmds=
8987+ thread_safe_flag_spec=
8988+ whole_archive_flag_spec=
8989+ # include_expsyms should be a list of space-separated symbols to be *always*
8990+ # included in the symbol list
8991+ include_expsyms=
8992+ # exclude_expsyms can be an extended regexp of symbols to exclude
8993+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
8994+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8995+ # as well as any symbol that contains `d'.
8996+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8997+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8998+ # platforms (ab)use it in PIC code, but their linkers get confused if
8999+ # the symbol is explicitly referenced. Since portable code cannot
9000+ # rely on this symbol name, it's probably fine to never include it in
9001+ # preloaded symbol tables.
9002+ # Exclude shared library initialization/finalization symbols.
9003+ extract_expsyms_cmds=
9004+
9005+ case $host_os in
9006+ cygwin* | mingw* | pw32* | cegcc*)
9007+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
9008+ # When not using gcc, we currently assume that we are using
9009+ # Microsoft Visual C++.
9010+ if test "$GCC" != yes; then
9011+ with_gnu_ld=no
9012+ fi
9013+ ;;
9014+ interix*)
9015+ # we just hope/assume this is gcc and not c89 (= MSVC++)
9016+ with_gnu_ld=yes
9017+ ;;
9018+ openbsd*)
9019+ with_gnu_ld=no
9020+ ;;
9021+ esac
9022+
9023+ ld_shlibs=yes
9024+
9025+ # On some targets, GNU ld is compatible enough with the native linker
9026+ # that we're better off using the native interface for both.
9027+ lt_use_gnu_ld_interface=no
9028+ if test "$with_gnu_ld" = yes; then
9029+ case $host_os in
9030+ aix*)
9031+ # The AIX port of GNU ld has always aspired to compatibility
9032+ # with the native linker. However, as the warning in the GNU ld
9033+ # block says, versions before 2.19.5* couldn't really create working
9034+ # shared libraries, regardless of the interface used.
9035+ case `$LD -v 2>&1` in
9036+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9037+ *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9038+ *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9039+ *)
9040+ lt_use_gnu_ld_interface=yes
9041+ ;;
9042+ esac
9043+ ;;
9044+ *)
9045+ lt_use_gnu_ld_interface=yes
9046+ ;;
9047+ esac
9048+ fi
9049+
9050+ if test "$lt_use_gnu_ld_interface" = yes; then
9051+ # If archive_cmds runs LD, not CC, wlarc should be empty
9052+ wlarc='${wl}'
9053+
9054+ # Set some defaults for GNU ld with shared library support. These
9055+ # are reset later if shared libraries are not supported. Putting them
9056+ # here allows them to be overridden if necessary.
9057+ runpath_var=LD_RUN_PATH
9058+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059+ export_dynamic_flag_spec='${wl}--export-dynamic'
9060+ # ancient GNU ld didn't support --whole-archive et. al.
9061+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9062+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9063+ else
9064+ whole_archive_flag_spec=
9065+ fi
9066+ supports_anon_versioning=no
9067+ case `$LD -v 2>&1` in
9068+ *GNU\ gold*) supports_anon_versioning=yes ;;
9069+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9070+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9071+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9072+ *\ 2.11.*) ;; # other 2.11 versions
9073+ *) supports_anon_versioning=yes ;;
9074+ esac
9075+
9076+ # See if GNU ld supports shared libraries.
9077+ case $host_os in
9078+ aix[3-9]*)
9079+ # On AIX/PPC, the GNU linker is very broken
9080+ if test "$host_cpu" != ia64; then
9081+ ld_shlibs=no
9082+ cat <<_LT_EOF 1>&2
9083+
9084+*** Warning: the GNU linker, at least up to release 2.19, is reported
9085+*** to be unable to reliably create shared libraries on AIX.
9086+*** Therefore, libtool is disabling shared libraries support. If you
9087+*** really care for shared libraries, you may want to install binutils
9088+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9089+*** You will then need to restart the configuration process.
9090+
9091+_LT_EOF
9092+ fi
9093+ ;;
9094+
9095+ amigaos*)
9096+ case $host_cpu in
9097+ powerpc)
9098+ # see comment about AmigaOS4 .so support
9099+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100+ archive_expsym_cmds=''
9101+ ;;
9102+ m68k)
9103+ archive_cmds='$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)'
9104+ hardcode_libdir_flag_spec='-L$libdir'
9105+ hardcode_minus_L=yes
9106+ ;;
9107+ esac
9108+ ;;
9109+
9110+ beos*)
9111+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9112+ allow_undefined_flag=unsupported
9113+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9114+ # support --undefined. This deserves some investigation. FIXME
9115+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116+ else
9117+ ld_shlibs=no
9118+ fi
9119+ ;;
9120+
9121+ cygwin* | mingw* | pw32* | cegcc*)
9122+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9123+ # as there is no search path for DLLs.
9124+ hardcode_libdir_flag_spec='-L$libdir'
9125+ export_dynamic_flag_spec='${wl}--export-all-symbols'
9126+ allow_undefined_flag=unsupported
9127+ always_export_symbols=no
9128+ enable_shared_with_static_runtimes=yes
9129+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9130+
9131+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9132+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133+ # If the export-symbols file already is a .def file (1st line
9134+ # is EXPORTS), use it as is; otherwise, prepend...
9135+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9136+ cp $export_symbols $output_objdir/$soname.def;
9137+ else
9138+ echo EXPORTS > $output_objdir/$soname.def;
9139+ cat $export_symbols >> $output_objdir/$soname.def;
9140+ fi~
9141+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9142+ else
9143+ ld_shlibs=no
9144+ fi
9145+ ;;
9146+
9147+ haiku*)
9148+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149+ link_all_deplibs=yes
9150+ ;;
9151+
9152+ interix[3-9]*)
9153+ hardcode_direct=no
9154+ hardcode_shlibpath_var=no
9155+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9156+ export_dynamic_flag_spec='${wl}-E'
9157+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9158+ # Instead, shared libraries are loaded at an image base (0x10000000 by
9159+ # default) and relocated if they conflict, which is a slow very memory
9160+ # consuming and fragmenting process. To avoid this, we pick a random,
9161+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9162+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9163+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9164+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9165+ ;;
9166+
9167+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9168+ tmp_diet=no
9169+ if test "$host_os" = linux-dietlibc; then
9170+ case $cc_basename in
9171+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9172+ esac
9173+ fi
9174+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9175+ && test "$tmp_diet" = no
9176+ then
9177+ tmp_addflag=' $pic_flag'
9178+ tmp_sharedflag='-shared'
9179+ case $cc_basename,$host_cpu in
9180+ pgcc*) # Portland Group C compiler
9181+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9182+ tmp_addflag=' $pic_flag'
9183+ ;;
9184+ pgf77* | pgf90* | pgf95* | pgfortran*)
9185+ # Portland Group f77 and f90 compilers
9186+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9187+ tmp_addflag=' $pic_flag -Mnomain' ;;
9188+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9189+ tmp_addflag=' -i_dynamic' ;;
9190+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9191+ tmp_addflag=' -i_dynamic -nofor_main' ;;
9192+ ifc* | ifort*) # Intel Fortran compiler
9193+ tmp_addflag=' -nofor_main' ;;
9194+ lf95*) # Lahey Fortran 8.1
9195+ whole_archive_flag_spec=
9196+ tmp_sharedflag='--shared' ;;
9197+ xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9198+ tmp_sharedflag='-qmkshrobj'
9199+ tmp_addflag= ;;
9200+ nvcc*) # Cuda Compiler Driver 2.2
9201+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9202+ compiler_needs_object=yes
9203+ ;;
9204+ esac
9205+ case `$CC -V 2>&1 | sed 5q` in
9206+ *Sun\ C*) # Sun C 5.9
9207+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9208+ compiler_needs_object=yes
9209+ tmp_sharedflag='-G' ;;
9210+ *Sun\ F*) # Sun Fortran 8.3
9211+ tmp_sharedflag='-G' ;;
9212+ esac
9213+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214+
9215+ if test "x$supports_anon_versioning" = xyes; then
9216+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9217+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9218+ echo "local: *; };" >> $output_objdir/$libname.ver~
9219+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9220+ fi
9221+
9222+ case $cc_basename in
9223+ xlf* | bgf* | bgxlf* | mpixlf*)
9224+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9225+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9226+ hardcode_libdir_flag_spec=
9227+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
9228+ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9229+ if test "x$supports_anon_versioning" = xyes; then
9230+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232+ echo "local: *; };" >> $output_objdir/$libname.ver~
9233+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9234+ fi
9235+ ;;
9236+ esac
9237+ else
9238+ ld_shlibs=no
9239+ fi
9240+ ;;
9241+
9242+ netbsd*)
9243+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9245+ wlarc=
9246+ else
9247+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9249+ fi
9250+ ;;
9251+
9252+ solaris*)
9253+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9254+ ld_shlibs=no
9255+ cat <<_LT_EOF 1>&2
9256+
9257+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9258+*** create shared libraries on Solaris systems. Therefore, libtool
9259+*** is disabling shared libraries support. We urge you to upgrade GNU
9260+*** binutils to release 2.9.1 or newer. Another option is to modify
9261+*** your PATH or compiler configuration so that the native linker is
9262+*** used, and then restart.
9263+
9264+_LT_EOF
9265+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268+ else
9269+ ld_shlibs=no
9270+ fi
9271+ ;;
9272+
9273+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9274+ case `$LD -v 2>&1` in
9275+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9276+ ld_shlibs=no
9277+ cat <<_LT_EOF 1>&2
9278+
9279+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9280+*** reliably create shared libraries on SCO systems. Therefore, libtool
9281+*** is disabling shared libraries support. We urge you to upgrade GNU
9282+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9283+*** your PATH or compiler configuration so that the native linker is
9284+*** used, and then restart.
9285+
9286+_LT_EOF
9287+ ;;
9288+ *)
9289+ # For security reasons, it is highly recommended that you always
9290+ # use absolute paths for naming shared libraries, and exclude the
9291+ # DT_RUNPATH tag from executables and libraries. But doing so
9292+ # requires that you compile everything twice, which is a pain.
9293+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297+ else
9298+ ld_shlibs=no
9299+ fi
9300+ ;;
9301+ esac
9302+ ;;
9303+
9304+ sunos4*)
9305+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306+ wlarc=
9307+ hardcode_direct=yes
9308+ hardcode_shlibpath_var=no
9309+ ;;
9310+
9311+ *)
9312+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9315+ else
9316+ ld_shlibs=no
9317+ fi
9318+ ;;
9319+ esac
9320+
9321+ if test "$ld_shlibs" = no; then
9322+ runpath_var=
9323+ hardcode_libdir_flag_spec=
9324+ export_dynamic_flag_spec=
9325+ whole_archive_flag_spec=
9326+ fi
9327+ else
9328+ # PORTME fill in a description of your system's linker (not GNU ld)
9329+ case $host_os in
9330+ aix3*)
9331+ allow_undefined_flag=unsupported
9332+ always_export_symbols=yes
9333+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9334+ # Note: this linker hardcodes the directories in LIBPATH if there
9335+ # are no directories specified by -L.
9336+ hardcode_minus_L=yes
9337+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9338+ # Neither direct hardcoding nor static linking is supported with a
9339+ # broken collect2.
9340+ hardcode_direct=unsupported
9341+ fi
9342+ ;;
9343+
9344+ aix[4-9]*)
9345+ if test "$host_cpu" = ia64; then
9346+ # On IA64, the linker does run time linking by default, so we don't
9347+ # have to do anything special.
9348+ aix_use_runtimelinking=no
9349+ exp_sym_flag='-Bexport'
9350+ no_entry_flag=""
9351+ else
9352+ # If we're using GNU nm, then we don't want the "-C" option.
9353+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
9354+ # Also, AIX nm treats weak defined symbols like other global
9355+ # defined symbols, whereas GNU nm marks them as "W".
9356+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9357+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9358+ else
9359+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9360+ fi
9361+ aix_use_runtimelinking=no
9362+
9363+ # Test if we are trying to use run time linking or normal
9364+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9365+ # need to do runtime linking.
9366+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9367+ for ld_flag in $LDFLAGS; do
9368+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9369+ aix_use_runtimelinking=yes
9370+ break
9371+ fi
9372+ done
9373+ ;;
9374+ esac
9375+
9376+ exp_sym_flag='-bexport'
9377+ no_entry_flag='-bnoentry'
9378+ fi
9379+
9380+ # When large executables or shared objects are built, AIX ld can
9381+ # have problems creating the table of contents. If linking a library
9382+ # or program results in "error TOC overflow" add -mminimal-toc to
9383+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9384+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9385+
9386+ archive_cmds=''
9387+ hardcode_direct=yes
9388+ hardcode_direct_absolute=yes
9389+ hardcode_libdir_separator=':'
9390+ link_all_deplibs=yes
9391+ file_list_spec='${wl}-f,'
9392+
9393+ if test "$GCC" = yes; then
9394+ case $host_os in aix4.[012]|aix4.[012].*)
9395+ # We only want to do this on AIX 4.2 and lower, the check
9396+ # below for broken collect2 doesn't work under 4.3+
9397+ collect2name=`${CC} -print-prog-name=collect2`
9398+ if test -f "$collect2name" &&
9399+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9400+ then
9401+ # We have reworked collect2
9402+ :
9403+ else
9404+ # We have old collect2
9405+ hardcode_direct=unsupported
9406+ # It fails to find uninstalled libraries when the uninstalled
9407+ # path is not listed in the libpath. Setting hardcode_minus_L
9408+ # to unsupported forces relinking
9409+ hardcode_minus_L=yes
9410+ hardcode_libdir_flag_spec='-L$libdir'
9411+ hardcode_libdir_separator=
9412+ fi
9413+ ;;
9414+ esac
9415+ shared_flag='-shared'
9416+ if test "$aix_use_runtimelinking" = yes; then
9417+ shared_flag="$shared_flag "'${wl}-G'
9418+ fi
9419+ else
9420+ # not using gcc
9421+ if test "$host_cpu" = ia64; then
9422+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9423+ # chokes on -Wl,-G. The following line is correct:
9424+ shared_flag='-G'
9425+ else
9426+ if test "$aix_use_runtimelinking" = yes; then
9427+ shared_flag='${wl}-G'
9428+ else
9429+ shared_flag='${wl}-bM:SRE'
9430+ fi
9431+ fi
9432+ fi
9433+
9434+ export_dynamic_flag_spec='${wl}-bexpall'
9435+ # It seems that -bexpall does not export symbols beginning with
9436+ # underscore (_), so it is better to generate a list of symbols to export.
9437+ always_export_symbols=yes
9438+ if test "$aix_use_runtimelinking" = yes; then
9439+ # Warning - without using the other runtime loading flags (-brtl),
9440+ # -berok will link without error, but may produce a broken library.
9441+ allow_undefined_flag='-berok'
9442+ # Determine the default libpath from the value encoded in an
9443+ # empty executable.
9444+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445+/* end confdefs.h. */
9446+
9447+int
9448+main ()
9449+{
9450+
9451+ ;
9452+ return 0;
9453+}
9454+_ACEOF
9455+if ac_fn_c_try_link "$LINENO"; then :
9456+
9457+lt_aix_libpath_sed='
9458+ /Import File Strings/,/^$/ {
9459+ /^0/ {
9460+ s/^0 *\(.*\)$/\1/
9461+ p
9462+ }
9463+ }'
9464+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465+# Check for a 64-bit object if we didn't find anything.
9466+if test -z "$aix_libpath"; then
9467+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9468+fi
9469+fi
9470+rm -f core conftest.err conftest.$ac_objext \
9471+ conftest$ac_exeext conftest.$ac_ext
9472+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9473+
9474+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9476+ else
9477+ if test "$host_cpu" = ia64; then
9478+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9479+ allow_undefined_flag="-z nodefs"
9480+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9481+ else
9482+ # Determine the default libpath from the value encoded in an
9483+ # empty executable.
9484+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485+/* end confdefs.h. */
9486+
9487+int
9488+main ()
9489+{
9490+
9491+ ;
9492+ return 0;
9493+}
9494+_ACEOF
9495+if ac_fn_c_try_link "$LINENO"; then :
9496+
9497+lt_aix_libpath_sed='
9498+ /Import File Strings/,/^$/ {
9499+ /^0/ {
9500+ s/^0 *\(.*\)$/\1/
9501+ p
9502+ }
9503+ }'
9504+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505+# Check for a 64-bit object if we didn't find anything.
9506+if test -z "$aix_libpath"; then
9507+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508+fi
9509+fi
9510+rm -f core conftest.err conftest.$ac_objext \
9511+ conftest$ac_exeext conftest.$ac_ext
9512+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9513+
9514+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9515+ # Warning - without using the other run time loading flags,
9516+ # -berok will link without error, but may produce a broken library.
9517+ no_undefined_flag=' ${wl}-bernotok'
9518+ allow_undefined_flag=' ${wl}-berok'
9519+ if test "$with_gnu_ld" = yes; then
9520+ # We only use this code for GNU lds that support --whole-archive.
9521+ whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9522+ else
9523+ # Exported symbols can be pulled into shared objects from archives
9524+ whole_archive_flag_spec='$convenience'
9525+ fi
9526+ archive_cmds_need_lc=yes
9527+ # This is similar to how AIX traditionally builds its shared libraries.
9528+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9529+ fi
9530+ fi
9531+ ;;
9532+
9533+ amigaos*)
9534+ case $host_cpu in
9535+ powerpc)
9536+ # see comment about AmigaOS4 .so support
9537+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538+ archive_expsym_cmds=''
9539+ ;;
9540+ m68k)
9541+ archive_cmds='$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)'
9542+ hardcode_libdir_flag_spec='-L$libdir'
9543+ hardcode_minus_L=yes
9544+ ;;
9545+ esac
9546+ ;;
9547+
9548+ bsdi[45]*)
9549+ export_dynamic_flag_spec=-rdynamic
9550+ ;;
9551+
9552+ cygwin* | mingw* | pw32* | cegcc*)
9553+ # When not using gcc, we currently assume that we are using
9554+ # Microsoft Visual C++.
9555+ # hardcode_libdir_flag_spec is actually meaningless, as there is
9556+ # no search path for DLLs.
9557+ hardcode_libdir_flag_spec=' '
9558+ allow_undefined_flag=unsupported
9559+ # Tell ltmain to make .lib files, not .a files.
9560+ libext=lib
9561+ # Tell ltmain to make .dll files, not .so files.
9562+ shrext_cmds=".dll"
9563+ # FIXME: Setting linknames here is a bad hack.
9564+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9565+ # The linker will automatically build a .lib file if we build a DLL.
9566+ old_archive_from_new_cmds='true'
9567+ # FIXME: Should let the user specify the lib program.
9568+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9569+ fix_srcfile_path='`cygpath -w "$srcfile"`'
9570+ enable_shared_with_static_runtimes=yes
9571+ ;;
9572+
9573+ darwin* | rhapsody*)
9574+
9575+
9576+ archive_cmds_need_lc=no
9577+ hardcode_direct=no
9578+ hardcode_automatic=yes
9579+ hardcode_shlibpath_var=unsupported
9580+ if test "$lt_cv_ld_force_load" = "yes"; then
9581+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9582+ else
9583+ whole_archive_flag_spec=''
9584+ fi
9585+ link_all_deplibs=yes
9586+ allow_undefined_flag="$_lt_dar_allow_undefined"
9587+ case $cc_basename in
9588+ ifort*) _lt_dar_can_shared=yes ;;
9589+ *) _lt_dar_can_shared=$GCC ;;
9590+ esac
9591+ if test "$_lt_dar_can_shared" = "yes"; then
9592+ output_verbose_link_cmd=func_echo_all
9593+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9594+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9595+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9596+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9597+
9598+ else
9599+ ld_shlibs=no
9600+ fi
9601+
9602+ ;;
9603+
9604+ dgux*)
9605+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606+ hardcode_libdir_flag_spec='-L$libdir'
9607+ hardcode_shlibpath_var=no
9608+ ;;
9609+
9610+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9611+ # support. Future versions do this automatically, but an explicit c++rt0.o
9612+ # does not break anything, and helps significantly (at the cost of a little
9613+ # extra space).
9614+ freebsd2.2*)
9615+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9616+ hardcode_libdir_flag_spec='-R$libdir'
9617+ hardcode_direct=yes
9618+ hardcode_shlibpath_var=no
9619+ ;;
9620+
9621+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9622+ freebsd2.*)
9623+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624+ hardcode_direct=yes
9625+ hardcode_minus_L=yes
9626+ hardcode_shlibpath_var=no
9627+ ;;
9628+
9629+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9630+ freebsd* | dragonfly*)
9631+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9632+ hardcode_libdir_flag_spec='-R$libdir'
9633+ hardcode_direct=yes
9634+ hardcode_shlibpath_var=no
9635+ ;;
9636+
9637+ hpux9*)
9638+ if test "$GCC" = yes; then
9639+ archive_cmds='$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'
9640+ else
9641+ archive_cmds='$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'
9642+ fi
9643+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9644+ hardcode_libdir_separator=:
9645+ hardcode_direct=yes
9646+
9647+ # hardcode_minus_L: Not really in the search PATH,
9648+ # but as the default location of the library.
9649+ hardcode_minus_L=yes
9650+ export_dynamic_flag_spec='${wl}-E'
9651+ ;;
9652+
9653+ hpux10*)
9654+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9655+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656+ else
9657+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658+ fi
9659+ if test "$with_gnu_ld" = no; then
9660+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661+ hardcode_libdir_flag_spec_ld='+b $libdir'
9662+ hardcode_libdir_separator=:
9663+ hardcode_direct=yes
9664+ hardcode_direct_absolute=yes
9665+ export_dynamic_flag_spec='${wl}-E'
9666+ # hardcode_minus_L: Not really in the search PATH,
9667+ # but as the default location of the library.
9668+ hardcode_minus_L=yes
9669+ fi
9670+ ;;
9671+
9672+ hpux11*)
9673+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9674+ case $host_cpu in
9675+ hppa*64*)
9676+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9677+ ;;
9678+ ia64*)
9679+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9680+ ;;
9681+ *)
9682+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9683+ ;;
9684+ esac
9685+ else
9686+ case $host_cpu in
9687+ hppa*64*)
9688+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689+ ;;
9690+ ia64*)
9691+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692+ ;;
9693+ *)
9694+
9695+ # Older versions of the 11.00 compiler do not understand -b yet
9696+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9697+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9698+$as_echo_n "checking if $CC understands -b... " >&6; }
9699+if ${lt_cv_prog_compiler__b+:} false; then :
9700+ $as_echo_n "(cached) " >&6
9701+else
9702+ lt_cv_prog_compiler__b=no
9703+ save_LDFLAGS="$LDFLAGS"
9704+ LDFLAGS="$LDFLAGS -b"
9705+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
9706+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9707+ # The linker can only warn and ignore the option if not recognized
9708+ # So say no if there are warnings
9709+ if test -s conftest.err; then
9710+ # Append any errors to the config.log.
9711+ cat conftest.err 1>&5
9712+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9713+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714+ if diff conftest.exp conftest.er2 >/dev/null; then
9715+ lt_cv_prog_compiler__b=yes
9716+ fi
9717+ else
9718+ lt_cv_prog_compiler__b=yes
9719+ fi
9720+ fi
9721+ $RM -r conftest*
9722+ LDFLAGS="$save_LDFLAGS"
9723+
9724+fi
9725+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9726+$as_echo "$lt_cv_prog_compiler__b" >&6; }
9727+
9728+if test x"$lt_cv_prog_compiler__b" = xyes; then
9729+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730+else
9731+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9732+fi
9733+
9734+ ;;
9735+ esac
9736+ fi
9737+ if test "$with_gnu_ld" = no; then
9738+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9739+ hardcode_libdir_separator=:
9740+
9741+ case $host_cpu in
9742+ hppa*64*|ia64*)
9743+ hardcode_direct=no
9744+ hardcode_shlibpath_var=no
9745+ ;;
9746+ *)
9747+ hardcode_direct=yes
9748+ hardcode_direct_absolute=yes
9749+ export_dynamic_flag_spec='${wl}-E'
9750+
9751+ # hardcode_minus_L: Not really in the search PATH,
9752+ # but as the default location of the library.
9753+ hardcode_minus_L=yes
9754+ ;;
9755+ esac
9756+ fi
9757+ ;;
9758+
9759+ irix5* | irix6* | nonstopux*)
9760+ if test "$GCC" = yes; then
9761+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9762+ # Try to use the -exported_symbol ld option, if it does not
9763+ # work, assume that -exports_file does not work either and
9764+ # implicitly export all symbols.
9765+ save_LDFLAGS="$LDFLAGS"
9766+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9767+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768+/* end confdefs.h. */
9769+int foo(void) {}
9770+_ACEOF
9771+if ac_fn_c_try_link "$LINENO"; then :
9772+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9773+
9774+fi
9775+rm -f core conftest.err conftest.$ac_objext \
9776+ conftest$ac_exeext conftest.$ac_ext
9777+ LDFLAGS="$save_LDFLAGS"
9778+ else
9779+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9780+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9781+ fi
9782+ archive_cmds_need_lc='no'
9783+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784+ hardcode_libdir_separator=:
9785+ inherit_rpath=yes
9786+ link_all_deplibs=yes
9787+ ;;
9788+
9789+ netbsd*)
9790+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9791+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9792+ else
9793+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9794+ fi
9795+ hardcode_libdir_flag_spec='-R$libdir'
9796+ hardcode_direct=yes
9797+ hardcode_shlibpath_var=no
9798+ ;;
9799+
9800+ newsos6)
9801+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802+ hardcode_direct=yes
9803+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804+ hardcode_libdir_separator=:
9805+ hardcode_shlibpath_var=no
9806+ ;;
9807+
9808+ *nto* | *qnx*)
9809+ ;;
9810+
9811+ openbsd*)
9812+ if test -f /usr/libexec/ld.so; then
9813+ hardcode_direct=yes
9814+ hardcode_shlibpath_var=no
9815+ hardcode_direct_absolute=yes
9816+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9817+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9818+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9819+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9820+ export_dynamic_flag_spec='${wl}-E'
9821+ else
9822+ case $host_os in
9823+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9824+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9825+ hardcode_libdir_flag_spec='-R$libdir'
9826+ ;;
9827+ *)
9828+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9829+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9830+ ;;
9831+ esac
9832+ fi
9833+ else
9834+ ld_shlibs=no
9835+ fi
9836+ ;;
9837+
9838+ os2*)
9839+ hardcode_libdir_flag_spec='-L$libdir'
9840+ hardcode_minus_L=yes
9841+ allow_undefined_flag=unsupported
9842+ archive_cmds='$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'
9843+ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9844+ ;;
9845+
9846+ osf3*)
9847+ if test "$GCC" = yes; then
9848+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9849+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9850+ else
9851+ allow_undefined_flag=' -expect_unresolved \*'
9852+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9853+ fi
9854+ archive_cmds_need_lc='no'
9855+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856+ hardcode_libdir_separator=:
9857+ ;;
9858+
9859+ osf4* | osf5*) # as osf3* with the addition of -msym flag
9860+ if test "$GCC" = yes; then
9861+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9862+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9863+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864+ else
9865+ allow_undefined_flag=' -expect_unresolved \*'
9866+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9867+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9868+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9869+
9870+ # Both c and cxx compiler support -rpath directly
9871+ hardcode_libdir_flag_spec='-rpath $libdir'
9872+ fi
9873+ archive_cmds_need_lc='no'
9874+ hardcode_libdir_separator=:
9875+ ;;
9876+
9877+ solaris*)
9878+ no_undefined_flag=' -z defs'
9879+ if test "$GCC" = yes; then
9880+ wlarc='${wl}'
9881+ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9882+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9883+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9884+ else
9885+ case `$CC -V 2>&1` in
9886+ *"Compilers 5.0"*)
9887+ wlarc=''
9888+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9891+ ;;
9892+ *)
9893+ wlarc='${wl}'
9894+ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9895+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9896+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9897+ ;;
9898+ esac
9899+ fi
9900+ hardcode_libdir_flag_spec='-R$libdir'
9901+ hardcode_shlibpath_var=no
9902+ case $host_os in
9903+ solaris2.[0-5] | solaris2.[0-5].*) ;;
9904+ *)
9905+ # The compiler driver will combine and reorder linker options,
9906+ # but understands `-z linker_flag'. GCC discards it without `$wl',
9907+ # but is careful enough not to reorder.
9908+ # Supported since Solaris 2.6 (maybe 2.5.1?)
9909+ if test "$GCC" = yes; then
9910+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9911+ else
9912+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9913+ fi
9914+ ;;
9915+ esac
9916+ link_all_deplibs=yes
9917+ ;;
9918+
9919+ sunos4*)
9920+ if test "x$host_vendor" = xsequent; then
9921+ # Use $CC to link under sequent, because it throws in some extra .o
9922+ # files that make .init and .fini sections work.
9923+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9924+ else
9925+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9926+ fi
9927+ hardcode_libdir_flag_spec='-L$libdir'
9928+ hardcode_direct=yes
9929+ hardcode_minus_L=yes
9930+ hardcode_shlibpath_var=no
9931+ ;;
9932+
9933+ sysv4)
9934+ case $host_vendor in
9935+ sni)
9936+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937+ hardcode_direct=yes # is this really true???
9938+ ;;
9939+ siemens)
9940+ ## LD is ld it makes a PLAMLIB
9941+ ## CC just makes a GrossModule.
9942+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9943+ reload_cmds='$CC -r -o $output$reload_objs'
9944+ hardcode_direct=no
9945+ ;;
9946+ motorola)
9947+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9949+ ;;
9950+ esac
9951+ runpath_var='LD_RUN_PATH'
9952+ hardcode_shlibpath_var=no
9953+ ;;
9954+
9955+ sysv4.3*)
9956+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957+ hardcode_shlibpath_var=no
9958+ export_dynamic_flag_spec='-Bexport'
9959+ ;;
9960+
9961+ sysv4*MP*)
9962+ if test -d /usr/nec; then
9963+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964+ hardcode_shlibpath_var=no
9965+ runpath_var=LD_RUN_PATH
9966+ hardcode_runpath_var=yes
9967+ ld_shlibs=yes
9968+ fi
9969+ ;;
9970+
9971+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9972+ no_undefined_flag='${wl}-z,text'
9973+ archive_cmds_need_lc=no
9974+ hardcode_shlibpath_var=no
9975+ runpath_var='LD_RUN_PATH'
9976+
9977+ if test "$GCC" = yes; then
9978+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980+ else
9981+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983+ fi
9984+ ;;
9985+
9986+ sysv5* | sco3.2v5* | sco5v6*)
9987+ # Note: We can NOT use -z defs as we might desire, because we do not
9988+ # link with -lc, and that would cause any symbols used from libc to
9989+ # always be unresolved, which means just about no library would
9990+ # ever link correctly. If we're not using GNU ld we use -z text
9991+ # though, which does catch some bad symbols but isn't as heavy-handed
9992+ # as -z defs.
9993+ no_undefined_flag='${wl}-z,text'
9994+ allow_undefined_flag='${wl}-z,nodefs'
9995+ archive_cmds_need_lc=no
9996+ hardcode_shlibpath_var=no
9997+ hardcode_libdir_flag_spec='${wl}-R,$libdir'
9998+ hardcode_libdir_separator=':'
9999+ link_all_deplibs=yes
10000+ export_dynamic_flag_spec='${wl}-Bexport'
10001+ runpath_var='LD_RUN_PATH'
10002+
10003+ if test "$GCC" = yes; then
10004+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006+ else
10007+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009+ fi
10010+ ;;
10011+
10012+ uts4*)
10013+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014+ hardcode_libdir_flag_spec='-L$libdir'
10015+ hardcode_shlibpath_var=no
10016+ ;;
10017+
10018+ *)
10019+ ld_shlibs=no
10020+ ;;
10021+ esac
10022+
10023+ if test x$host_vendor = xsni; then
10024+ case $host in
10025+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10026+ export_dynamic_flag_spec='${wl}-Blargedynsym'
10027+ ;;
10028+ esac
10029+ fi
10030+ fi
10031+
10032+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10033+$as_echo "$ld_shlibs" >&6; }
10034+test "$ld_shlibs" = no && can_build_shared=no
10035+
10036+with_gnu_ld=$with_gnu_ld
10037+
10038+
10039+
10040+
10041+
10042+
10043+
10044+
10045+
10046+
10047+
10048+
10049+
10050+
10051+
10052+#
10053+# Do we need to explicitly link libc?
10054+#
10055+case "x$archive_cmds_need_lc" in
10056+x|xyes)
10057+ # Assume -lc should be added
10058+ archive_cmds_need_lc=yes
10059+
10060+ if test "$enable_shared" = yes && test "$GCC" = yes; then
10061+ case $archive_cmds in
10062+ *'~'*)
10063+ # FIXME: we may have to deal with multi-command sequences.
10064+ ;;
10065+ '$CC '*)
10066+ # Test whether the compiler implicitly links with -lc since on some
10067+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
10068+ # to ld, don't add -lc before -lgcc.
10069+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10070+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10071+if ${lt_cv_archive_cmds_need_lc+:} false; then :
10072+ $as_echo_n "(cached) " >&6
10073+else
10074+ $RM conftest*
10075+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076+
10077+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10078+ (eval $ac_compile) 2>&5
10079+ ac_status=$?
10080+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10081+ test $ac_status = 0; } 2>conftest.err; then
10082+ soname=conftest
10083+ lib=conftest
10084+ libobjs=conftest.$ac_objext
10085+ deplibs=
10086+ wl=$lt_prog_compiler_wl
10087+ pic_flag=$lt_prog_compiler_pic
10088+ compiler_flags=-v
10089+ linker_flags=-v
10090+ verstring=
10091+ output_objdir=.
10092+ libname=conftest
10093+ lt_save_allow_undefined_flag=$allow_undefined_flag
10094+ allow_undefined_flag=
10095+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10096+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10097+ ac_status=$?
10098+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099+ test $ac_status = 0; }
10100+ then
10101+ lt_cv_archive_cmds_need_lc=no
10102+ else
10103+ lt_cv_archive_cmds_need_lc=yes
10104+ fi
10105+ allow_undefined_flag=$lt_save_allow_undefined_flag
10106+ else
10107+ cat conftest.err 1>&5
10108+ fi
10109+ $RM conftest*
10110+
10111+fi
10112+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10113+$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10114+ archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10115+ ;;
10116+ esac
10117+ fi
10118+ ;;
10119+esac
10120+
10121+
10122+
10123+
10124+
10125+
10126+
10127+
10128+
10129+
10130+
10131+
10132+
10133+
10134+
10135+
10136+
10137+
10138+
10139+
10140+
10141+
10142+
10143+
10144+
10145+
10146+
10147+
10148+
10149+
10150+
10151+
10152+
10153+
10154+
10155+
10156+
10157+
10158+
10159+
10160+
10161+
10162+
10163+
10164+
10165+
10166+
10167+
10168+
10169+
10170+
10171+
10172+
10173+
10174+
10175+
10176+
10177+
10178+
10179+
10180+
10181+
10182+
10183+
10184+
10185+
10186+
10187+
10188+
10189+
10190+
10191+
10192+
10193+
10194+
10195+
10196+
10197+
10198+
10199+
10200+
10201+
10202+
10203+
10204+
10205+
10206+
10207+
10208+
10209+
10210+
10211+
10212+
10213+
10214+
10215+
10216+
10217+
10218+
10219+
10220+
10221+
10222+
10223+
10224+
10225+
10226+
10227+
10228+
10229+
10230+
10231+
10232+
10233+
10234+
10235+
10236+
10237+
10238+
10239+
10240+
10241+
10242+
10243+
10244+
10245+
10246+
10247+
10248+
10249+
10250+
10251+
10252+
10253+
10254+
10255+
10256+
10257+
10258+
10259+
10260+
10261+
10262+
10263+
10264+
10265+
10266+
10267+
10268+
10269+
10270+
10271+
10272+
10273+
10274+
10275+
10276+
10277+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10278+$as_echo_n "checking dynamic linker characteristics... " >&6; }
10279+
10280+if test "$GCC" = yes; then
10281+ case $host_os in
10282+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10283+ *) lt_awk_arg="/^libraries:/" ;;
10284+ esac
10285+ case $host_os in
10286+ mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10287+ *) lt_sed_strip_eq="s,=/,/,g" ;;
10288+ esac
10289+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10290+ case $lt_search_path_spec in
10291+ *\;*)
10292+ # if the path contains ";" then we assume it to be the separator
10293+ # otherwise default to the standard path separator (i.e. ":") - it is
10294+ # assumed that no part of a normal pathname contains ";" but that should
10295+ # okay in the real world where ";" in dirpaths is itself problematic.
10296+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10297+ ;;
10298+ *)
10299+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10300+ ;;
10301+ esac
10302+ # Ok, now we have the path, separated by spaces, we can step through it
10303+ # and add multilib dir if necessary.
10304+ lt_tmp_lt_search_path_spec=
10305+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10306+ for lt_sys_path in $lt_search_path_spec; do
10307+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10308+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10309+ else
10310+ test -d "$lt_sys_path" && \
10311+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10312+ fi
10313+ done
10314+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10315+BEGIN {RS=" "; FS="/|\n";} {
10316+ lt_foo="";
10317+ lt_count=0;
10318+ for (lt_i = NF; lt_i > 0; lt_i--) {
10319+ if ($lt_i != "" && $lt_i != ".") {
10320+ if ($lt_i == "..") {
10321+ lt_count++;
10322+ } else {
10323+ if (lt_count == 0) {
10324+ lt_foo="/" $lt_i lt_foo;
10325+ } else {
10326+ lt_count--;
10327+ }
10328+ }
10329+ }
10330+ }
10331+ if (lt_foo != "") { lt_freq[lt_foo]++; }
10332+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
10333+}'`
10334+ # AWK program above erroneously prepends '/' to C:/dos/paths
10335+ # for these hosts.
10336+ case $host_os in
10337+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10338+ $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10339+ esac
10340+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10341+else
10342+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10343+fi
10344+library_names_spec=
10345+libname_spec='lib$name'
10346+soname_spec=
10347+shrext_cmds=".so"
10348+postinstall_cmds=
10349+postuninstall_cmds=
10350+finish_cmds=
10351+finish_eval=
10352+shlibpath_var=
10353+shlibpath_overrides_runpath=unknown
10354+version_type=none
10355+dynamic_linker="$host_os ld.so"
10356+sys_lib_dlsearch_path_spec="/lib /usr/lib"
10357+need_lib_prefix=unknown
10358+hardcode_into_libs=no
10359+
10360+# when you set need_version to no, make sure it does not cause -set_version
10361+# flags to be left without arguments
10362+need_version=unknown
10363+
10364+case $host_os in
10365+aix3*)
10366+ version_type=linux
10367+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10368+ shlibpath_var=LIBPATH
10369+
10370+ # AIX 3 has no versioning support, so we append a major version to the name.
10371+ soname_spec='${libname}${release}${shared_ext}$major'
10372+ ;;
10373+
10374+aix[4-9]*)
10375+ version_type=linux
10376+ need_lib_prefix=no
10377+ need_version=no
10378+ hardcode_into_libs=yes
10379+ if test "$host_cpu" = ia64; then
10380+ # AIX 5 supports IA64
10381+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10382+ shlibpath_var=LD_LIBRARY_PATH
10383+ else
10384+ # With GCC up to 2.95.x, collect2 would create an import file
10385+ # for dependence libraries. The import file would start with
10386+ # the line `#! .'. This would cause the generated library to
10387+ # depend on `.', always an invalid library. This was fixed in
10388+ # development snapshots of GCC prior to 3.0.
10389+ case $host_os in
10390+ aix4 | aix4.[01] | aix4.[01].*)
10391+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10392+ echo ' yes '
10393+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10394+ :
10395+ else
10396+ can_build_shared=no
10397+ fi
10398+ ;;
10399+ esac
10400+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10401+ # soname into executable. Probably we can add versioning support to
10402+ # collect2, so additional links can be useful in future.
10403+ if test "$aix_use_runtimelinking" = yes; then
10404+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10405+ # instead of lib<name>.a to let people know that these are not
10406+ # typical AIX shared libraries.
10407+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408+ else
10409+ # We preserve .a as extension for shared libraries through AIX4.2
10410+ # and later when we are not doing run time linking.
10411+ library_names_spec='${libname}${release}.a $libname.a'
10412+ soname_spec='${libname}${release}${shared_ext}$major'
10413+ fi
10414+ shlibpath_var=LIBPATH
10415+ fi
10416+ ;;
10417+
10418+amigaos*)
10419+ case $host_cpu in
10420+ powerpc)
10421+ # Since July 2007 AmigaOS4 officially supports .so libraries.
10422+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10423+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424+ ;;
10425+ m68k)
10426+ library_names_spec='$libname.ixlibrary $libname.a'
10427+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
10428+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10429+ ;;
10430+ esac
10431+ ;;
10432+
10433+beos*)
10434+ library_names_spec='${libname}${shared_ext}'
10435+ dynamic_linker="$host_os ld.so"
10436+ shlibpath_var=LIBRARY_PATH
10437+ ;;
10438+
10439+bsdi[45]*)
10440+ version_type=linux
10441+ need_version=no
10442+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443+ soname_spec='${libname}${release}${shared_ext}$major'
10444+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10445+ shlibpath_var=LD_LIBRARY_PATH
10446+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10447+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10448+ # the default ld.so.conf also contains /usr/contrib/lib and
10449+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10450+ # libtool to hard-code these into programs
10451+ ;;
10452+
10453+cygwin* | mingw* | pw32* | cegcc*)
10454+ version_type=windows
10455+ shrext_cmds=".dll"
10456+ need_version=no
10457+ need_lib_prefix=no
10458+
10459+ case $GCC,$host_os in
10460+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10461+ library_names_spec='$libname.dll.a'
10462+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
10463+ postinstall_cmds='base_file=`basename \${file}`~
10464+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10465+ dldir=$destdir/`dirname \$dlpath`~
10466+ test -d \$dldir || mkdir -p \$dldir~
10467+ $install_prog $dir/$dlname \$dldir/$dlname~
10468+ chmod a+x \$dldir/$dlname~
10469+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10470+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10471+ fi'
10472+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10473+ dlpath=$dir/\$dldll~
10474+ $RM \$dlpath'
10475+ shlibpath_overrides_runpath=yes
10476+
10477+ case $host_os in
10478+ cygwin*)
10479+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10480+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10481+
10482+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10483+ ;;
10484+ mingw* | cegcc*)
10485+ # MinGW DLLs use traditional 'lib' prefix
10486+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10487+ ;;
10488+ pw32*)
10489+ # pw32 DLLs use 'pw' prefix rather than 'lib'
10490+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491+ ;;
10492+ esac
10493+ ;;
10494+
10495+ *)
10496+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10497+ ;;
10498+ esac
10499+ dynamic_linker='Win32 ld.exe'
10500+ # FIXME: first we should search . and the directory the executable is in
10501+ shlibpath_var=PATH
10502+ ;;
10503+
10504+darwin* | rhapsody*)
10505+ dynamic_linker="$host_os dyld"
10506+ version_type=darwin
10507+ need_lib_prefix=no
10508+ need_version=no
10509+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10510+ soname_spec='${libname}${release}${major}$shared_ext'
10511+ shlibpath_overrides_runpath=yes
10512+ shlibpath_var=DYLD_LIBRARY_PATH
10513+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10514+
10515+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10516+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10517+ ;;
10518+
10519+dgux*)
10520+ version_type=linux
10521+ need_lib_prefix=no
10522+ need_version=no
10523+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10524+ soname_spec='${libname}${release}${shared_ext}$major'
10525+ shlibpath_var=LD_LIBRARY_PATH
10526+ ;;
10527+
10528+freebsd* | dragonfly*)
10529+ # DragonFly does not have aout. When/if they implement a new
10530+ # versioning mechanism, adjust this.
10531+ if test -x /usr/bin/objformat; then
10532+ objformat=`/usr/bin/objformat`
10533+ else
10534+ case $host_os in
10535+ freebsd[23].*) objformat=aout ;;
10536+ *) objformat=elf ;;
10537+ esac
10538+ fi
10539+ version_type=freebsd-$objformat
10540+ case $version_type in
10541+ freebsd-elf*)
10542+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10543+ need_version=no
10544+ need_lib_prefix=no
10545+ ;;
10546+ freebsd-*)
10547+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10548+ need_version=yes
10549+ ;;
10550+ esac
10551+ shlibpath_var=LD_LIBRARY_PATH
10552+ case $host_os in
10553+ freebsd2.*)
10554+ shlibpath_overrides_runpath=yes
10555+ ;;
10556+ freebsd3.[01]* | freebsdelf3.[01]*)
10557+ shlibpath_overrides_runpath=yes
10558+ hardcode_into_libs=yes
10559+ ;;
10560+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10561+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10562+ shlibpath_overrides_runpath=no
10563+ hardcode_into_libs=yes
10564+ ;;
10565+ *) # from 4.6 on, and DragonFly
10566+ shlibpath_overrides_runpath=yes
10567+ hardcode_into_libs=yes
10568+ ;;
10569+ esac
10570+ ;;
10571+
10572+gnu*)
10573+ version_type=linux
10574+ need_lib_prefix=no
10575+ need_version=no
10576+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10577+ soname_spec='${libname}${release}${shared_ext}$major'
10578+ shlibpath_var=LD_LIBRARY_PATH
10579+ hardcode_into_libs=yes
10580+ ;;
10581+
10582+haiku*)
10583+ version_type=linux
10584+ need_lib_prefix=no
10585+ need_version=no
10586+ dynamic_linker="$host_os runtime_loader"
10587+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10588+ soname_spec='${libname}${release}${shared_ext}$major'
10589+ shlibpath_var=LIBRARY_PATH
10590+ shlibpath_overrides_runpath=yes
10591+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10592+ hardcode_into_libs=yes
10593+ ;;
10594+
10595+hpux9* | hpux10* | hpux11*)
10596+ # Give a soname corresponding to the major version so that dld.sl refuses to
10597+ # link against other versions.
10598+ version_type=sunos
10599+ need_lib_prefix=no
10600+ need_version=no
10601+ case $host_cpu in
10602+ ia64*)
10603+ shrext_cmds='.so'
10604+ hardcode_into_libs=yes
10605+ dynamic_linker="$host_os dld.so"
10606+ shlibpath_var=LD_LIBRARY_PATH
10607+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10608+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609+ soname_spec='${libname}${release}${shared_ext}$major'
10610+ if test "X$HPUX_IA64_MODE" = X32; then
10611+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10612+ else
10613+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10614+ fi
10615+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10616+ ;;
10617+ hppa*64*)
10618+ shrext_cmds='.sl'
10619+ hardcode_into_libs=yes
10620+ dynamic_linker="$host_os dld.sl"
10621+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10622+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10623+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624+ soname_spec='${libname}${release}${shared_ext}$major'
10625+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10626+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10627+ ;;
10628+ *)
10629+ shrext_cmds='.sl'
10630+ dynamic_linker="$host_os dld.sl"
10631+ shlibpath_var=SHLIB_PATH
10632+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10633+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634+ soname_spec='${libname}${release}${shared_ext}$major'
10635+ ;;
10636+ esac
10637+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10638+ postinstall_cmds='chmod 555 $lib'
10639+ # or fails outright, so override atomically:
10640+ install_override_mode=555
10641+ ;;
10642+
10643+interix[3-9]*)
10644+ version_type=linux
10645+ need_lib_prefix=no
10646+ need_version=no
10647+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10648+ soname_spec='${libname}${release}${shared_ext}$major'
10649+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10650+ shlibpath_var=LD_LIBRARY_PATH
10651+ shlibpath_overrides_runpath=no
10652+ hardcode_into_libs=yes
10653+ ;;
10654+
10655+irix5* | irix6* | nonstopux*)
10656+ case $host_os in
10657+ nonstopux*) version_type=nonstopux ;;
10658+ *)
10659+ if test "$lt_cv_prog_gnu_ld" = yes; then
10660+ version_type=linux
10661+ else
10662+ version_type=irix
10663+ fi ;;
10664+ esac
10665+ need_lib_prefix=no
10666+ need_version=no
10667+ soname_spec='${libname}${release}${shared_ext}$major'
10668+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10669+ case $host_os in
10670+ irix5* | nonstopux*)
10671+ libsuff= shlibsuff=
10672+ ;;
10673+ *)
10674+ case $LD in # libtool.m4 will add one of these switches to LD
10675+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10676+ libsuff= shlibsuff= libmagic=32-bit;;
10677+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10678+ libsuff=32 shlibsuff=N32 libmagic=N32;;
10679+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10680+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
10681+ *) libsuff= shlibsuff= libmagic=never-match;;
10682+ esac
10683+ ;;
10684+ esac
10685+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10686+ shlibpath_overrides_runpath=no
10687+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10688+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10689+ hardcode_into_libs=yes
10690+ ;;
10691+
10692+# No shared lib support for Linux oldld, aout, or coff.
10693+linux*oldld* | linux*aout* | linux*coff*)
10694+ dynamic_linker=no
10695+ ;;
10696+
10697+# This must be Linux ELF.
10698+linux* | k*bsd*-gnu | kopensolaris*-gnu)
10699+ version_type=linux
10700+ need_lib_prefix=no
10701+ need_version=no
10702+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703+ soname_spec='${libname}${release}${shared_ext}$major'
10704+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10705+ shlibpath_var=LD_LIBRARY_PATH
10706+ shlibpath_overrides_runpath=no
10707+
10708+ # Some binutils ld are patched to set DT_RUNPATH
10709+ if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10710+ $as_echo_n "(cached) " >&6
10711+else
10712+ lt_cv_shlibpath_overrides_runpath=no
10713+ save_LDFLAGS=$LDFLAGS
10714+ save_libdir=$libdir
10715+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10716+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10717+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718+/* end confdefs.h. */
10719+
10720+int
10721+main ()
10722+{
10723+
10724+ ;
10725+ return 0;
10726+}
10727+_ACEOF
10728+if ac_fn_c_try_link "$LINENO"; then :
10729+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10730+ lt_cv_shlibpath_overrides_runpath=yes
10731+fi
10732+fi
10733+rm -f core conftest.err conftest.$ac_objext \
10734+ conftest$ac_exeext conftest.$ac_ext
10735+ LDFLAGS=$save_LDFLAGS
10736+ libdir=$save_libdir
10737+
10738+fi
10739+
10740+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10741+
10742+ # This implies no fast_install, which is unacceptable.
10743+ # Some rework will be needed to allow for fast_install
10744+ # before this can be enabled.
10745+ hardcode_into_libs=yes
10746+
10747+ # Append ld.so.conf contents to the search path
10748+ if test -f /etc/ld.so.conf; then
10749+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10750+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10751+ fi
10752+
10753+ # We used to test for /lib/ld.so.1 and disable shared libraries on
10754+ # powerpc, because MkLinux only supported shared libraries with the
10755+ # GNU dynamic linker. Since this was broken with cross compilers,
10756+ # most powerpc-linux boxes support dynamic linking these days and
10757+ # people can always --disable-shared, the test was removed, and we
10758+ # assume the GNU/Linux dynamic linker is in use.
10759+ dynamic_linker='GNU/Linux ld.so'
10760+ ;;
10761+
10762+netbsd*)
10763+ version_type=sunos
10764+ need_lib_prefix=no
10765+ need_version=no
10766+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10767+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10768+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10769+ dynamic_linker='NetBSD (a.out) ld.so'
10770+ else
10771+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10772+ soname_spec='${libname}${release}${shared_ext}$major'
10773+ dynamic_linker='NetBSD ld.elf_so'
10774+ fi
10775+ shlibpath_var=LD_LIBRARY_PATH
10776+ shlibpath_overrides_runpath=yes
10777+ hardcode_into_libs=yes
10778+ ;;
10779+
10780+newsos6)
10781+ version_type=linux
10782+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783+ shlibpath_var=LD_LIBRARY_PATH
10784+ shlibpath_overrides_runpath=yes
10785+ ;;
10786+
10787+*nto* | *qnx*)
10788+ version_type=qnx
10789+ need_lib_prefix=no
10790+ need_version=no
10791+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792+ soname_spec='${libname}${release}${shared_ext}$major'
10793+ shlibpath_var=LD_LIBRARY_PATH
10794+ shlibpath_overrides_runpath=no
10795+ hardcode_into_libs=yes
10796+ dynamic_linker='ldqnx.so'
10797+ ;;
10798+
10799+openbsd*)
10800+ version_type=sunos
10801+ sys_lib_dlsearch_path_spec="/usr/lib"
10802+ need_lib_prefix=no
10803+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10804+ case $host_os in
10805+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10806+ *) need_version=no ;;
10807+ esac
10808+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10809+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10810+ shlibpath_var=LD_LIBRARY_PATH
10811+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10812+ case $host_os in
10813+ openbsd2.[89] | openbsd2.[89].*)
10814+ shlibpath_overrides_runpath=no
10815+ ;;
10816+ *)
10817+ shlibpath_overrides_runpath=yes
10818+ ;;
10819+ esac
10820+ else
10821+ shlibpath_overrides_runpath=yes
10822+ fi
10823+ ;;
10824+
10825+os2*)
10826+ libname_spec='$name'
10827+ shrext_cmds=".dll"
10828+ need_lib_prefix=no
10829+ library_names_spec='$libname${shared_ext} $libname.a'
10830+ dynamic_linker='OS/2 ld.exe'
10831+ shlibpath_var=LIBPATH
10832+ ;;
10833+
10834+osf3* | osf4* | osf5*)
10835+ version_type=osf
10836+ need_lib_prefix=no
10837+ need_version=no
10838+ soname_spec='${libname}${release}${shared_ext}$major'
10839+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840+ shlibpath_var=LD_LIBRARY_PATH
10841+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10842+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10843+ ;;
10844+
10845+rdos*)
10846+ dynamic_linker=no
10847+ ;;
10848+
10849+solaris*)
10850+ version_type=linux
10851+ need_lib_prefix=no
10852+ need_version=no
10853+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854+ soname_spec='${libname}${release}${shared_ext}$major'
10855+ shlibpath_var=LD_LIBRARY_PATH
10856+ shlibpath_overrides_runpath=yes
10857+ hardcode_into_libs=yes
10858+ # ldd complains unless libraries are executable
10859+ postinstall_cmds='chmod +x $lib'
10860+ ;;
10861+
10862+sunos4*)
10863+ version_type=sunos
10864+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10866+ shlibpath_var=LD_LIBRARY_PATH
10867+ shlibpath_overrides_runpath=yes
10868+ if test "$with_gnu_ld" = yes; then
10869+ need_lib_prefix=no
10870+ fi
10871+ need_version=yes
10872+ ;;
10873+
10874+sysv4 | sysv4.3*)
10875+ version_type=linux
10876+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877+ soname_spec='${libname}${release}${shared_ext}$major'
10878+ shlibpath_var=LD_LIBRARY_PATH
10879+ case $host_vendor in
10880+ sni)
10881+ shlibpath_overrides_runpath=no
10882+ need_lib_prefix=no
10883+ runpath_var=LD_RUN_PATH
10884+ ;;
10885+ siemens)
10886+ need_lib_prefix=no
10887+ ;;
10888+ motorola)
10889+ need_lib_prefix=no
10890+ need_version=no
10891+ shlibpath_overrides_runpath=no
10892+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10893+ ;;
10894+ esac
10895+ ;;
10896+
10897+sysv4*MP*)
10898+ if test -d /usr/nec ;then
10899+ version_type=linux
10900+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10901+ soname_spec='$libname${shared_ext}.$major'
10902+ shlibpath_var=LD_LIBRARY_PATH
10903+ fi
10904+ ;;
10905+
10906+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10907+ version_type=freebsd-elf
10908+ need_lib_prefix=no
10909+ need_version=no
10910+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10911+ soname_spec='${libname}${release}${shared_ext}$major'
10912+ shlibpath_var=LD_LIBRARY_PATH
10913+ shlibpath_overrides_runpath=yes
10914+ hardcode_into_libs=yes
10915+ if test "$with_gnu_ld" = yes; then
10916+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10917+ else
10918+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10919+ case $host_os in
10920+ sco3.2v5*)
10921+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10922+ ;;
10923+ esac
10924+ fi
10925+ sys_lib_dlsearch_path_spec='/usr/lib'
10926+ ;;
10927+
10928+tpf*)
10929+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10930+ version_type=linux
10931+ need_lib_prefix=no
10932+ need_version=no
10933+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934+ shlibpath_var=LD_LIBRARY_PATH
10935+ shlibpath_overrides_runpath=no
10936+ hardcode_into_libs=yes
10937+ ;;
10938+
10939+uts4*)
10940+ version_type=linux
10941+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942+ soname_spec='${libname}${release}${shared_ext}$major'
10943+ shlibpath_var=LD_LIBRARY_PATH
10944+ ;;
10945+
10946+*)
10947+ dynamic_linker=no
10948+ ;;
10949+esac
10950+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10951+$as_echo "$dynamic_linker" >&6; }
10952+test "$dynamic_linker" = no && can_build_shared=no
10953+
10954+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10955+if test "$GCC" = yes; then
10956+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10957+fi
10958+
10959+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10960+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10961+fi
10962+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10963+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10964+fi
10965+
10966+
10967+
10968+
10969+
10970+
10971+
10972+
10973+
10974+
10975+
10976+
10977+
10978+
10979+
10980+
10981+
10982+
10983+
10984+
10985+
10986+
10987+
10988+
10989+
10990+
10991+
10992+
10993+
10994+
10995+
10996+
10997+
10998+
10999+
11000+
11001+
11002+
11003+
11004+
11005+
11006+
11007+
11008+
11009+
11010+
11011+
11012+
11013+
11014+
11015+
11016+
11017+
11018+
11019+
11020+
11021+
11022+
11023+
11024+
11025+
11026+
11027+
11028+
11029+
11030+
11031+
11032+
11033+
11034+
11035+
11036+
11037+
11038+
11039+
11040+
11041+
11042+
11043+
11044+
11045+
11046+
11047+
11048+
11049+
11050+
11051+
11052+
11053+
11054+
11055+
11056+
11057+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11058+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11059+hardcode_action=
11060+if test -n "$hardcode_libdir_flag_spec" ||
11061+ test -n "$runpath_var" ||
11062+ test "X$hardcode_automatic" = "Xyes" ; then
11063+
11064+ # We can hardcode non-existent directories.
11065+ if test "$hardcode_direct" != no &&
11066+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
11067+ # have to relink, otherwise we might link with an installed library
11068+ # when we should be linking with a yet-to-be-installed one
11069+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11070+ test "$hardcode_minus_L" != no; then
11071+ # Linking always hardcodes the temporary library directory.
11072+ hardcode_action=relink
11073+ else
11074+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
11075+ hardcode_action=immediate
11076+ fi
11077+else
11078+ # We cannot hardcode anything, or else we can only hardcode existing
11079+ # directories.
11080+ hardcode_action=unsupported
11081+fi
11082+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11083+$as_echo "$hardcode_action" >&6; }
11084+
11085+if test "$hardcode_action" = relink ||
11086+ test "$inherit_rpath" = yes; then
11087+ # Fast installation is not supported
11088+ enable_fast_install=no
11089+elif test "$shlibpath_overrides_runpath" = yes ||
11090+ test "$enable_shared" = no; then
11091+ # Fast installation is not necessary
11092+ enable_fast_install=needless
11093+fi
11094+
11095+
11096+
11097+
11098+
11099+
11100+ if test "x$enable_dlopen" != xyes; then
11101+ enable_dlopen=unknown
11102+ enable_dlopen_self=unknown
11103+ enable_dlopen_self_static=unknown
11104+else
11105+ lt_cv_dlopen=no
11106+ lt_cv_dlopen_libs=
11107+
11108+ case $host_os in
11109+ beos*)
11110+ lt_cv_dlopen="load_add_on"
11111+ lt_cv_dlopen_libs=
11112+ lt_cv_dlopen_self=yes
11113+ ;;
11114+
11115+ mingw* | pw32* | cegcc*)
11116+ lt_cv_dlopen="LoadLibrary"
11117+ lt_cv_dlopen_libs=
11118+ ;;
11119+
11120+ cygwin*)
11121+ lt_cv_dlopen="dlopen"
11122+ lt_cv_dlopen_libs=
11123+ ;;
11124+
11125+ darwin*)
11126+ # if libdl is installed we need to link against it
11127+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11128+$as_echo_n "checking for dlopen in -ldl... " >&6; }
11129+if ${ac_cv_lib_dl_dlopen+:} false; then :
11130+ $as_echo_n "(cached) " >&6
11131+else
11132+ ac_check_lib_save_LIBS=$LIBS
11133+LIBS="-ldl $LIBS"
11134+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135+/* end confdefs.h. */
11136+
11137+/* Override any GCC internal prototype to avoid an error.
11138+ Use char because int might match the return type of a GCC
11139+ builtin and then its argument prototype would still apply. */
11140+#ifdef __cplusplus
11141+extern "C"
11142+#endif
11143+char dlopen ();
11144+int
11145+main ()
11146+{
11147+return dlopen ();
11148+ ;
11149+ return 0;
11150+}
11151+_ACEOF
11152+if ac_fn_c_try_link "$LINENO"; then :
11153+ ac_cv_lib_dl_dlopen=yes
11154+else
11155+ ac_cv_lib_dl_dlopen=no
11156+fi
11157+rm -f core conftest.err conftest.$ac_objext \
11158+ conftest$ac_exeext conftest.$ac_ext
11159+LIBS=$ac_check_lib_save_LIBS
11160+fi
11161+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11162+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11163+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11164+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11165+else
11166+
11167+ lt_cv_dlopen="dyld"
11168+ lt_cv_dlopen_libs=
11169+ lt_cv_dlopen_self=yes
11170+
11171+fi
11172+
11173+ ;;
11174+
11175+ *)
11176+ ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11177+if test "x$ac_cv_func_shl_load" = xyes; then :
11178+ lt_cv_dlopen="shl_load"
11179+else
11180+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11181+$as_echo_n "checking for shl_load in -ldld... " >&6; }
11182+if ${ac_cv_lib_dld_shl_load+:} false; then :
11183+ $as_echo_n "(cached) " >&6
11184+else
11185+ ac_check_lib_save_LIBS=$LIBS
11186+LIBS="-ldld $LIBS"
11187+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188+/* end confdefs.h. */
11189+
11190+/* Override any GCC internal prototype to avoid an error.
11191+ Use char because int might match the return type of a GCC
11192+ builtin and then its argument prototype would still apply. */
11193+#ifdef __cplusplus
11194+extern "C"
11195+#endif
11196+char shl_load ();
11197+int
11198+main ()
11199+{
11200+return shl_load ();
11201+ ;
11202+ return 0;
11203+}
11204+_ACEOF
11205+if ac_fn_c_try_link "$LINENO"; then :
11206+ ac_cv_lib_dld_shl_load=yes
11207+else
11208+ ac_cv_lib_dld_shl_load=no
11209+fi
11210+rm -f core conftest.err conftest.$ac_objext \
11211+ conftest$ac_exeext conftest.$ac_ext
11212+LIBS=$ac_check_lib_save_LIBS
11213+fi
11214+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11215+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11216+if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11217+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11218+else
11219+ ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11220+if test "x$ac_cv_func_dlopen" = xyes; then :
11221+ lt_cv_dlopen="dlopen"
11222+else
11223+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11224+$as_echo_n "checking for dlopen in -ldl... " >&6; }
11225+if ${ac_cv_lib_dl_dlopen+:} false; then :
11226+ $as_echo_n "(cached) " >&6
11227+else
11228+ ac_check_lib_save_LIBS=$LIBS
11229+LIBS="-ldl $LIBS"
11230+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231+/* end confdefs.h. */
11232+
11233+/* Override any GCC internal prototype to avoid an error.
11234+ Use char because int might match the return type of a GCC
11235+ builtin and then its argument prototype would still apply. */
11236+#ifdef __cplusplus
11237+extern "C"
11238+#endif
11239+char dlopen ();
11240+int
11241+main ()
11242+{
11243+return dlopen ();
11244+ ;
11245+ return 0;
11246+}
11247+_ACEOF
11248+if ac_fn_c_try_link "$LINENO"; then :
11249+ ac_cv_lib_dl_dlopen=yes
11250+else
11251+ ac_cv_lib_dl_dlopen=no
11252+fi
11253+rm -f core conftest.err conftest.$ac_objext \
11254+ conftest$ac_exeext conftest.$ac_ext
11255+LIBS=$ac_check_lib_save_LIBS
11256+fi
11257+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11260+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261+else
11262+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11263+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11264+if ${ac_cv_lib_svld_dlopen+:} false; then :
11265+ $as_echo_n "(cached) " >&6
11266+else
11267+ ac_check_lib_save_LIBS=$LIBS
11268+LIBS="-lsvld $LIBS"
11269+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270+/* end confdefs.h. */
11271+
11272+/* Override any GCC internal prototype to avoid an error.
11273+ Use char because int might match the return type of a GCC
11274+ builtin and then its argument prototype would still apply. */
11275+#ifdef __cplusplus
11276+extern "C"
11277+#endif
11278+char dlopen ();
11279+int
11280+main ()
11281+{
11282+return dlopen ();
11283+ ;
11284+ return 0;
11285+}
11286+_ACEOF
11287+if ac_fn_c_try_link "$LINENO"; then :
11288+ ac_cv_lib_svld_dlopen=yes
11289+else
11290+ ac_cv_lib_svld_dlopen=no
11291+fi
11292+rm -f core conftest.err conftest.$ac_objext \
11293+ conftest$ac_exeext conftest.$ac_ext
11294+LIBS=$ac_check_lib_save_LIBS
11295+fi
11296+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11297+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11298+if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11299+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11300+else
11301+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11302+$as_echo_n "checking for dld_link in -ldld... " >&6; }
11303+if ${ac_cv_lib_dld_dld_link+:} false; then :
11304+ $as_echo_n "(cached) " >&6
11305+else
11306+ ac_check_lib_save_LIBS=$LIBS
11307+LIBS="-ldld $LIBS"
11308+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309+/* end confdefs.h. */
11310+
11311+/* Override any GCC internal prototype to avoid an error.
11312+ Use char because int might match the return type of a GCC
11313+ builtin and then its argument prototype would still apply. */
11314+#ifdef __cplusplus
11315+extern "C"
11316+#endif
11317+char dld_link ();
11318+int
11319+main ()
11320+{
11321+return dld_link ();
11322+ ;
11323+ return 0;
11324+}
11325+_ACEOF
11326+if ac_fn_c_try_link "$LINENO"; then :
11327+ ac_cv_lib_dld_dld_link=yes
11328+else
11329+ ac_cv_lib_dld_dld_link=no
11330+fi
11331+rm -f core conftest.err conftest.$ac_objext \
11332+ conftest$ac_exeext conftest.$ac_ext
11333+LIBS=$ac_check_lib_save_LIBS
11334+fi
11335+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11336+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11337+if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11338+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11339+fi
11340+
11341+
11342+fi
11343+
11344+
11345+fi
11346+
11347+
11348+fi
11349+
11350+
11351+fi
11352+
11353+
11354+fi
11355+
11356+ ;;
11357+ esac
11358+
11359+ if test "x$lt_cv_dlopen" != xno; then
11360+ enable_dlopen=yes
11361+ else
11362+ enable_dlopen=no
11363+ fi
11364+
11365+ case $lt_cv_dlopen in
11366+ dlopen)
11367+ save_CPPFLAGS="$CPPFLAGS"
11368+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11369+
11370+ save_LDFLAGS="$LDFLAGS"
11371+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11372+
11373+ save_LIBS="$LIBS"
11374+ LIBS="$lt_cv_dlopen_libs $LIBS"
11375+
11376+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11377+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11378+if ${lt_cv_dlopen_self+:} false; then :
11379+ $as_echo_n "(cached) " >&6
11380+else
11381+ if test "$cross_compiling" = yes; then :
11382+ lt_cv_dlopen_self=cross
11383+else
11384+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385+ lt_status=$lt_dlunknown
11386+ cat > conftest.$ac_ext <<_LT_EOF
11387+#line 11387 "configure"
11388+#include "confdefs.h"
11389+
11390+#if HAVE_DLFCN_H
11391+#include <dlfcn.h>
11392+#endif
11393+
11394+#include <stdio.h>
11395+
11396+#ifdef RTLD_GLOBAL
11397+# define LT_DLGLOBAL RTLD_GLOBAL
11398+#else
11399+# ifdef DL_GLOBAL
11400+# define LT_DLGLOBAL DL_GLOBAL
11401+# else
11402+# define LT_DLGLOBAL 0
11403+# endif
11404+#endif
11405+
11406+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11407+ find out it does not work in some platform. */
11408+#ifndef LT_DLLAZY_OR_NOW
11409+# ifdef RTLD_LAZY
11410+# define LT_DLLAZY_OR_NOW RTLD_LAZY
11411+# else
11412+# ifdef DL_LAZY
11413+# define LT_DLLAZY_OR_NOW DL_LAZY
11414+# else
11415+# ifdef RTLD_NOW
11416+# define LT_DLLAZY_OR_NOW RTLD_NOW
11417+# else
11418+# ifdef DL_NOW
11419+# define LT_DLLAZY_OR_NOW DL_NOW
11420+# else
11421+# define LT_DLLAZY_OR_NOW 0
11422+# endif
11423+# endif
11424+# endif
11425+# endif
11426+#endif
11427+
11428+/* When -fvisbility=hidden is used, assume the code has been annotated
11429+ correspondingly for the symbols needed. */
11430+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11431+void fnord () __attribute__((visibility("default")));
11432+#endif
11433+
11434+void fnord () { int i=42; }
11435+int main ()
11436+{
11437+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11438+ int status = $lt_dlunknown;
11439+
11440+ if (self)
11441+ {
11442+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11443+ else
11444+ {
11445+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11446+ else puts (dlerror ());
11447+ }
11448+ /* dlclose (self); */
11449+ }
11450+ else
11451+ puts (dlerror ());
11452+
11453+ return status;
11454+}
11455+_LT_EOF
11456+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11457+ (eval $ac_link) 2>&5
11458+ ac_status=$?
11459+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11461+ (./conftest; exit; ) >&5 2>/dev/null
11462+ lt_status=$?
11463+ case x$lt_status in
11464+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11465+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11466+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11467+ esac
11468+ else :
11469+ # compilation failed
11470+ lt_cv_dlopen_self=no
11471+ fi
11472+fi
11473+rm -fr conftest*
11474+
11475+
11476+fi
11477+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11478+$as_echo "$lt_cv_dlopen_self" >&6; }
11479+
11480+ if test "x$lt_cv_dlopen_self" = xyes; then
11481+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11482+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11483+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11484+if ${lt_cv_dlopen_self_static+:} false; then :
11485+ $as_echo_n "(cached) " >&6
11486+else
11487+ if test "$cross_compiling" = yes; then :
11488+ lt_cv_dlopen_self_static=cross
11489+else
11490+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491+ lt_status=$lt_dlunknown
11492+ cat > conftest.$ac_ext <<_LT_EOF
11493+#line 11493 "configure"
11494+#include "confdefs.h"
11495+
11496+#if HAVE_DLFCN_H
11497+#include <dlfcn.h>
11498+#endif
11499+
11500+#include <stdio.h>
11501+
11502+#ifdef RTLD_GLOBAL
11503+# define LT_DLGLOBAL RTLD_GLOBAL
11504+#else
11505+# ifdef DL_GLOBAL
11506+# define LT_DLGLOBAL DL_GLOBAL
11507+# else
11508+# define LT_DLGLOBAL 0
11509+# endif
11510+#endif
11511+
11512+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513+ find out it does not work in some platform. */
11514+#ifndef LT_DLLAZY_OR_NOW
11515+# ifdef RTLD_LAZY
11516+# define LT_DLLAZY_OR_NOW RTLD_LAZY
11517+# else
11518+# ifdef DL_LAZY
11519+# define LT_DLLAZY_OR_NOW DL_LAZY
11520+# else
11521+# ifdef RTLD_NOW
11522+# define LT_DLLAZY_OR_NOW RTLD_NOW
11523+# else
11524+# ifdef DL_NOW
11525+# define LT_DLLAZY_OR_NOW DL_NOW
11526+# else
11527+# define LT_DLLAZY_OR_NOW 0
11528+# endif
11529+# endif
11530+# endif
11531+# endif
11532+#endif
11533+
11534+/* When -fvisbility=hidden is used, assume the code has been annotated
11535+ correspondingly for the symbols needed. */
11536+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11537+void fnord () __attribute__((visibility("default")));
11538+#endif
11539+
11540+void fnord () { int i=42; }
11541+int main ()
11542+{
11543+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11544+ int status = $lt_dlunknown;
11545+
11546+ if (self)
11547+ {
11548+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11549+ else
11550+ {
11551+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11552+ else puts (dlerror ());
11553+ }
11554+ /* dlclose (self); */
11555+ }
11556+ else
11557+ puts (dlerror ());
11558+
11559+ return status;
11560+}
11561+_LT_EOF
11562+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563+ (eval $ac_link) 2>&5
11564+ ac_status=$?
11565+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567+ (./conftest; exit; ) >&5 2>/dev/null
11568+ lt_status=$?
11569+ case x$lt_status in
11570+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11571+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11572+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11573+ esac
11574+ else :
11575+ # compilation failed
11576+ lt_cv_dlopen_self_static=no
11577+ fi
11578+fi
11579+rm -fr conftest*
11580+
11581+
11582+fi
11583+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11584+$as_echo "$lt_cv_dlopen_self_static" >&6; }
11585+ fi
11586+
11587+ CPPFLAGS="$save_CPPFLAGS"
11588+ LDFLAGS="$save_LDFLAGS"
11589+ LIBS="$save_LIBS"
11590+ ;;
11591+ esac
11592+
11593+ case $lt_cv_dlopen_self in
11594+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11595+ *) enable_dlopen_self=unknown ;;
11596+ esac
11597+
11598+ case $lt_cv_dlopen_self_static in
11599+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11600+ *) enable_dlopen_self_static=unknown ;;
11601+ esac
11602+fi
11603+
11604+
11605+
11606+
11607+
11608+
11609+
11610+
11611+
11612+
11613+
11614+
11615+
11616+
11617+
11618+
11619+
11620+striplib=
11621+old_striplib=
11622+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11623+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11624+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11625+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11626+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11627+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628+$as_echo "yes" >&6; }
11629+else
11630+# FIXME - insert some real tests, host_os isn't really good enough
11631+ case $host_os in
11632+ darwin*)
11633+ if test -n "$STRIP" ; then
11634+ striplib="$STRIP -x"
11635+ old_striplib="$STRIP -S"
11636+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11637+$as_echo "yes" >&6; }
11638+ else
11639+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640+$as_echo "no" >&6; }
11641+ fi
11642+ ;;
11643+ *)
11644+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645+$as_echo "no" >&6; }
11646+ ;;
11647+ esac
11648+fi
11649+
11650+
11651+
11652+
11653+
11654+
11655+
11656+
11657+
11658+
11659+
11660+
11661+ # Report which library types will actually be built
11662+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11663+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11664+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11665+$as_echo "$can_build_shared" >&6; }
11666+
11667+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11668+$as_echo_n "checking whether to build shared libraries... " >&6; }
11669+ test "$can_build_shared" = "no" && enable_shared=no
11670+
11671+ # On AIX, shared libraries and static libraries use the same namespace, and
11672+ # are all built from PIC.
11673+ case $host_os in
11674+ aix3*)
11675+ test "$enable_shared" = yes && enable_static=no
11676+ if test -n "$RANLIB"; then
11677+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
11678+ postinstall_cmds='$RANLIB $lib'
11679+ fi
11680+ ;;
11681+
11682+ aix[4-9]*)
11683+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11684+ test "$enable_shared" = yes && enable_static=no
11685+ fi
11686+ ;;
11687+ esac
11688+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11689+$as_echo "$enable_shared" >&6; }
11690+
11691+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11692+$as_echo_n "checking whether to build static libraries... " >&6; }
11693+ # Make sure either enable_shared or enable_static is yes.
11694+ test "$enable_shared" = yes || enable_static=yes
11695+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11696+$as_echo "$enable_static" >&6; }
11697+
11698+
11699+
11700+
11701+fi
11702+ac_ext=c
11703+ac_cpp='$CPP $CPPFLAGS'
11704+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706+ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707+
11708+CC="$lt_save_CC"
11709+
11710+
11711+
11712+
11713+
11714+
11715+
11716+
11717+
11718+
11719+
11720+
11721+
11722+ ac_config_commands="$ac_config_commands libtool"
11723+
11724+
11725+
11726+
11727+# Only expand once:
11728+
11729+
11730+# Check whether --enable-largefile was given.
11731+if test "${enable_largefile+set}" = set; then :
11732+ enableval=$enable_largefile;
11733+fi
11734+
11735+if test "$enable_largefile" != no; then
11736+
11737+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11738+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11739+if ${ac_cv_sys_largefile_CC+:} false; then :
11740+ $as_echo_n "(cached) " >&6
11741+else
11742+ ac_cv_sys_largefile_CC=no
11743+ if test "$GCC" != yes; then
11744+ ac_save_CC=$CC
11745+ while :; do
11746+ # IRIX 6.2 and later do not support large files by default,
11747+ # so use the C compiler's -n32 option if that helps.
11748+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749+/* end confdefs.h. */
11750+#include <sys/types.h>
11751+ /* Check that off_t can represent 2**63 - 1 correctly.
11752+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
11753+ since some C++ compilers masquerading as C compilers
11754+ incorrectly reject 9223372036854775807. */
11755+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11756+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11757+ && LARGE_OFF_T % 2147483647 == 1)
11758+ ? 1 : -1];
11759+int
11760+main ()
11761+{
11762+
11763+ ;
11764+ return 0;
11765+}
11766+_ACEOF
11767+ if ac_fn_c_try_compile "$LINENO"; then :
11768+ break
11769+fi
11770+rm -f core conftest.err conftest.$ac_objext
11771+ CC="$CC -n32"
11772+ if ac_fn_c_try_compile "$LINENO"; then :
11773+ ac_cv_sys_largefile_CC=' -n32'; break
11774+fi
11775+rm -f core conftest.err conftest.$ac_objext
11776+ break
11777+ done
11778+ CC=$ac_save_CC
11779+ rm -f conftest.$ac_ext
11780+ fi
11781+fi
11782+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11783+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11784+ if test "$ac_cv_sys_largefile_CC" != no; then
11785+ CC=$CC$ac_cv_sys_largefile_CC
11786+ fi
11787+
11788+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11789+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11790+if ${ac_cv_sys_file_offset_bits+:} false; then :
11791+ $as_echo_n "(cached) " >&6
11792+else
11793+ while :; do
11794+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795+/* end confdefs.h. */
11796+#include <sys/types.h>
11797+ /* Check that off_t can represent 2**63 - 1 correctly.
11798+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
11799+ since some C++ compilers masquerading as C compilers
11800+ incorrectly reject 9223372036854775807. */
11801+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11802+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11803+ && LARGE_OFF_T % 2147483647 == 1)
11804+ ? 1 : -1];
11805+int
11806+main ()
11807+{
11808+
11809+ ;
11810+ return 0;
11811+}
11812+_ACEOF
11813+if ac_fn_c_try_compile "$LINENO"; then :
11814+ ac_cv_sys_file_offset_bits=no; break
11815+fi
11816+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11817+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818+/* end confdefs.h. */
11819+#define _FILE_OFFSET_BITS 64
11820+#include <sys/types.h>
11821+ /* Check that off_t can represent 2**63 - 1 correctly.
11822+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
11823+ since some C++ compilers masquerading as C compilers
11824+ incorrectly reject 9223372036854775807. */
11825+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11826+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11827+ && LARGE_OFF_T % 2147483647 == 1)
11828+ ? 1 : -1];
11829+int
11830+main ()
11831+{
11832+
11833+ ;
11834+ return 0;
11835+}
11836+_ACEOF
11837+if ac_fn_c_try_compile "$LINENO"; then :
11838+ ac_cv_sys_file_offset_bits=64; break
11839+fi
11840+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841+ ac_cv_sys_file_offset_bits=unknown
11842+ break
11843+done
11844+fi
11845+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11846+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11847+case $ac_cv_sys_file_offset_bits in #(
11848+ no | unknown) ;;
11849+ *)
11850+cat >>confdefs.h <<_ACEOF
11851+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11852+_ACEOF
11853+;;
11854+esac
11855+rm -rf conftest*
11856+ if test $ac_cv_sys_file_offset_bits = unknown; then
11857+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11858+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11859+if ${ac_cv_sys_large_files+:} false; then :
11860+ $as_echo_n "(cached) " >&6
11861+else
11862+ while :; do
11863+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864+/* end confdefs.h. */
11865+#include <sys/types.h>
11866+ /* Check that off_t can represent 2**63 - 1 correctly.
11867+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
11868+ since some C++ compilers masquerading as C compilers
11869+ incorrectly reject 9223372036854775807. */
11870+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11871+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11872+ && LARGE_OFF_T % 2147483647 == 1)
11873+ ? 1 : -1];
11874+int
11875+main ()
11876+{
11877+
11878+ ;
11879+ return 0;
11880+}
11881+_ACEOF
11882+if ac_fn_c_try_compile "$LINENO"; then :
11883+ ac_cv_sys_large_files=no; break
11884+fi
11885+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887+/* end confdefs.h. */
11888+#define _LARGE_FILES 1
11889+#include <sys/types.h>
11890+ /* Check that off_t can represent 2**63 - 1 correctly.
11891+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
11892+ since some C++ compilers masquerading as C compilers
11893+ incorrectly reject 9223372036854775807. */
11894+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11895+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11896+ && LARGE_OFF_T % 2147483647 == 1)
11897+ ? 1 : -1];
11898+int
11899+main ()
11900+{
11901+
11902+ ;
11903+ return 0;
11904+}
11905+_ACEOF
11906+if ac_fn_c_try_compile "$LINENO"; then :
11907+ ac_cv_sys_large_files=1; break
11908+fi
11909+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910+ ac_cv_sys_large_files=unknown
11911+ break
11912+done
11913+fi
11914+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11915+$as_echo "$ac_cv_sys_large_files" >&6; }
11916+case $ac_cv_sys_large_files in #(
11917+ no | unknown) ;;
11918+ *)
11919+cat >>confdefs.h <<_ACEOF
11920+#define _LARGE_FILES $ac_cv_sys_large_files
11921+_ACEOF
11922+;;
11923+esac
11924+rm -rf conftest*
11925+ fi
11926+
11927+
11928+fi
11929+
11930+
11931+MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11932+for ac_prog in aclocal
11933+do
11934+ # Extract the first word of "$ac_prog", so it can be a program name with args.
11935+set dummy $ac_prog; ac_word=$2
11936+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937+$as_echo_n "checking for $ac_word... " >&6; }
11938+if ${ac_cv_prog_ACLOCAL+:} false; then :
11939+ $as_echo_n "(cached) " >&6
11940+else
11941+ if test -n "$ACLOCAL"; then
11942+ ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
11943+else
11944+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945+for as_dir in $PATH
11946+do
11947+ IFS=$as_save_IFS
11948+ test -z "$as_dir" && as_dir=.
11949+ for ac_exec_ext in '' $ac_executable_extensions; do
11950+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11951+ ac_cv_prog_ACLOCAL="$ac_prog"
11952+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953+ break 2
11954+ fi
11955+done
540311956 done
540411957 IFS=$as_save_IFS
540511958
@@ -5727,6 +12280,62 @@ fi
572712280 MAINT=$MAINTAINER_MODE_TRUE
572812281
572912282
12283+ case ${build_alias} in
12284+ "") build_noncanonical=${build} ;;
12285+ *) build_noncanonical=${build_alias} ;;
12286+esac
12287+
12288+ case ${host_alias} in
12289+ "") host_noncanonical=${build_noncanonical} ;;
12290+ *) host_noncanonical=${host_alias} ;;
12291+esac
12292+
12293+ case ${target_alias} in
12294+ "") target_noncanonical=${host_noncanonical} ;;
12295+ *) target_noncanonical=${target_alias} ;;
12296+esac
12297+
12298+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12299+$as_echo_n "checking whether to install libbfd... " >&6; }
12300+ # Check whether --enable-install-libbfd was given.
12301+if test "${enable_install_libbfd+set}" = set; then :
12302+ enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12303+else
12304+ if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12305+ install_libbfd_p=yes
12306+ else
12307+ install_libbfd_p=no
12308+ fi
12309+fi
12310+
12311+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12312+$as_echo "$install_libbfd_p" >&6; }
12313+ if test $install_libbfd_p = yes; then
12314+ INSTALL_LIBBFD_TRUE=
12315+ INSTALL_LIBBFD_FALSE='#'
12316+else
12317+ INSTALL_LIBBFD_TRUE='#'
12318+ INSTALL_LIBBFD_FALSE=
12319+fi
12320+
12321+ # Need _noncanonical variables for this.
12322+
12323+
12324+
12325+
12326+ # libbfd.a is a host library containing target dependent code
12327+ bfdlibdir='$(libdir)'
12328+ bfdincludedir='$(includedir)'
12329+ if test "${host}" != "${target}"; then
12330+ bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12331+ bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12332+ fi
12333+
12334+
12335+
12336+
12337+
12338+
573012339 ac_ext=c
573112340 ac_cpp='$CPP $CPPFLAGS'
573212341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -5986,6 +12595,7 @@ $as_echo "#define HAVE_MMAP 1" >>confdefs.h
598612595 fi
598712596 rm -f conftest.mmap conftest.txt
598812597
12598+# Needed for BFD capability checks.
598912599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
599012600 $as_echo_n "checking for library containing dlopen... " >&6; }
599112601 if ${ac_cv_search_dlopen+:} false; then :
@@ -6490,15 +13100,71 @@ fi
649013100 rm -f core conftest.err conftest.$ac_objext \
649113101 conftest$ac_exeext conftest.$ac_ext
649213102 fi
6493-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
6494-$as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
13103+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
13104+$as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
13105+
13106+if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
13107+
13108+$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
13109+
13110+fi
13111+
13112+# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
13113+SHARED_LIBADD=
13114+SHARED_LDFLAGS=
13115+BFD_LIBADD=
13116+BFD_DEPENDENCIES=
13117+if test "$enable_shared" = "yes"; then
13118+# When building a shared libctf, link against the pic version of libiberty
13119+# so that apps that use libctf won't need libiberty just to satisfy any
13120+# libctf references.
13121+# We can't do that if a pic libiberty is unavailable since including non-pic
13122+# code would insert text relocations into libctf.
13123+# Note that linking against libbfd as we do here, which is itself linked
13124+# against libiberty, may not satisfy all the libctf libiberty references
13125+# since libbfd may not pull in the entirety of libiberty.
13126+ x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13127+ if test -n "$x"; then
13128+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
13129+ fi
13130+
13131+ case "${host}" in
13132+ # More hacks to build DLLs on Windows.
13133+ *-*-cygwin*)
13134+ SHARED_LDFLAGS="-no-undefined"
13135+ SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
13136+ BFD_LIBADD="-L`pwd`/../bfd -lbfd"
13137+ ;;
13138+
13139+ *-*-darwin*)
13140+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
13141+ BFD_DEPENDENCIES="../bfd/libbfd.la"
13142+ ;;
13143+ *)
13144+ case "$host_vendor" in
13145+ hp)
13146+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
13147+ ;;
13148+ *)
13149+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
13150+ ;;
13151+ esac
13152+ BFD_DEPENDENCIES="../bfd/libbfd.la"
13153+ ;;
13154+ esac
13155+fi
13156+
13157+
649513158
6496-if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
649713159
6498-$as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
649913160
13161+# Use a version script, if possible, or an -export-symbols-regex otherwise.
13162+VERSION_FLAGS='-export-symbols-regex ctf_.*'
13163+if $LD --help 2>&1 | grep -- --version-script >/dev/null; then
13164+ VERSION_FLAGS="-Wl,--version-script='$srcdir/libctf.ver'"
650013165 fi
650113166
13167+
650213168 ac_config_files="$ac_config_files Makefile"
650313169
650413170 ac_config_headers="$ac_config_headers config.h"
@@ -6640,6 +13306,10 @@ if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
664013306 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
664113307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
664213308 fi
13309+if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13310+ as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
13311+Usually this means the macro was only invoked conditionally." "$LINENO" 5
13312+fi
664313313
664413314 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
664513315 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
@@ -7229,6 +13899,266 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
722913899 #
723013900 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
723113901
13902+
13903+# The HP-UX ksh and POSIX shell print the target directory to stdout
13904+# if CDPATH is set.
13905+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13906+
13907+sed_quote_subst='$sed_quote_subst'
13908+double_quote_subst='$double_quote_subst'
13909+delay_variable_subst='$delay_variable_subst'
13910+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13911+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13912+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13913+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13914+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13915+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13916+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13917+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13918+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13919+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13920+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13921+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13922+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13923+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13924+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13925+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13926+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13927+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13928+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13929+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13930+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13931+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13932+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13933+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13934+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13935+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13936+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13937+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13938+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13939+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13940+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13941+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13942+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13943+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13944+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13945+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13946+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13947+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13948+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13949+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13950+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13951+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13952+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13953+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13954+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13955+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13956+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13957+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13958+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13959+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13960+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13961+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13962+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13963+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13964+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13965+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13966+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13967+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13968+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13969+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13970+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13971+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13972+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13973+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13974+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13975+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13976+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13977+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13978+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13979+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13980+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13981+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13982+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13983+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13984+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13985+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13986+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13987+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13988+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13989+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13990+hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13991+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13992+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13993+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13994+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13995+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13996+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13997+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13998+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13999+fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14000+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14001+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14002+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14003+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14004+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14005+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14006+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14007+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14008+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14009+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14010+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14011+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14012+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14013+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14014+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14015+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14016+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14017+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14018+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14019+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14020+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14021+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14022+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14023+sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14024+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14025+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14026+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14027+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14028+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14029+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14030+
14031+LTCC='$LTCC'
14032+LTCFLAGS='$LTCFLAGS'
14033+compiler='$compiler_DEFAULT'
14034+
14035+# A function that is used when there is no print builtin or printf.
14036+func_fallback_echo ()
14037+{
14038+ eval 'cat <<_LTECHO_EOF
14039+\$1
14040+_LTECHO_EOF'
14041+}
14042+
14043+# Quote evaled strings.
14044+for var in SHELL \
14045+ECHO \
14046+SED \
14047+GREP \
14048+EGREP \
14049+FGREP \
14050+LD \
14051+NM \
14052+LN_S \
14053+lt_SP2NL \
14054+lt_NL2SP \
14055+reload_flag \
14056+OBJDUMP \
14057+deplibs_check_method \
14058+file_magic_cmd \
14059+AR \
14060+AR_FLAGS \
14061+STRIP \
14062+RANLIB \
14063+CC \
14064+CFLAGS \
14065+compiler \
14066+lt_cv_sys_global_symbol_pipe \
14067+lt_cv_sys_global_symbol_to_cdecl \
14068+lt_cv_sys_global_symbol_to_c_name_address \
14069+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14070+lt_prog_compiler_no_builtin_flag \
14071+lt_prog_compiler_wl \
14072+lt_prog_compiler_pic \
14073+lt_prog_compiler_static \
14074+lt_cv_prog_compiler_c_o \
14075+need_locks \
14076+DSYMUTIL \
14077+NMEDIT \
14078+LIPO \
14079+OTOOL \
14080+OTOOL64 \
14081+shrext_cmds \
14082+export_dynamic_flag_spec \
14083+whole_archive_flag_spec \
14084+compiler_needs_object \
14085+with_gnu_ld \
14086+allow_undefined_flag \
14087+no_undefined_flag \
14088+hardcode_libdir_flag_spec \
14089+hardcode_libdir_flag_spec_ld \
14090+hardcode_libdir_separator \
14091+fix_srcfile_path \
14092+exclude_expsyms \
14093+include_expsyms \
14094+file_list_spec \
14095+variables_saved_for_relink \
14096+libname_spec \
14097+library_names_spec \
14098+soname_spec \
14099+install_override_mode \
14100+finish_eval \
14101+old_striplib \
14102+striplib; do
14103+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14104+ *[\\\\\\\`\\"\\\$]*)
14105+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14106+ ;;
14107+ *)
14108+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14109+ ;;
14110+ esac
14111+done
14112+
14113+# Double-quote double-evaled strings.
14114+for var in reload_cmds \
14115+old_postinstall_cmds \
14116+old_postuninstall_cmds \
14117+old_archive_cmds \
14118+extract_expsyms_cmds \
14119+old_archive_from_new_cmds \
14120+old_archive_from_expsyms_cmds \
14121+archive_cmds \
14122+archive_expsym_cmds \
14123+module_cmds \
14124+module_expsym_cmds \
14125+export_symbols_cmds \
14126+prelink_cmds \
14127+postinstall_cmds \
14128+postuninstall_cmds \
14129+finish_cmds \
14130+sys_lib_search_path_spec \
14131+sys_lib_dlsearch_path_spec; do
14132+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14133+ *[\\\\\\\`\\"\\\$]*)
14134+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14135+ ;;
14136+ *)
14137+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14138+ ;;
14139+ esac
14140+done
14141+
14142+ac_aux_dir='$ac_aux_dir'
14143+xsi_shell='$xsi_shell'
14144+lt_shell_append='$lt_shell_append'
14145+
14146+# See if we are running on zsh, and set the options which allow our
14147+# commands through without removal of \ escapes INIT.
14148+if test -n "\${ZSH_VERSION+set}" ; then
14149+ setopt NO_GLOB_SUBST
14150+fi
14151+
14152+
14153+ PACKAGE='$PACKAGE'
14154+ VERSION='$VERSION'
14155+ TIMESTAMP='$TIMESTAMP'
14156+ RM='$RM'
14157+ ofile='$ofile'
14158+
14159+
14160+
14161+
723214162 _ACEOF
723314163
723414164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
@@ -7238,6 +14168,7 @@ for ac_config_target in $ac_config_targets
723814168 do
723914169 case $ac_config_target in
724014170 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14171+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
724114172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
724214173 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
724314174
@@ -7928,6 +14859,645 @@ $as_echo X"$file" |
792814859 done
792914860 }
793014861 ;;
14862+ "libtool":C)
14863+
14864+ # See if we are running on zsh, and set the options which allow our
14865+ # commands through without removal of \ escapes.
14866+ if test -n "${ZSH_VERSION+set}" ; then
14867+ setopt NO_GLOB_SUBST
14868+ fi
14869+
14870+ cfgfile="${ofile}T"
14871+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14872+ $RM "$cfgfile"
14873+
14874+ cat <<_LT_EOF >> "$cfgfile"
14875+#! $SHELL
14876+
14877+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14878+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14879+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14880+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14881+#
14882+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14883+# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14884+# Written by Gordon Matzigkeit, 1996
14885+#
14886+# This file is part of GNU Libtool.
14887+#
14888+# GNU Libtool is free software; you can redistribute it and/or
14889+# modify it under the terms of the GNU General Public License as
14890+# published by the Free Software Foundation; either version 2 of
14891+# the License, or (at your option) any later version.
14892+#
14893+# As a special exception to the GNU General Public License,
14894+# if you distribute this file as part of a program or library that
14895+# is built using GNU Libtool, you may include this file under the
14896+# same distribution terms that you use for the rest of that program.
14897+#
14898+# GNU Libtool is distributed in the hope that it will be useful,
14899+# but WITHOUT ANY WARRANTY; without even the implied warranty of
14900+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14901+# GNU General Public License for more details.
14902+#
14903+# You should have received a copy of the GNU General Public License
14904+# along with GNU Libtool; see the file COPYING. If not, a copy
14905+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14906+# obtained by writing to the Free Software Foundation, Inc.,
14907+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14908+
14909+
14910+# The names of the tagged configurations supported by this script.
14911+available_tags=""
14912+
14913+# ### BEGIN LIBTOOL CONFIG
14914+
14915+# Whether or not to build shared libraries.
14916+build_libtool_libs=$enable_shared
14917+
14918+# Which release of libtool.m4 was used?
14919+macro_version=$macro_version
14920+macro_revision=$macro_revision
14921+
14922+# Whether or not to build static libraries.
14923+build_old_libs=$enable_static
14924+
14925+# What type of objects to build.
14926+pic_mode=$pic_mode
14927+
14928+# Whether or not to optimize for fast installation.
14929+fast_install=$enable_fast_install
14930+
14931+# Shell to use when invoking shell scripts.
14932+SHELL=$lt_SHELL
14933+
14934+# An echo program that protects backslashes.
14935+ECHO=$lt_ECHO
14936+
14937+# The host system.
14938+host_alias=$host_alias
14939+host=$host
14940+host_os=$host_os
14941+
14942+# The build system.
14943+build_alias=$build_alias
14944+build=$build
14945+build_os=$build_os
14946+
14947+# A sed program that does not truncate output.
14948+SED=$lt_SED
14949+
14950+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14951+Xsed="\$SED -e 1s/^X//"
14952+
14953+# A grep program that handles long lines.
14954+GREP=$lt_GREP
14955+
14956+# An ERE matcher.
14957+EGREP=$lt_EGREP
14958+
14959+# A literal string matcher.
14960+FGREP=$lt_FGREP
14961+
14962+# A BSD- or MS-compatible name lister.
14963+NM=$lt_NM
14964+
14965+# Whether we need soft or hard links.
14966+LN_S=$lt_LN_S
14967+
14968+# What is the maximum length of a command?
14969+max_cmd_len=$max_cmd_len
14970+
14971+# Object file suffix (normally "o").
14972+objext=$ac_objext
14973+
14974+# Executable file suffix (normally "").
14975+exeext=$exeext
14976+
14977+# whether the shell understands "unset".
14978+lt_unset=$lt_unset
14979+
14980+# turn spaces into newlines.
14981+SP2NL=$lt_lt_SP2NL
14982+
14983+# turn newlines into spaces.
14984+NL2SP=$lt_lt_NL2SP
14985+
14986+# An object symbol dumper.
14987+OBJDUMP=$lt_OBJDUMP
14988+
14989+# Method to check whether dependent libraries are shared objects.
14990+deplibs_check_method=$lt_deplibs_check_method
14991+
14992+# Command to use when deplibs_check_method == "file_magic".
14993+file_magic_cmd=$lt_file_magic_cmd
14994+
14995+# The archiver.
14996+AR=$lt_AR
14997+AR_FLAGS=$lt_AR_FLAGS
14998+
14999+# A symbol stripping program.
15000+STRIP=$lt_STRIP
15001+
15002+# Commands used to install an old-style archive.
15003+RANLIB=$lt_RANLIB
15004+old_postinstall_cmds=$lt_old_postinstall_cmds
15005+old_postuninstall_cmds=$lt_old_postuninstall_cmds
15006+
15007+# Whether to use a lock for old archive extraction.
15008+lock_old_archive_extraction=$lock_old_archive_extraction
15009+
15010+# A C compiler.
15011+LTCC=$lt_CC
15012+
15013+# LTCC compiler flags.
15014+LTCFLAGS=$lt_CFLAGS
15015+
15016+# Take the output of nm and produce a listing of raw symbols and C names.
15017+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15018+
15019+# Transform the output of nm in a proper C declaration.
15020+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15021+
15022+# Transform the output of nm in a C name address pair.
15023+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15024+
15025+# Transform the output of nm in a C name address pair when lib prefix is needed.
15026+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15027+
15028+# The name of the directory that contains temporary libtool files.
15029+objdir=$objdir
15030+
15031+# Used to examine libraries when file_magic_cmd begins with "file".
15032+MAGIC_CMD=$MAGIC_CMD
15033+
15034+# Must we lock files when doing compilation?
15035+need_locks=$lt_need_locks
15036+
15037+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15038+DSYMUTIL=$lt_DSYMUTIL
15039+
15040+# Tool to change global to local symbols on Mac OS X.
15041+NMEDIT=$lt_NMEDIT
15042+
15043+# Tool to manipulate fat objects and archives on Mac OS X.
15044+LIPO=$lt_LIPO
15045+
15046+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15047+OTOOL=$lt_OTOOL
15048+
15049+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15050+OTOOL64=$lt_OTOOL64
15051+
15052+# Old archive suffix (normally "a").
15053+libext=$libext
15054+
15055+# Shared library suffix (normally ".so").
15056+shrext_cmds=$lt_shrext_cmds
15057+
15058+# The commands to extract the exported symbol list from a shared archive.
15059+extract_expsyms_cmds=$lt_extract_expsyms_cmds
15060+
15061+# Variables whose values should be saved in libtool wrapper scripts and
15062+# restored at link time.
15063+variables_saved_for_relink=$lt_variables_saved_for_relink
15064+
15065+# Do we need the "lib" prefix for modules?
15066+need_lib_prefix=$need_lib_prefix
15067+
15068+# Do we need a version for libraries?
15069+need_version=$need_version
15070+
15071+# Library versioning type.
15072+version_type=$version_type
15073+
15074+# Shared library runtime path variable.
15075+runpath_var=$runpath_var
15076+
15077+# Shared library path variable.
15078+shlibpath_var=$shlibpath_var
15079+
15080+# Is shlibpath searched before the hard-coded library search path?
15081+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15082+
15083+# Format of library name prefix.
15084+libname_spec=$lt_libname_spec
15085+
15086+# List of archive names. First name is the real one, the rest are links.
15087+# The last name is the one that the linker finds with -lNAME
15088+library_names_spec=$lt_library_names_spec
15089+
15090+# The coded name of the library, if different from the real name.
15091+soname_spec=$lt_soname_spec
15092+
15093+# Permission mode override for installation of shared libraries.
15094+install_override_mode=$lt_install_override_mode
15095+
15096+# Command to use after installation of a shared archive.
15097+postinstall_cmds=$lt_postinstall_cmds
15098+
15099+# Command to use after uninstallation of a shared archive.
15100+postuninstall_cmds=$lt_postuninstall_cmds
15101+
15102+# Commands used to finish a libtool library installation in a directory.
15103+finish_cmds=$lt_finish_cmds
15104+
15105+# As "finish_cmds", except a single script fragment to be evaled but
15106+# not shown.
15107+finish_eval=$lt_finish_eval
15108+
15109+# Whether we should hardcode library paths into libraries.
15110+hardcode_into_libs=$hardcode_into_libs
15111+
15112+# Compile-time system search path for libraries.
15113+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15114+
15115+# Run-time system search path for libraries.
15116+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15117+
15118+# Whether dlopen is supported.
15119+dlopen_support=$enable_dlopen
15120+
15121+# Whether dlopen of programs is supported.
15122+dlopen_self=$enable_dlopen_self
15123+
15124+# Whether dlopen of statically linked programs is supported.
15125+dlopen_self_static=$enable_dlopen_self_static
15126+
15127+# Commands to strip libraries.
15128+old_striplib=$lt_old_striplib
15129+striplib=$lt_striplib
15130+
15131+
15132+# The linker used to build libraries.
15133+LD=$lt_LD
15134+
15135+# How to create reloadable object files.
15136+reload_flag=$lt_reload_flag
15137+reload_cmds=$lt_reload_cmds
15138+
15139+# Commands used to build an old-style archive.
15140+old_archive_cmds=$lt_old_archive_cmds
15141+
15142+# A language specific compiler.
15143+CC=$lt_compiler
15144+
15145+# Is the compiler the GNU compiler?
15146+with_gcc=$GCC
15147+
15148+# Compiler flag to turn off builtin functions.
15149+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15150+
15151+# How to pass a linker flag through the compiler.
15152+wl=$lt_lt_prog_compiler_wl
15153+
15154+# Additional compiler flags for building library objects.
15155+pic_flag=$lt_lt_prog_compiler_pic
15156+
15157+# Compiler flag to prevent dynamic linking.
15158+link_static_flag=$lt_lt_prog_compiler_static
15159+
15160+# Does compiler simultaneously support -c and -o options?
15161+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15162+
15163+# Whether or not to add -lc for building shared libraries.
15164+build_libtool_need_lc=$archive_cmds_need_lc
15165+
15166+# Whether or not to disallow shared libs when runtime libs are static.
15167+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15168+
15169+# Compiler flag to allow reflexive dlopens.
15170+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15171+
15172+# Compiler flag to generate shared objects directly from archives.
15173+whole_archive_flag_spec=$lt_whole_archive_flag_spec
15174+
15175+# Whether the compiler copes with passing no objects directly.
15176+compiler_needs_object=$lt_compiler_needs_object
15177+
15178+# Create an old-style archive from a shared archive.
15179+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15180+
15181+# Create a temporary old-style archive to link instead of a shared archive.
15182+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15183+
15184+# Commands used to build a shared archive.
15185+archive_cmds=$lt_archive_cmds
15186+archive_expsym_cmds=$lt_archive_expsym_cmds
15187+
15188+# Commands used to build a loadable module if different from building
15189+# a shared archive.
15190+module_cmds=$lt_module_cmds
15191+module_expsym_cmds=$lt_module_expsym_cmds
15192+
15193+# Whether we are building with GNU ld or not.
15194+with_gnu_ld=$lt_with_gnu_ld
15195+
15196+# Flag that allows shared libraries with undefined symbols to be built.
15197+allow_undefined_flag=$lt_allow_undefined_flag
15198+
15199+# Flag that enforces no undefined symbols.
15200+no_undefined_flag=$lt_no_undefined_flag
15201+
15202+# Flag to hardcode \$libdir into a binary during linking.
15203+# This must work even if \$libdir does not exist
15204+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15205+
15206+# If ld is used when linking, flag to hardcode \$libdir into a binary
15207+# during linking. This must work even if \$libdir does not exist.
15208+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15209+
15210+# Whether we need a single "-rpath" flag with a separated argument.
15211+hardcode_libdir_separator=$lt_hardcode_libdir_separator
15212+
15213+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15214+# DIR into the resulting binary.
15215+hardcode_direct=$hardcode_direct
15216+
15217+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15218+# DIR into the resulting binary and the resulting library dependency is
15219+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15220+# library is relocated.
15221+hardcode_direct_absolute=$hardcode_direct_absolute
15222+
15223+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15224+# into the resulting binary.
15225+hardcode_minus_L=$hardcode_minus_L
15226+
15227+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15228+# into the resulting binary.
15229+hardcode_shlibpath_var=$hardcode_shlibpath_var
15230+
15231+# Set to "yes" if building a shared library automatically hardcodes DIR
15232+# into the library and all subsequent libraries and executables linked
15233+# against it.
15234+hardcode_automatic=$hardcode_automatic
15235+
15236+# Set to yes if linker adds runtime paths of dependent libraries
15237+# to runtime path list.
15238+inherit_rpath=$inherit_rpath
15239+
15240+# Whether libtool must link a program against all its dependency libraries.
15241+link_all_deplibs=$link_all_deplibs
15242+
15243+# Fix the shell variable \$srcfile for the compiler.
15244+fix_srcfile_path=$lt_fix_srcfile_path
15245+
15246+# Set to "yes" if exported symbols are required.
15247+always_export_symbols=$always_export_symbols
15248+
15249+# The commands to list exported symbols.
15250+export_symbols_cmds=$lt_export_symbols_cmds
15251+
15252+# Symbols that should not be listed in the preloaded symbols.
15253+exclude_expsyms=$lt_exclude_expsyms
15254+
15255+# Symbols that must always be exported.
15256+include_expsyms=$lt_include_expsyms
15257+
15258+# Commands necessary for linking programs (against libraries) with templates.
15259+prelink_cmds=$lt_prelink_cmds
15260+
15261+# Specify filename containing input files.
15262+file_list_spec=$lt_file_list_spec
15263+
15264+# How to hardcode a shared library path into an executable.
15265+hardcode_action=$hardcode_action
15266+
15267+# ### END LIBTOOL CONFIG
15268+
15269+_LT_EOF
15270+
15271+ case $host_os in
15272+ aix3*)
15273+ cat <<\_LT_EOF >> "$cfgfile"
15274+# AIX sometimes has problems with the GCC collect2 program. For some
15275+# reason, if we set the COLLECT_NAMES environment variable, the problems
15276+# vanish in a puff of smoke.
15277+if test "X${COLLECT_NAMES+set}" != Xset; then
15278+ COLLECT_NAMES=
15279+ export COLLECT_NAMES
15280+fi
15281+_LT_EOF
15282+ ;;
15283+ esac
15284+
15285+
15286+ltmain="$ac_aux_dir/ltmain.sh"
15287+
15288+
15289+ # We use sed instead of cat because bash on DJGPP gets confused if
15290+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
15291+ # text mode, it properly converts lines to CR/LF. This bash problem
15292+ # is reportedly fixed, but why not run on old versions too?
15293+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15294+ || (rm -f "$cfgfile"; exit 1)
15295+
15296+ case $xsi_shell in
15297+ yes)
15298+ cat << \_LT_EOF >> "$cfgfile"
15299+
15300+# func_dirname file append nondir_replacement
15301+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15302+# otherwise set result to NONDIR_REPLACEMENT.
15303+func_dirname ()
15304+{
15305+ case ${1} in
15306+ */*) func_dirname_result="${1%/*}${2}" ;;
15307+ * ) func_dirname_result="${3}" ;;
15308+ esac
15309+}
15310+
15311+# func_basename file
15312+func_basename ()
15313+{
15314+ func_basename_result="${1##*/}"
15315+}
15316+
15317+# func_dirname_and_basename file append nondir_replacement
15318+# perform func_basename and func_dirname in a single function
15319+# call:
15320+# dirname: Compute the dirname of FILE. If nonempty,
15321+# add APPEND to the result, otherwise set result
15322+# to NONDIR_REPLACEMENT.
15323+# value returned in "$func_dirname_result"
15324+# basename: Compute filename of FILE.
15325+# value retuned in "$func_basename_result"
15326+# Implementation must be kept synchronized with func_dirname
15327+# and func_basename. For efficiency, we do not delegate to
15328+# those functions but instead duplicate the functionality here.
15329+func_dirname_and_basename ()
15330+{
15331+ case ${1} in
15332+ */*) func_dirname_result="${1%/*}${2}" ;;
15333+ * ) func_dirname_result="${3}" ;;
15334+ esac
15335+ func_basename_result="${1##*/}"
15336+}
15337+
15338+# func_stripname prefix suffix name
15339+# strip PREFIX and SUFFIX off of NAME.
15340+# PREFIX and SUFFIX must not contain globbing or regex special
15341+# characters, hashes, percent signs, but SUFFIX may contain a leading
15342+# dot (in which case that matches only a dot).
15343+func_stripname ()
15344+{
15345+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15346+ # positional parameters, so assign one to ordinary parameter first.
15347+ func_stripname_result=${3}
15348+ func_stripname_result=${func_stripname_result#"${1}"}
15349+ func_stripname_result=${func_stripname_result%"${2}"}
15350+}
15351+
15352+# func_opt_split
15353+func_opt_split ()
15354+{
15355+ func_opt_split_opt=${1%%=*}
15356+ func_opt_split_arg=${1#*=}
15357+}
15358+
15359+# func_lo2o object
15360+func_lo2o ()
15361+{
15362+ case ${1} in
15363+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15364+ *) func_lo2o_result=${1} ;;
15365+ esac
15366+}
15367+
15368+# func_xform libobj-or-source
15369+func_xform ()
15370+{
15371+ func_xform_result=${1%.*}.lo
15372+}
15373+
15374+# func_arith arithmetic-term...
15375+func_arith ()
15376+{
15377+ func_arith_result=$(( $* ))
15378+}
15379+
15380+# func_len string
15381+# STRING may not start with a hyphen.
15382+func_len ()
15383+{
15384+ func_len_result=${#1}
15385+}
15386+
15387+_LT_EOF
15388+ ;;
15389+ *) # Bourne compatible functions.
15390+ cat << \_LT_EOF >> "$cfgfile"
15391+
15392+# func_dirname file append nondir_replacement
15393+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15394+# otherwise set result to NONDIR_REPLACEMENT.
15395+func_dirname ()
15396+{
15397+ # Extract subdirectory from the argument.
15398+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15399+ if test "X$func_dirname_result" = "X${1}"; then
15400+ func_dirname_result="${3}"
15401+ else
15402+ func_dirname_result="$func_dirname_result${2}"
15403+ fi
15404+}
15405+
15406+# func_basename file
15407+func_basename ()
15408+{
15409+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15410+}
15411+
15412+
15413+# func_stripname prefix suffix name
15414+# strip PREFIX and SUFFIX off of NAME.
15415+# PREFIX and SUFFIX must not contain globbing or regex special
15416+# characters, hashes, percent signs, but SUFFIX may contain a leading
15417+# dot (in which case that matches only a dot).
15418+# func_strip_suffix prefix name
15419+func_stripname ()
15420+{
15421+ case ${2} in
15422+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15423+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15424+ esac
15425+}
15426+
15427+# sed scripts:
15428+my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15429+my_sed_long_arg='1s/^-[^=]*=//'
15430+
15431+# func_opt_split
15432+func_opt_split ()
15433+{
15434+ func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15435+ func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15436+}
15437+
15438+# func_lo2o object
15439+func_lo2o ()
15440+{
15441+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15442+}
15443+
15444+# func_xform libobj-or-source
15445+func_xform ()
15446+{
15447+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15448+}
15449+
15450+# func_arith arithmetic-term...
15451+func_arith ()
15452+{
15453+ func_arith_result=`expr "$@"`
15454+}
15455+
15456+# func_len string
15457+# STRING may not start with a hyphen.
15458+func_len ()
15459+{
15460+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15461+}
15462+
15463+_LT_EOF
15464+esac
15465+
15466+case $lt_shell_append in
15467+ yes)
15468+ cat << \_LT_EOF >> "$cfgfile"
15469+
15470+# func_append var value
15471+# Append VALUE to the end of shell variable VAR.
15472+func_append ()
15473+{
15474+ eval "$1+=\$2"
15475+}
15476+_LT_EOF
15477+ ;;
15478+ *)
15479+ cat << \_LT_EOF >> "$cfgfile"
15480+
15481+# func_append var value
15482+# Append VALUE to the end of shell variable VAR.
15483+func_append ()
15484+{
15485+ eval "$1=\$$1\$2"
15486+}
15487+
15488+_LT_EOF
15489+ ;;
15490+ esac
15491+
15492+
15493+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15494+ || (rm -f "$cfgfile"; exit 1)
15495+
15496+ mv -f "$cfgfile" "$ofile" ||
15497+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15498+ chmod +x "$ofile"
15499+
15500+ ;;
793115501
793215502 esac
793315503 done # for ac_tag
--- a/libctf/configure.ac
+++ b/libctf/configure.ac
@@ -31,6 +31,11 @@ AC_PROG_CC
3131 AC_PROG_RANLIB
3232 AM_PROG_AR
3333
34+dnl Default to a non shared library. This may be overridden by the
35+dnl configure option --enable-shared.
36+AC_DISABLE_SHARED
37+
38+LT_INIT
3439 AC_SYS_LARGEFILE
3540
3641 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
@@ -52,9 +57,11 @@ ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
5257 ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
5358
5459 AM_MAINTAINER_MODE
60+AM_INSTALL_LIBBFD
5561 ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_libctf_warn_cflags])
5662
5763 AC_FUNC_MMAP
64+# Needed for BFD capability checks.
5865 AC_SEARCH_LIBS(dlopen, dl)
5966 AM_ZLIB
6067
@@ -149,6 +156,64 @@ if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
149156 [Whether the platform has a definition of O_CLOEXEC.])
150157 fi
151158
159+# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
160+SHARED_LIBADD=
161+SHARED_LDFLAGS=
162+BFD_LIBADD=
163+BFD_DEPENDENCIES=
164+if test "$enable_shared" = "yes"; then
165+# When building a shared libctf, link against the pic version of libiberty
166+# so that apps that use libctf won't need libiberty just to satisfy any
167+# libctf references.
168+# We can't do that if a pic libiberty is unavailable since including non-pic
169+# code would insert text relocations into libctf.
170+# Note that linking against libbfd as we do here, which is itself linked
171+# against libiberty, may not satisfy all the libctf libiberty references
172+# since libbfd may not pull in the entirety of libiberty.
173+changequote(,)dnl
174+ x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
175+changequote([,])dnl
176+ if test -n "$x"; then
177+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
178+ fi
179+
180+ case "${host}" in
181+ # More hacks to build DLLs on Windows.
182+ *-*-cygwin*)
183+ SHARED_LDFLAGS="-no-undefined"
184+ SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
185+ BFD_LIBADD="-L`pwd`/../bfd -lbfd"
186+ ;;
187+
188+ *-*-darwin*)
189+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
190+ BFD_DEPENDENCIES="../bfd/libbfd.la"
191+ ;;
192+ *)
193+ case "$host_vendor" in
194+ hp)
195+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
196+ ;;
197+ *)
198+ BFD_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
199+ ;;
200+ esac
201+ BFD_DEPENDENCIES="../bfd/libbfd.la"
202+ ;;
203+ esac
204+fi
205+AC_SUBST(SHARED_LDFLAGS)
206+AC_SUBST(SHARED_LIBADD)
207+AC_SUBST(BFD_LIBADD)
208+AC_SUBST(BFD_DEPENDENCIES)
209+
210+# Use a version script, if possible, or an -export-symbols-regex otherwise.
211+VERSION_FLAGS='-export-symbols-regex ctf_.*'
212+if $LD --help 2>&1 | grep -- --version-script >/dev/null; then
213+ VERSION_FLAGS="-Wl,--version-script='$srcdir/libctf.ver'"
214+fi
215+AC_SUBST(VERSION_FLAGS)
216+
152217 AC_CONFIG_FILES(Makefile)
153218 AC_CONFIG_HEADERS(config.h)
154219 AC_OUTPUT
--- /dev/null
+++ b/libctf/libctf.ver
@@ -0,0 +1,161 @@
1+/* Copyright (C) 2019 Free Software Foundation, Inc.
2+
3+ This file is part of libctf.
4+
5+ libctf is free software; you can redistribute it and/or modify it under
6+ the terms of the GNU General Public License as published by the Free
7+ Software Foundation; either version 3, or (at your option) any later
8+ version.
9+
10+ This program is distributed in the hope that it will be useful, but
11+ WITHOUT ANY WARRANTY; without even the implied warranty of
12+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+ See the GNU General Public License for more details.
14+
15+ You should have received a copy of the GNU General Public License
16+ along with this program; see the file COPYING. If not see
17+ <http://www.gnu.org/licenses/>. */
18+
19+LIBCTF_1.0 {
20+ global:
21+ /* In libctf and libctf-nobfd. */
22+
23+ ctf_bufopen;
24+ ctf_simple_open;
25+ ctf_create;
26+ ctf_close;
27+ ctf_file_close;
28+
29+ ctf_cuname;
30+ ctf_cuname_set;
31+ ctf_parent_file;
32+ ctf_parent_name;
33+ ctf_parent_name_set;
34+ ctf_type_isparent;
35+ ctf_type_ischild;
36+
37+ ctf_import;
38+ ctf_setmodel;
39+ ctf_getmodel;
40+
41+ ctf_setspecific;
42+ ctf_getspecific;
43+
44+ ctf_errno;
45+ ctf_errmsg;
46+ ctf_version;
47+
48+ ctf_func_info;
49+ ctf_func_args;
50+ ctf_func_type_info;
51+ ctf_func_type_args;
52+
53+ ctf_lookup_by_name;
54+ ctf_lookup_by_symbol;
55+ ctf_lookup_variable;
56+
57+ ctf_type_resolve;
58+ ctf_type_lname;
59+ ctf_type_name;
60+ ctf_type_aname;
61+ ctf_type_aname_raw;
62+ ctf_type_size;
63+ ctf_type_align;
64+ ctf_type_kind;
65+ ctf_type_reference;
66+ ctf_type_pointer;
67+ ctf_type_encoding;
68+ ctf_type_visit;
69+ ctf_type_cmp;
70+ ctf_type_compat;
71+
72+ ctf_member_info;
73+ ctf_array_info;
74+
75+ ctf_enum_name;
76+ ctf_enum_value;
77+
78+ ctf_label_set;
79+ ctf_label_get;
80+
81+ ctf_label_topmost;
82+ ctf_label_info;
83+
84+ ctf_member_iter;
85+ ctf_enum_iter;
86+ ctf_type_iter;
87+ ctf_type_iter_all;
88+ ctf_label_iter;
89+ ctf_variable_iter;
90+
91+ ctf_add_array;
92+ ctf_add_const;
93+ ctf_add_enum;
94+ ctf_add_enum_encoded;
95+ ctf_add_float;
96+ ctf_add_forward;
97+ ctf_add_function;
98+ ctf_add_integer;
99+ ctf_add_pointer;
100+ ctf_add_type;
101+ ctf_add_typedef;
102+ ctf_add_restrict;
103+ ctf_add_slice;
104+ ctf_add_struct;
105+ ctf_add_union;
106+ ctf_add_struct_sized;
107+ ctf_add_union_sized;
108+ ctf_add_volatile;
109+
110+ ctf_add_enumerator;
111+ ctf_add_member;
112+ ctf_add_member_offset;
113+ ctf_add_member_encoded;
114+ ctf_add_variable;
115+
116+ ctf_set_array;
117+
118+ ctf_update;
119+ ctf_discard;
120+ ctf_snapshot;
121+ ctf_rollback;
122+ ctf_write;
123+ ctf_write_mem;
124+ ctf_gzwrite;
125+ ctf_compress_write;
126+ ctf_getdatasect;
127+
128+ ctf_arc_write;
129+ ctf_arc_write_fd;
130+ ctf_arc_open;
131+ ctf_arc_close;
132+ ctf_arc_open_by_name;
133+ ctf_arc_open_by_name_sections;
134+ ctf_archive_iter;
135+ ctf_archive_raw_iter;
136+ ctf_get_arc;
137+
138+ ctf_dump;
139+
140+ ctf_setdebug;
141+ ctf_getdebug;
142+
143+ /* Not yet part of the stable API. */
144+
145+ ctf_link_add_ctf;
146+ ctf_link_add_cu_mapping;
147+ ctf_link_set_memb_name_changer;
148+ ctf_link;
149+ ctf_link_add_strtab;
150+ ctf_link_shuffle_syms;
151+ ctf_link_write;
152+
153+ /* In libctf alone. */
154+
155+ ctf_fdopen;
156+ ctf_open;
157+ ctf_bfdopen;
158+ ctf_bfdopen_ctfsect;
159+ local:
160+ *;
161+};