Merge lp:~noskcaj/ubuntu/trusty/goocanvas-2.0/2.0.2 into lp:ubuntu/trusty/goocanvas-2.0

Proposed by Jackson Doak
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~noskcaj/ubuntu/trusty/goocanvas-2.0/2.0.2
Merge into: lp:ubuntu/trusty/goocanvas-2.0
Diff against target: 34078 lines (+10699/-7511)
143 files modified
ChangeLog (+92/-0)
INSTALL (+7/-2)
Makefile.in (+95/-40)
NEWS (+8/-0)
README (+1/-1)
aclocal.m4 (+2208/-1496)
bindings/Makefile.in (+51/-20)
bindings/python/Makefile.in (+66/-25)
config.guess (+147/-118)
config.sub (+136/-68)
configure (+1944/-905)
configure.in (+7/-7)
debian/changelog (+16/-0)
debian/compat (+1/-1)
debian/control (+4/-2)
debian/copyright (+1/-1)
debian/gir1.2-goocanvas-2.0-9.install (+1/-1)
debian/libgoocanvas-2.0-9-common.install (+1/-1)
debian/libgoocanvas-2.0-9.install (+1/-1)
debian/libgoocanvas-2.0-9.symbols (+270/-0)
debian/libgoocanvas-2.0-dev.install (+6/-6)
debian/libgoocanvas-2.0-dev.links (+1/-1)
debian/rules (+4/-6)
demo/Makefile.in (+71/-40)
demo/demo-animation.c (+3/-3)
demo/demo-arrowhead.c (+2/-2)
demo/demo-clipping.c (+2/-2)
demo/demo-events.c (+1/-1)
demo/demo-features.c (+1/-1)
demo/demo-fifteen.c (+4/-4)
demo/demo-focus.c (+2/-2)
demo/demo-grabs.c (+19/-13)
demo/demo-large-items.c (+2/-2)
demo/demo-paths.c (+4/-4)
demo/demo-scalability.c (+2/-2)
demo/demo-table.c (+1/-1)
demo/demo.c (+15/-10)
demo/generic-position-demo.c (+1/-1)
demo/mv-demo-animation.c (+3/-3)
demo/mv-demo-arrowhead.c (+2/-2)
demo/mv-demo-clipping.c (+2/-2)
demo/mv-demo-events.c (+1/-1)
demo/mv-demo-features.c (+1/-1)
demo/mv-demo-fifteen.c (+4/-4)
demo/mv-demo-focus.c (+2/-2)
demo/mv-demo-grabs.c (+18/-13)
demo/mv-demo-paths.c (+4/-4)
demo/mv-demo-scalability.c (+2/-2)
demo/mv-demo-table.c (+1/-1)
demo/mv-demo.c (+15/-15)
demo/mv-generic-position-demo.c (+1/-1)
demo/mv-table-demo.c (+1/-1)
demo/table-demo.c (+1/-1)
demo/units-demo.c (+3/-2)
demo/widgets-demo.c (+4/-4)
depcomp (+134/-56)
docs/Makefile.in (+110/-56)
docs/goocanvas2-docs.sgml (+1/-0)
docs/goocanvas2-sections.txt (+1/-0)
docs/html/GooCanvas.html (+239/-95)
docs/html/GooCanvasEllipse.html (+20/-20)
docs/html/GooCanvasEllipseModel.html (+20/-20)
docs/html/GooCanvasGrid.html (+20/-20)
docs/html/GooCanvasGridModel.html (+20/-20)
docs/html/GooCanvasGroup.html (+19/-19)
docs/html/GooCanvasGroupModel.html (+19/-19)
docs/html/GooCanvasImage.html (+23/-23)
docs/html/GooCanvasImageModel.html (+23/-23)
docs/html/GooCanvasItem.html (+315/-112)
docs/html/GooCanvasItemModel.html (+197/-74)
docs/html/GooCanvasItemModelSimple.html (+32/-32)
docs/html/GooCanvasItemSimple.html (+79/-46)
docs/html/GooCanvasPath.html (+22/-22)
docs/html/GooCanvasPathModel.html (+22/-22)
docs/html/GooCanvasPolyline.html (+27/-24)
docs/html/GooCanvasPolylineModel.html (+27/-24)
docs/html/GooCanvasRect.html (+20/-20)
docs/html/GooCanvasRectModel.html (+20/-20)
docs/html/GooCanvasStyle.html (+57/-30)
docs/html/GooCanvasTable.html (+20/-20)
docs/html/GooCanvasTableModel.html (+20/-20)
docs/html/GooCanvasText.html (+28/-25)
docs/html/GooCanvasTextModel.html (+24/-24)
docs/html/GooCanvasWidget.html (+24/-24)
docs/html/ch01.html (+13/-13)
docs/html/ch02.html (+13/-13)
docs/html/ch03.html (+13/-13)
docs/html/ch04.html (+13/-13)
docs/html/ch05.html (+49/-14)
docs/html/goocanvas-architecture.html (+10/-10)
docs/html/goocanvas-coordinates.html (+10/-10)
docs/html/goocanvas-creating-items.html (+32/-32)
docs/html/goocanvas-model-view-canvas.html (+28/-28)
docs/html/goocanvas-overview.html (+12/-12)
docs/html/goocanvas-simple-canvas.html (+26/-26)
docs/html/goocanvas-wysiwyg.html (+10/-10)
docs/html/goocanvas2-GooCanvas-Types.html (+153/-70)
docs/html/goocanvas2.devhelp2 (+7/-5)
docs/html/index.html (+10/-7)
docs/html/index.sgml (+16/-16)
docs/html/style.css (+71/-16)
docs/tmpl/goocanvas-unused.sgml (+0/-9)
docs/tmpl/goocanvas2-unused.sgml (+0/-1103)
docs/tmpl/goocanvasatk.sgml (+0/-51)
docs/tmpl/goocanvasenumtypes.sgml (+0/-104)
docs/tmpl/goocanvasitem.sgml (+11/-11)
docs/tmpl/goocanvasutils.sgml (+9/-0)
gtk-doc.make (+58/-31)
install-sh (+18/-11)
ltmain.sh (+2658/-1409)
missing (+4/-49)
mkinstalldirs (+0/-162)
po/Makefile.in.in (+8/-19)
po/goocanvas2.pot (+297/-291)
py-compile (+33/-18)
src/Makefile.am (+1/-1)
src/Makefile.in (+84/-43)
src/goocanvas.c (+78/-40)
src/goocanvas.h (+2/-2)
src/goocanvasellipse.h (+2/-2)
src/goocanvasgrid.c (+3/-3)
src/goocanvasgrid.h (+2/-2)
src/goocanvasgroup.c (+0/-4)
src/goocanvasgroup.h (+2/-2)
src/goocanvasimage.h (+2/-2)
src/goocanvasitem.c (+16/-16)
src/goocanvasitem.h (+4/-4)
src/goocanvasitemmodel.c (+12/-12)
src/goocanvasitemmodel.h (+2/-2)
src/goocanvasitemsimple.c (+4/-4)
src/goocanvasitemsimple.h (+4/-4)
src/goocanvasmarshal.c (+1/-1)
src/goocanvaspath.c (+1/-1)
src/goocanvaspath.h (+2/-2)
src/goocanvaspolyline.h (+3/-3)
src/goocanvasrect.h (+2/-2)
src/goocanvasstyle.h (+2/-2)
src/goocanvastable.h (+2/-2)
src/goocanvastext.h (+2/-2)
src/goocanvasutils.c (+20/-2)
src/goocanvasutils.h (+16/-14)
src/goocanvaswidget.c (+1/-1)
src/goocanvaswidget.h (+1/-1)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/trusty/goocanvas-2.0/2.0.2
Reviewer Review Type Date Requested Status
Sebastien Bacher Needs Fixing
Review via email: mp+198684@code.launchpad.net

Description of the change

New upstream release, add symbols, use dh

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your work, gobject-introspection doesn't support multiarch though, you need to move the typelib back into a non multiarch location

did you also test the new version with something (do we have code using that library?)

review: Needs Fixing
Revision history for this message
Jackson Doak (noskcaj) wrote :

Where did i move it to multiarch? I thought i hadn't
I didn't test this, no.

Revision history for this message
Sebastien Bacher (seb128) wrote :

> Where did i move it to multiarch?

diff -Nru goocanvas-2.0-2.0.1/debian/gir1.2-goocanvas-2.0-9.install goocanvas-2.0-2.0.2/debian/gir1.2-goocanvas-2.0-9.install
--- goocanvas-2.0-2.0.1/debian/gir1.2-goocanvas-2.0-9.install 2012-01-16 18:25:43.000000000 +0100
+++ goocanvas-2.0-2.0.2/debian/gir1.2-goocanvas-2.0-9.install 2013-12-13 12:43:52.000000000 +0100
@@ -1 +1 @@
-debian/tmp/usr/lib/girepository-1.0/GooCanvas-2.0.typelib
+usr/lib/*/girepository-1.0/GooCanvas-2.0.typelib

that's a side effect of moving to new dh that use multiarch location, the gir directory needs to stay where it was though

Revision history for this message
Jackson Doak (noskcaj) wrote :

so should the line be "usr/lib/*/girepository-1.0/GooCanvas-2.0.typelib
usr/lib/girepository-1.0/GooCanvas-2.0.typelib"?

On Sat, Dec 14, 2013 at 7:06 AM, Sebastien Bacher <email address hidden> wrote:

> > Where did i move it to multiarch?
>
> diff -Nru goocanvas-2.0-2.0.1/debian/gir1.2-goocanvas-2.0-9.install
> goocanvas-2.0-2.0.2/debian/gir1.2-goocanvas-2.0-9.install
> --- goocanvas-2.0-2.0.1/debian/gir1.2-goocanvas-2.0-9.install 2012-01-16
> 18:25:43.000000000 +0100
> +++ goocanvas-2.0-2.0.2/debian/gir1.2-goocanvas-2.0-9.install 2013-12-13
> 12:43:52.000000000 +0100
> @@ -1 +1 @@
> -debian/tmp/usr/lib/girepository-1.0/GooCanvas-2.0.typelib
> +usr/lib/*/girepository-1.0/GooCanvas-2.0.typelib
>
>
> that's a side effect of moving to new dh that use multiarch location, the
> gir directory needs to stay where it was though
> --
>
> https://code.launchpad.net/~noskcaj/ubuntu/trusty/goocanvas-2.0/2.0.2/+merge/198684
> You are the owner of lp:~noskcaj/ubuntu/trusty/goocanvas-2.0/2.0.2.
>

Revision history for this message
Sebastien Bacher (seb128) wrote :

yes, you can probably try if it works by trying to import it from python by exemple

Revision history for this message
Sebastien Bacher (seb128) wrote :

changing the status since it needs to be fixed before needing review again, please change back once you address the review comments

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

the update is in trusty in fact, so setting to rejected

Unmerged revisions

11. By Jackson Doak

Bump standards-version to 3.9.5

10. By Jackson Doak

Create libgoocanvas-2.0-9.symbols

9. By Jackson Doak

Enable hardening

8. By Jackson Doak

* debian/rules:
  - Add disable-silent-rules

7. By Jackson Doak

Switch to dh and debhelper 9

6. By Jackson Doak

Fix link location in libgoocanvas-2.0-dev.links

5. By Jackson Doak

Add versioned gpl to debian/copyright

4. By Jackson Doak

* debian/control:
  - Bump b-dep versions for new release

3. By Jackson Doak

New upstream release.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-11-27 17:38:34 +0000
+++ ChangeLog 2013-12-12 08:48:43 +0000
@@ -1,3 +1,95 @@
12013-11-02 Damon Chaplin <damon@gnome.org>
2
3 * demo/*.c: use gtk_box_pack_start() rather than gtk_container_add(),
4 for boxes, as the demos didn't appear correctly.
5
62013-11-02 Damon Chaplin <damon@gnome.org>
7
8 * src/goocanvasutils.c (goo_canvas_line_dash_set_offset): new function
9 to set the offset.
10
112013-11-02 Damon Chaplin <damon@gnome.org>
12
13 * src/goocanvas.c (emit_pointer_event): use gdk_event_copy() rather
14 than a struct copy, to copy the private stuff like device etc. #665637
15
162013-11-01 Damon Chaplin <damon@gnome.org>
17
18 * src/*.c:
19 * demo/*.c: fixed a lot of warnings, mainly about deprecated stuff.
20
212013-11-01 Damon Chaplin <damon@gnome.org>
22
23 * .gitignore: added gtk-doc.m4
24
252013-11-01 Damon Chaplin <damon@gnome.org>
26
27 * src/goocanvas.c: added doc about disabling mouse-wheel scrolling.
28 #617900.
29
302013-11-01 Damon Chaplin <damon@gnome.org>
31
32 * src/goocanvas.c (goo_canvas_adjustment_value_changed): disabled
33 the code that handled "redraw-when-scrolled" and tried to optimise
34 the drawing of static items. GTK+ 3.0 always redraws everything when
35 a window is scrolled, so these aren't needed.
36
37 We could possibly use GtkPixelCache or similar in future, to try to
38 optimise scrolling.
39
402013-10-25 Damon Chaplin <damon@gnome.org>
41
42 * src/goocanvas.c (paint_static_items, goo_canvas_draw): another
43 attempt at fixing the drawing code. Now it uses the transform & clip
44 from the given cairo_t and the code seems to work OK for both the old
45 GTK+ and GTK+ 3.10. Bug #700674.
46
472013-09-27 Damon Chaplin <damon@gnome.org>
48
49 * demo/demo-grabs.c (on_widget_draw): draw simple rects for the widgets
50 as the old code using gtk_paint_box() doesn't seem to work any more.
51
522013-09-27 Damon Chaplin <damon@gnome.org>
53
54 * src/goocanvasutils.c: added introspection flags, so it now seems to
55 work OK with python at least.
56
57 * bindings/python/demo.py (setup_canvas): added line dash to a path.
58
59 * demo/demo.c (setup_rectangles): added line dash to one rect.
60
612013-09-24 Damon Chaplin <damon@gnome.org>
62
63 * src/goocanvasitem.c:
64 * src/goocanvasitemmodel.c: added a few (allow-none) flags. #677013.
65
662013-09-24 Damon Chaplin <damon@gnome.org>
67
68 * src/Makefile.am: added -lm to LIBADD. Bug #671766.
69
702013-08-20 Damon Chaplin <damon@gnome.org>
71
72 * src/*.h: fixed a few documentation issues.
73 * docs/goocanvas2-docs.sgml: added annotation glossary.
74
752013-07-18 Damon Chaplin <damon@gnome.org>
76
77 * src/goocanvas.c (paint_static_items, goo_canvas_draw): tried to
78 fix drawing code to work with new GTK+ 3.9 drawing code. I'm not sure
79 it is 100% there yet, but the demo seems OK. Bug #700674.
80
812013-03-28 Murray Cumming <murrayc@murrayc.com>
82
83 Fix some introspection generation warnings.
84
85 Avoid gobject-introspection warnings about missing : in
86 documentation comments.
87 Part of bug #696736
88
892011-10-19 Jasper Lievisse Adriaanse <jasperla@gnome.org>
90
91 * configure.in: Bump pygobject dependency to 2.90.4. Bug #661487.
92
12011-10-09 Damon Chaplin <damon@gnome.org>932011-10-09 Damon Chaplin <damon@gnome.org>
294
3 * Released GooCanvas 2.0.195 * Released GooCanvas 2.0.1
496
=== modified file 'INSTALL'
--- INSTALL 2011-11-27 17:38:34 +0000
+++ INSTALL 2013-12-12 08:48:43 +0000
@@ -1,8 +1,8 @@
1Installation Instructions1Installation Instructions
2*************************2*************************
33
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,4Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
52006, 2007, 2008, 2009 Free Software Foundation, Inc.5Inc.
66
7 Copying and distribution of this file, with or without modification,7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright8are permitted in any medium without royalty provided the copyright
@@ -226,6 +226,11 @@
226226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228228
229 HP-UX `make' updates targets which have the same time stamps as
230their prerequisites, which makes it generally unusable when shipped
231generated files such as `configure' are involved. Use GNU `make'
232instead.
233
229 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as235parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended236a workaround. If GNU CC is not installed, it is therefore recommended
232237
=== modified file 'Makefile.in'
--- Makefile.in 2011-11-27 17:38:34 +0000
+++ Makefile.in 2013-12-12 08:48:43 +0000
@@ -1,9 +1,9 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.1# Makefile.in generated by automake 1.11.6 from Makefile.am.
2# @configure_input@2# @configure_input@
33
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,5# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6# Inc.6# Foundation, Inc.
7# This Makefile.in is free software; the Free Software Foundation7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.9# with or without modifications, as long as this notice is preserved.
@@ -16,6 +16,23 @@
16@SET_MAKE@16@SET_MAKE@
1717
18VPATH = @srcdir@18VPATH = @srcdir@
19am__make_dryrun = \
20 { \
21 am__dry=no; \
22 case $$MAKEFLAGS in \
23 *\\[\ \ ]*) \
24 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
25 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
26 *) \
27 for am__flg in $$MAKEFLAGS; do \
28 case $$am__flg in \
29 *=*|--*) ;; \
30 *n*) am__dry=yes; break;; \
31 esac; \
32 done;; \
33 esac; \
34 test $$am__dry = yes; \
35 }
19pkgdatadir = $(datadir)/@PACKAGE@36pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@37pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@38pkglibdir = $(libdir)/@PACKAGE@
@@ -39,22 +56,22 @@
39 $(srcdir)/Makefile.in $(srcdir)/config.h.in \56 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
40 $(srcdir)/goocanvas-2.0.pc.in $(top_srcdir)/configure AUTHORS \57 $(srcdir)/goocanvas-2.0.pc.in $(top_srcdir)/configure AUTHORS \
41 COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \58 COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \
42 depcomp install-sh ltmain.sh missing mkinstalldirs py-compile59 depcomp install-sh ltmain.sh missing py-compile
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m460ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/configure.in61am__aclocal_m4_deps = $(top_srcdir)/configure.in
45am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \62am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)63 $(ACLOCAL_M4)
47am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \64am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
48 configure.lineno config.status.lineno65 configure.lineno config.status.lineno
49mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs66mkinstalldirs = $(install_sh) -d
50CONFIG_HEADER = config.h67CONFIG_HEADER = config.h
51CONFIG_CLEAN_FILES = goocanvas-2.0.pc68CONFIG_CLEAN_FILES = goocanvas-2.0.pc
52CONFIG_CLEAN_VPATH_FILES =69CONFIG_CLEAN_VPATH_FILES =
53AM_V_GEN = $(am__v_GEN_$(V))70AM_V_GEN = $(am__v_GEN_@AM_V@)
54am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))71am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
55am__v_GEN_0 = @echo " GEN " $@;72am__v_GEN_0 = @echo " GEN " $@;
56AM_V_at = $(am__v_at_$(V))73AM_V_at = $(am__v_at_@AM_V@)
57am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))74am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
58am__v_at_0 = @75am__v_at_0 = @
59SOURCES =76SOURCES =
60DIST_SOURCES =77DIST_SOURCES =
@@ -65,6 +82,11 @@
65 install-pdf-recursive install-ps-recursive install-recursive \82 install-pdf-recursive install-ps-recursive install-recursive \
66 installcheck-recursive installdirs-recursive pdf-recursive \83 installcheck-recursive installdirs-recursive pdf-recursive \
67 ps-recursive uninstall-recursive84 ps-recursive uninstall-recursive
85am__can_run_installinfo = \
86 case $$AM_UPDATE_INFO_DIR in \
87 n|no|NO) false;; \
88 *) (install-info --version) >/dev/null 2>&1;; \
89 esac
68am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;90am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
69am__vpath_adj = case $$p in \91am__vpath_adj = case $$p in \
70 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \92 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -86,6 +108,12 @@
86am__base_list = \108am__base_list = \
87 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \109 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
88 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'110 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
111am__uninstall_files_from_dir = { \
112 test -z "$$files" \
113 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
114 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
115 $(am__cd) "$$dir" && rm -f $$files; }; \
116 }
89am__installdirs = "$(DESTDIR)$(pkgconfigdir)"117am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
90DATA = $(pkgconfig_DATA)118DATA = $(pkgconfig_DATA)
91RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \119RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
@@ -100,9 +128,11 @@
100distdir = $(PACKAGE)-$(VERSION)128distdir = $(PACKAGE)-$(VERSION)
101top_distdir = $(distdir)129top_distdir = $(distdir)
102am__remove_distdir = \130am__remove_distdir = \
103 { test ! -d "$(distdir)" \131 if test -d "$(distdir)"; then \
104 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \132 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
105 && rm -fr "$(distdir)"; }; }133 && rm -rf "$(distdir)" \
134 || { sleep 5 && rm -rf "$(distdir)"; }; \
135 else :; fi
106am__relativize = \136am__relativize = \
107 dir0=`pwd`; \137 dir0=`pwd`; \
108 sed_first='s,^\([^/]*\)/.*$$,\1,'; \138 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
@@ -131,6 +161,8 @@
131DIST_ARCHIVES = $(distdir).tar.gz161DIST_ARCHIVES = $(distdir).tar.gz
132GZIP_ENV = --best162GZIP_ENV = --best
133distuninstallcheck_listfiles = find . -type f -print163distuninstallcheck_listfiles = find . -type f -print
164am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
165 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
134distcleancheck_listfiles = find . -type f -print166distcleancheck_listfiles = find . -type f -print
135ACLOCAL = @ACLOCAL@167ACLOCAL = @ACLOCAL@
136AMTAR = @AMTAR@168AMTAR = @AMTAR@
@@ -151,6 +183,7 @@
151DATADIRNAME = @DATADIRNAME@183DATADIRNAME = @DATADIRNAME@
152DEFS = @DEFS@184DEFS = @DEFS@
153DEPDIR = @DEPDIR@185DEPDIR = @DEPDIR@
186DLLTOOL = @DLLTOOL@
154DSYMUTIL = @DSYMUTIL@187DSYMUTIL = @DSYMUTIL@
155DUMPBIN = @DUMPBIN@188DUMPBIN = @DUMPBIN@
156ECHO_C = @ECHO_C@189ECHO_C = @ECHO_C@
@@ -166,6 +199,9 @@
166GMSGFMT = @GMSGFMT@199GMSGFMT = @GMSGFMT@
167GREP = @GREP@200GREP = @GREP@
168GTKDOC_CHECK = @GTKDOC_CHECK@201GTKDOC_CHECK = @GTKDOC_CHECK@
202GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
203GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
204GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
169GTKDOC_MKPDF = @GTKDOC_MKPDF@205GTKDOC_MKPDF = @GTKDOC_MKPDF@
170GTKDOC_REBASE = @GTKDOC_REBASE@206GTKDOC_REBASE = @GTKDOC_REBASE@
171HTML_DIR = @HTML_DIR@207HTML_DIR = @HTML_DIR@
@@ -195,6 +231,7 @@
195LT_VERSION_INFO = @LT_VERSION_INFO@231LT_VERSION_INFO = @LT_VERSION_INFO@
196MAINT = @MAINT@232MAINT = @MAINT@
197MAKEINFO = @MAKEINFO@233MAKEINFO = @MAKEINFO@
234MANIFEST_TOOL = @MANIFEST_TOOL@
198MKDIR_P = @MKDIR_P@235MKDIR_P = @MKDIR_P@
199MKINSTALLDIRS = @MKINSTALLDIRS@236MKINSTALLDIRS = @MKINSTALLDIRS@
200MSGFMT = @MSGFMT@237MSGFMT = @MSGFMT@
@@ -217,6 +254,8 @@
217PATH_SEPARATOR = @PATH_SEPARATOR@254PATH_SEPARATOR = @PATH_SEPARATOR@
218PERL = @PERL@255PERL = @PERL@
219PKG_CONFIG = @PKG_CONFIG@256PKG_CONFIG = @PKG_CONFIG@
257PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
258PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
220POFILES = @POFILES@259POFILES = @POFILES@
221POSUB = @POSUB@260POSUB = @POSUB@
222PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@261PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
@@ -241,6 +280,7 @@
241abs_srcdir = @abs_srcdir@280abs_srcdir = @abs_srcdir@
242abs_top_builddir = @abs_top_builddir@281abs_top_builddir = @abs_top_builddir@
243abs_top_srcdir = @abs_top_srcdir@282abs_top_srcdir = @abs_top_srcdir@
283ac_ct_AR = @ac_ct_AR@
244ac_ct_CC = @ac_ct_CC@284ac_ct_CC = @ac_ct_CC@
245ac_ct_DUMPBIN = @ac_ct_DUMPBIN@285ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
246am__include = @am__include@286am__include = @am__include@
@@ -273,7 +313,6 @@
273libexecdir = @libexecdir@313libexecdir = @libexecdir@
274localedir = @localedir@314localedir = @localedir@
275localstatedir = @localstatedir@315localstatedir = @localstatedir@
276lt_ECHO = @lt_ECHO@
277mandir = @mandir@316mandir = @mandir@
278mkdir_p = @mkdir_p@317mkdir_p = @mkdir_p@
279oldincludedir = @oldincludedir@318oldincludedir = @oldincludedir@
@@ -306,7 +345,7 @@
306 $(MAKE) $(AM_MAKEFLAGS) all-recursive345 $(MAKE) $(AM_MAKEFLAGS) all-recursive
307346
308.SUFFIXES:347.SUFFIXES:
309am--refresh:348am--refresh: Makefile
310 @:349 @:
311$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)350$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
312 @for dep in $?; do \351 @for dep in $?; do \
@@ -342,10 +381,8 @@
342$(am__aclocal_m4_deps):381$(am__aclocal_m4_deps):
343382
344config.h: stamp-h1383config.h: stamp-h1
345 @if test ! -f $@; then \384 @if test ! -f $@; then rm -f stamp-h1; else :; fi
346 rm -f stamp-h1; \385 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
347 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
348 else :; fi
349386
350stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status387stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
351 @rm -f stamp-h1388 @rm -f stamp-h1
@@ -370,8 +407,11 @@
370 -rm -f libtool config.lt407 -rm -f libtool config.lt
371install-pkgconfigDATA: $(pkgconfig_DATA)408install-pkgconfigDATA: $(pkgconfig_DATA)
372 @$(NORMAL_INSTALL)409 @$(NORMAL_INSTALL)
373 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
374 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \410 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
411 if test -n "$$list"; then \
412 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
413 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
414 fi; \
375 for p in $$list; do \415 for p in $$list; do \
376 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \416 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
377 echo "$$d$$p"; \417 echo "$$d$$p"; \
@@ -385,9 +425,7 @@
385 @$(NORMAL_UNINSTALL)425 @$(NORMAL_UNINSTALL)
386 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \426 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
387 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \427 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
388 test -n "$$files" || exit 0; \428 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
389 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
390 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
391429
392# This directory's subdirectories are mostly independent; you can cd430# This directory's subdirectories are mostly independent; you can cd
393# into them and run `make' without going through this Makefile.431# into them and run `make' without going through this Makefile.
@@ -558,13 +596,10 @@
558 done596 done
559 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \597 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
560 if test "$$subdir" = .; then :; else \598 if test "$$subdir" = .; then :; else \
561 test -d "$(distdir)/$$subdir" \599 $(am__make_dryrun) \
562 || $(MKDIR_P) "$(distdir)/$$subdir" \600 || test -d "$(distdir)/$$subdir" \
563 || exit 1; \601 || $(MKDIR_P) "$(distdir)/$$subdir" \
564 fi; \602 || exit 1; \
565 done
566 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
567 if test "$$subdir" = .; then :; else \
568 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \603 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
569 $(am__relativize); \604 $(am__relativize); \
570 new_distdir=$$reldir; \605 new_distdir=$$reldir; \
@@ -596,7 +631,11 @@
596 $(am__remove_distdir)631 $(am__remove_distdir)
597632
598dist-bzip2: distdir633dist-bzip2: distdir
599 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2634 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
635 $(am__remove_distdir)
636
637dist-lzip: distdir
638 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
600 $(am__remove_distdir)639 $(am__remove_distdir)
601640
602dist-lzma: distdir641dist-lzma: distdir
@@ -604,7 +643,7 @@
604 $(am__remove_distdir)643 $(am__remove_distdir)
605644
606dist-xz: distdir645dist-xz: distdir
607 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz646 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
608 $(am__remove_distdir)647 $(am__remove_distdir)
609648
610dist-tarZ: distdir649dist-tarZ: distdir
@@ -635,6 +674,8 @@
635 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\674 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
636 *.tar.lzma*) \675 *.tar.lzma*) \
637 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\676 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
677 *.tar.lz*) \
678 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
638 *.tar.xz*) \679 *.tar.xz*) \
639 xz -dc $(distdir).tar.xz | $(am__untar) ;;\680 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
640 *.tar.Z*) \681 *.tar.Z*) \
@@ -644,7 +685,7 @@
644 *.zip*) \685 *.zip*) \
645 unzip $(distdir).zip ;;\686 unzip $(distdir).zip ;;\
646 esac687 esac
647 chmod -R a-w $(distdir); chmod a+w $(distdir)688 chmod -R a-w $(distdir); chmod u+w $(distdir)
648 mkdir $(distdir)/_build689 mkdir $(distdir)/_build
649 mkdir $(distdir)/_inst690 mkdir $(distdir)/_inst
650 chmod a-w $(distdir)691 chmod a-w $(distdir)
@@ -654,6 +695,7 @@
654 && am__cwd=`pwd` \695 && am__cwd=`pwd` \
655 && $(am__cd) $(distdir)/_build \696 && $(am__cd) $(distdir)/_build \
656 && ../configure --srcdir=.. --prefix="$$dc_install_base" \697 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
698 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
657 $(DISTCHECK_CONFIGURE_FLAGS) \699 $(DISTCHECK_CONFIGURE_FLAGS) \
658 && $(MAKE) $(AM_MAKEFLAGS) \700 && $(MAKE) $(AM_MAKEFLAGS) \
659 && $(MAKE) $(AM_MAKEFLAGS) dvi \701 && $(MAKE) $(AM_MAKEFLAGS) dvi \
@@ -682,8 +724,16 @@
682 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \724 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
683 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'725 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
684distuninstallcheck:726distuninstallcheck:
685 @$(am__cd) '$(distuninstallcheck_dir)' \727 @test -n '$(distuninstallcheck_dir)' || { \
686 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \728 echo 'ERROR: trying to run $@ with an empty' \
729 '$$(distuninstallcheck_dir)' >&2; \
730 exit 1; \
731 }; \
732 $(am__cd) '$(distuninstallcheck_dir)' || { \
733 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
734 exit 1; \
735 }; \
736 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
687 || { echo "ERROR: files left after uninstall:" ; \737 || { echo "ERROR: files left after uninstall:" ; \
688 if test -n "$(DESTDIR)"; then \738 if test -n "$(DESTDIR)"; then \
689 echo " (check DESTDIR support)"; \739 echo " (check DESTDIR support)"; \
@@ -717,10 +767,15 @@
717767
718installcheck: installcheck-recursive768installcheck: installcheck-recursive
719install-strip:769install-strip:
720 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \770 if test -z '$(STRIP)'; then \
721 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \771 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
722 `test -z '$(STRIP)' || \772 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
723 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install773 install; \
774 else \
775 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
776 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
777 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
778 fi
724mostlyclean-generic:779mostlyclean-generic:
725780
726clean-generic:781clean-generic:
@@ -808,8 +863,8 @@
808.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \863.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
809 all all-am am--refresh check check-am clean clean-generic \864 all all-am am--refresh check check-am clean clean-generic \
810 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \865 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
811 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \866 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
812 distcheck distclean distclean-generic distclean-hdr \867 dist-zip distcheck distclean distclean-generic distclean-hdr \
813 distclean-libtool distclean-tags distcleancheck distdir \868 distclean-libtool distclean-tags distcleancheck distdir \
814 distuninstallcheck dvi dvi-am html html-am info info-am \869 distuninstallcheck dvi dvi-am html html-am info info-am \
815 install install-am install-data install-data-am install-dvi \870 install install-am install-data install-data-am install-dvi \
816871
=== modified file 'NEWS'
--- NEWS 2011-11-27 17:38:34 +0000
+++ NEWS 2013-12-12 08:48:43 +0000
@@ -1,4 +1,12 @@
11
2GooCanvas 2.0.2 (Nov 3 2013)
3===============
4
5 o Fixed the drawing code to work with GTK+ 3.10.
6 o Added/fixed a few introspection flags. GooCanvasLineDash should now be
7 usable via introspection.
8
9
2GooCanvas 2.0.1 (Oct 9 2011)10GooCanvas 2.0.1 (Oct 9 2011)
3===============11===============
412
513
=== modified file 'README'
--- README 2011-11-27 17:38:34 +0000
+++ README 2013-12-12 08:48:43 +0000
@@ -55,5 +55,5 @@
5555
56Damon Chaplin (damon@gnome.org)56Damon Chaplin (damon@gnome.org)
5757
58(FooCanvas can be found in GNOME svn in the 'foocanvas' module.58(FooCanvas can be found in GNOME git repository in the 'foocanvas' module.
59FooCanvas was based on GnomeCanvas, which is in the 'libgnomecanvas' module.)59FooCanvas was based on GnomeCanvas, which is in the 'libgnomecanvas' module.)
6060
=== modified file 'aclocal.m4'
--- aclocal.m4 2011-11-27 17:38:34 +0000
+++ aclocal.m4 2013-12-12 08:48:43 +0000
@@ -1,7 +1,8 @@
1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-1# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
22
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5# Inc.
5# This file is free software; the Free Software Foundation6# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,7# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.8# with or without modifications, as long as this notice is preserved.
@@ -19,600 +20,11 @@
19If you have problems, you may need to regenerate the build system entirely.20If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])21To do so, use the procedure documented by the package, typically `autoreconf'.])])
2122
22# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23# Copyright (C) 2001-2003,2004 Red Hat, Inc.
24#
25# This file is free software, distributed under the terms of the GNU
26# General Public License. As a special exception to the GNU General
27# Public License, this file may be distributed as part of a program
28# that contains a configuration script generated by Autoconf, under
29# the same distribution terms as the rest of that program.
30#
31# This file can be copied and used freely without restrictions. It can
32# be used in projects which are not available under the GNU Public License
33# but which still want to provide support for the GNU gettext functionality.
34#
35# Macro to add for using GNU gettext.
36# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
37#
38# Modified to never use included libintl.
39# Owen Taylor <otaylor@redhat.com>, 12/15/1998
40#
41# Major rework to remove unused code
42# Owen Taylor <otaylor@redhat.com>, 12/11/2002
43#
44# Added better handling of ALL_LINGUAS from GNU gettext version
45# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
46#
47# Modified to require ngettext
48# Matthias Clasen <mclasen@redhat.com> 08/06/2004
49#
50# We need this here as well, since someone might use autoconf-2.5x
51# to configure GLib then an older version to configure a package
52# using AM_GLIB_GNU_GETTEXT
53AC_PREREQ(2.53)
54
55dnl
56dnl We go to great lengths to make sure that aclocal won't
57dnl try to pull in the installed version of these macros
58dnl when running aclocal in the glib directory.
59dnl
60m4_copy([AC_DEFUN],[glib_DEFUN])
61m4_copy([AC_REQUIRE],[glib_REQUIRE])
62dnl
63dnl At the end, if we're not within glib, we'll define the public
64dnl definitions in terms of our private definitions.
65dnl
66
67# GLIB_LC_MESSAGES
68#--------------------
69glib_DEFUN([GLIB_LC_MESSAGES],
70 [AC_CHECK_HEADERS([locale.h])
71 if test $ac_cv_header_locale_h = yes; then
72 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75 if test $am_cv_val_LC_MESSAGES = yes; then
76 AC_DEFINE(HAVE_LC_MESSAGES, 1,
77 [Define if your <locale.h> file defines LC_MESSAGES.])
78 fi
79 fi])
80
81# GLIB_PATH_PROG_WITH_TEST
82#----------------------------
83dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86[# Extract the first word of "$2", so it can be a program name with args.
87set dummy $2; ac_word=[$]2
88AC_MSG_CHECKING([for $ac_word])
89AC_CACHE_VAL(ac_cv_path_$1,
90[case "[$]$1" in
91 /*)
92 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
93 ;;
94 *)
95 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96 for ac_dir in ifelse([$5], , $PATH, [$5]); do
97 test -z "$ac_dir" && ac_dir=.
98 if test -f $ac_dir/$ac_word; then
99 if [$3]; then
100 ac_cv_path_$1="$ac_dir/$ac_word"
101 break
102 fi
103 fi
104 done
105 IFS="$ac_save_ifs"
106dnl If no 4th arg is given, leave the cache variable unset,
107dnl so AC_PATH_PROGS will keep looking.
108ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
109])dnl
110 ;;
111esac])dnl
112$1="$ac_cv_path_$1"
113if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
114 AC_MSG_RESULT([$]$1)
115else
116 AC_MSG_RESULT(no)
117fi
118AC_SUBST($1)dnl
119])
120
121# GLIB_WITH_NLS
122#-----------------
123glib_DEFUN([GLIB_WITH_NLS],
124 dnl NLS is obligatory
125 [USE_NLS=yes
126 AC_SUBST(USE_NLS)
127
128 gt_cv_have_gettext=no
129
130 CATOBJEXT=NONE
131 XGETTEXT=:
132 INTLLIBS=
133
134 AC_CHECK_HEADER(libintl.h,
135 [gt_cv_func_dgettext_libintl="no"
136 libintl_extra_libs=""
137
138 #
139 # First check in libc
140 #
141 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
142 [AC_TRY_LINK([
143#include <libintl.h>
144],
145 [return !ngettext ("","", 1)],
146 gt_cv_func_ngettext_libc=yes,
147 gt_cv_func_ngettext_libc=no)
148 ])
149
150 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
152 [AC_TRY_LINK([
153#include <libintl.h>
154],
155 [return !dgettext ("","")],
156 gt_cv_func_dgettext_libc=yes,
157 gt_cv_func_dgettext_libc=no)
158 ])
159 fi
160
161 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162 AC_CHECK_FUNCS(bind_textdomain_codeset)
163 fi
164
165 #
166 # If we don't have everything we want, check in libintl
167 #
168 if test "$gt_cv_func_dgettext_libc" != "yes" \
169 || test "$gt_cv_func_ngettext_libc" != "yes" \
170 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
171
172 AC_CHECK_LIB(intl, bindtextdomain,
173 [AC_CHECK_LIB(intl, ngettext,
174 [AC_CHECK_LIB(intl, dgettext,
175 gt_cv_func_dgettext_libintl=yes)])])
176
177 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178 AC_MSG_CHECKING([if -liconv is needed to use gettext])
179 AC_MSG_RESULT([])
180 AC_CHECK_LIB(intl, ngettext,
181 [AC_CHECK_LIB(intl, dcgettext,
182 [gt_cv_func_dgettext_libintl=yes
183 libintl_extra_libs=-liconv],
184 :,-liconv)],
185 :,-liconv)
186 fi
187
188 #
189 # If we found libintl, then check in it for bind_textdomain_codeset();
190 # we'll prefer libc if neither have bind_textdomain_codeset(),
191 # and both have dgettext and ngettext
192 #
193 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194 glib_save_LIBS="$LIBS"
195 LIBS="$LIBS -lintl $libintl_extra_libs"
196 unset ac_cv_func_bind_textdomain_codeset
197 AC_CHECK_FUNCS(bind_textdomain_codeset)
198 LIBS="$glib_save_LIBS"
199
200 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201 gt_cv_func_dgettext_libc=no
202 else
203 if test "$gt_cv_func_dgettext_libc" = "yes" \
204 && test "$gt_cv_func_ngettext_libc" = "yes"; then
205 gt_cv_func_dgettext_libintl=no
206 fi
207 fi
208 fi
209 fi
210
211 if test "$gt_cv_func_dgettext_libc" = "yes" \
212 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
213 gt_cv_have_gettext=yes
214 fi
215
216 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217 INTLLIBS="-lintl $libintl_extra_libs"
218 fi
219
220 if test "$gt_cv_have_gettext" = "yes"; then
221 AC_DEFINE(HAVE_GETTEXT,1,
222 [Define if the GNU gettext() function is already present or preinstalled.])
223 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225 if test "$MSGFMT" != "no"; then
226 glib_save_LIBS="$LIBS"
227 LIBS="$LIBS $INTLLIBS"
228 AC_CHECK_FUNCS(dcgettext)
229 MSGFMT_OPTS=
230 AC_MSG_CHECKING([if msgfmt accepts -c])
231 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232msgid ""
233msgstr ""
234"Content-Type: text/plain; charset=UTF-8\n"
235"Project-Id-Version: test 1.0\n"
236"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237"Last-Translator: test <foo@bar.xx>\n"
238"Language-Team: C <LL@li.org>\n"
239"MIME-Version: 1.0\n"
240"Content-Transfer-Encoding: 8bit\n"
241], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242 AC_SUBST(MSGFMT_OPTS)
243 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247 return _nl_msg_cat_cntr],
248 [CATOBJEXT=.gmo
249 DATADIRNAME=share],
250 [case $host in
251 *-*-solaris*)
252 dnl On Solaris, if bind_textdomain_codeset is in libc,
253 dnl GNU format message catalog is always supported,
254 dnl since both are added to the libc all together.
255 dnl Hence, we'd like to go with DATADIRNAME=share and
256 dnl and CATOBJEXT=.gmo in this case.
257 AC_CHECK_FUNC(bind_textdomain_codeset,
258 [CATOBJEXT=.gmo
259 DATADIRNAME=share],
260 [CATOBJEXT=.mo
261 DATADIRNAME=lib])
262 ;;
263 *)
264 CATOBJEXT=.mo
265 DATADIRNAME=lib
266 ;;
267 esac])
268 LIBS="$glib_save_LIBS"
269 INSTOBJEXT=.mo
270 else
271 gt_cv_have_gettext=no
272 fi
273 fi
274 ])
275
276 if test "$gt_cv_have_gettext" = "yes" ; then
277 AC_DEFINE(ENABLE_NLS, 1,
278 [always defined to indicate that i18n is enabled])
279 fi
280
281 dnl Test whether we really found GNU xgettext.
282 if test "$XGETTEXT" != ":"; then
283 dnl If it is not GNU xgettext we define it as : so that the
284 dnl Makefiles still can work.
285 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
286 : ;
287 else
288 AC_MSG_RESULT(
289 [found xgettext program is not GNU xgettext; ignore it])
290 XGETTEXT=":"
291 fi
292 fi
293
294 # We need to process the po/ directory.
295 POSUB=po
296
297 AC_OUTPUT_COMMANDS(
298 [case "$CONFIG_FILES" in *po/Makefile.in*)
299 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
300 esac])
301
302 dnl These rules are solely for the distribution goal. While doing this
303 dnl we only have to keep exactly one list of the available catalogs
304 dnl in configure.in.
305 for lang in $ALL_LINGUAS; do
306 GMOFILES="$GMOFILES $lang.gmo"
307 POFILES="$POFILES $lang.po"
308 done
309
310 dnl Make all variables we use known to autoconf.
311 AC_SUBST(CATALOGS)
312 AC_SUBST(CATOBJEXT)
313 AC_SUBST(DATADIRNAME)
314 AC_SUBST(GMOFILES)
315 AC_SUBST(INSTOBJEXT)
316 AC_SUBST(INTLLIBS)
317 AC_SUBST(PO_IN_DATADIR_TRUE)
318 AC_SUBST(PO_IN_DATADIR_FALSE)
319 AC_SUBST(POFILES)
320 AC_SUBST(POSUB)
321 ])
322
323# AM_GLIB_GNU_GETTEXT
324# -------------------
325# Do checks necessary for use of gettext. If a suitable implementation
326# of gettext is found in either in libintl or in the C library,
327# it will set INTLLIBS to the libraries needed for use of gettext
328# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330# on various variables needed by the Makefile.in.in installed by
331# glib-gettextize.
332dnl
333glib_DEFUN([GLIB_GNU_GETTEXT],
334 [AC_REQUIRE([AC_PROG_CC])dnl
335 AC_REQUIRE([AC_HEADER_STDC])dnl
336
337 GLIB_LC_MESSAGES
338 GLIB_WITH_NLS
339
340 if test "$gt_cv_have_gettext" = "yes"; then
341 if test "x$ALL_LINGUAS" = "x"; then
342 LINGUAS=
343 else
344 AC_MSG_CHECKING(for catalogs to be installed)
345 NEW_LINGUAS=
346 for presentlang in $ALL_LINGUAS; do
347 useit=no
348 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349 desiredlanguages="$LINGUAS"
350 else
351 desiredlanguages="$ALL_LINGUAS"
352 fi
353 for desiredlang in $desiredlanguages; do
354 # Use the presentlang catalog if desiredlang is
355 # a. equal to presentlang, or
356 # b. a variant of presentlang (because in this case,
357 # presentlang can be used as a fallback for messages
358 # which are not translated in the desiredlang catalog).
359 case "$desiredlang" in
360 "$presentlang"*) useit=yes;;
361 esac
362 done
363 if test $useit = yes; then
364 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
365 fi
366 done
367 LINGUAS=$NEW_LINGUAS
368 AC_MSG_RESULT($LINGUAS)
369 fi
370
371 dnl Construct list of names of catalog files to be constructed.
372 if test -n "$LINGUAS"; then
373 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
374 fi
375 fi
376
377 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379 dnl Try to locate is.
380 MKINSTALLDIRS=
381 if test -n "$ac_aux_dir"; then
382 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
383 fi
384 if test -z "$MKINSTALLDIRS"; then
385 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
386 fi
387 AC_SUBST(MKINSTALLDIRS)
388
389 dnl Generate list of files to be processed by xgettext which will
390 dnl be included in po/Makefile.
391 test -d po || mkdir po
392 if test "x$srcdir" != "x."; then
393 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394 posrcprefix="$srcdir/"
395 else
396 posrcprefix="../$srcdir/"
397 fi
398 else
399 posrcprefix="../"
400 fi
401 rm -f po/POTFILES
402 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403 < $srcdir/po/POTFILES.in > po/POTFILES
404 ])
405
406# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407# -------------------------------
408# Define VARIABLE to the location where catalog files will
409# be installed by po/Makefile.
410glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412glib_save_prefix="$prefix"
413glib_save_exec_prefix="$exec_prefix"
414glib_save_datarootdir="$datarootdir"
415test "x$prefix" = xNONE && prefix=$ac_default_prefix
416test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417datarootdir=`eval echo "${datarootdir}"`
418if test "x$CATOBJEXT" = "x.mo" ; then
419 localedir=`eval echo "${libdir}/locale"`
420else
421 localedir=`eval echo "${datadir}/locale"`
422fi
423prefix="$glib_save_prefix"
424exec_prefix="$glib_save_exec_prefix"
425datarootdir="$glib_save_datarootdir"
426AC_DEFINE_UNQUOTED($1, "$localedir",
427 [Define the location where the catalogs will be installed])
428])
429
430dnl
431dnl Now the definitions that aclocal will find
432dnl
433ifdef(glib_configure_in,[],[
434AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436])dnl
437
438# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
439#
440# Create a temporary file with TEST-FILE as its contents and pass the
441# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
442# 0 and perform ACTION-IF-FAIL for any other exit status.
443AC_DEFUN([GLIB_RUN_PROG],
444[cat >conftest.foo <<_ACEOF
445$2
446_ACEOF
447if AC_RUN_LOG([$1 conftest.foo]); then
448 m4_ifval([$3], [$3], [:])
449m4_ifvaln([$4], [else $4])dnl
450echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
452fi])
453
454
455dnl -*- mode: autoconf -*-
456
457# serial 1
458
459dnl Usage:
460dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
461AC_DEFUN([GTK_DOC_CHECK],
462[
463 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
464 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
465
466 dnl check for tools we added during development
467 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
468 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
469 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
470
471 dnl for overriding the documentation installation directory
472 AC_ARG_WITH([html-dir],
473 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
474 [with_html_dir='${datadir}/gtk-doc/html'])
475 HTML_DIR="$with_html_dir"
476 AC_SUBST([HTML_DIR])
477
478 dnl enable/disable documentation building
479 AC_ARG_ENABLE([gtk-doc],
480 AS_HELP_STRING([--enable-gtk-doc],
481 [use gtk-doc to build documentation [[default=no]]]),,
482 [enable_gtk_doc=no])
483
484 if test x$enable_gtk_doc = xyes; then
485 ifelse([$1],[],
486 [PKG_CHECK_EXISTS([gtk-doc],,
487 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
488 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
489 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
490 fi
491
492 AC_MSG_CHECKING([whether to build gtk-doc documentation])
493 AC_MSG_RESULT($enable_gtk_doc)
494
495 dnl enable/disable output formats
496 AC_ARG_ENABLE([gtk-doc-html],
497 AS_HELP_STRING([--enable-gtk-doc-html],
498 [build documentation in html format [[default=yes]]]),,
499 [enable_gtk_doc_html=yes])
500 AC_ARG_ENABLE([gtk-doc-pdf],
501 AS_HELP_STRING([--enable-gtk-doc-pdf],
502 [build documentation in pdf format [[default=no]]]),,
503 [enable_gtk_doc_pdf=no])
504
505 if test -z "$GTKDOC_MKPDF"; then
506 enable_gtk_doc_pdf=no
507 fi
508
509
510 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
511 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
512 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
513 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
514 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
515])
516
517dnl -*- mode: autoconf -*-
518dnl Copyright 2009 Johan Dahlin
519dnl
520dnl This file is free software; the author(s) gives unlimited
521dnl permission to copy and/or distribute it, with or without
522dnl modifications, as long as this notice is preserved.
523dnl
524
525# serial 1
526
527m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
528[
529 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
530 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
531 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
532
533 dnl enable/disable introspection
534 m4_if([$2], [require],
535 [dnl
536 enable_introspection=yes
537 ],[dnl
538 AC_ARG_ENABLE(introspection,
539 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
540 [Enable introspection for this build]),,
541 [enable_introspection=auto])
542 ])dnl
543
544 AC_MSG_CHECKING([for gobject-introspection])
545
546 dnl presence/version checking
547 AS_CASE([$enable_introspection],
548 [no], [dnl
549 found_introspection="no (disabled, use --enable-introspection to enable)"
550 ],dnl
551 [yes],[dnl
552 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
553 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
554 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
555 found_introspection=yes,
556 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
557 ],dnl
558 [auto],[dnl
559 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
560 ],dnl
561 [dnl
562 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
563 ])dnl
564
565 AC_MSG_RESULT([$found_introspection])
566
567 INTROSPECTION_SCANNER=
568 INTROSPECTION_COMPILER=
569 INTROSPECTION_GENERATE=
570 INTROSPECTION_GIRDIR=
571 INTROSPECTION_TYPELIBDIR=
572 if test "x$found_introspection" = "xyes"; then
573 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
574 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
575 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
576 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
577 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
578 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
579 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
580 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
581 fi
582 AC_SUBST(INTROSPECTION_SCANNER)
583 AC_SUBST(INTROSPECTION_COMPILER)
584 AC_SUBST(INTROSPECTION_GENERATE)
585 AC_SUBST(INTROSPECTION_GIRDIR)
586 AC_SUBST(INTROSPECTION_TYPELIBDIR)
587 AC_SUBST(INTROSPECTION_CFLAGS)
588 AC_SUBST(INTROSPECTION_LIBS)
589 AC_SUBST(INTROSPECTION_MAKEFILE)
590
591 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
592])
593
594
595dnl Usage:
596dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
597
598AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
599[
600 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
601])
602
603dnl Usage:
604dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
605
606
607AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
608[
609 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
610])
611
612# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-23# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
613#24#
614# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,25# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
615# 2006, 2007, 2008 Free Software Foundation, Inc.26# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27# Foundation, Inc.
616# Written by Gordon Matzigkeit, 199628# Written by Gordon Matzigkeit, 1996
617#29#
618# This file is free software; the Free Software Foundation gives30# This file is free software; the Free Software Foundation gives
@@ -621,7 +33,8 @@
62133
622m4_define([_LT_COPYING], [dnl34m4_define([_LT_COPYING], [dnl
623# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,35# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
624# 2006, 2007, 2008 Free Software Foundation, Inc.36# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37# Foundation, Inc.
625# Written by Gordon Matzigkeit, 199638# Written by Gordon Matzigkeit, 1996
626#39#
627# This file is part of GNU Libtool.40# This file is part of GNU Libtool.
@@ -648,7 +61,7 @@
648# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.61# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
649])62])
65063
651# serial 56 LT_INIT64# serial 57 LT_INIT
65265
65366
654# LT_PREREQ(VERSION)67# LT_PREREQ(VERSION)
@@ -677,6 +90,7 @@
677# ------------------90# ------------------
678AC_DEFUN([LT_INIT],91AC_DEFUN([LT_INIT],
679[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT92[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
93AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
680AC_BEFORE([$0], [LT_LANG])dnl94AC_BEFORE([$0], [LT_LANG])dnl
681AC_BEFORE([$0], [LT_OUTPUT])dnl95AC_BEFORE([$0], [LT_OUTPUT])dnl
682AC_BEFORE([$0], [LTDL_INIT])dnl96AC_BEFORE([$0], [LTDL_INIT])dnl
@@ -693,6 +107,8 @@
693AC_REQUIRE([LTOBSOLETE_VERSION])dnl107AC_REQUIRE([LTOBSOLETE_VERSION])dnl
694m4_require([_LT_PROG_LTMAIN])dnl108m4_require([_LT_PROG_LTMAIN])dnl
695109
110_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
111
696dnl Parse OPTIONS112dnl Parse OPTIONS
697_LT_SET_OPTIONS([$0], [$1])113_LT_SET_OPTIONS([$0], [$1])
698114
@@ -729,7 +145,7 @@
729 *) break;;145 *) break;;
730 esac146 esac
731done147done
732cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`148cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
733])149])
734150
735151
@@ -749,6 +165,11 @@
749m4_defun([_LT_SETUP],165m4_defun([_LT_SETUP],
750[AC_REQUIRE([AC_CANONICAL_HOST])dnl166[AC_REQUIRE([AC_CANONICAL_HOST])dnl
751AC_REQUIRE([AC_CANONICAL_BUILD])dnl167AC_REQUIRE([AC_CANONICAL_BUILD])dnl
168AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
169AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
170
171_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
172dnl
752_LT_DECL([], [host_alias], [0], [The host system])dnl173_LT_DECL([], [host_alias], [0], [The host system])dnl
753_LT_DECL([], [host], [0])dnl174_LT_DECL([], [host], [0])dnl
754_LT_DECL([], [host_os], [0])dnl175_LT_DECL([], [host_os], [0])dnl
@@ -771,10 +192,13 @@
771dnl192dnl
772m4_require([_LT_FILEUTILS_DEFAULTS])dnl193m4_require([_LT_FILEUTILS_DEFAULTS])dnl
773m4_require([_LT_CHECK_SHELL_FEATURES])dnl194m4_require([_LT_CHECK_SHELL_FEATURES])dnl
195m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
774m4_require([_LT_CMD_RELOAD])dnl196m4_require([_LT_CMD_RELOAD])dnl
775m4_require([_LT_CHECK_MAGIC_METHOD])dnl197m4_require([_LT_CHECK_MAGIC_METHOD])dnl
198m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
776m4_require([_LT_CMD_OLD_ARCHIVE])dnl199m4_require([_LT_CMD_OLD_ARCHIVE])dnl
777m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl200m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
201m4_require([_LT_WITH_SYSROOT])dnl
778202
779_LT_CONFIG_LIBTOOL_INIT([203_LT_CONFIG_LIBTOOL_INIT([
780# See if we are running on zsh, and set the options which allow our204# See if we are running on zsh, and set the options which allow our
@@ -790,7 +214,6 @@
790_LT_CHECK_OBJDIR214_LT_CHECK_OBJDIR
791215
792m4_require([_LT_TAG_COMPILER])dnl216m4_require([_LT_TAG_COMPILER])dnl
793_LT_PROG_ECHO_BACKSLASH
794217
795case $host_os in218case $host_os in
796aix3*)219aix3*)
@@ -804,23 +227,6 @@
804 ;;227 ;;
805esac228esac
806229
807# Sed substitution that helps us do robust quoting. It backslashifies
808# metacharacters that are still active within double-quoted strings.
809sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
810
811# Same as above, but do not quote variable references.
812double_quote_subst='s/\([["`\\]]\)/\\\1/g'
813
814# Sed substitution to delay expansion of an escaped shell variable in a
815# double_quote_subst'ed string.
816delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
817
818# Sed substitution to delay expansion of an escaped single quote.
819delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
820
821# Sed substitution to avoid accidental globbing in evaled expressions
822no_glob_subst='s/\*/\\\*/g'
823
824# Global variables:230# Global variables:
825ofile=libtool231ofile=libtool
826can_build_shared=yes232can_build_shared=yes
@@ -861,6 +267,28 @@
861])# _LT_SETUP267])# _LT_SETUP
862268
863269
270# _LT_PREPARE_SED_QUOTE_VARS
271# --------------------------
272# Define a few sed substitution that help us do robust quoting.
273m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
274[# Backslashify metacharacters that are still active within
275# double-quoted strings.
276sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
277
278# Same as above, but do not quote variable references.
279double_quote_subst='s/\([["`\\]]\)/\\\1/g'
280
281# Sed substitution to delay expansion of an escaped shell variable in a
282# double_quote_subst'ed string.
283delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
284
285# Sed substitution to delay expansion of an escaped single quote.
286delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
287
288# Sed substitution to avoid accidental globbing in evaled expressions
289no_glob_subst='s/\*/\\\*/g'
290])
291
864# _LT_PROG_LTMAIN292# _LT_PROG_LTMAIN
865# ---------------293# ---------------
866# Note that this code is called both from `configure', and `config.status'294# Note that this code is called both from `configure', and `config.status'
@@ -1013,7 +441,7 @@
1013# declaration there will have the same value as in `configure'. VARNAME441# declaration there will have the same value as in `configure'. VARNAME
1014# must have a single quote delimited value for this to work.442# must have a single quote delimited value for this to work.
1015m4_define([_LT_CONFIG_STATUS_DECLARE],443m4_define([_LT_CONFIG_STATUS_DECLARE],
1016[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])444[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1017445
1018446
1019# _LT_CONFIG_STATUS_DECLARATIONS447# _LT_CONFIG_STATUS_DECLARATIONS
@@ -1023,7 +451,7 @@
1023# embedded single quotes properly. In configure, this macro expands451# embedded single quotes properly. In configure, this macro expands
1024# each variable declared with _LT_DECL (and _LT_TAGDECL) into:452# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1025#453#
1026# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'454# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1027m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],455m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1028[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),456[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1029 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])457 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
@@ -1122,12 +550,20 @@
1122LTCFLAGS='$LTCFLAGS'550LTCFLAGS='$LTCFLAGS'
1123compiler='$compiler_DEFAULT'551compiler='$compiler_DEFAULT'
1124552
553# A function that is used when there is no print builtin or printf.
554func_fallback_echo ()
555{
556 eval 'cat <<_LTECHO_EOF
557\$[]1
558_LTECHO_EOF'
559}
560
1125# Quote evaled strings.561# Quote evaled strings.
1126for var in lt_decl_all_varnames([[ \562for var in lt_decl_all_varnames([[ \
1127]], lt_decl_quote_varnames); do563]], lt_decl_quote_varnames); do
1128 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1129 *[[\\\\\\\`\\"\\\$]]*)565 *[[\\\\\\\`\\"\\\$]]*)
1130 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1131 ;;567 ;;
1132 *)568 *)
1133 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -1138,9 +574,9 @@
1138# Double-quote double-evaled strings.574# Double-quote double-evaled strings.
1139for var in lt_decl_all_varnames([[ \575for var in lt_decl_all_varnames([[ \
1140]], lt_decl_dquote_varnames); do576]], lt_decl_dquote_varnames); do
1141 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1142 *[[\\\\\\\`\\"\\\$]]*)578 *[[\\\\\\\`\\"\\\$]]*)
1143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1144 ;;580 ;;
1145 *)581 *)
1146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -1148,16 +584,38 @@
1148 esac584 esac
1149done585done
1150586
1151# Fix-up fallback echo if it was mangled by the above quoting rules.
1152case \$lt_ECHO in
1153*'\\\[$]0 --fallback-echo"')dnl "
1154 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1155 ;;
1156esac
1157
1158_LT_OUTPUT_LIBTOOL_INIT587_LT_OUTPUT_LIBTOOL_INIT
1159])588])
1160589
590# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
591# ------------------------------------
592# Generate a child script FILE with all initialization necessary to
593# reuse the environment learned by the parent script, and make the
594# file executable. If COMMENT is supplied, it is inserted after the
595# `#!' sequence but before initialization text begins. After this
596# macro, additional text can be appended to FILE to form the body of
597# the child script. The macro ends with non-zero status if the
598# file could not be fully written (such as if the disk is full).
599m4_ifdef([AS_INIT_GENERATED],
600[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
601[m4_defun([_LT_GENERATED_FILE_INIT],
602[m4_require([AS_PREPARE])]dnl
603[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
604[lt_write_fail=0
605cat >$1 <<_ASEOF || lt_write_fail=1
606#! $SHELL
607# Generated by $as_me.
608$2
609SHELL=\${CONFIG_SHELL-$SHELL}
610export SHELL
611_ASEOF
612cat >>$1 <<\_ASEOF || lt_write_fail=1
613AS_SHELL_SANITIZE
614_AS_PREPARE
615exec AS_MESSAGE_FD>&1
616_ASEOF
617test $lt_write_fail = 0 && chmod +x $1[]dnl
618m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1161619
1162# LT_OUTPUT620# LT_OUTPUT
1163# ---------621# ---------
@@ -1167,20 +625,11 @@
1167AC_DEFUN([LT_OUTPUT],625AC_DEFUN([LT_OUTPUT],
1168[: ${CONFIG_LT=./config.lt}626[: ${CONFIG_LT=./config.lt}
1169AC_MSG_NOTICE([creating $CONFIG_LT])627AC_MSG_NOTICE([creating $CONFIG_LT])
1170cat >"$CONFIG_LT" <<_LTEOF628_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1171#! $SHELL629[# Run this file to recreate a libtool stub with the current configuration.])
1172# Generated by $as_me.
1173# Run this file to recreate a libtool stub with the current configuration.
1174630
631cat >>"$CONFIG_LT" <<\_LTEOF
1175lt_cl_silent=false632lt_cl_silent=false
1176SHELL=\${CONFIG_SHELL-$SHELL}
1177_LTEOF
1178
1179cat >>"$CONFIG_LT" <<\_LTEOF
1180AS_SHELL_SANITIZE
1181_AS_PREPARE
1182
1183exec AS_MESSAGE_FD>&1
1184exec AS_MESSAGE_LOG_FD>>config.log633exec AS_MESSAGE_LOG_FD>>config.log
1185{634{
1186 echo635 echo
@@ -1206,7 +655,7 @@
1206m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])655m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1207configured by $[0], generated by m4_PACKAGE_STRING.656configured by $[0], generated by m4_PACKAGE_STRING.
1208657
1209Copyright (C) 2008 Free Software Foundation, Inc.658Copyright (C) 2011 Free Software Foundation, Inc.
1210This config.lt script is free software; the Free Software Foundation659This config.lt script is free software; the Free Software Foundation
1211gives unlimited permision to copy, distribute and modify it."660gives unlimited permision to copy, distribute and modify it."
1212661
@@ -1251,15 +700,13 @@
1251# appending to config.log, which fails on DOS, as config.log is still kept700# appending to config.log, which fails on DOS, as config.log is still kept
1252# open by configure. Here we exec the FD to /dev/null, effectively closing701# open by configure. Here we exec the FD to /dev/null, effectively closing
1253# config.log, so it can be properly (re)opened and appended to by config.lt.702# config.log, so it can be properly (re)opened and appended to by config.lt.
1254if test "$no_create" != yes; then703lt_cl_success=:
1255 lt_cl_success=:704test "$silent" = yes &&
1256 test "$silent" = yes &&705 lt_config_lt_args="$lt_config_lt_args --quiet"
1257 lt_config_lt_args="$lt_config_lt_args --quiet"706exec AS_MESSAGE_LOG_FD>/dev/null
1258 exec AS_MESSAGE_LOG_FD>/dev/null707$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1259 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false708exec AS_MESSAGE_LOG_FD>>config.log
1260 exec AS_MESSAGE_LOG_FD>>config.log709$lt_cl_success || AS_EXIT(1)
1261 $lt_cl_success || AS_EXIT(1)
1262fi
1263])# LT_OUTPUT710])# LT_OUTPUT
1264711
1265712
@@ -1322,15 +769,12 @@
1322 # if finds mixed CR/LF and LF-only lines. Since sed operates in769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1323 # text mode, it properly converts lines to CR/LF. This bash problem770 # text mode, it properly converts lines to CR/LF. This bash problem
1324 # is reportedly fixed, but why not run on old versions too?771 # is reportedly fixed, but why not run on old versions too?
1325 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \772 sed '$q' "$ltmain" >> "$cfgfile" \
1326 || (rm -f "$cfgfile"; exit 1)773 || (rm -f "$cfgfile"; exit 1)
1327774
1328 _LT_PROG_XSI_SHELLFNS775 _LT_PROG_REPLACE_SHELLFNS
1329776
1330 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \777 mv -f "$cfgfile" "$ofile" ||
1331 || (rm -f "$cfgfile"; exit 1)
1332
1333 mv -f "$cfgfile" "$ofile" ||
1334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")778 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1335 chmod +x "$ofile"779 chmod +x "$ofile"
1336],780],
@@ -1375,6 +819,7 @@
1375m4_case([$1],819m4_case([$1],
1376 [C], [_LT_LANG(C)],820 [C], [_LT_LANG(C)],
1377 [C++], [_LT_LANG(CXX)],821 [C++], [_LT_LANG(CXX)],
822 [Go], [_LT_LANG(GO)],
1378 [Java], [_LT_LANG(GCJ)],823 [Java], [_LT_LANG(GCJ)],
1379 [Fortran 77], [_LT_LANG(F77)],824 [Fortran 77], [_LT_LANG(F77)],
1380 [Fortran], [_LT_LANG(FC)],825 [Fortran], [_LT_LANG(FC)],
@@ -1396,6 +841,29 @@
1396])# _LT_LANG841])# _LT_LANG
1397842
1398843
844m4_ifndef([AC_PROG_GO], [
845# NOTE: This macro has been submitted for inclusion into #
846# GNU Autoconf as AC_PROG_GO. When it is available in #
847# a released version of Autoconf we should remove this #
848# macro and use it instead. #
849m4_defun([AC_PROG_GO],
850[AC_LANG_PUSH(Go)dnl
851AC_ARG_VAR([GOC], [Go compiler command])dnl
852AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
853_AC_ARG_VAR_LDFLAGS()dnl
854AC_CHECK_TOOL(GOC, gccgo)
855if test -z "$GOC"; then
856 if test -n "$ac_tool_prefix"; then
857 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
858 fi
859fi
860if test -z "$GOC"; then
861 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
862fi
863])#m4_defun
864])#m4_ifndef
865
866
1399# _LT_LANG_DEFAULT_CONFIG867# _LT_LANG_DEFAULT_CONFIG
1400# -----------------------868# -----------------------
1401m4_defun([_LT_LANG_DEFAULT_CONFIG],869m4_defun([_LT_LANG_DEFAULT_CONFIG],
@@ -1426,6 +894,10 @@
1426 m4_ifdef([LT_PROG_GCJ],894 m4_ifdef([LT_PROG_GCJ],
1427 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])895 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1428896
897AC_PROVIDE_IFELSE([AC_PROG_GO],
898 [LT_LANG(GO)],
899 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
900
1429AC_PROVIDE_IFELSE([LT_PROG_RC],901AC_PROVIDE_IFELSE([LT_PROG_RC],
1430 [LT_LANG(RC)],902 [LT_LANG(RC)],
1431 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])903 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
@@ -1436,11 +908,13 @@
1436AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])908AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1437AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])909AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1438AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])910AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
911AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1439dnl aclocal-1.4 backwards compatibility:912dnl aclocal-1.4 backwards compatibility:
1440dnl AC_DEFUN([AC_LIBTOOL_CXX], [])913dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1441dnl AC_DEFUN([AC_LIBTOOL_F77], [])914dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1442dnl AC_DEFUN([AC_LIBTOOL_FC], [])915dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1443dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])916dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
917dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1444918
1445919
1446# _LT_TAG_COMPILER920# _LT_TAG_COMPILER
@@ -1526,7 +1000,13 @@
1526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \1000 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err1001 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1528 _lt_result=$?1002 _lt_result=$?
1529 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then1003 # If there is a non-empty error log, and "single_module"
1004 # appears in it, assume the flag caused a linker warning
1005 if test -s conftest.err && $GREP single_module conftest.err; then
1006 cat conftest.err >&AS_MESSAGE_LOG_FD
1007 # Otherwise, if the output was created with a 0 exit code from
1008 # the compiler, it worked.
1009 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1530 lt_cv_apple_cc_single_mod=yes1010 lt_cv_apple_cc_single_mod=yes
1531 else1011 else
1532 cat conftest.err >&AS_MESSAGE_LOG_FD1012 cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -1534,6 +1014,7 @@
1534 rm -rf libconftest.dylib*1014 rm -rf libconftest.dylib*
1535 rm -f conftest.*1015 rm -f conftest.*
1536 fi])1016 fi])
1017
1537 AC_CACHE_CHECK([for -exported_symbols_list linker flag],1018 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1538 [lt_cv_ld_exported_symbols_list],1019 [lt_cv_ld_exported_symbols_list],
1539 [lt_cv_ld_exported_symbols_list=no1020 [lt_cv_ld_exported_symbols_list=no
@@ -1545,6 +1026,34 @@
1545 [lt_cv_ld_exported_symbols_list=no])1026 [lt_cv_ld_exported_symbols_list=no])
1546 LDFLAGS="$save_LDFLAGS"1027 LDFLAGS="$save_LDFLAGS"
1547 ])1028 ])
1029
1030 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1031 [lt_cv_ld_force_load=no
1032 cat > conftest.c << _LT_EOF
1033int forced_loaded() { return 2;}
1034_LT_EOF
1035 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1036 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1037 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1038 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1039 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1040 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1041 cat > conftest.c << _LT_EOF
1042int main() { return 0;}
1043_LT_EOF
1044 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1045 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1046 _lt_result=$?
1047 if test -s conftest.err && $GREP force_load conftest.err; then
1048 cat conftest.err >&AS_MESSAGE_LOG_FD
1049 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1050 lt_cv_ld_force_load=yes
1051 else
1052 cat conftest.err >&AS_MESSAGE_LOG_FD
1053 fi
1054 rm -f conftest.err libconftest.a conftest conftest.c
1055 rm -rf conftest.dSYM
1056 ])
1548 case $host_os in1057 case $host_os in
1549 rhapsody* | darwin1.[[012]])1058 rhapsody* | darwin1.[[012]])
1550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;1059 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
@@ -1572,7 +1081,7 @@
1572 else1081 else
1573 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'1082 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1574 fi1083 fi
1575 if test "$DSYMUTIL" != ":"; then1084 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1576 _lt_dsymutil='~$DSYMUTIL $lib || :'1085 _lt_dsymutil='~$DSYMUTIL $lib || :'
1577 else1086 else
1578 _lt_dsymutil=1087 _lt_dsymutil=
@@ -1582,8 +1091,8 @@
1582])1091])
15831092
15841093
1585# _LT_DARWIN_LINKER_FEATURES1094# _LT_DARWIN_LINKER_FEATURES([TAG])
1586# --------------------------1095# ---------------------------------
1587# Checks for linker and compiler features on darwin1096# Checks for linker and compiler features on darwin
1588m4_defun([_LT_DARWIN_LINKER_FEATURES],1097m4_defun([_LT_DARWIN_LINKER_FEATURES],
1589[1098[
@@ -1592,7 +1101,13 @@
1592 _LT_TAGVAR(hardcode_direct, $1)=no1101 _LT_TAGVAR(hardcode_direct, $1)=no
1593 _LT_TAGVAR(hardcode_automatic, $1)=yes1102 _LT_TAGVAR(hardcode_automatic, $1)=yes
1594 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported1103 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1595 _LT_TAGVAR(whole_archive_flag_spec, $1)=''1104 if test "$lt_cv_ld_force_load" = "yes"; then
1105 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1106 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1107 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1108 else
1109 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1110 fi
1596 _LT_TAGVAR(link_all_deplibs, $1)=yes1111 _LT_TAGVAR(link_all_deplibs, $1)=yes
1597 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"1112 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1598 case $cc_basename in1113 case $cc_basename in
@@ -1600,7 +1115,7 @@
1600 *) _lt_dar_can_shared=$GCC ;;1115 *) _lt_dar_can_shared=$GCC ;;
1601 esac1116 esac
1602 if test "$_lt_dar_can_shared" = "yes"; then1117 if test "$_lt_dar_can_shared" = "yes"; then
1603 output_verbose_link_cmd=echo1118 output_verbose_link_cmd=func_echo_all
1604 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"1119 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1605 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"1120 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1606 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"1121 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
@@ -1616,203 +1131,142 @@
1616 fi1131 fi
1617])1132])
16181133
1619# _LT_SYS_MODULE_PATH_AIX1134# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1620# -----------------------1135# ----------------------------------
1621# Links a minimal program and checks the executable1136# Links a minimal program and checks the executable
1622# for the system default hardcoded library path. In most cases,1137# for the system default hardcoded library path. In most cases,
1623# this is /usr/lib:/lib, but when the MPI compilers are used1138# this is /usr/lib:/lib, but when the MPI compilers are used
1624# the location of the communication and MPI libs are included too.1139# the location of the communication and MPI libs are included too.
1625# If we don't find anything, use the default library path according1140# If we don't find anything, use the default library path according
1626# to the aix ld manual.1141# to the aix ld manual.
1142# Store the results from the different compilers for each TAGNAME.
1143# Allow to override them for all tags through lt_cv_aix_libpath.
1627m4_defun([_LT_SYS_MODULE_PATH_AIX],1144m4_defun([_LT_SYS_MODULE_PATH_AIX],
1628[m4_require([_LT_DECL_SED])dnl1145[m4_require([_LT_DECL_SED])dnl
1629AC_LINK_IFELSE(AC_LANG_PROGRAM,[1146if test "${lt_cv_aix_libpath+set}" = set; then
1630lt_aix_libpath_sed='1147 aix_libpath=$lt_cv_aix_libpath
1631 /Import File Strings/,/^$/ {1148else
1632 /^0/ {1149 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1633 s/^0 *\(.*\)$/\1/1150 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1634 p1151 lt_aix_libpath_sed='[
1635 }1152 /Import File Strings/,/^$/ {
1636 }'1153 /^0/ {
1637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`1154 s/^0 *\([^ ]*\) *$/\1/
1638# Check for a 64-bit object if we didn't find anything.1155 p
1639if test -z "$aix_libpath"; then1156 }
1640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`1157 }]'
1641fi],[])1158 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi1159 # Check for a 64-bit object if we didn't find anything.
1160 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1161 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1162 fi],[])
1163 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1164 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1165 fi
1166 ])
1167 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1168fi
1643])# _LT_SYS_MODULE_PATH_AIX1169])# _LT_SYS_MODULE_PATH_AIX
16441170
16451171
1646# _LT_SHELL_INIT(ARG)1172# _LT_SHELL_INIT(ARG)
1647# -------------------1173# -------------------
1648m4_define([_LT_SHELL_INIT],1174m4_define([_LT_SHELL_INIT],
1649[ifdef([AC_DIVERSION_NOTICE],1175[m4_divert_text([M4SH-INIT], [$1
1650 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],1176])])# _LT_SHELL_INIT
1651 [AC_DIVERT_PUSH(NOTICE)])1177
1652$1
1653AC_DIVERT_POP
1654])# _LT_SHELL_INIT
16551178
16561179
1657# _LT_PROG_ECHO_BACKSLASH1180# _LT_PROG_ECHO_BACKSLASH
1658# -----------------------1181# -----------------------
1659# Add some code to the start of the generated configure script which1182# Find how we can fake an echo command that does not interpret backslash.
1660# will find an echo command which doesn't interpret backslashes.1183# In particular, with Autoconf 2.60 or later we add some code to the start
1184# of the generated configure script which will find a shell with a builtin
1185# printf (which we can use as an echo command).
1661m4_defun([_LT_PROG_ECHO_BACKSLASH],1186m4_defun([_LT_PROG_ECHO_BACKSLASH],
1662[_LT_SHELL_INIT([1187[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1663# Check that we are running under the correct shell.1188ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1664SHELL=${CONFIG_SHELL-/bin/sh}1189ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
16651190
1666case X$lt_ECHO in1191AC_MSG_CHECKING([how to print strings])
1667X*--fallback-echo)1192# Test print first, because it will be a builtin if present.
1668 # Remove one level of quotation (which was required for Make).1193if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1669 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`1194 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1670 ;;1195 ECHO='print -r --'
1196elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1197 ECHO='printf %s\n'
1198else
1199 # Use this function as a fallback that always works.
1200 func_fallback_echo ()
1201 {
1202 eval 'cat <<_LTECHO_EOF
1203$[]1
1204_LTECHO_EOF'
1205 }
1206 ECHO='func_fallback_echo'
1207fi
1208
1209# func_echo_all arg...
1210# Invoke $ECHO with all args, space-separated.
1211func_echo_all ()
1212{
1213 $ECHO "$*"
1214}
1215
1216case "$ECHO" in
1217 printf*) AC_MSG_RESULT([printf]) ;;
1218 print*) AC_MSG_RESULT([print -r]) ;;
1219 *) AC_MSG_RESULT([cat]) ;;
1671esac1220esac
16721221
1673ECHO=${lt_ECHO-echo}1222m4_ifdef([_AS_DETECT_SUGGESTED],
1674if test "X[$]1" = X--no-reexec; then1223[_AS_DETECT_SUGGESTED([
1675 # Discard the --no-reexec flag, and continue.1224 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1676 shift1225 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1677elif test "X[$]1" = X--fallback-echo; then1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1678 # Avoid inline document here, it may be left over1227 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1679 :1228 PATH=/empty FPATH=/empty; export PATH FPATH
1680elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then1229 test "X`printf %s $ECHO`" = "X$ECHO" \
1681 # Yippee, $ECHO works!1230 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1682 :1231
1683else
1684 # Restart under the correct shell.
1685 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1686fi
1687
1688if test "X[$]1" = X--fallback-echo; then
1689 # used as fallback echo
1690 shift
1691 cat <<_LT_EOF
1692[$]*
1693_LT_EOF
1694 exit 0
1695fi
1696
1697# The HP-UX ksh and POSIX shell print the target directory to stdout
1698# if CDPATH is set.
1699(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1700
1701if test -z "$lt_ECHO"; then
1702 if test "X${echo_test_string+set}" != Xset; then
1703 # find a string as large as possible, as long as the shell can cope with it
1704 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1705 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1706 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1707 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1708 then
1709 break
1710 fi
1711 done
1712 fi
1713
1714 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1715 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1716 test "X$echo_testing_string" = "X$echo_test_string"; then
1717 :
1718 else
1719 # The Solaris, AIX, and Digital Unix default echo programs unquote
1720 # backslashes. This makes it impossible to quote backslashes using
1721 # echo "$something" | sed 's/\\/\\\\/g'
1722 #
1723 # So, first we look for a working echo in the user's PATH.
1724
1725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1726 for dir in $PATH /usr/ucb; do
1727 IFS="$lt_save_ifs"
1728 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1729 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1730 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1731 test "X$echo_testing_string" = "X$echo_test_string"; then
1732 ECHO="$dir/echo"
1733 break
1734 fi
1735 done
1736 IFS="$lt_save_ifs"
1737
1738 if test "X$ECHO" = Xecho; then
1739 # We didn't find a better echo, so look for alternatives.
1740 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1741 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1742 test "X$echo_testing_string" = "X$echo_test_string"; then
1743 # This shell has a builtin print -r that does the trick.
1744 ECHO='print -r'
1745 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1746 test "X$CONFIG_SHELL" != X/bin/ksh; then
1747 # If we have ksh, try running configure again with it.
1748 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1749 export ORIGINAL_CONFIG_SHELL
1750 CONFIG_SHELL=/bin/ksh
1751 export CONFIG_SHELL
1752 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1753 else
1754 # Try using printf.
1755 ECHO='printf %s\n'
1756 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1757 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1758 test "X$echo_testing_string" = "X$echo_test_string"; then
1759 # Cool, printf works
1760 :
1761 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1762 test "X$echo_testing_string" = 'X\t' &&
1763 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1764 test "X$echo_testing_string" = "X$echo_test_string"; then
1765 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1766 export CONFIG_SHELL
1767 SHELL="$CONFIG_SHELL"
1768 export SHELL
1769 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1770 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1771 test "X$echo_testing_string" = 'X\t' &&
1772 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1773 test "X$echo_testing_string" = "X$echo_test_string"; then
1774 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1775 else
1776 # maybe with a smaller string...
1777 prev=:
1778
1779 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1780 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1781 then
1782 break
1783 fi
1784 prev="$cmd"
1785 done
1786
1787 if test "$prev" != 'sed 50q "[$]0"'; then
1788 echo_test_string=`eval $prev`
1789 export echo_test_string
1790 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1791 else
1792 # Oops. We lost completely, so just stick with echo.
1793 ECHO=echo
1794 fi
1795 fi
1796 fi
1797 fi
1798 fi
1799fi
1800
1801# Copy echo and quote the copy suitably for passing to libtool from
1802# the Makefile, instead of quoting the original, which is used later.
1803lt_ECHO=$ECHO
1804if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1805 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1806fi
1807
1808AC_SUBST(lt_ECHO)
1809])
1810_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])1232_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1811_LT_DECL([], [ECHO], [1],1233_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1812 [An echo program that does not interpret backslashes])
1813])# _LT_PROG_ECHO_BACKSLASH1234])# _LT_PROG_ECHO_BACKSLASH
18141235
18151236
1237# _LT_WITH_SYSROOT
1238# ----------------
1239AC_DEFUN([_LT_WITH_SYSROOT],
1240[AC_MSG_CHECKING([for sysroot])
1241AC_ARG_WITH([sysroot],
1242[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1243 (or the compiler's sysroot if not specified).],
1244[], [with_sysroot=no])
1245
1246dnl lt_sysroot will always be passed unquoted. We quote it here
1247dnl in case the user passed a directory name.
1248lt_sysroot=
1249case ${with_sysroot} in #(
1250 yes)
1251 if test "$GCC" = yes; then
1252 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1253 fi
1254 ;; #(
1255 /*)
1256 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1257 ;; #(
1258 no|'')
1259 ;; #(
1260 *)
1261 AC_MSG_RESULT([${with_sysroot}])
1262 AC_MSG_ERROR([The sysroot must be an absolute path.])
1263 ;;
1264esac
1265
1266 AC_MSG_RESULT([${lt_sysroot:-no}])
1267_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1268[dependent libraries, and in which our libraries should be installed.])])
1269
1816# _LT_ENABLE_LOCK1270# _LT_ENABLE_LOCK
1817# ---------------1271# ---------------
1818m4_defun([_LT_ENABLE_LOCK],1272m4_defun([_LT_ENABLE_LOCK],
@@ -1841,7 +1295,7 @@
1841 ;;1295 ;;
1842*-*-irix6*)1296*-*-irix6*)
1843 # Find out which ABI we are using.1297 # Find out which ABI we are using.
1844 echo '[#]line __oline__ "configure"' > conftest.$ac_ext1298 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1845 if AC_TRY_EVAL(ac_compile); then1299 if AC_TRY_EVAL(ac_compile); then
1846 if test "$lt_cv_prog_gnu_ld" = yes; then1300 if test "$lt_cv_prog_gnu_ld" = yes; then
1847 case `/usr/bin/file conftest.$ac_objext` in1301 case `/usr/bin/file conftest.$ac_objext` in
@@ -1934,14 +1388,27 @@
1934 CFLAGS="$SAVE_CFLAGS"1388 CFLAGS="$SAVE_CFLAGS"
1935 fi1389 fi
1936 ;;1390 ;;
1937sparc*-*solaris*)1391*-*solaris*)
1938 # Find out which ABI we are using.1392 # Find out which ABI we are using.
1939 echo 'int i;' > conftest.$ac_ext1393 echo 'int i;' > conftest.$ac_ext
1940 if AC_TRY_EVAL(ac_compile); then1394 if AC_TRY_EVAL(ac_compile); then
1941 case `/usr/bin/file conftest.o` in1395 case `/usr/bin/file conftest.o` in
1942 *64-bit*)1396 *64-bit*)
1943 case $lt_cv_prog_gnu_ld in1397 case $lt_cv_prog_gnu_ld in
1944 yes*) LD="${LD-ld} -m elf64_sparc" ;;1398 yes*)
1399 case $host in
1400 i?86-*-solaris*)
1401 LD="${LD-ld} -m elf_x86_64"
1402 ;;
1403 sparc*-*-solaris*)
1404 LD="${LD-ld} -m elf64_sparc"
1405 ;;
1406 esac
1407 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1408 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1409 LD="${LD-ld}_sol2"
1410 fi
1411 ;;
1945 *)1412 *)
1946 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then1413 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1947 LD="${LD-ld} -64"1414 LD="${LD-ld} -64"
@@ -1959,14 +1426,47 @@
1959])# _LT_ENABLE_LOCK1426])# _LT_ENABLE_LOCK
19601427
19611428
1429# _LT_PROG_AR
1430# -----------
1431m4_defun([_LT_PROG_AR],
1432[AC_CHECK_TOOLS(AR, [ar], false)
1433: ${AR=ar}
1434: ${AR_FLAGS=cru}
1435_LT_DECL([], [AR], [1], [The archiver])
1436_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1437
1438AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1439 [lt_cv_ar_at_file=no
1440 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1441 [echo conftest.$ac_objext > conftest.lst
1442 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1443 AC_TRY_EVAL([lt_ar_try])
1444 if test "$ac_status" -eq 0; then
1445 # Ensure the archiver fails upon bogus file names.
1446 rm -f conftest.$ac_objext libconftest.a
1447 AC_TRY_EVAL([lt_ar_try])
1448 if test "$ac_status" -ne 0; then
1449 lt_cv_ar_at_file=@
1450 fi
1451 fi
1452 rm -f conftest.* libconftest.a
1453 ])
1454 ])
1455
1456if test "x$lt_cv_ar_at_file" = xno; then
1457 archiver_list_spec=
1458else
1459 archiver_list_spec=$lt_cv_ar_at_file
1460fi
1461_LT_DECL([], [archiver_list_spec], [1],
1462 [How to feed a file listing to the archiver])
1463])# _LT_PROG_AR
1464
1465
1962# _LT_CMD_OLD_ARCHIVE1466# _LT_CMD_OLD_ARCHIVE
1963# -------------------1467# -------------------
1964m4_defun([_LT_CMD_OLD_ARCHIVE],1468m4_defun([_LT_CMD_OLD_ARCHIVE],
1965[AC_CHECK_TOOL(AR, ar, false)1469[_LT_PROG_AR
1966test -z "$AR" && AR=ar
1967test -z "$AR_FLAGS" && AR_FLAGS=cru
1968_LT_DECL([], [AR], [1], [The archiver])
1969_LT_DECL([], [AR_FLAGS], [1])
19701470
1971AC_CHECK_TOOL(STRIP, strip, :)1471AC_CHECK_TOOL(STRIP, strip, :)
1972test -z "$STRIP" && STRIP=:1472test -z "$STRIP" && STRIP=:
@@ -1985,18 +1485,27 @@
1985if test -n "$RANLIB"; then1485if test -n "$RANLIB"; then
1986 case $host_os in1486 case $host_os in
1987 openbsd*)1487 openbsd*)
1988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"1488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1989 ;;1489 ;;
1990 *)1490 *)
1991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"1491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1992 ;;1492 ;;
1993 esac1493 esac
1994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"1494 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1995fi1495fi
1496
1497case $host_os in
1498 darwin*)
1499 lock_old_archive_extraction=yes ;;
1500 *)
1501 lock_old_archive_extraction=no ;;
1502esac
1996_LT_DECL([], [old_postinstall_cmds], [2])1503_LT_DECL([], [old_postinstall_cmds], [2])
1997_LT_DECL([], [old_postuninstall_cmds], [2])1504_LT_DECL([], [old_postuninstall_cmds], [2])
1998_LT_TAGDECL([], [old_archive_cmds], [2],1505_LT_TAGDECL([], [old_archive_cmds], [2],
1999 [Commands used to build an old-style archive])1506 [Commands used to build an old-style archive])
1507_LT_DECL([], [lock_old_archive_extraction], [0],
1508 [Whether to use a lock for old archive extraction])
2000])# _LT_CMD_OLD_ARCHIVE1509])# _LT_CMD_OLD_ARCHIVE
20011510
20021511
@@ -2021,15 +1530,15 @@
2021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \1530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2022 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \1531 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2023 -e 's:$: $lt_compiler_flag:'`1532 -e 's:$: $lt_compiler_flag:'`
2024 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2025 (eval "$lt_compile" 2>conftest.err)1534 (eval "$lt_compile" 2>conftest.err)
2026 ac_status=$?1535 ac_status=$?
2027 cat conftest.err >&AS_MESSAGE_LOG_FD1536 cat conftest.err >&AS_MESSAGE_LOG_FD
2028 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1537 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2029 if (exit $ac_status) && test -s "$ac_outfile"; then1538 if (exit $ac_status) && test -s "$ac_outfile"; then
2030 # The compiler can only warn and ignore the option if not recognized1539 # The compiler can only warn and ignore the option if not recognized
2031 # So say no if there are warnings other than the usual output.1540 # So say no if there are warnings other than the usual output.
2032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp1541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er21542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then1543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2035 $2=yes1544 $2=yes
@@ -2069,7 +1578,7 @@
2069 if test -s conftest.err; then1578 if test -s conftest.err; then
2070 # Append any errors to the config.log.1579 # Append any errors to the config.log.
2071 cat conftest.err 1>&AS_MESSAGE_LOG_FD1580 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp1581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er21582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2074 if diff conftest.exp conftest.er2 >/dev/null; then1583 if diff conftest.exp conftest.er2 >/dev/null; then
2075 $2=yes1584 $2=yes
@@ -2132,6 +1641,11 @@
2132 lt_cv_sys_max_cmd_len=8192;1641 lt_cv_sys_max_cmd_len=8192;
2133 ;;1642 ;;
21341643
1644 mint*)
1645 # On MiNT this can take a long time and run out of memory.
1646 lt_cv_sys_max_cmd_len=8192;
1647 ;;
1648
2135 amigaos*)1649 amigaos*)
2136 # On AmigaOS with pdksh, this test takes hours, literally.1650 # On AmigaOS with pdksh, this test takes hours, literally.
2137 # So we just punt and use a minimum line length of 8192.1651 # So we just punt and use a minimum line length of 8192.
@@ -2157,6 +1671,11 @@
2157 lt_cv_sys_max_cmd_len=1966081671 lt_cv_sys_max_cmd_len=196608
2158 ;;1672 ;;
21591673
1674 os2*)
1675 # The test takes a long time on OS/2.
1676 lt_cv_sys_max_cmd_len=8192
1677 ;;
1678
2160 osf*)1679 osf*)
2161 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure1680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2162 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not1681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -2196,8 +1715,8 @@
2196 # If test is not a shell built-in, we'll probably end up computing a1715 # If test is not a shell built-in, we'll probably end up computing a
2197 # maximum length that is only half of the actual maximum length, but1716 # maximum length that is only half of the actual maximum length, but
2198 # we can't tell.1717 # we can't tell.
2199 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \1718 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2200 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&1719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2201 test $i != 17 # 1/2 MB should be enough1720 test $i != 17 # 1/2 MB should be enough
2202 do1721 do
2203 i=`expr $i + 1`1722 i=`expr $i + 1`
@@ -2248,7 +1767,7 @@
2248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=21767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2249 lt_status=$lt_dlunknown1768 lt_status=$lt_dlunknown
2250 cat > conftest.$ac_ext <<_LT_EOF1769 cat > conftest.$ac_ext <<_LT_EOF
2251[#line __oline__ "configure"1770[#line $LINENO "configure"
2252#include "confdefs.h"1771#include "confdefs.h"
22531772
2254#if HAVE_DLFCN_H1773#if HAVE_DLFCN_H
@@ -2289,7 +1808,13 @@
2289# endif1808# endif
2290#endif1809#endif
22911810
2292void fnord() { int i=42;}1811/* When -fvisbility=hidden is used, assume the code has been annotated
1812 correspondingly for the symbols needed. */
1813#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1814int fnord () __attribute__((visibility("default")));
1815#endif
1816
1817int fnord () { return 42; }
2293int main ()1818int main ()
2294{1819{
2295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);1820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -2298,7 +1823,11 @@
2298 if (self)1823 if (self)
2299 {1824 {
2300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;1825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;1826 else
1827 {
1828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1829 else puts (dlerror ());
1830 }
2302 /* dlclose (self); */1831 /* dlclose (self); */
2303 }1832 }
2304 else1833 else
@@ -2474,16 +2003,16 @@
2474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \2003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2475 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \2004 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2476 -e 's:$: $lt_compiler_flag:'`2005 -e 's:$: $lt_compiler_flag:'`
2477 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)2006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2478 (eval "$lt_compile" 2>out/conftest.err)2007 (eval "$lt_compile" 2>out/conftest.err)
2479 ac_status=$?2008 ac_status=$?
2480 cat out/conftest.err >&AS_MESSAGE_LOG_FD2009 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2481 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD2010 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2482 if (exit $ac_status) && test -s out/conftest2.$ac_objext2011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2483 then2012 then
2484 # The compiler can only warn and ignore the option if not recognized2013 # The compiler can only warn and ignore the option if not recognized
2485 # So say no if there are warnings2014 # So say no if there are warnings
2486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp2015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er22016 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then2017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2489 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes2018 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
@@ -2642,6 +2171,7 @@
2642m4_require([_LT_FILEUTILS_DEFAULTS])dnl2171m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2643m4_require([_LT_DECL_OBJDUMP])dnl2172m4_require([_LT_DECL_OBJDUMP])dnl
2644m4_require([_LT_DECL_SED])dnl2173m4_require([_LT_DECL_SED])dnl
2174m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2645AC_MSG_CHECKING([dynamic linker characteristics])2175AC_MSG_CHECKING([dynamic linker characteristics])
2646m4_if([$1],2176m4_if([$1],
2647 [], [2177 [], [
@@ -2650,16 +2180,23 @@
2650 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;2180 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2651 *) lt_awk_arg="/^libraries:/" ;;2181 *) lt_awk_arg="/^libraries:/" ;;
2652 esac2182 esac
2653 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`2183 case $host_os in
2654 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then2184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2185 *) lt_sed_strip_eq="s,=/,/,g" ;;
2186 esac
2187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2188 case $lt_search_path_spec in
2189 *\;*)
2655 # if the path contains ";" then we assume it to be the separator2190 # if the path contains ";" then we assume it to be the separator
2656 # otherwise default to the standard path separator (i.e. ":") - it is2191 # otherwise default to the standard path separator (i.e. ":") - it is
2657 # assumed that no part of a normal pathname contains ";" but that should2192 # assumed that no part of a normal pathname contains ";" but that should
2658 # okay in the real world where ";" in dirpaths is itself problematic.2193 # okay in the real world where ";" in dirpaths is itself problematic.
2659 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`2194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2660 else2195 ;;
2661 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2196 *)
2662 fi2197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2198 ;;
2199 esac
2663 # Ok, now we have the path, separated by spaces, we can step through it2200 # Ok, now we have the path, separated by spaces, we can step through it
2664 # and add multilib dir if necessary.2201 # and add multilib dir if necessary.
2665 lt_tmp_lt_search_path_spec=2202 lt_tmp_lt_search_path_spec=
@@ -2672,7 +2209,7 @@
2672 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"2209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2673 fi2210 fi
2674 done2211 done
2675 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '2212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2676BEGIN {RS=" "; FS="/|\n";} {2213BEGIN {RS=" "; FS="/|\n";} {
2677 lt_foo="";2214 lt_foo="";
2678 lt_count=0;2215 lt_count=0;
@@ -2692,7 +2229,13 @@
2692 if (lt_foo != "") { lt_freq[[lt_foo]]++; }2229 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2693 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }2230 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2694}'`2231}'`
2695 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`2232 # AWK program above erroneously prepends '/' to C:/dos/paths
2233 # for these hosts.
2234 case $host_os in
2235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2236 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2237 esac
2238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2696else2239else
2697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"2240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2698fi])2241fi])
@@ -2718,7 +2261,7 @@
27182261
2719case $host_os in2262case $host_os in
2720aix3*)2263aix3*)
2721 version_type=linux2264 version_type=linux # correct to gnu/linux during the next big refactor
2722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'2265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2723 shlibpath_var=LIBPATH2266 shlibpath_var=LIBPATH
27242267
@@ -2727,7 +2270,7 @@
2727 ;;2270 ;;
27282271
2729aix[[4-9]]*)2272aix[[4-9]]*)
2730 version_type=linux2273 version_type=linux # correct to gnu/linux during the next big refactor
2731 need_lib_prefix=no2274 need_lib_prefix=no
2732 need_version=no2275 need_version=no
2733 hardcode_into_libs=yes2276 hardcode_into_libs=yes
@@ -2780,7 +2323,7 @@
2780 m68k)2323 m68k)
2781 library_names_spec='$libname.ixlibrary $libname.a'2324 library_names_spec='$libname.ixlibrary $libname.a'
2782 # Create ${libname}_ixlibrary.a entries in /sys/libs.2325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2783 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'2326 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'
2784 ;;2327 ;;
2785 esac2328 esac
2786 ;;2329 ;;
@@ -2792,7 +2335,7 @@
2792 ;;2335 ;;
27932336
2794bsdi[[45]]*)2337bsdi[[45]]*)
2795 version_type=linux2338 version_type=linux # correct to gnu/linux during the next big refactor
2796 need_version=no2339 need_version=no
2797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2798 soname_spec='${libname}${release}${shared_ext}$major'2341 soname_spec='${libname}${release}${shared_ext}$major'
@@ -2811,8 +2354,9 @@
2811 need_version=no2354 need_version=no
2812 need_lib_prefix=no2355 need_lib_prefix=no
28132356
2814 case $GCC,$host_os in2357 case $GCC,$cc_basename in
2815 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)2358 yes,*)
2359 # gcc
2816 library_names_spec='$libname.dll.a'2360 library_names_spec='$libname.dll.a'
2817 # DLL is installed to $(libdir)/../bin by postinstall_cmds2361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2818 postinstall_cmds='base_file=`basename \${file}`~2362 postinstall_cmds='base_file=`basename \${file}`~
@@ -2833,36 +2377,83 @@
2833 cygwin*)2377 cygwin*)
2834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'2378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"2380m4_if([$1], [],[
2381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2837 ;;2382 ;;
2838 mingw* | cegcc*)2383 mingw* | cegcc*)
2839 # MinGW DLLs use traditional 'lib' prefix2384 # MinGW DLLs use traditional 'lib' prefix
2840 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2385 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2841 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2842 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2843 # It is most probably a Windows format PATH printed by
2844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2845 # path with ; separators, and with drive letters. We can handle the
2846 # drive letters (cygwin fileutils understands them), so leave them,
2847 # especially as we might pass files found there to a mingw objdump,
2848 # which wouldn't understand a cygwinified path. Ahh.
2849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2850 else
2851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2852 fi
2853 ;;2386 ;;
2854 pw32*)2387 pw32*)
2855 # pw32 DLLs use 'pw' prefix rather than 'lib'2388 # pw32 DLLs use 'pw' prefix rather than 'lib'
2856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2857 ;;2390 ;;
2858 esac2391 esac
2392 dynamic_linker='Win32 ld.exe'
2393 ;;
2394
2395 *,cl*)
2396 # Native MSVC
2397 libname_spec='$name'
2398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2399 library_names_spec='${libname}.dll.lib'
2400
2401 case $build_os in
2402 mingw*)
2403 sys_lib_search_path_spec=
2404 lt_save_ifs=$IFS
2405 IFS=';'
2406 for lt_path in $LIB
2407 do
2408 IFS=$lt_save_ifs
2409 # Let DOS variable expansion print the short 8.3 style file name.
2410 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2411 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2412 done
2413 IFS=$lt_save_ifs
2414 # Convert to MSYS style.
2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2416 ;;
2417 cygwin*)
2418 # Convert to unix form, then to dos form, then back to unix form
2419 # but this time dos style (no spaces!) so that the unix form looks
2420 # like /cygdrive/c/PROGRA~1:/cygdr...
2421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2423 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2424 ;;
2425 *)
2426 sys_lib_search_path_spec="$LIB"
2427 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2428 # It is most probably a Windows format PATH.
2429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2430 else
2431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2432 fi
2433 # FIXME: find the short name or the path components, as spaces are
2434 # common. (e.g. "Program Files" -> "PROGRA~1")
2435 ;;
2436 esac
2437
2438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2439 postinstall_cmds='base_file=`basename \${file}`~
2440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2441 dldir=$destdir/`dirname \$dlpath`~
2442 test -d \$dldir || mkdir -p \$dldir~
2443 $install_prog $dir/$dlname \$dldir/$dlname'
2444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2445 dlpath=$dir/\$dldll~
2446 $RM \$dlpath'
2447 shlibpath_overrides_runpath=yes
2448 dynamic_linker='Win32 link.exe'
2859 ;;2449 ;;
28602450
2861 *)2451 *)
2452 # Assume MSVC wrapper
2862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'2453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2454 dynamic_linker='Win32 ld.exe'
2863 ;;2455 ;;
2864 esac2456 esac
2865 dynamic_linker='Win32 ld.exe'
2866 # FIXME: first we should search . and the directory the executable is in2457 # FIXME: first we should search . and the directory the executable is in
2867 shlibpath_var=PATH2458 shlibpath_var=PATH
2868 ;;2459 ;;
@@ -2883,7 +2474,7 @@
2883 ;;2474 ;;
28842475
2885dgux*)2476dgux*)
2886 version_type=linux2477 version_type=linux # correct to gnu/linux during the next big refactor
2887 need_lib_prefix=no2478 need_lib_prefix=no
2888 need_version=no2479 need_version=no
2889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'2480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
@@ -2891,10 +2482,6 @@
2891 shlibpath_var=LD_LIBRARY_PATH2482 shlibpath_var=LD_LIBRARY_PATH
2892 ;;2483 ;;
28932484
2894freebsd1*)
2895 dynamic_linker=no
2896 ;;
2897
2898freebsd* | dragonfly*)2485freebsd* | dragonfly*)
2899 # DragonFly does not have aout. When/if they implement a new2486 # DragonFly does not have aout. When/if they implement a new
2900 # versioning mechanism, adjust this.2487 # versioning mechanism, adjust this.
@@ -2902,7 +2489,7 @@
2902 objformat=`/usr/bin/objformat`2489 objformat=`/usr/bin/objformat`
2903 else2490 else
2904 case $host_os in2491 case $host_os in
2905 freebsd[[123]]*) objformat=aout ;;2492 freebsd[[23]].*) objformat=aout ;;
2906 *) objformat=elf ;;2493 *) objformat=elf ;;
2907 esac2494 esac
2908 fi2495 fi
@@ -2920,7 +2507,7 @@
2920 esac2507 esac
2921 shlibpath_var=LD_LIBRARY_PATH2508 shlibpath_var=LD_LIBRARY_PATH
2922 case $host_os in2509 case $host_os in
2923 freebsd2*)2510 freebsd2.*)
2924 shlibpath_overrides_runpath=yes2511 shlibpath_overrides_runpath=yes
2925 ;;2512 ;;
2926 freebsd3.[[01]]* | freebsdelf3.[[01]]*)2513 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
@@ -2940,12 +2527,26 @@
2940 ;;2527 ;;
29412528
2942gnu*)2529gnu*)
2943 version_type=linux2530 version_type=linux # correct to gnu/linux during the next big refactor
2944 need_lib_prefix=no2531 need_lib_prefix=no
2945 need_version=no2532 need_version=no
2946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2947 soname_spec='${libname}${release}${shared_ext}$major'2534 soname_spec='${libname}${release}${shared_ext}$major'
2948 shlibpath_var=LD_LIBRARY_PATH2535 shlibpath_var=LD_LIBRARY_PATH
2536 shlibpath_overrides_runpath=no
2537 hardcode_into_libs=yes
2538 ;;
2539
2540haiku*)
2541 version_type=linux # correct to gnu/linux during the next big refactor
2542 need_lib_prefix=no
2543 need_version=no
2544 dynamic_linker="$host_os runtime_loader"
2545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2546 soname_spec='${libname}${release}${shared_ext}$major'
2547 shlibpath_var=LIBRARY_PATH
2548 shlibpath_overrides_runpath=yes
2549 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2949 hardcode_into_libs=yes2550 hardcode_into_libs=yes
2950 ;;2551 ;;
29512552
@@ -2991,12 +2592,14 @@
2991 soname_spec='${libname}${release}${shared_ext}$major'2592 soname_spec='${libname}${release}${shared_ext}$major'
2992 ;;2593 ;;
2993 esac2594 esac
2994 # HP-UX runs *really* slowly unless shared libraries are mode 555.2595 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2995 postinstall_cmds='chmod 555 $lib'2596 postinstall_cmds='chmod 555 $lib'
2597 # or fails outright, so override atomically:
2598 install_override_mode=555
2996 ;;2599 ;;
29972600
2998interix[[3-9]]*)2601interix[[3-9]]*)
2999 version_type=linux2602 version_type=linux # correct to gnu/linux during the next big refactor
3000 need_lib_prefix=no2603 need_lib_prefix=no
3001 need_version=no2604 need_version=no
3002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'2605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
@@ -3012,7 +2615,7 @@
3012 nonstopux*) version_type=nonstopux ;;2615 nonstopux*) version_type=nonstopux ;;
3013 *)2616 *)
3014 if test "$lt_cv_prog_gnu_ld" = yes; then2617 if test "$lt_cv_prog_gnu_ld" = yes; then
3015 version_type=linux2618 version_type=linux # correct to gnu/linux during the next big refactor
3016 else2619 else
3017 version_type=irix2620 version_type=irix
3018 fi ;;2621 fi ;;
@@ -3049,9 +2652,9 @@
3049 dynamic_linker=no2652 dynamic_linker=no
3050 ;;2653 ;;
30512654
3052# This must be Linux ELF.2655# This must be glibc/ELF.
3053linux* | k*bsd*-gnu)2656linux* | k*bsd*-gnu | kopensolaris*-gnu)
3054 version_type=linux2657 version_type=linux # correct to gnu/linux during the next big refactor
3055 need_lib_prefix=no2658 need_lib_prefix=no
3056 need_version=no2659 need_version=no
3057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -3059,16 +2662,21 @@
3059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'2662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3060 shlibpath_var=LD_LIBRARY_PATH2663 shlibpath_var=LD_LIBRARY_PATH
3061 shlibpath_overrides_runpath=no2664 shlibpath_overrides_runpath=no
2665
3062 # Some binutils ld are patched to set DT_RUNPATH2666 # Some binutils ld are patched to set DT_RUNPATH
3063 save_LDFLAGS=$LDFLAGS2667 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3064 save_libdir=$libdir2668 [lt_cv_shlibpath_overrides_runpath=no
3065 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \2669 save_LDFLAGS=$LDFLAGS
3066 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""2670 save_libdir=$libdir
3067 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],2671 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3068 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],2672 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3069 [shlibpath_overrides_runpath=yes])])2673 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3070 LDFLAGS=$save_LDFLAGS2674 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3071 libdir=$save_libdir2675 [lt_cv_shlibpath_overrides_runpath=yes])])
2676 LDFLAGS=$save_LDFLAGS
2677 libdir=$save_libdir
2678 ])
2679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
30722680
3073 # This implies no fast_install, which is unacceptable.2681 # This implies no fast_install, which is unacceptable.
3074 # Some rework will be needed to allow for fast_install2682 # Some rework will be needed to allow for fast_install
@@ -3080,8 +2688,9 @@
30802688
3081 # Append ld.so.conf contents to the search path2689 # Append ld.so.conf contents to the search path
3082 if test -f /etc/ld.so.conf; then2690 if test -f /etc/ld.so.conf; then
3083 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`2691 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' ' '`
3084 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"2692 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2693
3085 fi2694 fi
30862695
3087 # We used to test for /lib/ld.so.1 and disable shared libraries on2696 # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -3112,7 +2721,7 @@
3112 ;;2721 ;;
31132722
3114newsos6)2723newsos6)
3115 version_type=linux2724 version_type=linux # correct to gnu/linux during the next big refactor
3116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3117 shlibpath_var=LD_LIBRARY_PATH2726 shlibpath_var=LD_LIBRARY_PATH
3118 shlibpath_overrides_runpath=yes2727 shlibpath_overrides_runpath=yes
@@ -3181,7 +2790,7 @@
3181 ;;2790 ;;
31822791
3183solaris*)2792solaris*)
3184 version_type=linux2793 version_type=linux # correct to gnu/linux during the next big refactor
3185 need_lib_prefix=no2794 need_lib_prefix=no
3186 need_version=no2795 need_version=no
3187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -3206,7 +2815,7 @@
3206 ;;2815 ;;
32072816
3208sysv4 | sysv4.3*)2817sysv4 | sysv4.3*)
3209 version_type=linux2818 version_type=linux # correct to gnu/linux during the next big refactor
3210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3211 soname_spec='${libname}${release}${shared_ext}$major'2820 soname_spec='${libname}${release}${shared_ext}$major'
3212 shlibpath_var=LD_LIBRARY_PATH2821 shlibpath_var=LD_LIBRARY_PATH
@@ -3230,7 +2839,7 @@
32302839
3231sysv4*MP*)2840sysv4*MP*)
3232 if test -d /usr/nec ;then2841 if test -d /usr/nec ;then
3233 version_type=linux2842 version_type=linux # correct to gnu/linux during the next big refactor
3234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'2843 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3235 soname_spec='$libname${shared_ext}.$major'2844 soname_spec='$libname${shared_ext}.$major'
3236 shlibpath_var=LD_LIBRARY_PATH2845 shlibpath_var=LD_LIBRARY_PATH
@@ -3261,7 +2870,7 @@
32612870
3262tpf*)2871tpf*)
3263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.2872 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3264 version_type=linux2873 version_type=linux # correct to gnu/linux during the next big refactor
3265 need_lib_prefix=no2874 need_lib_prefix=no
3266 need_version=no2875 need_version=no
3267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -3271,7 +2880,7 @@
3271 ;;2880 ;;
32722881
3273uts4*)2882uts4*)
3274 version_type=linux2883 version_type=linux # correct to gnu/linux during the next big refactor
3275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'2884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3276 soname_spec='${libname}${release}${shared_ext}$major'2885 soname_spec='${libname}${release}${shared_ext}$major'
3277 shlibpath_var=LD_LIBRARY_PATH2886 shlibpath_var=LD_LIBRARY_PATH
@@ -3313,6 +2922,8 @@
3313 The last name is the one that the linker finds with -lNAME]])2922 The last name is the one that the linker finds with -lNAME]])
3314_LT_DECL([], [soname_spec], [1],2923_LT_DECL([], [soname_spec], [1],
3315 [[The coded name of the library, if different from the real name]])2924 [[The coded name of the library, if different from the real name]])
2925_LT_DECL([], [install_override_mode], [1],
2926 [Permission mode override for installation of shared libraries])
3316_LT_DECL([], [postinstall_cmds], [2],2927_LT_DECL([], [postinstall_cmds], [2],
3317 [Command to use after installation of a shared archive])2928 [Command to use after installation of a shared archive])
3318_LT_DECL([], [postuninstall_cmds], [2],2929_LT_DECL([], [postuninstall_cmds], [2],
@@ -3425,6 +3036,7 @@
3425AC_REQUIRE([AC_CANONICAL_BUILD])dnl3036AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3426m4_require([_LT_DECL_SED])dnl3037m4_require([_LT_DECL_SED])dnl
3427m4_require([_LT_DECL_EGREP])dnl3038m4_require([_LT_DECL_EGREP])dnl
3039m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
34283040
3429AC_ARG_WITH([gnu-ld],3041AC_ARG_WITH([gnu-ld],
3430 [AS_HELP_STRING([--with-gnu-ld],3042 [AS_HELP_STRING([--with-gnu-ld],
@@ -3546,6 +3158,11 @@
3546esac3158esac
3547reload_cmds='$LD$reload_flag -o $output$reload_objs'3159reload_cmds='$LD$reload_flag -o $output$reload_objs'
3548case $host_os in3160case $host_os in
3161 cygwin* | mingw* | pw32* | cegcc*)
3162 if test "$GCC" != yes; then
3163 reload_cmds=false
3164 fi
3165 ;;
3549 darwin*)3166 darwin*)
3550 if test "$GCC" = yes; then3167 if test "$GCC" = yes; then
3551 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'3168 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
@@ -3554,8 +3171,8 @@
3554 fi3171 fi
3555 ;;3172 ;;
3556esac3173esac
3557_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl3174_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3558_LT_DECL([], [reload_cmds], [2])dnl3175_LT_TAGDECL([], [reload_cmds], [2])dnl
3559])# _LT_CMD_RELOAD3176])# _LT_CMD_RELOAD
35603177
35613178
@@ -3607,16 +3224,18 @@
3607 # Base MSYS/MinGW do not provide the 'file' command needed by3224 # Base MSYS/MinGW do not provide the 'file' command needed by
3608 # func_win32_libid shell function, so use a weaker test based on 'objdump',3225 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3609 # unless we find 'file', for example because we are cross-compiling.3226 # unless we find 'file', for example because we are cross-compiling.
3610 if ( file / ) >/dev/null 2>&1; then3227 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3228 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'3229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3612 lt_cv_file_magic_cmd='func_win32_libid'3230 lt_cv_file_magic_cmd='func_win32_libid'
3613 else3231 else
3614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'3232 # Keep this pattern in sync with the one in func_win32_libid.
3233 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3615 lt_cv_file_magic_cmd='$OBJDUMP -f'3234 lt_cv_file_magic_cmd='$OBJDUMP -f'
3616 fi3235 fi
3617 ;;3236 ;;
36183237
3619cegcc)3238cegcc*)
3620 # use the weaker test based on 'objdump'. See mingw*.3239 # use the weaker test based on 'objdump'. See mingw*.
3621 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'3240 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3622 lt_cv_file_magic_cmd='$OBJDUMP -f'3241 lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -3646,6 +3265,10 @@
3646 lt_cv_deplibs_check_method=pass_all3265 lt_cv_deplibs_check_method=pass_all
3647 ;;3266 ;;
36483267
3268haiku*)
3269 lt_cv_deplibs_check_method=pass_all
3270 ;;
3271
3649hpux10.20* | hpux11*)3272hpux10.20* | hpux11*)
3650 lt_cv_file_magic_cmd=/usr/bin/file3273 lt_cv_file_magic_cmd=/usr/bin/file
3651 case $host_cpu in3274 case $host_cpu in
@@ -3654,11 +3277,11 @@
3654 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so3277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3655 ;;3278 ;;
3656 hppa*64*)3279 hppa*64*)
3657 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']3280 [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]']
3658 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl3281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3659 ;;3282 ;;
3660 *)3283 *)
3661 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'3284 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3662 lt_cv_file_magic_test_file=/usr/lib/libc.sl3285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3663 ;;3286 ;;
3664 esac3287 esac
@@ -3679,8 +3302,8 @@
3679 lt_cv_deplibs_check_method=pass_all3302 lt_cv_deplibs_check_method=pass_all
3680 ;;3303 ;;
36813304
3682# This must be Linux ELF.3305# This must be glibc/ELF.
3683linux* | k*bsd*-gnu)3306linux* | k*bsd*-gnu | kopensolaris*-gnu)
3684 lt_cv_deplibs_check_method=pass_all3307 lt_cv_deplibs_check_method=pass_all
3685 ;;3308 ;;
36863309
@@ -3758,6 +3381,21 @@
3758 ;;3381 ;;
3759esac3382esac
3760])3383])
3384
3385file_magic_glob=
3386want_nocaseglob=no
3387if test "$build" = "$host"; then
3388 case $host_os in
3389 mingw* | pw32*)
3390 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3391 want_nocaseglob=yes
3392 else
3393 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3394 fi
3395 ;;
3396 esac
3397fi
3398
3761file_magic_cmd=$lt_cv_file_magic_cmd3399file_magic_cmd=$lt_cv_file_magic_cmd
3762deplibs_check_method=$lt_cv_deplibs_check_method3400deplibs_check_method=$lt_cv_deplibs_check_method
3763test -z "$deplibs_check_method" && deplibs_check_method=unknown3401test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3765,7 +3403,11 @@
3765_LT_DECL([], [deplibs_check_method], [1],3403_LT_DECL([], [deplibs_check_method], [1],
3766 [Method to check whether dependent libraries are shared objects])3404 [Method to check whether dependent libraries are shared objects])
3767_LT_DECL([], [file_magic_cmd], [1],3405_LT_DECL([], [file_magic_cmd], [1],
3768 [Command to use when deplibs_check_method == "file_magic"])3406 [Command to use when deplibs_check_method = "file_magic"])
3407_LT_DECL([], [file_magic_glob], [1],
3408 [How to find potential files when deplibs_check_method = "file_magic"])
3409_LT_DECL([], [want_nocaseglob], [1],
3410 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3769])# _LT_CHECK_MAGIC_METHOD3411])# _LT_CHECK_MAGIC_METHOD
37703412
37713413
@@ -3822,7 +3464,19 @@
3822 NM="$lt_cv_path_NM"3464 NM="$lt_cv_path_NM"
3823else3465else
3824 # Didn't find any BSD compatible name lister, look for dumpbin.3466 # Didn't find any BSD compatible name lister, look for dumpbin.
3825 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)3467 if test -n "$DUMPBIN"; then :
3468 # Let the user override the test.
3469 else
3470 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3471 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3472 *COFF*)
3473 DUMPBIN="$DUMPBIN -symbols"
3474 ;;
3475 *)
3476 DUMPBIN=:
3477 ;;
3478 esac
3479 fi
3826 AC_SUBST([DUMPBIN])3480 AC_SUBST([DUMPBIN])
3827 if test "$DUMPBIN" != ":"; then3481 if test "$DUMPBIN" != ":"; then
3828 NM="$DUMPBIN"3482 NM="$DUMPBIN"
@@ -3835,13 +3489,13 @@
3835AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],3489AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3836 [lt_cv_nm_interface="BSD nm"3490 [lt_cv_nm_interface="BSD nm"
3837 echo "int some_variable = 0;" > conftest.$ac_ext3491 echo "int some_variable = 0;" > conftest.$ac_ext
3838 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)3492 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3839 (eval "$ac_compile" 2>conftest.err)3493 (eval "$ac_compile" 2>conftest.err)
3840 cat conftest.err >&AS_MESSAGE_LOG_FD3494 cat conftest.err >&AS_MESSAGE_LOG_FD
3841 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)3495 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)3496 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3843 cat conftest.err >&AS_MESSAGE_LOG_FD3497 cat conftest.err >&AS_MESSAGE_LOG_FD
3844 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)3498 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3845 cat conftest.out >&AS_MESSAGE_LOG_FD3499 cat conftest.out >&AS_MESSAGE_LOG_FD
3846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then3500 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3847 lt_cv_nm_interface="MS dumpbin"3501 lt_cv_nm_interface="MS dumpbin"
@@ -3856,6 +3510,67 @@
3856dnl AC_DEFUN([AM_PROG_NM], [])3510dnl AC_DEFUN([AM_PROG_NM], [])
3857dnl AC_DEFUN([AC_PROG_NM], [])3511dnl AC_DEFUN([AC_PROG_NM], [])
38583512
3513# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3514# --------------------------------
3515# how to determine the name of the shared library
3516# associated with a specific link library.
3517# -- PORTME fill in with the dynamic library characteristics
3518m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3519[m4_require([_LT_DECL_EGREP])
3520m4_require([_LT_DECL_OBJDUMP])
3521m4_require([_LT_DECL_DLLTOOL])
3522AC_CACHE_CHECK([how to associate runtime and link libraries],
3523lt_cv_sharedlib_from_linklib_cmd,
3524[lt_cv_sharedlib_from_linklib_cmd='unknown'
3525
3526case $host_os in
3527cygwin* | mingw* | pw32* | cegcc*)
3528 # two different shell functions defined in ltmain.sh
3529 # decide which to use based on capabilities of $DLLTOOL
3530 case `$DLLTOOL --help 2>&1` in
3531 *--identify-strict*)
3532 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3533 ;;
3534 *)
3535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3536 ;;
3537 esac
3538 ;;
3539*)
3540 # fallback: assume linklib IS sharedlib
3541 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3542 ;;
3543esac
3544])
3545sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3546test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3547
3548_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3549 [Command to associate shared and link libraries])
3550])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3551
3552
3553# _LT_PATH_MANIFEST_TOOL
3554# ----------------------
3555# locate the manifest tool
3556m4_defun([_LT_PATH_MANIFEST_TOOL],
3557[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3558test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3559AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3560 [lt_cv_path_mainfest_tool=no
3561 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3562 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3563 cat conftest.err >&AS_MESSAGE_LOG_FD
3564 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3565 lt_cv_path_mainfest_tool=yes
3566 fi
3567 rm -f conftest*])
3568if test "x$lt_cv_path_mainfest_tool" != xyes; then
3569 MANIFEST_TOOL=:
3570fi
3571_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3572])# _LT_PATH_MANIFEST_TOOL
3573
38593574
3860# LT_LIB_M3575# LT_LIB_M
3861# --------3576# --------
@@ -3864,7 +3579,7 @@
3864[AC_REQUIRE([AC_CANONICAL_HOST])dnl3579[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3865LIBM=3580LIBM=
3866case $host in3581case $host in
3867*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)3582*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3868 # These system don't have libm, or don't need it3583 # These system don't have libm, or don't need it
3869 ;;3584 ;;
3870*-ncr-sysv4.3*)3585*-ncr-sysv4.3*)
@@ -3892,7 +3607,12 @@
3892_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=3607_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
38933608
3894if test "$GCC" = yes; then3609if test "$GCC" = yes; then
3895 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'3610 case $cc_basename in
3611 nvcc*)
3612 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3613 *)
3614 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3615 esac
38963616
3897 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],3617 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3898 lt_cv_prog_compiler_rtti_exceptions,3618 lt_cv_prog_compiler_rtti_exceptions,
@@ -3909,6 +3629,7 @@
3909m4_defun([_LT_CMD_GLOBAL_SYMBOLS],3629m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3910[AC_REQUIRE([AC_CANONICAL_HOST])dnl3630[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3911AC_REQUIRE([AC_PROG_CC])dnl3631AC_REQUIRE([AC_PROG_CC])dnl
3632AC_REQUIRE([AC_PROG_AWK])dnl
3912AC_REQUIRE([LT_PATH_NM])dnl3633AC_REQUIRE([LT_PATH_NM])dnl
3913AC_REQUIRE([LT_PATH_LD])dnl3634AC_REQUIRE([LT_PATH_LD])dnl
3914m4_require([_LT_DECL_SED])dnl3635m4_require([_LT_DECL_SED])dnl
@@ -3976,8 +3697,8 @@
3976lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"3697lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
39773698
3978# Transform an extracted symbol line into symbol name and symbol address3699# Transform an extracted symbol line into symbol name and symbol address
3979lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"3700lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3980lt_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'"3701lt_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'"
39813702
3982# Handle CRLF in mingw tool chain3703# Handle CRLF in mingw tool chain
3983opt_cr=3704opt_cr=
@@ -4001,6 +3722,7 @@
4001 # which start with @ or ?.3722 # which start with @ or ?.
4002 lt_cv_sys_global_symbol_pipe="$AWK ['"\3723 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4003" {last_section=section; section=\$ 3};"\3724" {last_section=section; section=\$ 3};"\
3725" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4004" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\3726" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4005" \$ 0!~/External *\|/{next};"\3727" \$ 0!~/External *\|/{next};"\
4006" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\3728" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
@@ -4013,6 +3735,7 @@
4013 else3735 else
4014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"3736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4015 fi3737 fi
3738 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
40163739
4017 # Check to see that the pipe works correctly.3740 # Check to see that the pipe works correctly.
4018 pipe_works=no3741 pipe_works=no
@@ -4034,7 +3757,7 @@
4034 if AC_TRY_EVAL(ac_compile); then3757 if AC_TRY_EVAL(ac_compile); then
4035 # Now try to grab the symbols.3758 # Now try to grab the symbols.
4036 nlist=conftest.nm3759 nlist=conftest.nm
4037 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then3760 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4038 # Try sorting and uniquifying the output.3761 # Try sorting and uniquifying the output.
4039 if sort "$nlist" | uniq > "$nlist"T; then3762 if sort "$nlist" | uniq > "$nlist"T; then
4040 mv -f "$nlist"T "$nlist"3763 mv -f "$nlist"T "$nlist"
@@ -4046,6 +3769,18 @@
4046 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then3769 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4047 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then3770 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4048 cat <<_LT_EOF > conftest.$ac_ext3771 cat <<_LT_EOF > conftest.$ac_ext
3772/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3773#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3774/* DATA imports from DLLs on WIN32 con't be const, because runtime
3775 relocations are performed -- see ld's documentation on pseudo-relocs. */
3776# define LT@&t@_DLSYM_CONST
3777#elif defined(__osf__)
3778/* This system does not cope well with relocations in const data. */
3779# define LT@&t@_DLSYM_CONST
3780#else
3781# define LT@&t@_DLSYM_CONST const
3782#endif
3783
4049#ifdef __cplusplus3784#ifdef __cplusplus
4050extern "C" {3785extern "C" {
4051#endif3786#endif
@@ -4057,7 +3792,7 @@
4057 cat <<_LT_EOF >> conftest.$ac_ext3792 cat <<_LT_EOF >> conftest.$ac_ext
40583793
4059/* The mapping between symbol names and symbols. */3794/* The mapping between symbol names and symbols. */
4060const struct {3795LT@&t@_DLSYM_CONST struct {
4061 const char *name;3796 const char *name;
4062 void *address;3797 void *address;
4063}3798}
@@ -4083,15 +3818,15 @@
4083_LT_EOF3818_LT_EOF
4084 # Now try linking the two files.3819 # Now try linking the two files.
4085 mv conftest.$ac_objext conftstm.$ac_objext3820 mv conftest.$ac_objext conftstm.$ac_objext
4086 lt_save_LIBS="$LIBS"3821 lt_globsym_save_LIBS=$LIBS
4087 lt_save_CFLAGS="$CFLAGS"3822 lt_globsym_save_CFLAGS=$CFLAGS
4088 LIBS="conftstm.$ac_objext"3823 LIBS="conftstm.$ac_objext"
4089 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"3824 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4090 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then3825 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4091 pipe_works=yes3826 pipe_works=yes
4092 fi3827 fi
4093 LIBS="$lt_save_LIBS"3828 LIBS=$lt_globsym_save_LIBS
4094 CFLAGS="$lt_save_CFLAGS"3829 CFLAGS=$lt_globsym_save_CFLAGS
4095 else3830 else
4096 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD3831 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4097 fi3832 fi
@@ -4124,6 +3859,13 @@
4124 AC_MSG_RESULT(ok)3859 AC_MSG_RESULT(ok)
4125fi3860fi
41263861
3862# Response file support.
3863if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3864 nm_file_list_spec='@'
3865elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3866 nm_file_list_spec='@'
3867fi
3868
4127_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],3869_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4128 [Take the output of nm and produce a listing of raw symbols and C names])3870 [Take the output of nm and produce a listing of raw symbols and C names])
4129_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],3871_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -4134,6 +3876,8 @@
4134_LT_DECL([global_symbol_to_c_name_address_lib_prefix],3876_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4135 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],3877 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4136 [Transform the output of nm in a C name address pair when lib prefix is needed])3878 [Transform the output of nm in a C name address pair when lib prefix is needed])
3879_LT_DECL([], [nm_file_list_spec], [1],
3880 [Specify filename containing input files for $NM])
4137]) # _LT_CMD_GLOBAL_SYMBOLS3881]) # _LT_CMD_GLOBAL_SYMBOLS
41383882
41393883
@@ -4145,7 +3889,6 @@
4145_LT_TAGVAR(lt_prog_compiler_pic, $1)=3889_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4146_LT_TAGVAR(lt_prog_compiler_static, $1)=3890_LT_TAGVAR(lt_prog_compiler_static, $1)=
41473891
4148AC_MSG_CHECKING([for $compiler option to produce PIC])
4149m4_if([$1], [CXX], [3892m4_if([$1], [CXX], [
4150 # C++ specific cases for pic, static, wl, etc.3893 # C++ specific cases for pic, static, wl, etc.
4151 if test "$GXX" = yes; then3894 if test "$GXX" = yes; then
@@ -4196,6 +3939,11 @@
4196 # DJGPP does not support shared libraries at all3939 # DJGPP does not support shared libraries at all
4197 _LT_TAGVAR(lt_prog_compiler_pic, $1)=3940 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4198 ;;3941 ;;
3942 haiku*)
3943 # PIC is the default for Haiku.
3944 # The "-static" flag exists, but is broken.
3945 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3946 ;;
4199 interix[[3-9]]*)3947 interix[[3-9]]*)
4200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.3948 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4201 # Instead, we relocate shared libraries at runtime.3949 # Instead, we relocate shared libraries at runtime.
@@ -4245,6 +3993,12 @@
4245 ;;3993 ;;
4246 esac3994 esac
4247 ;;3995 ;;
3996 mingw* | cygwin* | os2* | pw32* | cegcc*)
3997 # This hack is so that the source file can tell whether it is being
3998 # built for inclusion in a dll (and should export symbols for example).
3999 m4_if([$1], [GCJ], [],
4000 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4001 ;;
4248 dgux*)4002 dgux*)
4249 case $cc_basename in4003 case $cc_basename in
4250 ec++*)4004 ec++*)
@@ -4301,7 +4055,7 @@
4301 ;;4055 ;;
4302 esac4056 esac
4303 ;;4057 ;;
4304 linux* | k*bsd*-gnu)4058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4305 case $cc_basename in4059 case $cc_basename in
4306 KCC*)4060 KCC*)
4307 # KAI C++ Compiler4061 # KAI C++ Compiler
@@ -4334,8 +4088,8 @@
4334 _LT_TAGVAR(lt_prog_compiler_pic, $1)=4088 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4335 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4336 ;;4090 ;;
4337 xlc* | xlC*)4091 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4338 # IBM XL 8.0 on PPC4092 # IBM XL 8.0, 9.0 on PPC and BlueGene
4339 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4093 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'4094 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'4095 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -4397,7 +4151,7 @@
4397 ;;4151 ;;
4398 solaris*)4152 solaris*)
4399 case $cc_basename in4153 case $cc_basename in
4400 CC*)4154 CC* | sunCC*)
4401 # Sun C++ 4.2, 5.x and Centerline C++4155 # Sun C++ 4.2, 5.x and Centerline C++
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4156 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4157 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -4501,6 +4255,12 @@
4501 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'4255 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4502 ;;4256 ;;
45034257
4258 haiku*)
4259 # PIC is the default for Haiku.
4260 # The "-static" flag exists, but is broken.
4261 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4262 ;;
4263
4504 hpux*)4264 hpux*)
4505 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit4265 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4506 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag4266 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
@@ -4543,6 +4303,15 @@
4543 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4303 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4544 ;;4304 ;;
4545 esac4305 esac
4306
4307 case $cc_basename in
4308 nvcc*) # Cuda Compiler Driver 2.2
4309 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4310 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4311 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4312 fi
4313 ;;
4314 esac
4546 else4315 else
4547 # PORTME Check for flag to pass linker flags through the system compiler.4316 # PORTME Check for flag to pass linker flags through the system compiler.
4548 case $host_os in4317 case $host_os in
@@ -4585,7 +4354,7 @@
4585 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4586 ;;4355 ;;
45874356
4588 linux* | k*bsd*-gnu)4357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4589 case $cc_basename in4358 case $cc_basename in
4590 # old Intel for x86_64 which still supported -KPIC.4359 # old Intel for x86_64 which still supported -KPIC.
4591 ecc*)4360 ecc*)
@@ -4606,7 +4375,13 @@
4606 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'4375 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4607 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'4376 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4608 ;;4377 ;;
4609 pgcc* | pgf77* | pgf90* | pgf95*)4378 nagfor*)
4379 # NAG Fortran compiler
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4383 ;;
4384 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4610 # Portland Group compilers (*not* the Pentium gcc compiler,4385 # Portland Group compilers (*not* the Pentium gcc compiler,
4611 # which looks to be a dead project)4386 # which looks to be a dead project)
4612 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4618,25 +4393,40 @@
4618 # All Alpha code is PIC.4393 # All Alpha code is PIC.
4619 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4620 ;;4395 ;;
4621 xl*)4396 xl* | bgxl* | bgf* | mpixl*)
4622 # IBM XL C 8.0/Fortran 10.1 on PPC4397 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4623 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4625 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4626 ;;4401 ;;
4627 *)4402 *)
4628 case `$CC -V 2>&1 | sed 5q` in4403 case `$CC -V 2>&1 | sed 5q` in
4404 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4405 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4409 ;;
4410 *Sun\ F* | *Sun*Fortran*)
4411 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4412 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4414 ;;
4629 *Sun\ C*)4415 *Sun\ C*)
4630 # Sun C 5.94416 # Sun C 5.9
4631 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4632 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4633 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4634 ;;4420 ;;
4635 *Sun\ F*)4421 *Intel*\ [[CF]]*Compiler*)
4636 # Sun Fortran 8.3 passes all unrecognized flags to the linker4422 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4637 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4424 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4425 ;;
4426 *Portland\ Group*)
4427 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4639 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4640 ;;4430 ;;
4641 esac4431 esac
4642 ;;4432 ;;
@@ -4668,7 +4458,7 @@
4668 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4458 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4669 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4459 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4670 case $cc_basename in4460 case $cc_basename in
4671 f77* | f90* | f95*)4461 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4672 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;4462 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4673 *)4463 *)
4674 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;4464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
@@ -4725,9 +4515,11 @@
4725 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4726 ;;4516 ;;
4727esac4517esac
4728AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])4518
4729_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],4519AC_CACHE_CHECK([for $compiler option to produce PIC],
4730 [How to pass a linker flag through the compiler])4520 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4521 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4522_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
47314523
4732#4524#
4733# Check to make sure the PIC flag actually works.4525# Check to make sure the PIC flag actually works.
@@ -4746,6 +4538,8 @@
4746_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],4538_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4747 [Additional compiler flags for building library objects])4539 [Additional compiler flags for building library objects])
47484540
4541_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4542 [How to pass a linker flag through the compiler])
4749#4543#
4750# Check to make sure the static flag actually works.4544# Check to make sure the static flag actually works.
4751#4545#
@@ -4766,6 +4560,7 @@
4766m4_defun([_LT_LINKER_SHLIBS],4560m4_defun([_LT_LINKER_SHLIBS],
4767[AC_REQUIRE([LT_PATH_LD])dnl4561[AC_REQUIRE([LT_PATH_LD])dnl
4768AC_REQUIRE([LT_PATH_NM])dnl4562AC_REQUIRE([LT_PATH_NM])dnl
4563m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4769m4_require([_LT_FILEUTILS_DEFAULTS])dnl4564m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4770m4_require([_LT_DECL_EGREP])dnl4565m4_require([_LT_DECL_EGREP])dnl
4771m4_require([_LT_DECL_SED])dnl4566m4_require([_LT_DECL_SED])dnl
@@ -4774,27 +4569,37 @@
4774AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])4569AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4775m4_if([$1], [CXX], [4570m4_if([$1], [CXX], [
4776 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4571 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4572 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4777 case $host_os in4573 case $host_os in
4778 aix[[4-9]]*)4574 aix[[4-9]]*)
4779 # If we're using GNU nm, then we don't want the "-C" option.4575 # If we're using GNU nm, then we don't want the "-C" option.
4780 # -C means demangle to AIX nm, but means don't demangle with GNU nm4576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4577 # Also, AIX nm treats weak defined symbols like other global defined
4578 # symbols, whereas GNU nm marks them as "W".
4781 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then4579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4782 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4580 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4783 else4581 else
4784 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4582 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4785 fi4583 fi
4786 ;;4584 ;;
4787 pw32*)4585 pw32*)
4788 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"4586 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4789 ;;4587 ;;
4790 cygwin* | mingw* | cegcc*)4588 cygwin* | mingw* | cegcc*)
4791 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'4589 case $cc_basename in
4792 ;;4590 cl*)
4591 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4592 ;;
4593 *)
4594 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4595 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4596 ;;
4597 esac
4598 ;;
4793 *)4599 *)
4794 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4600 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4795 ;;4601 ;;
4796 esac4602 esac
4797 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4798], [4603], [
4799 runpath_var=4604 runpath_var=
4800 _LT_TAGVAR(allow_undefined_flag, $1)=4605 _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -4809,7 +4614,6 @@
4809 _LT_TAGVAR(hardcode_direct, $1)=no4614 _LT_TAGVAR(hardcode_direct, $1)=no
4810 _LT_TAGVAR(hardcode_direct_absolute, $1)=no4615 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4811 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=4616 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4812 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4813 _LT_TAGVAR(hardcode_libdir_separator, $1)=4617 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4814 _LT_TAGVAR(hardcode_minus_L, $1)=no4618 _LT_TAGVAR(hardcode_minus_L, $1)=no
4815 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported4619 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -4857,7 +4661,33 @@
4857 esac4661 esac
48584662
4859 _LT_TAGVAR(ld_shlibs, $1)=yes4663 _LT_TAGVAR(ld_shlibs, $1)=yes
4664
4665 # On some targets, GNU ld is compatible enough with the native linker
4666 # that we're better off using the native interface for both.
4667 lt_use_gnu_ld_interface=no
4860 if test "$with_gnu_ld" = yes; then4668 if test "$with_gnu_ld" = yes; then
4669 case $host_os in
4670 aix*)
4671 # The AIX port of GNU ld has always aspired to compatibility
4672 # with the native linker. However, as the warning in the GNU ld
4673 # block says, versions before 2.19.5* couldn't really create working
4674 # shared libraries, regardless of the interface used.
4675 case `$LD -v 2>&1` in
4676 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4677 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4678 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4679 *)
4680 lt_use_gnu_ld_interface=yes
4681 ;;
4682 esac
4683 ;;
4684 *)
4685 lt_use_gnu_ld_interface=yes
4686 ;;
4687 esac
4688 fi
4689
4690 if test "$lt_use_gnu_ld_interface" = yes; then
4861 # If archive_cmds runs LD, not CC, wlarc should be empty4691 # If archive_cmds runs LD, not CC, wlarc should be empty
4862 wlarc='${wl}'4692 wlarc='${wl}'
48634693
@@ -4875,6 +4705,7 @@
4875 fi4705 fi
4876 supports_anon_versioning=no4706 supports_anon_versioning=no
4877 case `$LD -v 2>&1` in4707 case `$LD -v 2>&1` in
4708 *GNU\ gold*) supports_anon_versioning=yes ;;
4878 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.114709 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...4710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...4711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
@@ -4890,11 +4721,12 @@
4890 _LT_TAGVAR(ld_shlibs, $1)=no4721 _LT_TAGVAR(ld_shlibs, $1)=no
4891 cat <<_LT_EOF 1>&24722 cat <<_LT_EOF 1>&2
48924723
4893*** Warning: the GNU linker, at least up to release 2.9.1, is reported4724*** Warning: the GNU linker, at least up to release 2.19, is reported
4894*** to be unable to reliably create shared libraries on AIX.4725*** to be unable to reliably create shared libraries on AIX.
4895*** Therefore, libtool is disabling shared libraries support. If you4726*** Therefore, libtool is disabling shared libraries support. If you
4896*** really care for shared libraries, you may want to modify your PATH4727*** really care for shared libraries, you may want to install binutils
4897*** so that a non-GNU linker is found, and then restart.4728*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4729*** You will then need to restart the configuration process.
48984730
4899_LT_EOF4731_LT_EOF
4900 fi4732 fi
@@ -4930,10 +4762,12 @@
4930 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,4762 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4931 # as there is no search path for DLLs.4763 # as there is no search path for DLLs.
4932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'4764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4765 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4933 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported4766 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4934 _LT_TAGVAR(always_export_symbols, $1)=no4767 _LT_TAGVAR(always_export_symbols, $1)=no
4935 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes4768 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4936 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'4769 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4770 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
49374771
4938 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then4772 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4939 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'4773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
@@ -4951,6 +4785,11 @@
4951 fi4785 fi
4952 ;;4786 ;;
49534787
4788 haiku*)
4789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4790 _LT_TAGVAR(link_all_deplibs, $1)=yes
4791 ;;
4792
4954 interix[[3-9]]*)4793 interix[[3-9]]*)
4955 _LT_TAGVAR(hardcode_direct, $1)=no4794 _LT_TAGVAR(hardcode_direct, $1)=no
4956 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no4795 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4966,7 +4805,7 @@
4966 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'4805 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4967 ;;4806 ;;
49684807
4969 gnu* | linux* | tpf* | k*bsd*-gnu)4808 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4970 tmp_diet=no4809 tmp_diet=no
4971 if test "$host_os" = linux-dietlibc; then4810 if test "$host_os" = linux-dietlibc; then
4972 case $cc_basename in4811 case $cc_basename in
@@ -4976,15 +4815,16 @@
4976 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \4815 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4977 && test "$tmp_diet" = no4816 && test "$tmp_diet" = no
4978 then4817 then
4979 tmp_addflag=4818 tmp_addflag=' $pic_flag'
4980 tmp_sharedflag='-shared'4819 tmp_sharedflag='-shared'
4981 case $cc_basename,$host_cpu in4820 case $cc_basename,$host_cpu in
4982 pgcc*) # Portland Group C compiler4821 pgcc*) # Portland Group C compiler
4983 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'4822 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4984 tmp_addflag=' $pic_flag'4823 tmp_addflag=' $pic_flag'
4985 ;;4824 ;;
4986 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers4825 pgf77* | pgf90* | pgf95* | pgfortran*)
4987 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'4826 # Portland Group f77 and f90 compilers
4827 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4988 tmp_addflag=' $pic_flag -Mnomain' ;;4828 tmp_addflag=' $pic_flag -Mnomain' ;;
4989 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia644829 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4990 tmp_addflag=' -i_dynamic' ;;4830 tmp_addflag=' -i_dynamic' ;;
@@ -4995,13 +4835,17 @@
4995 lf95*) # Lahey Fortran 8.14835 lf95*) # Lahey Fortran 8.1
4996 _LT_TAGVAR(whole_archive_flag_spec, $1)=4836 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4997 tmp_sharedflag='--shared' ;;4837 tmp_sharedflag='--shared' ;;
4998 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)4838 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4999 tmp_sharedflag='-qmkshrobj'4839 tmp_sharedflag='-qmkshrobj'
5000 tmp_addflag= ;;4840 tmp_addflag= ;;
4841 nvcc*) # Cuda Compiler Driver 2.2
4842 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4843 _LT_TAGVAR(compiler_needs_object, $1)=yes
4844 ;;
5001 esac4845 esac
5002 case `$CC -V 2>&1 | sed 5q` in4846 case `$CC -V 2>&1 | sed 5q` in
5003 *Sun\ C*) # Sun C 5.94847 *Sun\ C*) # Sun C 5.9
5004 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'4848 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5005 _LT_TAGVAR(compiler_needs_object, $1)=yes4849 _LT_TAGVAR(compiler_needs_object, $1)=yes
5006 tmp_sharedflag='-G' ;;4850 tmp_sharedflag='-G' ;;
5007 *Sun\ F*) # Sun Fortran 8.34851 *Sun\ F*) # Sun Fortran 8.3
@@ -5017,17 +4861,16 @@
5017 fi4861 fi
50184862
5019 case $cc_basename in4863 case $cc_basename in
5020 xlf*)4864 xlf* | bgf* | bgxlf* | mpixlf*)
5021 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself4865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5022 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'4866 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=4867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5024 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'4868 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5025 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5026 if test "x$supports_anon_versioning" = xyes; then4869 if test "x$supports_anon_versioning" = xyes; then
5027 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~4870 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~4871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5029 echo "local: *; };" >> $output_objdir/$libname.ver~4872 echo "local: *; };" >> $output_objdir/$libname.ver~
5030 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'4873 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5031 fi4874 fi
5032 ;;4875 ;;
5033 esac4876 esac
@@ -5041,8 +4884,8 @@
5041 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'4884 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5042 wlarc=4885 wlarc=
5043 else4886 else
5044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4887 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5045 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4888 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5046 fi4889 fi
5047 ;;4890 ;;
50484891
@@ -5060,8 +4903,8 @@
50604903
5061_LT_EOF4904_LT_EOF
5062 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then4905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5063 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4906 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5064 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4907 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5065 else4908 else
5066 _LT_TAGVAR(ld_shlibs, $1)=no4909 _LT_TAGVAR(ld_shlibs, $1)=no
5067 fi4910 fi
@@ -5107,8 +4950,8 @@
51074950
5108 *)4951 *)
5109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then4952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4953 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5111 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4954 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5112 else4955 else
5113 _LT_TAGVAR(ld_shlibs, $1)=no4956 _LT_TAGVAR(ld_shlibs, $1)=no
5114 fi4957 fi
@@ -5148,8 +4991,10 @@
5148 else4991 else
5149 # If we're using GNU nm, then we don't want the "-C" option.4992 # If we're using GNU nm, then we don't want the "-C" option.
5150 # -C means demangle to AIX nm, but means don't demangle with GNU nm4993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4994 # Also, AIX nm treats weak defined symbols like other global
4995 # defined symbols, whereas GNU nm marks them as "W".
5151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then4996 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5152 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4997 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5153 else4998 else
5154 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'4999 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5155 fi5000 fi
@@ -5236,9 +5081,9 @@
5236 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'5081 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5237 # Determine the default libpath from the value encoded in an5082 # Determine the default libpath from the value encoded in an
5238 # empty executable.5083 # empty executable.
5239 _LT_SYS_MODULE_PATH_AIX5084 _LT_SYS_MODULE_PATH_AIX([$1])
5240 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5241 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5086 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5242 else5087 else
5243 if test "$host_cpu" = ia64; then5088 if test "$host_cpu" = ia64; then
5244 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -5247,14 +5092,19 @@
5247 else5092 else
5248 # Determine the default libpath from the value encoded in an5093 # Determine the default libpath from the value encoded in an
5249 # empty executable.5094 # empty executable.
5250 _LT_SYS_MODULE_PATH_AIX5095 _LT_SYS_MODULE_PATH_AIX([$1])
5251 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5096 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5252 # Warning - without using the other run time loading flags,5097 # Warning - without using the other run time loading flags,
5253 # -berok will link without error, but may produce a broken library.5098 # -berok will link without error, but may produce a broken library.
5254 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'5099 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5255 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'5100 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5256 # Exported symbols can be pulled into shared objects from archives5101 if test "$with_gnu_ld" = yes; then
5257 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'5102 # We only use this code for GNU lds that support --whole-archive.
5103 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5104 else
5105 # Exported symbols can be pulled into shared objects from archives
5106 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5107 fi
5258 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes5108 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5259 # This is similar to how AIX traditionally builds its shared libraries.5109 # This is similar to how AIX traditionally builds its shared libraries.
5260 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'5110 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
@@ -5286,20 +5136,64 @@
5286 # Microsoft Visual C++.5136 # Microsoft Visual C++.
5287 # hardcode_libdir_flag_spec is actually meaningless, as there is5137 # hardcode_libdir_flag_spec is actually meaningless, as there is
5288 # no search path for DLLs.5138 # no search path for DLLs.
5289 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '5139 case $cc_basename in
5290 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported5140 cl*)
5291 # Tell ltmain to make .lib files, not .a files.5141 # Native MSVC
5292 libext=lib5142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5293 # Tell ltmain to make .dll files, not .so files.5143 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5294 shrext_cmds=".dll"5144 _LT_TAGVAR(always_export_symbols, $1)=yes
5295 # FIXME: Setting linknames here is a bad hack.5145 _LT_TAGVAR(file_list_spec, $1)='@'
5296 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='5146 # Tell ltmain to make .lib files, not .a files.
5297 # The linker will automatically build a .lib file if we build a DLL.5147 libext=lib
5298 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'5148 # Tell ltmain to make .dll files, not .so files.
5299 # FIXME: Should let the user specify the lib program.5149 shrext_cmds=".dll"
5300 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'5150 # FIXME: Setting linknames here is a bad hack.
5301 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'5151 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5302 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes5152 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5153 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5154 else
5155 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5156 fi~
5157 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5158 linknames='
5159 # The linker will not automatically build a static lib if we build a DLL.
5160 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5161 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5163 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5164 # Don't use ranlib
5165 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5166 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5167 lt_tool_outputfile="@TOOL_OUTPUT@"~
5168 case $lt_outputfile in
5169 *.exe|*.EXE) ;;
5170 *)
5171 lt_outputfile="$lt_outputfile.exe"
5172 lt_tool_outputfile="$lt_tool_outputfile.exe"
5173 ;;
5174 esac~
5175 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5177 $RM "$lt_outputfile.manifest";
5178 fi'
5179 ;;
5180 *)
5181 # Assume MSVC wrapper
5182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5184 # Tell ltmain to make .lib files, not .a files.
5185 libext=lib
5186 # Tell ltmain to make .dll files, not .so files.
5187 shrext_cmds=".dll"
5188 # FIXME: Setting linknames here is a bad hack.
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5190 # The linker will automatically build a .lib file if we build a DLL.
5191 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5192 # FIXME: Should let the user specify the lib program.
5193 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5194 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5195 ;;
5196 esac
5303 ;;5197 ;;
53045198
5305 darwin* | rhapsody*)5199 darwin* | rhapsody*)
@@ -5312,10 +5206,6 @@
5312 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no5206 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5313 ;;5207 ;;
53145208
5315 freebsd1*)
5316 _LT_TAGVAR(ld_shlibs, $1)=no
5317 ;;
5318
5319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor5209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5320 # support. Future versions do this automatically, but an explicit c++rt0.o5210 # support. Future versions do this automatically, but an explicit c++rt0.o
5321 # does not break anything, and helps significantly (at the cost of a little5211 # does not break anything, and helps significantly (at the cost of a little
@@ -5328,7 +5218,7 @@
5328 ;;5218 ;;
53295219
5330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.5220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5331 freebsd2*)5221 freebsd2.*)
5332 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'5222 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5333 _LT_TAGVAR(hardcode_direct, $1)=yes5223 _LT_TAGVAR(hardcode_direct, $1)=yes
5334 _LT_TAGVAR(hardcode_minus_L, $1)=yes5224 _LT_TAGVAR(hardcode_minus_L, $1)=yes
@@ -5337,7 +5227,7 @@
53375227
5338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.5228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5339 freebsd* | dragonfly*)5229 freebsd* | dragonfly*)
5340 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5342 _LT_TAGVAR(hardcode_direct, $1)=yes5232 _LT_TAGVAR(hardcode_direct, $1)=yes
5343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no5233 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -5345,7 +5235,7 @@
53455235
5346 hpux9*)5236 hpux9*)
5347 if test "$GCC" = yes; then5237 if test "$GCC" = yes; then
5348 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'5238 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5349 else5239 else
5350 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'5240 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5351 fi5241 fi
@@ -5360,14 +5250,13 @@
5360 ;;5250 ;;
53615251
5362 hpux10*)5252 hpux10*)
5363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then5253 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5364 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5254 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5365 else5255 else
5366 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'5256 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5367 fi5257 fi
5368 if test "$with_gnu_ld" = no; then5258 if test "$with_gnu_ld" = no; then
5369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5259 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5370 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5371 _LT_TAGVAR(hardcode_libdir_separator, $1)=:5260 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5372 _LT_TAGVAR(hardcode_direct, $1)=yes5261 _LT_TAGVAR(hardcode_direct, $1)=yes
5373 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes5262 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
@@ -5379,16 +5268,16 @@
5379 ;;5268 ;;
53805269
5381 hpux11*)5270 hpux11*)
5382 if test "$GCC" = yes -a "$with_gnu_ld" = no; then5271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5383 case $host_cpu in5272 case $host_cpu in
5384 hppa*64*)5273 hppa*64*)
5385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5274 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5386 ;;5275 ;;
5387 ia64*)5276 ia64*)
5388 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5389 ;;5278 ;;
5390 *)5279 *)
5391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5280 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5392 ;;5281 ;;
5393 esac5282 esac
5394 else5283 else
@@ -5400,7 +5289,14 @@
5400 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5289 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5401 ;;5290 ;;
5402 *)5291 *)
5403 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5292 m4_if($1, [], [
5293 # Older versions of the 11.00 compiler do not understand -b yet
5294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5295 _LT_LINKER_OPTION([if $CC understands -b],
5296 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5297 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5298 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5299 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5404 ;;5300 ;;
5405 esac5301 esac
5406 fi5302 fi
@@ -5428,19 +5324,34 @@
54285324
5429 irix5* | irix6* | nonstopux*)5325 irix5* | irix6* | nonstopux*)
5430 if test "$GCC" = yes; then5326 if test "$GCC" = yes; then
5431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5432 # Try to use the -exported_symbol ld option, if it does not5328 # Try to use the -exported_symbol ld option, if it does not
5433 # work, assume that -exports_file does not work either and5329 # work, assume that -exports_file does not work either and
5434 # implicitly export all symbols.5330 # implicitly export all symbols.
5435 save_LDFLAGS="$LDFLAGS"5331 # This should be the same for all languages, so no per-tag cache variable.
5436 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"5332 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5437 AC_LINK_IFELSE(int foo(void) {},5333 [lt_cv_irix_exported_symbol],
5438 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'5334 [save_LDFLAGS="$LDFLAGS"
5439 )5335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5440 LDFLAGS="$save_LDFLAGS"5336 AC_LINK_IFELSE(
5337 [AC_LANG_SOURCE(
5338 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5339 [C++], [[int foo (void) { return 0; }]],
5340 [Fortran 77], [[
5341 subroutine foo
5342 end]],
5343 [Fortran], [[
5344 subroutine foo
5345 end]])])],
5346 [lt_cv_irix_exported_symbol=yes],
5347 [lt_cv_irix_exported_symbol=no])
5348 LDFLAGS="$save_LDFLAGS"])
5349 if test "$lt_cv_irix_exported_symbol" = yes; then
5350 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5351 fi
5441 else5352 else
5442 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5443 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'5354 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5444 fi5355 fi
5445 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'5356 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -5502,17 +5413,17 @@
5502 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5503 _LT_TAGVAR(hardcode_minus_L, $1)=yes5414 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5504 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported5415 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5505 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'5416 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5506 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'5417 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5507 ;;5418 ;;
55085419
5509 osf3*)5420 osf3*)
5510 if test "$GCC" = yes; then5421 if test "$GCC" = yes; then
5511 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5422 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5512 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5423 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5513 else5424 else
5514 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5425 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5515 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5516 fi5427 fi
5517 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'5428 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5429 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -5522,13 +5433,13 @@
5522 osf4* | osf5*) # as osf3* with the addition of -msym flag5433 osf4* | osf5*) # as osf3* with the addition of -msym flag
5523 if test "$GCC" = yes; then5434 if test "$GCC" = yes; then
5524 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5525 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5527 else5438 else
5528 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5529 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5530 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~5441 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5531 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'5442 $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'
55325443
5533 # Both c and cxx compiler support -rpath directly5444 # Both c and cxx compiler support -rpath directly
5534 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'5445 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -5541,9 +5452,9 @@
5541 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'5452 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5542 if test "$GCC" = yes; then5453 if test "$GCC" = yes; then
5543 wlarc='${wl}'5454 wlarc='${wl}'
5544 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5455 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5545 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~5456 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5546 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5457 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5547 else5458 else
5548 case `$CC -V 2>&1` in5459 case `$CC -V 2>&1` in
5549 *"Compilers 5.0"*)5460 *"Compilers 5.0"*)
@@ -5719,36 +5630,38 @@
5719 # Test whether the compiler implicitly links with -lc since on some5630 # Test whether the compiler implicitly links with -lc since on some
5720 # systems, -lgcc has to come before -lc. If gcc already passes -lc5631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5721 # to ld, don't add -lc before -lgcc.5632 # to ld, don't add -lc before -lgcc.
5722 AC_MSG_CHECKING([whether -lc should be explicitly linked in])5633 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5723 $RM conftest*5634 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext5635 [$RM conftest*
5636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
57255637
5726 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then5638 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5727 soname=conftest5639 soname=conftest
5728 lib=conftest5640 lib=conftest
5729 libobjs=conftest.$ac_objext5641 libobjs=conftest.$ac_objext
5730 deplibs=5642 deplibs=
5731 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)5643 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5732 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)5644 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5733 compiler_flags=-v5645 compiler_flags=-v
5734 linker_flags=-v5646 linker_flags=-v
5735 verstring=5647 verstring=
5736 output_objdir=.5648 output_objdir=.
5737 libname=conftest5649 libname=conftest
5738 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)5650 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5739 _LT_TAGVAR(allow_undefined_flag, $1)=5651 _LT_TAGVAR(allow_undefined_flag, $1)=
5740 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)5652 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5741 then5653 then
5742 _LT_TAGVAR(archive_cmds_need_lc, $1)=no5654 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5743 else5655 else
5744 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes5656 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5745 fi5657 fi
5746 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag5658 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5747 else5659 else
5748 cat conftest.err 1>&55660 cat conftest.err 1>&5
5749 fi5661 fi
5750 $RM conftest*5662 $RM conftest*
5751 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])5663 ])
5664 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5752 ;;5665 ;;
5753 esac5666 esac
5754 fi5667 fi
@@ -5785,9 +5698,6 @@
5785_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],5698_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5786 [Flag to hardcode $libdir into a binary during linking.5699 [Flag to hardcode $libdir into a binary during linking.
5787 This must work even if $libdir does not exist])5700 This must work even if $libdir does not exist])
5788_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5789 [[If ld is used when linking, flag to hardcode $libdir into a binary
5790 during linking. This must work even if $libdir does not exist]])
5791_LT_TAGDECL([], [hardcode_libdir_separator], [1],5701_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5792 [Whether we need a single "-rpath" flag with a separated argument])5702 [Whether we need a single "-rpath" flag with a separated argument])
5793_LT_TAGDECL([], [hardcode_direct], [0],5703_LT_TAGDECL([], [hardcode_direct], [0],
@@ -5813,8 +5723,6 @@
5813 to runtime path list])5723 to runtime path list])
5814_LT_TAGDECL([], [link_all_deplibs], [0],5724_LT_TAGDECL([], [link_all_deplibs], [0],
5815 [Whether libtool must link a program against all its dependency libraries])5725 [Whether libtool must link a program against all its dependency libraries])
5816_LT_TAGDECL([], [fix_srcfile_path], [1],
5817 [Fix the shell variable $srcfile for the compiler])
5818_LT_TAGDECL([], [always_export_symbols], [0],5726_LT_TAGDECL([], [always_export_symbols], [0],
5819 [Set to "yes" if exported symbols are required])5727 [Set to "yes" if exported symbols are required])
5820_LT_TAGDECL([], [export_symbols_cmds], [2],5728_LT_TAGDECL([], [export_symbols_cmds], [2],
@@ -5825,6 +5733,8 @@
5825 [Symbols that must always be exported])5733 [Symbols that must always be exported])
5826_LT_TAGDECL([], [prelink_cmds], [2],5734_LT_TAGDECL([], [prelink_cmds], [2],
5827 [Commands necessary for linking programs (against libraries) with templates])5735 [Commands necessary for linking programs (against libraries) with templates])
5736_LT_TAGDECL([], [postlink_cmds], [2],
5737 [Commands necessary for finishing linking programs])
5828_LT_TAGDECL([], [file_list_spec], [1],5738_LT_TAGDECL([], [file_list_spec], [1],
5829 [Specify filename containing input files])5739 [Specify filename containing input files])
5830dnl FIXME: Not yet implemented5740dnl FIXME: Not yet implemented
@@ -5914,14 +5824,15 @@
5914])# _LT_LANG_C_CONFIG5824])# _LT_LANG_C_CONFIG
59155825
59165826
5917# _LT_PROG_CXX5827# _LT_LANG_CXX_CONFIG([TAG])
5918# ------------5828# --------------------------
5919# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++5829# Ensure that the configuration variables for a C++ compiler are suitably
5920# compiler, we have our own version here.5830# defined. These variables are subsequently used by _LT_CONFIG to write
5921m4_defun([_LT_PROG_CXX],5831# the compiler configuration to `libtool'.
5922[5832m4_defun([_LT_LANG_CXX_CONFIG],
5923pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])5833[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5924AC_PROG_CXX5834m4_require([_LT_DECL_EGREP])dnl
5835m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5925if test -n "$CXX" && ( test "X$CXX" != "Xno" &&5836if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5926 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||5837 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5927 (test "X$CXX" != "Xg++"))) ; then5838 (test "X$CXX" != "Xg++"))) ; then
@@ -5929,22 +5840,6 @@
5929else5840else
5930 _lt_caught_CXX_error=yes5841 _lt_caught_CXX_error=yes
5931fi5842fi
5932popdef([AC_MSG_ERROR])
5933])# _LT_PROG_CXX
5934
5935dnl aclocal-1.4 backwards compatibility:
5936dnl AC_DEFUN([_LT_PROG_CXX], [])
5937
5938
5939# _LT_LANG_CXX_CONFIG([TAG])
5940# --------------------------
5941# Ensure that the configuration variables for a C++ compiler are suitably
5942# defined. These variables are subsequently used by _LT_CONFIG to write
5943# the compiler configuration to `libtool'.
5944m4_defun([_LT_LANG_CXX_CONFIG],
5945[AC_REQUIRE([_LT_PROG_CXX])dnl
5946m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5947m4_require([_LT_DECL_EGREP])dnl
59485843
5949AC_LANG_PUSH(C++)5844AC_LANG_PUSH(C++)
5950_LT_TAGVAR(archive_cmds_need_lc, $1)=no5845_LT_TAGVAR(archive_cmds_need_lc, $1)=no
@@ -5956,7 +5851,6 @@
5956_LT_TAGVAR(hardcode_direct, $1)=no5851_LT_TAGVAR(hardcode_direct, $1)=no
5957_LT_TAGVAR(hardcode_direct_absolute, $1)=no5852_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5958_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=5853_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5959_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5960_LT_TAGVAR(hardcode_libdir_separator, $1)=5854_LT_TAGVAR(hardcode_libdir_separator, $1)=
5961_LT_TAGVAR(hardcode_minus_L, $1)=no5855_LT_TAGVAR(hardcode_minus_L, $1)=no
5962_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported5856_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -5966,6 +5860,8 @@
5966_LT_TAGVAR(module_expsym_cmds, $1)=5860_LT_TAGVAR(module_expsym_cmds, $1)=
5967_LT_TAGVAR(link_all_deplibs, $1)=unknown5861_LT_TAGVAR(link_all_deplibs, $1)=unknown
5968_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds5862_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5863_LT_TAGVAR(reload_flag, $1)=$reload_flag
5864_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5969_LT_TAGVAR(no_undefined_flag, $1)=5865_LT_TAGVAR(no_undefined_flag, $1)=
5970_LT_TAGVAR(whole_archive_flag_spec, $1)=5866_LT_TAGVAR(whole_archive_flag_spec, $1)=
5971_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no5867_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -5997,6 +5893,7 @@
59975893
5998 # Allow CC to be a program name with arguments.5894 # Allow CC to be a program name with arguments.
5999 lt_save_CC=$CC5895 lt_save_CC=$CC
5896 lt_save_CFLAGS=$CFLAGS
6000 lt_save_LD=$LD5897 lt_save_LD=$LD
6001 lt_save_GCC=$GCC5898 lt_save_GCC=$GCC
6002 GCC=$GXX5899 GCC=$GXX
@@ -6014,6 +5911,7 @@
6014 fi5911 fi
6015 test -z "${LDCXX+set}" || LD=$LDCXX5912 test -z "${LDCXX+set}" || LD=$LDCXX
6016 CC=${CXX-"c++"}5913 CC=${CXX-"c++"}
5914 CFLAGS=$CXXFLAGS
6017 compiler=$CC5915 compiler=$CC
6018 _LT_TAGVAR(compiler, $1)=$CC5916 _LT_TAGVAR(compiler, $1)=$CC
6019 _LT_CC_BASENAME([$compiler])5917 _LT_CC_BASENAME([$compiler])
@@ -6035,8 +5933,8 @@
6035 # Check if GNU C++ uses GNU ld as the underlying linker, since the5933 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6036 # archiving commands below assume that GNU ld is being used.5934 # archiving commands below assume that GNU ld is being used.
6037 if test "$with_gnu_ld" = yes; then5935 if test "$with_gnu_ld" = yes; then
6038 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'5936 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6039 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'5937 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
60405938
6041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'5940 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6068,7 +5966,7 @@
6068 # Commands to make compiler produce verbose output that lists5966 # Commands to make compiler produce verbose output that lists
6069 # what "hidden" libraries, object files and flags are used when5967 # what "hidden" libraries, object files and flags are used when
6070 # linking a shared library.5968 # linking a shared library.
6071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'5969 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
60725970
6073 else5971 else
6074 GXX=no5972 GXX=no
@@ -6177,10 +6075,10 @@
6177 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'6075 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6178 # Determine the default libpath from the value encoded in an empty6076 # Determine the default libpath from the value encoded in an empty
6179 # executable.6077 # executable.
6180 _LT_SYS_MODULE_PATH_AIX6078 _LT_SYS_MODULE_PATH_AIX([$1])
6181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"6079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
61826080
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6081 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6184 else6082 else
6185 if test "$host_cpu" = ia64; then6083 if test "$host_cpu" = ia64; then
6186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'6084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -6189,14 +6087,19 @@
6189 else6087 else
6190 # Determine the default libpath from the value encoded in an6088 # Determine the default libpath from the value encoded in an
6191 # empty executable.6089 # empty executable.
6192 _LT_SYS_MODULE_PATH_AIX6090 _LT_SYS_MODULE_PATH_AIX([$1])
6193 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"6091 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6194 # Warning - without using the other run time loading flags,6092 # Warning - without using the other run time loading flags,
6195 # -berok will link without error, but may produce a broken library.6093 # -berok will link without error, but may produce a broken library.
6196 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'6094 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6197 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'6095 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6198 # Exported symbols can be pulled into shared objects from archives6096 if test "$with_gnu_ld" = yes; then
6199 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'6097 # We only use this code for GNU lds that support --whole-archive.
6098 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6099 else
6100 # Exported symbols can be pulled into shared objects from archives
6101 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6102 fi
6200 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes6103 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6201 # This is similar to how AIX traditionally builds its shared6104 # This is similar to how AIX traditionally builds its shared
6202 # libraries.6105 # libraries.
@@ -6226,28 +6129,75 @@
6226 ;;6129 ;;
62276130
6228 cygwin* | mingw* | pw32* | cegcc*)6131 cygwin* | mingw* | pw32* | cegcc*)
6229 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,6132 case $GXX,$cc_basename in
6230 # as there is no search path for DLLs.6133 ,cl* | no,cl*)
6231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6134 # Native MSVC
6232 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported6135 # hardcode_libdir_flag_spec is actually meaningless, as there is
6233 _LT_TAGVAR(always_export_symbols, $1)=no6136 # no search path for DLLs.
6234 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes6137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6138 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6139 _LT_TAGVAR(always_export_symbols, $1)=yes
6140 _LT_TAGVAR(file_list_spec, $1)='@'
6141 # Tell ltmain to make .lib files, not .a files.
6142 libext=lib
6143 # Tell ltmain to make .dll files, not .so files.
6144 shrext_cmds=".dll"
6145 # FIXME: Setting linknames here is a bad hack.
6146 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6147 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6148 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6149 else
6150 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6151 fi~
6152 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6153 linknames='
6154 # The linker will not automatically build a static lib if we build a DLL.
6155 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6156 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6157 # Don't use ranlib
6158 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6159 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6160 lt_tool_outputfile="@TOOL_OUTPUT@"~
6161 case $lt_outputfile in
6162 *.exe|*.EXE) ;;
6163 *)
6164 lt_outputfile="$lt_outputfile.exe"
6165 lt_tool_outputfile="$lt_tool_outputfile.exe"
6166 ;;
6167 esac~
6168 func_to_tool_file "$lt_outputfile"~
6169 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6170 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6171 $RM "$lt_outputfile.manifest";
6172 fi'
6173 ;;
6174 *)
6175 # g++
6176 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6177 # as there is no search path for DLLs.
6178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6179 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6180 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6181 _LT_TAGVAR(always_export_symbols, $1)=no
6182 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62356183
6236 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then6184 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6237 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'6185 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6238 # If the export-symbols file already is a .def file (1st line6186 # If the export-symbols file already is a .def file (1st line
6239 # is EXPORTS), use it as is; otherwise, prepend...6187 # is EXPORTS), use it as is; otherwise, prepend...
6240 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then6188 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6241 cp $export_symbols $output_objdir/$soname.def;6189 cp $export_symbols $output_objdir/$soname.def;
6242 else6190 else
6243 echo EXPORTS > $output_objdir/$soname.def;6191 echo EXPORTS > $output_objdir/$soname.def;
6244 cat $export_symbols >> $output_objdir/$soname.def;6192 cat $export_symbols >> $output_objdir/$soname.def;
6245 fi~6193 fi~
6246 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'6194 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6247 else6195 else
6248 _LT_TAGVAR(ld_shlibs, $1)=no6196 _LT_TAGVAR(ld_shlibs, $1)=no
6249 fi6197 fi
6250 ;;6198 ;;
6199 esac
6200 ;;
6251 darwin* | rhapsody*)6201 darwin* | rhapsody*)
6252 _LT_DARWIN_LINKER_FEATURES($1)6202 _LT_DARWIN_LINKER_FEATURES($1)
6253 ;;6203 ;;
@@ -6270,7 +6220,7 @@
6270 esac6220 esac
6271 ;;6221 ;;
62726222
6273 freebsd[[12]]*)6223 freebsd2.*)
6274 # C++ shared libraries reported to be fairly broken before6224 # C++ shared libraries reported to be fairly broken before
6275 # switch to ELF6225 # switch to ELF
6276 _LT_TAGVAR(ld_shlibs, $1)=no6226 _LT_TAGVAR(ld_shlibs, $1)=no
@@ -6289,6 +6239,11 @@
6289 gnu*)6239 gnu*)
6290 ;;6240 ;;
62916241
6242 haiku*)
6243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244 _LT_TAGVAR(link_all_deplibs, $1)=yes
6245 ;;
6246
6292 hpux9*)6247 hpux9*)
6293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6294 _LT_TAGVAR(hardcode_libdir_separator, $1)=:6249 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -6313,11 +6268,11 @@
6313 # explicitly linking system object files so we need to strip them6268 # explicitly linking system object files so we need to strip them
6314 # from the output so that they don't get included in the library6269 # from the output so that they don't get included in the library
6315 # dependencies.6270 # dependencies.
6316 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6271 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6317 ;;6272 ;;
6318 *)6273 *)
6319 if test "$GXX" = yes; then6274 if test "$GXX" = yes; then
6320 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'6275 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6321 else6276 else
6322 # FIXME: insert proper C++ library support6277 # FIXME: insert proper C++ library support
6323 _LT_TAGVAR(ld_shlibs, $1)=no6278 _LT_TAGVAR(ld_shlibs, $1)=no
@@ -6378,7 +6333,7 @@
6378 # explicitly linking system object files so we need to strip them6333 # explicitly linking system object files so we need to strip them
6379 # from the output so that they don't get included in the library6334 # from the output so that they don't get included in the library
6380 # dependencies.6335 # dependencies.
6381 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6336 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6382 ;;6337 ;;
6383 *)6338 *)
6384 if test "$GXX" = yes; then6339 if test "$GXX" = yes; then
@@ -6388,10 +6343,10 @@
6388 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6389 ;;6344 ;;
6390 ia64*)6345 ia64*)
6391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6346 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6392 ;;6347 ;;
6393 *)6348 *)
6394 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6349 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6395 ;;6350 ;;
6396 esac6351 esac
6397 fi6352 fi
@@ -6421,7 +6376,7 @@
6421 case $cc_basename in6376 case $cc_basename in
6422 CC*)6377 CC*)
6423 # SGI C++6378 # SGI C++
6424 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6379 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
64256380
6426 # Archives containing C++ object files must be created using6381 # Archives containing C++ object files must be created using
6427 # "CC -ar", where "CC" is the IRIX C++ compiler. This is6382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -6432,9 +6387,9 @@
6432 *)6387 *)
6433 if test "$GXX" = yes; then6388 if test "$GXX" = yes; then
6434 if test "$with_gnu_ld" = no; then6389 if test "$with_gnu_ld" = no; then
6435 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6390 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6436 else6391 else
6437 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'6392 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6438 fi6393 fi
6439 fi6394 fi
6440 _LT_TAGVAR(link_all_deplibs, $1)=yes6395 _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -6445,7 +6400,7 @@
6445 _LT_TAGVAR(inherit_rpath, $1)=yes6400 _LT_TAGVAR(inherit_rpath, $1)=yes
6446 ;;6401 ;;
64476402
6448 linux* | k*bsd*-gnu)6403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6449 case $cc_basename in6404 case $cc_basename in
6450 KCC*)6405 KCC*)
6451 # Kuck and Associates, Inc. (KAI) C++ Compiler6406 # Kuck and Associates, Inc. (KAI) C++ Compiler
@@ -6463,7 +6418,7 @@
6463 # explicitly linking system object files so we need to strip them6418 # explicitly linking system object files so we need to strip them
6464 # from the output so that they don't get included in the library6419 # from the output so that they don't get included in the library
6465 # dependencies.6420 # dependencies.
6466 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6421 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
64676422
6468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'6423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6469 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6424 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6500,26 +6455,26 @@
6500 pgCC* | pgcpp*)6455 pgCC* | pgcpp*)
6501 # Portland Group C++ compiler6456 # Portland Group C++ compiler
6502 case `$CC -V` in6457 case `$CC -V` in
6503 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)6458 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6504 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~6459 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6505 rm -rf $tpldir~6460 rm -rf $tpldir~
6506 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~6461 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6507 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'6462 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6508 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~6463 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6509 rm -rf $tpldir~6464 rm -rf $tpldir~
6510 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~6465 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6511 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~6466 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6512 $RANLIB $oldlib'6467 $RANLIB $oldlib'
6513 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~6468 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6514 rm -rf $tpldir~6469 rm -rf $tpldir~
6515 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~6470 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6516 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6471 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6517 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~6472 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6518 rm -rf $tpldir~6473 rm -rf $tpldir~
6519 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~6474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6520 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6521 ;;6476 ;;
6522 *) # Version 6 will use weak symbols6477 *) # Version 6 and above use weak symbols
6523 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6524 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'6479 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6525 ;;6480 ;;
@@ -6527,7 +6482,7 @@
65276482
6528 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6529 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6530 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'6485 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6531 ;;6486 ;;
6532 cxx*)6487 cxx*)
6533 # Compaq C++6488 # Compaq C++
@@ -6546,9 +6501,9 @@
6546 # explicitly linking system object files so we need to strip them6501 # explicitly linking system object files so we need to strip them
6547 # from the output so that they don't get included in the library6502 # from the output so that they don't get included in the library
6548 # dependencies.6503 # dependencies.
6549 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6504 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6550 ;;6505 ;;
6551 xl*)6506 xl* | mpixl* | bgxl*)
6552 # IBM XL 8.0 on PPC, with GNU ld6507 # IBM XL 8.0 on PPC, with GNU ld
6553 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6554 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6568,13 +6523,13 @@
6568 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6523 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6569 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'6524 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6571 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'6526 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6572 _LT_TAGVAR(compiler_needs_object, $1)=yes6527 _LT_TAGVAR(compiler_needs_object, $1)=yes
65736528
6574 # Not sure whether something based on6529 # Not sure whether something based on
6575 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&16530 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6576 # would be better.6531 # would be better.
6577 output_verbose_link_cmd='echo'6532 output_verbose_link_cmd='func_echo_all'
65786533
6579 # Archives containing C++ object files must be created using6534 # Archives containing C++ object files must be created using
6580 # "CC -xar", where "CC" is the Sun C++ compiler. This is6535 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6643,7 +6598,7 @@
6643 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'6598 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6644 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'6599 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6645 fi6600 fi
6646 output_verbose_link_cmd=echo6601 output_verbose_link_cmd=func_echo_all
6647 else6602 else
6648 _LT_TAGVAR(ld_shlibs, $1)=no6603 _LT_TAGVAR(ld_shlibs, $1)=no
6649 fi6604 fi
@@ -6678,15 +6633,15 @@
6678 case $host in6633 case $host in
6679 osf3*)6634 osf3*)
6680 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6635 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6683 ;;6638 ;;
6684 *)6639 *)
6685 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'6640 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6686 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6687 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~6642 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6688 echo "-hidden">> $lib.exp~6643 echo "-hidden">> $lib.exp~
6689 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~6644 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6690 $RM $lib.exp'6645 $RM $lib.exp'
6691 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'6646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6692 ;;6647 ;;
@@ -6702,17 +6657,17 @@
6702 # explicitly linking system object files so we need to strip them6657 # explicitly linking system object files so we need to strip them
6703 # from the output so that they don't get included in the library6658 # from the output so that they don't get included in the library
6704 # dependencies.6659 # dependencies.
6705 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6706 ;;6661 ;;
6707 *)6662 *)
6708 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6709 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6710 case $host in6665 case $host in
6711 osf3*)6666 osf3*)
6712 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6667 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6713 ;;6668 ;;
6714 *)6669 *)
6715 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6670 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6716 ;;6671 ;;
6717 esac6672 esac
67186673
@@ -6722,7 +6677,7 @@
6722 # Commands to make compiler produce verbose output that lists6677 # Commands to make compiler produce verbose output that lists
6723 # what "hidden" libraries, object files and flags are used when6678 # what "hidden" libraries, object files and flags are used when
6724 # linking a shared library.6679 # linking a shared library.
6725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67266681
6727 else6682 else
6728 # FIXME: insert proper C++ library support6683 # FIXME: insert proper C++ library support
@@ -6758,7 +6713,7 @@
67586713
6759 solaris*)6714 solaris*)
6760 case $cc_basename in6715 case $cc_basename in
6761 CC*)6716 CC* | sunCC*)
6762 # Sun C++ 4.2, 5.x and Centerline C++6717 # Sun C++ 4.2, 5.x and Centerline C++
6763 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes6718 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6764 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'6719 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
@@ -6779,7 +6734,7 @@
6779 esac6734 esac
6780 _LT_TAGVAR(link_all_deplibs, $1)=yes6735 _LT_TAGVAR(link_all_deplibs, $1)=yes
67816736
6782 output_verbose_link_cmd='echo'6737 output_verbose_link_cmd='func_echo_all'
67836738
6784 # Archives containing C++ object files must be created using6739 # Archives containing C++ object files must be created using
6785 # "CC -xar", where "CC" is the Sun C++ compiler. This is6740 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6799,14 +6754,14 @@
6799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6800 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'6755 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6801 if $CC --version | $GREP -v '^2\.7' > /dev/null; then6756 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'6757 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6803 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~6758 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6804 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'6759 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
68056760
6806 # Commands to make compiler produce verbose output that lists6761 # Commands to make compiler produce verbose output that lists
6807 # what "hidden" libraries, object files and flags are used when6762 # what "hidden" libraries, object files and flags are used when
6808 # linking a shared library.6763 # linking a shared library.
6809 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6810 else6765 else
6811 # g++ 2.7 appears to require `-G' NOT `-shared' on this6766 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6812 # platform.6767 # platform.
@@ -6817,7 +6772,7 @@
6817 # Commands to make compiler produce verbose output that lists6772 # Commands to make compiler produce verbose output that lists
6818 # what "hidden" libraries, object files and flags are used when6773 # what "hidden" libraries, object files and flags are used when
6819 # linking a shared library.6774 # linking a shared library.
6820 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6821 fi6776 fi
68226777
6823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
@@ -6871,6 +6826,10 @@
6871 CC*)6826 CC*)
6872 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6827 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6873 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6828 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6829 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6830 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6831 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6832 '"$_LT_TAGVAR(reload_cmds, $1)"
6874 ;;6833 ;;
6875 *)6834 *)
6876 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -6926,6 +6885,7 @@
6926 fi # test -n "$compiler"6885 fi # test -n "$compiler"
69276886
6928 CC=$lt_save_CC6887 CC=$lt_save_CC
6888 CFLAGS=$lt_save_CFLAGS
6929 LDCXX=$LD6889 LDCXX=$LD
6930 LD=$lt_save_LD6890 LD=$lt_save_LD
6931 GCC=$lt_save_GCC6891 GCC=$lt_save_GCC
@@ -6940,6 +6900,29 @@
6940])# _LT_LANG_CXX_CONFIG6900])# _LT_LANG_CXX_CONFIG
69416901
69426902
6903# _LT_FUNC_STRIPNAME_CNF
6904# ----------------------
6905# func_stripname_cnf prefix suffix name
6906# strip PREFIX and SUFFIX off of NAME.
6907# PREFIX and SUFFIX must not contain globbing or regex special
6908# characters, hashes, percent signs, but SUFFIX may contain a leading
6909# dot (in which case that matches only a dot).
6910#
6911# This function is identical to the (non-XSI) version of func_stripname,
6912# except this one can be used by m4 code that may be executed by configure,
6913# rather than the libtool script.
6914m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6915AC_REQUIRE([_LT_DECL_SED])
6916AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6917func_stripname_cnf ()
6918{
6919 case ${2} in
6920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6922 esac
6923} # func_stripname_cnf
6924])# _LT_FUNC_STRIPNAME_CNF
6925
6943# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])6926# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6944# ---------------------------------6927# ---------------------------------
6945# Figure out "hidden" library dependencies from verbose6928# Figure out "hidden" library dependencies from verbose
@@ -6948,6 +6931,7 @@
6948# objects, libraries and library flags.6931# objects, libraries and library flags.
6949m4_defun([_LT_SYS_HIDDEN_LIBDEPS],6932m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6950[m4_require([_LT_FILEUTILS_DEFAULTS])dnl6933[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6934AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6951# Dependencies to place before and after the object being linked:6935# Dependencies to place before and after the object being linked:
6952_LT_TAGVAR(predep_objects, $1)=6936_LT_TAGVAR(predep_objects, $1)=
6953_LT_TAGVAR(postdep_objects, $1)=6937_LT_TAGVAR(postdep_objects, $1)=
@@ -6997,7 +6981,20 @@
6997 }6981 }
6998};6982};
6999_LT_EOF6983_LT_EOF
6984], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6985package foo
6986func foo() {
6987}
6988_LT_EOF
7000])6989])
6990
6991_lt_libdeps_save_CFLAGS=$CFLAGS
6992case "$CC $CFLAGS " in #(
6993*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6994*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6995*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6996esac
6997
7001dnl Parse the compiler output and extract the necessary6998dnl Parse the compiler output and extract the necessary
7002dnl objects, libraries and library flags.6999dnl objects, libraries and library flags.
7003if AC_TRY_EVAL(ac_compile); then7000if AC_TRY_EVAL(ac_compile); then
@@ -7009,7 +7006,7 @@
7009 pre_test_object_deps_done=no7006 pre_test_object_deps_done=no
70107007
7011 for p in `eval "$output_verbose_link_cmd"`; do7008 for p in `eval "$output_verbose_link_cmd"`; do
7012 case $p in7009 case ${prev}${p} in
70137010
7014 -L* | -R* | -l*)7011 -L* | -R* | -l*)
7015 # Some compilers place space between "-{L,R}" and the path.7012 # Some compilers place space between "-{L,R}" and the path.
@@ -7018,13 +7015,22 @@
7018 test $p = "-R"; then7015 test $p = "-R"; then
7019 prev=$p7016 prev=$p
7020 continue7017 continue
7021 else
7022 prev=
7023 fi7018 fi
70247019
7020 # Expand the sysroot to ease extracting the directories later.
7021 if test -z "$prev"; then
7022 case $p in
7023 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7024 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7025 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7026 esac
7027 fi
7028 case $p in
7029 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7030 esac
7025 if test "$pre_test_object_deps_done" = no; then7031 if test "$pre_test_object_deps_done" = no; then
7026 case $p in7032 case ${prev} in
7027 -L* | -R*)7033 -L | -R)
7028 # Internal compiler library paths should come after those7034 # Internal compiler library paths should come after those
7029 # provided the user. The postdeps already come after the7035 # provided the user. The postdeps already come after the
7030 # user supplied libs so there is no need to process them.7036 # user supplied libs so there is no need to process them.
@@ -7044,8 +7050,10 @@
7044 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"7050 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7045 fi7051 fi
7046 fi7052 fi
7053 prev=
7047 ;;7054 ;;
70487055
7056 *.lto.$objext) ;; # Ignore GCC LTO objects
7049 *.$objext)7057 *.$objext)
7050 # This assumes that the test object file only shows up7058 # This assumes that the test object file only shows up
7051 # once in the compiler output.7059 # once in the compiler output.
@@ -7081,6 +7089,7 @@
7081fi7089fi
70827090
7083$RM -f confest.$objext7091$RM -f confest.$objext
7092CFLAGS=$_lt_libdeps_save_CFLAGS
70847093
7085# PORTME: override above test on systems where it is broken7094# PORTME: override above test on systems where it is broken
7086m4_if([$1], [CXX],7095m4_if([$1], [CXX],
@@ -7117,7 +7126,7 @@
71177126
7118solaris*)7127solaris*)
7119 case $cc_basename in7128 case $cc_basename in
7120 CC*)7129 CC* | sunCC*)
7121 # The more standards-conforming stlport4 library is7130 # The more standards-conforming stlport4 library is
7122 # incompatible with the Cstd library. Avoid specifying7131 # incompatible with the Cstd library. Avoid specifying
7123 # it if it's in CXXFLAGS. Ignore libCrun as7132 # it if it's in CXXFLAGS. Ignore libCrun as
@@ -7161,32 +7170,16 @@
7161])# _LT_SYS_HIDDEN_LIBDEPS7170])# _LT_SYS_HIDDEN_LIBDEPS
71627171
71637172
7164# _LT_PROG_F77
7165# ------------
7166# Since AC_PROG_F77 is broken, in that it returns the empty string
7167# if there is no fortran compiler, we have our own version here.
7168m4_defun([_LT_PROG_F77],
7169[
7170pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7171AC_PROG_F77
7172if test -z "$F77" || test "X$F77" = "Xno"; then
7173 _lt_disable_F77=yes
7174fi
7175popdef([AC_MSG_ERROR])
7176])# _LT_PROG_F77
7177
7178dnl aclocal-1.4 backwards compatibility:
7179dnl AC_DEFUN([_LT_PROG_F77], [])
7180
7181
7182# _LT_LANG_F77_CONFIG([TAG])7173# _LT_LANG_F77_CONFIG([TAG])
7183# --------------------------7174# --------------------------
7184# Ensure that the configuration variables for a Fortran 77 compiler are7175# Ensure that the configuration variables for a Fortran 77 compiler are
7185# suitably defined. These variables are subsequently used by _LT_CONFIG7176# suitably defined. These variables are subsequently used by _LT_CONFIG
7186# to write the compiler configuration to `libtool'.7177# to write the compiler configuration to `libtool'.
7187m4_defun([_LT_LANG_F77_CONFIG],7178m4_defun([_LT_LANG_F77_CONFIG],
7188[AC_REQUIRE([_LT_PROG_F77])dnl7179[AC_LANG_PUSH(Fortran 77)
7189AC_LANG_PUSH(Fortran 77)7180if test -z "$F77" || test "X$F77" = "Xno"; then
7181 _lt_disable_F77=yes
7182fi
71907183
7191_LT_TAGVAR(archive_cmds_need_lc, $1)=no7184_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7192_LT_TAGVAR(allow_undefined_flag, $1)=7185_LT_TAGVAR(allow_undefined_flag, $1)=
@@ -7196,7 +7189,6 @@
7196_LT_TAGVAR(hardcode_direct, $1)=no7189_LT_TAGVAR(hardcode_direct, $1)=no
7197_LT_TAGVAR(hardcode_direct_absolute, $1)=no7190_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7198_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=7191_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7199_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7200_LT_TAGVAR(hardcode_libdir_separator, $1)=7192_LT_TAGVAR(hardcode_libdir_separator, $1)=
7201_LT_TAGVAR(hardcode_minus_L, $1)=no7193_LT_TAGVAR(hardcode_minus_L, $1)=no
7202_LT_TAGVAR(hardcode_automatic, $1)=no7194_LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7205,6 +7197,8 @@
7205_LT_TAGVAR(module_expsym_cmds, $1)=7197_LT_TAGVAR(module_expsym_cmds, $1)=
7206_LT_TAGVAR(link_all_deplibs, $1)=unknown7198_LT_TAGVAR(link_all_deplibs, $1)=unknown
7207_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7199_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7200_LT_TAGVAR(reload_flag, $1)=$reload_flag
7201_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7208_LT_TAGVAR(no_undefined_flag, $1)=7202_LT_TAGVAR(no_undefined_flag, $1)=
7209_LT_TAGVAR(whole_archive_flag_spec, $1)=7203_LT_TAGVAR(whole_archive_flag_spec, $1)=
7210_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no7204_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -7244,7 +7238,9 @@
7244 # Allow CC to be a program name with arguments.7238 # Allow CC to be a program name with arguments.
7245 lt_save_CC="$CC"7239 lt_save_CC="$CC"
7246 lt_save_GCC=$GCC7240 lt_save_GCC=$GCC
7241 lt_save_CFLAGS=$CFLAGS
7247 CC=${F77-"f77"}7242 CC=${F77-"f77"}
7243 CFLAGS=$FFLAGS
7248 compiler=$CC7244 compiler=$CC
7249 _LT_TAGVAR(compiler, $1)=$CC7245 _LT_TAGVAR(compiler, $1)=$CC
7250 _LT_CC_BASENAME([$compiler])7246 _LT_CC_BASENAME([$compiler])
@@ -7298,38 +7294,24 @@
72987294
7299 GCC=$lt_save_GCC7295 GCC=$lt_save_GCC
7300 CC="$lt_save_CC"7296 CC="$lt_save_CC"
7297 CFLAGS="$lt_save_CFLAGS"
7301fi # test "$_lt_disable_F77" != yes7298fi # test "$_lt_disable_F77" != yes
73027299
7303AC_LANG_POP7300AC_LANG_POP
7304])# _LT_LANG_F77_CONFIG7301])# _LT_LANG_F77_CONFIG
73057302
73067303
7307# _LT_PROG_FC
7308# -----------
7309# Since AC_PROG_FC is broken, in that it returns the empty string
7310# if there is no fortran compiler, we have our own version here.
7311m4_defun([_LT_PROG_FC],
7312[
7313pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7314AC_PROG_FC
7315if test -z "$FC" || test "X$FC" = "Xno"; then
7316 _lt_disable_FC=yes
7317fi
7318popdef([AC_MSG_ERROR])
7319])# _LT_PROG_FC
7320
7321dnl aclocal-1.4 backwards compatibility:
7322dnl AC_DEFUN([_LT_PROG_FC], [])
7323
7324
7325# _LT_LANG_FC_CONFIG([TAG])7304# _LT_LANG_FC_CONFIG([TAG])
7326# -------------------------7305# -------------------------
7327# Ensure that the configuration variables for a Fortran compiler are7306# Ensure that the configuration variables for a Fortran compiler are
7328# suitably defined. These variables are subsequently used by _LT_CONFIG7307# suitably defined. These variables are subsequently used by _LT_CONFIG
7329# to write the compiler configuration to `libtool'.7308# to write the compiler configuration to `libtool'.
7330m4_defun([_LT_LANG_FC_CONFIG],7309m4_defun([_LT_LANG_FC_CONFIG],
7331[AC_REQUIRE([_LT_PROG_FC])dnl7310[AC_LANG_PUSH(Fortran)
7332AC_LANG_PUSH(Fortran)7311
7312if test -z "$FC" || test "X$FC" = "Xno"; then
7313 _lt_disable_FC=yes
7314fi
73337315
7334_LT_TAGVAR(archive_cmds_need_lc, $1)=no7316_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7335_LT_TAGVAR(allow_undefined_flag, $1)=7317_LT_TAGVAR(allow_undefined_flag, $1)=
@@ -7339,7 +7321,6 @@
7339_LT_TAGVAR(hardcode_direct, $1)=no7321_LT_TAGVAR(hardcode_direct, $1)=no
7340_LT_TAGVAR(hardcode_direct_absolute, $1)=no7322_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7341_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=7323_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7342_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7343_LT_TAGVAR(hardcode_libdir_separator, $1)=7324_LT_TAGVAR(hardcode_libdir_separator, $1)=
7344_LT_TAGVAR(hardcode_minus_L, $1)=no7325_LT_TAGVAR(hardcode_minus_L, $1)=no
7345_LT_TAGVAR(hardcode_automatic, $1)=no7326_LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7348,6 +7329,8 @@
7348_LT_TAGVAR(module_expsym_cmds, $1)=7329_LT_TAGVAR(module_expsym_cmds, $1)=
7349_LT_TAGVAR(link_all_deplibs, $1)=unknown7330_LT_TAGVAR(link_all_deplibs, $1)=unknown
7350_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7331_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7332_LT_TAGVAR(reload_flag, $1)=$reload_flag
7333_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7351_LT_TAGVAR(no_undefined_flag, $1)=7334_LT_TAGVAR(no_undefined_flag, $1)=
7352_LT_TAGVAR(whole_archive_flag_spec, $1)=7335_LT_TAGVAR(whole_archive_flag_spec, $1)=
7353_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no7336_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -7387,7 +7370,9 @@
7387 # Allow CC to be a program name with arguments.7370 # Allow CC to be a program name with arguments.
7388 lt_save_CC="$CC"7371 lt_save_CC="$CC"
7389 lt_save_GCC=$GCC7372 lt_save_GCC=$GCC
7373 lt_save_CFLAGS=$CFLAGS
7390 CC=${FC-"f95"}7374 CC=${FC-"f95"}
7375 CFLAGS=$FCFLAGS
7391 compiler=$CC7376 compiler=$CC
7392 GCC=$ac_cv_fc_compiler_gnu7377 GCC=$ac_cv_fc_compiler_gnu
73937378
@@ -7443,7 +7428,8 @@
7443 fi # test -n "$compiler"7428 fi # test -n "$compiler"
74447429
7445 GCC=$lt_save_GCC7430 GCC=$lt_save_GCC
7446 CC="$lt_save_CC"7431 CC=$lt_save_CC
7432 CFLAGS=$lt_save_CFLAGS
7447fi # test "$_lt_disable_FC" != yes7433fi # test "$_lt_disable_FC" != yes
74487434
7449AC_LANG_POP7435AC_LANG_POP
@@ -7480,10 +7466,12 @@
7480_LT_LINKER_BOILERPLATE7466_LT_LINKER_BOILERPLATE
74817467
7482# Allow CC to be a program name with arguments.7468# Allow CC to be a program name with arguments.
7483lt_save_CC="$CC"7469lt_save_CC=$CC
7470lt_save_CFLAGS=$CFLAGS
7484lt_save_GCC=$GCC7471lt_save_GCC=$GCC
7485GCC=yes7472GCC=yes
7486CC=${GCJ-"gcj"}7473CC=${GCJ-"gcj"}
7474CFLAGS=$GCJFLAGS
7487compiler=$CC7475compiler=$CC
7488_LT_TAGVAR(compiler, $1)=$CC7476_LT_TAGVAR(compiler, $1)=$CC
7489_LT_TAGVAR(LD, $1)="$LD"7477_LT_TAGVAR(LD, $1)="$LD"
@@ -7493,6 +7481,8 @@
7493_LT_TAGVAR(archive_cmds_need_lc, $1)=no7481_LT_TAGVAR(archive_cmds_need_lc, $1)=no
74947482
7495_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7483_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7484_LT_TAGVAR(reload_flag, $1)=$reload_flag
7485_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
74967486
7497if test -n "$compiler"; then7487if test -n "$compiler"; then
7498 _LT_COMPILER_NO_RTTI($1)7488 _LT_COMPILER_NO_RTTI($1)
@@ -7508,10 +7498,78 @@
7508AC_LANG_RESTORE7498AC_LANG_RESTORE
75097499
7510GCC=$lt_save_GCC7500GCC=$lt_save_GCC
7511CC="$lt_save_CC"7501CC=$lt_save_CC
7502CFLAGS=$lt_save_CFLAGS
7512])# _LT_LANG_GCJ_CONFIG7503])# _LT_LANG_GCJ_CONFIG
75137504
75147505
7506# _LT_LANG_GO_CONFIG([TAG])
7507# --------------------------
7508# Ensure that the configuration variables for the GNU Go compiler
7509# are suitably defined. These variables are subsequently used by _LT_CONFIG
7510# to write the compiler configuration to `libtool'.
7511m4_defun([_LT_LANG_GO_CONFIG],
7512[AC_REQUIRE([LT_PROG_GO])dnl
7513AC_LANG_SAVE
7514
7515# Source file extension for Go test sources.
7516ac_ext=go
7517
7518# Object file extension for compiled Go test sources.
7519objext=o
7520_LT_TAGVAR(objext, $1)=$objext
7521
7522# Code to be used in simple compile tests
7523lt_simple_compile_test_code="package main; func main() { }"
7524
7525# Code to be used in simple link tests
7526lt_simple_link_test_code='package main; func main() { }'
7527
7528# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7529_LT_TAG_COMPILER
7530
7531# save warnings/boilerplate of simple test code
7532_LT_COMPILER_BOILERPLATE
7533_LT_LINKER_BOILERPLATE
7534
7535# Allow CC to be a program name with arguments.
7536lt_save_CC=$CC
7537lt_save_CFLAGS=$CFLAGS
7538lt_save_GCC=$GCC
7539GCC=yes
7540CC=${GOC-"gccgo"}
7541CFLAGS=$GOFLAGS
7542compiler=$CC
7543_LT_TAGVAR(compiler, $1)=$CC
7544_LT_TAGVAR(LD, $1)="$LD"
7545_LT_CC_BASENAME([$compiler])
7546
7547# Go did not exist at the time GCC didn't implicitly link libc in.
7548_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7549
7550_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7551_LT_TAGVAR(reload_flag, $1)=$reload_flag
7552_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7553
7554if test -n "$compiler"; then
7555 _LT_COMPILER_NO_RTTI($1)
7556 _LT_COMPILER_PIC($1)
7557 _LT_COMPILER_C_O($1)
7558 _LT_COMPILER_FILE_LOCKS($1)
7559 _LT_LINKER_SHLIBS($1)
7560 _LT_LINKER_HARDCODE_LIBPATH($1)
7561
7562 _LT_CONFIG($1)
7563fi
7564
7565AC_LANG_RESTORE
7566
7567GCC=$lt_save_GCC
7568CC=$lt_save_CC
7569CFLAGS=$lt_save_CFLAGS
7570])# _LT_LANG_GO_CONFIG
7571
7572
7515# _LT_LANG_RC_CONFIG([TAG])7573# _LT_LANG_RC_CONFIG([TAG])
7516# -------------------------7574# -------------------------
7517# Ensure that the configuration variables for the Windows resource compiler7575# Ensure that the configuration variables for the Windows resource compiler
@@ -7543,9 +7601,11 @@
75437601
7544# Allow CC to be a program name with arguments.7602# Allow CC to be a program name with arguments.
7545lt_save_CC="$CC"7603lt_save_CC="$CC"
7604lt_save_CFLAGS=$CFLAGS
7546lt_save_GCC=$GCC7605lt_save_GCC=$GCC
7547GCC=7606GCC=
7548CC=${RC-"windres"}7607CC=${RC-"windres"}
7608CFLAGS=
7549compiler=$CC7609compiler=$CC
7550_LT_TAGVAR(compiler, $1)=$CC7610_LT_TAGVAR(compiler, $1)=$CC
7551_LT_CC_BASENAME([$compiler])7611_LT_CC_BASENAME([$compiler])
@@ -7558,7 +7618,8 @@
75587618
7559GCC=$lt_save_GCC7619GCC=$lt_save_GCC
7560AC_LANG_RESTORE7620AC_LANG_RESTORE
7561CC="$lt_save_CC"7621CC=$lt_save_CC
7622CFLAGS=$lt_save_CFLAGS
7562])# _LT_LANG_RC_CONFIG7623])# _LT_LANG_RC_CONFIG
75637624
75647625
@@ -7578,6 +7639,13 @@
7578dnl AC_DEFUN([LT_AC_PROG_GCJ], [])7639dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
75797640
75807641
7642# LT_PROG_GO
7643# ----------
7644AC_DEFUN([LT_PROG_GO],
7645[AC_CHECK_TOOL(GOC, gccgo,)
7646])
7647
7648
7581# LT_PROG_RC7649# LT_PROG_RC
7582# ----------7650# ----------
7583AC_DEFUN([LT_PROG_RC],7651AC_DEFUN([LT_PROG_RC],
@@ -7617,6 +7685,15 @@
7617AC_SUBST([OBJDUMP])7685AC_SUBST([OBJDUMP])
7618])7686])
76197687
7688# _LT_DECL_DLLTOOL
7689# ----------------
7690# Ensure DLLTOOL variable is set.
7691m4_defun([_LT_DECL_DLLTOOL],
7692[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7693test -z "$DLLTOOL" && DLLTOOL=dlltool
7694_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7695AC_SUBST([DLLTOOL])
7696])
76207697
7621# _LT_DECL_SED7698# _LT_DECL_SED
7622# ------------7699# ------------
@@ -7708,8 +7785,8 @@
7708# Try some XSI features7785# Try some XSI features
7709xsi_shell=no7786xsi_shell=no
7710( _lt_dummy="a/b/c"7787( _lt_dummy="a/b/c"
7711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \7788 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7712 = c,a/b,, \7789 = c,a/b,b/c, \
7713 && eval 'test $(( 1 + 1 )) -eq 2 \7790 && eval 'test $(( 1 + 1 )) -eq 2 \
7714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \7791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7715 && xsi_shell=yes7792 && xsi_shell=yes
@@ -7748,222 +7825,177 @@
7748])# _LT_CHECK_SHELL_FEATURES7825])# _LT_CHECK_SHELL_FEATURES
77497826
77507827
7751# _LT_PROG_XSI_SHELLFNS7828# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7752# ---------------------7829# ------------------------------------------------------
7753# Bourne and XSI compatible variants of some useful shell functions.7830# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7754m4_defun([_LT_PROG_XSI_SHELLFNS],7831# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7755[case $xsi_shell in7832m4_defun([_LT_PROG_FUNCTION_REPLACE],
7756 yes)7833[dnl {
7757 cat << \_LT_EOF >> "$cfgfile"7834sed -e '/^$1 ()$/,/^} # $1 /c\
77587835$1 ()\
7759# func_dirname file append nondir_replacement7836{\
7760# Compute the dirname of FILE. If nonempty, add APPEND to the result,7837m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7761# otherwise set result to NONDIR_REPLACEMENT.7838} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7762func_dirname ()7839 && mv -f "$cfgfile.tmp" "$cfgfile" \
7763{7840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7764 case ${1} in7841test 0 -eq $? || _lt_function_replace_fail=:
7765 */*) func_dirname_result="${1%/*}${2}" ;;7842])
7766 * ) func_dirname_result="${3}" ;;7843
7767 esac7844
7768}7845# _LT_PROG_REPLACE_SHELLFNS
77697846# -------------------------
7770# func_basename file7847# Replace existing portable implementations of several shell functions with
7771func_basename ()7848# equivalent extended shell implementations where those features are available..
7772{7849m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7773 func_basename_result="${1##*/}"7850[if test x"$xsi_shell" = xyes; then
7774}7851 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
77757852 case ${1} in
7776# func_dirname_and_basename file append nondir_replacement7853 */*) func_dirname_result="${1%/*}${2}" ;;
7777# perform func_basename and func_dirname in a single function7854 * ) func_dirname_result="${3}" ;;
7778# call:7855 esac])
7779# dirname: Compute the dirname of FILE. If nonempty,7856
7780# add APPEND to the result, otherwise set result7857 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7781# to NONDIR_REPLACEMENT.7858 func_basename_result="${1##*/}"])
7782# value returned in "$func_dirname_result"7859
7783# basename: Compute filename of FILE.7860 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7784# value retuned in "$func_basename_result"7861 case ${1} in
7785# Implementation must be kept synchronized with func_dirname7862 */*) func_dirname_result="${1%/*}${2}" ;;
7786# and func_basename. For efficiency, we do not delegate to7863 * ) func_dirname_result="${3}" ;;
7787# those functions but instead duplicate the functionality here.7864 esac
7788func_dirname_and_basename ()7865 func_basename_result="${1##*/}"])
7789{7866
7790 case ${1} in7867 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7791 */*) func_dirname_result="${1%/*}${2}" ;;7868 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7792 * ) func_dirname_result="${3}" ;;7869 # positional parameters, so assign one to ordinary parameter first.
7793 esac7870 func_stripname_result=${3}
7794 func_basename_result="${1##*/}"7871 func_stripname_result=${func_stripname_result#"${1}"}
7795}7872 func_stripname_result=${func_stripname_result%"${2}"}])
77967873
7797# func_stripname prefix suffix name7874 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7798# strip PREFIX and SUFFIX off of NAME.7875 func_split_long_opt_name=${1%%=*}
7799# PREFIX and SUFFIX must not contain globbing or regex special7876 func_split_long_opt_arg=${1#*=}])
7800# characters, hashes, percent signs, but SUFFIX may contain a leading7877
7801# dot (in which case that matches only a dot).7878 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7802func_stripname ()7879 func_split_short_opt_arg=${1#??}
7803{7880 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7804 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are7881
7805 # positional parameters, so assign one to ordinary parameter first.7882 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7806 func_stripname_result=${3}7883 case ${1} in
7807 func_stripname_result=${func_stripname_result#"${1}"}7884 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7808 func_stripname_result=${func_stripname_result%"${2}"}7885 *) func_lo2o_result=${1} ;;
7809}7886 esac])
78107887
7811# func_opt_split7888 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7812func_opt_split ()7889
7813{
7814 func_opt_split_opt=${1%%=*}
7815 func_opt_split_arg=${1#*=}
7816}
7817
7818# func_lo2o object
7819func_lo2o ()
7820{
7821 case ${1} in
7822 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7823 *) func_lo2o_result=${1} ;;
7824 esac
7825}
7826
7827# func_xform libobj-or-source
7828func_xform ()
7829{
7830 func_xform_result=${1%.*}.lo
7831}
7832
7833# func_arith arithmetic-term...
7834func_arith ()
7835{
7836 func_arith_result=$(( $[*] ))
7837}
7838
7839# func_len string
7840# STRING may not start with a hyphen.
7841func_len ()
7842{
7843 func_len_result=${#1}
7844}
7845
7846_LT_EOF
7847 ;;
7848 *) # Bourne compatible functions.
7849 cat << \_LT_EOF >> "$cfgfile"
7850
7851# func_dirname file append nondir_replacement
7852# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7853# otherwise set result to NONDIR_REPLACEMENT.
7854func_dirname ()
7855{
7856 # Extract subdirectory from the argument.
7857 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7858 if test "X$func_dirname_result" = "X${1}"; then
7859 func_dirname_result="${3}"
7860 else
7861 func_dirname_result="$func_dirname_result${2}"
7862 fi
7863}
7864
7865# func_basename file
7866func_basename ()
7867{
7868 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7869}
7870
7871dnl func_dirname_and_basename
7872dnl A portable version of this function is already defined in general.m4sh
7873dnl so there is no need for it here.
7874
7875# func_stripname prefix suffix name
7876# strip PREFIX and SUFFIX off of NAME.
7877# PREFIX and SUFFIX must not contain globbing or regex special
7878# characters, hashes, percent signs, but SUFFIX may contain a leading
7879# dot (in which case that matches only a dot).
7880# func_strip_suffix prefix name
7881func_stripname ()
7882{
7883 case ${2} in
7884 .*) func_stripname_result=`$ECHO "X${3}" \
7885 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7886 *) func_stripname_result=`$ECHO "X${3}" \
7887 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7888 esac
7889}
7890
7891# sed scripts:
7892my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7893my_sed_long_arg='1s/^-[[^=]]*=//'
7894
7895# func_opt_split
7896func_opt_split ()
7897{
7898 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7899 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7900}
7901
7902# func_lo2o object
7903func_lo2o ()
7904{
7905 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7906}
7907
7908# func_xform libobj-or-source
7909func_xform ()
7910{
7911 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7912}
7913
7914# func_arith arithmetic-term...
7915func_arith ()
7916{
7917 func_arith_result=`expr "$[@]"`
7918}
7919
7920# func_len string
7921# STRING may not start with a hyphen.
7922func_len ()
7923{
7924 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7925}
7926
7927_LT_EOF
7928esac
7929
7930case $lt_shell_append in
7931 yes)
7932 cat << \_LT_EOF >> "$cfgfile"
7933
7934# func_append var value
7935# Append VALUE to the end of shell variable VAR.
7936func_append ()
7937{
7938 eval "$[1]+=\$[2]"
7939}
7940_LT_EOF
7941 ;;
7942 *)
7943 cat << \_LT_EOF >> "$cfgfile"
7944
7945# func_append var value
7946# Append VALUE to the end of shell variable VAR.
7947func_append ()
7948{
7949 eval "$[1]=\$$[1]\$[2]"
7950}
7951
7952_LT_EOF
7953 ;;
7954 esac
7955])
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: