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