Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream into lp:~ubuntu-desktop/indicator-messages/ubuntu
- Precise (12.04)
- upstream
- Merge into ubuntu
Proposed by
Charles Kerr
Status: | Merged | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 228 | ||||||||||||||||||||||||||||
Proposed branch: | lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream | ||||||||||||||||||||||||||||
Merge into: | lp:~ubuntu-desktop/indicator-messages/ubuntu | ||||||||||||||||||||||||||||
Diff against target: |
18550 lines (+9288/-8847) 35 files modified
ChangeLog (+57/-0) INSTALL (+7/-2) Makefile.in (+4/-1) aclocal.m4 (+6/-8821) configure (+5/-1) configure.ac (+1/-1) data/Makefile.in (+4/-1) data/icons/16x16/Makefile.in (+4/-1) data/icons/16x16/categories/Makefile.in (+4/-1) data/icons/16x16/status/Makefile.in (+4/-1) data/icons/22x22/Makefile.in (+4/-1) data/icons/22x22/categories/Makefile.in (+4/-1) data/icons/22x22/status/Makefile.in (+4/-1) data/icons/24x24/Makefile.in (+4/-1) data/icons/24x24/status/Makefile.in (+4/-1) data/icons/32x32/Makefile.in (+4/-1) data/icons/32x32/categories/Makefile.in (+4/-1) data/icons/32x32/status/Makefile.in (+4/-1) data/icons/48x48/Makefile.in (+4/-1) data/icons/48x48/status/Makefile.in (+4/-1) data/icons/Makefile.in (+4/-1) data/icons/scalable/Makefile.in (+4/-1) data/icons/scalable/categories/Makefile.in (+4/-1) data/icons/scalable/status/Makefile.in (+4/-1) debian/changelog (+8/-0) m4/intltool.m4 (+237/-0) m4/libtool.m4 (+8001/-0) m4/ltoptions.m4 (+384/-0) m4/ltsugar.m4 (+123/-0) m4/ltversion.m4 (+23/-0) m4/lt~obsolete.m4 (+98/-0) src/Makefile.in (+4/-1) src/messages-service-dbus.c (+205/-0) src/messages-service.c (+49/-1) test/Makefile.in (+4/-1) |
||||||||||||||||||||||||||||
To merge this branch: | bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream | ||||||||||||||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Pending | ||
Review via email: mp+101016@code.launchpad.net |
Commit message
Description of the change
indicator-messages 0.5.95
* Fix 0.5.94 blacklist regression.
* Fix broken icon images in Thunderbird (LP: #956147)
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' |
2 | --- ChangeLog 2012-03-21 20:28:13 +0000 |
3 | +++ ChangeLog 2012-04-05 18:18:35 +0000 |
4 | @@ -1,5 +1,62 @@ |
5 | # Generated by Makefile. Do not edit. |
6 | |
7 | +2012-04-05 Charles Kerr <charles.kerr@canonical.com> |
8 | + |
9 | + 0.5.95 |
10 | + |
11 | +2012-04-05 Lars Uebernickel <lars.uebernickel@canonical.com> |
12 | + |
13 | + Merge the missing resort_menu fix |
14 | + |
15 | +2012-04-05 Lars Uebernickel <lars.uebernickel@canonical.com> |
16 | + |
17 | + messages-service.c: add missing resort_menu |
18 | + |
19 | + This might fix lp:856284, but I couldn't verify because I can't reproduce the |
20 | + bug. |
21 | + |
22 | +2012-04-04 Charles Kerr <charles.kerr@canonical.com> |
23 | + |
24 | + Merge lp:~larsu/indicator-messages/lp956147 to fix broken thunderbird message indicator icons. |
25 | + |
26 | + This is a refinement to r254, which set an empty icon so that shortcut labels ("compose new message", "contacts", etc.) are horizontally aligned with the labels of the applications they belong to. Apparently gtk2 sets a "broken" icon onto a GtkImage if gtk_image_set_from_icon_name() is passed an empty string, which caused the behavior seen in bug #956147. Adding an #ifdef is a short-term fix for removing that "broken" icon in gtk2 for 12.04. |
27 | + |
28 | + Xref: http://bazaar.launchpad.net/~indicator-applet-developers/indicator-messages/trunk.0.6/revision/254 |
29 | + Xref: https://code.launchpad.net/~larsu/indicator-messages/lp956147/+merge/100836 |
30 | + |
31 | +2012-04-04 Lars Uebernickel <lars.uebernickel@canonical.com> |
32 | + |
33 | + Workaround for lp #956147: don't show empty icons in the gtk2 version |
34 | + |
35 | +2012-04-04 Charles Kerr <charles.kerr@canonical.com> |
36 | + |
37 | + Merge lp:~larsu/indicator-messages/fix-blacklist-again to revert blacklist changes so that apps relying on the old behavior will work again. |
38 | + |
39 | + The new policy is: if a file in the blacklist folder is a symbolic link, use its target. If its filename ends on .desktop, use the file's basename (so that copying files works). Otherwise, use the contents of file (first line should contain path to a desktop file). |
40 | + |
41 | + Xref: bug #939258 and http://bazaar.launchpad.net/~indicator-applet-developers/indicator-messages/trunk.0.6/revision/259 |
42 | + |
43 | +2012-04-04 Lars Uebernickel <lars.uebernickel@canonical.com> |
44 | + |
45 | + messages-service.c: fix leak |
46 | + |
47 | +2012-04-04 Lars Uebernickel <lars.uebernickel@canonical.com> |
48 | + |
49 | + Revert blacklist changes make apps relying on old behavior work again |
50 | + |
51 | + The new policy is: if a file in the blacklist folder is a symbolic link, use |
52 | + its target. If its filename ends on .desktop, use the file's basename (so that |
53 | + copying files works). Otherwise, use the contents of file (first line should |
54 | + contain path to a desktop file). |
55 | + |
56 | +2012-03-21 Ted Gould <ted@gould.cx> |
57 | + |
58 | + Sync to trunk |
59 | + |
60 | +2012-03-21 Charles Kerr <charles.kerr@canonical.com> |
61 | + |
62 | + merge lp:~larsu/indicator-messages/fix-blacklist to fix lp bug #959258, messaging indicator not respecting blacklist |
63 | + |
64 | 2012-03-21 Ted Gould <ted@gould.cx> |
65 | |
66 | 0.5.94 |
67 | |
68 | === modified file 'INSTALL' |
69 | --- INSTALL 2011-07-08 14:22:51 +0000 |
70 | +++ INSTALL 2012-04-05 18:18:35 +0000 |
71 | @@ -1,8 +1,8 @@ |
72 | Installation Instructions |
73 | ************************* |
74 | |
75 | -Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, |
76 | -2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
77 | +Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, |
78 | +Inc. |
79 | |
80 | Copying and distribution of this file, with or without modification, |
81 | are permitted in any medium without royalty provided the copyright |
82 | @@ -226,6 +226,11 @@ |
83 | |
84 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. |
85 | |
86 | + HP-UX `make' updates targets which have the same time stamps as |
87 | +their prerequisites, which makes it generally unusable when shipped |
88 | +generated files such as `configure' are involved. Use GNU `make' |
89 | +instead. |
90 | + |
91 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot |
92 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as |
93 | a workaround. If GNU CC is not installed, it is therefore recommended |
94 | |
95 | === modified file 'Makefile.in' |
96 | --- Makefile.in 2012-03-21 20:28:13 +0000 |
97 | +++ Makefile.in 2012-04-05 18:18:35 +0000 |
98 | @@ -45,7 +45,10 @@ |
99 | config.sub depcomp install-sh ltmain.sh missing mkinstalldirs |
100 | subdir = . |
101 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
102 | -am__aclocal_m4_deps = $(top_srcdir)/m4/gcov.m4 \ |
103 | +am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ |
104 | + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
105 | + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ |
106 | + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/gcov.m4 \ |
107 | $(top_srcdir)/m4/gtest.m4 $(top_srcdir)/configure.ac |
108 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
109 | $(ACLOCAL_M4) |
110 | |
111 | === modified file 'aclocal.m4' |
112 | --- aclocal.m4 2012-03-08 20:23:34 +0000 |
113 | +++ aclocal.m4 2012-04-05 18:18:35 +0000 |
114 | @@ -457,8827 +457,6 @@ |
115 | fi]) |
116 | |
117 | |
118 | - |
119 | -dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
120 | -# serial 42 IT_PROG_INTLTOOL |
121 | -AC_DEFUN([IT_PROG_INTLTOOL], [ |
122 | -AC_PREREQ([2.50])dnl |
123 | -AC_REQUIRE([AM_NLS])dnl |
124 | - |
125 | -case "$am__api_version" in |
126 | - 1.[01234]) |
127 | - AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
128 | - ;; |
129 | - *) |
130 | - ;; |
131 | -esac |
132 | - |
133 | -INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
134 | -INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
135 | -INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
136 | -if test -n "$1"; then |
137 | - AC_MSG_CHECKING([for intltool >= $1]) |
138 | - AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
139 | - test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
140 | - AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
141 | -fi |
142 | - |
143 | -AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
144 | -AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
145 | -AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
146 | -if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
147 | - AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
148 | -fi |
149 | - |
150 | -if test -z "$AM_DEFAULT_VERBOSITY"; then |
151 | - AM_DEFAULT_VERBOSITY=1 |
152 | -fi |
153 | -AC_SUBST([AM_DEFAULT_VERBOSITY]) |
154 | - |
155 | -INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' |
156 | -INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' |
157 | -INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' |
158 | -AC_SUBST(INTLTOOL_V_MERGE) |
159 | -AC_SUBST(INTLTOOL__v_MERGE_) |
160 | -AC_SUBST(INTLTOOL__v_MERGE_0) |
161 | - |
162 | -INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' |
163 | -intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' |
164 | -intltool__v_merge_options_0='-q' |
165 | -AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) |
166 | -AC_SUBST(intltool__v_merge_options_) |
167 | -AC_SUBST(intltool__v_merge_options_0) |
168 | - |
169 | - INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
170 | -INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
171 | - INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
172 | - INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
173 | - INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' |
174 | - INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
175 | - INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
176 | - INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
177 | -INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
178 | - INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
179 | - INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
180 | -if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then |
181 | - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' |
182 | -else |
183 | - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' |
184 | -fi |
185 | - INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
186 | - INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
187 | - INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
188 | - INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
189 | - INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
190 | - INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
191 | - INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
192 | - |
193 | -_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
194 | -_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
195 | -_IT_SUBST(INTLTOOL_KEYS_RULE) |
196 | -_IT_SUBST(INTLTOOL_PROP_RULE) |
197 | -_IT_SUBST(INTLTOOL_OAF_RULE) |
198 | -_IT_SUBST(INTLTOOL_PONG_RULE) |
199 | -_IT_SUBST(INTLTOOL_SERVER_RULE) |
200 | -_IT_SUBST(INTLTOOL_SHEET_RULE) |
201 | -_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
202 | -_IT_SUBST(INTLTOOL_UI_RULE) |
203 | -_IT_SUBST(INTLTOOL_XAM_RULE) |
204 | -_IT_SUBST(INTLTOOL_KBD_RULE) |
205 | -_IT_SUBST(INTLTOOL_XML_RULE) |
206 | -_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
207 | -_IT_SUBST(INTLTOOL_CAVES_RULE) |
208 | -_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
209 | -_IT_SUBST(INTLTOOL_THEME_RULE) |
210 | -_IT_SUBST(INTLTOOL_SERVICE_RULE) |
211 | -_IT_SUBST(INTLTOOL_POLICY_RULE) |
212 | - |
213 | -# Check the gettext tools to make sure they are GNU |
214 | -AC_PATH_PROG(XGETTEXT, xgettext) |
215 | -AC_PATH_PROG(MSGMERGE, msgmerge) |
216 | -AC_PATH_PROG(MSGFMT, msgfmt) |
217 | -AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
218 | -if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
219 | - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
220 | -fi |
221 | -xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
222 | -mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
223 | -mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
224 | -if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
225 | - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
226 | -fi |
227 | - |
228 | -AC_PATH_PROG(INTLTOOL_PERL, perl) |
229 | -if test -z "$INTLTOOL_PERL"; then |
230 | - AC_MSG_ERROR([perl not found]) |
231 | -fi |
232 | -AC_MSG_CHECKING([for perl >= 5.8.1]) |
233 | -$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
234 | -if test $? -ne 0; then |
235 | - AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
236 | -else |
237 | - IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
238 | - AC_MSG_RESULT([$IT_PERL_VERSION]) |
239 | -fi |
240 | -if test "x$2" != "xno-xml"; then |
241 | - AC_MSG_CHECKING([for XML::Parser]) |
242 | - if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
243 | - AC_MSG_RESULT([ok]) |
244 | - else |
245 | - AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
246 | - fi |
247 | -fi |
248 | - |
249 | -# Substitute ALL_LINGUAS so we can use it in po/Makefile |
250 | -AC_SUBST(ALL_LINGUAS) |
251 | - |
252 | -# Set DATADIRNAME correctly if it is not set yet |
253 | -# (copied from glib-gettext.m4) |
254 | -if test -z "$DATADIRNAME"; then |
255 | - AC_LINK_IFELSE( |
256 | - [AC_LANG_PROGRAM([[]], |
257 | - [[extern int _nl_msg_cat_cntr; |
258 | - return _nl_msg_cat_cntr]])], |
259 | - [DATADIRNAME=share], |
260 | - [case $host in |
261 | - *-*-solaris*) |
262 | - dnl On Solaris, if bind_textdomain_codeset is in libc, |
263 | - dnl GNU format message catalog is always supported, |
264 | - dnl since both are added to the libc all together. |
265 | - dnl Hence, we'd like to go with DATADIRNAME=share |
266 | - dnl in this case. |
267 | - AC_CHECK_FUNC(bind_textdomain_codeset, |
268 | - [DATADIRNAME=share], [DATADIRNAME=lib]) |
269 | - ;; |
270 | - *) |
271 | - [DATADIRNAME=lib] |
272 | - ;; |
273 | - esac]) |
274 | -fi |
275 | -AC_SUBST(DATADIRNAME) |
276 | - |
277 | -IT_PO_SUBDIR([po]) |
278 | - |
279 | -]) |
280 | - |
281 | - |
282 | -# IT_PO_SUBDIR(DIRNAME) |
283 | -# --------------------- |
284 | -# All po subdirs have to be declared with this macro; the subdir "po" is |
285 | -# declared by IT_PROG_INTLTOOL. |
286 | -# |
287 | -AC_DEFUN([IT_PO_SUBDIR], |
288 | -[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
289 | -dnl |
290 | -dnl The following CONFIG_COMMANDS should be executed at the very end |
291 | -dnl of config.status. |
292 | -AC_CONFIG_COMMANDS_PRE([ |
293 | - AC_CONFIG_COMMANDS([$1/stamp-it], [ |
294 | - if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
295 | - AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
296 | - fi |
297 | - rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
298 | - >"$1/stamp-it.tmp" |
299 | - [sed '/^#/d |
300 | - s/^[[].*] *// |
301 | - /^[ ]*$/d |
302 | - '"s|^| $ac_top_srcdir/|" \ |
303 | - "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
304 | - ] |
305 | - [sed '/^POTFILES =/,/[^\\]$/ { |
306 | - /^POTFILES =/!d |
307 | - r $1/POTFILES |
308 | - } |
309 | - ' "$1/Makefile.in" >"$1/Makefile"] |
310 | - rm -f "$1/Makefile.tmp" |
311 | - mv "$1/stamp-it.tmp" "$1/stamp-it" |
312 | - ]) |
313 | -])dnl |
314 | -]) |
315 | - |
316 | -# _IT_SUBST(VARIABLE) |
317 | -# ------------------- |
318 | -# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
319 | -# |
320 | -AC_DEFUN([_IT_SUBST], |
321 | -[ |
322 | -AC_SUBST([$1]) |
323 | -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
324 | -] |
325 | -) |
326 | - |
327 | -# deprecated macros |
328 | -AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) |
329 | -# A hint is needed for aclocal from Automake <= 1.9.4: |
330 | -# AC_DEFUN([AC_PROG_INTLTOOL], ...) |
331 | - |
332 | - |
333 | -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
334 | -# |
335 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
336 | -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
337 | -# Foundation, Inc. |
338 | -# Written by Gordon Matzigkeit, 1996 |
339 | -# |
340 | -# This file is free software; the Free Software Foundation gives |
341 | -# unlimited permission to copy and/or distribute it, with or without |
342 | -# modifications, as long as this notice is preserved. |
343 | - |
344 | -m4_define([_LT_COPYING], [dnl |
345 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
346 | -# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
347 | -# Foundation, Inc. |
348 | -# Written by Gordon Matzigkeit, 1996 |
349 | -# |
350 | -# This file is part of GNU Libtool. |
351 | -# |
352 | -# GNU Libtool is free software; you can redistribute it and/or |
353 | -# modify it under the terms of the GNU General Public License as |
354 | -# published by the Free Software Foundation; either version 2 of |
355 | -# the License, or (at your option) any later version. |
356 | -# |
357 | -# As a special exception to the GNU General Public License, |
358 | -# if you distribute this file as part of a program or library that |
359 | -# is built using GNU Libtool, you may include this file under the |
360 | -# same distribution terms that you use for the rest of that program. |
361 | -# |
362 | -# GNU Libtool is distributed in the hope that it will be useful, |
363 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
364 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
365 | -# GNU General Public License for more details. |
366 | -# |
367 | -# You should have received a copy of the GNU General Public License |
368 | -# along with GNU Libtool; see the file COPYING. If not, a copy |
369 | -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
370 | -# obtained by writing to the Free Software Foundation, Inc., |
371 | -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
372 | -]) |
373 | - |
374 | -# serial 57 LT_INIT |
375 | - |
376 | - |
377 | -# LT_PREREQ(VERSION) |
378 | -# ------------------ |
379 | -# Complain and exit if this libtool version is less that VERSION. |
380 | -m4_defun([LT_PREREQ], |
381 | -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
382 | - [m4_default([$3], |
383 | - [m4_fatal([Libtool version $1 or higher is required], |
384 | - 63)])], |
385 | - [$2])]) |
386 | - |
387 | - |
388 | -# _LT_CHECK_BUILDDIR |
389 | -# ------------------ |
390 | -# Complain if the absolute build directory name contains unusual characters |
391 | -m4_defun([_LT_CHECK_BUILDDIR], |
392 | -[case `pwd` in |
393 | - *\ * | *\ *) |
394 | - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
395 | -esac |
396 | -]) |
397 | - |
398 | - |
399 | -# LT_INIT([OPTIONS]) |
400 | -# ------------------ |
401 | -AC_DEFUN([LT_INIT], |
402 | -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
403 | -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
404 | -AC_BEFORE([$0], [LT_LANG])dnl |
405 | -AC_BEFORE([$0], [LT_OUTPUT])dnl |
406 | -AC_BEFORE([$0], [LTDL_INIT])dnl |
407 | -m4_require([_LT_CHECK_BUILDDIR])dnl |
408 | - |
409 | -dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
410 | -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
411 | -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
412 | -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
413 | -dnl unless we require an AC_DEFUNed macro: |
414 | -AC_REQUIRE([LTOPTIONS_VERSION])dnl |
415 | -AC_REQUIRE([LTSUGAR_VERSION])dnl |
416 | -AC_REQUIRE([LTVERSION_VERSION])dnl |
417 | -AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
418 | -m4_require([_LT_PROG_LTMAIN])dnl |
419 | - |
420 | -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
421 | - |
422 | -dnl Parse OPTIONS |
423 | -_LT_SET_OPTIONS([$0], [$1]) |
424 | - |
425 | -# This can be used to rebuild libtool when needed |
426 | -LIBTOOL_DEPS="$ltmain" |
427 | - |
428 | -# Always use our own libtool. |
429 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
430 | -AC_SUBST(LIBTOOL)dnl |
431 | - |
432 | -_LT_SETUP |
433 | - |
434 | -# Only expand once: |
435 | -m4_define([LT_INIT]) |
436 | -])# LT_INIT |
437 | - |
438 | -# Old names: |
439 | -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
440 | -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
441 | -dnl aclocal-1.4 backwards compatibility: |
442 | -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
443 | -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
444 | - |
445 | - |
446 | -# _LT_CC_BASENAME(CC) |
447 | -# ------------------- |
448 | -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
449 | -m4_defun([_LT_CC_BASENAME], |
450 | -[for cc_temp in $1""; do |
451 | - case $cc_temp in |
452 | - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
453 | - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
454 | - \-*) ;; |
455 | - *) break;; |
456 | - esac |
457 | -done |
458 | -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
459 | -]) |
460 | - |
461 | - |
462 | -# _LT_FILEUTILS_DEFAULTS |
463 | -# ---------------------- |
464 | -# It is okay to use these file commands and assume they have been set |
465 | -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
466 | -m4_defun([_LT_FILEUTILS_DEFAULTS], |
467 | -[: ${CP="cp -f"} |
468 | -: ${MV="mv -f"} |
469 | -: ${RM="rm -f"} |
470 | -])# _LT_FILEUTILS_DEFAULTS |
471 | - |
472 | - |
473 | -# _LT_SETUP |
474 | -# --------- |
475 | -m4_defun([_LT_SETUP], |
476 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
477 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
478 | -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
479 | -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
480 | - |
481 | -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
482 | -dnl |
483 | -_LT_DECL([], [host_alias], [0], [The host system])dnl |
484 | -_LT_DECL([], [host], [0])dnl |
485 | -_LT_DECL([], [host_os], [0])dnl |
486 | -dnl |
487 | -_LT_DECL([], [build_alias], [0], [The build system])dnl |
488 | -_LT_DECL([], [build], [0])dnl |
489 | -_LT_DECL([], [build_os], [0])dnl |
490 | -dnl |
491 | -AC_REQUIRE([AC_PROG_CC])dnl |
492 | -AC_REQUIRE([LT_PATH_LD])dnl |
493 | -AC_REQUIRE([LT_PATH_NM])dnl |
494 | -dnl |
495 | -AC_REQUIRE([AC_PROG_LN_S])dnl |
496 | -test -z "$LN_S" && LN_S="ln -s" |
497 | -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
498 | -dnl |
499 | -AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
500 | -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
501 | -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
502 | -dnl |
503 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
504 | -m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
505 | -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
506 | -m4_require([_LT_CMD_RELOAD])dnl |
507 | -m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
508 | -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
509 | -m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
510 | -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
511 | -m4_require([_LT_WITH_SYSROOT])dnl |
512 | - |
513 | -_LT_CONFIG_LIBTOOL_INIT([ |
514 | -# See if we are running on zsh, and set the options which allow our |
515 | -# commands through without removal of \ escapes INIT. |
516 | -if test -n "\${ZSH_VERSION+set}" ; then |
517 | - setopt NO_GLOB_SUBST |
518 | -fi |
519 | -]) |
520 | -if test -n "${ZSH_VERSION+set}" ; then |
521 | - setopt NO_GLOB_SUBST |
522 | -fi |
523 | - |
524 | -_LT_CHECK_OBJDIR |
525 | - |
526 | -m4_require([_LT_TAG_COMPILER])dnl |
527 | - |
528 | -case $host_os in |
529 | -aix3*) |
530 | - # AIX sometimes has problems with the GCC collect2 program. For some |
531 | - # reason, if we set the COLLECT_NAMES environment variable, the problems |
532 | - # vanish in a puff of smoke. |
533 | - if test "X${COLLECT_NAMES+set}" != Xset; then |
534 | - COLLECT_NAMES= |
535 | - export COLLECT_NAMES |
536 | - fi |
537 | - ;; |
538 | -esac |
539 | - |
540 | -# Global variables: |
541 | -ofile=libtool |
542 | -can_build_shared=yes |
543 | - |
544 | -# All known linkers require a `.a' archive for static linking (except MSVC, |
545 | -# which needs '.lib'). |
546 | -libext=a |
547 | - |
548 | -with_gnu_ld="$lt_cv_prog_gnu_ld" |
549 | - |
550 | -old_CC="$CC" |
551 | -old_CFLAGS="$CFLAGS" |
552 | - |
553 | -# Set sane defaults for various variables |
554 | -test -z "$CC" && CC=cc |
555 | -test -z "$LTCC" && LTCC=$CC |
556 | -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
557 | -test -z "$LD" && LD=ld |
558 | -test -z "$ac_objext" && ac_objext=o |
559 | - |
560 | -_LT_CC_BASENAME([$compiler]) |
561 | - |
562 | -# Only perform the check for file, if the check method requires it |
563 | -test -z "$MAGIC_CMD" && MAGIC_CMD=file |
564 | -case $deplibs_check_method in |
565 | -file_magic*) |
566 | - if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
567 | - _LT_PATH_MAGIC |
568 | - fi |
569 | - ;; |
570 | -esac |
571 | - |
572 | -# Use C for the default configuration in the libtool script |
573 | -LT_SUPPORTED_TAG([CC]) |
574 | -_LT_LANG_C_CONFIG |
575 | -_LT_LANG_DEFAULT_CONFIG |
576 | -_LT_CONFIG_COMMANDS |
577 | -])# _LT_SETUP |
578 | - |
579 | - |
580 | -# _LT_PREPARE_SED_QUOTE_VARS |
581 | -# -------------------------- |
582 | -# Define a few sed substitution that help us do robust quoting. |
583 | -m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
584 | -[# Backslashify metacharacters that are still active within |
585 | -# double-quoted strings. |
586 | -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
587 | - |
588 | -# Same as above, but do not quote variable references. |
589 | -double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
590 | - |
591 | -# Sed substitution to delay expansion of an escaped shell variable in a |
592 | -# double_quote_subst'ed string. |
593 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
594 | - |
595 | -# Sed substitution to delay expansion of an escaped single quote. |
596 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
597 | - |
598 | -# Sed substitution to avoid accidental globbing in evaled expressions |
599 | -no_glob_subst='s/\*/\\\*/g' |
600 | -]) |
601 | - |
602 | -# _LT_PROG_LTMAIN |
603 | -# --------------- |
604 | -# Note that this code is called both from `configure', and `config.status' |
605 | -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
606 | -# `config.status' has no value for ac_aux_dir unless we are using Automake, |
607 | -# so we pass a copy along to make sure it has a sensible value anyway. |
608 | -m4_defun([_LT_PROG_LTMAIN], |
609 | -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
610 | -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
611 | -ltmain="$ac_aux_dir/ltmain.sh" |
612 | -])# _LT_PROG_LTMAIN |
613 | - |
614 | - |
615 | - |
616 | -# So that we can recreate a full libtool script including additional |
617 | -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
618 | -# in macros and then make a single call at the end using the `libtool' |
619 | -# label. |
620 | - |
621 | - |
622 | -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
623 | -# ---------------------------------------- |
624 | -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
625 | -m4_define([_LT_CONFIG_LIBTOOL_INIT], |
626 | -[m4_ifval([$1], |
627 | - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
628 | - [$1 |
629 | -])])]) |
630 | - |
631 | -# Initialize. |
632 | -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
633 | - |
634 | - |
635 | -# _LT_CONFIG_LIBTOOL([COMMANDS]) |
636 | -# ------------------------------ |
637 | -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
638 | -m4_define([_LT_CONFIG_LIBTOOL], |
639 | -[m4_ifval([$1], |
640 | - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
641 | - [$1 |
642 | -])])]) |
643 | - |
644 | -# Initialize. |
645 | -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
646 | - |
647 | - |
648 | -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
649 | -# ----------------------------------------------------- |
650 | -m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
651 | -[_LT_CONFIG_LIBTOOL([$1]) |
652 | -_LT_CONFIG_LIBTOOL_INIT([$2]) |
653 | -]) |
654 | - |
655 | - |
656 | -# _LT_FORMAT_COMMENT([COMMENT]) |
657 | -# ----------------------------- |
658 | -# Add leading comment marks to the start of each line, and a trailing |
659 | -# full-stop to the whole comment if one is not present already. |
660 | -m4_define([_LT_FORMAT_COMMENT], |
661 | -[m4_ifval([$1], [ |
662 | -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
663 | - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
664 | -)]) |
665 | - |
666 | - |
667 | - |
668 | - |
669 | - |
670 | -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
671 | -# ------------------------------------------------------------------- |
672 | -# CONFIGNAME is the name given to the value in the libtool script. |
673 | -# VARNAME is the (base) name used in the configure script. |
674 | -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
675 | -# VARNAME. Any other value will be used directly. |
676 | -m4_define([_LT_DECL], |
677 | -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
678 | - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
679 | - [m4_ifval([$1], [$1], [$2])]) |
680 | - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
681 | - m4_ifval([$4], |
682 | - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
683 | - lt_dict_add_subkey([lt_decl_dict], [$2], |
684 | - [tagged?], [m4_ifval([$5], [yes], [no])])]) |
685 | -]) |
686 | - |
687 | - |
688 | -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
689 | -# -------------------------------------------------------- |
690 | -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
691 | - |
692 | - |
693 | -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
694 | -# ------------------------------------------------ |
695 | -m4_define([lt_decl_tag_varnames], |
696 | -[_lt_decl_filter([tagged?], [yes], $@)]) |
697 | - |
698 | - |
699 | -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
700 | -# --------------------------------------------------------- |
701 | -m4_define([_lt_decl_filter], |
702 | -[m4_case([$#], |
703 | - [0], [m4_fatal([$0: too few arguments: $#])], |
704 | - [1], [m4_fatal([$0: too few arguments: $#: $1])], |
705 | - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
706 | - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
707 | - [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
708 | -]) |
709 | - |
710 | - |
711 | -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
712 | -# -------------------------------------------------- |
713 | -m4_define([lt_decl_quote_varnames], |
714 | -[_lt_decl_filter([value], [1], $@)]) |
715 | - |
716 | - |
717 | -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
718 | -# --------------------------------------------------- |
719 | -m4_define([lt_decl_dquote_varnames], |
720 | -[_lt_decl_filter([value], [2], $@)]) |
721 | - |
722 | - |
723 | -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
724 | -# --------------------------------------------------- |
725 | -m4_define([lt_decl_varnames_tagged], |
726 | -[m4_assert([$# <= 2])dnl |
727 | -_$0(m4_quote(m4_default([$1], [[, ]])), |
728 | - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
729 | - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
730 | -m4_define([_lt_decl_varnames_tagged], |
731 | -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
732 | - |
733 | - |
734 | -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
735 | -# ------------------------------------------------ |
736 | -m4_define([lt_decl_all_varnames], |
737 | -[_$0(m4_quote(m4_default([$1], [[, ]])), |
738 | - m4_if([$2], [], |
739 | - m4_quote(lt_decl_varnames), |
740 | - m4_quote(m4_shift($@))))[]dnl |
741 | -]) |
742 | -m4_define([_lt_decl_all_varnames], |
743 | -[lt_join($@, lt_decl_varnames_tagged([$1], |
744 | - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
745 | -]) |
746 | - |
747 | - |
748 | -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
749 | -# ------------------------------------ |
750 | -# Quote a variable value, and forward it to `config.status' so that its |
751 | -# declaration there will have the same value as in `configure'. VARNAME |
752 | -# must have a single quote delimited value for this to work. |
753 | -m4_define([_LT_CONFIG_STATUS_DECLARE], |
754 | -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
755 | - |
756 | - |
757 | -# _LT_CONFIG_STATUS_DECLARATIONS |
758 | -# ------------------------------ |
759 | -# We delimit libtool config variables with single quotes, so when |
760 | -# we write them to config.status, we have to be sure to quote all |
761 | -# embedded single quotes properly. In configure, this macro expands |
762 | -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
763 | -# |
764 | -# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
765 | -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
766 | -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
767 | - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
768 | - |
769 | - |
770 | -# _LT_LIBTOOL_TAGS |
771 | -# ---------------- |
772 | -# Output comment and list of tags supported by the script |
773 | -m4_defun([_LT_LIBTOOL_TAGS], |
774 | -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
775 | -available_tags="_LT_TAGS"dnl |
776 | -]) |
777 | - |
778 | - |
779 | -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
780 | -# ----------------------------------- |
781 | -# Extract the dictionary values for VARNAME (optionally with TAG) and |
782 | -# expand to a commented shell variable setting: |
783 | -# |
784 | -# # Some comment about what VAR is for. |
785 | -# visible_name=$lt_internal_name |
786 | -m4_define([_LT_LIBTOOL_DECLARE], |
787 | -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
788 | - [description])))[]dnl |
789 | -m4_pushdef([_libtool_name], |
790 | - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
791 | -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
792 | - [0], [_libtool_name=[$]$1], |
793 | - [1], [_libtool_name=$lt_[]$1], |
794 | - [2], [_libtool_name=$lt_[]$1], |
795 | - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
796 | -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
797 | -]) |
798 | - |
799 | - |
800 | -# _LT_LIBTOOL_CONFIG_VARS |
801 | -# ----------------------- |
802 | -# Produce commented declarations of non-tagged libtool config variables |
803 | -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
804 | -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
805 | -# section) are produced by _LT_LIBTOOL_TAG_VARS. |
806 | -m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
807 | -[m4_foreach([_lt_var], |
808 | - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
809 | - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
810 | - |
811 | - |
812 | -# _LT_LIBTOOL_TAG_VARS(TAG) |
813 | -# ------------------------- |
814 | -m4_define([_LT_LIBTOOL_TAG_VARS], |
815 | -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
816 | - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
817 | - |
818 | - |
819 | -# _LT_TAGVAR(VARNAME, [TAGNAME]) |
820 | -# ------------------------------ |
821 | -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
822 | - |
823 | - |
824 | -# _LT_CONFIG_COMMANDS |
825 | -# ------------------- |
826 | -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
827 | -# variables for single and double quote escaping we saved from calls |
828 | -# to _LT_DECL, we can put quote escaped variables declarations |
829 | -# into `config.status', and then the shell code to quote escape them in |
830 | -# for loops in `config.status'. Finally, any additional code accumulated |
831 | -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
832 | -m4_defun([_LT_CONFIG_COMMANDS], |
833 | -[AC_PROVIDE_IFELSE([LT_OUTPUT], |
834 | - dnl If the libtool generation code has been placed in $CONFIG_LT, |
835 | - dnl instead of duplicating it all over again into config.status, |
836 | - dnl then we will have config.status run $CONFIG_LT later, so it |
837 | - dnl needs to know what name is stored there: |
838 | - [AC_CONFIG_COMMANDS([libtool], |
839 | - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
840 | - dnl If the libtool generation code is destined for config.status, |
841 | - dnl expand the accumulated commands and init code now: |
842 | - [AC_CONFIG_COMMANDS([libtool], |
843 | - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
844 | -])#_LT_CONFIG_COMMANDS |
845 | - |
846 | - |
847 | -# Initialize. |
848 | -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
849 | -[ |
850 | - |
851 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
852 | -# if CDPATH is set. |
853 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
854 | - |
855 | -sed_quote_subst='$sed_quote_subst' |
856 | -double_quote_subst='$double_quote_subst' |
857 | -delay_variable_subst='$delay_variable_subst' |
858 | -_LT_CONFIG_STATUS_DECLARATIONS |
859 | -LTCC='$LTCC' |
860 | -LTCFLAGS='$LTCFLAGS' |
861 | -compiler='$compiler_DEFAULT' |
862 | - |
863 | -# A function that is used when there is no print builtin or printf. |
864 | -func_fallback_echo () |
865 | -{ |
866 | - eval 'cat <<_LTECHO_EOF |
867 | -\$[]1 |
868 | -_LTECHO_EOF' |
869 | -} |
870 | - |
871 | -# Quote evaled strings. |
872 | -for var in lt_decl_all_varnames([[ \ |
873 | -]], lt_decl_quote_varnames); do |
874 | - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
875 | - *[[\\\\\\\`\\"\\\$]]*) |
876 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
877 | - ;; |
878 | - *) |
879 | - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
880 | - ;; |
881 | - esac |
882 | -done |
883 | - |
884 | -# Double-quote double-evaled strings. |
885 | -for var in lt_decl_all_varnames([[ \ |
886 | -]], lt_decl_dquote_varnames); do |
887 | - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
888 | - *[[\\\\\\\`\\"\\\$]]*) |
889 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
890 | - ;; |
891 | - *) |
892 | - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
893 | - ;; |
894 | - esac |
895 | -done |
896 | - |
897 | -_LT_OUTPUT_LIBTOOL_INIT |
898 | -]) |
899 | - |
900 | -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
901 | -# ------------------------------------ |
902 | -# Generate a child script FILE with all initialization necessary to |
903 | -# reuse the environment learned by the parent script, and make the |
904 | -# file executable. If COMMENT is supplied, it is inserted after the |
905 | -# `#!' sequence but before initialization text begins. After this |
906 | -# macro, additional text can be appended to FILE to form the body of |
907 | -# the child script. The macro ends with non-zero status if the |
908 | -# file could not be fully written (such as if the disk is full). |
909 | -m4_ifdef([AS_INIT_GENERATED], |
910 | -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
911 | -[m4_defun([_LT_GENERATED_FILE_INIT], |
912 | -[m4_require([AS_PREPARE])]dnl |
913 | -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
914 | -[lt_write_fail=0 |
915 | -cat >$1 <<_ASEOF || lt_write_fail=1 |
916 | -#! $SHELL |
917 | -# Generated by $as_me. |
918 | -$2 |
919 | -SHELL=\${CONFIG_SHELL-$SHELL} |
920 | -export SHELL |
921 | -_ASEOF |
922 | -cat >>$1 <<\_ASEOF || lt_write_fail=1 |
923 | -AS_SHELL_SANITIZE |
924 | -_AS_PREPARE |
925 | -exec AS_MESSAGE_FD>&1 |
926 | -_ASEOF |
927 | -test $lt_write_fail = 0 && chmod +x $1[]dnl |
928 | -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
929 | - |
930 | -# LT_OUTPUT |
931 | -# --------- |
932 | -# This macro allows early generation of the libtool script (before |
933 | -# AC_OUTPUT is called), incase it is used in configure for compilation |
934 | -# tests. |
935 | -AC_DEFUN([LT_OUTPUT], |
936 | -[: ${CONFIG_LT=./config.lt} |
937 | -AC_MSG_NOTICE([creating $CONFIG_LT]) |
938 | -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
939 | -[# Run this file to recreate a libtool stub with the current configuration.]) |
940 | - |
941 | -cat >>"$CONFIG_LT" <<\_LTEOF |
942 | -lt_cl_silent=false |
943 | -exec AS_MESSAGE_LOG_FD>>config.log |
944 | -{ |
945 | - echo |
946 | - AS_BOX([Running $as_me.]) |
947 | -} >&AS_MESSAGE_LOG_FD |
948 | - |
949 | -lt_cl_help="\ |
950 | -\`$as_me' creates a local libtool stub from the current configuration, |
951 | -for use in further configure time tests before the real libtool is |
952 | -generated. |
953 | - |
954 | -Usage: $[0] [[OPTIONS]] |
955 | - |
956 | - -h, --help print this help, then exit |
957 | - -V, --version print version number, then exit |
958 | - -q, --quiet do not print progress messages |
959 | - -d, --debug don't remove temporary files |
960 | - |
961 | -Report bugs to <bug-libtool@gnu.org>." |
962 | - |
963 | -lt_cl_version="\ |
964 | -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
965 | -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
966 | -configured by $[0], generated by m4_PACKAGE_STRING. |
967 | - |
968 | -Copyright (C) 2011 Free Software Foundation, Inc. |
969 | -This config.lt script is free software; the Free Software Foundation |
970 | -gives unlimited permision to copy, distribute and modify it." |
971 | - |
972 | -while test $[#] != 0 |
973 | -do |
974 | - case $[1] in |
975 | - --version | --v* | -V ) |
976 | - echo "$lt_cl_version"; exit 0 ;; |
977 | - --help | --h* | -h ) |
978 | - echo "$lt_cl_help"; exit 0 ;; |
979 | - --debug | --d* | -d ) |
980 | - debug=: ;; |
981 | - --quiet | --q* | --silent | --s* | -q ) |
982 | - lt_cl_silent=: ;; |
983 | - |
984 | - -*) AC_MSG_ERROR([unrecognized option: $[1] |
985 | -Try \`$[0] --help' for more information.]) ;; |
986 | - |
987 | - *) AC_MSG_ERROR([unrecognized argument: $[1] |
988 | -Try \`$[0] --help' for more information.]) ;; |
989 | - esac |
990 | - shift |
991 | -done |
992 | - |
993 | -if $lt_cl_silent; then |
994 | - exec AS_MESSAGE_FD>/dev/null |
995 | -fi |
996 | -_LTEOF |
997 | - |
998 | -cat >>"$CONFIG_LT" <<_LTEOF |
999 | -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
1000 | -_LTEOF |
1001 | - |
1002 | -cat >>"$CONFIG_LT" <<\_LTEOF |
1003 | -AC_MSG_NOTICE([creating $ofile]) |
1004 | -_LT_OUTPUT_LIBTOOL_COMMANDS |
1005 | -AS_EXIT(0) |
1006 | -_LTEOF |
1007 | -chmod +x "$CONFIG_LT" |
1008 | - |
1009 | -# configure is writing to config.log, but config.lt does its own redirection, |
1010 | -# appending to config.log, which fails on DOS, as config.log is still kept |
1011 | -# open by configure. Here we exec the FD to /dev/null, effectively closing |
1012 | -# config.log, so it can be properly (re)opened and appended to by config.lt. |
1013 | -lt_cl_success=: |
1014 | -test "$silent" = yes && |
1015 | - lt_config_lt_args="$lt_config_lt_args --quiet" |
1016 | -exec AS_MESSAGE_LOG_FD>/dev/null |
1017 | -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
1018 | -exec AS_MESSAGE_LOG_FD>>config.log |
1019 | -$lt_cl_success || AS_EXIT(1) |
1020 | -])# LT_OUTPUT |
1021 | - |
1022 | - |
1023 | -# _LT_CONFIG(TAG) |
1024 | -# --------------- |
1025 | -# If TAG is the built-in tag, create an initial libtool script with a |
1026 | -# default configuration from the untagged config vars. Otherwise add code |
1027 | -# to config.status for appending the configuration named by TAG from the |
1028 | -# matching tagged config vars. |
1029 | -m4_defun([_LT_CONFIG], |
1030 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1031 | -_LT_CONFIG_SAVE_COMMANDS([ |
1032 | - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
1033 | - m4_if(_LT_TAG, [C], [ |
1034 | - # See if we are running on zsh, and set the options which allow our |
1035 | - # commands through without removal of \ escapes. |
1036 | - if test -n "${ZSH_VERSION+set}" ; then |
1037 | - setopt NO_GLOB_SUBST |
1038 | - fi |
1039 | - |
1040 | - cfgfile="${ofile}T" |
1041 | - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
1042 | - $RM "$cfgfile" |
1043 | - |
1044 | - cat <<_LT_EOF >> "$cfgfile" |
1045 | -#! $SHELL |
1046 | - |
1047 | -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
1048 | -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1049 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
1050 | -# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
1051 | -# |
1052 | -_LT_COPYING |
1053 | -_LT_LIBTOOL_TAGS |
1054 | - |
1055 | -# ### BEGIN LIBTOOL CONFIG |
1056 | -_LT_LIBTOOL_CONFIG_VARS |
1057 | -_LT_LIBTOOL_TAG_VARS |
1058 | -# ### END LIBTOOL CONFIG |
1059 | - |
1060 | -_LT_EOF |
1061 | - |
1062 | - case $host_os in |
1063 | - aix3*) |
1064 | - cat <<\_LT_EOF >> "$cfgfile" |
1065 | -# AIX sometimes has problems with the GCC collect2 program. For some |
1066 | -# reason, if we set the COLLECT_NAMES environment variable, the problems |
1067 | -# vanish in a puff of smoke. |
1068 | -if test "X${COLLECT_NAMES+set}" != Xset; then |
1069 | - COLLECT_NAMES= |
1070 | - export COLLECT_NAMES |
1071 | -fi |
1072 | -_LT_EOF |
1073 | - ;; |
1074 | - esac |
1075 | - |
1076 | - _LT_PROG_LTMAIN |
1077 | - |
1078 | - # We use sed instead of cat because bash on DJGPP gets confused if |
1079 | - # if finds mixed CR/LF and LF-only lines. Since sed operates in |
1080 | - # text mode, it properly converts lines to CR/LF. This bash problem |
1081 | - # is reportedly fixed, but why not run on old versions too? |
1082 | - sed '$q' "$ltmain" >> "$cfgfile" \ |
1083 | - || (rm -f "$cfgfile"; exit 1) |
1084 | - |
1085 | - _LT_PROG_REPLACE_SHELLFNS |
1086 | - |
1087 | - mv -f "$cfgfile" "$ofile" || |
1088 | - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
1089 | - chmod +x "$ofile" |
1090 | -], |
1091 | -[cat <<_LT_EOF >> "$ofile" |
1092 | - |
1093 | -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
1094 | -dnl in a comment (ie after a #). |
1095 | -# ### BEGIN LIBTOOL TAG CONFIG: $1 |
1096 | -_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
1097 | -# ### END LIBTOOL TAG CONFIG: $1 |
1098 | -_LT_EOF |
1099 | -])dnl /m4_if |
1100 | -], |
1101 | -[m4_if([$1], [], [ |
1102 | - PACKAGE='$PACKAGE' |
1103 | - VERSION='$VERSION' |
1104 | - TIMESTAMP='$TIMESTAMP' |
1105 | - RM='$RM' |
1106 | - ofile='$ofile'], []) |
1107 | -])dnl /_LT_CONFIG_SAVE_COMMANDS |
1108 | -])# _LT_CONFIG |
1109 | - |
1110 | - |
1111 | -# LT_SUPPORTED_TAG(TAG) |
1112 | -# --------------------- |
1113 | -# Trace this macro to discover what tags are supported by the libtool |
1114 | -# --tag option, using: |
1115 | -# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
1116 | -AC_DEFUN([LT_SUPPORTED_TAG], []) |
1117 | - |
1118 | - |
1119 | -# C support is built-in for now |
1120 | -m4_define([_LT_LANG_C_enabled], []) |
1121 | -m4_define([_LT_TAGS], []) |
1122 | - |
1123 | - |
1124 | -# LT_LANG(LANG) |
1125 | -# ------------- |
1126 | -# Enable libtool support for the given language if not already enabled. |
1127 | -AC_DEFUN([LT_LANG], |
1128 | -[AC_BEFORE([$0], [LT_OUTPUT])dnl |
1129 | -m4_case([$1], |
1130 | - [C], [_LT_LANG(C)], |
1131 | - [C++], [_LT_LANG(CXX)], |
1132 | - [Go], [_LT_LANG(GO)], |
1133 | - [Java], [_LT_LANG(GCJ)], |
1134 | - [Fortran 77], [_LT_LANG(F77)], |
1135 | - [Fortran], [_LT_LANG(FC)], |
1136 | - [Windows Resource], [_LT_LANG(RC)], |
1137 | - [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
1138 | - [_LT_LANG($1)], |
1139 | - [m4_fatal([$0: unsupported language: "$1"])])])dnl |
1140 | -])# LT_LANG |
1141 | - |
1142 | - |
1143 | -# _LT_LANG(LANGNAME) |
1144 | -# ------------------ |
1145 | -m4_defun([_LT_LANG], |
1146 | -[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
1147 | - [LT_SUPPORTED_TAG([$1])dnl |
1148 | - m4_append([_LT_TAGS], [$1 ])dnl |
1149 | - m4_define([_LT_LANG_]$1[_enabled], [])dnl |
1150 | - _LT_LANG_$1_CONFIG($1)])dnl |
1151 | -])# _LT_LANG |
1152 | - |
1153 | - |
1154 | -m4_ifndef([AC_PROG_GO], [ |
1155 | -# NOTE: This macro has been submitted for inclusion into # |
1156 | -# GNU Autoconf as AC_PROG_GO. When it is available in # |
1157 | -# a released version of Autoconf we should remove this # |
1158 | -# macro and use it instead. # |
1159 | -m4_defun([AC_PROG_GO], |
1160 | -[AC_LANG_PUSH(Go)dnl |
1161 | -AC_ARG_VAR([GOC], [Go compiler command])dnl |
1162 | -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
1163 | -_AC_ARG_VAR_LDFLAGS()dnl |
1164 | -AC_CHECK_TOOL(GOC, gccgo) |
1165 | -if test -z "$GOC"; then |
1166 | - if test -n "$ac_tool_prefix"; then |
1167 | - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
1168 | - fi |
1169 | -fi |
1170 | -if test -z "$GOC"; then |
1171 | - AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
1172 | -fi |
1173 | -])#m4_defun |
1174 | -])#m4_ifndef |
1175 | - |
1176 | - |
1177 | -# _LT_LANG_DEFAULT_CONFIG |
1178 | -# ----------------------- |
1179 | -m4_defun([_LT_LANG_DEFAULT_CONFIG], |
1180 | -[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
1181 | - [LT_LANG(CXX)], |
1182 | - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
1183 | - |
1184 | -AC_PROVIDE_IFELSE([AC_PROG_F77], |
1185 | - [LT_LANG(F77)], |
1186 | - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
1187 | - |
1188 | -AC_PROVIDE_IFELSE([AC_PROG_FC], |
1189 | - [LT_LANG(FC)], |
1190 | - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
1191 | - |
1192 | -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
1193 | -dnl pulling things in needlessly. |
1194 | -AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
1195 | - [LT_LANG(GCJ)], |
1196 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
1197 | - [LT_LANG(GCJ)], |
1198 | - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
1199 | - [LT_LANG(GCJ)], |
1200 | - [m4_ifdef([AC_PROG_GCJ], |
1201 | - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
1202 | - m4_ifdef([A][M_PROG_GCJ], |
1203 | - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
1204 | - m4_ifdef([LT_PROG_GCJ], |
1205 | - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
1206 | - |
1207 | -AC_PROVIDE_IFELSE([AC_PROG_GO], |
1208 | - [LT_LANG(GO)], |
1209 | - [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
1210 | - |
1211 | -AC_PROVIDE_IFELSE([LT_PROG_RC], |
1212 | - [LT_LANG(RC)], |
1213 | - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
1214 | -])# _LT_LANG_DEFAULT_CONFIG |
1215 | - |
1216 | -# Obsolete macros: |
1217 | -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
1218 | -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1219 | -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1220 | -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1221 | -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
1222 | -dnl aclocal-1.4 backwards compatibility: |
1223 | -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1224 | -dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1225 | -dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1226 | -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1227 | -dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
1228 | - |
1229 | - |
1230 | -# _LT_TAG_COMPILER |
1231 | -# ---------------- |
1232 | -m4_defun([_LT_TAG_COMPILER], |
1233 | -[AC_REQUIRE([AC_PROG_CC])dnl |
1234 | - |
1235 | -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
1236 | -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
1237 | -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
1238 | -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
1239 | - |
1240 | -# If no C compiler was specified, use CC. |
1241 | -LTCC=${LTCC-"$CC"} |
1242 | - |
1243 | -# If no C compiler flags were specified, use CFLAGS. |
1244 | -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
1245 | - |
1246 | -# Allow CC to be a program name with arguments. |
1247 | -compiler=$CC |
1248 | -])# _LT_TAG_COMPILER |
1249 | - |
1250 | - |
1251 | -# _LT_COMPILER_BOILERPLATE |
1252 | -# ------------------------ |
1253 | -# Check for compiler boilerplate output or warnings with |
1254 | -# the simple compiler test code. |
1255 | -m4_defun([_LT_COMPILER_BOILERPLATE], |
1256 | -[m4_require([_LT_DECL_SED])dnl |
1257 | -ac_outfile=conftest.$ac_objext |
1258 | -echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
1259 | -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1260 | -_lt_compiler_boilerplate=`cat conftest.err` |
1261 | -$RM conftest* |
1262 | -])# _LT_COMPILER_BOILERPLATE |
1263 | - |
1264 | - |
1265 | -# _LT_LINKER_BOILERPLATE |
1266 | -# ---------------------- |
1267 | -# Check for linker boilerplate output or warnings with |
1268 | -# the simple link test code. |
1269 | -m4_defun([_LT_LINKER_BOILERPLATE], |
1270 | -[m4_require([_LT_DECL_SED])dnl |
1271 | -ac_outfile=conftest.$ac_objext |
1272 | -echo "$lt_simple_link_test_code" >conftest.$ac_ext |
1273 | -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1274 | -_lt_linker_boilerplate=`cat conftest.err` |
1275 | -$RM -r conftest* |
1276 | -])# _LT_LINKER_BOILERPLATE |
1277 | - |
1278 | -# _LT_REQUIRED_DARWIN_CHECKS |
1279 | -# ------------------------- |
1280 | -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
1281 | - case $host_os in |
1282 | - rhapsody* | darwin*) |
1283 | - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
1284 | - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
1285 | - AC_CHECK_TOOL([LIPO], [lipo], [:]) |
1286 | - AC_CHECK_TOOL([OTOOL], [otool], [:]) |
1287 | - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
1288 | - _LT_DECL([], [DSYMUTIL], [1], |
1289 | - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
1290 | - _LT_DECL([], [NMEDIT], [1], |
1291 | - [Tool to change global to local symbols on Mac OS X]) |
1292 | - _LT_DECL([], [LIPO], [1], |
1293 | - [Tool to manipulate fat objects and archives on Mac OS X]) |
1294 | - _LT_DECL([], [OTOOL], [1], |
1295 | - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
1296 | - _LT_DECL([], [OTOOL64], [1], |
1297 | - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
1298 | - |
1299 | - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
1300 | - [lt_cv_apple_cc_single_mod=no |
1301 | - if test -z "${LT_MULTI_MODULE}"; then |
1302 | - # By default we will add the -single_module flag. You can override |
1303 | - # by either setting the environment variable LT_MULTI_MODULE |
1304 | - # non-empty at configure time, or by adding -multi_module to the |
1305 | - # link flags. |
1306 | - rm -rf libconftest.dylib* |
1307 | - echo "int foo(void){return 1;}" > conftest.c |
1308 | - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1309 | --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
1310 | - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1311 | - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
1312 | - _lt_result=$? |
1313 | - # If there is a non-empty error log, and "single_module" |
1314 | - # appears in it, assume the flag caused a linker warning |
1315 | - if test -s conftest.err && $GREP single_module conftest.err; then |
1316 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1317 | - # Otherwise, if the output was created with a 0 exit code from |
1318 | - # the compiler, it worked. |
1319 | - elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
1320 | - lt_cv_apple_cc_single_mod=yes |
1321 | - else |
1322 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1323 | - fi |
1324 | - rm -rf libconftest.dylib* |
1325 | - rm -f conftest.* |
1326 | - fi]) |
1327 | - |
1328 | - AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
1329 | - [lt_cv_ld_exported_symbols_list], |
1330 | - [lt_cv_ld_exported_symbols_list=no |
1331 | - save_LDFLAGS=$LDFLAGS |
1332 | - echo "_main" > conftest.sym |
1333 | - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
1334 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
1335 | - [lt_cv_ld_exported_symbols_list=yes], |
1336 | - [lt_cv_ld_exported_symbols_list=no]) |
1337 | - LDFLAGS="$save_LDFLAGS" |
1338 | - ]) |
1339 | - |
1340 | - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
1341 | - [lt_cv_ld_force_load=no |
1342 | - cat > conftest.c << _LT_EOF |
1343 | -int forced_loaded() { return 2;} |
1344 | -_LT_EOF |
1345 | - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
1346 | - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
1347 | - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
1348 | - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
1349 | - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
1350 | - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
1351 | - cat > conftest.c << _LT_EOF |
1352 | -int main() { return 0;} |
1353 | -_LT_EOF |
1354 | - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
1355 | - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
1356 | - _lt_result=$? |
1357 | - if test -s conftest.err && $GREP force_load conftest.err; then |
1358 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1359 | - elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
1360 | - lt_cv_ld_force_load=yes |
1361 | - else |
1362 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1363 | - fi |
1364 | - rm -f conftest.err libconftest.a conftest conftest.c |
1365 | - rm -rf conftest.dSYM |
1366 | - ]) |
1367 | - case $host_os in |
1368 | - rhapsody* | darwin1.[[012]]) |
1369 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1370 | - darwin1.*) |
1371 | - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1372 | - darwin*) # darwin 5.x on |
1373 | - # if running on 10.5 or later, the deployment target defaults |
1374 | - # to the OS version, if on x86, and 10.4, the deployment |
1375 | - # target defaults to 10.4. Don't you love it? |
1376 | - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
1377 | - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
1378 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1379 | - 10.[[012]]*) |
1380 | - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1381 | - 10.*) |
1382 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1383 | - esac |
1384 | - ;; |
1385 | - esac |
1386 | - if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
1387 | - _lt_dar_single_mod='$single_module' |
1388 | - fi |
1389 | - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
1390 | - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
1391 | - else |
1392 | - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1393 | - fi |
1394 | - if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
1395 | - _lt_dsymutil='~$DSYMUTIL $lib || :' |
1396 | - else |
1397 | - _lt_dsymutil= |
1398 | - fi |
1399 | - ;; |
1400 | - esac |
1401 | -]) |
1402 | - |
1403 | - |
1404 | -# _LT_DARWIN_LINKER_FEATURES([TAG]) |
1405 | -# --------------------------------- |
1406 | -# Checks for linker and compiler features on darwin |
1407 | -m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1408 | -[ |
1409 | - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
1410 | - _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
1411 | - _LT_TAGVAR(hardcode_direct, $1)=no |
1412 | - _LT_TAGVAR(hardcode_automatic, $1)=yes |
1413 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1414 | - if test "$lt_cv_ld_force_load" = "yes"; then |
1415 | - _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\"`' |
1416 | - m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
1417 | - [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
1418 | - else |
1419 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
1420 | - fi |
1421 | - _LT_TAGVAR(link_all_deplibs, $1)=yes |
1422 | - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1423 | - case $cc_basename in |
1424 | - ifort*) _lt_dar_can_shared=yes ;; |
1425 | - *) _lt_dar_can_shared=$GCC ;; |
1426 | - esac |
1427 | - if test "$_lt_dar_can_shared" = "yes"; then |
1428 | - output_verbose_link_cmd=func_echo_all |
1429 | - _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}" |
1430 | - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1431 | - _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}" |
1432 | - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
1433 | - m4_if([$1], [CXX], |
1434 | -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
1435 | - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
1436 | - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
1437 | - fi |
1438 | -],[]) |
1439 | - else |
1440 | - _LT_TAGVAR(ld_shlibs, $1)=no |
1441 | - fi |
1442 | -]) |
1443 | - |
1444 | -# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
1445 | -# ---------------------------------- |
1446 | -# Links a minimal program and checks the executable |
1447 | -# for the system default hardcoded library path. In most cases, |
1448 | -# this is /usr/lib:/lib, but when the MPI compilers are used |
1449 | -# the location of the communication and MPI libs are included too. |
1450 | -# If we don't find anything, use the default library path according |
1451 | -# to the aix ld manual. |
1452 | -# Store the results from the different compilers for each TAGNAME. |
1453 | -# Allow to override them for all tags through lt_cv_aix_libpath. |
1454 | -m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1455 | -[m4_require([_LT_DECL_SED])dnl |
1456 | -if test "${lt_cv_aix_libpath+set}" = set; then |
1457 | - aix_libpath=$lt_cv_aix_libpath |
1458 | -else |
1459 | - AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
1460 | - [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
1461 | - lt_aix_libpath_sed='[ |
1462 | - /Import File Strings/,/^$/ { |
1463 | - /^0/ { |
1464 | - s/^0 *\([^ ]*\) *$/\1/ |
1465 | - p |
1466 | - } |
1467 | - }]' |
1468 | - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1469 | - # Check for a 64-bit object if we didn't find anything. |
1470 | - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
1471 | - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1472 | - fi],[]) |
1473 | - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
1474 | - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
1475 | - fi |
1476 | - ]) |
1477 | - aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
1478 | -fi |
1479 | -])# _LT_SYS_MODULE_PATH_AIX |
1480 | - |
1481 | - |
1482 | -# _LT_SHELL_INIT(ARG) |
1483 | -# ------------------- |
1484 | -m4_define([_LT_SHELL_INIT], |
1485 | -[m4_divert_text([M4SH-INIT], [$1 |
1486 | -])])# _LT_SHELL_INIT |
1487 | - |
1488 | - |
1489 | - |
1490 | -# _LT_PROG_ECHO_BACKSLASH |
1491 | -# ----------------------- |
1492 | -# Find how we can fake an echo command that does not interpret backslash. |
1493 | -# In particular, with Autoconf 2.60 or later we add some code to the start |
1494 | -# of the generated configure script which will find a shell with a builtin |
1495 | -# printf (which we can use as an echo command). |
1496 | -m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1497 | -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1498 | -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1499 | -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1500 | - |
1501 | -AC_MSG_CHECKING([how to print strings]) |
1502 | -# Test print first, because it will be a builtin if present. |
1503 | -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
1504 | - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
1505 | - ECHO='print -r --' |
1506 | -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
1507 | - ECHO='printf %s\n' |
1508 | -else |
1509 | - # Use this function as a fallback that always works. |
1510 | - func_fallback_echo () |
1511 | - { |
1512 | - eval 'cat <<_LTECHO_EOF |
1513 | -$[]1 |
1514 | -_LTECHO_EOF' |
1515 | - } |
1516 | - ECHO='func_fallback_echo' |
1517 | -fi |
1518 | - |
1519 | -# func_echo_all arg... |
1520 | -# Invoke $ECHO with all args, space-separated. |
1521 | -func_echo_all () |
1522 | -{ |
1523 | - $ECHO "$*" |
1524 | -} |
1525 | - |
1526 | -case "$ECHO" in |
1527 | - printf*) AC_MSG_RESULT([printf]) ;; |
1528 | - print*) AC_MSG_RESULT([print -r]) ;; |
1529 | - *) AC_MSG_RESULT([cat]) ;; |
1530 | -esac |
1531 | - |
1532 | -m4_ifdef([_AS_DETECT_SUGGESTED], |
1533 | -[_AS_DETECT_SUGGESTED([ |
1534 | - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
1535 | - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1536 | - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
1537 | - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
1538 | - PATH=/empty FPATH=/empty; export PATH FPATH |
1539 | - test "X`printf %s $ECHO`" = "X$ECHO" \ |
1540 | - || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
1541 | - |
1542 | -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1543 | -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
1544 | -])# _LT_PROG_ECHO_BACKSLASH |
1545 | - |
1546 | - |
1547 | -# _LT_WITH_SYSROOT |
1548 | -# ---------------- |
1549 | -AC_DEFUN([_LT_WITH_SYSROOT], |
1550 | -[AC_MSG_CHECKING([for sysroot]) |
1551 | -AC_ARG_WITH([sysroot], |
1552 | -[ --with-sysroot[=DIR] Search for dependent libraries within DIR |
1553 | - (or the compiler's sysroot if not specified).], |
1554 | -[], [with_sysroot=no]) |
1555 | - |
1556 | -dnl lt_sysroot will always be passed unquoted. We quote it here |
1557 | -dnl in case the user passed a directory name. |
1558 | -lt_sysroot= |
1559 | -case ${with_sysroot} in #( |
1560 | - yes) |
1561 | - if test "$GCC" = yes; then |
1562 | - lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
1563 | - fi |
1564 | - ;; #( |
1565 | - /*) |
1566 | - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
1567 | - ;; #( |
1568 | - no|'') |
1569 | - ;; #( |
1570 | - *) |
1571 | - AC_MSG_RESULT([${with_sysroot}]) |
1572 | - AC_MSG_ERROR([The sysroot must be an absolute path.]) |
1573 | - ;; |
1574 | -esac |
1575 | - |
1576 | - AC_MSG_RESULT([${lt_sysroot:-no}]) |
1577 | -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
1578 | -[dependent libraries, and in which our libraries should be installed.])]) |
1579 | - |
1580 | -# _LT_ENABLE_LOCK |
1581 | -# --------------- |
1582 | -m4_defun([_LT_ENABLE_LOCK], |
1583 | -[AC_ARG_ENABLE([libtool-lock], |
1584 | - [AS_HELP_STRING([--disable-libtool-lock], |
1585 | - [avoid locking (might break parallel builds)])]) |
1586 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1587 | - |
1588 | -# Some flags need to be propagated to the compiler or linker for good |
1589 | -# libtool support. |
1590 | -case $host in |
1591 | -ia64-*-hpux*) |
1592 | - # Find out which ABI we are using. |
1593 | - echo 'int i;' > conftest.$ac_ext |
1594 | - if AC_TRY_EVAL(ac_compile); then |
1595 | - case `/usr/bin/file conftest.$ac_objext` in |
1596 | - *ELF-32*) |
1597 | - HPUX_IA64_MODE="32" |
1598 | - ;; |
1599 | - *ELF-64*) |
1600 | - HPUX_IA64_MODE="64" |
1601 | - ;; |
1602 | - esac |
1603 | - fi |
1604 | - rm -rf conftest* |
1605 | - ;; |
1606 | -*-*-irix6*) |
1607 | - # Find out which ABI we are using. |
1608 | - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
1609 | - if AC_TRY_EVAL(ac_compile); then |
1610 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
1611 | - case `/usr/bin/file conftest.$ac_objext` in |
1612 | - *32-bit*) |
1613 | - LD="${LD-ld} -melf32bsmip" |
1614 | - ;; |
1615 | - *N32*) |
1616 | - LD="${LD-ld} -melf32bmipn32" |
1617 | - ;; |
1618 | - *64-bit*) |
1619 | - LD="${LD-ld} -melf64bmip" |
1620 | - ;; |
1621 | - esac |
1622 | - else |
1623 | - case `/usr/bin/file conftest.$ac_objext` in |
1624 | - *32-bit*) |
1625 | - LD="${LD-ld} -32" |
1626 | - ;; |
1627 | - *N32*) |
1628 | - LD="${LD-ld} -n32" |
1629 | - ;; |
1630 | - *64-bit*) |
1631 | - LD="${LD-ld} -64" |
1632 | - ;; |
1633 | - esac |
1634 | - fi |
1635 | - fi |
1636 | - rm -rf conftest* |
1637 | - ;; |
1638 | - |
1639 | -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
1640 | -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1641 | - # Find out which ABI we are using. |
1642 | - echo 'int i;' > conftest.$ac_ext |
1643 | - if AC_TRY_EVAL(ac_compile); then |
1644 | - case `/usr/bin/file conftest.o` in |
1645 | - *32-bit*) |
1646 | - case $host in |
1647 | - x86_64-*kfreebsd*-gnu) |
1648 | - LD="${LD-ld} -m elf_i386_fbsd" |
1649 | - ;; |
1650 | - x86_64-*linux*) |
1651 | - LD="${LD-ld} -m elf_i386" |
1652 | - ;; |
1653 | - ppc64-*linux*|powerpc64-*linux*) |
1654 | - LD="${LD-ld} -m elf32ppclinux" |
1655 | - ;; |
1656 | - s390x-*linux*) |
1657 | - LD="${LD-ld} -m elf_s390" |
1658 | - ;; |
1659 | - sparc64-*linux*) |
1660 | - LD="${LD-ld} -m elf32_sparc" |
1661 | - ;; |
1662 | - esac |
1663 | - ;; |
1664 | - *64-bit*) |
1665 | - case $host in |
1666 | - x86_64-*kfreebsd*-gnu) |
1667 | - LD="${LD-ld} -m elf_x86_64_fbsd" |
1668 | - ;; |
1669 | - x86_64-*linux*) |
1670 | - LD="${LD-ld} -m elf_x86_64" |
1671 | - ;; |
1672 | - ppc*-*linux*|powerpc*-*linux*) |
1673 | - LD="${LD-ld} -m elf64ppc" |
1674 | - ;; |
1675 | - s390*-*linux*|s390*-*tpf*) |
1676 | - LD="${LD-ld} -m elf64_s390" |
1677 | - ;; |
1678 | - sparc*-*linux*) |
1679 | - LD="${LD-ld} -m elf64_sparc" |
1680 | - ;; |
1681 | - esac |
1682 | - ;; |
1683 | - esac |
1684 | - fi |
1685 | - rm -rf conftest* |
1686 | - ;; |
1687 | - |
1688 | -*-*-sco3.2v5*) |
1689 | - # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1690 | - SAVE_CFLAGS="$CFLAGS" |
1691 | - CFLAGS="$CFLAGS -belf" |
1692 | - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1693 | - [AC_LANG_PUSH(C) |
1694 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
1695 | - AC_LANG_POP]) |
1696 | - if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1697 | - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1698 | - CFLAGS="$SAVE_CFLAGS" |
1699 | - fi |
1700 | - ;; |
1701 | -*-*solaris*) |
1702 | - # Find out which ABI we are using. |
1703 | - echo 'int i;' > conftest.$ac_ext |
1704 | - if AC_TRY_EVAL(ac_compile); then |
1705 | - case `/usr/bin/file conftest.o` in |
1706 | - *64-bit*) |
1707 | - case $lt_cv_prog_gnu_ld in |
1708 | - yes*) |
1709 | - case $host in |
1710 | - i?86-*-solaris*) |
1711 | - LD="${LD-ld} -m elf_x86_64" |
1712 | - ;; |
1713 | - sparc*-*-solaris*) |
1714 | - LD="${LD-ld} -m elf64_sparc" |
1715 | - ;; |
1716 | - esac |
1717 | - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
1718 | - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
1719 | - LD="${LD-ld}_sol2" |
1720 | - fi |
1721 | - ;; |
1722 | - *) |
1723 | - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1724 | - LD="${LD-ld} -64" |
1725 | - fi |
1726 | - ;; |
1727 | - esac |
1728 | - ;; |
1729 | - esac |
1730 | - fi |
1731 | - rm -rf conftest* |
1732 | - ;; |
1733 | -esac |
1734 | - |
1735 | -need_locks="$enable_libtool_lock" |
1736 | -])# _LT_ENABLE_LOCK |
1737 | - |
1738 | - |
1739 | -# _LT_PROG_AR |
1740 | -# ----------- |
1741 | -m4_defun([_LT_PROG_AR], |
1742 | -[AC_CHECK_TOOLS(AR, [ar], false) |
1743 | -: ${AR=ar} |
1744 | -: ${AR_FLAGS=cru} |
1745 | -_LT_DECL([], [AR], [1], [The archiver]) |
1746 | -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
1747 | - |
1748 | -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
1749 | - [lt_cv_ar_at_file=no |
1750 | - AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
1751 | - [echo conftest.$ac_objext > conftest.lst |
1752 | - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
1753 | - AC_TRY_EVAL([lt_ar_try]) |
1754 | - if test "$ac_status" -eq 0; then |
1755 | - # Ensure the archiver fails upon bogus file names. |
1756 | - rm -f conftest.$ac_objext libconftest.a |
1757 | - AC_TRY_EVAL([lt_ar_try]) |
1758 | - if test "$ac_status" -ne 0; then |
1759 | - lt_cv_ar_at_file=@ |
1760 | - fi |
1761 | - fi |
1762 | - rm -f conftest.* libconftest.a |
1763 | - ]) |
1764 | - ]) |
1765 | - |
1766 | -if test "x$lt_cv_ar_at_file" = xno; then |
1767 | - archiver_list_spec= |
1768 | -else |
1769 | - archiver_list_spec=$lt_cv_ar_at_file |
1770 | -fi |
1771 | -_LT_DECL([], [archiver_list_spec], [1], |
1772 | - [How to feed a file listing to the archiver]) |
1773 | -])# _LT_PROG_AR |
1774 | - |
1775 | - |
1776 | -# _LT_CMD_OLD_ARCHIVE |
1777 | -# ------------------- |
1778 | -m4_defun([_LT_CMD_OLD_ARCHIVE], |
1779 | -[_LT_PROG_AR |
1780 | - |
1781 | -AC_CHECK_TOOL(STRIP, strip, :) |
1782 | -test -z "$STRIP" && STRIP=: |
1783 | -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
1784 | - |
1785 | -AC_CHECK_TOOL(RANLIB, ranlib, :) |
1786 | -test -z "$RANLIB" && RANLIB=: |
1787 | -_LT_DECL([], [RANLIB], [1], |
1788 | - [Commands used to install an old-style archive]) |
1789 | - |
1790 | -# Determine commands to create old-style static archives. |
1791 | -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1792 | -old_postinstall_cmds='chmod 644 $oldlib' |
1793 | -old_postuninstall_cmds= |
1794 | - |
1795 | -if test -n "$RANLIB"; then |
1796 | - case $host_os in |
1797 | - openbsd*) |
1798 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
1799 | - ;; |
1800 | - *) |
1801 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
1802 | - ;; |
1803 | - esac |
1804 | - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
1805 | -fi |
1806 | - |
1807 | -case $host_os in |
1808 | - darwin*) |
1809 | - lock_old_archive_extraction=yes ;; |
1810 | - *) |
1811 | - lock_old_archive_extraction=no ;; |
1812 | -esac |
1813 | -_LT_DECL([], [old_postinstall_cmds], [2]) |
1814 | -_LT_DECL([], [old_postuninstall_cmds], [2]) |
1815 | -_LT_TAGDECL([], [old_archive_cmds], [2], |
1816 | - [Commands used to build an old-style archive]) |
1817 | -_LT_DECL([], [lock_old_archive_extraction], [0], |
1818 | - [Whether to use a lock for old archive extraction]) |
1819 | -])# _LT_CMD_OLD_ARCHIVE |
1820 | - |
1821 | - |
1822 | -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1823 | -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1824 | -# ---------------------------------------------------------------- |
1825 | -# Check whether the given compiler option works |
1826 | -AC_DEFUN([_LT_COMPILER_OPTION], |
1827 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1828 | -m4_require([_LT_DECL_SED])dnl |
1829 | -AC_CACHE_CHECK([$1], [$2], |
1830 | - [$2=no |
1831 | - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1832 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1833 | - lt_compiler_flag="$3" |
1834 | - # Insert the option either (1) after the last *FLAGS variable, or |
1835 | - # (2) before a word containing "conftest.", or (3) at the end. |
1836 | - # Note that $ac_compile itself does not contain backslashes and begins |
1837 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
1838 | - # The option is referenced via a variable to avoid confusing sed. |
1839 | - lt_compile=`echo "$ac_compile" | $SED \ |
1840 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1841 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1842 | - -e 's:$: $lt_compiler_flag:'` |
1843 | - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1844 | - (eval "$lt_compile" 2>conftest.err) |
1845 | - ac_status=$? |
1846 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1847 | - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1848 | - if (exit $ac_status) && test -s "$ac_outfile"; then |
1849 | - # The compiler can only warn and ignore the option if not recognized |
1850 | - # So say no if there are warnings other than the usual output. |
1851 | - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1852 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1853 | - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1854 | - $2=yes |
1855 | - fi |
1856 | - fi |
1857 | - $RM conftest* |
1858 | -]) |
1859 | - |
1860 | -if test x"[$]$2" = xyes; then |
1861 | - m4_if([$5], , :, [$5]) |
1862 | -else |
1863 | - m4_if([$6], , :, [$6]) |
1864 | -fi |
1865 | -])# _LT_COMPILER_OPTION |
1866 | - |
1867 | -# Old name: |
1868 | -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
1869 | -dnl aclocal-1.4 backwards compatibility: |
1870 | -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
1871 | - |
1872 | - |
1873 | -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1874 | -# [ACTION-SUCCESS], [ACTION-FAILURE]) |
1875 | -# ---------------------------------------------------- |
1876 | -# Check whether the given linker option works |
1877 | -AC_DEFUN([_LT_LINKER_OPTION], |
1878 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1879 | -m4_require([_LT_DECL_SED])dnl |
1880 | -AC_CACHE_CHECK([$1], [$2], |
1881 | - [$2=no |
1882 | - save_LDFLAGS="$LDFLAGS" |
1883 | - LDFLAGS="$LDFLAGS $3" |
1884 | - echo "$lt_simple_link_test_code" > conftest.$ac_ext |
1885 | - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
1886 | - # The linker can only warn and ignore the option if not recognized |
1887 | - # So say no if there are warnings |
1888 | - if test -s conftest.err; then |
1889 | - # Append any errors to the config.log. |
1890 | - cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1891 | - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1892 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1893 | - if diff conftest.exp conftest.er2 >/dev/null; then |
1894 | - $2=yes |
1895 | - fi |
1896 | - else |
1897 | - $2=yes |
1898 | - fi |
1899 | - fi |
1900 | - $RM -r conftest* |
1901 | - LDFLAGS="$save_LDFLAGS" |
1902 | -]) |
1903 | - |
1904 | -if test x"[$]$2" = xyes; then |
1905 | - m4_if([$4], , :, [$4]) |
1906 | -else |
1907 | - m4_if([$5], , :, [$5]) |
1908 | -fi |
1909 | -])# _LT_LINKER_OPTION |
1910 | - |
1911 | -# Old name: |
1912 | -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
1913 | -dnl aclocal-1.4 backwards compatibility: |
1914 | -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
1915 | - |
1916 | - |
1917 | -# LT_CMD_MAX_LEN |
1918 | -#--------------- |
1919 | -AC_DEFUN([LT_CMD_MAX_LEN], |
1920 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1921 | -# find the maximum length of command line arguments |
1922 | -AC_MSG_CHECKING([the maximum length of command line arguments]) |
1923 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
1924 | - i=0 |
1925 | - teststring="ABCD" |
1926 | - |
1927 | - case $build_os in |
1928 | - msdosdjgpp*) |
1929 | - # On DJGPP, this test can blow up pretty badly due to problems in libc |
1930 | - # (any single argument exceeding 2000 bytes causes a buffer overrun |
1931 | - # during glob expansion). Even if it were fixed, the result of this |
1932 | - # check would be larger than it should be. |
1933 | - lt_cv_sys_max_cmd_len=12288; # 12K is about right |
1934 | - ;; |
1935 | - |
1936 | - gnu*) |
1937 | - # Under GNU Hurd, this test is not required because there is |
1938 | - # no limit to the length of command line arguments. |
1939 | - # Libtool will interpret -1 as no limit whatsoever |
1940 | - lt_cv_sys_max_cmd_len=-1; |
1941 | - ;; |
1942 | - |
1943 | - cygwin* | mingw* | cegcc*) |
1944 | - # On Win9x/ME, this test blows up -- it succeeds, but takes |
1945 | - # about 5 minutes as the teststring grows exponentially. |
1946 | - # Worse, since 9x/ME are not pre-emptively multitasking, |
1947 | - # you end up with a "frozen" computer, even though with patience |
1948 | - # the test eventually succeeds (with a max line length of 256k). |
1949 | - # Instead, let's just punt: use the minimum linelength reported by |
1950 | - # all of the supported platforms: 8192 (on NT/2K/XP). |
1951 | - lt_cv_sys_max_cmd_len=8192; |
1952 | - ;; |
1953 | - |
1954 | - mint*) |
1955 | - # On MiNT this can take a long time and run out of memory. |
1956 | - lt_cv_sys_max_cmd_len=8192; |
1957 | - ;; |
1958 | - |
1959 | - amigaos*) |
1960 | - # On AmigaOS with pdksh, this test takes hours, literally. |
1961 | - # So we just punt and use a minimum line length of 8192. |
1962 | - lt_cv_sys_max_cmd_len=8192; |
1963 | - ;; |
1964 | - |
1965 | - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
1966 | - # This has been around since 386BSD, at least. Likely further. |
1967 | - if test -x /sbin/sysctl; then |
1968 | - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
1969 | - elif test -x /usr/sbin/sysctl; then |
1970 | - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
1971 | - else |
1972 | - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
1973 | - fi |
1974 | - # And add a safety zone |
1975 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1976 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1977 | - ;; |
1978 | - |
1979 | - interix*) |
1980 | - # We know the value 262144 and hardcode it with a safety zone (like BSD) |
1981 | - lt_cv_sys_max_cmd_len=196608 |
1982 | - ;; |
1983 | - |
1984 | - os2*) |
1985 | - # The test takes a long time on OS/2. |
1986 | - lt_cv_sys_max_cmd_len=8192 |
1987 | - ;; |
1988 | - |
1989 | - osf*) |
1990 | - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
1991 | - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
1992 | - # nice to cause kernel panics so lets avoid the loop below. |
1993 | - # First set a reasonable default. |
1994 | - lt_cv_sys_max_cmd_len=16384 |
1995 | - # |
1996 | - if test -x /sbin/sysconfig; then |
1997 | - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
1998 | - *1*) lt_cv_sys_max_cmd_len=-1 ;; |
1999 | - esac |
2000 | - fi |
2001 | - ;; |
2002 | - sco3.2v5*) |
2003 | - lt_cv_sys_max_cmd_len=102400 |
2004 | - ;; |
2005 | - sysv5* | sco5v6* | sysv4.2uw2*) |
2006 | - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
2007 | - if test -n "$kargmax"; then |
2008 | - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
2009 | - else |
2010 | - lt_cv_sys_max_cmd_len=32768 |
2011 | - fi |
2012 | - ;; |
2013 | - *) |
2014 | - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
2015 | - if test -n "$lt_cv_sys_max_cmd_len"; then |
2016 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
2017 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
2018 | - else |
2019 | - # Make teststring a little bigger before we do anything with it. |
2020 | - # a 1K string should be a reasonable start. |
2021 | - for i in 1 2 3 4 5 6 7 8 ; do |
2022 | - teststring=$teststring$teststring |
2023 | - done |
2024 | - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
2025 | - # If test is not a shell built-in, we'll probably end up computing a |
2026 | - # maximum length that is only half of the actual maximum length, but |
2027 | - # we can't tell. |
2028 | - while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
2029 | - = "X$teststring$teststring"; } >/dev/null 2>&1 && |
2030 | - test $i != 17 # 1/2 MB should be enough |
2031 | - do |
2032 | - i=`expr $i + 1` |
2033 | - teststring=$teststring$teststring |
2034 | - done |
2035 | - # Only check the string length outside the loop. |
2036 | - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
2037 | - teststring= |
2038 | - # Add a significant safety factor because C++ compilers can tack on |
2039 | - # massive amounts of additional arguments before passing them to the |
2040 | - # linker. It appears as though 1/2 is a usable value. |
2041 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
2042 | - fi |
2043 | - ;; |
2044 | - esac |
2045 | -]) |
2046 | -if test -n $lt_cv_sys_max_cmd_len ; then |
2047 | - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
2048 | -else |
2049 | - AC_MSG_RESULT(none) |
2050 | -fi |
2051 | -max_cmd_len=$lt_cv_sys_max_cmd_len |
2052 | -_LT_DECL([], [max_cmd_len], [0], |
2053 | - [What is the maximum length of a command?]) |
2054 | -])# LT_CMD_MAX_LEN |
2055 | - |
2056 | -# Old name: |
2057 | -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
2058 | -dnl aclocal-1.4 backwards compatibility: |
2059 | -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
2060 | - |
2061 | - |
2062 | -# _LT_HEADER_DLFCN |
2063 | -# ---------------- |
2064 | -m4_defun([_LT_HEADER_DLFCN], |
2065 | -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
2066 | -])# _LT_HEADER_DLFCN |
2067 | - |
2068 | - |
2069 | -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
2070 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
2071 | -# ---------------------------------------------------------------- |
2072 | -m4_defun([_LT_TRY_DLOPEN_SELF], |
2073 | -[m4_require([_LT_HEADER_DLFCN])dnl |
2074 | -if test "$cross_compiling" = yes; then : |
2075 | - [$4] |
2076 | -else |
2077 | - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2078 | - lt_status=$lt_dlunknown |
2079 | - cat > conftest.$ac_ext <<_LT_EOF |
2080 | -[#line $LINENO "configure" |
2081 | -#include "confdefs.h" |
2082 | - |
2083 | -#if HAVE_DLFCN_H |
2084 | -#include <dlfcn.h> |
2085 | -#endif |
2086 | - |
2087 | -#include <stdio.h> |
2088 | - |
2089 | -#ifdef RTLD_GLOBAL |
2090 | -# define LT_DLGLOBAL RTLD_GLOBAL |
2091 | -#else |
2092 | -# ifdef DL_GLOBAL |
2093 | -# define LT_DLGLOBAL DL_GLOBAL |
2094 | -# else |
2095 | -# define LT_DLGLOBAL 0 |
2096 | -# endif |
2097 | -#endif |
2098 | - |
2099 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
2100 | - find out it does not work in some platform. */ |
2101 | -#ifndef LT_DLLAZY_OR_NOW |
2102 | -# ifdef RTLD_LAZY |
2103 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY |
2104 | -# else |
2105 | -# ifdef DL_LAZY |
2106 | -# define LT_DLLAZY_OR_NOW DL_LAZY |
2107 | -# else |
2108 | -# ifdef RTLD_NOW |
2109 | -# define LT_DLLAZY_OR_NOW RTLD_NOW |
2110 | -# else |
2111 | -# ifdef DL_NOW |
2112 | -# define LT_DLLAZY_OR_NOW DL_NOW |
2113 | -# else |
2114 | -# define LT_DLLAZY_OR_NOW 0 |
2115 | -# endif |
2116 | -# endif |
2117 | -# endif |
2118 | -# endif |
2119 | -#endif |
2120 | - |
2121 | -/* When -fvisbility=hidden is used, assume the code has been annotated |
2122 | - correspondingly for the symbols needed. */ |
2123 | -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
2124 | -int fnord () __attribute__((visibility("default"))); |
2125 | -#endif |
2126 | - |
2127 | -int fnord () { return 42; } |
2128 | -int main () |
2129 | -{ |
2130 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2131 | - int status = $lt_dlunknown; |
2132 | - |
2133 | - if (self) |
2134 | - { |
2135 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2136 | - else |
2137 | - { |
2138 | - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
2139 | - else puts (dlerror ()); |
2140 | - } |
2141 | - /* dlclose (self); */ |
2142 | - } |
2143 | - else |
2144 | - puts (dlerror ()); |
2145 | - |
2146 | - return status; |
2147 | -}] |
2148 | -_LT_EOF |
2149 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
2150 | - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
2151 | - lt_status=$? |
2152 | - case x$lt_status in |
2153 | - x$lt_dlno_uscore) $1 ;; |
2154 | - x$lt_dlneed_uscore) $2 ;; |
2155 | - x$lt_dlunknown|x*) $3 ;; |
2156 | - esac |
2157 | - else : |
2158 | - # compilation failed |
2159 | - $3 |
2160 | - fi |
2161 | -fi |
2162 | -rm -fr conftest* |
2163 | -])# _LT_TRY_DLOPEN_SELF |
2164 | - |
2165 | - |
2166 | -# LT_SYS_DLOPEN_SELF |
2167 | -# ------------------ |
2168 | -AC_DEFUN([LT_SYS_DLOPEN_SELF], |
2169 | -[m4_require([_LT_HEADER_DLFCN])dnl |
2170 | -if test "x$enable_dlopen" != xyes; then |
2171 | - enable_dlopen=unknown |
2172 | - enable_dlopen_self=unknown |
2173 | - enable_dlopen_self_static=unknown |
2174 | -else |
2175 | - lt_cv_dlopen=no |
2176 | - lt_cv_dlopen_libs= |
2177 | - |
2178 | - case $host_os in |
2179 | - beos*) |
2180 | - lt_cv_dlopen="load_add_on" |
2181 | - lt_cv_dlopen_libs= |
2182 | - lt_cv_dlopen_self=yes |
2183 | - ;; |
2184 | - |
2185 | - mingw* | pw32* | cegcc*) |
2186 | - lt_cv_dlopen="LoadLibrary" |
2187 | - lt_cv_dlopen_libs= |
2188 | - ;; |
2189 | - |
2190 | - cygwin*) |
2191 | - lt_cv_dlopen="dlopen" |
2192 | - lt_cv_dlopen_libs= |
2193 | - ;; |
2194 | - |
2195 | - darwin*) |
2196 | - # if libdl is installed we need to link against it |
2197 | - AC_CHECK_LIB([dl], [dlopen], |
2198 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
2199 | - lt_cv_dlopen="dyld" |
2200 | - lt_cv_dlopen_libs= |
2201 | - lt_cv_dlopen_self=yes |
2202 | - ]) |
2203 | - ;; |
2204 | - |
2205 | - *) |
2206 | - AC_CHECK_FUNC([shl_load], |
2207 | - [lt_cv_dlopen="shl_load"], |
2208 | - [AC_CHECK_LIB([dld], [shl_load], |
2209 | - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
2210 | - [AC_CHECK_FUNC([dlopen], |
2211 | - [lt_cv_dlopen="dlopen"], |
2212 | - [AC_CHECK_LIB([dl], [dlopen], |
2213 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
2214 | - [AC_CHECK_LIB([svld], [dlopen], |
2215 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
2216 | - [AC_CHECK_LIB([dld], [dld_link], |
2217 | - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
2218 | - ]) |
2219 | - ]) |
2220 | - ]) |
2221 | - ]) |
2222 | - ]) |
2223 | - ;; |
2224 | - esac |
2225 | - |
2226 | - if test "x$lt_cv_dlopen" != xno; then |
2227 | - enable_dlopen=yes |
2228 | - else |
2229 | - enable_dlopen=no |
2230 | - fi |
2231 | - |
2232 | - case $lt_cv_dlopen in |
2233 | - dlopen) |
2234 | - save_CPPFLAGS="$CPPFLAGS" |
2235 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
2236 | - |
2237 | - save_LDFLAGS="$LDFLAGS" |
2238 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
2239 | - |
2240 | - save_LIBS="$LIBS" |
2241 | - LIBS="$lt_cv_dlopen_libs $LIBS" |
2242 | - |
2243 | - AC_CACHE_CHECK([whether a program can dlopen itself], |
2244 | - lt_cv_dlopen_self, [dnl |
2245 | - _LT_TRY_DLOPEN_SELF( |
2246 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
2247 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
2248 | - ]) |
2249 | - |
2250 | - if test "x$lt_cv_dlopen_self" = xyes; then |
2251 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
2252 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
2253 | - lt_cv_dlopen_self_static, [dnl |
2254 | - _LT_TRY_DLOPEN_SELF( |
2255 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
2256 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
2257 | - ]) |
2258 | - fi |
2259 | - |
2260 | - CPPFLAGS="$save_CPPFLAGS" |
2261 | - LDFLAGS="$save_LDFLAGS" |
2262 | - LIBS="$save_LIBS" |
2263 | - ;; |
2264 | - esac |
2265 | - |
2266 | - case $lt_cv_dlopen_self in |
2267 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
2268 | - *) enable_dlopen_self=unknown ;; |
2269 | - esac |
2270 | - |
2271 | - case $lt_cv_dlopen_self_static in |
2272 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
2273 | - *) enable_dlopen_self_static=unknown ;; |
2274 | - esac |
2275 | -fi |
2276 | -_LT_DECL([dlopen_support], [enable_dlopen], [0], |
2277 | - [Whether dlopen is supported]) |
2278 | -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
2279 | - [Whether dlopen of programs is supported]) |
2280 | -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
2281 | - [Whether dlopen of statically linked programs is supported]) |
2282 | -])# LT_SYS_DLOPEN_SELF |
2283 | - |
2284 | -# Old name: |
2285 | -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
2286 | -dnl aclocal-1.4 backwards compatibility: |
2287 | -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
2288 | - |
2289 | - |
2290 | -# _LT_COMPILER_C_O([TAGNAME]) |
2291 | -# --------------------------- |
2292 | -# Check to see if options -c and -o are simultaneously supported by compiler. |
2293 | -# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
2294 | -m4_defun([_LT_COMPILER_C_O], |
2295 | -[m4_require([_LT_DECL_SED])dnl |
2296 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2297 | -m4_require([_LT_TAG_COMPILER])dnl |
2298 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
2299 | - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
2300 | - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
2301 | - $RM -r conftest 2>/dev/null |
2302 | - mkdir conftest |
2303 | - cd conftest |
2304 | - mkdir out |
2305 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
2306 | - |
2307 | - lt_compiler_flag="-o out/conftest2.$ac_objext" |
2308 | - # Insert the option either (1) after the last *FLAGS variable, or |
2309 | - # (2) before a word containing "conftest.", or (3) at the end. |
2310 | - # Note that $ac_compile itself does not contain backslashes and begins |
2311 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
2312 | - lt_compile=`echo "$ac_compile" | $SED \ |
2313 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2314 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2315 | - -e 's:$: $lt_compiler_flag:'` |
2316 | - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2317 | - (eval "$lt_compile" 2>out/conftest.err) |
2318 | - ac_status=$? |
2319 | - cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2320 | - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2321 | - if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2322 | - then |
2323 | - # The compiler can only warn and ignore the option if not recognized |
2324 | - # So say no if there are warnings |
2325 | - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
2326 | - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2327 | - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2328 | - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2329 | - fi |
2330 | - fi |
2331 | - chmod u+w . 2>&AS_MESSAGE_LOG_FD |
2332 | - $RM conftest* |
2333 | - # SGI C++ compiler will create directory out/ii_files/ for |
2334 | - # template instantiation |
2335 | - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
2336 | - $RM out/* && rmdir out |
2337 | - cd .. |
2338 | - $RM -r conftest |
2339 | - $RM conftest* |
2340 | -]) |
2341 | -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
2342 | - [Does compiler simultaneously support -c and -o options?]) |
2343 | -])# _LT_COMPILER_C_O |
2344 | - |
2345 | - |
2346 | -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
2347 | -# ---------------------------------- |
2348 | -# Check to see if we can do hard links to lock some files if needed |
2349 | -m4_defun([_LT_COMPILER_FILE_LOCKS], |
2350 | -[m4_require([_LT_ENABLE_LOCK])dnl |
2351 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2352 | -_LT_COMPILER_C_O([$1]) |
2353 | - |
2354 | -hard_links="nottested" |
2355 | -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
2356 | - # do not overwrite the value of need_locks provided by the user |
2357 | - AC_MSG_CHECKING([if we can lock with hard links]) |
2358 | - hard_links=yes |
2359 | - $RM conftest* |
2360 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2361 | - touch conftest.a |
2362 | - ln conftest.a conftest.b 2>&5 || hard_links=no |
2363 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2364 | - AC_MSG_RESULT([$hard_links]) |
2365 | - if test "$hard_links" = no; then |
2366 | - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
2367 | - need_locks=warn |
2368 | - fi |
2369 | -else |
2370 | - need_locks=no |
2371 | -fi |
2372 | -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
2373 | -])# _LT_COMPILER_FILE_LOCKS |
2374 | - |
2375 | - |
2376 | -# _LT_CHECK_OBJDIR |
2377 | -# ---------------- |
2378 | -m4_defun([_LT_CHECK_OBJDIR], |
2379 | -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
2380 | -[rm -f .libs 2>/dev/null |
2381 | -mkdir .libs 2>/dev/null |
2382 | -if test -d .libs; then |
2383 | - lt_cv_objdir=.libs |
2384 | -else |
2385 | - # MS-DOS does not allow filenames that begin with a dot. |
2386 | - lt_cv_objdir=_libs |
2387 | -fi |
2388 | -rmdir .libs 2>/dev/null]) |
2389 | -objdir=$lt_cv_objdir |
2390 | -_LT_DECL([], [objdir], [0], |
2391 | - [The name of the directory that contains temporary libtool files])dnl |
2392 | -m4_pattern_allow([LT_OBJDIR])dnl |
2393 | -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
2394 | - [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
2395 | -])# _LT_CHECK_OBJDIR |
2396 | - |
2397 | - |
2398 | -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
2399 | -# -------------------------------------- |
2400 | -# Check hardcoding attributes. |
2401 | -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
2402 | -[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2403 | -_LT_TAGVAR(hardcode_action, $1)= |
2404 | -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
2405 | - test -n "$_LT_TAGVAR(runpath_var, $1)" || |
2406 | - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
2407 | - |
2408 | - # We can hardcode non-existent directories. |
2409 | - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
2410 | - # If the only mechanism to avoid hardcoding is shlibpath_var, we |
2411 | - # have to relink, otherwise we might link with an installed library |
2412 | - # when we should be linking with a yet-to-be-installed one |
2413 | - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
2414 | - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
2415 | - # Linking always hardcodes the temporary library directory. |
2416 | - _LT_TAGVAR(hardcode_action, $1)=relink |
2417 | - else |
2418 | - # We can link without hardcoding, and we can hardcode nonexisting dirs. |
2419 | - _LT_TAGVAR(hardcode_action, $1)=immediate |
2420 | - fi |
2421 | -else |
2422 | - # We cannot hardcode anything, or else we can only hardcode existing |
2423 | - # directories. |
2424 | - _LT_TAGVAR(hardcode_action, $1)=unsupported |
2425 | -fi |
2426 | -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
2427 | - |
2428 | -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
2429 | - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
2430 | - # Fast installation is not supported |
2431 | - enable_fast_install=no |
2432 | -elif test "$shlibpath_overrides_runpath" = yes || |
2433 | - test "$enable_shared" = no; then |
2434 | - # Fast installation is not necessary |
2435 | - enable_fast_install=needless |
2436 | -fi |
2437 | -_LT_TAGDECL([], [hardcode_action], [0], |
2438 | - [How to hardcode a shared library path into an executable]) |
2439 | -])# _LT_LINKER_HARDCODE_LIBPATH |
2440 | - |
2441 | - |
2442 | -# _LT_CMD_STRIPLIB |
2443 | -# ---------------- |
2444 | -m4_defun([_LT_CMD_STRIPLIB], |
2445 | -[m4_require([_LT_DECL_EGREP]) |
2446 | -striplib= |
2447 | -old_striplib= |
2448 | -AC_MSG_CHECKING([whether stripping libraries is possible]) |
2449 | -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
2450 | - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2451 | - test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2452 | - AC_MSG_RESULT([yes]) |
2453 | -else |
2454 | -# FIXME - insert some real tests, host_os isn't really good enough |
2455 | - case $host_os in |
2456 | - darwin*) |
2457 | - if test -n "$STRIP" ; then |
2458 | - striplib="$STRIP -x" |
2459 | - old_striplib="$STRIP -S" |
2460 | - AC_MSG_RESULT([yes]) |
2461 | - else |
2462 | - AC_MSG_RESULT([no]) |
2463 | - fi |
2464 | - ;; |
2465 | - *) |
2466 | - AC_MSG_RESULT([no]) |
2467 | - ;; |
2468 | - esac |
2469 | -fi |
2470 | -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
2471 | -_LT_DECL([], [striplib], [1]) |
2472 | -])# _LT_CMD_STRIPLIB |
2473 | - |
2474 | - |
2475 | -# _LT_SYS_DYNAMIC_LINKER([TAG]) |
2476 | -# ----------------------------- |
2477 | -# PORTME Fill in your ld.so characteristics |
2478 | -m4_defun([_LT_SYS_DYNAMIC_LINKER], |
2479 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2480 | -m4_require([_LT_DECL_EGREP])dnl |
2481 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2482 | -m4_require([_LT_DECL_OBJDUMP])dnl |
2483 | -m4_require([_LT_DECL_SED])dnl |
2484 | -m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
2485 | -AC_MSG_CHECKING([dynamic linker characteristics]) |
2486 | -m4_if([$1], |
2487 | - [], [ |
2488 | -if test "$GCC" = yes; then |
2489 | - case $host_os in |
2490 | - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2491 | - *) lt_awk_arg="/^libraries:/" ;; |
2492 | - esac |
2493 | - case $host_os in |
2494 | - mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
2495 | - *) lt_sed_strip_eq="s,=/,/,g" ;; |
2496 | - esac |
2497 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
2498 | - case $lt_search_path_spec in |
2499 | - *\;*) |
2500 | - # if the path contains ";" then we assume it to be the separator |
2501 | - # otherwise default to the standard path separator (i.e. ":") - it is |
2502 | - # assumed that no part of a normal pathname contains ";" but that should |
2503 | - # okay in the real world where ";" in dirpaths is itself problematic. |
2504 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
2505 | - ;; |
2506 | - *) |
2507 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
2508 | - ;; |
2509 | - esac |
2510 | - # Ok, now we have the path, separated by spaces, we can step through it |
2511 | - # and add multilib dir if necessary. |
2512 | - lt_tmp_lt_search_path_spec= |
2513 | - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2514 | - for lt_sys_path in $lt_search_path_spec; do |
2515 | - if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
2516 | - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
2517 | - else |
2518 | - test -d "$lt_sys_path" && \ |
2519 | - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2520 | - fi |
2521 | - done |
2522 | - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
2523 | -BEGIN {RS=" "; FS="/|\n";} { |
2524 | - lt_foo=""; |
2525 | - lt_count=0; |
2526 | - for (lt_i = NF; lt_i > 0; lt_i--) { |
2527 | - if ($lt_i != "" && $lt_i != ".") { |
2528 | - if ($lt_i == "..") { |
2529 | - lt_count++; |
2530 | - } else { |
2531 | - if (lt_count == 0) { |
2532 | - lt_foo="/" $lt_i lt_foo; |
2533 | - } else { |
2534 | - lt_count--; |
2535 | - } |
2536 | - } |
2537 | - } |
2538 | - } |
2539 | - if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2540 | - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2541 | -}'` |
2542 | - # AWK program above erroneously prepends '/' to C:/dos/paths |
2543 | - # for these hosts. |
2544 | - case $host_os in |
2545 | - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
2546 | - $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; |
2547 | - esac |
2548 | - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
2549 | -else |
2550 | - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2551 | -fi]) |
2552 | -library_names_spec= |
2553 | -libname_spec='lib$name' |
2554 | -soname_spec= |
2555 | -shrext_cmds=".so" |
2556 | -postinstall_cmds= |
2557 | -postuninstall_cmds= |
2558 | -finish_cmds= |
2559 | -finish_eval= |
2560 | -shlibpath_var= |
2561 | -shlibpath_overrides_runpath=unknown |
2562 | -version_type=none |
2563 | -dynamic_linker="$host_os ld.so" |
2564 | -sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2565 | -need_lib_prefix=unknown |
2566 | -hardcode_into_libs=no |
2567 | - |
2568 | -# when you set need_version to no, make sure it does not cause -set_version |
2569 | -# flags to be left without arguments |
2570 | -need_version=unknown |
2571 | - |
2572 | -case $host_os in |
2573 | -aix3*) |
2574 | - version_type=linux # correct to gnu/linux during the next big refactor |
2575 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2576 | - shlibpath_var=LIBPATH |
2577 | - |
2578 | - # AIX 3 has no versioning support, so we append a major version to the name. |
2579 | - soname_spec='${libname}${release}${shared_ext}$major' |
2580 | - ;; |
2581 | - |
2582 | -aix[[4-9]]*) |
2583 | - version_type=linux # correct to gnu/linux during the next big refactor |
2584 | - need_lib_prefix=no |
2585 | - need_version=no |
2586 | - hardcode_into_libs=yes |
2587 | - if test "$host_cpu" = ia64; then |
2588 | - # AIX 5 supports IA64 |
2589 | - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
2590 | - shlibpath_var=LD_LIBRARY_PATH |
2591 | - else |
2592 | - # With GCC up to 2.95.x, collect2 would create an import file |
2593 | - # for dependence libraries. The import file would start with |
2594 | - # the line `#! .'. This would cause the generated library to |
2595 | - # depend on `.', always an invalid library. This was fixed in |
2596 | - # development snapshots of GCC prior to 3.0. |
2597 | - case $host_os in |
2598 | - aix4 | aix4.[[01]] | aix4.[[01]].*) |
2599 | - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2600 | - echo ' yes ' |
2601 | - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
2602 | - : |
2603 | - else |
2604 | - can_build_shared=no |
2605 | - fi |
2606 | - ;; |
2607 | - esac |
2608 | - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2609 | - # soname into executable. Probably we can add versioning support to |
2610 | - # collect2, so additional links can be useful in future. |
2611 | - if test "$aix_use_runtimelinking" = yes; then |
2612 | - # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2613 | - # instead of lib<name>.a to let people know that these are not |
2614 | - # typical AIX shared libraries. |
2615 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2616 | - else |
2617 | - # We preserve .a as extension for shared libraries through AIX4.2 |
2618 | - # and later when we are not doing run time linking. |
2619 | - library_names_spec='${libname}${release}.a $libname.a' |
2620 | - soname_spec='${libname}${release}${shared_ext}$major' |
2621 | - fi |
2622 | - shlibpath_var=LIBPATH |
2623 | - fi |
2624 | - ;; |
2625 | - |
2626 | -amigaos*) |
2627 | - case $host_cpu in |
2628 | - powerpc) |
2629 | - # Since July 2007 AmigaOS4 officially supports .so libraries. |
2630 | - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
2631 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2632 | - ;; |
2633 | - m68k) |
2634 | - library_names_spec='$libname.ixlibrary $libname.a' |
2635 | - # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2636 | - 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' |
2637 | - ;; |
2638 | - esac |
2639 | - ;; |
2640 | - |
2641 | -beos*) |
2642 | - library_names_spec='${libname}${shared_ext}' |
2643 | - dynamic_linker="$host_os ld.so" |
2644 | - shlibpath_var=LIBRARY_PATH |
2645 | - ;; |
2646 | - |
2647 | -bsdi[[45]]*) |
2648 | - version_type=linux # correct to gnu/linux during the next big refactor |
2649 | - need_version=no |
2650 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2651 | - soname_spec='${libname}${release}${shared_ext}$major' |
2652 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2653 | - shlibpath_var=LD_LIBRARY_PATH |
2654 | - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
2655 | - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2656 | - # the default ld.so.conf also contains /usr/contrib/lib and |
2657 | - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2658 | - # libtool to hard-code these into programs |
2659 | - ;; |
2660 | - |
2661 | -cygwin* | mingw* | pw32* | cegcc*) |
2662 | - version_type=windows |
2663 | - shrext_cmds=".dll" |
2664 | - need_version=no |
2665 | - need_lib_prefix=no |
2666 | - |
2667 | - case $GCC,$cc_basename in |
2668 | - yes,*) |
2669 | - # gcc |
2670 | - library_names_spec='$libname.dll.a' |
2671 | - # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2672 | - postinstall_cmds='base_file=`basename \${file}`~ |
2673 | - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
2674 | - dldir=$destdir/`dirname \$dlpath`~ |
2675 | - test -d \$dldir || mkdir -p \$dldir~ |
2676 | - $install_prog $dir/$dlname \$dldir/$dlname~ |
2677 | - chmod a+x \$dldir/$dlname~ |
2678 | - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
2679 | - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
2680 | - fi' |
2681 | - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2682 | - dlpath=$dir/\$dldll~ |
2683 | - $RM \$dlpath' |
2684 | - shlibpath_overrides_runpath=yes |
2685 | - |
2686 | - case $host_os in |
2687 | - cygwin*) |
2688 | - # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2689 | - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2690 | -m4_if([$1], [],[ |
2691 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
2692 | - ;; |
2693 | - mingw* | cegcc*) |
2694 | - # MinGW DLLs use traditional 'lib' prefix |
2695 | - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2696 | - ;; |
2697 | - pw32*) |
2698 | - # pw32 DLLs use 'pw' prefix rather than 'lib' |
2699 | - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2700 | - ;; |
2701 | - esac |
2702 | - dynamic_linker='Win32 ld.exe' |
2703 | - ;; |
2704 | - |
2705 | - *,cl*) |
2706 | - # Native MSVC |
2707 | - libname_spec='$name' |
2708 | - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2709 | - library_names_spec='${libname}.dll.lib' |
2710 | - |
2711 | - case $build_os in |
2712 | - mingw*) |
2713 | - sys_lib_search_path_spec= |
2714 | - lt_save_ifs=$IFS |
2715 | - IFS=';' |
2716 | - for lt_path in $LIB |
2717 | - do |
2718 | - IFS=$lt_save_ifs |
2719 | - # Let DOS variable expansion print the short 8.3 style file name. |
2720 | - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
2721 | - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
2722 | - done |
2723 | - IFS=$lt_save_ifs |
2724 | - # Convert to MSYS style. |
2725 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
2726 | - ;; |
2727 | - cygwin*) |
2728 | - # Convert to unix form, then to dos form, then back to unix form |
2729 | - # but this time dos style (no spaces!) so that the unix form looks |
2730 | - # like /cygdrive/c/PROGRA~1:/cygdr... |
2731 | - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
2732 | - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
2733 | - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2734 | - ;; |
2735 | - *) |
2736 | - sys_lib_search_path_spec="$LIB" |
2737 | - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
2738 | - # It is most probably a Windows format PATH. |
2739 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2740 | - else |
2741 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2742 | - fi |
2743 | - # FIXME: find the short name or the path components, as spaces are |
2744 | - # common. (e.g. "Program Files" -> "PROGRA~1") |
2745 | - ;; |
2746 | - esac |
2747 | - |
2748 | - # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2749 | - postinstall_cmds='base_file=`basename \${file}`~ |
2750 | - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
2751 | - dldir=$destdir/`dirname \$dlpath`~ |
2752 | - test -d \$dldir || mkdir -p \$dldir~ |
2753 | - $install_prog $dir/$dlname \$dldir/$dlname' |
2754 | - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2755 | - dlpath=$dir/\$dldll~ |
2756 | - $RM \$dlpath' |
2757 | - shlibpath_overrides_runpath=yes |
2758 | - dynamic_linker='Win32 link.exe' |
2759 | - ;; |
2760 | - |
2761 | - *) |
2762 | - # Assume MSVC wrapper |
2763 | - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2764 | - dynamic_linker='Win32 ld.exe' |
2765 | - ;; |
2766 | - esac |
2767 | - # FIXME: first we should search . and the directory the executable is in |
2768 | - shlibpath_var=PATH |
2769 | - ;; |
2770 | - |
2771 | -darwin* | rhapsody*) |
2772 | - dynamic_linker="$host_os dyld" |
2773 | - version_type=darwin |
2774 | - need_lib_prefix=no |
2775 | - need_version=no |
2776 | - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
2777 | - soname_spec='${libname}${release}${major}$shared_ext' |
2778 | - shlibpath_overrides_runpath=yes |
2779 | - shlibpath_var=DYLD_LIBRARY_PATH |
2780 | - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
2781 | -m4_if([$1], [],[ |
2782 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
2783 | - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2784 | - ;; |
2785 | - |
2786 | -dgux*) |
2787 | - version_type=linux # correct to gnu/linux during the next big refactor |
2788 | - need_lib_prefix=no |
2789 | - need_version=no |
2790 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2791 | - soname_spec='${libname}${release}${shared_ext}$major' |
2792 | - shlibpath_var=LD_LIBRARY_PATH |
2793 | - ;; |
2794 | - |
2795 | -freebsd* | dragonfly*) |
2796 | - # DragonFly does not have aout. When/if they implement a new |
2797 | - # versioning mechanism, adjust this. |
2798 | - if test -x /usr/bin/objformat; then |
2799 | - objformat=`/usr/bin/objformat` |
2800 | - else |
2801 | - case $host_os in |
2802 | - freebsd[[23]].*) objformat=aout ;; |
2803 | - *) objformat=elf ;; |
2804 | - esac |
2805 | - fi |
2806 | - version_type=freebsd-$objformat |
2807 | - case $version_type in |
2808 | - freebsd-elf*) |
2809 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2810 | - need_version=no |
2811 | - need_lib_prefix=no |
2812 | - ;; |
2813 | - freebsd-*) |
2814 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
2815 | - need_version=yes |
2816 | - ;; |
2817 | - esac |
2818 | - shlibpath_var=LD_LIBRARY_PATH |
2819 | - case $host_os in |
2820 | - freebsd2.*) |
2821 | - shlibpath_overrides_runpath=yes |
2822 | - ;; |
2823 | - freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2824 | - shlibpath_overrides_runpath=yes |
2825 | - hardcode_into_libs=yes |
2826 | - ;; |
2827 | - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
2828 | - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
2829 | - shlibpath_overrides_runpath=no |
2830 | - hardcode_into_libs=yes |
2831 | - ;; |
2832 | - *) # from 4.6 on, and DragonFly |
2833 | - shlibpath_overrides_runpath=yes |
2834 | - hardcode_into_libs=yes |
2835 | - ;; |
2836 | - esac |
2837 | - ;; |
2838 | - |
2839 | -gnu*) |
2840 | - version_type=linux # correct to gnu/linux during the next big refactor |
2841 | - need_lib_prefix=no |
2842 | - need_version=no |
2843 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2844 | - soname_spec='${libname}${release}${shared_ext}$major' |
2845 | - shlibpath_var=LD_LIBRARY_PATH |
2846 | - shlibpath_overrides_runpath=no |
2847 | - hardcode_into_libs=yes |
2848 | - ;; |
2849 | - |
2850 | -haiku*) |
2851 | - version_type=linux # correct to gnu/linux during the next big refactor |
2852 | - need_lib_prefix=no |
2853 | - need_version=no |
2854 | - dynamic_linker="$host_os runtime_loader" |
2855 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2856 | - soname_spec='${libname}${release}${shared_ext}$major' |
2857 | - shlibpath_var=LIBRARY_PATH |
2858 | - shlibpath_overrides_runpath=yes |
2859 | - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
2860 | - hardcode_into_libs=yes |
2861 | - ;; |
2862 | - |
2863 | -hpux9* | hpux10* | hpux11*) |
2864 | - # Give a soname corresponding to the major version so that dld.sl refuses to |
2865 | - # link against other versions. |
2866 | - version_type=sunos |
2867 | - need_lib_prefix=no |
2868 | - need_version=no |
2869 | - case $host_cpu in |
2870 | - ia64*) |
2871 | - shrext_cmds='.so' |
2872 | - hardcode_into_libs=yes |
2873 | - dynamic_linker="$host_os dld.so" |
2874 | - shlibpath_var=LD_LIBRARY_PATH |
2875 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2876 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2877 | - soname_spec='${libname}${release}${shared_ext}$major' |
2878 | - if test "X$HPUX_IA64_MODE" = X32; then |
2879 | - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2880 | - else |
2881 | - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2882 | - fi |
2883 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2884 | - ;; |
2885 | - hppa*64*) |
2886 | - shrext_cmds='.sl' |
2887 | - hardcode_into_libs=yes |
2888 | - dynamic_linker="$host_os dld.sl" |
2889 | - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
2890 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2891 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2892 | - soname_spec='${libname}${release}${shared_ext}$major' |
2893 | - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
2894 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2895 | - ;; |
2896 | - *) |
2897 | - shrext_cmds='.sl' |
2898 | - dynamic_linker="$host_os dld.sl" |
2899 | - shlibpath_var=SHLIB_PATH |
2900 | - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2901 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2902 | - soname_spec='${libname}${release}${shared_ext}$major' |
2903 | - ;; |
2904 | - esac |
2905 | - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
2906 | - postinstall_cmds='chmod 555 $lib' |
2907 | - # or fails outright, so override atomically: |
2908 | - install_override_mode=555 |
2909 | - ;; |
2910 | - |
2911 | -interix[[3-9]]*) |
2912 | - version_type=linux # correct to gnu/linux during the next big refactor |
2913 | - need_lib_prefix=no |
2914 | - need_version=no |
2915 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2916 | - soname_spec='${libname}${release}${shared_ext}$major' |
2917 | - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
2918 | - shlibpath_var=LD_LIBRARY_PATH |
2919 | - shlibpath_overrides_runpath=no |
2920 | - hardcode_into_libs=yes |
2921 | - ;; |
2922 | - |
2923 | -irix5* | irix6* | nonstopux*) |
2924 | - case $host_os in |
2925 | - nonstopux*) version_type=nonstopux ;; |
2926 | - *) |
2927 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
2928 | - version_type=linux # correct to gnu/linux during the next big refactor |
2929 | - else |
2930 | - version_type=irix |
2931 | - fi ;; |
2932 | - esac |
2933 | - need_lib_prefix=no |
2934 | - need_version=no |
2935 | - soname_spec='${libname}${release}${shared_ext}$major' |
2936 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
2937 | - case $host_os in |
2938 | - irix5* | nonstopux*) |
2939 | - libsuff= shlibsuff= |
2940 | - ;; |
2941 | - *) |
2942 | - case $LD in # libtool.m4 will add one of these switches to LD |
2943 | - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
2944 | - libsuff= shlibsuff= libmagic=32-bit;; |
2945 | - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
2946 | - libsuff=32 shlibsuff=N32 libmagic=N32;; |
2947 | - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
2948 | - libsuff=64 shlibsuff=64 libmagic=64-bit;; |
2949 | - *) libsuff= shlibsuff= libmagic=never-match;; |
2950 | - esac |
2951 | - ;; |
2952 | - esac |
2953 | - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
2954 | - shlibpath_overrides_runpath=no |
2955 | - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
2956 | - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2957 | - hardcode_into_libs=yes |
2958 | - ;; |
2959 | - |
2960 | -# No shared lib support for Linux oldld, aout, or coff. |
2961 | -linux*oldld* | linux*aout* | linux*coff*) |
2962 | - dynamic_linker=no |
2963 | - ;; |
2964 | - |
2965 | -# This must be glibc/ELF. |
2966 | -linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2967 | - version_type=linux # correct to gnu/linux during the next big refactor |
2968 | - need_lib_prefix=no |
2969 | - need_version=no |
2970 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2971 | - soname_spec='${libname}${release}${shared_ext}$major' |
2972 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2973 | - shlibpath_var=LD_LIBRARY_PATH |
2974 | - shlibpath_overrides_runpath=no |
2975 | - |
2976 | - # Some binutils ld are patched to set DT_RUNPATH |
2977 | - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
2978 | - [lt_cv_shlibpath_overrides_runpath=no |
2979 | - save_LDFLAGS=$LDFLAGS |
2980 | - save_libdir=$libdir |
2981 | - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
2982 | - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
2983 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2984 | - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
2985 | - [lt_cv_shlibpath_overrides_runpath=yes])]) |
2986 | - LDFLAGS=$save_LDFLAGS |
2987 | - libdir=$save_libdir |
2988 | - ]) |
2989 | - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
2990 | - |
2991 | - # This implies no fast_install, which is unacceptable. |
2992 | - # Some rework will be needed to allow for fast_install |
2993 | - # before this can be enabled. |
2994 | - hardcode_into_libs=yes |
2995 | - |
2996 | - # Append ld.so.conf contents to the search path |
2997 | - if test -f /etc/ld.so.conf; then |
2998 | - 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' ' '` |
2999 | - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
3000 | - fi |
3001 | - |
3002 | - # We used to test for /lib/ld.so.1 and disable shared libraries on |
3003 | - # powerpc, because MkLinux only supported shared libraries with the |
3004 | - # GNU dynamic linker. Since this was broken with cross compilers, |
3005 | - # most powerpc-linux boxes support dynamic linking these days and |
3006 | - # people can always --disable-shared, the test was removed, and we |
3007 | - # assume the GNU/Linux dynamic linker is in use. |
3008 | - dynamic_linker='GNU/Linux ld.so' |
3009 | - ;; |
3010 | - |
3011 | -netbsdelf*-gnu) |
3012 | - version_type=linux |
3013 | - need_lib_prefix=no |
3014 | - need_version=no |
3015 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3016 | - soname_spec='${libname}${release}${shared_ext}$major' |
3017 | - shlibpath_var=LD_LIBRARY_PATH |
3018 | - shlibpath_overrides_runpath=no |
3019 | - hardcode_into_libs=yes |
3020 | - dynamic_linker='NetBSD ld.elf_so' |
3021 | - ;; |
3022 | - |
3023 | -netbsd*) |
3024 | - version_type=sunos |
3025 | - need_lib_prefix=no |
3026 | - need_version=no |
3027 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
3028 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3029 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3030 | - dynamic_linker='NetBSD (a.out) ld.so' |
3031 | - else |
3032 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3033 | - soname_spec='${libname}${release}${shared_ext}$major' |
3034 | - dynamic_linker='NetBSD ld.elf_so' |
3035 | - fi |
3036 | - shlibpath_var=LD_LIBRARY_PATH |
3037 | - shlibpath_overrides_runpath=yes |
3038 | - hardcode_into_libs=yes |
3039 | - ;; |
3040 | - |
3041 | -newsos6) |
3042 | - version_type=linux # correct to gnu/linux during the next big refactor |
3043 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3044 | - shlibpath_var=LD_LIBRARY_PATH |
3045 | - shlibpath_overrides_runpath=yes |
3046 | - ;; |
3047 | - |
3048 | -*nto* | *qnx*) |
3049 | - version_type=qnx |
3050 | - need_lib_prefix=no |
3051 | - need_version=no |
3052 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3053 | - soname_spec='${libname}${release}${shared_ext}$major' |
3054 | - shlibpath_var=LD_LIBRARY_PATH |
3055 | - shlibpath_overrides_runpath=no |
3056 | - hardcode_into_libs=yes |
3057 | - dynamic_linker='ldqnx.so' |
3058 | - ;; |
3059 | - |
3060 | -openbsd*) |
3061 | - version_type=sunos |
3062 | - sys_lib_dlsearch_path_spec="/usr/lib" |
3063 | - need_lib_prefix=no |
3064 | - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
3065 | - case $host_os in |
3066 | - openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
3067 | - *) need_version=no ;; |
3068 | - esac |
3069 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3070 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3071 | - shlibpath_var=LD_LIBRARY_PATH |
3072 | - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3073 | - case $host_os in |
3074 | - openbsd2.[[89]] | openbsd2.[[89]].*) |
3075 | - shlibpath_overrides_runpath=no |
3076 | - ;; |
3077 | - *) |
3078 | - shlibpath_overrides_runpath=yes |
3079 | - ;; |
3080 | - esac |
3081 | - else |
3082 | - shlibpath_overrides_runpath=yes |
3083 | - fi |
3084 | - ;; |
3085 | - |
3086 | -os2*) |
3087 | - libname_spec='$name' |
3088 | - shrext_cmds=".dll" |
3089 | - need_lib_prefix=no |
3090 | - library_names_spec='$libname${shared_ext} $libname.a' |
3091 | - dynamic_linker='OS/2 ld.exe' |
3092 | - shlibpath_var=LIBPATH |
3093 | - ;; |
3094 | - |
3095 | -osf3* | osf4* | osf5*) |
3096 | - version_type=osf |
3097 | - need_lib_prefix=no |
3098 | - need_version=no |
3099 | - soname_spec='${libname}${release}${shared_ext}$major' |
3100 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3101 | - shlibpath_var=LD_LIBRARY_PATH |
3102 | - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
3103 | - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
3104 | - ;; |
3105 | - |
3106 | -rdos*) |
3107 | - dynamic_linker=no |
3108 | - ;; |
3109 | - |
3110 | -solaris*) |
3111 | - version_type=linux # correct to gnu/linux during the next big refactor |
3112 | - need_lib_prefix=no |
3113 | - need_version=no |
3114 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3115 | - soname_spec='${libname}${release}${shared_ext}$major' |
3116 | - shlibpath_var=LD_LIBRARY_PATH |
3117 | - shlibpath_overrides_runpath=yes |
3118 | - hardcode_into_libs=yes |
3119 | - # ldd complains unless libraries are executable |
3120 | - postinstall_cmds='chmod +x $lib' |
3121 | - ;; |
3122 | - |
3123 | -sunos4*) |
3124 | - version_type=sunos |
3125 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3126 | - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
3127 | - shlibpath_var=LD_LIBRARY_PATH |
3128 | - shlibpath_overrides_runpath=yes |
3129 | - if test "$with_gnu_ld" = yes; then |
3130 | - need_lib_prefix=no |
3131 | - fi |
3132 | - need_version=yes |
3133 | - ;; |
3134 | - |
3135 | -sysv4 | sysv4.3*) |
3136 | - version_type=linux # correct to gnu/linux during the next big refactor |
3137 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3138 | - soname_spec='${libname}${release}${shared_ext}$major' |
3139 | - shlibpath_var=LD_LIBRARY_PATH |
3140 | - case $host_vendor in |
3141 | - sni) |
3142 | - shlibpath_overrides_runpath=no |
3143 | - need_lib_prefix=no |
3144 | - runpath_var=LD_RUN_PATH |
3145 | - ;; |
3146 | - siemens) |
3147 | - need_lib_prefix=no |
3148 | - ;; |
3149 | - motorola) |
3150 | - need_lib_prefix=no |
3151 | - need_version=no |
3152 | - shlibpath_overrides_runpath=no |
3153 | - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
3154 | - ;; |
3155 | - esac |
3156 | - ;; |
3157 | - |
3158 | -sysv4*MP*) |
3159 | - if test -d /usr/nec ;then |
3160 | - version_type=linux # correct to gnu/linux during the next big refactor |
3161 | - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
3162 | - soname_spec='$libname${shared_ext}.$major' |
3163 | - shlibpath_var=LD_LIBRARY_PATH |
3164 | - fi |
3165 | - ;; |
3166 | - |
3167 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3168 | - version_type=freebsd-elf |
3169 | - need_lib_prefix=no |
3170 | - need_version=no |
3171 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
3172 | - soname_spec='${libname}${release}${shared_ext}$major' |
3173 | - shlibpath_var=LD_LIBRARY_PATH |
3174 | - shlibpath_overrides_runpath=yes |
3175 | - hardcode_into_libs=yes |
3176 | - if test "$with_gnu_ld" = yes; then |
3177 | - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
3178 | - else |
3179 | - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
3180 | - case $host_os in |
3181 | - sco3.2v5*) |
3182 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
3183 | - ;; |
3184 | - esac |
3185 | - fi |
3186 | - sys_lib_dlsearch_path_spec='/usr/lib' |
3187 | - ;; |
3188 | - |
3189 | -tpf*) |
3190 | - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
3191 | - version_type=linux # correct to gnu/linux during the next big refactor |
3192 | - need_lib_prefix=no |
3193 | - need_version=no |
3194 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3195 | - shlibpath_var=LD_LIBRARY_PATH |
3196 | - shlibpath_overrides_runpath=no |
3197 | - hardcode_into_libs=yes |
3198 | - ;; |
3199 | - |
3200 | -uts4*) |
3201 | - version_type=linux # correct to gnu/linux during the next big refactor |
3202 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3203 | - soname_spec='${libname}${release}${shared_ext}$major' |
3204 | - shlibpath_var=LD_LIBRARY_PATH |
3205 | - ;; |
3206 | - |
3207 | -*) |
3208 | - dynamic_linker=no |
3209 | - ;; |
3210 | -esac |
3211 | -AC_MSG_RESULT([$dynamic_linker]) |
3212 | -test "$dynamic_linker" = no && can_build_shared=no |
3213 | - |
3214 | -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
3215 | -if test "$GCC" = yes; then |
3216 | - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
3217 | -fi |
3218 | - |
3219 | -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
3220 | - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
3221 | -fi |
3222 | -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
3223 | - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
3224 | -fi |
3225 | - |
3226 | -_LT_DECL([], [variables_saved_for_relink], [1], |
3227 | - [Variables whose values should be saved in libtool wrapper scripts and |
3228 | - restored at link time]) |
3229 | -_LT_DECL([], [need_lib_prefix], [0], |
3230 | - [Do we need the "lib" prefix for modules?]) |
3231 | -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
3232 | -_LT_DECL([], [version_type], [0], [Library versioning type]) |
3233 | -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
3234 | -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
3235 | -_LT_DECL([], [shlibpath_overrides_runpath], [0], |
3236 | - [Is shlibpath searched before the hard-coded library search path?]) |
3237 | -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
3238 | -_LT_DECL([], [library_names_spec], [1], |
3239 | - [[List of archive names. First name is the real one, the rest are links. |
3240 | - The last name is the one that the linker finds with -lNAME]]) |
3241 | -_LT_DECL([], [soname_spec], [1], |
3242 | - [[The coded name of the library, if different from the real name]]) |
3243 | -_LT_DECL([], [install_override_mode], [1], |
3244 | - [Permission mode override for installation of shared libraries]) |
3245 | -_LT_DECL([], [postinstall_cmds], [2], |
3246 | - [Command to use after installation of a shared archive]) |
3247 | -_LT_DECL([], [postuninstall_cmds], [2], |
3248 | - [Command to use after uninstallation of a shared archive]) |
3249 | -_LT_DECL([], [finish_cmds], [2], |
3250 | - [Commands used to finish a libtool library installation in a directory]) |
3251 | -_LT_DECL([], [finish_eval], [1], |
3252 | - [[As "finish_cmds", except a single script fragment to be evaled but |
3253 | - not shown]]) |
3254 | -_LT_DECL([], [hardcode_into_libs], [0], |
3255 | - [Whether we should hardcode library paths into libraries]) |
3256 | -_LT_DECL([], [sys_lib_search_path_spec], [2], |
3257 | - [Compile-time system search path for libraries]) |
3258 | -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
3259 | - [Run-time system search path for libraries]) |
3260 | -])# _LT_SYS_DYNAMIC_LINKER |
3261 | - |
3262 | - |
3263 | -# _LT_PATH_TOOL_PREFIX(TOOL) |
3264 | -# -------------------------- |
3265 | -# find a file program which can recognize shared library |
3266 | -AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
3267 | -[m4_require([_LT_DECL_EGREP])dnl |
3268 | -AC_MSG_CHECKING([for $1]) |
3269 | -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
3270 | -[case $MAGIC_CMD in |
3271 | -[[\\/*] | ?:[\\/]*]) |
3272 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3273 | - ;; |
3274 | -*) |
3275 | - lt_save_MAGIC_CMD="$MAGIC_CMD" |
3276 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3277 | -dnl $ac_dummy forces splitting on constant user-supplied paths. |
3278 | -dnl POSIX.2 word splitting is done only on the output of word expansions, |
3279 | -dnl not every word. This closes a longstanding sh security hole. |
3280 | - ac_dummy="m4_if([$2], , $PATH, [$2])" |
3281 | - for ac_dir in $ac_dummy; do |
3282 | - IFS="$lt_save_ifs" |
3283 | - test -z "$ac_dir" && ac_dir=. |
3284 | - if test -f $ac_dir/$1; then |
3285 | - lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
3286 | - if test -n "$file_magic_test_file"; then |
3287 | - case $deplibs_check_method in |
3288 | - "file_magic "*) |
3289 | - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
3290 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3291 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3292 | - $EGREP "$file_magic_regex" > /dev/null; then |
3293 | - : |
3294 | - else |
3295 | - cat <<_LT_EOF 1>&2 |
3296 | - |
3297 | -*** Warning: the command libtool uses to detect shared libraries, |
3298 | -*** $file_magic_cmd, produces output that libtool cannot recognize. |
3299 | -*** The result is that libtool may fail to recognize shared libraries |
3300 | -*** as such. This will affect the creation of libtool libraries that |
3301 | -*** depend on shared libraries, but programs linked with such libtool |
3302 | -*** libraries will work regardless of this problem. Nevertheless, you |
3303 | -*** may want to report the problem to your system manager and/or to |
3304 | -*** bug-libtool@gnu.org |
3305 | - |
3306 | -_LT_EOF |
3307 | - fi ;; |
3308 | - esac |
3309 | - fi |
3310 | - break |
3311 | - fi |
3312 | - done |
3313 | - IFS="$lt_save_ifs" |
3314 | - MAGIC_CMD="$lt_save_MAGIC_CMD" |
3315 | - ;; |
3316 | -esac]) |
3317 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3318 | -if test -n "$MAGIC_CMD"; then |
3319 | - AC_MSG_RESULT($MAGIC_CMD) |
3320 | -else |
3321 | - AC_MSG_RESULT(no) |
3322 | -fi |
3323 | -_LT_DECL([], [MAGIC_CMD], [0], |
3324 | - [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
3325 | -])# _LT_PATH_TOOL_PREFIX |
3326 | - |
3327 | -# Old name: |
3328 | -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
3329 | -dnl aclocal-1.4 backwards compatibility: |
3330 | -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
3331 | - |
3332 | - |
3333 | -# _LT_PATH_MAGIC |
3334 | -# -------------- |
3335 | -# find a file program which can recognize a shared library |
3336 | -m4_defun([_LT_PATH_MAGIC], |
3337 | -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
3338 | -if test -z "$lt_cv_path_MAGIC_CMD"; then |
3339 | - if test -n "$ac_tool_prefix"; then |
3340 | - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
3341 | - else |
3342 | - MAGIC_CMD=: |
3343 | - fi |
3344 | -fi |
3345 | -])# _LT_PATH_MAGIC |
3346 | - |
3347 | - |
3348 | -# LT_PATH_LD |
3349 | -# ---------- |
3350 | -# find the pathname to the GNU or non-GNU linker |
3351 | -AC_DEFUN([LT_PATH_LD], |
3352 | -[AC_REQUIRE([AC_PROG_CC])dnl |
3353 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3354 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3355 | -m4_require([_LT_DECL_SED])dnl |
3356 | -m4_require([_LT_DECL_EGREP])dnl |
3357 | -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl |
3358 | - |
3359 | -AC_ARG_WITH([gnu-ld], |
3360 | - [AS_HELP_STRING([--with-gnu-ld], |
3361 | - [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3362 | - [test "$withval" = no || with_gnu_ld=yes], |
3363 | - [with_gnu_ld=no])dnl |
3364 | - |
3365 | -ac_prog=ld |
3366 | -if test "$GCC" = yes; then |
3367 | - # Check if gcc -print-prog-name=ld gives a path. |
3368 | - AC_MSG_CHECKING([for ld used by $CC]) |
3369 | - case $host in |
3370 | - *-*-mingw*) |
3371 | - # gcc leaves a trailing carriage return which upsets mingw |
3372 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3373 | - *) |
3374 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3375 | - esac |
3376 | - case $ac_prog in |
3377 | - # Accept absolute paths. |
3378 | - [[\\/]]* | ?:[[\\/]]*) |
3379 | - re_direlt='/[[^/]][[^/]]*/\.\./' |
3380 | - # Canonicalize the pathname of ld |
3381 | - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
3382 | - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
3383 | - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
3384 | - done |
3385 | - test -z "$LD" && LD="$ac_prog" |
3386 | - ;; |
3387 | - "") |
3388 | - # If it fails, then pretend we aren't using GCC. |
3389 | - ac_prog=ld |
3390 | - ;; |
3391 | - *) |
3392 | - # If it is relative, then search for the first ld in PATH. |
3393 | - with_gnu_ld=unknown |
3394 | - ;; |
3395 | - esac |
3396 | -elif test "$with_gnu_ld" = yes; then |
3397 | - AC_MSG_CHECKING([for GNU ld]) |
3398 | -else |
3399 | - AC_MSG_CHECKING([for non-GNU ld]) |
3400 | -fi |
3401 | -AC_CACHE_VAL(lt_cv_path_LD, |
3402 | -[if test -z "$LD"; then |
3403 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3404 | - for ac_dir in $PATH; do |
3405 | - IFS="$lt_save_ifs" |
3406 | - test -z "$ac_dir" && ac_dir=. |
3407 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3408 | - lt_cv_path_LD="$ac_dir/$ac_prog" |
3409 | - # Check to see if the program is GNU ld. I'd rather use --version, |
3410 | - # but apparently some variants of GNU ld only accept -v. |
3411 | - # Break only if it was the GNU/non-GNU ld that we prefer. |
3412 | - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3413 | - *GNU* | *'with BFD'*) |
3414 | - test "$with_gnu_ld" != no && break |
3415 | - ;; |
3416 | - *) |
3417 | - test "$with_gnu_ld" != yes && break |
3418 | - ;; |
3419 | - esac |
3420 | - fi |
3421 | - done |
3422 | - IFS="$lt_save_ifs" |
3423 | -else |
3424 | - lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3425 | -fi]) |
3426 | -LD="$lt_cv_path_LD" |
3427 | -if test -n "$LD"; then |
3428 | - AC_MSG_RESULT($LD) |
3429 | -else |
3430 | - AC_MSG_RESULT(no) |
3431 | -fi |
3432 | -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
3433 | -_LT_PATH_LD_GNU |
3434 | -AC_SUBST([LD]) |
3435 | - |
3436 | -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
3437 | -])# LT_PATH_LD |
3438 | - |
3439 | -# Old names: |
3440 | -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
3441 | -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
3442 | -dnl aclocal-1.4 backwards compatibility: |
3443 | -dnl AC_DEFUN([AM_PROG_LD], []) |
3444 | -dnl AC_DEFUN([AC_PROG_LD], []) |
3445 | - |
3446 | - |
3447 | -# _LT_PATH_LD_GNU |
3448 | -#- -------------- |
3449 | -m4_defun([_LT_PATH_LD_GNU], |
3450 | -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
3451 | -[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
3452 | -case `$LD -v 2>&1 </dev/null` in |
3453 | -*GNU* | *'with BFD'*) |
3454 | - lt_cv_prog_gnu_ld=yes |
3455 | - ;; |
3456 | -*) |
3457 | - lt_cv_prog_gnu_ld=no |
3458 | - ;; |
3459 | -esac]) |
3460 | -with_gnu_ld=$lt_cv_prog_gnu_ld |
3461 | -])# _LT_PATH_LD_GNU |
3462 | - |
3463 | - |
3464 | -# _LT_CMD_RELOAD |
3465 | -# -------------- |
3466 | -# find reload flag for linker |
3467 | -# -- PORTME Some linkers may need a different reload flag. |
3468 | -m4_defun([_LT_CMD_RELOAD], |
3469 | -[AC_CACHE_CHECK([for $LD option to reload object files], |
3470 | - lt_cv_ld_reload_flag, |
3471 | - [lt_cv_ld_reload_flag='-r']) |
3472 | -reload_flag=$lt_cv_ld_reload_flag |
3473 | -case $reload_flag in |
3474 | -"" | " "*) ;; |
3475 | -*) reload_flag=" $reload_flag" ;; |
3476 | -esac |
3477 | -reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3478 | -case $host_os in |
3479 | - cygwin* | mingw* | pw32* | cegcc*) |
3480 | - if test "$GCC" != yes; then |
3481 | - reload_cmds=false |
3482 | - fi |
3483 | - ;; |
3484 | - darwin*) |
3485 | - if test "$GCC" = yes; then |
3486 | - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3487 | - else |
3488 | - reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3489 | - fi |
3490 | - ;; |
3491 | -esac |
3492 | -_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
3493 | -_LT_TAGDECL([], [reload_cmds], [2])dnl |
3494 | -])# _LT_CMD_RELOAD |
3495 | - |
3496 | - |
3497 | -# _LT_CHECK_MAGIC_METHOD |
3498 | -# ---------------------- |
3499 | -# how to check for library dependencies |
3500 | -# -- PORTME fill in with the dynamic library characteristics |
3501 | -m4_defun([_LT_CHECK_MAGIC_METHOD], |
3502 | -[m4_require([_LT_DECL_EGREP]) |
3503 | -m4_require([_LT_DECL_OBJDUMP]) |
3504 | -AC_CACHE_CHECK([how to recognize dependent libraries], |
3505 | -lt_cv_deplibs_check_method, |
3506 | -[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3507 | -lt_cv_file_magic_test_file= |
3508 | -lt_cv_deplibs_check_method='unknown' |
3509 | -# Need to set the preceding variable on all platforms that support |
3510 | -# interlibrary dependencies. |
3511 | -# 'none' -- dependencies not supported. |
3512 | -# `unknown' -- same as none, but documents that we really don't know. |
3513 | -# 'pass_all' -- all dependencies passed with no checks. |
3514 | -# 'test_compile' -- check by making test program. |
3515 | -# 'file_magic [[regex]]' -- check by looking for files in library path |
3516 | -# which responds to the $file_magic_cmd with a given extended regex. |
3517 | -# If you have `file' or equivalent on your system and you're not sure |
3518 | -# whether `pass_all' will *always* work, you probably want this one. |
3519 | - |
3520 | -case $host_os in |
3521 | -aix[[4-9]]*) |
3522 | - lt_cv_deplibs_check_method=pass_all |
3523 | - ;; |
3524 | - |
3525 | -beos*) |
3526 | - lt_cv_deplibs_check_method=pass_all |
3527 | - ;; |
3528 | - |
3529 | -bsdi[[45]]*) |
3530 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3531 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
3532 | - lt_cv_file_magic_test_file=/shlib/libc.so |
3533 | - ;; |
3534 | - |
3535 | -cygwin*) |
3536 | - # func_win32_libid is a shell function defined in ltmain.sh |
3537 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3538 | - lt_cv_file_magic_cmd='func_win32_libid' |
3539 | - ;; |
3540 | - |
3541 | -mingw* | pw32*) |
3542 | - # Base MSYS/MinGW do not provide the 'file' command needed by |
3543 | - # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3544 | - # unless we find 'file', for example because we are cross-compiling. |
3545 | - # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
3546 | - if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
3547 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3548 | - lt_cv_file_magic_cmd='func_win32_libid' |
3549 | - else |
3550 | - # Keep this pattern in sync with the one in func_win32_libid. |
3551 | - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
3552 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
3553 | - fi |
3554 | - ;; |
3555 | - |
3556 | -cegcc*) |
3557 | - # use the weaker test based on 'objdump'. See mingw*. |
3558 | - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3559 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
3560 | - ;; |
3561 | - |
3562 | -darwin* | rhapsody*) |
3563 | - lt_cv_deplibs_check_method=pass_all |
3564 | - ;; |
3565 | - |
3566 | -freebsd* | dragonfly*) |
3567 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3568 | - case $host_cpu in |
3569 | - i*86 ) |
3570 | - # Not sure whether the presence of OpenBSD here was a mistake. |
3571 | - # Let's accept both of them until this is cleared up. |
3572 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3573 | - lt_cv_file_magic_cmd=/usr/bin/file |
3574 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3575 | - ;; |
3576 | - esac |
3577 | - else |
3578 | - lt_cv_deplibs_check_method=pass_all |
3579 | - fi |
3580 | - ;; |
3581 | - |
3582 | -gnu*) |
3583 | - lt_cv_deplibs_check_method=pass_all |
3584 | - ;; |
3585 | - |
3586 | -haiku*) |
3587 | - lt_cv_deplibs_check_method=pass_all |
3588 | - ;; |
3589 | - |
3590 | -hpux10.20* | hpux11*) |
3591 | - lt_cv_file_magic_cmd=/usr/bin/file |
3592 | - case $host_cpu in |
3593 | - ia64*) |
3594 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3595 | - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3596 | - ;; |
3597 | - hppa*64*) |
3598 | - [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]'] |
3599 | - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3600 | - ;; |
3601 | - *) |
3602 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' |
3603 | - lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3604 | - ;; |
3605 | - esac |
3606 | - ;; |
3607 | - |
3608 | -interix[[3-9]]*) |
3609 | - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3610 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
3611 | - ;; |
3612 | - |
3613 | -irix5* | irix6* | nonstopux*) |
3614 | - case $LD in |
3615 | - *-32|*"-32 ") libmagic=32-bit;; |
3616 | - *-n32|*"-n32 ") libmagic=N32;; |
3617 | - *-64|*"-64 ") libmagic=64-bit;; |
3618 | - *) libmagic=never-match;; |
3619 | - esac |
3620 | - lt_cv_deplibs_check_method=pass_all |
3621 | - ;; |
3622 | - |
3623 | -# This must be glibc/ELF. |
3624 | -linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3625 | - lt_cv_deplibs_check_method=pass_all |
3626 | - ;; |
3627 | - |
3628 | -netbsd* | netbsdelf*-gnu) |
3629 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3630 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3631 | - else |
3632 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3633 | - fi |
3634 | - ;; |
3635 | - |
3636 | -newos6*) |
3637 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3638 | - lt_cv_file_magic_cmd=/usr/bin/file |
3639 | - lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3640 | - ;; |
3641 | - |
3642 | -*nto* | *qnx*) |
3643 | - lt_cv_deplibs_check_method=pass_all |
3644 | - ;; |
3645 | - |
3646 | -openbsd*) |
3647 | - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3648 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3649 | - else |
3650 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3651 | - fi |
3652 | - ;; |
3653 | - |
3654 | -osf3* | osf4* | osf5*) |
3655 | - lt_cv_deplibs_check_method=pass_all |
3656 | - ;; |
3657 | - |
3658 | -rdos*) |
3659 | - lt_cv_deplibs_check_method=pass_all |
3660 | - ;; |
3661 | - |
3662 | -solaris*) |
3663 | - lt_cv_deplibs_check_method=pass_all |
3664 | - ;; |
3665 | - |
3666 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3667 | - lt_cv_deplibs_check_method=pass_all |
3668 | - ;; |
3669 | - |
3670 | -sysv4 | sysv4.3*) |
3671 | - case $host_vendor in |
3672 | - motorola) |
3673 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
3674 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3675 | - ;; |
3676 | - ncr) |
3677 | - lt_cv_deplibs_check_method=pass_all |
3678 | - ;; |
3679 | - sequent) |
3680 | - lt_cv_file_magic_cmd='/bin/file' |
3681 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3682 | - ;; |
3683 | - sni) |
3684 | - lt_cv_file_magic_cmd='/bin/file' |
3685 | - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3686 | - lt_cv_file_magic_test_file=/lib/libc.so |
3687 | - ;; |
3688 | - siemens) |
3689 | - lt_cv_deplibs_check_method=pass_all |
3690 | - ;; |
3691 | - pc) |
3692 | - lt_cv_deplibs_check_method=pass_all |
3693 | - ;; |
3694 | - esac |
3695 | - ;; |
3696 | - |
3697 | -tpf*) |
3698 | - lt_cv_deplibs_check_method=pass_all |
3699 | - ;; |
3700 | -esac |
3701 | -]) |
3702 | - |
3703 | -file_magic_glob= |
3704 | -want_nocaseglob=no |
3705 | -if test "$build" = "$host"; then |
3706 | - case $host_os in |
3707 | - mingw* | pw32*) |
3708 | - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
3709 | - want_nocaseglob=yes |
3710 | - else |
3711 | - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
3712 | - fi |
3713 | - ;; |
3714 | - esac |
3715 | -fi |
3716 | - |
3717 | -file_magic_cmd=$lt_cv_file_magic_cmd |
3718 | -deplibs_check_method=$lt_cv_deplibs_check_method |
3719 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3720 | - |
3721 | -_LT_DECL([], [deplibs_check_method], [1], |
3722 | - [Method to check whether dependent libraries are shared objects]) |
3723 | -_LT_DECL([], [file_magic_cmd], [1], |
3724 | - [Command to use when deplibs_check_method = "file_magic"]) |
3725 | -_LT_DECL([], [file_magic_glob], [1], |
3726 | - [How to find potential files when deplibs_check_method = "file_magic"]) |
3727 | -_LT_DECL([], [want_nocaseglob], [1], |
3728 | - [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) |
3729 | -])# _LT_CHECK_MAGIC_METHOD |
3730 | - |
3731 | - |
3732 | -# LT_PATH_NM |
3733 | -# ---------- |
3734 | -# find the pathname to a BSD- or MS-compatible name lister |
3735 | -AC_DEFUN([LT_PATH_NM], |
3736 | -[AC_REQUIRE([AC_PROG_CC])dnl |
3737 | -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
3738 | -[if test -n "$NM"; then |
3739 | - # Let the user override the test. |
3740 | - lt_cv_path_NM="$NM" |
3741 | -else |
3742 | - lt_nm_to_check="${ac_tool_prefix}nm" |
3743 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3744 | - lt_nm_to_check="$lt_nm_to_check nm" |
3745 | - fi |
3746 | - for lt_tmp_nm in $lt_nm_to_check; do |
3747 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3748 | - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3749 | - IFS="$lt_save_ifs" |
3750 | - test -z "$ac_dir" && ac_dir=. |
3751 | - tmp_nm="$ac_dir/$lt_tmp_nm" |
3752 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3753 | - # Check to see if the nm accepts a BSD-compat flag. |
3754 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3755 | - # nm: unknown option "B" ignored |
3756 | - # Tru64's nm complains that /dev/null is an invalid object file |
3757 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3758 | - */dev/null* | *'Invalid file or object type'*) |
3759 | - lt_cv_path_NM="$tmp_nm -B" |
3760 | - break |
3761 | - ;; |
3762 | - *) |
3763 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3764 | - */dev/null*) |
3765 | - lt_cv_path_NM="$tmp_nm -p" |
3766 | - break |
3767 | - ;; |
3768 | - *) |
3769 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3770 | - continue # so that we can try to find one that supports BSD flags |
3771 | - ;; |
3772 | - esac |
3773 | - ;; |
3774 | - esac |
3775 | - fi |
3776 | - done |
3777 | - IFS="$lt_save_ifs" |
3778 | - done |
3779 | - : ${lt_cv_path_NM=no} |
3780 | -fi]) |
3781 | -if test "$lt_cv_path_NM" != "no"; then |
3782 | - NM="$lt_cv_path_NM" |
3783 | -else |
3784 | - # Didn't find any BSD compatible name lister, look for dumpbin. |
3785 | - if test -n "$DUMPBIN"; then : |
3786 | - # Let the user override the test. |
3787 | - else |
3788 | - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) |
3789 | - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
3790 | - *COFF*) |
3791 | - DUMPBIN="$DUMPBIN -symbols" |
3792 | - ;; |
3793 | - *) |
3794 | - DUMPBIN=: |
3795 | - ;; |
3796 | - esac |
3797 | - fi |
3798 | - AC_SUBST([DUMPBIN]) |
3799 | - if test "$DUMPBIN" != ":"; then |
3800 | - NM="$DUMPBIN" |
3801 | - fi |
3802 | -fi |
3803 | -test -z "$NM" && NM=nm |
3804 | -AC_SUBST([NM]) |
3805 | -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3806 | - |
3807 | -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3808 | - [lt_cv_nm_interface="BSD nm" |
3809 | - echo "int some_variable = 0;" > conftest.$ac_ext |
3810 | - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
3811 | - (eval "$ac_compile" 2>conftest.err) |
3812 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
3813 | - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
3814 | - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3815 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
3816 | - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) |
3817 | - cat conftest.out >&AS_MESSAGE_LOG_FD |
3818 | - if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3819 | - lt_cv_nm_interface="MS dumpbin" |
3820 | - fi |
3821 | - rm -f conftest*]) |
3822 | -])# LT_PATH_NM |
3823 | - |
3824 | -# Old names: |
3825 | -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
3826 | -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
3827 | -dnl aclocal-1.4 backwards compatibility: |
3828 | -dnl AC_DEFUN([AM_PROG_NM], []) |
3829 | -dnl AC_DEFUN([AC_PROG_NM], []) |
3830 | - |
3831 | -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
3832 | -# -------------------------------- |
3833 | -# how to determine the name of the shared library |
3834 | -# associated with a specific link library. |
3835 | -# -- PORTME fill in with the dynamic library characteristics |
3836 | -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
3837 | -[m4_require([_LT_DECL_EGREP]) |
3838 | -m4_require([_LT_DECL_OBJDUMP]) |
3839 | -m4_require([_LT_DECL_DLLTOOL]) |
3840 | -AC_CACHE_CHECK([how to associate runtime and link libraries], |
3841 | -lt_cv_sharedlib_from_linklib_cmd, |
3842 | -[lt_cv_sharedlib_from_linklib_cmd='unknown' |
3843 | - |
3844 | -case $host_os in |
3845 | -cygwin* | mingw* | pw32* | cegcc*) |
3846 | - # two different shell functions defined in ltmain.sh |
3847 | - # decide which to use based on capabilities of $DLLTOOL |
3848 | - case `$DLLTOOL --help 2>&1` in |
3849 | - *--identify-strict*) |
3850 | - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
3851 | - ;; |
3852 | - *) |
3853 | - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
3854 | - ;; |
3855 | - esac |
3856 | - ;; |
3857 | -*) |
3858 | - # fallback: assume linklib IS sharedlib |
3859 | - lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
3860 | - ;; |
3861 | -esac |
3862 | -]) |
3863 | -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
3864 | -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
3865 | - |
3866 | -_LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
3867 | - [Command to associate shared and link libraries]) |
3868 | -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
3869 | - |
3870 | - |
3871 | -# _LT_PATH_MANIFEST_TOOL |
3872 | -# ---------------------- |
3873 | -# locate the manifest tool |
3874 | -m4_defun([_LT_PATH_MANIFEST_TOOL], |
3875 | -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
3876 | -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
3877 | -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], |
3878 | - [lt_cv_path_mainfest_tool=no |
3879 | - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
3880 | - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
3881 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
3882 | - if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
3883 | - lt_cv_path_mainfest_tool=yes |
3884 | - fi |
3885 | - rm -f conftest*]) |
3886 | -if test "x$lt_cv_path_mainfest_tool" != xyes; then |
3887 | - MANIFEST_TOOL=: |
3888 | -fi |
3889 | -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
3890 | -])# _LT_PATH_MANIFEST_TOOL |
3891 | - |
3892 | - |
3893 | -# LT_LIB_M |
3894 | -# -------- |
3895 | -# check for math library |
3896 | -AC_DEFUN([LT_LIB_M], |
3897 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3898 | -LIBM= |
3899 | -case $host in |
3900 | -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
3901 | - # These system don't have libm, or don't need it |
3902 | - ;; |
3903 | -*-ncr-sysv4.3*) |
3904 | - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3905 | - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3906 | - ;; |
3907 | -*) |
3908 | - AC_CHECK_LIB(m, cos, LIBM="-lm") |
3909 | - ;; |
3910 | -esac |
3911 | -AC_SUBST([LIBM]) |
3912 | -])# LT_LIB_M |
3913 | - |
3914 | -# Old name: |
3915 | -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
3916 | -dnl aclocal-1.4 backwards compatibility: |
3917 | -dnl AC_DEFUN([AC_CHECK_LIBM], []) |
3918 | - |
3919 | - |
3920 | -# _LT_COMPILER_NO_RTTI([TAGNAME]) |
3921 | -# ------------------------------- |
3922 | -m4_defun([_LT_COMPILER_NO_RTTI], |
3923 | -[m4_require([_LT_TAG_COMPILER])dnl |
3924 | - |
3925 | -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3926 | - |
3927 | -if test "$GCC" = yes; then |
3928 | - case $cc_basename in |
3929 | - nvcc*) |
3930 | - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; |
3931 | - *) |
3932 | - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; |
3933 | - esac |
3934 | - |
3935 | - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3936 | - lt_cv_prog_compiler_rtti_exceptions, |
3937 | - [-fno-rtti -fno-exceptions], [], |
3938 | - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
3939 | -fi |
3940 | -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
3941 | - [Compiler flag to turn off builtin functions]) |
3942 | -])# _LT_COMPILER_NO_RTTI |
3943 | - |
3944 | - |
3945 | -# _LT_CMD_GLOBAL_SYMBOLS |
3946 | -# ---------------------- |
3947 | -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
3948 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3949 | -AC_REQUIRE([AC_PROG_CC])dnl |
3950 | -AC_REQUIRE([AC_PROG_AWK])dnl |
3951 | -AC_REQUIRE([LT_PATH_NM])dnl |
3952 | -AC_REQUIRE([LT_PATH_LD])dnl |
3953 | -m4_require([_LT_DECL_SED])dnl |
3954 | -m4_require([_LT_DECL_EGREP])dnl |
3955 | -m4_require([_LT_TAG_COMPILER])dnl |
3956 | - |
3957 | -# Check for command to grab the raw symbol name followed by C symbol from nm. |
3958 | -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
3959 | -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
3960 | -[ |
3961 | -# These are sane defaults that work on at least a few old systems. |
3962 | -# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
3963 | - |
3964 | -# Character class describing NM global symbol codes. |
3965 | -symcode='[[BCDEGRST]]' |
3966 | - |
3967 | -# Regexp to match symbols that can be accessed directly from C. |
3968 | -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
3969 | - |
3970 | -# Define system-specific variables. |
3971 | -case $host_os in |
3972 | -aix*) |
3973 | - symcode='[[BCDT]]' |
3974 | - ;; |
3975 | -cygwin* | mingw* | pw32* | cegcc*) |
3976 | - symcode='[[ABCDGISTW]]' |
3977 | - ;; |
3978 | -hpux*) |
3979 | - if test "$host_cpu" = ia64; then |
3980 | - symcode='[[ABCDEGRST]]' |
3981 | - fi |
3982 | - ;; |
3983 | -irix* | nonstopux*) |
3984 | - symcode='[[BCDEGRST]]' |
3985 | - ;; |
3986 | -osf*) |
3987 | - symcode='[[BCDEGQRST]]' |
3988 | - ;; |
3989 | -solaris*) |
3990 | - symcode='[[BDRT]]' |
3991 | - ;; |
3992 | -sco3.2v5*) |
3993 | - symcode='[[DT]]' |
3994 | - ;; |
3995 | -sysv4.2uw2*) |
3996 | - symcode='[[DT]]' |
3997 | - ;; |
3998 | -sysv5* | sco5v6* | unixware* | OpenUNIX*) |
3999 | - symcode='[[ABDT]]' |
4000 | - ;; |
4001 | -sysv4) |
4002 | - symcode='[[DFNSTU]]' |
4003 | - ;; |
4004 | -esac |
4005 | - |
4006 | -# If we're using GNU nm, then use its standard symbol codes. |
4007 | -case `$NM -V 2>&1` in |
4008 | -*GNU* | *'with BFD'*) |
4009 | - symcode='[[ABCDGIRSTW]]' ;; |
4010 | -esac |
4011 | - |
4012 | -# Transform an extracted symbol line into a proper C declaration. |
4013 | -# Some systems (esp. on ia64) link data and code symbols differently, |
4014 | -# so use this general approach. |
4015 | -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4016 | - |
4017 | -# Transform an extracted symbol line into symbol name and symbol address |
4018 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
4019 | -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
4020 | - |
4021 | -# Handle CRLF in mingw tool chain |
4022 | -opt_cr= |
4023 | -case $build_os in |
4024 | -mingw*) |
4025 | - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
4026 | - ;; |
4027 | -esac |
4028 | - |
4029 | -# Try without a prefix underscore, then with it. |
4030 | -for ac_symprfx in "" "_"; do |
4031 | - |
4032 | - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
4033 | - symxfrm="\\1 $ac_symprfx\\2 \\2" |
4034 | - |
4035 | - # Write the raw and C identifiers. |
4036 | - if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
4037 | - # Fake it for dumpbin and say T for any non-static function |
4038 | - # and D for any global variable. |
4039 | - # Also find C++ and __fastcall symbols from MSVC++, |
4040 | - # which start with @ or ?. |
4041 | - lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
4042 | -" {last_section=section; section=\$ 3};"\ |
4043 | -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
4044 | -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
4045 | -" \$ 0!~/External *\|/{next};"\ |
4046 | -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
4047 | -" {if(hide[section]) next};"\ |
4048 | -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
4049 | -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
4050 | -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
4051 | -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
4052 | -" ' prfx=^$ac_symprfx]" |
4053 | - else |
4054 | - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4055 | - fi |
4056 | - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
4057 | - |
4058 | - # Check to see that the pipe works correctly. |
4059 | - pipe_works=no |
4060 | - |
4061 | - rm -f conftest* |
4062 | - cat > conftest.$ac_ext <<_LT_EOF |
4063 | -#ifdef __cplusplus |
4064 | -extern "C" { |
4065 | -#endif |
4066 | -char nm_test_var; |
4067 | -void nm_test_func(void); |
4068 | -void nm_test_func(void){} |
4069 | -#ifdef __cplusplus |
4070 | -} |
4071 | -#endif |
4072 | -int main(){nm_test_var='a';nm_test_func();return(0);} |
4073 | -_LT_EOF |
4074 | - |
4075 | - if AC_TRY_EVAL(ac_compile); then |
4076 | - # Now try to grab the symbols. |
4077 | - nlist=conftest.nm |
4078 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then |
4079 | - # Try sorting and uniquifying the output. |
4080 | - if sort "$nlist" | uniq > "$nlist"T; then |
4081 | - mv -f "$nlist"T "$nlist" |
4082 | - else |
4083 | - rm -f "$nlist"T |
4084 | - fi |
4085 | - |
4086 | - # Make sure that we snagged all the symbols we need. |
4087 | - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
4088 | - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
4089 | - cat <<_LT_EOF > conftest.$ac_ext |
4090 | -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
4091 | -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
4092 | -/* DATA imports from DLLs on WIN32 con't be const, because runtime |
4093 | - relocations are performed -- see ld's documentation on pseudo-relocs. */ |
4094 | -# define LT@&t@_DLSYM_CONST |
4095 | -#elif defined(__osf__) |
4096 | -/* This system does not cope well with relocations in const data. */ |
4097 | -# define LT@&t@_DLSYM_CONST |
4098 | -#else |
4099 | -# define LT@&t@_DLSYM_CONST const |
4100 | -#endif |
4101 | - |
4102 | -#ifdef __cplusplus |
4103 | -extern "C" { |
4104 | -#endif |
4105 | - |
4106 | -_LT_EOF |
4107 | - # Now generate the symbol file. |
4108 | - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
4109 | - |
4110 | - cat <<_LT_EOF >> conftest.$ac_ext |
4111 | - |
4112 | -/* The mapping between symbol names and symbols. */ |
4113 | -LT@&t@_DLSYM_CONST struct { |
4114 | - const char *name; |
4115 | - void *address; |
4116 | -} |
4117 | -lt__PROGRAM__LTX_preloaded_symbols[[]] = |
4118 | -{ |
4119 | - { "@PROGRAM@", (void *) 0 }, |
4120 | -_LT_EOF |
4121 | - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
4122 | - cat <<\_LT_EOF >> conftest.$ac_ext |
4123 | - {0, (void *) 0} |
4124 | -}; |
4125 | - |
4126 | -/* This works around a problem in FreeBSD linker */ |
4127 | -#ifdef FREEBSD_WORKAROUND |
4128 | -static const void *lt_preloaded_setup() { |
4129 | - return lt__PROGRAM__LTX_preloaded_symbols; |
4130 | -} |
4131 | -#endif |
4132 | - |
4133 | -#ifdef __cplusplus |
4134 | -} |
4135 | -#endif |
4136 | -_LT_EOF |
4137 | - # Now try linking the two files. |
4138 | - mv conftest.$ac_objext conftstm.$ac_objext |
4139 | - lt_globsym_save_LIBS=$LIBS |
4140 | - lt_globsym_save_CFLAGS=$CFLAGS |
4141 | - LIBS="conftstm.$ac_objext" |
4142 | - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
4143 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
4144 | - pipe_works=yes |
4145 | - fi |
4146 | - LIBS=$lt_globsym_save_LIBS |
4147 | - CFLAGS=$lt_globsym_save_CFLAGS |
4148 | - else |
4149 | - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
4150 | - fi |
4151 | - else |
4152 | - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
4153 | - fi |
4154 | - else |
4155 | - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
4156 | - fi |
4157 | - else |
4158 | - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
4159 | - cat conftest.$ac_ext >&5 |
4160 | - fi |
4161 | - rm -rf conftest* conftst* |
4162 | - |
4163 | - # Do not use the global_symbol_pipe unless it works. |
4164 | - if test "$pipe_works" = yes; then |
4165 | - break |
4166 | - else |
4167 | - lt_cv_sys_global_symbol_pipe= |
4168 | - fi |
4169 | -done |
4170 | -]) |
4171 | -if test -z "$lt_cv_sys_global_symbol_pipe"; then |
4172 | - lt_cv_sys_global_symbol_to_cdecl= |
4173 | -fi |
4174 | -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
4175 | - AC_MSG_RESULT(failed) |
4176 | -else |
4177 | - AC_MSG_RESULT(ok) |
4178 | -fi |
4179 | - |
4180 | -# Response file support. |
4181 | -if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
4182 | - nm_file_list_spec='@' |
4183 | -elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
4184 | - nm_file_list_spec='@' |
4185 | -fi |
4186 | - |
4187 | -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
4188 | - [Take the output of nm and produce a listing of raw symbols and C names]) |
4189 | -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
4190 | - [Transform the output of nm in a proper C declaration]) |
4191 | -_LT_DECL([global_symbol_to_c_name_address], |
4192 | - [lt_cv_sys_global_symbol_to_c_name_address], [1], |
4193 | - [Transform the output of nm in a C name address pair]) |
4194 | -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
4195 | - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
4196 | - [Transform the output of nm in a C name address pair when lib prefix is needed]) |
4197 | -_LT_DECL([], [nm_file_list_spec], [1], |
4198 | - [Specify filename containing input files for $NM]) |
4199 | -]) # _LT_CMD_GLOBAL_SYMBOLS |
4200 | - |
4201 | - |
4202 | -# _LT_COMPILER_PIC([TAGNAME]) |
4203 | -# --------------------------- |
4204 | -m4_defun([_LT_COMPILER_PIC], |
4205 | -[m4_require([_LT_TAG_COMPILER])dnl |
4206 | -_LT_TAGVAR(lt_prog_compiler_wl, $1)= |
4207 | -_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4208 | -_LT_TAGVAR(lt_prog_compiler_static, $1)= |
4209 | - |
4210 | -m4_if([$1], [CXX], [ |
4211 | - # C++ specific cases for pic, static, wl, etc. |
4212 | - if test "$GXX" = yes; then |
4213 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4214 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4215 | - |
4216 | - case $host_os in |
4217 | - aix*) |
4218 | - # All AIX code is PIC. |
4219 | - if test "$host_cpu" = ia64; then |
4220 | - # AIX 5 now supports IA64 processor |
4221 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4222 | - fi |
4223 | - ;; |
4224 | - |
4225 | - amigaos*) |
4226 | - case $host_cpu in |
4227 | - powerpc) |
4228 | - # see comment about AmigaOS4 .so support |
4229 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4230 | - ;; |
4231 | - m68k) |
4232 | - # FIXME: we need at least 68020 code to build shared libraries, but |
4233 | - # adding the `-m68020' flag to GCC prevents building anything better, |
4234 | - # like `-m68040'. |
4235 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
4236 | - ;; |
4237 | - esac |
4238 | - ;; |
4239 | - |
4240 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4241 | - # PIC is the default for these OSes. |
4242 | - ;; |
4243 | - mingw* | cygwin* | os2* | pw32* | cegcc*) |
4244 | - # This hack is so that the source file can tell whether it is being |
4245 | - # built for inclusion in a dll (and should export symbols for example). |
4246 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
4247 | - # (--disable-auto-import) libraries |
4248 | - m4_if([$1], [GCJ], [], |
4249 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4250 | - ;; |
4251 | - darwin* | rhapsody*) |
4252 | - # PIC is the default on this platform |
4253 | - # Common symbols not allowed in MH_DYLIB files |
4254 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4255 | - ;; |
4256 | - *djgpp*) |
4257 | - # DJGPP does not support shared libraries at all |
4258 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4259 | - ;; |
4260 | - haiku*) |
4261 | - # PIC is the default for Haiku. |
4262 | - # The "-static" flag exists, but is broken. |
4263 | - _LT_TAGVAR(lt_prog_compiler_static, $1)= |
4264 | - ;; |
4265 | - interix[[3-9]]*) |
4266 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4267 | - # Instead, we relocate shared libraries at runtime. |
4268 | - ;; |
4269 | - sysv4*MP*) |
4270 | - if test -d /usr/nec; then |
4271 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4272 | - fi |
4273 | - ;; |
4274 | - hpux*) |
4275 | - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4276 | - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
4277 | - # sets the default TLS model and affects inlining. |
4278 | - case $host_cpu in |
4279 | - hppa*64*) |
4280 | - ;; |
4281 | - *) |
4282 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4283 | - ;; |
4284 | - esac |
4285 | - ;; |
4286 | - *qnx* | *nto*) |
4287 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
4288 | - # it will coredump. |
4289 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
4290 | - ;; |
4291 | - *) |
4292 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4293 | - ;; |
4294 | - esac |
4295 | - else |
4296 | - case $host_os in |
4297 | - aix[[4-9]]*) |
4298 | - # All AIX code is PIC. |
4299 | - if test "$host_cpu" = ia64; then |
4300 | - # AIX 5 now supports IA64 processor |
4301 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4302 | - else |
4303 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4304 | - fi |
4305 | - ;; |
4306 | - chorus*) |
4307 | - case $cc_basename in |
4308 | - cxch68*) |
4309 | - # Green Hills C++ Compiler |
4310 | - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
4311 | - ;; |
4312 | - esac |
4313 | - ;; |
4314 | - mingw* | cygwin* | os2* | pw32* | cegcc*) |
4315 | - # This hack is so that the source file can tell whether it is being |
4316 | - # built for inclusion in a dll (and should export symbols for example). |
4317 | - m4_if([$1], [GCJ], [], |
4318 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4319 | - ;; |
4320 | - dgux*) |
4321 | - case $cc_basename in |
4322 | - ec++*) |
4323 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4324 | - ;; |
4325 | - ghcx*) |
4326 | - # Green Hills C++ Compiler |
4327 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4328 | - ;; |
4329 | - *) |
4330 | - ;; |
4331 | - esac |
4332 | - ;; |
4333 | - freebsd* | dragonfly*) |
4334 | - # FreeBSD uses GNU C++ |
4335 | - ;; |
4336 | - hpux9* | hpux10* | hpux11*) |
4337 | - case $cc_basename in |
4338 | - CC*) |
4339 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4340 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4341 | - if test "$host_cpu" != ia64; then |
4342 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4343 | - fi |
4344 | - ;; |
4345 | - aCC*) |
4346 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4347 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4348 | - case $host_cpu in |
4349 | - hppa*64*|ia64*) |
4350 | - # +Z the default |
4351 | - ;; |
4352 | - *) |
4353 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4354 | - ;; |
4355 | - esac |
4356 | - ;; |
4357 | - *) |
4358 | - ;; |
4359 | - esac |
4360 | - ;; |
4361 | - interix*) |
4362 | - # This is c89, which is MS Visual C++ (no shared libs) |
4363 | - # Anyone wants to do a port? |
4364 | - ;; |
4365 | - irix5* | irix6* | nonstopux*) |
4366 | - case $cc_basename in |
4367 | - CC*) |
4368 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4369 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4370 | - # CC pic flag -KPIC is the default. |
4371 | - ;; |
4372 | - *) |
4373 | - ;; |
4374 | - esac |
4375 | - ;; |
4376 | - linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4377 | - case $cc_basename in |
4378 | - KCC*) |
4379 | - # KAI C++ Compiler |
4380 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4381 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4382 | - ;; |
4383 | - ecpc* ) |
4384 | - # old Intel C++ for x86_64 which still supported -KPIC. |
4385 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4386 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4387 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4388 | - ;; |
4389 | - icpc* ) |
4390 | - # Intel C++, used to be incompatible with GCC. |
4391 | - # ICC 10 doesn't accept -KPIC any more. |
4392 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4393 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4394 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4395 | - ;; |
4396 | - pgCC* | pgcpp*) |
4397 | - # Portland Group C++ compiler |
4398 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4399 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4400 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4401 | - ;; |
4402 | - cxx*) |
4403 | - # Compaq C++ |
4404 | - # Make sure the PIC flag is empty. It appears that all Alpha |
4405 | - # Linux and Compaq Tru64 Unix objects are PIC. |
4406 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4407 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4408 | - ;; |
4409 | - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) |
4410 | - # IBM XL 8.0, 9.0 on PPC and BlueGene |
4411 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4412 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4413 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4414 | - ;; |
4415 | - *) |
4416 | - case `$CC -V 2>&1 | sed 5q` in |
4417 | - *Sun\ C*) |
4418 | - # Sun C++ 5.9 |
4419 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4420 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4421 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4422 | - ;; |
4423 | - esac |
4424 | - ;; |
4425 | - esac |
4426 | - ;; |
4427 | - lynxos*) |
4428 | - ;; |
4429 | - m88k*) |
4430 | - ;; |
4431 | - mvs*) |
4432 | - case $cc_basename in |
4433 | - cxx*) |
4434 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
4435 | - ;; |
4436 | - *) |
4437 | - ;; |
4438 | - esac |
4439 | - ;; |
4440 | - netbsd* | netbsdelf*-gnu) |
4441 | - ;; |
4442 | - *qnx* | *nto*) |
4443 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
4444 | - # it will coredump. |
4445 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
4446 | - ;; |
4447 | - osf3* | osf4* | osf5*) |
4448 | - case $cc_basename in |
4449 | - KCC*) |
4450 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4451 | - ;; |
4452 | - RCC*) |
4453 | - # Rational C++ 2.4.1 |
4454 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4455 | - ;; |
4456 | - cxx*) |
4457 | - # Digital/Compaq C++ |
4458 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4459 | - # Make sure the PIC flag is empty. It appears that all Alpha |
4460 | - # Linux and Compaq Tru64 Unix objects are PIC. |
4461 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4462 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4463 | - ;; |
4464 | - *) |
4465 | - ;; |
4466 | - esac |
4467 | - ;; |
4468 | - psos*) |
4469 | - ;; |
4470 | - solaris*) |
4471 | - case $cc_basename in |
4472 | - CC* | sunCC*) |
4473 | - # Sun C++ 4.2, 5.x and Centerline C++ |
4474 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4475 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4476 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4477 | - ;; |
4478 | - gcx*) |
4479 | - # Green Hills C++ Compiler |
4480 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4481 | - ;; |
4482 | - *) |
4483 | - ;; |
4484 | - esac |
4485 | - ;; |
4486 | - sunos4*) |
4487 | - case $cc_basename in |
4488 | - CC*) |
4489 | - # Sun C++ 4.x |
4490 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4491 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4492 | - ;; |
4493 | - lcc*) |
4494 | - # Lucid |
4495 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4496 | - ;; |
4497 | - *) |
4498 | - ;; |
4499 | - esac |
4500 | - ;; |
4501 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
4502 | - case $cc_basename in |
4503 | - CC*) |
4504 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4505 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4506 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4507 | - ;; |
4508 | - esac |
4509 | - ;; |
4510 | - tandem*) |
4511 | - case $cc_basename in |
4512 | - NCC*) |
4513 | - # NonStop-UX NCC 3.20 |
4514 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4515 | - ;; |
4516 | - *) |
4517 | - ;; |
4518 | - esac |
4519 | - ;; |
4520 | - vxworks*) |
4521 | - ;; |
4522 | - *) |
4523 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4524 | - ;; |
4525 | - esac |
4526 | - fi |
4527 | -], |
4528 | -[ |
4529 | - if test "$GCC" = yes; then |
4530 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4531 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4532 | - |
4533 | - case $host_os in |
4534 | - aix*) |
4535 | - # All AIX code is PIC. |
4536 | - if test "$host_cpu" = ia64; then |
4537 | - # AIX 5 now supports IA64 processor |
4538 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4539 | - fi |
4540 | - ;; |
4541 | - |
4542 | - amigaos*) |
4543 | - case $host_cpu in |
4544 | - powerpc) |
4545 | - # see comment about AmigaOS4 .so support |
4546 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4547 | - ;; |
4548 | - m68k) |
4549 | - # FIXME: we need at least 68020 code to build shared libraries, but |
4550 | - # adding the `-m68020' flag to GCC prevents building anything better, |
4551 | - # like `-m68040'. |
4552 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
4553 | - ;; |
4554 | - esac |
4555 | - ;; |
4556 | - |
4557 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
4558 | - # PIC is the default for these OSes. |
4559 | - ;; |
4560 | - |
4561 | - mingw* | cygwin* | pw32* | os2* | cegcc*) |
4562 | - # This hack is so that the source file can tell whether it is being |
4563 | - # built for inclusion in a dll (and should export symbols for example). |
4564 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
4565 | - # (--disable-auto-import) libraries |
4566 | - m4_if([$1], [GCJ], [], |
4567 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4568 | - ;; |
4569 | - |
4570 | - darwin* | rhapsody*) |
4571 | - # PIC is the default on this platform |
4572 | - # Common symbols not allowed in MH_DYLIB files |
4573 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4574 | - ;; |
4575 | - |
4576 | - haiku*) |
4577 | - # PIC is the default for Haiku. |
4578 | - # The "-static" flag exists, but is broken. |
4579 | - _LT_TAGVAR(lt_prog_compiler_static, $1)= |
4580 | - ;; |
4581 | - |
4582 | - hpux*) |
4583 | - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4584 | - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
4585 | - # sets the default TLS model and affects inlining. |
4586 | - case $host_cpu in |
4587 | - hppa*64*) |
4588 | - # +Z the default |
4589 | - ;; |
4590 | - *) |
4591 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4592 | - ;; |
4593 | - esac |
4594 | - ;; |
4595 | - |
4596 | - interix[[3-9]]*) |
4597 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4598 | - # Instead, we relocate shared libraries at runtime. |
4599 | - ;; |
4600 | - |
4601 | - msdosdjgpp*) |
4602 | - # Just because we use GCC doesn't mean we suddenly get shared libraries |
4603 | - # on systems that don't support them. |
4604 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4605 | - enable_shared=no |
4606 | - ;; |
4607 | - |
4608 | - *nto* | *qnx*) |
4609 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
4610 | - # it will coredump. |
4611 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
4612 | - ;; |
4613 | - |
4614 | - sysv4*MP*) |
4615 | - if test -d /usr/nec; then |
4616 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4617 | - fi |
4618 | - ;; |
4619 | - |
4620 | - *) |
4621 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4622 | - ;; |
4623 | - esac |
4624 | - |
4625 | - case $cc_basename in |
4626 | - nvcc*) # Cuda Compiler Driver 2.2 |
4627 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
4628 | - if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4629 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" |
4630 | - fi |
4631 | - ;; |
4632 | - esac |
4633 | - else |
4634 | - # PORTME Check for flag to pass linker flags through the system compiler. |
4635 | - case $host_os in |
4636 | - aix*) |
4637 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4638 | - if test "$host_cpu" = ia64; then |
4639 | - # AIX 5 now supports IA64 processor |
4640 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4641 | - else |
4642 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4643 | - fi |
4644 | - ;; |
4645 | - |
4646 | - mingw* | cygwin* | pw32* | os2* | cegcc*) |
4647 | - # This hack is so that the source file can tell whether it is being |
4648 | - # built for inclusion in a dll (and should export symbols for example). |
4649 | - m4_if([$1], [GCJ], [], |
4650 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4651 | - ;; |
4652 | - |
4653 | - hpux9* | hpux10* | hpux11*) |
4654 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4655 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4656 | - # not for PA HP-UX. |
4657 | - case $host_cpu in |
4658 | - hppa*64*|ia64*) |
4659 | - # +Z the default |
4660 | - ;; |
4661 | - *) |
4662 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4663 | - ;; |
4664 | - esac |
4665 | - # Is there a better lt_prog_compiler_static that works with the bundled CC? |
4666 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4667 | - ;; |
4668 | - |
4669 | - irix5* | irix6* | nonstopux*) |
4670 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4671 | - # PIC (with -KPIC) is the default. |
4672 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4673 | - ;; |
4674 | - |
4675 | - linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4676 | - case $cc_basename in |
4677 | - # old Intel for x86_64 which still supported -KPIC. |
4678 | - ecc*) |
4679 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4680 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4681 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4682 | - ;; |
4683 | - # icc used to be incompatible with GCC. |
4684 | - # ICC 10 doesn't accept -KPIC any more. |
4685 | - icc* | ifort*) |
4686 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4687 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4688 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4689 | - ;; |
4690 | - # Lahey Fortran 8.1. |
4691 | - lf95*) |
4692 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4693 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4694 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4695 | - ;; |
4696 | - nagfor*) |
4697 | - # NAG Fortran compiler |
4698 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
4699 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4700 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4701 | - ;; |
4702 | - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
4703 | - # Portland Group compilers (*not* the Pentium gcc compiler, |
4704 | - # which looks to be a dead project) |
4705 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4706 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4707 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4708 | - ;; |
4709 | - ccc*) |
4710 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4711 | - # All Alpha code is PIC. |
4712 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4713 | - ;; |
4714 | - xl* | bgxl* | bgf* | mpixl*) |
4715 | - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
4716 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4717 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4718 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4719 | - ;; |
4720 | - *) |
4721 | - case `$CC -V 2>&1 | sed 5q` in |
4722 | - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
4723 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker |
4724 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4725 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4726 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
4727 | - ;; |
4728 | - *Sun\ F* | *Sun*Fortran*) |
4729 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4730 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4731 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4732 | - ;; |
4733 | - *Sun\ C*) |
4734 | - # Sun C 5.9 |
4735 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4736 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4737 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4738 | - ;; |
4739 | - *Intel*\ [[CF]]*Compiler*) |
4740 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4741 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4742 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4743 | - ;; |
4744 | - *Portland\ Group*) |
4745 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4746 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4747 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4748 | - ;; |
4749 | - esac |
4750 | - ;; |
4751 | - esac |
4752 | - ;; |
4753 | - |
4754 | - newsos6) |
4755 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4756 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4757 | - ;; |
4758 | - |
4759 | - *nto* | *qnx*) |
4760 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
4761 | - # it will coredump. |
4762 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
4763 | - ;; |
4764 | - |
4765 | - osf3* | osf4* | osf5*) |
4766 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4767 | - # All OSF/1 code is PIC. |
4768 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4769 | - ;; |
4770 | - |
4771 | - rdos*) |
4772 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4773 | - ;; |
4774 | - |
4775 | - solaris*) |
4776 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4777 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4778 | - case $cc_basename in |
4779 | - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
4780 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4781 | - *) |
4782 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
4783 | - esac |
4784 | - ;; |
4785 | - |
4786 | - sunos4*) |
4787 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4788 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4789 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4790 | - ;; |
4791 | - |
4792 | - sysv4 | sysv4.2uw2* | sysv4.3*) |
4793 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4794 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4795 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4796 | - ;; |
4797 | - |
4798 | - sysv4*MP*) |
4799 | - if test -d /usr/nec ;then |
4800 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4801 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4802 | - fi |
4803 | - ;; |
4804 | - |
4805 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
4806 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4807 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4808 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4809 | - ;; |
4810 | - |
4811 | - unicos*) |
4812 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4813 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4814 | - ;; |
4815 | - |
4816 | - uts4*) |
4817 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4818 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4819 | - ;; |
4820 | - |
4821 | - *) |
4822 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4823 | - ;; |
4824 | - esac |
4825 | - fi |
4826 | -]) |
4827 | -case $host_os in |
4828 | - # For platforms which do not support PIC, -DPIC is meaningless: |
4829 | - *djgpp*) |
4830 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4831 | - ;; |
4832 | - *) |
4833 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
4834 | - ;; |
4835 | -esac |
4836 | - |
4837 | -AC_CACHE_CHECK([for $compiler option to produce PIC], |
4838 | - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
4839 | - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
4840 | -_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
4841 | - |
4842 | -# |
4843 | -# Check to make sure the PIC flag actually works. |
4844 | -# |
4845 | -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4846 | - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], |
4847 | - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
4848 | - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
4849 | - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
4850 | - "" | " "*) ;; |
4851 | - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
4852 | - esac], |
4853 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4854 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4855 | -fi |
4856 | -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4857 | - [Additional compiler flags for building library objects]) |
4858 | - |
4859 | -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
4860 | - [How to pass a linker flag through the compiler]) |
4861 | -# |
4862 | -# Check to make sure the static flag actually works. |
4863 | -# |
4864 | -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
4865 | -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
4866 | - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
4867 | - $lt_tmp_static_flag, |
4868 | - [], |
4869 | - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
4870 | -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
4871 | - [Compiler flag to prevent dynamic linking]) |
4872 | -])# _LT_COMPILER_PIC |
4873 | - |
4874 | - |
4875 | -# _LT_LINKER_SHLIBS([TAGNAME]) |
4876 | -# ---------------------------- |
4877 | -# See if the linker supports building shared libraries. |
4878 | -m4_defun([_LT_LINKER_SHLIBS], |
4879 | -[AC_REQUIRE([LT_PATH_LD])dnl |
4880 | -AC_REQUIRE([LT_PATH_NM])dnl |
4881 | -m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
4882 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4883 | -m4_require([_LT_DECL_EGREP])dnl |
4884 | -m4_require([_LT_DECL_SED])dnl |
4885 | -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
4886 | -m4_require([_LT_TAG_COMPILER])dnl |
4887 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4888 | -m4_if([$1], [CXX], [ |
4889 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4890 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4891 | - case $host_os in |
4892 | - aix[[4-9]]*) |
4893 | - # If we're using GNU nm, then we don't want the "-C" option. |
4894 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4895 | - # Also, AIX nm treats weak defined symbols like other global defined |
4896 | - # symbols, whereas GNU nm marks them as "W". |
4897 | - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4898 | - _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' |
4899 | - else |
4900 | - _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' |
4901 | - fi |
4902 | - ;; |
4903 | - pw32*) |
4904 | - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4905 | - ;; |
4906 | - cygwin* | mingw* | cegcc*) |
4907 | - case $cc_basename in |
4908 | - cl*) |
4909 | - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
4910 | - ;; |
4911 | - *) |
4912 | - _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' |
4913 | - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
4914 | - ;; |
4915 | - esac |
4916 | - ;; |
4917 | - linux* | k*bsd*-gnu | gnu*) |
4918 | - _LT_TAGVAR(link_all_deplibs, $1)=no |
4919 | - ;; |
4920 | - *) |
4921 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4922 | - ;; |
4923 | - esac |
4924 | -], [ |
4925 | - runpath_var= |
4926 | - _LT_TAGVAR(allow_undefined_flag, $1)= |
4927 | - _LT_TAGVAR(always_export_symbols, $1)=no |
4928 | - _LT_TAGVAR(archive_cmds, $1)= |
4929 | - _LT_TAGVAR(archive_expsym_cmds, $1)= |
4930 | - _LT_TAGVAR(compiler_needs_object, $1)=no |
4931 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
4932 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
4933 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4934 | - _LT_TAGVAR(hardcode_automatic, $1)=no |
4935 | - _LT_TAGVAR(hardcode_direct, $1)=no |
4936 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4937 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4938 | - _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4939 | - _LT_TAGVAR(hardcode_minus_L, $1)=no |
4940 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4941 | - _LT_TAGVAR(inherit_rpath, $1)=no |
4942 | - _LT_TAGVAR(link_all_deplibs, $1)=unknown |
4943 | - _LT_TAGVAR(module_cmds, $1)= |
4944 | - _LT_TAGVAR(module_expsym_cmds, $1)= |
4945 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
4946 | - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
4947 | - _LT_TAGVAR(thread_safe_flag_spec, $1)= |
4948 | - _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4949 | - # include_expsyms should be a list of space-separated symbols to be *always* |
4950 | - # included in the symbol list |
4951 | - _LT_TAGVAR(include_expsyms, $1)= |
4952 | - # exclude_expsyms can be an extended regexp of symbols to exclude |
4953 | - # it will be wrapped by ` (' and `)$', so one must not match beginning or |
4954 | - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
4955 | - # as well as any symbol that contains `d'. |
4956 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4957 | - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
4958 | - # platforms (ab)use it in PIC code, but their linkers get confused if |
4959 | - # the symbol is explicitly referenced. Since portable code cannot |
4960 | - # rely on this symbol name, it's probably fine to never include it in |
4961 | - # preloaded symbol tables. |
4962 | - # Exclude shared library initialization/finalization symbols. |
4963 | -dnl Note also adjust exclude_expsyms for C++ above. |
4964 | - extract_expsyms_cmds= |
4965 | - |
4966 | - case $host_os in |
4967 | - cygwin* | mingw* | pw32* | cegcc*) |
4968 | - # FIXME: the MSVC++ port hasn't been tested in a loooong time |
4969 | - # When not using gcc, we currently assume that we are using |
4970 | - # Microsoft Visual C++. |
4971 | - if test "$GCC" != yes; then |
4972 | - with_gnu_ld=no |
4973 | - fi |
4974 | - ;; |
4975 | - interix*) |
4976 | - # we just hope/assume this is gcc and not c89 (= MSVC++) |
4977 | - with_gnu_ld=yes |
4978 | - ;; |
4979 | - openbsd*) |
4980 | - with_gnu_ld=no |
4981 | - ;; |
4982 | - linux* | k*bsd*-gnu | gnu*) |
4983 | - _LT_TAGVAR(link_all_deplibs, $1)=no |
4984 | - ;; |
4985 | - esac |
4986 | - |
4987 | - _LT_TAGVAR(ld_shlibs, $1)=yes |
4988 | - |
4989 | - # On some targets, GNU ld is compatible enough with the native linker |
4990 | - # that we're better off using the native interface for both. |
4991 | - lt_use_gnu_ld_interface=no |
4992 | - if test "$with_gnu_ld" = yes; then |
4993 | - case $host_os in |
4994 | - aix*) |
4995 | - # The AIX port of GNU ld has always aspired to compatibility |
4996 | - # with the native linker. However, as the warning in the GNU ld |
4997 | - # block says, versions before 2.19.5* couldn't really create working |
4998 | - # shared libraries, regardless of the interface used. |
4999 | - case `$LD -v 2>&1` in |
5000 | - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
The diff has been truncated for viewing.