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