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